From cccb0bb123ac89a0a4cb8ba335ce5cb64cdc87cf Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Mon, 10 Dec 2012 16:57:36 +0000 Subject: fdo#55570 - re-factor SvxAutocorrWordList to hide it's innards --- editeng/inc/editeng/svxacorr.hxx | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'editeng/inc') 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 + +typedef std::set SvxAutocorrWordList_Base; +class EDITENG_DLLPUBLIC SvxAutocorrWordList : SvxAutocorrWordList_Base { public: + typedef SvxAutocorrWordList_Base::iterator iterator; + typedef std::vector 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 -- cgit