summaryrefslogtreecommitdiff
path: root/i18npool/inc/indexentrysupplier.hxx
diff options
context:
space:
mode:
authorBustamam Harun <bustamam@openoffice.org>2002-03-26 12:36:40 +0000
committerBustamam Harun <bustamam@openoffice.org>2002-03-26 12:36:40 +0000
commit84321fa5fce83018173a116730a71da0e5d55a7e (patch)
tree95fa80861471cbc88094d6868f725073e524b6ee /i18npool/inc/indexentrysupplier.hxx
parente52b9330d9a804369547d2ac80160664355df977 (diff)
#97583# add Include files
Diffstat (limited to 'i18npool/inc/indexentrysupplier.hxx')
-rw-r--r--i18npool/inc/indexentrysupplier.hxx86
1 files changed, 27 insertions, 59 deletions
diff --git a/i18npool/inc/indexentrysupplier.hxx b/i18npool/inc/indexentrysupplier.hxx
index 89e423788c43..3748576e5ff3 100644
--- a/i18npool/inc/indexentrysupplier.hxx
+++ b/i18npool/inc/indexentrysupplier.hxx
@@ -2,38 +2,17 @@
*
* $RCSfile: indexentrysupplier.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: bustamam $ $Date: 2001-12-14 16:26:08 $
+ * last change: $Author: bustamam $ $Date: 2002-03-26 13:36:40 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
*
- * - GNU Lesser General Public License Version 2.1
* - Sun Industry Standards Source License Version 1.1
*
* Sun Microsystems Inc., October, 2000
*
- * GNU Lesser General Public License Version 2.1
- * =============================================
- * Copyright 2000 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
- *
- *
* Sun Industry Standards Source License Version 1.1
* =================================================
* The contents of this file are subject to the Sun Industry Standards
@@ -58,66 +37,55 @@
*
*
************************************************************************/
-
#ifndef _I18N_INDEXENTRYSUPPLIER_HXX_
#define _I18N_INDEXENTRYSUPPLIER_HXX_
-#ifndef _COM_SUN_STAR_I18N_XINDEXENTRYSUPPLIER_HPP_
#include <com/sun/star/i18n/XIndexEntrySupplier.hpp>
-#endif
-#ifndef _CPPUHELPER_IMPLBASE2_HXX_
#include <cppuhelper/implbase2.hxx> // helper for implementations
-#endif
-#ifndef _COM_SUN_STAR_I18N_XCHARACTERCLASSIFICATION_HPP_
#include <com/sun/star/i18n/XCharacterClassification.hpp>
-#endif
-
-#ifndef _COM_SUN_STAR_LANG_XSERVICEINFO_HPP_
#include <com/sun/star/lang/XServiceInfo.hpp>
-#endif
+#include <tools/list.hxx>
+
+namespace com { namespace sun { namespace star { namespace i18n {
// ----------------------------------------------------
// class IndexEntrySupplier
// ----------------------------------------------------
class IndexEntrySupplier : public cppu::WeakImplHelper2
<
- ::com::sun::star::i18n::XIndexEntrySupplier,
- ::com::sun::star::lang::XServiceInfo
+ XIndexEntrySupplier,
+ com::sun::star::lang::XServiceInfo
>
{
- ::rtl::OUString aServiceName;
- ::com::sun::star::uno::Reference < ::com::sun::star::lang::XMultiServiceFactory > xMSF;
- ::com::sun::star::uno::Reference < ::com::sun::star::i18n::XIndexEntrySupplier > xIES;
+ rtl::OUString aServiceName;
+ com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > xMSF;
+ com::sun::star::uno::Reference < XIndexEntrySupplier > xIES;
+
+ com::sun::star::lang::Locale aLocale;
+ rtl::OUString aSortAlgorithm;
+ sal_Bool SAL_CALL createLocaleSpecificIndexEntrySupplier(const rtl::OUString& name) throw( com::sun::star::uno::RuntimeException );
+ com::sun::star::uno::Reference < XIndexEntrySupplier > SAL_CALL getLocaleSpecificIndexEntrySupplier(
+ const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rSortAlgorithm) throw (com::sun::star::uno::RuntimeException);
protected:
sal_Char *implementationName;
public:
- IndexEntrySupplier( const ::com::sun::star::uno::Reference <
- ::com::sun::star::lang::XMultiServiceFactory >& rxMSF )
- : xMSF( rxMSF ) {
- implementationName = "com.sun.star.i18n.IndexEntrySupplier";
- };
- ~IndexEntrySupplier() {};
+ IndexEntrySupplier( const com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory >& rxMSF );
+ IndexEntrySupplier() {};
// Methods
- virtual ::rtl::OUString SAL_CALL
- getIndexCharacter( const ::rtl::OUString& IndexEntry,
- const ::com::sun::star::lang::Locale& aLocale,
- const ::rtl::OUString& SortAlgorithm )
- throw (::com::sun::star::uno::RuntimeException);
- virtual ::rtl::OUString SAL_CALL
- getIndexFollowPageWord( sal_Bool MorePages,
- const ::com::sun::star::lang::Locale& aLocale )
- throw (::com::sun::star::uno::RuntimeException);
+ virtual rtl::OUString SAL_CALL getIndexCharacter( const rtl::OUString& IndexEntry,
+ const com::sun::star::lang::Locale& aLocale, const rtl::OUString& SortAlgorithm ) throw (com::sun::star::uno::RuntimeException);
+ virtual rtl::OUString SAL_CALL getIndexFollowPageWord( sal_Bool MorePages,
+ const com::sun::star::lang::Locale& aLocale ) throw (com::sun::star::uno::RuntimeException);
//XServiceInfo
- virtual rtl::OUString SAL_CALL getImplementationName(void)
- throw( ::com::sun::star::uno::RuntimeException );
- virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName)
- throw( ::com::sun::star::uno::RuntimeException );
- virtual ::com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames(void)
- throw( ::com::sun::star::uno::RuntimeException );
+ virtual rtl::OUString SAL_CALL getImplementationName() throw( com::sun::star::uno::RuntimeException );
+ virtual sal_Bool SAL_CALL supportsService(const rtl::OUString& ServiceName) throw( com::sun::star::uno::RuntimeException );
+ virtual com::sun::star::uno::Sequence< rtl::OUString > SAL_CALL getSupportedServiceNames() throw( com::sun::star::uno::RuntimeException );
};
+} } } }
+
#endif