office-gobmx/sw/inc/sortopt.hxx

73 lines
2.2 KiB
C++
Raw Normal View History

2000-09-18 11:15:01 -05:00
/*************************************************************************
*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
2000-09-18 11:15:01 -05:00
*
* Copyright 2008 by Sun Microsystems, Inc.
2000-09-18 11:15:01 -05:00
*
* OpenOffice.org - a multi-platform office productivity suite
2000-09-18 11:15:01 -05:00
*
* $RCSfile: sortopt.hxx,v $
* $Revision: 1.7 $
2000-09-18 11:15:01 -05:00
*
* This file is part of OpenOffice.org.
2000-09-18 11:15:01 -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
*
* 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
*
* 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>
#include <tools/string.hxx>
#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
--------------------------------------------------------------------*/
struct SW_DLLPUBLIC SwSortKey
2000-09-18 11:15:01 -05:00
{
SwSortKey();
SwSortKey( USHORT nId, const String& rSrtType, SwSortOrder eOrder );
SwSortKey( const SwSortKey& rOld );
2000-09-18 11:15:01 -05:00
String sSortType;
2000-09-18 11:15:01 -05:00
SwSortOrder eSortOrder;
USHORT nColumnId;
BOOL bIsNumeric;
2000-09-18 11:15:01 -05:00
};
SV_DECL_PTRARR(SwSortKeys, SwSortKey*, 3, 1)
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