1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: applet.hxx,v $
12 * This file is part of OpenOffice.org.
14 * OpenOffice.org is free software: you can redistribute it and/or modify
15 * it under the terms of the GNU Lesser General Public License version 3
16 * only, as published by the Free Software Foundation.
18 * OpenOffice.org is distributed in the hope that it will be useful,
19 * but WITHOUT ANY WARRANTY; without even the implied warranty of
20 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 * GNU Lesser General Public License version 3 for more details
22 * (a copy is included in the LICENSE file that accompanied this code).
24 * You should have received a copy of the GNU Lesser General Public License
25 * version 3 along with OpenOffice.org. If not, see
26 * <http://www.openoffice.org/license.html>
27 * for a copy of the LGPLv3 License.
29 ************************************************************************/
34 #include <bf_so3/ipobj.hxx>
35 #include <bf_svtools/ownlist.hxx>
37 #ifndef INCLUDED_SO3DLLAPI_H
38 #include "bf_so3/so3dllapi.h"
40 //=========================================================================
47 struct SvAppletData_Impl
;
49 class SO3_DLLPUBLIC SvAppletObject
: public SvInPlaceObject
52 Die Klasse AppletObject ist die Abbildung eines InPlace-Objektes
53 auf einen Applet-Server. Dieses Objekt kann nur InPlace- und
54 nicht UI-Aktiviert werden.
57 Es handelt sich bei diesem Objekt immer um einen Link. Dieser Link
58 kann allerdings InPlace aktiviert werden.
61 friend class SvAppletEnvironment
;
64 SvAppletData_Impl
* pImpl
;
66 SO3_DLLPRIVATE
void DataChanged_Impl( BOOL bOnlyEmbedSource
);
69 SO3_DLLPRIVATE BOOL
StartApplet();
70 SO3_DLLPRIVATE
virtual void FillClass( SvGlobalName
* pClassName
,
73 String
* pFullTypeName
,
74 String
* pShortTypeName
,
75 long nFileFormat
= SOFFICE_FILEFORMAT_CURRENT
) const;
77 SO3_DLLPRIVATE
virtual void Open( BOOL bOpen
);
78 SO3_DLLPRIVATE
virtual void InPlaceActivate( BOOL
);
79 SO3_DLLPRIVATE
virtual ErrCode
Verb( long, SvEmbeddedClient
* pCallerClient
,
80 Window
* pWin
, const Rectangle
* pWorkRectPixel
);
83 SO3_DLLPRIVATE
virtual void SetVisArea( const Rectangle
& rVisArea
);
84 SO3_DLLPRIVATE
virtual void Draw( OutputDevice
*,
85 const JobSetup
& rSetup
,
86 USHORT nAspect
= ASPECT_CONTENT
);
89 SO3_DLLPRIVATE
virtual BOOL
InitNew( SvStorage
* );
90 SO3_DLLPRIVATE
virtual BOOL
Load( SvStorage
* );
91 SO3_DLLPRIVATE
virtual BOOL
Save();
92 SO3_DLLPRIVATE
virtual BOOL
SaveAs( SvStorage
* );
93 SO3_DLLPRIVATE
virtual void HandsOff();
94 SO3_DLLPRIVATE
virtual BOOL
SaveCompleted( SvStorage
* );
96 SO3_DLLPRIVATE
~SvAppletObject();
98 SO2_DECL_BASIC_CLASS_DLL(SvAppletObject
,SOAPP
)
101 virtual ULONG
GetMiscStatus() const;
102 virtual BOOL
IsLink() const;
104 // spezielle Internet Methoden
105 void SetCommandList( const SvCommandList
& rList
);
106 const SvCommandList
& GetCommandList() const;
107 void SetClass( const String
& rClass
);
108 const String
& GetClass()const;
109 void SetName( const XubString
& rClass
);
110 const XubString
&GetName() const;
111 void SetCodeBase( const XubString
& );
112 const XubString
& GetCodeBase() const;
113 void SetMayScript( BOOL bMayScript
);
114 BOOL
IsMayScript() const;
117 SO2_DECL_IMPL_REF(SvAppletObject
)
121 #endif // _Applet_HXX