From 12024429e295b959001258d790ecac4b074203d0 Mon Sep 17 00:00:00 2001 From: Kohei Yoshida Date: Thu, 31 Mar 2011 22:05:47 -0400 Subject: Cleaned up ScSortParam. Tabs and sal_Bool madness. --- sc/inc/sortparam.hxx | 31 +++++++++++++++---------------- 1 file changed, 15 insertions(+), 16 deletions(-) (limited to 'sc/inc/sortparam.hxx') diff --git a/sc/inc/sortparam.hxx b/sc/inc/sortparam.hxx index 32e19bfa4662..982a124c595e 100644 --- a/sc/inc/sortparam.hxx +++ b/sc/inc/sortparam.hxx @@ -35,8 +35,7 @@ #include #include "scdllapi.h" -#define MAXSORT 3 - +#define MAXSORT 3 struct ScSubTotalParam; struct ScQueryParam; @@ -47,23 +46,23 @@ struct SC_DLLPUBLIC ScSortParam SCROW nRow1; SCCOL nCol2; SCROW nRow2; - sal_Bool bHasHeader; - sal_Bool bByRow; - sal_Bool bCaseSens; - sal_Bool bNaturalSort; - sal_Bool bUserDef; - sal_uInt16 nUserIndex; - sal_Bool bIncludePattern; - sal_Bool bInplace; + bool bHasHeader; + bool bByRow; + bool bCaseSens; + bool bNaturalSort; + bool bUserDef; + sal_uInt16 nUserIndex; + bool bIncludePattern; + bool bInplace; SCTAB nDestTab; SCCOL nDestCol; SCROW nDestRow; - sal_Bool bDoSort[MAXSORT]; + bool bDoSort[MAXSORT]; SCCOLROW nField[MAXSORT]; - sal_Bool bAscending[MAXSORT]; - ::com::sun::star::lang::Locale aCollatorLocale; + bool bAscending[MAXSORT]; + ::com::sun::star::lang::Locale aCollatorLocale; ::rtl::OUString aCollatorAlgorithm; - sal_uInt16 nCompatHeader; + sal_uInt16 nCompatHeader; ScSortParam(); ScSortParam( const ScSortParam& r ); @@ -72,8 +71,8 @@ struct SC_DLLPUBLIC ScSortParam /// TopTen sort ScSortParam( const ScQueryParam&, SCCOL nCol ); - ScSortParam& operator= ( const ScSortParam& r ); - sal_Bool operator== ( const ScSortParam& rOther ) const; + ScSortParam& operator= ( const ScSortParam& r ); + bool operator== ( const ScSortParam& rOther ) const; void Clear (); void MoveToDest(); -- cgit