bump product version to 4.1.6.2
[LibreOffice.git] / svx / source / inc / tbxform.hxx
blobd5023187dee21214cc78c9076b152aaf95f20c8e
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3 * This file is part of the LibreOffice project.
5 * This Source Code Form is subject to the terms of the Mozilla Public
6 * License, v. 2.0. If a copy of the MPL was not distributed with this
7 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
9 * This file incorporates work covered by the following license notice:
11 * Licensed to the Apache Software Foundation (ASF) under one or more
12 * contributor license agreements. See the NOTICE file distributed
13 * with this work for additional information regarding copyright
14 * ownership. The ASF licenses this file to you under the Apache
15 * License, Version 2.0 (the "License"); you may not use this file
16 * except in compliance with the License. You may obtain a copy of
17 * the License at http://www.apache.org/licenses/LICENSE-2.0 .
19 #ifndef _SVX_TBXFORM_HXX
20 #define _SVX_TBXFORM_HXX
22 #include <sfx2/tbxctrl.hxx>
23 #include <vcl/field.hxx>
24 #include <vcl/dialog.hxx>
26 #include <vcl/button.hxx>
28 //========================================================================
29 class SvxFmAbsRecWin : public NumericField
31 SfxToolBoxControl* m_pController;
32 // for invalidating our content whe losing the focus
33 public:
34 SvxFmAbsRecWin( Window* _pParent, SfxToolBoxControl* _pController );
35 ~SvxFmAbsRecWin();
37 virtual void KeyInput( const KeyEvent& rKeyEvt );
38 virtual void LoseFocus();
40 protected:
41 virtual void FirePosition( sal_Bool _bForce );
45 //========================================================================
46 class SvxFmConfigWin : public SfxPopupWindow
48 private:
49 DECL_LINK( TbxSelectHdl, ToolBox* );
51 public:
52 SvxFmConfigWin( sal_uInt16 nId, ResId aRIdWin, ResId aRIdTbx );
53 ~SvxFmConfigWin();
55 void Update();
56 virtual void PopupModeEnd();
60 //========================================================================
61 class SvxFmTbxCtlConfig : public SfxToolBoxControl
63 private:
64 sal_uInt16 nLastSlot;
66 protected:
67 using SfxToolBoxControl::Select;
69 public:
70 SFX_DECL_TOOLBOX_CONTROL();
72 SvxFmTbxCtlConfig( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
73 ~SvxFmTbxCtlConfig() {}
75 virtual void Select( sal_uInt16 nModifier );
76 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
77 const SfxPoolItem* pState );
78 virtual SfxPopupWindowType GetPopupWindowType() const;
79 virtual SfxPopupWindow* CreatePopupWindow();
82 //========================================================================
83 class FixedText;
84 class SvxFmTbxCtlAbsRec : public SfxToolBoxControl
86 public:
87 SFX_DECL_TOOLBOX_CONTROL();
89 SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
90 ~SvxFmTbxCtlAbsRec();
92 virtual Window* CreateItemWindow( Window* pParent );
94 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
95 const SfxPoolItem* pState );
98 //========================================================================
99 class SvxFmTbxCtlRecText : public SfxToolBoxControl
101 public:
102 SFX_DECL_TOOLBOX_CONTROL();
104 SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
105 ~SvxFmTbxCtlRecText();
107 virtual Window* CreateItemWindow( Window* pParent );
110 //========================================================================
111 class SvxFmTbxCtlRecFromText : public SfxToolBoxControl
113 public:
114 SFX_DECL_TOOLBOX_CONTROL();
116 SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
117 ~SvxFmTbxCtlRecFromText();
119 virtual Window* CreateItemWindow( Window* pParent );
122 //========================================================================
123 class SvxFmTbxCtlRecTotal : public SfxToolBoxControl
125 FixedText* pFixedText;
127 public:
128 SFX_DECL_TOOLBOX_CONTROL();
130 SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
131 ~SvxFmTbxCtlRecTotal();
133 virtual Window* CreateItemWindow( Window* pParent );
134 virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
135 const SfxPoolItem* pState );
138 //========================================================================
139 class SvxFmTbxNextRec : public SfxToolBoxControl
141 public:
142 SFX_DECL_TOOLBOX_CONTROL();
143 SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
146 //========================================================================
147 class SvxFmTbxPrevRec : public SfxToolBoxControl
149 public:
150 SFX_DECL_TOOLBOX_CONTROL();
151 SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
155 #endif
157 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */