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