Files
libreoffice/connectivity/source/drivers/kab/korder.hxx
Ivo Hinkelmann 36c4f0a590 INTEGRATION: CWS kdeheaders (1.4.26); FILE MERGED
2006/07/28 14:44:13 ebischoff 1.4.26.1: Wrapping all KDE includes in a single header
2006-08-01 09:25:16 +00:00

88 lines
2.6 KiB
C++

/*************************************************************************
*
* OpenOffice.org - a multi-platform office productivity suite
*
* $RCSfile: korder.hxx,v $
*
* $Revision: 1.5 $
*
* last change: $Author: ihi $ $Date: 2006-08-01 10:25:16 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
*
*
* GNU Lesser General Public License Version 2.1
* =============================================
* Copyright 2005 by Sun Microsystems, Inc.
* 901 San Antonio Road, Palo Alto, CA 94303, USA
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License version 2.1, as published by the Free Software Foundation.
*
* This library 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 for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place, Suite 330, Boston,
* MA 02111-1307 USA
*
************************************************************************/
#ifndef _CONNECTIVITY_KAB_ORDER_HXX_
#define _CONNECTIVITY_KAB_ORDER_HXX_
#ifndef _RTL_USTRING_HXX_
#include "rtl/ustring.hxx"
#endif
#ifndef INCLUDED_VCL_KDE_HEADERS_H
#include <vcl/kde_headers.h>
#endif
#include <vector>
namespace connectivity
{
namespace kab
{
class KabOrder
{
public:
virtual ~KabOrder();
virtual sal_Int32 compare(const ::KABC::Addressee &aAddressee1, const ::KABC::Addressee &aAddressee2) const = 0;
};
class KabSimpleOrder : public KabOrder
{
sal_Int32 m_nFieldNumber;
sal_Bool m_bAscending;
QString value(const ::KABC::Addressee &aAddressee) const;
public:
KabSimpleOrder(::rtl::OUString &sColumnName, sal_Bool bAscending);
virtual sal_Int32 compare(const ::KABC::Addressee &aAddressee1, const ::KABC::Addressee &aAddressee2) const;
};
class KabComplexOrder : public KabOrder
{
::std::vector<KabOrder *> m_aOrders;
public:
KabComplexOrder();
virtual ~KabComplexOrder();
void addOrder(KabOrder *pOrder);
virtual sal_Int32 compare(const ::KABC::Addressee &aAddressee1, const ::KABC::Addressee &aAddressee2) const;
};
}
}
#endif