diff options
Diffstat (limited to 'lingucomponent/source/thesaurus/libnth')
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesdta.cxx | 14 | ||||
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesdta.hxx | 18 | ||||
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesimp.cxx | 40 | ||||
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/nthesimp.hxx | 64 | ||||
-rw-r--r-- | lingucomponent/source/thesaurus/libnth/ntreg.cxx | 4 |
5 files changed, 70 insertions, 70 deletions
diff --git a/lingucomponent/source/thesaurus/libnth/nthesdta.cxx b/lingucomponent/source/thesaurus/libnth/nthesdta.cxx index a3ed73c6150f..35840b9f5d12 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesdta.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesdta.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -47,10 +47,10 @@ using namespace com::sun::star::linguistic2; namespace linguistic { - + /////////////////////////////////////////////////////////////////////////// -Meaning::Meaning( +Meaning::Meaning( #if 0 const OUString &rTerm, INT16 nLang, const PropertyHelper_Thes &rHelper ) : @@ -61,7 +61,7 @@ Meaning::Meaning( aSyn ( Sequence< OUString >(1) ), aTerm (rTerm), nLanguage (nLang) - + { #if 0 // this is for future use by a german thesaurus when one exists @@ -78,7 +78,7 @@ Meaning::~Meaning() OUString SAL_CALL Meaning::getMeaning() throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); return aTerm; } @@ -86,7 +86,7 @@ OUString SAL_CALL Meaning::getMeaning() Sequence< OUString > SAL_CALL Meaning::querySynonyms() throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); return aSyn; } @@ -105,7 +105,7 @@ void Meaning::SetMeaning( const OUString &rTerm ) /////////////////////////////////////////////////////////////////////////// -} // namespace linguistic +} // namespace linguistic diff --git a/lingucomponent/source/thesaurus/libnth/nthesdta.hxx b/lingucomponent/source/thesaurus/libnth/nthesdta.hxx index 989a2ea4b480..fa8b3db6e9b0 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesdta.hxx +++ b/lingucomponent/source/thesaurus/libnth/nthesdta.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -34,8 +34,8 @@ #include <tools/solar.h> -#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type -#include <cppuhelper/implbase1.hxx> // helper for implementations +#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type +#include <cppuhelper/implbase1.hxx> // helper for implementations namespace linguistic @@ -47,13 +47,13 @@ class Meaning : ::com::sun::star::linguistic2::XMeaning > { - ::com::sun::star::uno::Sequence< ::rtl::OUString > aSyn; // list of synonyms, may be empty. - ::rtl::OUString aTerm; - INT16 nLanguage; + ::com::sun::star::uno::Sequence< ::rtl::OUString > aSyn; // list of synonyms, may be empty. + ::rtl::OUString aTerm; + INT16 nLanguage; #if 0 // this is for future use by a German thesaurus - BOOL bIsGermanPreReform; + BOOL bIsGermanPreReform; #endif // disallow copy-constructor and assignment-operator for now @@ -79,7 +79,7 @@ public: // non-interface specific functions void SetSynonyms( - const ::com::sun::star::uno::Sequence< ::rtl::OUString > + const ::com::sun::star::uno::Sequence< ::rtl::OUString > &rSyn ); void SetMeaning(const ::rtl::OUString &rTerm ); @@ -90,7 +90,7 @@ public: /////////////////////////////////////////////////////////////////////////// -} // namespace linguistic +} // namespace linguistic #endif diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx index 834514d71e43..243503ef8576 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -32,7 +32,7 @@ // include <stdio.h> #include <com/sun/star/uno/Reference.h> -#include <cppuhelper/factory.hxx> // helper for factories +#include <cppuhelper/factory.hxx> // helper for factories #include <com/sun/star/registry/XRegistryKey.hpp> #include <com/sun/star/beans/XPropertySet.hpp> #include <i18npool/mslangid.hxx> @@ -92,7 +92,7 @@ static uno::Reference< XLinguServiceManager > GetLngSvcMgr_Impl() } Thesaurus::Thesaurus() : - aEvtListeners ( GetLinguMutex() ) + aEvtListeners ( GetLinguMutex() ) { bDisposing = FALSE; pPropHelper = NULL; @@ -141,11 +141,11 @@ PropertyHelper_Thes & Thesaurus::GetPropHelper_Impl() { if (!pPropHelper) { - Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY ); + Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY ); - pPropHelper = new PropertyHelper_Thes( (XThesaurus *) this, xPropSet ); + pPropHelper = new PropertyHelper_Thes( (XThesaurus *) this, xPropSet ); xPropHelper = pPropHelper; - pPropHelper->AddAsPropListener(); //! after a reference is established + pPropHelper->AddAsPropListener(); //! after a reference is established } return *pPropHelper; } @@ -284,7 +284,7 @@ Sequence< Locale > SAL_CALL Thesaurus::getLocales() sal_Bool SAL_CALL Thesaurus::hasLocale(const Locale& rLocale) throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); BOOL bRes = FALSE; if (!aSuppLocales.getLength()) @@ -567,7 +567,7 @@ OUString SAL_CALL Thesaurus::getServiceDisplayName( const Locale& /*rLocale*/ ) throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); return A2OU( "OpenOffice.org New Thesaurus" ); } @@ -576,14 +576,14 @@ void SAL_CALL Thesaurus::initialize( const Sequence< Any >& rArguments ) throw(Exception, RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); if (!pPropHelper) { INT32 nLen = rArguments.getLength(); if (1 == nLen) { - Reference< XPropertySet > xPropSet; + Reference< XPropertySet > xPropSet; rArguments.getConstArray()[0] >>= xPropSet; //! Pointer allows for access of the non-UNO functions. @@ -592,7 +592,7 @@ void SAL_CALL //! when the object is not longer used. pPropHelper = new PropertyHelper_Thes( (XThesaurus *) this, xPropSet ); xPropHelper = pPropHelper; - pPropHelper->AddAsPropListener(); //! after a reference is established + pPropHelper->AddAsPropListener(); //! after a reference is established } else DBG_ERROR( "wrong number of arguments in sequence" ); @@ -663,12 +663,12 @@ void SAL_CALL Thesaurus::dispose() throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); if (!bDisposing) { bDisposing = TRUE; - EventObject aEvtObj( (XThesaurus *) this ); + EventObject aEvtObj( (XThesaurus *) this ); aEvtListeners.disposeAndClear( aEvtObj ); } } @@ -678,7 +678,7 @@ void SAL_CALL Thesaurus::addEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); if (!bDisposing && rxListener.is()) aEvtListeners.addInterface( rxListener ); @@ -689,7 +689,7 @@ void SAL_CALL Thesaurus::removeEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); if (!bDisposing && rxListener.is()) aEvtListeners.removeInterface( rxListener ); @@ -703,7 +703,7 @@ void SAL_CALL OUString SAL_CALL Thesaurus::getImplementationName() throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); return getImplementationName_Static(); } @@ -711,7 +711,7 @@ OUString SAL_CALL Thesaurus::getImplementationName() sal_Bool SAL_CALL Thesaurus::supportsService( const OUString& ServiceName ) throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); Sequence< OUString > aSNL = getSupportedServiceNames(); const OUString * pArray = aSNL.getConstArray(); @@ -725,7 +725,7 @@ sal_Bool SAL_CALL Thesaurus::supportsService( const OUString& ServiceName ) Sequence< OUString > SAL_CALL Thesaurus::getSupportedServiceNames() throw(RuntimeException) { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); return getSupportedServiceNames_Static(); } @@ -733,9 +733,9 @@ Sequence< OUString > SAL_CALL Thesaurus::getSupportedServiceNames() Sequence< OUString > Thesaurus::getSupportedServiceNames_Static() throw() { - MutexGuard aGuard( GetLinguMutex() ); + MutexGuard aGuard( GetLinguMutex() ); - Sequence< OUString > aSNS( 1 ); // auch mehr als 1 Service moeglich + Sequence< OUString > aSNS( 1 ); // auch mehr als 1 Service moeglich aSNS.getArray()[0] = A2OU( SN_THESAURUS ); return aSNS; } diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx index ef1a0b28ba80..ab7401e62b72 100644 --- a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx +++ b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -29,9 +29,9 @@ #ifndef _LINGU2_THESIMP_HXX_ #define _LINGU2_THESIMP_HXX_ -#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type -#include <cppuhelper/implbase1.hxx> // helper for implementations -#include <cppuhelper/implbase5.hxx> // helper for implementations +#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type +#include <cppuhelper/implbase1.hxx> // helper for implementations +#include <cppuhelper/implbase5.hxx> // helper for implementations #include <com/sun/star/uno/Reference.h> #include <com/sun/star/uno/Sequence.h> #include <com/sun/star/lang/XComponent.hpp> @@ -85,7 +85,7 @@ class Thesaurus : { Sequence< Locale > aSuppLocales; - ::cppu::OInterfaceContainerHelper aEvtListeners; + ::cppu::OInterfaceContainerHelper aEvtListeners; Reference< XPropertyChangeListener > xPropHelper; linguistic::PropertyHelper_Thes * pPropHelper; BOOL bDisposing; @@ -117,39 +117,39 @@ public: virtual ~Thesaurus(); // XSupportedLocales (for XThesaurus) - virtual Sequence< Locale > SAL_CALL - getLocales() + virtual Sequence< Locale > SAL_CALL + getLocales() throw(RuntimeException); - virtual sal_Bool SAL_CALL - hasLocale( const Locale& rLocale ) + virtual sal_Bool SAL_CALL + hasLocale( const Locale& rLocale ) throw(RuntimeException); // XThesaurus - virtual Sequence< Reference < ::com::sun::star::linguistic2::XMeaning > > SAL_CALL - queryMeanings( const OUString& rTerm, const Locale& rLocale, - const PropertyValues& rProperties ) - throw(IllegalArgumentException, + virtual Sequence< Reference < ::com::sun::star::linguistic2::XMeaning > > SAL_CALL + queryMeanings( const OUString& rTerm, const Locale& rLocale, + const PropertyValues& rProperties ) + throw(IllegalArgumentException, RuntimeException); // XServiceDisplayName - virtual OUString SAL_CALL - getServiceDisplayName( const Locale& rLocale ) + virtual OUString SAL_CALL + getServiceDisplayName( const Locale& rLocale ) throw(RuntimeException); // XInitialization - virtual void SAL_CALL - initialize( const Sequence< Any >& rArguments ) + virtual void SAL_CALL + initialize( const Sequence< Any >& rArguments ) throw(Exception, RuntimeException); // XComponent - virtual void SAL_CALL - dispose() + virtual void SAL_CALL + dispose() throw(RuntimeException); - virtual void SAL_CALL - addEventListener( const Reference< XEventListener >& rxListener ) + virtual void SAL_CALL + addEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException); - virtual void SAL_CALL - removeEventListener( const Reference< XEventListener >& rxListener ) + virtual void SAL_CALL + removeEventListener( const Reference< XEventListener >& rxListener ) throw(RuntimeException); //////////////////////////////////////////////////////////// @@ -157,20 +157,20 @@ public: // // XServiceInfo - virtual OUString SAL_CALL - getImplementationName() + virtual OUString SAL_CALL + getImplementationName() throw(RuntimeException); - virtual sal_Bool SAL_CALL - supportsService( const OUString& rServiceName ) + virtual sal_Bool SAL_CALL + supportsService( const OUString& rServiceName ) throw(RuntimeException); - virtual Sequence< OUString > SAL_CALL - getSupportedServiceNames() + virtual Sequence< OUString > SAL_CALL + getSupportedServiceNames() throw(RuntimeException); - static inline OUString + static inline OUString getImplementationName_Static() throw(); - static Sequence< OUString > + static Sequence< OUString > getSupportedServiceNames_Static() throw(); private: @@ -179,7 +179,7 @@ private: OUString SAL_CALL makeUpperCase(const OUString&, CharClass *); OUString SAL_CALL makeInitCap(const OUString&, CharClass *); -/* static ::com::sun::star::uno::Reference< +/* static ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XLinguServiceManager > xLngSvcMgr; static ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XSpellChecker1 > xSpell; diff --git a/lingucomponent/source/thesaurus/libnth/ntreg.cxx b/lingucomponent/source/thesaurus/libnth/ntreg.cxx index 2951652e4bab..27849021b47a 100644 --- a/lingucomponent/source/thesaurus/libnth/ntreg.cxx +++ b/lingucomponent/source/thesaurus/libnth/ntreg.cxx @@ -2,7 +2,7 @@ /************************************************************************* * * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. - * + * * Copyright 2000, 2010 Oracle and/or its affiliates. * * OpenOffice.org - a multi-platform office productivity suite @@ -30,7 +30,7 @@ #include "precompiled_lingucomponent.hxx" -#include <cppuhelper/factory.hxx> // helper for factories +#include <cppuhelper/factory.hxx> // helper for factories #include <rtl/string.hxx> #include <com/sun/star/registry/XRegistryKey.hpp> |