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
-rwxr-xr-xlingucomponent/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 448ecc529bf0..defbec837a67 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hreg.cxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hreg.cxx
@@ -1,7 +1,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 <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 3b0871cc36b6..2cdd99740a58 100755
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.cxx
@@ -1,7 +1,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/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 <i18npool/mslangid.hxx>
#include <unotools/pathoptions.hxx>
@@ -93,7 +93,7 @@ using namespace linguistic;
Hyphenator::Hyphenator() :
- aEvtListeners ( GetLinguMutex() )
+ aEvtListeners ( GetLinguMutex() )
{
bDisposing = FALSE;
pPropHelper = NULL;
@@ -125,11 +125,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;
@@ -139,7 +139,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.
@@ -268,7 +268,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())
@@ -620,7 +620,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
@@ -776,7 +776,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -792,7 +792,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -808,7 +808,7 @@ OUString SAL_CALL
Hyphenator::getServiceDisplayName( const Locale& /*rLocale*/ )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return A2OU( "Libhyphen Hyphenator" );
}
@@ -817,14 +817,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;
@@ -834,7 +834,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" );
@@ -848,12 +848,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 );
}
}
@@ -863,7 +863,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 );
@@ -874,7 +874,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 );
@@ -888,7 +888,7 @@ void SAL_CALL
OUString SAL_CALL Hyphenator::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -897,7 +897,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();
@@ -911,7 +911,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();
}
@@ -920,9 +920,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 031217914754..00977732f828 100644
--- a/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.hxx
+++ b/lingucomponent/source/hyphenator/altlinuxhyph/hyphen/hyphenimp.hxx
@@ -1,7 +1,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_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>
@@ -82,15 +82,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 &);
@@ -104,24 +104,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,
@@ -129,43 +129,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);
////////////////////////////////////////////////////////////
@@ -173,20 +173,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 562a3797051b..210285a7ceb2 100644
--- a/lingucomponent/source/languageguessing/altstrfunc.cxx
+++ b/lingucomponent/source/languageguessing/altstrfunc.cxx
@@ -1,7 +1,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 b64b5b778da2..87d339d8d58d 100644
--- a/lingucomponent/source/languageguessing/altstrfunc.hxx
+++ b/lingucomponent/source/languageguessing/altstrfunc.hxx
@@ -1,7 +1,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 85ddc881b7e1..24fe34b4e161 100644
--- a/lingucomponent/source/languageguessing/guess.cxx
+++ b/lingucomponent/source/languageguessing/guess.cxx
@@ -1,7 +1,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 1dd3d765eaed..e007a1ba99a8 100644
--- a/lingucomponent/source/languageguessing/guess.hxx
+++ b/lingucomponent/source/languageguessing/guess.hxx
@@ -1,7 +1,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
@@ -43,12 +43,12 @@ using namespace std;
*/
class Guess{
public:
-
+
/**
* Default init
*/
Guess();
-
+
/**
* Init from a string like [en-UK-utf8] and the rank
*/
@@ -59,9 +59,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 c8486c1bc471..8b864b3c025e 100644
--- a/lingucomponent/source/languageguessing/guesslang.cxx
+++ b/lingucomponent/source/languageguessing/guesslang.cxx
@@ -1,7 +1,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 aa4f670746fd..b6a8ee52768c 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.cxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.cxx
@@ -1,7 +1,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 0d7274063cd2..d10f41bcbcdf 100644
--- a/lingucomponent/source/languageguessing/simpleguesser.hxx
+++ b/lingucomponent/source/languageguessing/simpleguesser.hxx
@@ -1,7 +1,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,7 +44,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
*/
@@ -54,51 +54,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
@@ -107,13 +107,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 ee7d71de4435..142fc4f7b21f 100644
--- a/lingucomponent/source/lingutil/lingutil.cxx
+++ b/lingucomponent/source/lingutil/lingutil.cxx
@@ -1,7 +1,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
@@ -128,33 +128,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 8b45b1f509ad..4edc469cfce3 100644
--- a/lingucomponent/source/lingutil/lingutil.hxx
+++ b/lingucomponent/source/lingutil/lingutil.hxx
@@ -1,7 +1,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
@@ -87,7 +87,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 b60ffffe42e9..bf84b274c45f 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macreg.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macreg.cxx
@@ -1,7 +1,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,7 +29,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 70996793c186..f19802066298 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.cxx
@@ -1,7 +1,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 <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>
@@ -92,7 +92,7 @@ const sal_Char *dbg_dump(rtl_uString *pStr)
///////////////////////////////////////////////////////////////////////////
MacSpellChecker::MacSpellChecker() :
- aEvtListeners ( GetLinguMutex() )
+ aEvtListeners ( GetLinguMutex() )
{
// aDicts = NULL;
aDEncs = NULL;
@@ -102,7 +102,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];
@@ -135,11 +135,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;
}
@@ -148,7 +148,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
@@ -259,7 +259,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())
@@ -303,7 +303,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)
@@ -344,7 +344,7 @@ sal_Bool SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return TRUE;
@@ -410,7 +410,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)
@@ -458,7 +458,7 @@ Reference< XSpellAlternatives > SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return NULL;
@@ -494,7 +494,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -510,7 +510,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -526,7 +526,7 @@ OUString SAL_CALL
MacSpellChecker::getServiceDisplayName( const Locale& /*rLocale*/ )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return A2OU( "Mac OS X Spell Checker" );
}
@@ -535,14 +535,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;
@@ -552,7 +552,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" );
@@ -565,12 +565,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 );
}
}
@@ -580,7 +580,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 );
@@ -591,7 +591,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 );
@@ -605,7 +605,7 @@ void SAL_CALL
OUString SAL_CALL MacSpellChecker::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -614,7 +614,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();
@@ -628,7 +628,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();
}
@@ -637,9 +637,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 b3cfce92fd8b..e681f9a3bc0b 100644
--- a/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx
+++ b/lingucomponent/source/spellcheck/macosxspell/macspellimp.hxx
@@ -1,7 +1,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
@@ -28,9 +28,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>
@@ -81,13 +81,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 &);
@@ -99,7 +99,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 );
@@ -108,54 +108,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);
////////////////////////////////////////////////////////////
@@ -163,20 +163,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 bd97403c89d6..84373bd2cb24 100644
--- a/lingucomponent/source/spellcheck/spell/sreg.cxx
+++ b/lingucomponent/source/spellcheck/spell/sreg.cxx
@@ -1,7 +1,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,7 +29,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 0cb6ad8ec3da..894f9fd3340f 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.cxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.cxx
@@ -1,7 +1,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 <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>
@@ -75,7 +75,7 @@ using namespace linguistic;
///////////////////////////////////////////////////////////////////////////
SpellChecker::SpellChecker() :
- aEvtListeners ( GetLinguMutex() )
+ aEvtListeners ( GetLinguMutex() )
{
aDicts = NULL;
aDEncs = NULL;
@@ -113,11 +113,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;
}
@@ -253,7 +253,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())
@@ -363,7 +363,7 @@ sal_Bool SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return TRUE;
@@ -486,7 +486,7 @@ Reference< XSpellAlternatives > SAL_CALL
const PropertyValues& rProperties )
throw(IllegalArgumentException, RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
if (rLocale == Locale() || !rWord.getLength())
return NULL;
@@ -522,7 +522,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -538,7 +538,7 @@ sal_Bool SAL_CALL
const Reference< XLinguServiceEventListener >& rxLstnr )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
BOOL bRes = FALSE;
if (!bDisposing && rxLstnr.is())
@@ -554,7 +554,7 @@ OUString SAL_CALL
SpellChecker::getServiceDisplayName( const Locale& /*rLocale*/ )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return A2OU( "Hunspell SpellChecker" );
}
@@ -563,14 +563,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;
@@ -580,7 +580,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" );
@@ -594,12 +594,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 );
}
}
@@ -609,7 +609,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 );
@@ -620,7 +620,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 );
@@ -634,7 +634,7 @@ void SAL_CALL
OUString SAL_CALL SpellChecker::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -643,7 +643,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();
@@ -657,7 +657,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();
}
@@ -666,9 +666,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 94c57fa8b742..b87416a3d2c7 100644
--- a/lingucomponent/source/spellcheck/spell/sspellimp.hxx
+++ b/lingucomponent/source/spellcheck/spell/sspellimp.hxx
@@ -1,7 +1,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
@@ -28,9 +28,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>
@@ -75,10 +75,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 &);
@@ -90,7 +90,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 );
@@ -99,54 +99,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);
////////////////////////////////////////////////////////////
@@ -154,20 +154,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 0c071a4eeb1f..a6b0757d6dde 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesdta.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesdta.cxx
@@ -1,7 +1,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
@@ -49,10 +49,10 @@ using namespace com::sun::star::linguistic2;
namespace linguistic
{
-
+
///////////////////////////////////////////////////////////////////////////
-Meaning::Meaning(
+Meaning::Meaning(
#if 0
const OUString &rTerm, INT16 nLang,
const PropertyHelper_Thes &rHelper ) :
@@ -63,7 +63,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
@@ -80,7 +80,7 @@ Meaning::~Meaning()
OUString SAL_CALL Meaning::getMeaning()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return aTerm;
}
@@ -88,7 +88,7 @@ OUString SAL_CALL Meaning::getMeaning()
Sequence< OUString > SAL_CALL Meaning::querySynonyms()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return aSyn;
}
@@ -107,7 +107,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 259bf5454359..c8bfd3c5e374 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesdta.hxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesdta.hxx
@@ -1,7 +1,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,8 +33,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
@@ -46,13 +46,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
@@ -78,7 +78,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 );
@@ -89,7 +89,7 @@ public:
///////////////////////////////////////////////////////////////////////////
-} // namespace linguistic
+} // namespace linguistic
#endif
diff --git a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
index bd6afffdbd6a..dd16850564a7 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.cxx
@@ -1,7 +1,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 <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>
@@ -91,7 +91,7 @@ static uno::Reference< XLinguServiceManager > GetLngSvcMgr_Impl()
}
Thesaurus::Thesaurus() :
- aEvtListeners ( GetLinguMutex() )
+ aEvtListeners ( GetLinguMutex() )
{
bDisposing = FALSE;
pPropHelper = NULL;
@@ -140,11 +140,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;
}
@@ -283,7 +283,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())
@@ -566,7 +566,7 @@ OUString SAL_CALL
Thesaurus::getServiceDisplayName( const Locale& /*rLocale*/ )
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return A2OU( "OpenOffice.org New Thesaurus" );
}
@@ -575,14 +575,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.
@@ -591,7 +591,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" );
@@ -662,12 +662,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 );
}
}
@@ -677,7 +677,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 );
@@ -688,7 +688,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 );
@@ -702,7 +702,7 @@ void SAL_CALL
OUString SAL_CALL Thesaurus::getImplementationName()
throw(RuntimeException)
{
- MutexGuard aGuard( GetLinguMutex() );
+ MutexGuard aGuard( GetLinguMutex() );
return getImplementationName_Static();
}
@@ -710,7 +710,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();
@@ -724,7 +724,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();
}
@@ -732,9 +732,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 94bbb6fb3ea6..f0dde77ba7fc 100644
--- a/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
+++ b/lingucomponent/source/thesaurus/libnth/nthesimp.hxx
@@ -1,7 +1,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
@@ -28,9 +28,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>
@@ -84,7 +84,7 @@ class Thesaurus :
{
Sequence< Locale > aSuppLocales;
- ::cppu::OInterfaceContainerHelper aEvtListeners;
+ ::cppu::OInterfaceContainerHelper aEvtListeners;
Reference< XPropertyChangeListener > xPropHelper;
linguistic::PropertyHelper_Thes * pPropHelper;
BOOL bDisposing;
@@ -116,39 +116,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);
////////////////////////////////////////////////////////////
@@ -156,20 +156,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:
@@ -178,7 +178,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 14b3b3c896d4..ffdca73775db 100644
--- a/lingucomponent/source/thesaurus/libnth/ntreg.cxx
+++ b/lingucomponent/source/thesaurus/libnth/ntreg.cxx
@@ -1,7 +1,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,7 +29,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>