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