From 2dc5faa3b3c5dfe31fa8e759323469ef7c9fed3a Mon Sep 17 00:00:00 2001 From: Michael Stahl Date: Wed, 25 Jul 2012 12:23:17 +0200 Subject: move SvStringsISortDtor to editeng/svxacorr.hxx Change-Id: I4465281396f44f53ba87db0a405586294ea65076 --- editeng/inc/editeng/svxacorr.hxx | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) (limited to 'editeng') 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 + +#include #include #include #include @@ -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 +{ +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 -- cgit