LibreOffice Module lingucomponent (master)  1
Public Member Functions | Static Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | List of all members
Hyphenator Class Reference

#include <hyphenimp.hxx>

Inheritance diagram for Hyphenator:
[legend]
Collaboration diagram for Hyphenator:
[legend]

Public Member Functions

 Hyphenator ()
 
virtual ~Hyphenator () override
 
virtual Sequence< Locale > SAL_CALL getLocales () override
 
virtual sal_Bool SAL_CALL hasLocale (const Locale &rLocale) override
 
virtual css::uno::Reference< css::linguistic2::XHyphenatedWord > SAL_CALL hyphenate (const OUString &aWord, const css::lang::Locale &aLocale, sal_Int16 nMaxLeading, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override
 
virtual css::uno::Reference< css::linguistic2::XHyphenatedWord > SAL_CALL queryAlternativeSpelling (const OUString &aWord, const css::lang::Locale &aLocale, sal_Int16 nIndex, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override
 
virtual css::uno::Reference< css::linguistic2::XPossibleHyphens > SAL_CALL createPossibleHyphens (const OUString &aWord, const css::lang::Locale &aLocale, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override
 
virtual sal_Bool SAL_CALL addLinguServiceEventListener (const Reference< XLinguServiceEventListener > &rxLstnr) override
 
virtual sal_Bool SAL_CALL removeLinguServiceEventListener (const Reference< XLinguServiceEventListener > &rxLstnr) override
 
virtual OUString SAL_CALL getServiceDisplayName (const Locale &rLocale) override
 
virtual void SAL_CALL initialize (const Sequence< Any > &rArguments) override
 
virtual void SAL_CALL dispose () override
 
virtual void SAL_CALL addEventListener (const Reference< XEventListener > &rxListener) override
 
virtual void SAL_CALL removeEventListener (const Reference< XEventListener > &rxListener) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Static Public Member Functions

static OUString getImplementationName_Static () throw ()
 
static Sequence< OUString > getSupportedServiceNames_Static () throw ()
 

Private Member Functions

 Hyphenator (const Hyphenator &)=delete
 
Hyphenatoroperator= (const Hyphenator &)=delete
 
linguistic::PropertyHelper_HyphenationGetPropHelper_Impl ()
 
linguistic::PropertyHelper_HyphenationGetPropHelper ()
 

Static Private Member Functions

static OUString makeLowerCase (const OUString &, CharClass const *)
 
static OUString makeUpperCase (const OUString &, CharClass const *)
 
static OUString makeInitCap (const OUString &, CharClass const *)
 

Private Attributes

Sequence< LocaleaSuppLocales
 
std::vector< HDInfomvDicts
 
::comphelper::OInterfaceContainerHelper2 aEvtListeners
 
std::unique_ptr< linguistic::PropertyHelper_HyphenationpPropHelper
 
bool bDisposing
 

Detailed Description

Definition at line 56 of file hyphenimp.hxx.

Constructor & Destructor Documentation

Hyphenator::Hyphenator ( const Hyphenator )
privatedelete
Hyphenator::Hyphenator ( )

Definition at line 69 of file hyphenimp.cxx.

References bDisposing, and GetLinguMutex().

Hyphenator::~Hyphenator ( )
overridevirtual

Definition at line 75 of file hyphenimp.cxx.

References mvDicts, and pPropHelper.

Member Function Documentation

void SAL_CALL Hyphenator::addEventListener ( const Reference< XEventListener > &  rxListener)
overridevirtual
sal_Bool SAL_CALL Hyphenator::addLinguServiceEventListener ( const Reference< XLinguServiceEventListener > &  rxLstnr)
overridevirtual
Reference< XPossibleHyphens > SAL_CALL Hyphenator::createPossibleHyphens ( const OUString &  aWord,
const css::lang::Locale &  aLocale,
const css::uno::Sequence< css::beans::PropertyValue > &  aProperties 
)
overridevirtual
void SAL_CALL Hyphenator::dispose ( void  )
overridevirtual
OUString SAL_CALL Hyphenator::getImplementationName ( )
overridevirtual

Definition at line 787 of file hyphenimp.cxx.

References getImplementationName_Static().

OUString Hyphenator::getImplementationName_Static ( )
throw (
)
inlinestatic

Definition at line 126 of file hyphenimp.hxx.

Referenced by getImplementationName(), and hyphen_component_getFactory().

Sequence< Locale > SAL_CALL Hyphenator::getLocales ( )
overridevirtual

! for compatibility with old dictionaries (the ones not using extensions ! or new configuration entries, but still using the dictionary.lst file) ! Get the list of old style spell checking dictionaries to use...

For each dictionary and each locale we need a separate entry. If this results in more than one dictionary per locale than (for now) it is undefined which dictionary gets used. In the future the implementation should support using several dictionaries for one locale.

Definition at line 101 of file hyphenimp.cxx.

References aSuppLocales, comphelper::containerToSequence(), LanguageTag::convertToLocale(), DBG_ASSERT, SvtLinguConfig::GetActiveDictionariesByFormat(), GetLinguMutex(), LanguageTag::getLocale(), GetOldStyleDics(), SvtLinguConfig::GetSupportedDictionaryFormatsFor(), MergeNewStyleDicsAndOldStyleDics(), mvDicts, and nPos.

Referenced by hasLocale().

linguistic::PropertyHelper_Hyphenation& Hyphenator::GetPropHelper ( )
inlineprivate
PropertyHelper_Hyphenation & Hyphenator::GetPropHelper_Impl ( )
private

after a reference is established

Definition at line 89 of file hyphenimp.cxx.

References GetLinguProperties(), and pPropHelper.

Referenced by GetPropHelper().

OUString SAL_CALL Hyphenator::getServiceDisplayName ( const Locale rLocale)
overridevirtual

Definition at line 721 of file hyphenimp.cxx.

References Translate::Create(), and Translate::get().

Sequence< OUString > SAL_CALL Hyphenator::getSupportedServiceNames ( )
overridevirtual

Definition at line 797 of file hyphenimp.cxx.

References getSupportedServiceNames_Static().

Sequence< OUString > Hyphenator::getSupportedServiceNames_Static ( )
throw (
)
static

Definition at line 802 of file hyphenimp.cxx.

References SN_HYPHENATOR.

Referenced by getSupportedServiceNames(), and hyphen_component_getFactory().

sal_Bool SAL_CALL Hyphenator::hasLocale ( const Locale rLocale)
overridevirtual

Definition at line 209 of file hyphenimp.cxx.

References aSuppLocales, comphelper::findValue(), GetLinguMutex(), and getLocales().

Reference< XHyphenatedWord > SAL_CALL Hyphenator::hyphenate ( const OUString &  aWord,
const css::lang::Locale &  aLocale,
sal_Int16  nMaxLeading,
const css::uno::Sequence< css::beans::PropertyValue > &  aProperties 
)
overridevirtual
void SAL_CALL Hyphenator::initialize ( const Sequence< Any > &  rArguments)
overridevirtual

Pointer allows for access of the non-UNO functions. And the reference to the UNO-functions while increasing the ref-count and will implicitly free the memory when the object is no longer used.

after a reference is established

Definition at line 727 of file hyphenimp.cxx.

References GetLinguMutex(), and pPropHelper.

OUString Hyphenator::makeInitCap ( const OUString &  aTerm,
CharClass const *  pCC 
)
staticprivate

Definition at line 673 of file hyphenimp.cxx.

References CharClass::lowercase(), and CharClass::uppercase().

Referenced by hyphenate().

OUString Hyphenator::makeLowerCase ( const OUString &  aTerm,
CharClass const *  pCC 
)
staticprivate

Definition at line 659 of file hyphenimp.cxx.

References CharClass::lowercase().

Referenced by createPossibleHyphens(), and hyphenate().

OUString Hyphenator::makeUpperCase ( const OUString &  aTerm,
CharClass const *  pCC 
)
staticprivate

Definition at line 666 of file hyphenimp.cxx.

References CharClass::uppercase().

Referenced by hyphenate().

Hyphenator& Hyphenator::operator= ( const Hyphenator )
privatedelete
Reference< XHyphenatedWord > SAL_CALL Hyphenator::queryAlternativeSpelling ( const OUString &  aWord,
const css::lang::Locale &  aLocale,
sal_Int16  nIndex,
const css::uno::Sequence< css::beans::PropertyValue > &  aProperties 
)
overridevirtual

Definition at line 472 of file hyphenimp.cxx.

References hyphenate().

void SAL_CALL Hyphenator::removeEventListener ( const Reference< XEventListener > &  rxListener)
overridevirtual
sal_Bool SAL_CALL Hyphenator::removeLinguServiceEventListener ( const Reference< XLinguServiceEventListener > &  rxLstnr)
overridevirtual
sal_Bool SAL_CALL Hyphenator::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 792 of file hyphenimp.cxx.

References cppu::supportsService().

Member Data Documentation

::comphelper::OInterfaceContainerHelper2 Hyphenator::aEvtListeners
private

Definition at line 70 of file hyphenimp.hxx.

Referenced by addEventListener(), dispose(), and removeEventListener().

Sequence< Locale > Hyphenator::aSuppLocales
private

Definition at line 67 of file hyphenimp.hxx.

Referenced by getLocales(), and hasLocale().

bool Hyphenator::bDisposing
private
std::vector< HDInfo > Hyphenator::mvDicts
private

Definition at line 68 of file hyphenimp.hxx.

Referenced by createPossibleHyphens(), getLocales(), hyphenate(), and ~Hyphenator().

std::unique_ptr<linguistic::PropertyHelper_Hyphenation> Hyphenator::pPropHelper
private

Definition at line 71 of file hyphenimp.hxx.

Referenced by dispose(), GetPropHelper_Impl(), initialize(), and ~Hyphenator().


The documentation for this class was generated from the following files: