summaryrefslogtreecommitdiff
path: root/include/sfx2
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-06-17 17:35:36 +0100
committerCaolán McNamara <caolanm@redhat.com>2018-06-18 10:00:51 +0200
commite371a4a164b63ee4373e5ed3b343564c9b79877e (patch)
treee256b896dd2141785cb58bf174ba430ca6b807cc /include/sfx2
parentc67b7d795589aaf8f3396a379ef348bd650cb2dc (diff)
weld SfxManageStyleSheetPage
Change-Id: I3769d294e5a5458d3172c330360f7e6207c3d1b1 Reviewed-on: https://gerrit.libreoffice.org/55961 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/sfx2')
-rw-r--r--include/sfx2/mgetempl.hxx48
1 files changed, 22 insertions, 26 deletions
diff --git a/include/sfx2/mgetempl.hxx b/include/sfx2/mgetempl.hxx
index ded0aab6b0ec..4a2c906ca9c2 100644
--- a/include/sfx2/mgetempl.hxx
+++ b/include/sfx2/mgetempl.hxx
@@ -37,24 +37,6 @@ class SfxStyleSheetBase;
class SfxManageStyleSheetPage final : public SfxTabPage
{
- VclPtr<VclMultiLineEdit> m_pNameRo;
- VclPtr<Edit> m_pNameRw;
-
- VclPtr<CheckBox> m_pAutoCB;
-
- VclPtr<FixedText> m_pFollowFt;
- VclPtr<ListBox> m_pFollowLb;
- VclPtr<PushButton> m_pEditStyleBtn;
-
- VclPtr<FixedText> m_pBaseFt;
- VclPtr<ListBox> m_pBaseLb;
- VclPtr<PushButton> m_pEditLinkStyleBtn;
-
- VclPtr<FixedText> m_pFilterFt;
- VclPtr<ListBox> m_pFilterLb;
-
- VclPtr<FixedText> m_pDescFt;
-
SfxStyleSheetBase *pStyle;
std::unique_ptr<SfxStyleFamilies> pFamilies;
const SfxStyleFamilyItem *pItem;
@@ -67,16 +49,30 @@ class SfxManageStyleSheetPage final : public SfxTabPage
OUString aParent;
SfxStyleSearchBits nFlags;
+ std::unique_ptr<weld::TextView> m_xNameRo;
+ std::unique_ptr<weld::Entry> m_xNameRw;
+ std::unique_ptr<weld::CheckButton> m_xAutoCB;
+ std::unique_ptr<weld::Label> m_xFollowFt;
+ std::unique_ptr<weld::ComboBoxText> m_xFollowLb;
+ std::unique_ptr<weld::Button> m_xEditStyleBtn;
+ std::unique_ptr<weld::Label> m_xBaseFt;
+ std::unique_ptr<weld::ComboBoxText> m_xBaseLb;
+ std::unique_ptr<weld::Button> m_xEditLinkStyleBtn;
+ std::unique_ptr<weld::Label> m_xFilterFt;
+ std::unique_ptr<weld::ComboBoxText> m_xFilterLb;
+ std::unique_ptr<weld::Label> m_xDescFt;
+ std::unique_ptr<weld::Label> m_xNameFt;
+
friend class SfxStyleDialog;
- DECL_LINK( GetFocusHdl, Control&, void );
- DECL_LINK( LoseFocusHdl, Control&, void );
- DECL_LINK( EditStyleSelectHdl_Impl, ListBox&, void );
- DECL_LINK( EditStyleHdl_Impl, Button*, void );
- DECL_LINK( EditLinkStyleSelectHdl_Impl, ListBox&, void );
- DECL_LINK( EditLinkStyleHdl_Impl, Button*, void );
+ DECL_LINK(GetFocusHdl, weld::Widget&, void);
+ DECL_LINK(LoseFocusHdl, weld::Widget&, void);
+ DECL_LINK(EditStyleSelectHdl_Impl, weld::ComboBoxText&, void);
+ DECL_LINK(EditStyleHdl_Impl, weld::Button&, void);
+ DECL_LINK(EditLinkStyleSelectHdl_Impl, weld::ComboBoxText&, void);
+ DECL_LINK(EditLinkStyleHdl_Impl, weld::Button&, void);
- void UpdateName_Impl(ListBox *, const OUString &rNew);
+ void UpdateName_Impl(weld::ComboBoxText*, const OUString &rNew);
void SetDescriptionText_Impl();
virtual ~SfxManageStyleSheetPage() override;
@@ -94,7 +90,7 @@ friend class SfxStyleDialog;
virtual DeactivateRC DeactivatePage(SfxItemSet *) override;
public:
- SfxManageStyleSheetPage(vcl::Window *pParent, const SfxItemSet &rAttrSet );
+ SfxManageStyleSheetPage(TabPageParent pParent, const SfxItemSet &rAttrSet);
};
#endif