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

#include <swscanner.hxx>

Collaboration diagram for SwScanner:
[legend]

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 LanguageTypem_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
 

Detailed Description

Definition at line 32 of file swscanner.hxx.

Constructor & Destructor Documentation

◆ SwScanner() [1/2]

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 
)

◆ SwScanner() [2/2]

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().

Member Function Documentation

◆ GetBegin()

sal_Int32 SwScanner::GetBegin ( ) const
inline

◆ GetCurrentLanguage()

LanguageType SwScanner::GetCurrentLanguage ( ) const
inline

Definition at line 72 of file swscanner.hxx.

References m_aCurrentLang.

Referenced by SwTextFrame::AutoSpell_(), and SwTextNode::Spell().

◆ GetEnd()

sal_Int32 SwScanner::GetEnd ( ) const
inline

Definition at line 69 of file swscanner.hxx.

References m_nBegin, and m_nLength.

Referenced by SwTextNode::Spell().

◆ GetLen()

sal_Int32 SwScanner::GetLen ( ) const
inline

Definition at line 70 of file swscanner.hxx.

References m_nLength.

Referenced by SwTextFrame::AutoSpell_(), SwTextFrame::CollectAutoCmplWrds(), and SwTextNode::Spell().

◆ getOverriddenDashCount()

sal_Int32 SwScanner::getOverriddenDashCount ( ) const
inline

Definition at line 74 of file swscanner.hxx.

References m_nOverriddenDashCount.

Referenced by SwTextNode::CountWords().

◆ GetPrevWord()

const OUString & SwScanner::GetPrevWord ( ) const
inline

Definition at line 66 of file swscanner.hxx.

References m_aPrevWord.

Referenced by SwTextFrame::AutoSpell_(), and SwTextNode::Spell().

◆ GetWord()

const OUString & SwScanner::GetWord ( ) const
inline

◆ NextWord()

bool SwScanner::NextWord ( )

Member Data Documentation

◆ m_aCurrentLang

LanguageType SwScanner::m_aCurrentLang
private

Definition at line 46 of file swscanner.hxx.

Referenced by GetCurrentLanguage(), NextWord(), and SwScanner().

◆ m_aPreDashReplacementText

const OUString SwScanner::m_aPreDashReplacementText
private

Definition at line 37 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().

◆ m_aPrevWord

OUString SwScanner::m_aPrevWord
private

Definition at line 36 of file swscanner.hxx.

Referenced by GetPrevWord(), and NextWord().

◆ m_aText

OUString SwScanner::m_aText
private

Definition at line 38 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().

◆ m_aWord

OUString SwScanner::m_aWord
private

Definition at line 35 of file swscanner.hxx.

Referenced by GetWord(), and NextWord().

◆ m_bClip

bool SwScanner::m_bClip
private

Definition at line 48 of file swscanner.hxx.

Referenced by NextWord().

◆ m_ModelToView

const ModelToViewHelper SwScanner::m_ModelToView
private

Definition at line 40 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().

◆ m_nBegin

sal_Int32 SwScanner::m_nBegin
private

Definition at line 43 of file swscanner.hxx.

Referenced by GetBegin(), GetEnd(), NextWord(), and SwScanner().

◆ m_nEndPos

sal_Int32 SwScanner::m_nEndPos
private

Definition at line 42 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().

◆ m_nLength

sal_Int32 SwScanner::m_nLength
private

Definition at line 44 of file swscanner.hxx.

Referenced by GetEnd(), GetLen(), and NextWord().

◆ m_nOverriddenDashCount

sal_Int32 SwScanner::m_nOverriddenDashCount
private

Definition at line 45 of file swscanner.hxx.

Referenced by getOverriddenDashCount(), and SwScanner().

◆ m_nStartPos

sal_Int32 SwScanner::m_nStartPos
private

Definition at line 41 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().

◆ m_nWordType

sal_uInt16 SwScanner::m_nWordType
private

Definition at line 47 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().

◆ m_pGetLangOfChar

std::function<LanguageType (sal_Int32, sal_Int32, bool)> SwScanner::m_pGetLangOfChar
private

Definition at line 34 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().

◆ m_pLanguage

const LanguageType* SwScanner::m_pLanguage
private

Definition at line 39 of file swscanner.hxx.

Referenced by NextWord(), and SwScanner().


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