summaryrefslogtreecommitdiff
path: root/sw/source/ui/fldui/fldref.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-03-17 19:22:08 +0000
committerCaolán McNamara <caolanm@redhat.com>2019-03-18 22:10:57 +0100
commitc403c86c6da4db0a6f2864ad4e13def9a3898cd4 (patch)
tree3b6e0ca5c6255506989f4312ac7a7723eb359b84 /sw/source/ui/fldui/fldref.hxx
parentcc0b0f94b1888709f45bf63b98761a471f73f041 (diff)
weld SwFieldRefPage
Change-Id: I5ae3965aa681ea1f5a005fbc8dad4d0ce36af1b3 Reviewed-on: https://gerrit.libreoffice.org/69373 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sw/source/ui/fldui/fldref.hxx')
-rw-r--r--sw/source/ui/fldui/fldref.hxx40
1 files changed, 19 insertions, 21 deletions
diff --git a/sw/source/ui/fldui/fldref.hxx b/sw/source/ui/fldui/fldref.hxx
index 15f026adc385..eacf917b5bb5 100644
--- a/sw/source/ui/fldui/fldref.hxx
+++ b/sw/source/ui/fldui/fldref.hxx
@@ -28,22 +28,10 @@
#include "fldpage.hxx"
#include <IDocumentOutlineNodes.hxx>
#include <IDocumentListItems.hxx>
-#include "FldRefTreeListBox.hxx"
class SwTextNode;
class SwFieldRefPage : public SwFieldPage
{
- VclPtr<ListBox> m_pTypeLB;
- VclPtr<VclContainer> m_pSelection;
- VclPtr<ListBox> m_pSelectionLB;
- // #i83479#
- VclPtr<SwFieldRefTreeListBox> m_pSelectionToolTipLB;
- VclPtr<VclContainer> m_pFormat;
- VclPtr<ListBox> m_pFormatLB;
- VclPtr<FixedText> m_pNameFT;
- VclPtr<Edit> m_pNameED;
- VclPtr<Edit> m_pValueED;
- VclPtr<Edit> m_pFilterED;
OUString sBookmarkText;
OUString sFootnoteText;
OUString sEndnoteText;
@@ -60,11 +48,23 @@ class SwFieldRefPage : public SwFieldPage
// fallback, if previously selected text node doesn't exist anymore
size_t mnSavedSelectedPos;
- DECL_LINK(TypeHdl, ListBox&, void);
- DECL_LINK(SubTypeListBoxHdl, ListBox&, void);
- DECL_LINK(SubTypeTreeListBoxHdl, SvTreeListBox*, void);
- DECL_LINK(ModifyHdl, Edit&, void);
- DECL_LINK(ModifyHdl_Impl, Edit&, void);
+ std::unique_ptr<weld::TreeView> m_xTypeLB;
+ std::unique_ptr<weld::Widget> m_xSelection;
+ std::unique_ptr<weld::TreeView> m_xSelectionLB;
+ // #i83479#
+ std::unique_ptr<weld::TreeView> m_xSelectionToolTipLB;
+ std::unique_ptr<weld::Widget> m_xFormat;
+ std::unique_ptr<weld::TreeView> m_xFormatLB;
+ std::unique_ptr<weld::Label> m_xNameFT;
+ std::unique_ptr<weld::Entry> m_xNameED;
+ std::unique_ptr<weld::Entry> m_xValueED;
+ std::unique_ptr<weld::Entry> m_xFilterED;
+
+ DECL_LINK(TypeHdl, weld::TreeView&, void);
+ DECL_LINK(SubTypeListBoxHdl, weld::TreeView&, void);
+ DECL_LINK(SubTypeTreeListBoxHdl, weld::TreeView&, void);
+ DECL_LINK(ModifyHdl, weld::Entry&, void);
+ DECL_LINK(ModifyHdl_Impl, weld::Entry&, void);
void SubTypeHdl();
@@ -81,10 +81,8 @@ protected:
virtual sal_uInt16 GetGroup() override;
public:
- SwFieldRefPage(vcl::Window* pParent, const SfxItemSet* pSet);
-
- virtual ~SwFieldRefPage() override;
- virtual void dispose() override;
+ SwFieldRefPage(TabPageParent pParent, const SfxItemSet* pSet);
+ virtual ~SwFieldRefPage() override;
static VclPtr<SfxTabPage> Create(TabPageParent pParent, const SfxItemSet* rAttrSet);