diff options
author | Caolán McNamara <caolanm@redhat.com> | 2013-07-19 13:55:27 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2013-07-19 15:58:02 +0100 |
commit | 420c0b184210b8cdd48527536dc36a444573f408 (patch) | |
tree | ac685959f1c2248ff444f13d5b94c43a128f3671 /cui/source/tabpages/autocdlg.cxx | |
parent | 6f28fa72d68c893dc284a5b47ba08bde0f4a074f (diff) |
convert percent dialog to .ui
Change-Id: I28d15741f4d5408afc5f628bd7416724f7ab2eef
Diffstat (limited to 'cui/source/tabpages/autocdlg.cxx')
-rw-r--r-- | cui/source/tabpages/autocdlg.cxx | 28 |
1 files changed, 11 insertions, 17 deletions
diff --git a/cui/source/tabpages/autocdlg.cxx b/cui/source/tabpages/autocdlg.cxx index 5650ae98e84b..1693f4608929 100644 --- a/cui/source/tabpages/autocdlg.cxx +++ b/cui/source/tabpages/autocdlg.cxx @@ -288,25 +288,19 @@ struct ImpUserData class OfaAutoFmtPrcntSet : public ModalDialog { - OKButton aOKPB; - CancelButton aCancelPB; - FixedLine aPrcntFL; - MetricField aPrcntMF; - - public: - OfaAutoFmtPrcntSet(Window* pParent) : - ModalDialog(pParent, CUI_RES(RID_OFADLG_PRCNT_SET)), - aOKPB(this, CUI_RES(BT_OK)), - aCancelPB(this, CUI_RES(BT_CANCEL)), - aPrcntFL(this, CUI_RES(FL_PRCNT)), - aPrcntMF(this, CUI_RES(ED_RIGHT_MARGIN)) - { - FreeResource(); - } - MetricField& GetPrcntFld(){return aPrcntMF;} + MetricField* m_pPrcntMF; +public: + OfaAutoFmtPrcntSet(Window* pParent) + : ModalDialog(pParent, "PercentDialog","cui/ui/percentdialog.ui") + { + get(m_pPrcntMF, "margin"); + } + MetricField& GetPrcntFld() + { + return *m_pPrcntMF; + } }; - /*********************************************************************/ /* */ /* changed LBoxString */ |