diff options
author | Michael Stahl <mstahl@redhat.com> | 2012-07-25 12:23:17 +0200 |
---|---|---|
committer | Michael Stahl <mstahl@redhat.com> | 2012-07-25 14:13:47 +0200 |
commit | 2dc5faa3b3c5dfe31fa8e759323469ef7c9fed3a (patch) | |
tree | 9b5fbd024fd1c94a4d701801836f7dec60f288c8 /editeng | |
parent | 0031210b26bfae38be4243f9c92d90fa213b9eb0 (diff) |
move SvStringsISortDtor to editeng/svxacorr.hxx
Change-Id: I4465281396f44f53ba87db0a405586294ea65076
Diffstat (limited to 'editeng')
-rw-r--r-- | editeng/inc/editeng/svxacorr.hxx | 22 |
1 files changed, 19 insertions, 3 deletions
diff --git a/editeng/inc/editeng/svxacorr.hxx b/editeng/inc/editeng/svxacorr.hxx index 71d67c9c8d49..b15e63f27d16 100644 --- a/editeng/inc/editeng/svxacorr.hxx +++ b/editeng/inc/editeng/svxacorr.hxx @@ -26,10 +26,12 @@ * ************************************************************************/ -#ifndef _MySVXACORR_HXX -#define _MySVXACORR_HXX +#ifndef EE_SVXACORR_HXX +#define EE_SVXACORR_HXX #include <com/sun/star/embed/XStorage.hpp> + +#include <o3tl/sorted_vector.hxx> #include <tools/rtti.hxx> #include <i18npool/lang.h> #include <tools/time.hxx> @@ -45,12 +47,26 @@ class CharClass; class SfxPoolItem; class SvxAutoCorrect; -class SvStringsISortDtor; class SfxObjectShell; class SotStorageRef; class SotStorage; class Window; +struct CompareSvStringsISortDtor +{ + bool operator()( String* const& lhs, String* const& rhs ) const + { + return lhs->CompareIgnoreCaseToAscii( *rhs ) == COMPARE_LESS; + } +}; + +class SvStringsISortDtor + : public o3tl::sorted_vector<String*, CompareSvStringsISortDtor> +{ +public: + ~SvStringsISortDtor() { DeleteAndDestroyAll(); } +}; + // Auto correct flags const long CptlSttSntnc = 0x00000001; // Capital letters at the beginning of a sentence const long CptlSttWrd = 0x00000002; // not two Capital letters at the beginning of a word |