27#include <com/sun/star/beans/PropertyValues.hpp>
28#include <com/sun/star/linguistic2/XSpellChecker1.hpp>
29#include <com/sun/star/linguistic2/XSpellChecker.hpp>
30#include <com/sun/star/linguistic2/XSearchableDictionaryList.hpp>
41 public cppu::WeakImplHelper
43 css::linguistic2::XSpellChecker1,
44 css::linguistic2::XSpellChecker
52 css::uno::Reference< css::linguistic2::XLinguProperties >
m_xPropSet;
53 css::uno::Reference< css::linguistic2::XSearchableDictionaryList >
m_xDicList;
56 mutable std::unique_ptr<linguistic::SpellCache>
m_pCache;
64 inline const css::uno::Reference< css::linguistic2::XLinguProperties > &
66 inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &
72 const css::beans::PropertyValues& aProperties);
77 css::linguistic2::XSpellAlternatives >
79 const css::beans::PropertyValues& aProperties);
86 virtual css::uno::Sequence< css::lang::Locale > SAL_CALL
getLocales()
override;
90 virtual sal_Bool SAL_CALL
isValid(
const OUString& aWord,
const css::lang::Locale& aLocale,
const css::uno::Sequence< ::css::beans::PropertyValue >& aProperties )
override;
91 virtual css::uno::Reference< css::linguistic2::XSpellAlternatives > SAL_CALL
spell(
const OUString& aWord,
const css::lang::Locale& aLocale,
const css::uno::Sequence< ::css::beans::PropertyValue >& aProperties )
override;
94 virtual css::uno::Sequence< ::sal_Int16 > SAL_CALL
getLanguages( )
override;
98 virtual sal_Bool SAL_CALL
isValid(
const OUString& aWord, ::sal_Int16 nLanguage,
const css::uno::Sequence< css::beans::PropertyValue >& aProperties )
override;
99 virtual css::uno::Reference< css::linguistic2::XSpellAlternatives > SAL_CALL
spell(
const OUString& aWord, ::sal_Int16 nLanguage,
const css::uno::Sequence< css::beans::PropertyValue >& aProperties )
override;
102 virtual void SetServiceList(
const css::lang::Locale &rLocale,
const css::uno::Sequence< OUString > &rSvcImplNames )
override;
103 virtual css::uno::Sequence< OUString >
GetServiceList(
const css::lang::Locale &rLocale )
const override;
109 static OUString
makeLowerCase(
const OUString&,
const std::optional<CharClass> &);
121inline const css::uno::Reference< css::linguistic2::XLinguProperties > &
130inline const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > &
std::shared_ptr< LangSvcEntries_Spell > LangSvcEntries_Spell_Ptr_t
virtual css::uno::Reference< css::linguistic2::XSpellAlternatives > SAL_CALL spell(const OUString &aWord, const css::lang::Locale &aLocale, const css::uno::Sequence< ::css::beans::PropertyValue > &aProperties) override
virtual void SetServiceList(const css::lang::Locale &rLocale, const css::uno::Sequence< OUString > &rSvcImplNames) override
virtual sal_Bool SAL_CALL hasLocale(const css::lang::Locale &aLocale) override
std::map< LanguageType, LangSvcEntries_Spell_Ptr_t > SpellSvcByLangMap_t
linguistic::SpellCache & GetCache() const
void setCharClass(const LanguageTag &rLanguageTag)
virtual sal_Bool SAL_CALL isValid(const OUString &aWord, ::sal_Int16 nLanguage, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override
const css::uno::Reference< css::linguistic2::XLinguProperties > & GetPropSet()
css::uno::Reference< css::linguistic2::XSearchableDictionaryList > m_xDicList
const css::uno::Reference< css::linguistic2::XSearchableDictionaryList > & GetDicList()
SpellSvcByLangMap_t m_aSvcMap
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocales() override
std::unique_ptr< linguistic::SpellCache > m_pCache
virtual css::uno::Sequence< ::sal_Int16 > SAL_CALL getLanguages() override
std::optional< CharClass > m_oCharClass
css::uno::Reference< css::linguistic2::XLinguProperties > m_xPropSet
virtual sal_Bool SAL_CALL hasLanguage(::sal_Int16 nLanguage) override
virtual sal_Bool SAL_CALL isValid(const OUString &aWord, const css::lang::Locale &aLocale, const css::uno::Sequence< ::css::beans::PropertyValue > &aProperties) override
SpellCheckerDispatcher & operator=(const SpellCheckerDispatcher &)=delete
css::uno::Reference< css::linguistic2::XSpellAlternatives > spell_Impl(const OUString &aWord, LanguageType nLanguage, const css::beans::PropertyValues &aProperties)
virtual ~SpellCheckerDispatcher() override
static OUString makeLowerCase(const OUString &, const std::optional< CharClass > &)
bool isValid_Impl(const OUString &aWord, LanguageType nLanguage, const css::beans::PropertyValues &aProperties)
SpellCheckerDispatcher(const SpellCheckerDispatcher &)=delete
virtual css::uno::Sequence< OUString > GetServiceList(const css::lang::Locale &rLocale) const override
virtual css::uno::Reference< css::linguistic2::XSpellAlternatives > SAL_CALL spell(const OUString &aWord, ::sal_Int16 nLanguage, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override
uno::Reference< XSearchableDictionaryList > GetDictionaryList()
uno::Reference< XLinguProperties > GetLinguProperties()