1 /************************************************************************* 2 * 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 5 * Copyright 2000, 2010 Oracle and/or its affiliates. 6 * 7 * OpenOffice.org - a multi-platform office productivity suite 8 * 9 * This file is part of OpenOffice.org. 10 * 11 * OpenOffice.org is free software: you can redistribute it and/or modify 12 * it under the terms of the GNU Lesser General Public License version 3 13 * only, as published by the Free Software Foundation. 14 * 15 * OpenOffice.org is distributed in the hope that it will be useful, 16 * but WITHOUT ANY WARRANTY; without even the implied warranty of 17 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 * GNU Lesser General Public License version 3 for more details 19 * (a copy is included in the LICENSE file that accompanied this code). 20 * 21 * You should have received a copy of the GNU Lesser General Public License 22 * version 3 along with OpenOffice.org. If not, see 23 * <http://www.openoffice.org/license.html> 24 * for a copy of the LGPLv3 License. 25 * 26 ************************************************************************/ 27 28 #ifndef SFX_VIEWIMP_HXX 29 #define SFX_VIEWIMP_HXX 30 31 // include --------------------------------------------------------------- 32 33 #include <basic/sbxobj.hxx> 34 #include <sfx2/viewsh.hxx> 35 #include <sfx2/viewfrm.hxx> // SvBorder 36 #include <osl/mutex.hxx> 37 #include <cppuhelper/interfacecontainer.hxx> 38 #include <com/sun/star/uno/Sequence.hxx> 39 #include <com/sun/star/beans/PropertyValue.hpp> 40 #include <svtools/acceleratorexecute.hxx> 41 #include <rtl/ref.hxx> 42 #include <vcl/print.hxx> 43 #include <queue> 44 45 // forward --------------------------------------------------------------- 46 47 class SfxOfficeDispatch; 48 class SfxBaseController; 49 50 typedef SfxShell* SfxShellPtr_Impl; 51 SV_DECL_PTRARR( SfxShellArr_Impl, SfxShellPtr_Impl, 4, 4 ) 52 53 class SfxClipboardChangeListener; 54 55 struct SfxViewShell_Impl 56 { 57 ::osl::Mutex aMutex; 58 ::cppu::OInterfaceContainerHelper aInterceptorContainer; 59 bool m_bControllerSet; 60 SfxShellArr_Impl aArr; 61 SvBorder aBorder; 62 Size aOptimalSize; 63 Size aMargin; 64 sal_uInt16 m_nPrinterLocks; 65 bool m_bCanPrint; 66 bool m_bHasPrintOptions; 67 bool m_bPlugInsActive; 68 bool m_bIsShowView; 69 // FIXME UNUSED ??? 70 //bool m_bOwnsMenu; 71 bool m_bGotOwnership; 72 bool m_bGotFrameOwnership; 73 SfxScrollingMode m_eScroll; 74 sal_uInt16 m_nFamily; 75 ::rtl::Reference<SfxBaseController> m_pController; 76 ::std::auto_ptr< ::svt::AcceleratorExecute > m_pAccExec; 77 com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue > aPrintOpts; 78 ::rtl::Reference< SfxClipboardChangeListener > xClipboardListener; 79 ::boost::shared_ptr< vcl::PrinterController > m_pPrinterController; 80 81 SfxViewShell_Impl(sal_uInt16 const nFlags); 82 }; 83 84 #endif 85 86