merge the formfield patch from ooo-build
[ooovba.git] / sfx2 / source / view / impframe.hxx
blobde5995dfb8588672816729797288fe5a4ff7e274
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: impframe.hxx,v $
10 * $Revision: 1.10 $
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 _SFX_IMPFRAME_HXX
32 #define _SFX_IMPFRAME_HXX
34 #include <svtools/cancel.hxx>
36 #include <sfx2/frame.hxx>
37 #include <sfx2/viewfrm.hxx> // SvBorder
39 class SfxViewFrame;
40 class SfxObjectShell;
41 #include <com/sun/star/frame/XController.hpp>
42 #include <com/sun/star/awt/XTopWindow.hpp>
43 #include <com/sun/star/awt/XWindow.hpp>
44 #include <com/sun/star/awt/PosSize.hpp>
45 #include <cppuhelper/weak.hxx>
47 #include <sfx2/viewsh.hxx>
48 #include <sfx2/sfxuno.hxx>
50 #ifndef FRAME_SEARCH_PARENT
51 #define FRAME_SEARCH_PARENT 0x00000001
52 #define FRAME_SEARCH_SELF 0x00000002
53 #define FRAME_SEARCH_CHILDREN 0x00000004
54 #define FRAME_SEARCH_CREATE 0x00000008
55 #endif
57 class SfxFrame_Impl : public SfxBroadcaster, public SvCompatWeakBase, public SfxListener
59 friend class SfxFrame;
61 ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame;
62 String aFrameIdName;
63 sal_uInt32 nType;
64 sal_uInt32 nHistoryPos;
65 SfxViewFrame* pCurrentViewFrame;
66 SfxObjectShell* pCurrentObjectShell;
67 SfxFrameDescriptor* pDescr;
68 sal_uInt16 nFrameId;
69 sal_uInt16 nLocks;
70 sal_Bool bCloseOnUnlock : 1;
71 sal_Bool bClosing : 1;
72 sal_Bool bPrepClosing : 1;
73 sal_Bool bInCancelTransfers : 1;
74 sal_Bool bOwnsBindings : 1;
75 sal_Bool bReleasingComponent : 1;
76 sal_Bool bFocusLocked : 1;
77 sal_Bool bInPlace : 1;
78 SfxCancelManager* pCancelMgr;
79 SfxCancellable* pLoadCancellable;
80 SfxFrame* pFrame;
81 const SfxItemSet* pSet;
82 SfxWorkWindow* pWorkWin;
83 SvBorder aBorder;
85 SfxFrame_Impl( SfxFrame* pAntiImplP ) :
86 SvCompatWeakBase( pAntiImplP ),
87 nType( 0L ),
88 nHistoryPos( 0 ),
89 pCurrentViewFrame( NULL ),
90 pCurrentObjectShell( NULL ),
91 pDescr( NULL ),
92 nFrameId( 0 ),
93 nLocks( 0 ),
94 bCloseOnUnlock( sal_False ),
95 bClosing(sal_False),
96 bPrepClosing(sal_False),
97 bInCancelTransfers( sal_False ),
98 bOwnsBindings( sal_False ),
99 bReleasingComponent( sal_False ),
100 bFocusLocked( sal_False ),
101 bInPlace( sal_False ),
102 pCancelMgr( 0 ),
103 pLoadCancellable( 0 ),
104 pFrame( pAntiImplP ),
105 pSet( 0 ),
106 pWorkWin( 0 )
109 virtual ~SfxFrame_Impl() { delete pCancelMgr; delete pLoadCancellable; }
110 virtual void Notify( SfxBroadcaster& rBC, const SfxHint& rHint );
113 #endif