xref: /AOO41X/main/svx/inc/svx/layctrl.hxx (revision 3334a7e6acdae9820fa1a6f556bb10129a8de6b2)
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 _SVX_LAYCTRL_HXX
24 #define _SVX_LAYCTRL_HXX
25 
26 // include ---------------------------------------------------------------
27 
28 
29 #include <sfx2/tbxctrl.hxx>
30 #include "svx/svxdllapi.h"
31 
32 // class SvxTableToolBoxControl ------------------------------------------
33 
34 class SVX_DLLPUBLIC SvxTableToolBoxControl : public SfxToolBoxControl
35 {
36 private:
37     FASTBOOL    bEnabled;
38 
39 public:
40     virtual SfxPopupWindowType  GetPopupWindowType() const;
41     virtual SfxPopupWindow*     CreatePopupWindow();
42     virtual SfxPopupWindow*     CreatePopupWindowCascading();
43     virtual void                StateChanged( sal_uInt16 nSID,
44                                               SfxItemState eState,
45                                               const SfxPoolItem* pState );
46 
47     SFX_DECL_TOOLBOX_CONTROL();
48 
49     SvxTableToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
50     ~SvxTableToolBoxControl();
51 };
52 
53 // class SvxColumnsToolBoxControl ----------------------------------------
54 
55 class SVX_DLLPUBLIC SvxColumnsToolBoxControl : public SfxToolBoxControl
56 {
57     FASTBOOL    bEnabled;
58 public:
59     virtual SfxPopupWindowType  GetPopupWindowType() const;
60     virtual SfxPopupWindow*     CreatePopupWindow();
61     virtual SfxPopupWindow*     CreatePopupWindowCascading();
62 
63     SFX_DECL_TOOLBOX_CONTROL();
64 
65     SvxColumnsToolBoxControl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
66     ~SvxColumnsToolBoxControl();
67 
68     virtual void                StateChanged( sal_uInt16 nSID,
69                                               SfxItemState eState,
70                                               const SfxPoolItem* pState );
71 };
72 
73 
74 #endif
75 
76