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