diff options
author | Karl Hong <khong@openoffice.org> | 2002-06-18 21:36:32 +0000 |
---|---|---|
committer | Karl Hong <khong@openoffice.org> | 2002-06-18 21:36:32 +0000 |
commit | b0173b2e4c1ce13cd8b2a8e44ad618d6625dce7a (patch) | |
tree | 7934adbeecc7e3ba51832b213affc95125ddb7ce /i18npool/inc/indexentrysupplier.hxx | |
parent | abc65d5612cb2c525183e61e4c0e94a756093188 (diff) |
#99877#First implementation for XExtendedIndexEntrySupplier
Diffstat (limited to 'i18npool/inc/indexentrysupplier.hxx')
-rw-r--r-- | i18npool/inc/indexentrysupplier.hxx | 82 |
1 files changed, 59 insertions, 23 deletions
diff --git a/i18npool/inc/indexentrysupplier.hxx b/i18npool/inc/indexentrysupplier.hxx index 94130168ebbe..b8b82b925fb4 100644 --- a/i18npool/inc/indexentrysupplier.hxx +++ b/i18npool/inc/indexentrysupplier.hxx @@ -2,9 +2,9 @@ * * $RCSfile: indexentrysupplier.hxx,v $ * - * $Revision: 1.6 $ + * $Revision: 1.7 $ * - * last change: $Author: er $ $Date: 2002-03-26 17:57:44 $ + * last change: $Author: khong $ $Date: 2002-06-18 22:34:57 $ * * The Contents of this file are made available subject to the terms of * either of the following licenses @@ -61,7 +61,7 @@ #ifndef _I18N_INDEXENTRYSUPPLIER_HXX_ #define _I18N_INDEXENTRYSUPPLIER_HXX_ -#include <com/sun/star/i18n/XIndexEntrySupplier.hpp> +#include <drafts/com/sun/star/i18n/XExtendedIndexEntrySupplier.hpp> #include <cppuhelper/implbase2.hxx> // helper for implementations #include <com/sun/star/i18n/XCharacterClassification.hpp> #include <com/sun/star/lang/XServiceInfo.hpp> @@ -74,37 +74,73 @@ namespace com { namespace sun { namespace star { namespace i18n { // ---------------------------------------------------- class IndexEntrySupplier : public cppu::WeakImplHelper2 < - XIndexEntrySupplier, + drafts::com::sun::star::i18n::XExtendedIndexEntrySupplier, com::sun::star::lang::XServiceInfo > { - 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 ); - IndexEntrySupplier() {}; // Methods + virtual com::sun::star::uno::Sequence < com::sun::star::lang::Locale > SAL_CALL getLocaleList() + throw (com::sun::star::uno::RuntimeException); + + virtual com::sun::star::uno::Sequence < rtl::OUString > SAL_CALL getAlgorithmList( + const com::sun::star::lang::Locale& rLocale ) + throw (com::sun::star::uno::RuntimeException); + + virtual sal_Bool SAL_CALL loadAlgorithm( + const com::sun::star::lang::Locale& rLocale, + const rtl::OUString& SortAlgorithm, sal_Int32 collatorOptions ) + throw (com::sun::star::uno::RuntimeException); + + virtual sal_Bool SAL_CALL usePhoneticEntry( + const com::sun::star::lang::Locale& rLocale ) + throw (com::sun::star::uno::RuntimeException); + + virtual rtl::OUString SAL_CALL getPhoneticCandidate( const rtl::OUString& IndexEntry, + const com::sun::star::lang::Locale& rLocale ) + throw (com::sun::star::uno::RuntimeException); + + virtual rtl::OUString SAL_CALL getIndexKey( const rtl::OUString& IndexEntry, + const rtl::OUString& PhoneticEntry, const com::sun::star::lang::Locale& rLocale ) + throw (com::sun::star::uno::RuntimeException); + + virtual sal_Int16 SAL_CALL compareIndexEntry( const rtl::OUString& IndexEntry1, + const rtl::OUString& PhoneticEntry1, const com::sun::star::lang::Locale& rLocale1, + const rtl::OUString& IndexEntry2, const ::rtl::OUString& PhoneticEntry2, + const com::sun::star::lang::Locale& rLocale2 ) + 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); + const com::sun::star::lang::Locale& rLocale, 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); + const com::sun::star::lang::Locale& rLocale ) + throw (com::sun::star::uno::RuntimeException); //XServiceInfo - 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 ); + 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 ); + +private: + rtl::OUString aServiceName; + com::sun::star::uno::Reference < XExtendedIndexEntrySupplier > xIES; + com::sun::star::uno::Reference < com::sun::star::lang::XMultiServiceFactory > xMSF; + sal_Bool SAL_CALL createLocaleSpecificIndexEntrySupplier(const rtl::OUString& name) throw( com::sun::star::uno::RuntimeException ); + com::sun::star::uno::Reference < XExtendedIndexEntrySupplier > SAL_CALL getLocaleSpecificIndexEntrySupplier( + const com::sun::star::lang::Locale& rLocale, const rtl::OUString& rSortAlgorithm) throw (com::sun::star::uno::RuntimeException); + +protected: + sal_Char *implementationName; + com::sun::star::lang::Locale aLocale; + rtl::OUString aSortAlgorithm; + friend sal_Bool SAL_CALL operator == (const com::sun::star::lang::Locale& l1, const com::sun::star::lang::Locale& l2); }; } } } } |