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

#include <languagetoolimp.hxx>

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

Public Member Functions

 LanguageToolGrammarChecker ()
 
virtual ~LanguageToolGrammarChecker () override
 
virtual css::uno::Sequence< css::lang::Locale > SAL_CALL getLocales () override
 
virtual sal_Bool SAL_CALL hasLocale (const css::lang::Locale &rLocale) override
 
virtual sal_Bool SAL_CALL isSpellChecker () override
 
virtual css::linguistic2::ProofreadingResult SAL_CALL doProofreading (const OUString &aDocumentIdentifier, const OUString &aText, const css::lang::Locale &aLocale, sal_Int32 nStartOfSentencePosition, sal_Int32 nSuggestedBehindEndOfSentencePosition, const css::uno::Sequence< css::beans::PropertyValue > &aProperties) override
 
virtual void SAL_CALL ignoreRule (const OUString &aRuleIdentifier, const css::lang::Locale &aLocale) override
 
virtual void SAL_CALL resetIgnoreRules () override
 
virtual OUString SAL_CALL getServiceDisplayName (const css::lang::Locale &rLocale) override
 
virtual void SAL_CALL initialize (const css::uno::Sequence< css::uno::Any > &rArguments) override
 
virtual OUString SAL_CALL getImplementationName () override
 
virtual sal_Bool SAL_CALL supportsService (const OUString &rServiceName) override
 
virtual css::uno::Sequence< OUString > SAL_CALL getSupportedServiceNames () override
 

Private Member Functions

 LanguageToolGrammarChecker (const LanguageToolGrammarChecker &)=delete
 
LanguageToolGrammarCheckeroperator= (const LanguageToolGrammarChecker &)=delete
 

Private Attributes

css::uno::Sequence< css::lang::Locale > m_aSuppLocales
 
o3tl::lru_map< OString, css::uno::Sequence< css::linguistic2::SingleProofreadingError > > mCachedResults
 

Detailed Description

Definition at line 33 of file languagetoolimp.hxx.

Constructor & Destructor Documentation

◆ LanguageToolGrammarChecker() [1/2]

LanguageToolGrammarChecker::LanguageToolGrammarChecker ( const LanguageToolGrammarChecker )
privatedelete

◆ LanguageToolGrammarChecker() [2/2]

LanguageToolGrammarChecker::LanguageToolGrammarChecker ( )

Definition at line 315 of file languagetoolimp.cxx.

◆ ~LanguageToolGrammarChecker()

LanguageToolGrammarChecker::~LanguageToolGrammarChecker ( )
overridevirtual

Definition at line 320 of file languagetoolimp.cxx.

Member Function Documentation

◆ doProofreading()

ProofreadingResult SAL_CALL LanguageToolGrammarChecker::doProofreading ( const OUString &  aDocumentIdentifier,
const OUString &  aText,
const css::lang::Locale &  aLocale,
sal_Int32  nStartOfSentencePosition,
sal_Int32  nSuggestedBehindEndOfSentencePosition,
const css::uno::Sequence< css::beans::PropertyValue > &  aProperties 
)
overridevirtual

◆ getImplementationName()

OUString SAL_CALL LanguageToolGrammarChecker::getImplementationName ( )
overridevirtual

Definition at line 510 of file languagetoolimp.cxx.

◆ getLocales()

uno::Sequence< Locale > SAL_CALL LanguageToolGrammarChecker::getLocales ( )
overridevirtual

Definition at line 337 of file languagetoolimp.cxx.

References LanguageTag::convertToLocale(), i, length, Locale, and m_aSuppLocales.

Referenced by hasLocale().

◆ getServiceDisplayName()

OUString SAL_CALL LanguageToolGrammarChecker::getServiceDisplayName ( const css::lang::Locale &  rLocale)
overridevirtual

Definition at line 504 of file languagetoolimp.cxx.

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

◆ getSupportedServiceNames()

uno::Sequence< OUString > SAL_CALL LanguageToolGrammarChecker::getSupportedServiceNames ( )
overridevirtual

Definition at line 520 of file languagetoolimp.cxx.

References SN_GRAMMARCHECKER.

◆ hasLocale()

sal_Bool SAL_CALL LanguageToolGrammarChecker::hasLocale ( const css::lang::Locale &  rLocale)
overridevirtual

◆ ignoreRule()

void SAL_CALL LanguageToolGrammarChecker::ignoreRule ( const OUString &  aRuleIdentifier,
const css::lang::Locale &  aLocale 
)
overridevirtual

Definition at line 497 of file languagetoolimp.cxx.

◆ initialize()

void SAL_CALL LanguageToolGrammarChecker::initialize ( const css::uno::Sequence< css::uno::Any > &  rArguments)
overridevirtual

Definition at line 525 of file languagetoolimp.cxx.

◆ isSpellChecker()

sal_Bool SAL_CALL LanguageToolGrammarChecker::isSpellChecker ( )
overridevirtual

Definition at line 322 of file languagetoolimp.cxx.

◆ operator=()

LanguageToolGrammarChecker & LanguageToolGrammarChecker::operator= ( const LanguageToolGrammarChecker )
privatedelete

◆ resetIgnoreRules()

void SAL_CALL LanguageToolGrammarChecker::resetIgnoreRules ( )
overridevirtual

Definition at line 502 of file languagetoolimp.cxx.

◆ supportsService()

sal_Bool SAL_CALL LanguageToolGrammarChecker::supportsService ( const OUString &  rServiceName)
overridevirtual

Definition at line 515 of file languagetoolimp.cxx.

References ServiceName, and cppu::supportsService().

Member Data Documentation

◆ m_aSuppLocales

css::uno::Sequence<css::lang::Locale> LanguageToolGrammarChecker::m_aSuppLocales
private

Definition at line 37 of file languagetoolimp.hxx.

Referenced by getLocales(), and hasLocale().

◆ mCachedResults

o3tl::lru_map<OString, css::uno::Sequence<css::linguistic2::SingleProofreadingError> > LanguageToolGrammarChecker::mCachedResults
private

Definition at line 39 of file languagetoolimp.hxx.

Referenced by doProofreading().


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