LibreOffice Module sw (master) 1
|
#include <swscanner.hxx>
Public Member Functions | |
SwScanner (std::function< LanguageType(sal_Int32, sal_Int32, bool)> pGetLangOfChar, OUString aText, const LanguageType *pLang, ModelToViewHelper aConvMap, sal_uInt16 nWordType, sal_Int32 nStart, sal_Int32 nEnd, bool bClip=false) | |
SwScanner (const SwTextNode &rNd, const OUString &rText, const LanguageType *pLang, const ModelToViewHelper &rConvMap, sal_uInt16 nWordType, sal_Int32 nStart, sal_Int32 nEnd, bool bClip=false) | |
bool | NextWord () |
const OUString & | GetWord () const |
const OUString & | GetPrevWord () const |
sal_Int32 | GetBegin () const |
sal_Int32 | GetEnd () const |
sal_Int32 | GetLen () const |
LanguageType | GetCurrentLanguage () const |
sal_Int32 | getOverriddenDashCount () const |
Private Attributes | |
std::function< LanguageType(sal_Int32, sal_Int32, bool)> | m_pGetLangOfChar |
OUString | m_aWord |
OUString | m_aPrevWord |
const OUString | m_aPreDashReplacementText |
OUString | m_aText |
const LanguageType * | m_pLanguage |
const ModelToViewHelper | m_ModelToView |
sal_Int32 | m_nStartPos |
sal_Int32 | m_nEndPos |
sal_Int32 | m_nBegin |
sal_Int32 | m_nLength |
sal_Int32 | m_nOverriddenDashCount |
LanguageType | m_aCurrentLang |
sal_uInt16 | m_nWordType |
bool | m_bClip |
Definition at line 32 of file swscanner.hxx.
SwScanner::SwScanner | ( | std::function< LanguageType(sal_Int32, sal_Int32, bool)> | pGetLangOfChar, |
OUString | aText, | ||
const LanguageType * | pLang, | ||
ModelToViewHelper | aConvMap, | ||
sal_uInt16 | nWordType, | ||
sal_Int32 | nStart, | ||
sal_Int32 | nEnd, | ||
bool | bClip = false |
||
) |
Definition at line 738 of file txtedt.cxx.
References aBuf, aConvMap, ModelToViewHelper::ConvertToModelPosition(), sw::proofreadingiterator::get(), i, m_aCurrentLang, m_aPreDashReplacementText, m_aText, m_ModelToView, m_nBegin, m_nEndPos, m_nLength, m_nOverriddenDashCount, m_nStartPos, m_nWordType, m_pGetLangOfChar, m_pLanguage, ModelToViewHelper::ModelPosition::mnPos, and nType.
SwScanner::SwScanner | ( | const SwTextNode & | rNd, |
const OUString & | rText, | ||
const LanguageType * | pLang, | ||
const ModelToViewHelper & | rConvMap, | ||
sal_uInt16 | nWordType, | ||
sal_Int32 | nStart, | ||
sal_Int32 | nEnd, | ||
bool | bClip = false |
||
) |
Definition at line 728 of file txtedt.cxx.
References SwTextNode::GetLang().
|
inline |
Definition at line 68 of file swscanner.hxx.
References m_nBegin.
Referenced by SwTextFrame::AutoSpell_(), SwTextFrame::CollectAutoCmplWrds(), SwTextNode::CountWords(), SwScriptInfo::InitScriptInfo(), and SwTextNode::Spell().
|
inline |
Definition at line 72 of file swscanner.hxx.
References m_aCurrentLang.
Referenced by SwTextFrame::AutoSpell_(), and SwTextNode::Spell().
|
inline |
Definition at line 69 of file swscanner.hxx.
References m_nBegin, and m_nLength.
Referenced by SwTextNode::Spell().
|
inline |
Definition at line 70 of file swscanner.hxx.
References m_nLength.
Referenced by SwTextFrame::AutoSpell_(), SwTextFrame::CollectAutoCmplWrds(), and SwTextNode::Spell().
|
inline |
Definition at line 74 of file swscanner.hxx.
References m_nOverriddenDashCount.
Referenced by SwTextNode::CountWords().
|
inline |
Definition at line 66 of file swscanner.hxx.
References m_aPrevWord.
Referenced by SwTextFrame::AutoSpell_(), and SwTextNode::Spell().
|
inline |
Definition at line 65 of file swscanner.hxx.
References m_aWord.
Referenced by SwTextFrame::AutoSpell_(), SwTextFrame::CollectAutoCmplWrds(), SwTextNode::CountWords(), SwScriptInfo::InitScriptInfo(), and SwTextNode::Spell().
bool SwScanner::NextWord | ( | ) |
Definition at line 831 of file txtedt.cxx.
References ModelToViewHelper::ConvertToModelPosition(), g_pBreakIt, SwBreakIt::GetBreakIter(), SwBreakIt::GetLocale(), m_aCurrentLang, m_aPreDashReplacementText, m_aPrevWord, m_aText, m_aWord, m_bClip, m_ModelToView, m_nBegin, m_nEndPos, m_nLength, m_nStartPos, m_nWordType, m_pGetLangOfChar, m_pLanguage, min(), and ModelToViewHelper::ModelPosition::mnPos.
Referenced by SwTextFrame::AutoSpell_(), SwTextFrame::CollectAutoCmplWrds(), SwTextNode::CountWords(), SwScriptInfo::InitScriptInfo(), and SwTextNode::Spell().
|
private |
Definition at line 46 of file swscanner.hxx.
Referenced by GetCurrentLanguage(), NextWord(), and SwScanner().
|
private |
Definition at line 37 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().
|
private |
Definition at line 36 of file swscanner.hxx.
Referenced by GetPrevWord(), and NextWord().
|
private |
Definition at line 38 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().
|
private |
Definition at line 35 of file swscanner.hxx.
Referenced by GetWord(), and NextWord().
|
private |
Definition at line 48 of file swscanner.hxx.
Referenced by NextWord().
|
private |
Definition at line 40 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().
|
private |
Definition at line 43 of file swscanner.hxx.
Referenced by GetBegin(), GetEnd(), NextWord(), and SwScanner().
|
private |
Definition at line 42 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().
|
private |
Definition at line 44 of file swscanner.hxx.
Referenced by GetEnd(), GetLen(), and NextWord().
|
private |
Definition at line 45 of file swscanner.hxx.
Referenced by getOverriddenDashCount(), and SwScanner().
|
private |
Definition at line 41 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().
|
private |
Definition at line 47 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().
|
private |
Definition at line 34 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().
|
private |
Definition at line 39 of file swscanner.hxx.
Referenced by NextWord(), and SwScanner().