summaryrefslogtreecommitdiff
path: root/svx/source/inc/tbxform.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2020-02-09 20:46:52 +0000
committerCaolán McNamara <caolanm@redhat.com>2020-02-10 15:20:40 +0100
commit48a307b69713a244e747b3a4d444d6793d59b8d9 (patch)
treeea67c623b2e4dc156be2bd8a558e367ab8ad354b /svx/source/inc/tbxform.hxx
parentabfdfe6ac1bfc917d1693874f9dec80167e0806f (diff)
weld SvxFmAbsRecWin item window
Change-Id: I6a11d8ba226b28447e2ab04925090491d6953132 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/88348 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'svx/source/inc/tbxform.hxx')
-rw-r--r--svx/source/inc/tbxform.hxx22
1 files changed, 13 insertions, 9 deletions
diff --git a/svx/source/inc/tbxform.hxx b/svx/source/inc/tbxform.hxx
index f436a91b2275..0d80e6e72480 100644
--- a/svx/source/inc/tbxform.hxx
+++ b/svx/source/inc/tbxform.hxx
@@ -20,25 +20,31 @@
#define INCLUDED_SVX_SOURCE_INC_TBXFORM_HXX
#include <sfx2/tbxctrl.hxx>
-#include <vcl/field.hxx>
+#include <sfx2/InterimItemWindow.hxx>
-class SvxFmAbsRecWin final : public NumericField
+class SvxFmAbsRecWin final : public InterimItemWindow
{
public:
SvxFmAbsRecWin( vcl::Window* _pParent, SfxToolBoxControl* _pController );
+ virtual void dispose() override;
+ virtual ~SvxFmAbsRecWin() override;
- virtual void KeyInput( const KeyEvent& rKeyEvt ) override;
- virtual void LoseFocus() override;
+ void set_text(const OUString& rText) { m_xWidget->set_text(rText); }
+
+ virtual void GetFocus() override;
private:
+ std::unique_ptr<weld::Entry> m_xWidget;
+
+ DECL_LINK(KeyInputHdl, const KeyEvent&, bool);
+ DECL_LINK(ActivatedHdl, weld::Entry&, bool);
+ DECL_LINK(FocusOutHdl, weld::Widget&, void); // for invalidating our content when losing the focus
+
void FirePosition( bool _bForce );
SfxToolBoxControl* m_pController;
- // for invalidating our content when losing the focus
};
-
-class FixedText;
class SvxFmTbxCtlAbsRec : public SfxToolBoxControl
{
public:
@@ -53,7 +59,6 @@ public:
const SfxPoolItem* pState ) override;
};
-
class SvxFmTbxCtlRecText : public SfxToolBoxControl
{
public:
@@ -65,7 +70,6 @@ public:
virtual VclPtr<vcl::Window> CreateItemWindow( vcl::Window* pParent ) override;
};
-
class SvxFmTbxCtlRecFromText : public SfxToolBoxControl
{
public: