diff options
author | Michael Meeks <michael.meeks@suse.com> | 2012-12-10 16:57:36 +0000 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-12-10 20:43:45 +0000 |
commit | cccb0bb123ac89a0a4cb8ba335ce5cb64cdc87cf (patch) | |
tree | bbde9f8545c5441163b2f0432e0131ac8f0b79c4 /editeng/inc | |
parent | c479ccc438edeb7197a2d05bdb99067365d7bac0 (diff) |
fdo#55570 - re-factor SvxAutocorrWordList to hide it's innards
Diffstat (limited to 'editeng/inc')
-rw-r--r-- | editeng/inc/editeng/svxacorr.hxx | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/editeng/inc/editeng/svxacorr.hxx b/editeng/inc/editeng/svxacorr.hxx index d8920c130201..1aec424afa8a 100644 --- a/editeng/inc/editeng/svxacorr.hxx +++ b/editeng/inc/editeng/svxacorr.hxx @@ -139,12 +139,22 @@ struct CompareSvxAutocorrWordList { bool operator()( SvxAutocorrWord* const& lhs, SvxAutocorrWord* const& rhs ) const; }; -class EDITENG_DLLPUBLIC SvxAutocorrWordList : public std::set<SvxAutocorrWord*, CompareSvxAutocorrWordList> + +typedef std::set<SvxAutocorrWord*, CompareSvxAutocorrWordList> SvxAutocorrWordList_Base; +class EDITENG_DLLPUBLIC SvxAutocorrWordList : SvxAutocorrWordList_Base { public: + typedef SvxAutocorrWordList_Base::iterator iterator; + typedef std::vector<SvxAutocorrWord *> Content; // free any objects still in the set ~SvxAutocorrWordList(); void DeleteAndDestroyAll(); + bool Insert(SvxAutocorrWord *pWord); + SvxAutocorrWord *FindAndRemove(SvxAutocorrWord *pWord); + void LoadEntry(String sWrong, String sRight, sal_Bool bOnlyTxt); + bool empty() const; + Content getSortedContent() const; + const SvxAutocorrWord* SearchWordsInList(const String& rTxt, xub_StrLen& rStt, xub_StrLen nEndPos) const; }; class EDITENG_DLLPUBLIC SvxAutoCorrectLanguageLists |