LibreOffice Module linguistic (master) 1
Functions | Variables
gciterator.cxx File Reference
#include <sal/macros.h>
#include <com/sun/star/beans/XPropertySet.hpp>
#include <com/sun/star/container/ElementExistException.hpp>
#include <com/sun/star/container/XNameAccess.hpp>
#include <com/sun/star/configuration/theDefaultProvider.hpp>
#include <com/sun/star/i18n/BreakIterator.hpp>
#include <com/sun/star/lang/IndexOutOfBoundsException.hpp>
#include <com/sun/star/lang/XComponent.hpp>
#include <com/sun/star/lang/XServiceInfo.hpp>
#include <com/sun/star/lang/XMultiServiceFactory.hpp>
#include <com/sun/star/linguistic2/XSupportedLocales.hpp>
#include <com/sun/star/linguistic2/XProofreader.hpp>
#include <com/sun/star/linguistic2/XProofreadingIterator.hpp>
#include <com/sun/star/linguistic2/SingleProofreadingError.hpp>
#include <com/sun/star/linguistic2/ProofreadingResult.hpp>
#include <com/sun/star/linguistic2/LinguServiceEvent.hpp>
#include <com/sun/star/linguistic2/LinguServiceEventFlags.hpp>
#include <com/sun/star/text/TextMarkupType.hpp>
#include <com/sun/star/text/TextMarkupDescriptor.hpp>
#include <com/sun/star/text/XMultiTextMarkup.hpp>
#include <com/sun/star/text/XFlatParagraph.hpp>
#include <com/sun/star/text/XFlatParagraphIterator.hpp>
#include <com/sun/star/uno/XComponentContext.hpp>
#include <sal/config.h>
#include <sal/log.hxx>
#include <o3tl/safeint.hxx>
#include <osl/conditn.hxx>
#include <cppuhelper/supportsservice.hxx>
#include <cppuhelper/weak.hxx>
#include <i18nlangtag/languagetag.hxx>
#include <comphelper/processfactory.hxx>
#include <comphelper/propertysequence.hxx>
#include <tools/debug.hxx>
#include <comphelper/diagnose_ex.hxx>
#include <map>
#include <linguistic/misc.hxx>
#include "gciterator.hxx"
Include dependency graph for gciterator.cxx:

Go to the source code of this file.

Functions

static bool lcl_IsWhiteSpace (sal_Unicode cChar)
 
static sal_Int32 lcl_SkipWhiteSpaces (const OUString &rText, sal_Int32 nStartPos)
 
static sal_Int32 lcl_BacktraceWhiteSpaces (const OUString &rText, sal_Int32 nStartPos)
 
static void lcl_workerfunc (void *gci)
 
static lang::Locale lcl_GetPrimaryLanguageOfSentence (const uno::Reference< text::XFlatParagraph > &xFlatPara, sal_Int32 nStartIndex)
 
static uno::Sequence< beans::PropertyValue > lcl_makeProperties (uno::Reference< text::XFlatParagraph > const &xFlatPara, sal_Int32 nProofInfo)
 
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * linguistic_GrammarCheckingIterator_get_implementation (css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
 

Variables

const sal_Unicode aWhiteSpaces []
 
const sal_Int32 PROOFINFO_GET_PROOFRESULT = 1
 
const sal_Int32 PROOFINFO_MARK_PARAGRAPH = 2
 
const int nWhiteSpaces = SAL_N_ELEMENTS( aWhiteSpaces )
 

Function Documentation

◆ lcl_BacktraceWhiteSpaces()

static sal_Int32 lcl_BacktraceWhiteSpaces ( const OUString &  rText,
sal_Int32  nStartPos 
)
static

◆ lcl_GetPrimaryLanguageOfSentence()

static lang::Locale lcl_GetPrimaryLanguageOfSentence ( const uno::Reference< text::XFlatParagraph > &  xFlatPara,
sal_Int32  nStartIndex 
)
static

◆ lcl_IsWhiteSpace()

static bool lcl_IsWhiteSpace ( sal_Unicode  cChar)
static

Definition at line 124 of file gciterator.cxx.

References aWhiteSpaces, i, and nWhiteSpaces.

Referenced by lcl_BacktraceWhiteSpaces(), and lcl_SkipWhiteSpaces().

◆ lcl_makeProperties()

static uno::Sequence< beans::PropertyValue > lcl_makeProperties ( uno::Reference< text::XFlatParagraph > const &  xFlatPara,
sal_Int32  nProofInfo 
)
static

◆ lcl_SkipWhiteSpaces()

static sal_Int32 lcl_SkipWhiteSpaces ( const OUString &  rText,
sal_Int32  nStartPos 
)
static

◆ lcl_workerfunc()

static void lcl_workerfunc ( void *  gci)
static

Definition at line 213 of file gciterator.cxx.

Referenced by GrammarCheckingIterator::AddEntry().

◆ linguistic_GrammarCheckingIterator_get_implementation()

SAL_DLLPUBLIC_EXPORT css::uno::XInterface * linguistic_GrammarCheckingIterator_get_implementation ( css::uno::XComponentContext *  ,
css::uno::Sequence< css::uno::Any > const &   
)

Definition at line 1191 of file gciterator.cxx.

Variable Documentation

◆ aWhiteSpaces

const sal_Unicode aWhiteSpaces[]

Definition at line 66 of file gciterator.cxx.

Referenced by lcl_IsWhiteSpace().

◆ nWhiteSpaces

const int nWhiteSpaces = SAL_N_ELEMENTS( aWhiteSpaces )

Definition at line 122 of file gciterator.cxx.

Referenced by lcl_IsWhiteSpace().

◆ PROOFINFO_GET_PROOFRESULT

const sal_Int32 PROOFINFO_GET_PROOFRESULT = 1

Definition at line 119 of file gciterator.cxx.

Referenced by GrammarCheckingIterator::checkSentenceAtPosition().

◆ PROOFINFO_MARK_PARAGRAPH

const sal_Int32 PROOFINFO_MARK_PARAGRAPH = 2

Definition at line 120 of file gciterator.cxx.

Referenced by GrammarCheckingIterator::DequeueAndCheck().