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 (const std::function< LanguageType(sal_Int32, sal_Int32, bool)> &pGetLangOfChar, const OUString &rText, const LanguageType *pLang, const ModelToViewHelper &rConvMap, sal_uInt16 nWordType, sal_Int32 nStart, sal_Int32 nEnde, bool bClip=false)
 
 SwScanner (const SwTextNode &rNd, const OUString &rText, const LanguageType *pLang, const ModelToViewHelper &rConvMap, sal_uInt16 nWordType, sal_Int32 nStart, sal_Int32 nEnde, bool bClip=false)
 
bool NextWord ()
 
const OUString & GetWord () 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)> const m_pGetLangOfChar
 
OUString m_aWord
 
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 const m_nWordType
 
bool const m_bClip
 

Detailed Description

Definition at line 32 of file swscanner.hxx.

Constructor & Destructor Documentation

SwScanner::SwScanner ( const std::function< LanguageType(sal_Int32, sal_Int32, bool)> &  pGetLangOfChar,
const OUString &  rText,
const LanguageType pLang,
const ModelToViewHelper rConvMap,
sal_uInt16  nWordType,
sal_Int32  nStart,
sal_Int32  nEnde,
bool  bClip = false 
)
SwScanner::SwScanner ( const SwTextNode rNd,
const OUString &  rText,
const LanguageType pLang,
const ModelToViewHelper rConvMap,
sal_uInt16  nWordType,
sal_Int32  nStart,
sal_Int32  nEnde,
bool  bClip = false 
)

Definition at line 706 of file txtedt.cxx.

References SwTextNode::GetLang().

Member Function Documentation

sal_Int32 SwScanner::GetBegin ( ) const
inline
LanguageType SwScanner::GetCurrentLanguage ( ) const
inline

Definition at line 70 of file swscanner.hxx.

References m_aCurrentLang.

Referenced by SwTextNode::Spell().

sal_Int32 SwScanner::GetEnd ( ) const
inline

Definition at line 67 of file swscanner.hxx.

References m_nLength.

Referenced by SwTextNode::Spell().

sal_Int32 SwScanner::GetLen ( ) const
inline

Definition at line 68 of file swscanner.hxx.

References m_nLength.

sal_Int32 SwScanner::getOverriddenDashCount ( ) const
inline

Definition at line 72 of file swscanner.hxx.

References m_nOverriddenDashCount.

const OUString& SwScanner::GetWord ( ) const
inline
bool SwScanner::NextWord ( )

Member Data Documentation

LanguageType SwScanner::m_aCurrentLang
private

Definition at line 45 of file swscanner.hxx.

Referenced by GetCurrentLanguage(), and NextWord().

const OUString SwScanner::m_aPreDashReplacementText
private

Definition at line 36 of file swscanner.hxx.

Referenced by NextWord().

OUString SwScanner::m_aText
private

Definition at line 37 of file swscanner.hxx.

Referenced by NextWord().

OUString SwScanner::m_aWord
private

Definition at line 35 of file swscanner.hxx.

Referenced by GetWord(), and NextWord().

bool const SwScanner::m_bClip
private

Definition at line 47 of file swscanner.hxx.

Referenced by NextWord().

const ModelToViewHelper SwScanner::m_ModelToView
private

Definition at line 39 of file swscanner.hxx.

Referenced by NextWord().

sal_Int32 SwScanner::m_nBegin
private

Definition at line 42 of file swscanner.hxx.

Referenced by GetBegin(), and NextWord().

sal_Int32 SwScanner::m_nEndPos
private

Definition at line 41 of file swscanner.hxx.

Referenced by NextWord().

sal_Int32 SwScanner::m_nLength
private

Definition at line 43 of file swscanner.hxx.

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

sal_Int32 SwScanner::m_nOverriddenDashCount
private

Definition at line 44 of file swscanner.hxx.

Referenced by getOverriddenDashCount().

sal_Int32 SwScanner::m_nStartPos
private

Definition at line 40 of file swscanner.hxx.

Referenced by NextWord().

sal_uInt16 const SwScanner::m_nWordType
private

Definition at line 46 of file swscanner.hxx.

Referenced by NextWord().

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

Definition at line 34 of file swscanner.hxx.

Referenced by NextWord().

const LanguageType* SwScanner::m_pLanguage
private

Definition at line 38 of file swscanner.hxx.

Referenced by NextWord().


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