diff options
author | Caolán McNamara <caolanm@redhat.com> | 2018-04-09 15:04:02 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2018-04-10 09:51:50 +0200 |
commit | ccbaaa04417eac83f9f521e034a3e62821e4b7f3 (patch) | |
tree | 444eb8925146632f9878c86f80da4424fc088e5f /include | |
parent | 342a5d13dfcca37a68cb996650e1ada868c5ce3e (diff) |
weld SmFontSizeDialog
and give it a parent via SfxRequest::GetFrameWeld
Change-Id: I126c300ce4b3f477fd927efbcc83b1a6d315f594
Reviewed-on: https://gerrit.libreoffice.org/52637
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Caolán McNamara <caolanm@redhat.com>
Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/weld.hxx | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/include/vcl/weld.hxx b/include/vcl/weld.hxx index 6bb4d6541c1f..ebbd505736d4 100644 --- a/include/vcl/weld.hxx +++ b/include/vcl/weld.hxx @@ -465,8 +465,8 @@ protected: void update_width_chars(); public: - MetricSpinButton(SpinButton* pSpinButton) - : m_eSrcUnit(FUNIT_CM) + MetricSpinButton(SpinButton* pSpinButton, FieldUnit eSrcUnit) + : m_eSrcUnit(eSrcUnit) , m_xSpinButton(pSpinButton) { update_width_chars(); @@ -670,9 +670,10 @@ public: virtual RadioButton* weld_radio_button(const OString& id, bool bTakeOwnership = false) = 0; virtual CheckButton* weld_check_button(const OString& id, bool bTakeOwnership = false) = 0; virtual SpinButton* weld_spin_button(const OString& id, bool bTakeOwnership = false) = 0; - MetricSpinButton* weld_metric_spin_button(const OString& id, bool bTakeOwnership = false) + MetricSpinButton* weld_metric_spin_button(const OString& id, FieldUnit eUnit, + bool bTakeOwnership = false) { - return new MetricSpinButton(weld_spin_button(id, bTakeOwnership)); + return new MetricSpinButton(weld_spin_button(id, bTakeOwnership), eUnit); } virtual ComboBoxText* weld_combo_box_text(const OString& id, bool bTakeOwnership = false) = 0; virtual TreeView* weld_tree_view(const OString& id, bool bTakeOwnership = false) = 0; |