LibreOffice Module svx (master)  1
tbxform.hxx
Go to the documentation of this file.
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 
25 class SvxFmAbsRecWin final : public NumericField
26 {
27 public:
28  SvxFmAbsRecWin( vcl::Window* _pParent, SfxToolBoxControl* _pController );
29 
30  virtual void KeyInput( const KeyEvent& rKeyEvt ) override;
31  virtual void LoseFocus() override;
32 
33 private:
34  void FirePosition( bool _bForce );
35 
37  // for invalidating our content when losing the focus
38 };
39 
40 
41 class FixedText;
43 {
44 public:
46 
47  SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
48  virtual ~SvxFmTbxCtlAbsRec() override;
49 
50  virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
51 
52  virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
53  const SfxPoolItem* pState ) override;
54 };
55 
56 
58 {
59 public:
61 
62  SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
63  virtual ~SvxFmTbxCtlRecText() override;
64 
65  virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
66 };
67 
68 
70 {
71 public:
73 
74  SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
75  virtual ~SvxFmTbxCtlRecFromText() override;
76 
77  virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
78 };
79 
80 
82 {
84 
85 public:
87 
88  SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
89  virtual ~SvxFmTbxCtlRecTotal() override;
90 
91  virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
92  virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
93  const SfxPoolItem* pState ) override;
94 };
95 
96 
98 {
99 public:
101  SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
102 };
103 
104 
106 {
107 public:
109  SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
110 };
111 
112 
113 #endif
114 
115 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvxFmTbxCtlAbsRec(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:100
virtual ~SvxFmTbxCtlRecFromText() override
Definition: tbxform.cxx:173
SvxFmAbsRecWin(vcl::Window *_pParent, SfxToolBoxControl *_pController)
Definition: tbxform.cxx:43
SvxFmTbxCtlRecFromText(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:167
sal_Int16 nId
virtual ~SvxFmTbxCtlRecText() override
Definition: tbxform.cxx:148
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: tbxform.cxx:218
virtual ~SvxFmTbxCtlAbsRec() override
Definition: tbxform.cxx:106
virtual ~SvxFmTbxCtlRecTotal() override
Definition: tbxform.cxx:200
SfxToolBoxControl * m_pController
Definition: tbxform.hxx:36
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: tbxform.cxx:111
virtual VclPtr< vcl::Window > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:205
virtual VclPtr< vcl::Window > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:152
SvxFmTbxCtlRecText(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:143
SvxFmTbxCtlRecTotal(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:193
SvxFmTbxPrevRec(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:256
void FirePosition(bool _bForce)
Definition: tbxform.cxx:57
VclPtr< FixedText > pFixedText
Definition: tbxform.hxx:83
SfxItemState
SvxFmTbxNextRec(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:241
virtual void LoseFocus() override
Definition: tbxform.cxx:83
virtual void KeyInput(const KeyEvent &rKeyEvt) override
Definition: tbxform.cxx:89
virtual VclPtr< vcl::Window > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:136
virtual VclPtr< vcl::Window > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:178