Line data Source code
1 : /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 : /*
3 : * This file is part of the LibreOffice project.
4 : *
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/.
8 : *
9 : * This file incorporates work covered by the following license notice:
10 : *
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 .
18 : */
19 : #ifndef INCLUDED_SVX_SOURCE_INC_TBXFORM_HXX
20 : #define INCLUDED_SVX_SOURCE_INC_TBXFORM_HXX
21 :
22 : #include <sfx2/tbxctrl.hxx>
23 : #include <vcl/field.hxx>
24 : #include <vcl/dialog.hxx>
25 :
26 : #include <vcl/button.hxx>
27 :
28 :
29 0 : class SvxFmAbsRecWin : public NumericField
30 : {
31 : SfxToolBoxControl* m_pController;
32 : // for invalidating our content whe losing the focus
33 : public:
34 : SvxFmAbsRecWin( vcl::Window* _pParent, SfxToolBoxControl* _pController );
35 :
36 : virtual void KeyInput( const KeyEvent& rKeyEvt ) SAL_OVERRIDE;
37 : virtual void LoseFocus() SAL_OVERRIDE;
38 :
39 : protected:
40 : void FirePosition( bool _bForce );
41 : };
42 :
43 :
44 : class SvxFmTbxCtlConfig : public SfxToolBoxControl
45 : {
46 : private:
47 : sal_uInt16 nLastSlot;
48 :
49 : protected:
50 :
51 : public:
52 : SFX_DECL_TOOLBOX_CONTROL();
53 :
54 : SvxFmTbxCtlConfig( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
55 126 : virtual ~SvxFmTbxCtlConfig() {}
56 :
57 : virtual void Select( sal_uInt16 nSelectModifier ) SAL_OVERRIDE;
58 : virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
59 : const SfxPoolItem* pState ) SAL_OVERRIDE;
60 : virtual SfxPopupWindowType GetPopupWindowType() const SAL_OVERRIDE;
61 : virtual VclPtr<SfxPopupWindow> CreatePopupWindow() SAL_OVERRIDE;
62 : };
63 :
64 :
65 : class FixedText;
66 : class SvxFmTbxCtlAbsRec : public SfxToolBoxControl
67 : {
68 : public:
69 : SFX_DECL_TOOLBOX_CONTROL();
70 :
71 : SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
72 : virtual ~SvxFmTbxCtlAbsRec();
73 :
74 : virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
75 :
76 : virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
77 : const SfxPoolItem* pState ) SAL_OVERRIDE;
78 : };
79 :
80 :
81 : class SvxFmTbxCtlRecText : public SfxToolBoxControl
82 : {
83 : public:
84 : SFX_DECL_TOOLBOX_CONTROL();
85 :
86 : SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
87 : virtual ~SvxFmTbxCtlRecText();
88 :
89 : virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
90 : };
91 :
92 :
93 : class SvxFmTbxCtlRecFromText : public SfxToolBoxControl
94 : {
95 : public:
96 : SFX_DECL_TOOLBOX_CONTROL();
97 :
98 : SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
99 : virtual ~SvxFmTbxCtlRecFromText();
100 :
101 : virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
102 : };
103 :
104 :
105 : class SvxFmTbxCtlRecTotal : public SfxToolBoxControl
106 : {
107 : VclPtr<FixedText> pFixedText;
108 :
109 : public:
110 : SFX_DECL_TOOLBOX_CONTROL();
111 :
112 : SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
113 : virtual ~SvxFmTbxCtlRecTotal();
114 :
115 : virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) SAL_OVERRIDE;
116 : virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
117 : const SfxPoolItem* pState ) SAL_OVERRIDE;
118 : };
119 :
120 :
121 0 : class SvxFmTbxNextRec : public SfxToolBoxControl
122 : {
123 : public:
124 : SFX_DECL_TOOLBOX_CONTROL();
125 : SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
126 : };
127 :
128 :
129 0 : class SvxFmTbxPrevRec : public SfxToolBoxControl
130 : {
131 : public:
132 : SFX_DECL_TOOLBOX_CONTROL();
133 : SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
134 : };
135 :
136 :
137 : #endif
138 :
139 : /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|