summaryrefslogtreecommitdiff
path: root/lingucomponent/source
diff options
context:
space:
mode:
Diffstat (limited to 'lingucomponent/source')
-rw-r--r--lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hreg.cxx4
-rw-r--r--lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx48
-rw-r--r--lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.hxx84
-rw-r--r--lingucomponent/source/languageguessing/altstrfunc.cxx2
-rw-r--r--lingucomponent/source/languageguessing/altstrfunc.hxx2
-rw-r--r--lingucomponent/source/languageguessing/guess.cxx2
-rw-r--r--lingucomponent/source/languageguessing/guess.hxx10
-rw-r--r--lingucomponent/source/languageguessing/guesslang.cxx4
-rw-r--r--lingucomponent/source/languageguessing/simpleguesser.cxx2
-rw-r--r--lingucomponent/source/languageguessing/simpleguesser.hxx26
-rw-r--r--lingucomponent/source/lingutil/lingutil.cxx30
-rw-r--r--lingucomponent/source/lingutil/lingutil.hxx4
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macreg.cxx4
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx56
-rw-r--r--lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx94
-rw-r--r--lingucomponent/source/spellcheck/spell/sreg.cxx4
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.cxx48
-rw-r--r--lingucomponent/source/spellcheck/spell/sspellimp.hxx90
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesdta.cxx14
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesdta.hxx18
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.cxx40
-rw-r--r--lingucomponent/source/thesaurus/libnth/nthesimp.hxx64
-rw-r--r--lingucomponent/source/thesaurus/libnth/ntreg.cxx4
23 files changed, 327 insertions, 327 deletions
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hreg.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hreg.cxx
index 1d4fde69ad79..6d2fe012b5a2 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hreg.cxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hreg.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
@@ -31,7 +31,7 @@
-#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>
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
index be160664c562..be2c7242155b 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.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
@@ -33,7 +33,7 @@
#include <com/sun/star/uno/Reference.h>
#include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp>
-#include <cppuhelper/factory.hxx> // helper for factories
+#include <cppuhelper/factory.hxx> // helper for factories
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <i18npool/mslangid.hxx>
#include <unotools/pathoptions.hxx>
@@ -91,7 +91,7 @@ using namespace linguistic;
Hyphenator::Hyphenator() :
- aEvtListeners ( GetLinguMutex() )
+ aEvtListeners ( GetLinguMutex() )
{
bDisposing = FALSE;
pPropHelper = NULL;
@@ -123,11 +123,11 @@ PropertyHelper_Hyphen & Hyphenator::GetPropHelper_Impl()
if (!pPropHelper)
{
- Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY );
+ Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY );
- pPropHelper = new PropertyHelper_Hyphen ((XHyphenator *) this, xPropSet );
+ pPropHelper = new PropertyHelper_Hyphen ((XHyphenator *) this, xPropSet );
xPropHelper = pPropHelper;
- pPropHelper->AddAsPropListener(); //! after a reference is established
+ pPropHelper->AddAsPropListener(); //! after a reference is established
}
return *pPropHelper;
@@ -137,7 +137,7 @@ PropertyHelper_Hyphen & Hyphenator::GetPropHelper_Impl()
Sequence< Locale > SAL_CALL Hyphenator::getLocales()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
// this routine should return the locales supported by the installed
// dictionaries.
@@ -266,7 +266,7 @@ Sequence< Locale > SAL_CALL Hyphenator::getLocales()
sal_Bool SAL_CALL Hyphenator::hasLocale(const Locale& rLocale)
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!aSuppLocales.getLength())
@@ -618,7 +618,7 @@ Reference< XPossibleHyphens > SAL_CALL
lcword = new char[wordlen+1];
hyphens = new char[wordlen+5];
char ** rep = NULL; // replacements of discretionary hyphenation
- int * pos = NULL; // array of [hyphenation point] minus [deletion position]
+ int * pos = NULL; // array of [hyphenation point] minus [deletion position]
int * cut = NULL; // length of deletions in original word
// copy converted word into simple char buffer
@@ -774,7 +774,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -790,7 +790,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -806,7 +806,7 @@ OUString SAL_CALL
Hyphenator::getServiceDisplayName( const Locale& /*rLocale*/ )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return A2OU( "Libhyphen Hyphenator" );
}
@@ -815,14 +815,14 @@ void SAL_CALL
Hyphenator::initialize( const Sequence< Any >& rArguments )
throw(Exception, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!pPropHelper)
{
INT32 nLen = rArguments.getLength();
if (2 == nLen)
{
- Reference< XPropertySet > xPropSet;
+ Reference< XPropertySet > xPropSet;
rArguments.getConstArray()[0] >>= xPropSet;
//rArguments.getConstArray()[1] >>= xDicList;
@@ -832,7 +832,7 @@ void SAL_CALL
//! when the object is not longer used.
pPropHelper = new PropertyHelper_Hyphen( (XHyphenator *) 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" );
@@ -846,12 +846,12 @@ void SAL_CALL
Hyphenator::dispose()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing)
{
bDisposing = TRUE;
- EventObject aEvtObj( (XHyphenator *) this );
+ EventObject aEvtObj( (XHyphenator *) this );
aEvtListeners.disposeAndClear( aEvtObj );
}
}
@@ -861,7 +861,7 @@ void SAL_CALL
Hyphenator::addEventListener( const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing && rxListener.is())
aEvtListeners.addInterface( rxListener );
@@ -872,7 +872,7 @@ void SAL_CALL
Hyphenator::removeEventListener( const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing && rxListener.is())
aEvtListeners.removeInterface( rxListener );
@@ -886,7 +886,7 @@ void SAL_CALL
OUString SAL_CALL Hyphenator::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -895,7 +895,7 @@ OUString SAL_CALL Hyphenator::getImplementationName()
sal_Bool SAL_CALL Hyphenator::supportsService( const OUString& ServiceName )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
Sequence< OUString > aSNL = getSupportedServiceNames();
const OUString * pArray = aSNL.getConstArray();
@@ -909,7 +909,7 @@ sal_Bool SAL_CALL Hyphenator::supportsService( const OUString& ServiceName )
Sequence< OUString > SAL_CALL Hyphenator::getSupportedServiceNames()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
@@ -918,9 +918,9 @@ Sequence< OUString > SAL_CALL Hyphenator::getSupportedServiceNames()
Sequence< OUString > Hyphenator::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_HYPHENATOR );
return aSNS;
}
diff --git a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.hxx b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.hxx
index 71916c4844a9..d7456abc1e73 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.hxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.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
@@ -30,9 +30,9 @@
#ifndef _LINGU2_HYPHENIMP_HXX_
#define _LINGU2_HYPHENIMP_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/implbase6.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/implbase6.hxx> // helper for implementations
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceDisplayName.hpp>
@@ -83,15 +83,15 @@ class Hyphenator :
XServiceDisplayName
>
{
- Sequence< Locale > aSuppLocales;
+ Sequence< Locale > aSuppLocales;
HDInfo * aDicts;
- sal_Int32 numdict;
+ sal_Int32 numdict;
- ::cppu::OInterfaceContainerHelper aEvtListeners;
- Reference< XPropertyChangeListener > xPropHelper;
+ ::cppu::OInterfaceContainerHelper aEvtListeners;
+ Reference< XPropertyChangeListener > xPropHelper;
Reference< XMultiServiceFactory > rSMgr;
linguistic::PropertyHelper_Hyphen * pPropHelper;
- BOOL bDisposing;
+ BOOL bDisposing;
// disallow copy-constructor and assignment-operator for now
Hyphenator(const Hyphenator &);
@@ -105,24 +105,24 @@ class Hyphenator :
public:
Hyphenator();
-
+
virtual ~Hyphenator();
// XSupportedLocales (for XHyphenator)
- 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);
-
+
// XHyphenator
virtual ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenatedWord > SAL_CALL
hyphenate( const ::rtl::OUString& aWord,
const ::com::sun::star::lang::Locale& aLocale,
- sal_Int16 nMaxLeading,
+ sal_Int16 nMaxLeading,
const ::com::sun::star::beans::PropertyValues& aProperties )
throw(::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException);
-
+
virtual ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XHyphenatedWord > SAL_CALL
queryAlternativeSpelling( const ::rtl::OUString& aWord,
const ::com::sun::star::lang::Locale& aLocale,
@@ -130,43 +130,43 @@ public:
const ::com::sun::star::beans::PropertyValues& aProperties )
throw(::com::sun::star::lang::IllegalArgumentException,
::com::sun::star::uno::RuntimeException);
-
+
virtual ::com::sun::star::uno::Reference< ::com::sun::star::linguistic2::XPossibleHyphens > SAL_CALL
createPossibleHyphens( const ::rtl::OUString& aWord,
const ::com::sun::star::lang::Locale& aLocale,
const ::com::sun::star::beans::PropertyValues& aProperties )
throw(::com::sun::star::lang::IllegalArgumentException,
- ::com::sun::star::uno::RuntimeException);
+ ::com::sun::star::uno::RuntimeException);
// XLinguServiceEventBroadcaster
- virtual sal_Bool SAL_CALL
- addLinguServiceEventListener(
- const Reference< XLinguServiceEventListener >& rxLstnr )
+ virtual sal_Bool SAL_CALL
+ addLinguServiceEventListener(
+ const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException);
- virtual sal_Bool SAL_CALL
- removeLinguServiceEventListener(
- const Reference< XLinguServiceEventListener >& rxLstnr )
+ virtual sal_Bool SAL_CALL
+ removeLinguServiceEventListener(
+ const Reference< XLinguServiceEventListener >& rxLstnr )
throw(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);
////////////////////////////////////////////////////////////
@@ -174,20 +174,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();
diff --git a/lingucomponent/source/languageguessing/altstrfunc.cxx b/lingucomponent/source/languageguessing/altstrfunc.cxx
index 35e989a4f7e7..5461a2267ab0 100644
--- a/lingucomponent/source/languageguessing/altstrfunc.cxx
+++ b/lingucomponent/source/languageguessing/altstrfunc.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
diff --git a/lingucomponent/source/languageguessing/altstrfunc.hxx b/lingucomponent/source/languageguessing/altstrfunc.hxx
index 6a45106b9bcf..5ddeda4eea3b 100644
--- a/lingucomponent/source/languageguessing/altstrfunc.hxx
+++ b/lingucomponent/source/languageguessing/altstrfunc.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
diff --git a/lingucomponent/source/languageguessing/guess.cxx b/lingucomponent/source/languageguessing/guess.cxx
index 3885a417a82a..2a377dc0f891 100644
--- a/lingucomponent/source/languageguessing/guess.cxx
+++ b/lingucomponent/source/languageguessing/guess.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
diff --git a/lingucomponent/source/languageguessing/guess.hxx b/lingucomponent/source/languageguessing/guess.hxx
index 5b601ed7c6e9..b05913bb2721 100644
--- a/lingucomponent/source/languageguessing/guess.hxx
+++ b/lingucomponent/source/languageguessing/guess.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
@@ -44,12 +44,12 @@ using namespace std;
*/
class Guess{
public:
-
+
/**
* Default init
*/
Guess();
-
+
/**
* Init from a string like [en-UK-utf8] and the rank
*/
@@ -60,9 +60,9 @@ class Guess{
string GetLanguage();
string GetCountry();
string GetEncoding();
-
+
bool operator==(string lang);
-
+
protected:
string language_str;
string country_str;
diff --git a/lingucomponent/source/languageguessing/guesslang.cxx b/lingucomponent/source/languageguessing/guesslang.cxx
index 0efe7eebf200..d6b2c3c24c05 100644
--- a/lingucomponent/source/languageguessing/guesslang.cxx
+++ b/lingucomponent/source/languageguessing/guesslang.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
@@ -106,7 +106,7 @@ class LangGuess_Impl :
public:
explicit LangGuess_Impl(css::uno::Reference< css::uno::XComponentContext > const & rxContext);
- // XServiceInfo implementation
+ // XServiceInfo implementation
virtual OUString SAL_CALL getImplementationName( ) throw(RuntimeException);
virtual sal_Bool SAL_CALL supportsService( const OUString& ServiceName ) throw(RuntimeException);
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames( ) throw(RuntimeException);
diff --git a/lingucomponent/source/languageguessing/simpleguesser.cxx b/lingucomponent/source/languageguessing/simpleguesser.cxx
index b4c37d490c74..8bc444b8f586 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.cxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.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
diff --git a/lingucomponent/source/languageguessing/simpleguesser.hxx b/lingucomponent/source/languageguessing/simpleguesser.hxx
index 4a164c7e35da..ee76b0781dcf 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.hxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.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
@@ -45,7 +45,7 @@ class SimpleGuesser{
public:
/**inits the object with conf file "./conf.txt"*/
SimpleGuesser();
-
+
/** Compares the current Simpleguesser with an other
* @param SimpleGuesser& sg the other guesser to compare
*/
@@ -55,51 +55,51 @@ public:
* destroy the object
*/
~SimpleGuesser();
-
+
/**
* Analyze a text and return the most probable languages of the text
* @param char* text is the text to analyze
* @return the list of guess
*/
vector<Guess> GuessLanguage(char* text);
-
+
/**
* Analyze a text and return the most probable language of the text
* @param char* text is the text to analyze
* @return the guess (containing language)
*/
Guess GuessPrimaryLanguage(char* text);
-
+
/**
* List all available languages (possibly to be in guesses)
* @return the list of languages
*/
vector<Guess> GetAvailableLanguages();
-
+
/**
* List all languages (possibly in guesses or not)
* @return the list of languages
*/
vector<Guess> GetAllManagedLanguages();
-
+
/**
* List all Unavailable languages (disable for any reason)
* @return the list of languages
*/
vector<Guess> GetUnavailableLanguages();
-
+
/**
* Mark a language enabled
* @param string lang the language to enable (build like language-COUNTRY-encoding)
*/
void EnableLanguage(string lang);
-
+
/**
* Mark a language disabled
* @param string lang the language to disable (build like language-COUNTRY-encoding)
*/
void DisableLanguage(string lang);
-
+
/**
* Load a new DB of fingerprints
* @param const char* thePathOfConfFile self explaining
@@ -108,13 +108,13 @@ public:
void SetDBPath(const char* thePathOfConfFile, const char* prefix);
protected:
-
+
//Where typical fingerprints (n-gram tables) are stored
void* h;
-
+
//Is used to select languages into the fingerprints DB, the mask is used to indicate if we want enabled disabled or both
vector<Guess> GetManagedLanguages(const char mask);
-
+
//Like getManagedLanguages, this function enable or disable a language and it depends of the mask
void XableLanguage(string lang, char mask);
};
diff --git a/lingucomponent/source/lingutil/lingutil.cxx b/lingucomponent/source/lingutil/lingutil.cxx
index de7cdc3f4539..728a67399f3d 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.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
@@ -129,33 +129,33 @@ std::vector< SvtLinguConfigDictionaryEntry > GetOldStyleDics( const char *pDicTy
bool bThes = false;
if (strcmp( pDicType, "DICT" ) == 0)
{
- aFormatName = A2OU("DICT_SPELL");
- aDicExtension = String::CreateFromAscii( ".dic" );
+ aFormatName = A2OU("DICT_SPELL");
+ aDicExtension = String::CreateFromAscii( ".dic" );
#ifdef SYSTEM_DICTS
- aSystemDir = A2OU( DICT_SYSTEM_DIR );
- aSystemSuffix = aDicExtension;
+ aSystemDir = A2OU( DICT_SYSTEM_DIR );
+ aSystemSuffix = aDicExtension;
#endif
bSpell = true;
}
else if (strcmp( pDicType, "HYPH" ) == 0)
{
- aFormatName = A2OU("DICT_HYPH");
- aDicExtension = String::CreateFromAscii( ".dic" );
+ aFormatName = A2OU("DICT_HYPH");
+ aDicExtension = String::CreateFromAscii( ".dic" );
#ifdef SYSTEM_DICTS
- aSystemDir = A2OU( HYPH_SYSTEM_DIR );
- aSystemPrefix = A2OU( "hyph_" );
- aSystemSuffix = aDicExtension;
+ aSystemDir = A2OU( HYPH_SYSTEM_DIR );
+ aSystemPrefix = A2OU( "hyph_" );
+ aSystemSuffix = aDicExtension;
#endif
bHyph = true;
}
else if (strcmp( pDicType, "THES" ) == 0)
{
- aFormatName = A2OU("DICT_THES");
- aDicExtension = String::CreateFromAscii( ".dat" );
+ aFormatName = A2OU("DICT_THES");
+ aDicExtension = String::CreateFromAscii( ".dat" );
#ifdef SYSTEM_DICTS
- aSystemDir = A2OU( THES_SYSTEM_DIR );
- aSystemPrefix = A2OU( "th_" );
- aSystemSuffix = A2OU( "_v2.dat" );
+ aSystemDir = A2OU( THES_SYSTEM_DIR );
+ aSystemPrefix = A2OU( "th_" );
+ aSystemSuffix = A2OU( "_v2.dat" );
#endif
bThes = true;
}
diff --git a/lingucomponent/source/lingutil/lingutil.hxx b/lingucomponent/source/lingutil/lingutil.hxx
index 7b0299c58267..f0fb20de4451 100644
--- a/lingucomponent/source/lingutil/lingutil.hxx
+++ b/lingucomponent/source/lingutil/lingutil.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
@@ -88,7 +88,7 @@ String GetDirectoryPathFromFileURL( const String &rFileURL );
// to be use to get a short path name under Windows that still can be used with
// the 'fopen' call. This is necessary since under Windows there seems to be
// a restriction of only about 110-130 characters length to a path name in order
-// for it to work with 'fopen'. And that length is usually easily exceeded
+// for it to work with 'fopen'. And that length is usually easily exceeded
// when using extensions...
rtl::OString Win_GetShortPathName( const rtl::OUString &rLongPathName );
#endif
diff --git a/lingucomponent/source/spellcheck/macosxspell/macreg.cxx b/lingucomponent/source/spellcheck/macosxspell/macreg.cxx
index 5ca87d292c7c..c9b3cb3f9135 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macreg.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macreg.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>
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
index f9392cf379bd..2b32e810df9d 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.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 <com/sun/star/linguistic2/XSearchableDictionaryList.hpp>
#include <com/sun/star/linguistic2/SpellFailure.hpp>
-#include <cppuhelper/factory.hxx> // helper for factories
+#include <cppuhelper/factory.hxx> // helper for factories
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <tools/debug.hxx>
#include <unotools/processfactory.hxx>
@@ -91,7 +91,7 @@ const sal_Char *dbg_dump(rtl_uString *pStr)
///////////////////////////////////////////////////////////////////////////
MacSpellChecker::MacSpellChecker() :
- aEvtListeners ( GetLinguMutex() )
+ aEvtListeners ( GetLinguMutex() )
{
// aDicts = NULL;
aDEncs = NULL;
@@ -101,7 +101,7 @@ MacSpellChecker::MacSpellChecker() :
pPropHelper = NULL;
numdict = 0;
NSApplicationLoad();
- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
+ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
macSpell = [NSSpellChecker sharedSpellChecker];
macTag = [NSSpellChecker uniqueSpellDocumentTag];
[pool release];
@@ -134,11 +134,11 @@ PropertyHelper_Spell & MacSpellChecker::GetPropHelper_Impl()
{
if (!pPropHelper)
{
- Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY );
+ Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY );
- pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) this, xPropSet );
+ pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) this, xPropSet );
xPropHelper = pPropHelper;
- pPropHelper->AddAsPropListener(); //! after a reference is established
+ pPropHelper->AddAsPropListener(); //! after a reference is established
}
return *pPropHelper;
}
@@ -147,7 +147,7 @@ PropertyHelper_Spell & MacSpellChecker::GetPropHelper_Impl()
Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
// this routine should return the locales supported by the installed
// dictionaries. So here we need to parse both the user edited
@@ -258,7 +258,7 @@ Sequence< Locale > SAL_CALL MacSpellChecker::getLocales()
sal_Bool SAL_CALL MacSpellChecker::hasLocale(const Locale& rLocale)
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!aSuppLocales.getLength())
@@ -302,7 +302,7 @@ INT16 MacSpellChecker::GetSpellFailure( const OUString &rWord, const Locale &rLo
if (n)
{
aEnc = 0;
- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
+ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSString* aNSStr = [[NSString alloc] initWithCharacters: nWord.getStr() length: nWord.getLength()];
NSString* aLang = [[NSString alloc] initWithCharacters: rLocale.Language.getStr() length: rLocale.Language.getLength()];
if(rLocale.Country.getLength()>0)
@@ -343,7 +343,7 @@ sal_Bool SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return TRUE;
@@ -409,7 +409,7 @@ Reference< XSpellAlternatives >
if (n)
{
- NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
+ NSAutoreleasePool* pool = [[NSAutoreleasePool alloc] init];
NSString* aNSStr = [[NSString alloc] initWithCharacters: nWord.getStr() length: nWord.getLength()];
NSString* aLang = [[NSString alloc] initWithCharacters: rLocale.Language.getStr() length: rLocale.Language.getLength() ];
if(rLocale.Country.getLength()>0)
@@ -457,7 +457,7 @@ Reference< XSpellAlternatives > SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return NULL;
@@ -493,7 +493,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -509,7 +509,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -525,7 +525,7 @@ OUString SAL_CALL
MacSpellChecker::getServiceDisplayName( const Locale& /*rLocale*/ )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return A2OU( "Mac OS X Spell Checker" );
}
@@ -534,14 +534,14 @@ void SAL_CALL
MacSpellChecker::initialize( const Sequence< Any >& rArguments )
throw(Exception, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!pPropHelper)
{
INT32 nLen = rArguments.getLength();
if (2 == nLen)
{
- Reference< XPropertySet > xPropSet;
+ Reference< XPropertySet > xPropSet;
rArguments.getConstArray()[0] >>= xPropSet;
//rArguments.getConstArray()[1] >>= xDicList;
@@ -551,7 +551,7 @@ void SAL_CALL
//! when the object is not longer used.
pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) 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" );
@@ -564,12 +564,12 @@ void SAL_CALL
MacSpellChecker::dispose()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing)
{
bDisposing = TRUE;
- EventObject aEvtObj( (XSpellChecker *) this );
+ EventObject aEvtObj( (XSpellChecker *) this );
aEvtListeners.disposeAndClear( aEvtObj );
}
}
@@ -579,7 +579,7 @@ void SAL_CALL
MacSpellChecker::addEventListener( const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing && rxListener.is())
aEvtListeners.addInterface( rxListener );
@@ -590,7 +590,7 @@ void SAL_CALL
MacSpellChecker::removeEventListener( const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing && rxListener.is())
aEvtListeners.removeInterface( rxListener );
@@ -604,7 +604,7 @@ void SAL_CALL
OUString SAL_CALL MacSpellChecker::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -613,7 +613,7 @@ OUString SAL_CALL MacSpellChecker::getImplementationName()
sal_Bool SAL_CALL MacSpellChecker::supportsService( const OUString& ServiceName )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
Sequence< OUString > aSNL = getSupportedServiceNames();
const OUString * pArray = aSNL.getConstArray();
@@ -627,7 +627,7 @@ sal_Bool SAL_CALL MacSpellChecker::supportsService( const OUString& ServiceName
Sequence< OUString > SAL_CALL MacSpellChecker::getSupportedServiceNames()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
@@ -636,9 +636,9 @@ Sequence< OUString > SAL_CALL MacSpellChecker::getSupportedServiceNames()
Sequence< OUString > MacSpellChecker::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_SPELLCHECKER );
return aSNS;
}
diff --git a/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx b/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx
index 36d43c638fc2..624794e3214c 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.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 _MACSPELLIMP_H_
#define _MACSPELLIMP_H_
-#include <uno/lbnames.h> // CPPU_CURRENT_LANGUAGE_BINDING_NAME macro, which specify the environment type
-#include <cppuhelper/implbase1.hxx> // helper for implementations
-#include <cppuhelper/implbase6.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/implbase6.hxx> // helper for implementations
#ifdef MACOSX
#include <premac.h>
@@ -82,13 +82,13 @@ class MacSpellChecker :
Locale * aDLocs;
OUString * aDNames;
sal_Int32 numdict;
- NSSpellChecker * macSpell;
- int macTag; //unique tag for this doc
+ NSSpellChecker * macSpell;
+ int macTag; //unique tag for this doc
- ::cppu::OInterfaceContainerHelper aEvtListeners;
- Reference< XPropertyChangeListener > xPropHelper;
+ ::cppu::OInterfaceContainerHelper aEvtListeners;
+ Reference< XPropertyChangeListener > xPropHelper;
linguistic::PropertyHelper_Spell * pPropHelper;
- BOOL bDisposing;
+ BOOL bDisposing;
// disallow copy-constructor and assignment-operator for now
MacSpellChecker(const MacSpellChecker &);
@@ -100,7 +100,7 @@ class MacSpellChecker :
return pPropHelper ? *pPropHelper : GetPropHelper_Impl();
}
- INT16 GetSpellFailure( const OUString &rWord, const Locale &rLocale );
+ INT16 GetSpellFailure( const OUString &rWord, const Locale &rLocale );
Reference< XSpellAlternatives >
GetProposals( const OUString &rWord, const Locale &rLocale );
@@ -109,54 +109,54 @@ public:
virtual ~MacSpellChecker();
// XSupportedLocales (for XSpellChecker)
- 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);
// XSpellChecker
- virtual sal_Bool SAL_CALL
- isValid( const OUString& rWord, const Locale& rLocale,
- const PropertyValues& rProperties )
- throw(IllegalArgumentException,
+ virtual sal_Bool SAL_CALL
+ isValid( const OUString& rWord, const Locale& rLocale,
+ const PropertyValues& rProperties )
+ throw(IllegalArgumentException,
RuntimeException);
- virtual Reference< XSpellAlternatives > SAL_CALL
- spell( const OUString& rWord, const Locale& rLocale,
- const PropertyValues& rProperties )
- throw(IllegalArgumentException,
+ virtual Reference< XSpellAlternatives > SAL_CALL
+ spell( const OUString& rWord, const Locale& rLocale,
+ const PropertyValues& rProperties )
+ throw(IllegalArgumentException,
RuntimeException);
// XLinguServiceEventBroadcaster
- virtual sal_Bool SAL_CALL
- addLinguServiceEventListener(
- const Reference< XLinguServiceEventListener >& rxLstnr )
+ virtual sal_Bool SAL_CALL
+ addLinguServiceEventListener(
+ const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException);
- virtual sal_Bool SAL_CALL
- removeLinguServiceEventListener(
- const Reference< XLinguServiceEventListener >& rxLstnr )
+ virtual sal_Bool SAL_CALL
+ removeLinguServiceEventListener(
+ const Reference< XLinguServiceEventListener >& rxLstnr )
throw(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);
////////////////////////////////////////////////////////////
@@ -164,20 +164,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();
};
diff --git a/lingucomponent/source/spellcheck/spell/sreg.cxx b/lingucomponent/source/spellcheck/spell/sreg.cxx
index 3508e9b319ba..233f818bba91 100644
--- a/lingucomponent/source/spellcheck/spell/sreg.cxx
+++ b/lingucomponent/source/spellcheck/spell/sreg.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>
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.cxx b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
index 559cffe21e30..1cc0cec62c89 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.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 <com/sun/star/linguistic2/XSearchableDictionaryList.hpp>
#include <com/sun/star/linguistic2/SpellFailure.hpp>
-#include <cppuhelper/factory.hxx> // helper for factories
+#include <cppuhelper/factory.hxx> // helper for factories
#include <com/sun/star/registry/XRegistryKey.hpp>
#include <tools/debug.hxx>
#include <unotools/processfactory.hxx>
@@ -74,7 +74,7 @@ using namespace linguistic;
///////////////////////////////////////////////////////////////////////////
SpellChecker::SpellChecker() :
- aEvtListeners ( GetLinguMutex() )
+ aEvtListeners ( GetLinguMutex() )
{
aDicts = NULL;
aDEncs = NULL;
@@ -112,11 +112,11 @@ PropertyHelper_Spell & SpellChecker::GetPropHelper_Impl()
{
if (!pPropHelper)
{
- Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY );
+ Reference< XPropertySet > xPropSet( GetLinguProperties(), UNO_QUERY );
- pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) this, xPropSet );
+ pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) this, xPropSet );
xPropHelper = pPropHelper;
- pPropHelper->AddAsPropListener(); //! after a reference is established
+ pPropHelper->AddAsPropListener(); //! after a reference is established
}
return *pPropHelper;
}
@@ -252,7 +252,7 @@ Sequence< Locale > SAL_CALL SpellChecker::getLocales()
sal_Bool SAL_CALL SpellChecker::hasLocale(const Locale& rLocale)
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!aSuppLocales.getLength())
@@ -362,7 +362,7 @@ sal_Bool SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return TRUE;
@@ -488,7 +488,7 @@ Reference< XSpellAlternatives > SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return NULL;
@@ -524,7 +524,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -540,7 +540,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -556,7 +556,7 @@ OUString SAL_CALL
SpellChecker::getServiceDisplayName( const Locale& /*rLocale*/ )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return A2OU( "Hunspell SpellChecker" );
}
@@ -565,14 +565,14 @@ void SAL_CALL
SpellChecker::initialize( const Sequence< Any >& rArguments )
throw(Exception, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!pPropHelper)
{
INT32 nLen = rArguments.getLength();
if (2 == nLen)
{
- Reference< XPropertySet > xPropSet;
+ Reference< XPropertySet > xPropSet;
rArguments.getConstArray()[0] >>= xPropSet;
//rArguments.getConstArray()[1] >>= xDicList;
@@ -582,7 +582,7 @@ void SAL_CALL
//! when the object is not longer used.
pPropHelper = new PropertyHelper_Spell( (XSpellChecker *) 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" );
@@ -596,12 +596,12 @@ void SAL_CALL
SpellChecker::dispose()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing)
{
bDisposing = TRUE;
- EventObject aEvtObj( (XSpellChecker *) this );
+ EventObject aEvtObj( (XSpellChecker *) this );
aEvtListeners.disposeAndClear( aEvtObj );
}
}
@@ -611,7 +611,7 @@ void SAL_CALL
SpellChecker::addEventListener( const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing && rxListener.is())
aEvtListeners.addInterface( rxListener );
@@ -622,7 +622,7 @@ void SAL_CALL
SpellChecker::removeEventListener( const Reference< XEventListener >& rxListener )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (!bDisposing && rxListener.is())
aEvtListeners.removeInterface( rxListener );
@@ -636,7 +636,7 @@ void SAL_CALL
OUString SAL_CALL SpellChecker::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -645,7 +645,7 @@ OUString SAL_CALL SpellChecker::getImplementationName()
sal_Bool SAL_CALL SpellChecker::supportsService( const OUString& ServiceName )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
Sequence< OUString > aSNL = getSupportedServiceNames();
const OUString * pArray = aSNL.getConstArray();
@@ -659,7 +659,7 @@ sal_Bool SAL_CALL SpellChecker::supportsService( const OUString& ServiceName )
Sequence< OUString > SAL_CALL SpellChecker::getSupportedServiceNames()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getSupportedServiceNames_Static();
}
@@ -668,9 +668,9 @@ Sequence< OUString > SAL_CALL SpellChecker::getSupportedServiceNames()
Sequence< OUString > SpellChecker::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_SPELLCHECKER );
return aSNS;
}
diff --git a/lingucomponent/source/spellcheck/spell/sspellimp.hxx b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
index 7dfa8ea38ced..937681e117a8 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.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_SPELLIMP_HXX_
#define _LINGU2_SPELLIMP_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/implbase6.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/implbase6.hxx> // helper for implementations
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XInitialization.hpp>
#include <com/sun/star/lang/XServiceDisplayName.hpp>
@@ -76,10 +76,10 @@ class SpellChecker :
OUString * aDNames;
sal_Int32 numdict;
- ::cppu::OInterfaceContainerHelper aEvtListeners;
- Reference< XPropertyChangeListener > xPropHelper;
+ ::cppu::OInterfaceContainerHelper aEvtListeners;
+ Reference< XPropertyChangeListener > xPropHelper;
linguistic::PropertyHelper_Spell * pPropHelper;
- BOOL bDisposing;
+ BOOL bDisposing;
// disallow copy-constructor and assignment-operator for now
SpellChecker(const SpellChecker &);
@@ -91,7 +91,7 @@ class SpellChecker :
return pPropHelper ? *pPropHelper : GetPropHelper_Impl();
}
- INT16 GetSpellFailure( const OUString &rWord, const Locale &rLocale );
+ INT16 GetSpellFailure( const OUString &rWord, const Locale &rLocale );
Reference< XSpellAlternatives >
GetProposals( const OUString &rWord, const Locale &rLocale );
@@ -100,54 +100,54 @@ public:
virtual ~SpellChecker();
// XSupportedLocales (for XSpellChecker)
- 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);
// XSpellChecker
- virtual sal_Bool SAL_CALL
- isValid( const OUString& rWord, const Locale& rLocale,
- const PropertyValues& rProperties )
- throw(IllegalArgumentException,
+ virtual sal_Bool SAL_CALL
+ isValid( const OUString& rWord, const Locale& rLocale,
+ const PropertyValues& rProperties )
+ throw(IllegalArgumentException,
RuntimeException);
- virtual Reference< XSpellAlternatives > SAL_CALL
- spell( const OUString& rWord, const Locale& rLocale,
- const PropertyValues& rProperties )
- throw(IllegalArgumentException,
+ virtual Reference< XSpellAlternatives > SAL_CALL
+ spell( const OUString& rWord, const Locale& rLocale,
+ const PropertyValues& rProperties )
+ throw(IllegalArgumentException,
RuntimeException);
// XLinguServiceEventBroadcaster
- virtual sal_Bool SAL_CALL
- addLinguServiceEventListener(
- const Reference< XLinguServiceEventListener >& rxLstnr )
+ virtual sal_Bool SAL_CALL
+ addLinguServiceEventListener(
+ const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException);
- virtual sal_Bool SAL_CALL
- removeLinguServiceEventListener(
- const Reference< XLinguServiceEventListener >& rxLstnr )
+ virtual sal_Bool SAL_CALL
+ removeLinguServiceEventListener(
+ const Reference< XLinguServiceEventListener >& rxLstnr )
throw(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);
////////////////////////////////////////////////////////////
@@ -155,20 +155,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();
};
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>