xref: /trunk/main/sfx2/source/inc/partwnd.hxx (revision 353d8f4d)
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 #ifndef _PARTWND_HXX
24 #define _PARTWND_HXX
25 
26 #include <com/sun/star/uno/Reference.h>
27 
28 namespace com
29 {
30     namespace sun
31     {
32         namespace star
33         {
34             namespace frame
35             {
36                 class XFrame;
37             }
38         }
39     }
40 }
41 
42 #include <sfx2/childwin.hxx>
43 #include <sfx2/dockwin.hxx>
44 
45 // forward ---------------------------------------------------------------
46 
47 // class SfxPartChildWnd_Impl -----------------------------------
48 
49 class SfxPartChildWnd_Impl : public SfxChildWindow
50 {
51 public:
52 	SfxPartChildWnd_Impl( Window* pParent, sal_uInt16 nId,
53 								   SfxBindings* pBindings,
54 								   SfxChildWinInfo* pInfo );
55 
56 	SFX_DECL_CHILDWINDOW(SfxPartChildWnd_Impl);
57                             ~SfxPartChildWnd_Impl();
58 
59 	virtual sal_Bool		QueryClose();
60 };
61 
62 // class SfxExplorerDockWnd_Impl -----------------------------------------
63 
64 class SfxPartDockWnd_Impl : public SfxDockingWindow
65 {
66 private:
67     ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame > m_xFrame;
68 
69 protected:
70 	virtual void 			Resize();
71 	virtual long			Notify( NotifyEvent& rNEvt );
72 
73 public:
74 							SfxPartDockWnd_Impl( SfxBindings* pBindings,
75 								  SfxChildWindow* pChildWin,
76 								  Window* pParent,
77 								  WinBits nBits );
78 
79 							~SfxPartDockWnd_Impl();
80 	sal_Bool					QueryClose();
81 	virtual void    		FillInfo(SfxChildWinInfo&) const;
82     ::com::sun::star::uno::Reference < ::com::sun::star::frame::XFrame > ForgetFrame();
83 };
84 
85 #endif
86 
87