xref: /aoo42x/main/sfx2/source/view/impframe.hxx (revision 353d8f4d)
1*353d8f4dSAndrew Rist /**************************************************************
2cdf0e10cSrcweir  *
3*353d8f4dSAndrew Rist  * Licensed to the Apache Software Foundation (ASF) under one
4*353d8f4dSAndrew Rist  * or more contributor license agreements.  See the NOTICE file
5*353d8f4dSAndrew Rist  * distributed with this work for additional information
6*353d8f4dSAndrew Rist  * regarding copyright ownership.  The ASF licenses this file
7*353d8f4dSAndrew Rist  * to you under the Apache License, Version 2.0 (the
8*353d8f4dSAndrew Rist  * "License"); you may not use this file except in compliance
9*353d8f4dSAndrew Rist  * with the License.  You may obtain a copy of the License at
10*353d8f4dSAndrew Rist  *
11*353d8f4dSAndrew Rist  *   http://www.apache.org/licenses/LICENSE-2.0
12*353d8f4dSAndrew Rist  *
13*353d8f4dSAndrew Rist  * Unless required by applicable law or agreed to in writing,
14*353d8f4dSAndrew Rist  * software distributed under the License is distributed on an
15*353d8f4dSAndrew Rist  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16*353d8f4dSAndrew Rist  * KIND, either express or implied.  See the License for the
17*353d8f4dSAndrew Rist  * specific language governing permissions and limitations
18*353d8f4dSAndrew Rist  * under the License.
19*353d8f4dSAndrew Rist  *
20*353d8f4dSAndrew Rist  *************************************************************/
21*353d8f4dSAndrew Rist 
22*353d8f4dSAndrew Rist 
23cdf0e10cSrcweir 
24cdf0e10cSrcweir #ifndef _SFX_IMPFRAME_HXX
25cdf0e10cSrcweir #define _SFX_IMPFRAME_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir #include <sfx2/frame.hxx>
28cdf0e10cSrcweir #include <sfx2/viewfrm.hxx>                  // SvBorder
29cdf0e10cSrcweir 
30cdf0e10cSrcweir class SfxViewFrame;
31cdf0e10cSrcweir class SfxObjectShell;
32cdf0e10cSrcweir #include <com/sun/star/frame/XController.hpp>
33cdf0e10cSrcweir #include <com/sun/star/awt/XTopWindow.hpp>
34cdf0e10cSrcweir #include <com/sun/star/awt/XWindow.hpp>
35cdf0e10cSrcweir #include <com/sun/star/awt/PosSize.hpp>
36cdf0e10cSrcweir #include <cppuhelper/weak.hxx>
37cdf0e10cSrcweir 
38cdf0e10cSrcweir #include <sfx2/viewsh.hxx>
39cdf0e10cSrcweir #include <sfx2/sfxuno.hxx>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir #ifndef FRAME_SEARCH_PARENT
42cdf0e10cSrcweir #define FRAME_SEARCH_PARENT 	0x00000001
43cdf0e10cSrcweir #define FRAME_SEARCH_SELF 		0x00000002
44cdf0e10cSrcweir #define FRAME_SEARCH_CHILDREN 	0x00000004
45cdf0e10cSrcweir #define FRAME_SEARCH_CREATE		0x00000008
46cdf0e10cSrcweir #endif
47cdf0e10cSrcweir 
48cdf0e10cSrcweir class SfxFrame_Impl : public SfxBroadcaster, public SvCompatWeakBase
49cdf0e10cSrcweir {
50cdf0e10cSrcweir public:
51cdf0e10cSrcweir     ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > xFrame;
52cdf0e10cSrcweir     sal_uInt32                nType;
53cdf0e10cSrcweir     SfxViewFrame*             pCurrentViewFrame;
54cdf0e10cSrcweir     SfxFrameDescriptor*       pDescr;
55cdf0e10cSrcweir     sal_uInt16                nLocks;
56cdf0e10cSrcweir     sal_Bool                  bClosing : 1;
57cdf0e10cSrcweir     sal_Bool                  bPrepClosing : 1;
58cdf0e10cSrcweir     sal_Bool                  bInCancelTransfers : 1;
59cdf0e10cSrcweir     sal_Bool                  bOwnsBindings : 1;
60cdf0e10cSrcweir     sal_Bool                  bReleasingComponent : 1;
61cdf0e10cSrcweir     sal_Bool                  bInPlace : 1;
62cdf0e10cSrcweir     SfxFrame*                 pFrame;
63cdf0e10cSrcweir     SfxWorkWindow*            pWorkWin;
64cdf0e10cSrcweir     SvBorder                  aBorder;
65cdf0e10cSrcweir     // formerly SfxTopFrame
66cdf0e10cSrcweir     Window*                   pExternalContainerWindow;
67cdf0e10cSrcweir     bool                      bHidden;
68cdf0e10cSrcweir     bool                      bLockResize;
69cdf0e10cSrcweir     bool                      bMenuBarOn;
70cdf0e10cSrcweir 
SfxFrame_Impl(SfxFrame * pAntiImplP)71cdf0e10cSrcweir     SfxFrame_Impl( SfxFrame* pAntiImplP )
72cdf0e10cSrcweir         :SvCompatWeakBase( pAntiImplP )
73cdf0e10cSrcweir         ,nType( 0L )
74cdf0e10cSrcweir         ,pCurrentViewFrame( NULL )
75cdf0e10cSrcweir         ,pDescr( NULL )
76cdf0e10cSrcweir         ,nLocks( 0 )
77cdf0e10cSrcweir         ,bClosing(sal_False)
78cdf0e10cSrcweir         ,bPrepClosing(sal_False)
79cdf0e10cSrcweir         ,bInCancelTransfers( sal_False )
80cdf0e10cSrcweir         ,bOwnsBindings( sal_False )
81cdf0e10cSrcweir         ,bReleasingComponent( sal_False )
82cdf0e10cSrcweir         ,bInPlace( sal_False )
83cdf0e10cSrcweir         ,pFrame( pAntiImplP )
84cdf0e10cSrcweir         ,pWorkWin( 0 )
85cdf0e10cSrcweir         ,pExternalContainerWindow( NULL )
86cdf0e10cSrcweir         ,bHidden( false )
87cdf0e10cSrcweir         ,bLockResize( false )
88cdf0e10cSrcweir         ,bMenuBarOn( true )
89cdf0e10cSrcweir     {
90cdf0e10cSrcweir     }
91cdf0e10cSrcweir 
~SfxFrame_Impl()92cdf0e10cSrcweir     virtual ~SfxFrame_Impl() { }
93cdf0e10cSrcweir };
94cdf0e10cSrcweir 
95cdf0e10cSrcweir #endif
96cdf0e10cSrcweir 
97