From 61a690cd79a0c1412d8432a62d48632b5c2adc80 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Wed, 17 Apr 2013 17:19:06 +0100 Subject: convert autocorrect replace to to .ui Change-Id: Id1ea4f5e5f003b4c5c405556a2951943a5ed4fb2 --- cui/source/inc/autocdlg.hxx | 22 +++++++++++----------- cui/source/inc/cuires.hrc | 2 +- cui/source/inc/helpid.hrc | 1 - 3 files changed, 12 insertions(+), 13 deletions(-) (limited to 'cui/source/inc') diff --git a/cui/source/inc/autocdlg.hxx b/cui/source/inc/autocdlg.hxx index 91062f1f8f70..653c0756e6e1 100644 --- a/cui/source/inc/autocdlg.hxx +++ b/cui/source/inc/autocdlg.hxx @@ -196,6 +196,8 @@ class AutoCorrEdit : public Edit public: AutoCorrEdit(Window* pParent, const ResId& rResId) : Edit(pParent, rResId), bSpaces(sal_False){} + AutoCorrEdit(Window* pParent) : + Edit(pParent), bSpaces(sal_False){} void SetActionHdl( const Link& rLink ) { aActionLink = rLink;} @@ -236,17 +238,15 @@ private: StringChangeTable aChangesTable; - CheckBox aTextOnlyCB; - FixedText aShortFT; - AutoCorrEdit aShortED; - FixedText aReplaceFT; - AutoCorrEdit aReplaceED; - SvTabListBox aReplaceTLB; - PushButton aNewReplacePB; - PushButton aDeleteReplacePB; - - String sModify; - String sNew; + CheckBox* m_pTextOnlyCB; + AutoCorrEdit* m_pShortED; + AutoCorrEdit* m_pReplaceED; + SvTabListBox* m_pReplaceTLB; + PushButton* m_pNewReplacePB; + PushButton* m_pDeleteReplacePB; + + OUString sModify; + OUString sNew; std::set aFormatText; DoubleStringTable aDoubleStringTable; diff --git a/cui/source/inc/cuires.hrc b/cui/source/inc/cuires.hrc index e92e13983870..1a013858b551 100644 --- a/cui/source/inc/cuires.hrc +++ b/cui/source/inc/cuires.hrc @@ -115,7 +115,7 @@ #define RID_OFAPAGE_AUTOCOMPLETE_OPTIONS (RID_OFA_START + 119) #define RID_OFAPAGE_AUTOCORR_OPTIONS (RID_OFA_START + 102) #define RID_OFAPAGE_AUTOFMT_APPLY (RID_OFA_START + 110) -#define RID_OFAPAGE_AUTOCORR_REPLACE (RID_OFA_START + 103) + #define RID_OFAPAGE_AUTOCORR_EXCEPT (RID_OFA_START + 104) #define RID_OFAPAGE_AUTOCORR_QUOTE (RID_OFA_START + 109) #define RID_OFADLG_PRCNT_SET (RID_OFA_START + 111) diff --git a/cui/source/inc/helpid.hrc b/cui/source/inc/helpid.hrc index 5c6819282729..7d4831814047 100644 --- a/cui/source/inc/helpid.hrc +++ b/cui/source/inc/helpid.hrc @@ -238,7 +238,6 @@ #define HID_TPCOLOR_CMYK_3 "CUI_HID_TPCOLOR_CMYK_3" #define HID_OFAPAGE_AUTOCORR_OPTIONS "CUI_HID_OFAPAGE_AUTOCORR_OPTIONS" #define HID_OFAPAGE_AUTOFMT_OPTIONS "CUI_HID_OFAPAGE_AUTOFMT_OPTIONS" -#define HID_OFAPAGE_AUTOCORR_REPLACE "CUI_HID_OFAPAGE_AUTOCORR_REPLACE" #define HID_OFACTL_AUTOCORR_REPLACE "CUI_HID_OFACTL_AUTOCORR_REPLACE" #define HID_OFAPAGE_AUTOCORR_EXCEPT "CUI_HID_OFAPAGE_AUTOCORR_EXCEPT" #define HID_OFAPAGE_AUTOCORR_QUOTE "CUI_HID_OFAPAGE_AUTOCORR_QUOTE" -- cgit