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