xref: /aoo42x/main/sfx2/source/view/viewimp.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_VIEWIMP_HXX
25cdf0e10cSrcweir #define SFX_VIEWIMP_HXX
26cdf0e10cSrcweir 
27cdf0e10cSrcweir // include ---------------------------------------------------------------
28cdf0e10cSrcweir 
29cdf0e10cSrcweir #include <basic/sbxobj.hxx>
30cdf0e10cSrcweir #include <sfx2/viewsh.hxx>
31cdf0e10cSrcweir #include <sfx2/viewfrm.hxx>                  // SvBorder
32cdf0e10cSrcweir #include <osl/mutex.hxx>
33cdf0e10cSrcweir #include <cppuhelper/interfacecontainer.hxx>
34cdf0e10cSrcweir #include <com/sun/star/uno/Sequence.hxx>
35cdf0e10cSrcweir #include <com/sun/star/beans/PropertyValue.hpp>
36cdf0e10cSrcweir #include <svtools/acceleratorexecute.hxx>
37cdf0e10cSrcweir #include <rtl/ref.hxx>
38cdf0e10cSrcweir #include <vcl/print.hxx>
39cdf0e10cSrcweir #include <queue>
40cdf0e10cSrcweir 
41cdf0e10cSrcweir // forward ---------------------------------------------------------------
42cdf0e10cSrcweir 
43cdf0e10cSrcweir class SfxOfficeDispatch;
44cdf0e10cSrcweir class SfxBaseController;
45cdf0e10cSrcweir 
46cdf0e10cSrcweir typedef SfxShell* SfxShellPtr_Impl;
47cdf0e10cSrcweir SV_DECL_PTRARR( SfxShellArr_Impl, SfxShellPtr_Impl, 4, 4 )
48cdf0e10cSrcweir 
49cdf0e10cSrcweir class SfxClipboardChangeListener;
50cdf0e10cSrcweir 
51cdf0e10cSrcweir struct SfxViewShell_Impl
52cdf0e10cSrcweir {
53cdf0e10cSrcweir     ::osl::Mutex                aMutex;
54cdf0e10cSrcweir     ::cppu::OInterfaceContainerHelper aInterceptorContainer;
55cdf0e10cSrcweir     bool                        m_bControllerSet;
56cdf0e10cSrcweir 	SfxShellArr_Impl			aArr;
57cdf0e10cSrcweir 	SvBorder                    aBorder;
58cdf0e10cSrcweir 	Size                        aOptimalSize;
59cdf0e10cSrcweir 	Size						aMargin;
60cdf0e10cSrcweir     sal_uInt16                      m_nPrinterLocks;
61cdf0e10cSrcweir     bool                        m_bCanPrint;
62cdf0e10cSrcweir     bool                        m_bHasPrintOptions;
63cdf0e10cSrcweir     bool                        m_bPlugInsActive;
64cdf0e10cSrcweir     bool                        m_bIsShowView;
65cdf0e10cSrcweir     // FIXME UNUSED ???
66cdf0e10cSrcweir     //bool                        m_bOwnsMenu;
67cdf0e10cSrcweir     bool                        m_bGotOwnership;
68cdf0e10cSrcweir     bool                        m_bGotFrameOwnership;
69cdf0e10cSrcweir     SfxScrollingMode            m_eScroll;
70cdf0e10cSrcweir     sal_uInt16                      m_nFamily;
71cdf0e10cSrcweir     ::rtl::Reference<SfxBaseController> m_pController;
72cdf0e10cSrcweir     ::std::auto_ptr< ::svt::AcceleratorExecute >    m_pAccExec;
73cdf0e10cSrcweir 	com::sun::star::uno::Sequence < com::sun::star::beans::PropertyValue > aPrintOpts;
74cdf0e10cSrcweir     ::rtl::Reference< SfxClipboardChangeListener > xClipboardListener;
75cdf0e10cSrcweir     ::boost::shared_ptr< vcl::PrinterController > m_pPrinterController;
76cdf0e10cSrcweir 
77cdf0e10cSrcweir     SfxViewShell_Impl(sal_uInt16 const nFlags);
78cdf0e10cSrcweir };
79cdf0e10cSrcweir 
80cdf0e10cSrcweir #endif
81cdf0e10cSrcweir 
82