Update ooo320-m1
[ooovba.git] / binfilter / inc / bf_sfx2 / frameobj.hxx
blob624324d93a126fa6c53d4aa9feaa57844441ccae
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: frameobj.hxx,v $
10 * $Revision: 1.8 $
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 _FRAMEOBJ_HXX
32 #define _FRAMEOBJ_HXX
34 #ifndef _IPOBJ_HXX //autogen
35 #include <bf_so3/ipobj.hxx>
36 #endif
37 namespace binfilter {
39 //=========================================================================
40 struct SfxFrameObject_Impl;
41 class SfxFrameDescriptor;
43 struct SfxFrameObjectFactoryPtr
45 // Ist n"otig, da im SO2_DECL_BASIC_CLASS_DLL-Macro ein Pointer auf
46 // eine exportierbare struct/class "ubergeben werden mu\s
47 SotFactory *pSfxFrameObjectFactory;
48 SfxFrameObjectFactoryPtr();
51 class SfxFrameObject : public SvInPlaceObject
52 /* [Beschreibung]
56 SfxFrameObject_Impl* pImpl;
58 #if _SOLAR__PRIVATE
59 DECL_LINK( NewObjectHdl_Impl, Timer* );
60 #endif
62 protected:
63 BOOL ConstructFrame();
64 // Protokoll
66 // Datenaustausch
68 // Laden speichern
69 virtual BOOL Load( SvStorage * );
70 virtual BOOL Save();
71 virtual BOOL SaveAs( SvStorage * );
72 virtual BOOL SaveCompleted( SvStorage * );
74 ~SfxFrameObject();
75 public:
77 static SfxFrameObjectFactoryPtr*
78 GetFactoryPtr();
80 // Macro mu\s exportiert werden, sonst geht das
81 // SO2-RTTI schief, da GetFactoryAdress() die
82 // Factory-Adresse der Basisklasse liefert.
83 // Da das zweite Argument in einer Inline-Funktion
84 // verwendet wird, mu\s dieses exportierbare
85 // Funktionsaufrufe verwenden, also nicht z.B.
86 // SFX_APP()->Get_Impl()
87 SO2_DECL_BASIC_CLASS_DLL(SfxFrameObject, GetFactoryPtr())
89 SfxFrameObject();
91 void SetFrameDescriptor( const SfxFrameDescriptor*);
92 const SfxFrameDescriptor*
93 GetFrameDescriptor() const;
95 #if _SOLAR__PRIVATE
96 #endif
99 inline SfxFrameObjectFactoryPtr::SfxFrameObjectFactoryPtr()
100 : pSfxFrameObjectFactory(0) // sonst funzt ClassFactory() nicht!
102 // hier Factory nicht erzeugen, da GetFactoryPtr() erst nach Beenden dieses
103 // ctors einen vern"unftigen Wert liefern kann!
106 SO2_DECL_IMPL_REF(SfxFrameObject)
109 }//end of namespace binfilter
110 #endif