2000-09-18 11:15:01 -05:00
|
|
|
/*************************************************************************
|
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* Copyright 2008 by Sun Microsystems, Inc.
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* OpenOffice.org - a multi-platform office productivity suite
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* $RCSfile: sortopt.hxx,v $
|
|
|
|
* $Revision: 1.7 $
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* This file is part of OpenOffice.org.
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
* only, as published by the Free Software Foundation.
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU Lesser General Public License version 3 for more details
|
|
|
|
* (a copy is included in the LICENSE file that accompanied this code).
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
2008-04-10 05:35:42 -05:00
|
|
|
* You should have received a copy of the GNU Lesser General Public License
|
|
|
|
* version 3 along with OpenOffice.org. If not, see
|
|
|
|
* <http://www.openoffice.org/license.html>
|
|
|
|
* for a copy of the LGPLv3 License.
|
2000-09-18 11:15:01 -05:00
|
|
|
*
|
|
|
|
************************************************************************/
|
|
|
|
#ifndef _SORTOPT_HXX
|
|
|
|
#define _SORTOPT_HXX
|
|
|
|
|
|
|
|
|
|
|
|
#include <svtools/svarray.hxx>
|
2001-04-06 02:59:02 -05:00
|
|
|
#include <tools/string.hxx>
|
2004-08-23 02:38:22 -05:00
|
|
|
#include "swdllapi.h"
|
|
|
|
|
2000-09-18 11:15:01 -05:00
|
|
|
enum SwSortOrder { SRT_ASCENDING, SRT_DESCENDING };
|
|
|
|
enum SwSortDirection { SRT_COLUMNS, SRT_ROWS };
|
|
|
|
|
|
|
|
/*--------------------------------------------------------------------
|
|
|
|
Beschreibung: SortierSchluessel
|
|
|
|
--------------------------------------------------------------------*/
|
2004-08-23 02:38:22 -05:00
|
|
|
struct SW_DLLPUBLIC SwSortKey
|
2000-09-18 11:15:01 -05:00
|
|
|
{
|
|
|
|
SwSortKey();
|
2001-04-06 02:59:02 -05:00
|
|
|
SwSortKey( USHORT nId, const String& rSrtType, SwSortOrder eOrder );
|
|
|
|
SwSortKey( const SwSortKey& rOld );
|
2000-09-18 11:15:01 -05:00
|
|
|
|
2001-04-06 02:59:02 -05:00
|
|
|
String sSortType;
|
2000-09-18 11:15:01 -05:00
|
|
|
SwSortOrder eSortOrder;
|
2001-04-06 02:59:02 -05:00
|
|
|
USHORT nColumnId;
|
|
|
|
BOOL bIsNumeric;
|
2000-09-18 11:15:01 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
SV_DECL_PTRARR(SwSortKeys, SwSortKey*, 3, 1)
|
|
|
|
|
2004-08-23 02:38:22 -05:00
|
|
|
struct SW_DLLPUBLIC SwSortOptions
|
2000-09-18 11:15:01 -05:00
|
|
|
{
|
|
|
|
SwSortOptions();
|
|
|
|
~SwSortOptions();
|
|
|
|
SwSortOptions(const SwSortOptions& rOpt);
|
|
|
|
|
|
|
|
SwSortKeys aKeys;
|
2001-04-04 02:19:14 -05:00
|
|
|
SwSortDirection eDirection;
|
|
|
|
sal_Unicode cDeli;
|
|
|
|
USHORT nLanguage;
|
|
|
|
BOOL bTable;
|
|
|
|
BOOL bIgnoreCase;
|
2000-09-18 11:15:01 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif // _SORTOPT_HXX
|