xref: /aoo42x/main/sfx2/inc/sfx2/layout.hxx (revision cdf0e10c)
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 _SFX2_LAYOUT_HXX
29 #define _SFX2_LAYOUT_HXX
30 
31 #include <layout/layout.hxx>
32 #include <sfx2/tabdlg.hxx>
33 #if ENABLE_LAYOUT
34 #undef ENABLE_LAYOUT_SFX_TABDIALOG
35 #define ENABLE_LAYOUT_SFX_TABDIALOG 1
36 #include <sfx2/layout-tabdlg.hxx>
37 #endif
38 
39 class SfxChildWindow;
40 class SfxBindings;
41 
42 namespace layout
43 {
44 
45 class SFX2_DLLPUBLIC SfxDialog
46     : public Dialog
47 {
48 public:
49     SfxDialog (::Window* parent, char const* xml_file, char const* id, SfxBindings* bindings=0, SfxChildWindow* child=0);
50 };
51 
52 #if 0
53 class SFX2_DLLPUBLIC SfxTabDialog
54     : public ::SfxTabDialog
55     , public InPlug
56 {
57 public:
58     SfxTabDialog (::Window *parent, char const* xml_file, char const* id, ResId const& res_id, SfxItemSet const* set=0);
59     ::Window* GetParent () const;
60     void FreeResource ();
61 };
62 #endif
63 
64 class SFX2_DLLPUBLIC SfxTabPage
65     : public ::SfxTabPage
66     , public InPlug
67 {
68 public:
69     SfxTabPage (::Window *parent, char const* xml_file, char const* id, SfxItemSet const* set=0);
70     ::Window* GetParent () const;
71     using ::Window::GetWindow;
72     ::Window* GetWindow () const;
73     Size GetOptimalSize (WindowSizeType eType) const;
74     void FreeResource ();
75 };
76 } // end namespace layout
77 
78 #endif /* _SFX2_LAYOUT_HXX */
79