xref: /AOO41X/main/sc/source/ui/inc/tbinsert.hxx (revision 38d50f7b14e1cf975d8c6468d9633894cd59b523)
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 SC_TBINSERT_HXX
25 #define SC_TBINSERT_HXX
26 
27 #include <sfx2/tbxctrl.hxx>
28 
29 //----------------------------------------------------------------------------
30 //
31 //----------------------------------------------------------------------------
32 
33 class ScTbxInsertCtrl : public SfxToolBoxControl
34 {
35     sal_uInt16                  nLastSlotId;
36 
37     using SfxToolBoxControl::Select;
38     virtual void            Select( sal_Bool bMod1 = sal_False );
39 
40 public:
41     SFX_DECL_TOOLBOX_CONTROL();
42 
43     ScTbxInsertCtrl( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rBox );
44     ~ScTbxInsertCtrl();
45 
46     virtual SfxPopupWindowType  GetPopupWindowType() const;
47     virtual SfxPopupWindow*     CreatePopupWindow();
48     virtual void                StateChanged( sal_uInt16 nSID,
49                                               SfxItemState eState,
50                                               const SfxPoolItem* pState );
51 };
52 
53 //----------------------------------------------------------------------------
54 //
55 //----------------------------------------------------------------------------
56 /*
57 class ScTbxInsertPopup : public SfxPopupWindow
58 {
59     SfxToolBoxManager   aTbx;
60     ResId               aRIdWinTemp;
61     ResId               aRIdTbxTemp;
62 
63     Link                aTbxClickHdl;
64 
65     DECL_LINK( TbxSelectHdl, ToolBox* );
66     DECL_LINK( TbxClickHdl, ToolBox* );
67 
68 protected:
69     virtual void        PopupModeEnd();
70 
71 public:
72     ScTbxInsertPopup( sal_uInt16 nId, WindowAlign eAlign,
73                         const ResId& rRIdWin, const ResId& rRIdTbx,
74                         SfxBindings& rBindings );
75     ~ScTbxInsertPopup();
76 
77     virtual SfxPopupWindow* Clone() const;
78     void StartSelection();
79 };
80 */
81 
82 
83 #endif
84 
85