|
LibreOffice Module linguistic (master) 1
|
#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"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 ) |
|
static |
Definition at line 171 of file gciterator.cxx.
References DBG_ASSERT, lcl_IsWhiteSpace(), and SAL_WARN.
Referenced by GrammarCheckingIterator::checkSentenceAtPosition(), and GrammarCheckingIterator::DequeueAndCheck().
|
static |
Definition at line 222 of file gciterator.cxx.
Referenced by GrammarCheckingIterator::checkSentenceAtPosition(), and GrammarCheckingIterator::DequeueAndCheck().
|
static |
Definition at line 124 of file gciterator.cxx.
References aWhiteSpaces, i, and nWhiteSpaces.
Referenced by lcl_BacktraceWhiteSpaces(), and lcl_SkipWhiteSpaces().
|
static |
Definition at line 575 of file gciterator.cxx.
References a, and comphelper::InitPropertySequence().
Referenced by GrammarCheckingIterator::checkSentenceAtPosition(), and GrammarCheckingIterator::DequeueAndCheck().
|
static |
Definition at line 135 of file gciterator.cxx.
References DBG_ASSERT, lcl_IsWhiteSpace(), and SAL_WARN.
Referenced by GrammarCheckingIterator::checkSentenceAtPosition(), and GrammarCheckingIterator::DequeueAndCheck().
|
static |
Definition at line 213 of file gciterator.cxx.
Referenced by GrammarCheckingIterator::AddEntry().
| 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.
| const sal_Unicode aWhiteSpaces[] |
Definition at line 66 of file gciterator.cxx.
Referenced by lcl_IsWhiteSpace().
| const int nWhiteSpaces = SAL_N_ELEMENTS( aWhiteSpaces ) |
Definition at line 122 of file gciterator.cxx.
Referenced by lcl_IsWhiteSpace().
| const sal_Int32 PROOFINFO_GET_PROOFRESULT = 1 |
Definition at line 119 of file gciterator.cxx.
Referenced by GrammarCheckingIterator::checkSentenceAtPosition().
| const sal_Int32 PROOFINFO_MARK_PARAGRAPH = 2 |
Definition at line 120 of file gciterator.cxx.
Referenced by GrammarCheckingIterator::DequeueAndCheck().