2010-10-14 08:30:41 +02:00
|
|
|
/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
|
2011-03-31 10:05:04 +02:00
|
|
|
/*
|
|
|
|
* This file is part of the LibreOffice project.
|
|
|
|
*
|
|
|
|
* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
*
|
|
|
|
* This file incorporates work covered by the following license notice:
|
|
|
|
*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed
|
|
|
|
* with this work for additional information regarding copyright
|
|
|
|
* ownership. The ASF licenses this file to you under the Apache
|
|
|
|
* License, Version 2.0 (the "License"); you may not use this file
|
|
|
|
* except in compliance with the License. You may obtain a copy of
|
|
|
|
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
|
|
|
|
*/
|
2013-11-05 02:17:53 +01:00
|
|
|
#ifndef INCLUDED_SW_INC_SORTOPT_HXX
|
|
|
|
#define INCLUDED_SW_INC_SORTOPT_HXX
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-10-20 15:15:42 +01:00
|
|
|
#include <rtl/ustring.hxx>
|
2004-08-23 07:38:22 +00:00
|
|
|
#include "swdllapi.h"
|
2012-05-16 09:35:18 +02:00
|
|
|
#include <vector>
|
2004-08-23 07:38:22 +00:00
|
|
|
|
2000-09-18 16:15:01 +00:00
|
|
|
enum SwSortOrder { SRT_ASCENDING, SRT_DESCENDING };
|
|
|
|
enum SwSortDirection { SRT_COLUMNS, SRT_ROWS };
|
|
|
|
|
2004-08-23 07:38:22 +00:00
|
|
|
struct SW_DLLPUBLIC SwSortKey
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
SwSortKey();
|
2013-10-10 14:21:34 +02:00
|
|
|
SwSortKey( sal_uInt16 nId, const OUString& rSrtType, SwSortOrder eOrder );
|
2001-04-06 07:59:02 +00:00
|
|
|
SwSortKey( const SwSortKey& rOld );
|
2000-09-18 16:15:01 +00:00
|
|
|
|
2013-10-10 14:21:34 +02:00
|
|
|
OUString sSortType;
|
2000-09-18 16:15:01 +00:00
|
|
|
SwSortOrder eSortOrder;
|
2013-10-10 14:21:34 +02:00
|
|
|
sal_uInt16 nColumnId;
|
2012-11-15 00:01:03 +09:00
|
|
|
bool bIsNumeric;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2004-08-23 07:38:22 +00:00
|
|
|
struct SW_DLLPUBLIC SwSortOptions
|
2000-09-18 16:15:01 +00:00
|
|
|
{
|
|
|
|
SwSortOptions();
|
|
|
|
~SwSortOptions();
|
|
|
|
SwSortOptions(const SwSortOptions& rOpt);
|
|
|
|
|
2015-08-03 13:30:17 +02:00
|
|
|
std::vector<SwSortKey*> aKeys;
|
|
|
|
SwSortDirection eDirection;
|
|
|
|
sal_Unicode cDeli;
|
2017-04-17 21:35:35 +02:00
|
|
|
LanguageType nLanguage;
|
2015-08-03 13:30:17 +02:00
|
|
|
bool bTable;
|
|
|
|
bool bIgnoreCase;
|
2000-09-18 16:15:01 +00:00
|
|
|
};
|
|
|
|
|
2013-11-05 02:17:53 +01:00
|
|
|
#endif // INCLUDED_SW_INC_SORTOPT_HXX
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|