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>
24 
25 class SvxFmAbsRecWin final : public InterimItemWindow
26 {
27 public:
28  SvxFmAbsRecWin( vcl::Window* _pParent, SfxToolBoxControl* _pController );
29  virtual void dispose() override;
30  virtual ~SvxFmAbsRecWin() override;
31 
32  void set_text(const OUString& rText) { m_xWidget->set_text(rText); }
33 
34  virtual void GetFocus() override;
35 
36 private:
37  std::unique_ptr<weld::Entry> m_xWidget;
38 
39  DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
40  DECL_LINK(ActivatedHdl, weld::Entry&, bool);
41  DECL_LINK(FocusOutHdl, weld::Widget&, void); // for invalidating our content when losing the focus
42 
43  void FirePosition( bool _bForce );
44 
46 };
47 
49 {
50 public:
52 
53  SvxFmTbxCtlAbsRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
54  virtual ~SvxFmTbxCtlAbsRec() override;
55 
56  virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override;
57 
58  virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
59  const SfxPoolItem* pState ) override;
60 };
61 
63 {
64 public:
66 
67  SvxFmTbxCtlRecText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
68  virtual ~SvxFmTbxCtlRecText() override;
69 
70  virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override;
71 };
72 
74 {
75 public:
77 
78  SvxFmTbxCtlRecFromText( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
79  virtual ~SvxFmTbxCtlRecFromText() override;
80 
81  virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override;
82 };
83 
84 class LabelItemWindow;
85 
87 {
89 
90 public:
92 
93  SvxFmTbxCtlRecTotal( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
94  virtual ~SvxFmTbxCtlRecTotal() override;
95 
96  virtual VclPtr<InterimItemWindow> CreateItemWindow( vcl::Window* pParent ) override;
97  virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
98  const SfxPoolItem* pState ) override;
99 };
100 
101 
103 {
104 public:
106  SvxFmTbxNextRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
107 };
108 
109 
111 {
112 public:
114  SvxFmTbxPrevRec( sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox& rTbx );
115 };
116 
117 
118 #endif
119 
120 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
SvxFmTbxCtlAbsRec(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:108
VclPtr< LabelItemWindow > m_xFixedText
Definition: tbxform.hxx:88
virtual ~SvxFmTbxCtlRecFromText() override
Definition: tbxform.cxx:178
SvxFmAbsRecWin(vcl::Window *_pParent, SfxToolBoxControl *_pController)
Definition: tbxform.cxx:36
SvxFmTbxCtlRecFromText(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:172
sal_Int16 nId
virtual ~SvxFmTbxCtlRecText() override
Definition: tbxform.cxx:156
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: tbxform.cxx:214
virtual ~SvxFmTbxCtlAbsRec() override
Definition: tbxform.cxx:114
virtual ~SvxFmTbxCtlRecTotal() override
Definition: tbxform.cxx:200
SfxToolBoxControl * m_pController
Definition: tbxform.hxx:45
virtual void StateChanged(sal_uInt16 nSID, SfxItemState eState, const SfxPoolItem *pState) override
Definition: tbxform.cxx:118
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:182
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:143
std::unique_ptr< weld::Entry > m_xWidget
Definition: tbxform.hxx:37
virtual void GetFocus() override
Definition: tbxform.cxx:54
SvxFmTbxCtlRecText(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:150
SvxFmTbxCtlRecTotal(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:194
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:160
void set_text(const OUString &rText)
Definition: tbxform.hxx:32
virtual VclPtr< InterimItemWindow > CreateItemWindow(vcl::Window *pParent) override
Definition: tbxform.cxx:204
virtual ~SvxFmAbsRecWin() override
Definition: tbxform.cxx:61
virtual void dispose() override
Definition: tbxform.cxx:48
SvxFmTbxPrevRec(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:249
void FirePosition(bool _bForce)
Definition: tbxform.cxx:66
SfxItemState
SvxFmTbxNextRec(sal_uInt16 nSlotId, sal_uInt16 nId, ToolBox &rTbx)
Definition: tbxform.cxx:234
DECL_LINK(KeyInputHdl, const KeyEvent &, bool)