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 .
|
|
|
|
*/
|
2002-08-23 07:17:26 +00:00
|
|
|
|
|
|
|
#ifndef _TOXWRAP_HXX
|
|
|
|
#define _TOXWRAP_HXX
|
|
|
|
|
|
|
|
#include <tools/solar.h>
|
|
|
|
#include <com/sun/star/lang/Locale.hpp>
|
|
|
|
#include <com/sun/star/uno/Reference.hxx>
|
2004-08-23 07:41:21 +00:00
|
|
|
#include "swdllapi.h"
|
2002-08-23 07:17:26 +00:00
|
|
|
|
2003-04-24 09:52:51 +00:00
|
|
|
namespace com { namespace sun { namespace star {
|
2002-08-23 07:17:26 +00:00
|
|
|
namespace i18n {
|
|
|
|
class XExtendedIndexEntrySupplier;
|
|
|
|
}
|
|
|
|
namespace lang {
|
|
|
|
class XMultiServiceFactory;
|
|
|
|
}
|
2007-09-27 07:13:59 +00:00
|
|
|
}}}
|
2002-08-23 07:17:26 +00:00
|
|
|
|
|
|
|
|
2004-08-23 07:41:21 +00:00
|
|
|
class SW_DLLPUBLIC IndexEntrySupplierWrapper
|
2002-08-23 07:17:26 +00:00
|
|
|
{
|
2012-02-20 17:29:44 +01:00
|
|
|
::com::sun::star::lang::Locale aLcl;
|
|
|
|
::com::sun::star::uno::Reference < com::sun::star::i18n::XExtendedIndexEntrySupplier > xIES;
|
2002-08-23 07:17:26 +00:00
|
|
|
|
|
|
|
public:
|
|
|
|
IndexEntrySupplierWrapper();
|
|
|
|
~IndexEntrySupplierWrapper();
|
|
|
|
|
2012-02-20 17:29:44 +01:00
|
|
|
void SetLocale( const ::com::sun::star::lang::Locale& rLocale ) { aLcl = rLocale; }
|
2002-08-23 07:17:26 +00:00
|
|
|
|
2013-09-17 15:04:53 +02:00
|
|
|
OUString GetIndexKey( const OUString& rTxt, const OUString& rTxtReading,
|
2012-02-20 17:29:44 +01:00
|
|
|
const ::com::sun::star::lang::Locale& rLocale ) const;
|
2002-08-23 07:17:26 +00:00
|
|
|
|
2013-09-17 15:04:53 +02:00
|
|
|
OUString GetFollowingText( sal_Bool bMorePages ) const;
|
2002-08-23 07:17:26 +00:00
|
|
|
|
2013-04-07 12:06:47 +02:00
|
|
|
::com::sun::star::uno::Sequence< OUString >
|
2012-02-20 17:29:44 +01:00
|
|
|
GetAlgorithmList( const ::com::sun::star::lang::Locale& rLcl ) const;
|
2002-08-23 07:17:26 +00:00
|
|
|
|
2012-02-20 17:29:44 +01:00
|
|
|
sal_Bool LoadAlgorithm( const ::com::sun::star::lang::Locale& rLcl,
|
2013-09-17 15:04:53 +02:00
|
|
|
const OUString& sSortAlgorithm, long nOptions ) const;
|
2002-08-23 07:17:26 +00:00
|
|
|
|
2013-09-17 15:04:53 +02:00
|
|
|
sal_Int16 CompareIndexEntry( const OUString& rTxt1, const OUString& rTxtReading1,
|
2012-02-20 17:29:44 +01:00
|
|
|
const ::com::sun::star::lang::Locale& rLcl1,
|
2013-09-17 15:04:53 +02:00
|
|
|
const OUString& rTxt2, const OUString& rTxtReading2,
|
2012-02-20 17:29:44 +01:00
|
|
|
const ::com::sun::star::lang::Locale& rLcl2 ) const;
|
2002-08-23 07:17:26 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|
2010-10-14 08:30:41 +02:00
|
|
|
|
|
|
|
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
|