Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_so3 / applet.hxx
blob2d361ed5f0d41d9b4715480692bfa41346e76f5a
1 /*************************************************************************
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
4 *
5 * Copyright 2008 by Sun Microsystems, Inc.
7 * OpenOffice.org - a multi-platform office productivity suite
9 * $RCSfile: applet.hxx,v $
10 * $Revision: 1.5 $
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 ************************************************************************/
31 #ifndef _APPLET_HXX
32 #define _APPLET_HXX
34 #include <bf_so3/ipobj.hxx>
35 #include <bf_svtools/ownlist.hxx>
37 #ifndef INCLUDED_SO3DLLAPI_H
38 #include "bf_so3/so3dllapi.h"
39 #endif
40 //=========================================================================
41 class INetURLObject;
42 class SjApplet;
43 class RmAppletObject;
45 namespace binfilter {
47 struct SvAppletData_Impl;
49 class SO3_DLLPUBLIC SvAppletObject : public SvInPlaceObject
50 /* [Beschreibung]
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.
56 [Probleme]
57 Es handelt sich bei diesem Objekt immer um einen Link. Dieser Link
58 kann allerdings InPlace aktiviert werden.
61 friend class SvAppletEnvironment;
63 private:
64 SvAppletData_Impl * pImpl;
66 SO3_DLLPRIVATE void DataChanged_Impl( BOOL bOnlyEmbedSource );
68 protected:
69 SO3_DLLPRIVATE BOOL StartApplet();
70 SO3_DLLPRIVATE virtual void FillClass( SvGlobalName * pClassName,
71 ULONG * pFormat,
72 String * pAppName,
73 String * pFullTypeName,
74 String * pShortTypeName,
75 long nFileFormat = SOFFICE_FILEFORMAT_CURRENT ) const;
76 // Protokoll
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 );
82 // Datenaustausch
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 );
88 // Laden speichern
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();
97 public:
98 SO2_DECL_BASIC_CLASS_DLL(SvAppletObject,SOAPP)
99 SvAppletObject();
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