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: frameobj.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 #ifndef _IPOBJ_HXX //autogen
35 #include <bf_so3/ipobj.hxx>
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
56 SfxFrameObject_Impl
* pImpl
;
59 DECL_LINK( NewObjectHdl_Impl
, Timer
* );
63 BOOL
ConstructFrame();
69 virtual BOOL
Load( SvStorage
* );
71 virtual BOOL
SaveAs( SvStorage
* );
72 virtual BOOL
SaveCompleted( SvStorage
* );
77 static SfxFrameObjectFactoryPtr
*
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())
91 void SetFrameDescriptor( const SfxFrameDescriptor
*);
92 const SfxFrameDescriptor
*
93 GetFrameDescriptor() const;
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