1*cdf0e10cSrcweir /************************************************************************* 2*cdf0e10cSrcweir * 3*cdf0e10cSrcweir * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4*cdf0e10cSrcweir * 5*cdf0e10cSrcweir * Copyright 2000, 2010 Oracle and/or its affiliates. 6*cdf0e10cSrcweir * 7*cdf0e10cSrcweir * OpenOffice.org - a multi-platform office productivity suite 8*cdf0e10cSrcweir * 9*cdf0e10cSrcweir * This file is part of OpenOffice.org. 10*cdf0e10cSrcweir * 11*cdf0e10cSrcweir * OpenOffice.org is free software: you can redistribute it and/or modify 12*cdf0e10cSrcweir * it under the terms of the GNU Lesser General Public License version 3 13*cdf0e10cSrcweir * only, as published by the Free Software Foundation. 14*cdf0e10cSrcweir * 15*cdf0e10cSrcweir * OpenOffice.org is distributed in the hope that it will be useful, 16*cdf0e10cSrcweir * but WITHOUT ANY WARRANTY; without even the implied warranty of 17*cdf0e10cSrcweir * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18*cdf0e10cSrcweir * GNU Lesser General Public License version 3 for more details 19*cdf0e10cSrcweir * (a copy is included in the LICENSE file that accompanied this code). 20*cdf0e10cSrcweir * 21*cdf0e10cSrcweir * You should have received a copy of the GNU Lesser General Public License 22*cdf0e10cSrcweir * version 3 along with OpenOffice.org. If not, see 23*cdf0e10cSrcweir * <http://www.openoffice.org/license.html> 24*cdf0e10cSrcweir * for a copy of the LGPLv3 License. 25*cdf0e10cSrcweir * 26*cdf0e10cSrcweir ************************************************************************/ 27*cdf0e10cSrcweir #ifndef _SFXWORKWIN_HXX 28*cdf0e10cSrcweir #define _SFXWORKWIN_HXX 29*cdf0e10cSrcweir 30*cdf0e10cSrcweir #include <vector> 31*cdf0e10cSrcweir #include <deque> 32*cdf0e10cSrcweir #include <com/sun/star/frame/XDispatch.hpp> 33*cdf0e10cSrcweir #include <com/sun/star/frame/XFrame.hpp> 34*cdf0e10cSrcweir #ifndef _COM_SUN_STAR_UI_XUILEMENT_HPP_ 35*cdf0e10cSrcweir #include <com/sun/star/ui/XUIElement.hpp> 36*cdf0e10cSrcweir #endif 37*cdf0e10cSrcweir #include <com/sun/star/task/XStatusIndicator.hpp> 38*cdf0e10cSrcweir #include <com/sun/star/frame/XLayoutManagerListener.hpp> 39*cdf0e10cSrcweir #include <cppuhelper/weak.hxx> 40*cdf0e10cSrcweir #include <cppuhelper/propshlp.hxx> 41*cdf0e10cSrcweir 42*cdf0e10cSrcweir #define _SVSTDARR_USHORTS 43*cdf0e10cSrcweir #include <svl/svstdarr.hxx> // SvUShorts 44*cdf0e10cSrcweir #include <rtl/ustring.hxx> 45*cdf0e10cSrcweir #include <vos/mutex.hxx> 46*cdf0e10cSrcweir 47*cdf0e10cSrcweir #include <sfx2/sfx.hrc> 48*cdf0e10cSrcweir #include <sfx2/childwin.hxx> 49*cdf0e10cSrcweir #include <sfx2/shell.hxx> 50*cdf0e10cSrcweir #include <sfx2/minarray.hxx> 51*cdf0e10cSrcweir #include <sfx2/ctrlitem.hxx> 52*cdf0e10cSrcweir #include <sfx2/viewfrm.hxx> 53*cdf0e10cSrcweir 54*cdf0e10cSrcweir class SfxInPlaceEnv_Impl; 55*cdf0e10cSrcweir class SfxPlugInEnv_Impl; 56*cdf0e10cSrcweir class SfxSplitWindow; 57*cdf0e10cSrcweir class SfxWorkWindow; 58*cdf0e10cSrcweir 59*cdf0e10cSrcweir //==================================================================== 60*cdf0e10cSrcweir // Dieser struct h"alt alle relevanten Informationen "uber Toolboxen bereit. 61*cdf0e10cSrcweir 62*cdf0e10cSrcweir struct SfxObjectBar_Impl 63*cdf0e10cSrcweir { 64*cdf0e10cSrcweir sal_uInt16 nId; // Resource - und ConfigId der Toolbox 65*cdf0e10cSrcweir sal_uInt16 nMode; // spezielle Sichtbarkeitsflags 66*cdf0e10cSrcweir sal_uInt16 nPos; 67*cdf0e10cSrcweir sal_uInt16 nIndex; 68*cdf0e10cSrcweir sal_Bool bDestroy; 69*cdf0e10cSrcweir String aName; 70*cdf0e10cSrcweir SfxInterface* pIFace; 71*cdf0e10cSrcweir 72*cdf0e10cSrcweir SfxObjectBar_Impl() : 73*cdf0e10cSrcweir nId(0), 74*cdf0e10cSrcweir nMode(0), 75*cdf0e10cSrcweir bDestroy(sal_False), 76*cdf0e10cSrcweir pIFace(0) 77*cdf0e10cSrcweir {} 78*cdf0e10cSrcweir }; 79*cdf0e10cSrcweir 80*cdf0e10cSrcweir //------------------------------------------------------------------------------ 81*cdf0e10cSrcweir // Dieser struct h"alt alle relevanten Informationen "uber die Statuszeile bereit. 82*cdf0e10cSrcweir struct SfxStatBar_Impl 83*cdf0e10cSrcweir { 84*cdf0e10cSrcweir sal_uInt16 nId; 85*cdf0e10cSrcweir sal_Bool bOn; 86*cdf0e10cSrcweir sal_Bool bTemp; 87*cdf0e10cSrcweir 88*cdf0e10cSrcweir SfxStatBar_Impl() : 89*cdf0e10cSrcweir nId(0), 90*cdf0e10cSrcweir bOn(sal_True), 91*cdf0e10cSrcweir bTemp(sal_False) 92*cdf0e10cSrcweir {} 93*cdf0e10cSrcweir }; 94*cdf0e10cSrcweir 95*cdf0e10cSrcweir //------------------------------------------------------------------------------ 96*cdf0e10cSrcweir 97*cdf0e10cSrcweir #define CHILD_NOT_VISIBLE 0 98*cdf0e10cSrcweir #define CHILD_ACTIVE 1 // nicht durch HidePopups ausgeschaltet 99*cdf0e10cSrcweir #define CHILD_NOT_HIDDEN 2 // nicht durch HideChildWindow ausgeschaltet 100*cdf0e10cSrcweir #define CHILD_FITS_IN 4 // nicht zu gro\s f"ur OutputSize des parent 101*cdf0e10cSrcweir #define CHILD_VISIBLE (CHILD_NOT_HIDDEN | CHILD_ACTIVE | CHILD_FITS_IN) 102*cdf0e10cSrcweir #define CHILD_ISVISIBLE (CHILD_NOT_HIDDEN | CHILD_ACTIVE) 103*cdf0e10cSrcweir 104*cdf0e10cSrcweir struct SfxChild_Impl 105*cdf0e10cSrcweir { 106*cdf0e10cSrcweir Window* pWin; 107*cdf0e10cSrcweir Size aSize; 108*cdf0e10cSrcweir SfxChildAlignment eAlign; 109*cdf0e10cSrcweir sal_uInt16 nVisible; 110*cdf0e10cSrcweir sal_Bool bResize; 111*cdf0e10cSrcweir sal_Bool bCanGetFocus; 112*cdf0e10cSrcweir sal_Bool bSetFocus; 113*cdf0e10cSrcweir 114*cdf0e10cSrcweir SfxChild_Impl( Window& rChild, const Size& rSize, 115*cdf0e10cSrcweir SfxChildAlignment eAlignment, sal_Bool bIsVisible ): 116*cdf0e10cSrcweir pWin(&rChild), aSize(rSize), eAlign(eAlignment), bResize(sal_False), 117*cdf0e10cSrcweir bCanGetFocus( sal_False ), bSetFocus( sal_False ) 118*cdf0e10cSrcweir { 119*cdf0e10cSrcweir nVisible = bIsVisible ? CHILD_VISIBLE : CHILD_NOT_VISIBLE; 120*cdf0e10cSrcweir } 121*cdf0e10cSrcweir }; 122*cdf0e10cSrcweir 123*cdf0e10cSrcweir //-------------------------------------------------------------------- 124*cdf0e10cSrcweir class SfxChildWinController_Impl : public SfxControllerItem 125*cdf0e10cSrcweir { 126*cdf0e10cSrcweir SfxWorkWindow* pWorkwin; 127*cdf0e10cSrcweir 128*cdf0e10cSrcweir public: 129*cdf0e10cSrcweir SfxChildWinController_Impl( sal_uInt16 nId, SfxWorkWindow *pWin ); 130*cdf0e10cSrcweir virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState, 131*cdf0e10cSrcweir const SfxPoolItem* pState ); 132*cdf0e10cSrcweir }; 133*cdf0e10cSrcweir 134*cdf0e10cSrcweir struct SfxChildWin_Impl 135*cdf0e10cSrcweir { 136*cdf0e10cSrcweir sal_uInt16 nSaveId; // die ChildWindow-Id 137*cdf0e10cSrcweir sal_uInt16 nInterfaceId; // der aktuelle Context 138*cdf0e10cSrcweir sal_uInt16 nId; // aktuelle Id 139*cdf0e10cSrcweir SfxChildWindow* pWin; 140*cdf0e10cSrcweir sal_Bool bCreate; 141*cdf0e10cSrcweir SfxChildWinInfo aInfo; 142*cdf0e10cSrcweir SfxChild_Impl* pCli; // != 0 bei direkten Children 143*cdf0e10cSrcweir sal_uInt16 nVisibility; 144*cdf0e10cSrcweir sal_Bool bEnable; 145*cdf0e10cSrcweir sal_Bool bDisabled; 146*cdf0e10cSrcweir 147*cdf0e10cSrcweir SfxChildWin_Impl( sal_uInt32 nID ) : 148*cdf0e10cSrcweir nSaveId((sal_uInt16) (nID & 0xFFFF) ), 149*cdf0e10cSrcweir nInterfaceId((sal_uInt16) (nID >> 16)), 150*cdf0e10cSrcweir nId(nSaveId), 151*cdf0e10cSrcweir pWin(0), 152*cdf0e10cSrcweir bCreate(sal_False), 153*cdf0e10cSrcweir pCli(0), 154*cdf0e10cSrcweir nVisibility( sal_False ), 155*cdf0e10cSrcweir bEnable( sal_True ), 156*cdf0e10cSrcweir bDisabled( sal_False ) 157*cdf0e10cSrcweir {} 158*cdf0e10cSrcweir }; 159*cdf0e10cSrcweir 160*cdf0e10cSrcweir enum SfxChildIdentifier 161*cdf0e10cSrcweir { 162*cdf0e10cSrcweir SFX_CHILDWIN_STATBAR, 163*cdf0e10cSrcweir SFX_CHILDWIN_OBJECTBAR, 164*cdf0e10cSrcweir SFX_CHILDWIN_DOCKINGWINDOW, 165*cdf0e10cSrcweir SFX_CHILDWIN_SPLITWINDOW 166*cdf0e10cSrcweir }; 167*cdf0e10cSrcweir 168*cdf0e10cSrcweir enum SfxDockingConfig 169*cdf0e10cSrcweir { 170*cdf0e10cSrcweir SFX_SETDOCKINGRECTS, 171*cdf0e10cSrcweir SFX_ALIGNDOCKINGWINDOW, 172*cdf0e10cSrcweir SFX_TOGGLEFLOATMODE, 173*cdf0e10cSrcweir SFX_MOVEDOCKINGWINDOW 174*cdf0e10cSrcweir }; 175*cdf0e10cSrcweir 176*cdf0e10cSrcweir DECL_PTRARRAY( SfxChildList_Impl, SfxChild_Impl*, 2, 2 ) 177*cdf0e10cSrcweir DECL_PTRARRAY( SfxChildWindows_Impl, SfxChildWin_Impl*, 2, 2 ) 178*cdf0e10cSrcweir 179*cdf0e10cSrcweir 180*cdf0e10cSrcweir struct SfxObjectBarList_Impl 181*cdf0e10cSrcweir { 182*cdf0e10cSrcweir std::deque<SfxObjectBar_Impl> aArr; 183*cdf0e10cSrcweir sal_uInt16 nAct; 184*cdf0e10cSrcweir 185*cdf0e10cSrcweir SfxObjectBar_Impl operator[] ( sal_uInt16 n ) 186*cdf0e10cSrcweir { return aArr[n]; } 187*cdf0e10cSrcweir SfxObjectBar_Impl Actual() 188*cdf0e10cSrcweir { return aArr[nAct]; } 189*cdf0e10cSrcweir }; 190*cdf0e10cSrcweir 191*cdf0e10cSrcweir struct SfxSplitWin_Impl 192*cdf0e10cSrcweir { 193*cdf0e10cSrcweir SfxSplitWindow* pSplitWin; 194*cdf0e10cSrcweir SfxChildWindows_Impl* pChildWins; 195*cdf0e10cSrcweir }; 196*cdf0e10cSrcweir 197*cdf0e10cSrcweir #define SFX_SPLITWINDOWS_LEFT 0 198*cdf0e10cSrcweir #define SFX_SPLITWINDOWS_TOP 2 199*cdf0e10cSrcweir #define SFX_SPLITWINDOWS_RIGHT 1 200*cdf0e10cSrcweir #define SFX_SPLITWINDOWS_BOTTOM 3 201*cdf0e10cSrcweir #define SFX_SPLITWINDOWS_MAX 4 202*cdf0e10cSrcweir 203*cdf0e10cSrcweir //-------------------------------------------------------------------- 204*cdf0e10cSrcweir 205*cdf0e10cSrcweir class LayoutManagerListener : public ::com::sun::star::frame::XLayoutManagerListener, 206*cdf0e10cSrcweir public ::com::sun::star::lang::XTypeProvider, 207*cdf0e10cSrcweir public ::com::sun::star::lang::XComponent, 208*cdf0e10cSrcweir public ::cppu::OWeakObject 209*cdf0e10cSrcweir { 210*cdf0e10cSrcweir public: 211*cdf0e10cSrcweir LayoutManagerListener( SfxWorkWindow* pWrkWin ); 212*cdf0e10cSrcweir virtual ~LayoutManagerListener(); 213*cdf0e10cSrcweir 214*cdf0e10cSrcweir SFX_DECL_XINTERFACE_XTYPEPROVIDER 215*cdf0e10cSrcweir 216*cdf0e10cSrcweir void setFrame( const ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame >& rFrame ); 217*cdf0e10cSrcweir 218*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 219*cdf0e10cSrcweir // XComponent 220*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 221*cdf0e10cSrcweir virtual void SAL_CALL addEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& xListener ) throw (::com::sun::star::uno::RuntimeException); 222*cdf0e10cSrcweir virtual void SAL_CALL removeEventListener( const ::com::sun::star::uno::Reference< ::com::sun::star::lang::XEventListener >& aListener ) throw (::com::sun::star::uno::RuntimeException); 223*cdf0e10cSrcweir virtual void SAL_CALL dispose() throw( ::com::sun::star::uno::RuntimeException ); 224*cdf0e10cSrcweir 225*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 226*cdf0e10cSrcweir // XEventListener 227*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 228*cdf0e10cSrcweir virtual void SAL_CALL disposing( const ::com::sun::star::lang::EventObject& aEvent ) throw( ::com::sun::star::uno::RuntimeException ); 229*cdf0e10cSrcweir 230*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 231*cdf0e10cSrcweir // XLayoutManagerEventListener 232*cdf0e10cSrcweir //--------------------------------------------------------------------------------------------------------- 233*cdf0e10cSrcweir virtual void SAL_CALL layoutEvent( const ::com::sun::star::lang::EventObject& aSource, ::sal_Int16 eLayoutEvent, const ::com::sun::star::uno::Any& aInfo ) throw (::com::sun::star::uno::RuntimeException); 234*cdf0e10cSrcweir 235*cdf0e10cSrcweir private: 236*cdf0e10cSrcweir sal_Bool m_bHasFrame; 237*cdf0e10cSrcweir SfxWorkWindow* m_pWrkWin; 238*cdf0e10cSrcweir ::com::sun::star::uno::WeakReference< ::com::sun::star::frame::XFrame > m_xFrame; 239*cdf0e10cSrcweir rtl::OUString m_aLayoutManagerPropName; 240*cdf0e10cSrcweir }; 241*cdf0e10cSrcweir 242*cdf0e10cSrcweir class SfxWorkWindow 243*cdf0e10cSrcweir { 244*cdf0e10cSrcweir friend class UIElementWrapper; 245*cdf0e10cSrcweir friend class LayoutManagerListener; 246*cdf0e10cSrcweir 247*cdf0e10cSrcweir protected: 248*cdf0e10cSrcweir SvUShorts aSortedList; 249*cdf0e10cSrcweir SfxStatBar_Impl aStatBar; 250*cdf0e10cSrcweir std::vector< SfxObjectBar_Impl > aObjBarList; 251*cdf0e10cSrcweir Rectangle aClientArea; 252*cdf0e10cSrcweir Rectangle aUpperClientArea; 253*cdf0e10cSrcweir SfxWorkWindow* pParent; 254*cdf0e10cSrcweir SfxSplitWindow* pSplit[SFX_SPLITWINDOWS_MAX]; 255*cdf0e10cSrcweir SfxChildList_Impl* pChilds; 256*cdf0e10cSrcweir SfxChildWindows_Impl* pChildWins; 257*cdf0e10cSrcweir SfxBindings* pBindings; 258*cdf0e10cSrcweir Window* pWorkWin; 259*cdf0e10cSrcweir SfxShell* pConfigShell; 260*cdf0e10cSrcweir Window* pActiveChild; 261*cdf0e10cSrcweir sal_uInt16 nUpdateMode; 262*cdf0e10cSrcweir sal_uInt16 nChilds; 263*cdf0e10cSrcweir sal_uInt16 nOrigMode; 264*cdf0e10cSrcweir sal_Bool bSorted : 1; 265*cdf0e10cSrcweir sal_Bool bDockingAllowed : 1; 266*cdf0e10cSrcweir sal_Bool bInternalDockingAllowed : 1; 267*cdf0e10cSrcweir sal_Bool bAllChildsVisible : 1; 268*cdf0e10cSrcweir sal_Bool bIsFullScreen : 1; 269*cdf0e10cSrcweir sal_Bool bShowStatusBar : 1; 270*cdf0e10cSrcweir sal_Int32 m_nLock; 271*cdf0e10cSrcweir rtl::OUString m_aStatusBarResName; 272*cdf0e10cSrcweir rtl::OUString m_aLayoutManagerPropName; 273*cdf0e10cSrcweir rtl::OUString m_aTbxTypeName; 274*cdf0e10cSrcweir rtl::OUString m_aProgressBarResName; 275*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::lang::XComponent > m_xLayoutManagerListener; 276*cdf0e10cSrcweir 277*cdf0e10cSrcweir protected: 278*cdf0e10cSrcweir void CreateChildWin_Impl(SfxChildWin_Impl*,sal_Bool); 279*cdf0e10cSrcweir void RemoveChildWin_Impl(SfxChildWin_Impl*); 280*cdf0e10cSrcweir void Sort_Impl(); 281*cdf0e10cSrcweir void AlignChild_Impl( Window& rWindow, const Size& rNewSize, 282*cdf0e10cSrcweir SfxChildAlignment eAlign ); 283*cdf0e10cSrcweir SfxChild_Impl* FindChild_Impl( const Window& rWindow ) const; 284*cdf0e10cSrcweir virtual sal_Bool RequestTopToolSpacePixel_Impl( SvBorder aBorder ); 285*cdf0e10cSrcweir virtual Rectangle GetTopRect_Impl(); 286*cdf0e10cSrcweir SvBorder Arrange_Impl(); 287*cdf0e10cSrcweir virtual void SaveStatus_Impl(SfxChildWindow*, const SfxChildWinInfo&); 288*cdf0e10cSrcweir static sal_Bool IsPluginMode( SfxObjectShell* pObjShell ); 289*cdf0e10cSrcweir 290*cdf0e10cSrcweir public: 291*cdf0e10cSrcweir SfxWorkWindow( Window *pWin, SfxBindings& rBindings, SfxWorkWindow* pParent = NULL); 292*cdf0e10cSrcweir virtual ~SfxWorkWindow(); 293*cdf0e10cSrcweir SystemWindow* GetTopWindow() const; 294*cdf0e10cSrcweir SfxBindings& GetBindings() 295*cdf0e10cSrcweir { return *pBindings; } 296*cdf0e10cSrcweir Window* GetWindow() const 297*cdf0e10cSrcweir { return pWorkWin; } 298*cdf0e10cSrcweir Rectangle GetFreeArea( sal_Bool bAutoHide ) const; 299*cdf0e10cSrcweir void SetDockingAllowed(sal_Bool bSet) 300*cdf0e10cSrcweir { bDockingAllowed = bSet; } 301*cdf0e10cSrcweir void SetInternalDockingAllowed(sal_Bool bSet) 302*cdf0e10cSrcweir { bInternalDockingAllowed = bSet; } 303*cdf0e10cSrcweir sal_Bool IsDockingAllowed() const 304*cdf0e10cSrcweir { return bDockingAllowed; } 305*cdf0e10cSrcweir sal_Bool IsInternalDockingAllowed() const 306*cdf0e10cSrcweir { return bInternalDockingAllowed; } 307*cdf0e10cSrcweir SfxWorkWindow* GetParent_Impl() const 308*cdf0e10cSrcweir { return pParent; } 309*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::frame::XDispatch > CreateDispatch( const String& ); 310*cdf0e10cSrcweir 311*cdf0e10cSrcweir // Methoden f"ur alle Child-Fenster 312*cdf0e10cSrcweir void DataChanged_Impl( const DataChangedEvent& rDCEvt ); 313*cdf0e10cSrcweir void ReleaseChild_Impl( Window& rWindow ); 314*cdf0e10cSrcweir SfxChild_Impl* RegisterChild_Impl( Window& rWindow, SfxChildAlignment eAlign, sal_Bool bCanGetFocus=sal_False ); 315*cdf0e10cSrcweir void ShowChilds_Impl(); 316*cdf0e10cSrcweir void HideChilds_Impl(); 317*cdf0e10cSrcweir void Close_Impl(); 318*cdf0e10cSrcweir sal_Bool PrepareClose_Impl(); 319*cdf0e10cSrcweir virtual void ArrangeChilds_Impl( sal_Bool bForce = sal_True ); 320*cdf0e10cSrcweir void DeleteControllers_Impl(); 321*cdf0e10cSrcweir void SaveStatus_Impl(); 322*cdf0e10cSrcweir void HidePopups_Impl(sal_Bool bHide, sal_Bool bParent=sal_False, sal_uInt16 nId=0); 323*cdf0e10cSrcweir void ConfigChild_Impl(SfxChildIdentifier, 324*cdf0e10cSrcweir SfxDockingConfig, sal_uInt16); 325*cdf0e10cSrcweir void MakeChildsVisible_Impl( sal_Bool bVis ); 326*cdf0e10cSrcweir void ArrangeAutoHideWindows( SfxSplitWindow *pSplit ); 327*cdf0e10cSrcweir sal_Bool IsAutoHideMode( const SfxSplitWindow *pSplit ); 328*cdf0e10cSrcweir void EndAutoShow_Impl( Point aPos ); 329*cdf0e10cSrcweir void SetFullScreen_Impl( sal_Bool bSet ) { bIsFullScreen = bSet; } 330*cdf0e10cSrcweir sal_Bool IsFullScreen_Impl() const { return bIsFullScreen; } 331*cdf0e10cSrcweir 332*cdf0e10cSrcweir // Methoden f"ur Objectbars 333*cdf0e10cSrcweir virtual void UpdateObjectBars_Impl(); 334*cdf0e10cSrcweir void ResetObjectBars_Impl(); 335*cdf0e10cSrcweir void SetObjectBar_Impl( sal_uInt16 nPos, sal_uInt32 nResId, 336*cdf0e10cSrcweir SfxInterface *pIFace, const String* pName=0 ); 337*cdf0e10cSrcweir Window* GetObjectBar_Impl( sal_uInt16 nPos, sal_uInt32 nResId ); 338*cdf0e10cSrcweir bool KnowsObjectBar_Impl( sal_uInt16 nPos ) const; 339*cdf0e10cSrcweir sal_Bool IsVisible_Impl(); 340*cdf0e10cSrcweir void MakeVisible_Impl( sal_Bool ); 341*cdf0e10cSrcweir void SetObjectBarVisibility_Impl( sal_uInt16 nVis ); 342*cdf0e10cSrcweir sal_Bool IsContainer_Impl() const; 343*cdf0e10cSrcweir void Lock_Impl( sal_Bool ); 344*cdf0e10cSrcweir void NextObjectBar_Impl( sal_uInt16 nPos ); 345*cdf0e10cSrcweir sal_uInt16 HasNextObjectBar_Impl( sal_uInt16 nPos, String* pStr=0 ); 346*cdf0e10cSrcweir void SetObjectBarCustomizeMode_Impl( sal_Bool ); 347*cdf0e10cSrcweir 348*cdf0e10cSrcweir // Methoden f"ur ChildWindows 349*cdf0e10cSrcweir void UpdateChildWindows_Impl(); 350*cdf0e10cSrcweir void ResetChildWindows_Impl(); 351*cdf0e10cSrcweir void SetChildWindowVisible_Impl( sal_uInt32, sal_Bool, sal_uInt16 ); 352*cdf0e10cSrcweir void ToggleChildWindow_Impl(sal_uInt16,sal_Bool); 353*cdf0e10cSrcweir sal_Bool HasChildWindow_Impl(sal_uInt16); 354*cdf0e10cSrcweir sal_Bool KnowsChildWindow_Impl(sal_uInt16); 355*cdf0e10cSrcweir void ShowChildWindow_Impl(sal_uInt16, sal_Bool bVisible, sal_Bool bSetFocus); 356*cdf0e10cSrcweir void SetChildWindow_Impl(sal_uInt16, sal_Bool bOn, sal_Bool bSetFocus); 357*cdf0e10cSrcweir SfxChildWindow* GetChildWindow_Impl(sal_uInt16); 358*cdf0e10cSrcweir virtual void InitializeChild_Impl(SfxChildWin_Impl*); 359*cdf0e10cSrcweir SfxSplitWindow* GetSplitWindow_Impl(SfxChildAlignment); 360*cdf0e10cSrcweir 361*cdf0e10cSrcweir sal_Bool IsVisible_Impl( sal_uInt16 nMode ) const; 362*cdf0e10cSrcweir void DisableChildWindow_Impl( sal_uInt16 nId, sal_Bool bDisable ); 363*cdf0e10cSrcweir sal_Bool IsFloating( sal_uInt16 nId ); 364*cdf0e10cSrcweir void ChangeWindow_Impl( Window *pNew ); 365*cdf0e10cSrcweir void SetActiveChild_Impl( Window *pChild ); 366*cdf0e10cSrcweir Window* GetActiveChild_Impl(); 367*cdf0e10cSrcweir virtual sal_Bool ActivateNextChild_Impl( sal_Bool bForward = sal_True ); 368*cdf0e10cSrcweir bool AllowChildWindowCreation_Impl( const SfxChildWin_Impl& i_rCW ) const; 369*cdf0e10cSrcweir 370*cdf0e10cSrcweir // Methoden f"ur StatusBar 371*cdf0e10cSrcweir void SetTempStatusBar_Impl( sal_Bool bSet ); 372*cdf0e10cSrcweir void ResetStatusBar_Impl(); 373*cdf0e10cSrcweir void SetStatusBar_Impl(sal_uInt32 nResId, SfxShell *pShell, SfxBindings& ); 374*cdf0e10cSrcweir void UpdateStatusBar_Impl(); 375*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::task::XStatusIndicator > GetStatusIndicator(); 376*cdf0e10cSrcweir ::com::sun::star::uno::Reference< ::com::sun::star::frame::XFrame > GetFrameInterface(); 377*cdf0e10cSrcweir }; 378*cdf0e10cSrcweir 379*cdf0e10cSrcweir class SfxFrameWorkWin_Impl : public SfxWorkWindow 380*cdf0e10cSrcweir { 381*cdf0e10cSrcweir SfxFrame* pMasterFrame; 382*cdf0e10cSrcweir SfxFrame* pFrame; 383*cdf0e10cSrcweir public: 384*cdf0e10cSrcweir SfxFrameWorkWin_Impl( Window* pWin, SfxFrame* pFrm, SfxFrame* pMaster ); 385*cdf0e10cSrcweir virtual void ArrangeChilds_Impl( sal_Bool bForce = sal_True ); 386*cdf0e10cSrcweir virtual void UpdateObjectBars_Impl(); 387*cdf0e10cSrcweir virtual Rectangle GetTopRect_Impl(); 388*cdf0e10cSrcweir }; 389*cdf0e10cSrcweir 390*cdf0e10cSrcweir 391*cdf0e10cSrcweir #endif 392