LibreOffice Module editeng (master) 1
Public Member Functions | Private Member Functions | Private Attributes | List of all members
EdtAutoCorrDoc Class Referencefinal

#include <edtspell.hxx>

Inheritance diagram for EdtAutoCorrDoc:
[legend]
Collaboration diagram for EdtAutoCorrDoc:
[legend]

Public Member Functions

 EdtAutoCorrDoc (EditEngine *pE, ContentNode *pCurNode, sal_Int32 nCrsr, sal_Unicode cIns)
 
virtual ~EdtAutoCorrDoc () override
 
virtual bool Delete (sal_Int32 nStt, sal_Int32 nEnd) override
 
virtual bool Insert (sal_Int32 nPos, const OUString &rTxt) override
 
virtual bool Replace (sal_Int32 nPos, const OUString &rTxt) override
 
virtual bool ReplaceRange (sal_Int32 nPos, sal_Int32 nLen, const OUString &rTxt) override
 
virtual void SetAttr (sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, SfxPoolItem &) override
 
virtual bool SetINetAttr (sal_Int32 nStt, sal_Int32 nEnd, const OUString &rURL) override
 
virtual OUString const * GetPrevPara (bool bAtNormalPos) override
 
virtual bool ChgAutoCorrWord (sal_Int32 &rSttPos, sal_Int32 nEndPos, SvxAutoCorrect &rACorrect, OUString *pPara) override
 
virtual bool TransliterateRTLWord (sal_Int32 &rSttPos, sal_Int32 nEndPos, bool bApply=false) override
 
virtual LanguageType GetLanguage (sal_Int32 nPos) const override
 
sal_Int32 GetCursor () const
 
- Public Member Functions inherited from SvxAutoCorrDoc
virtual ~SvxAutoCorrDoc ()
 
virtual bool Delete (sal_Int32 nStt, sal_Int32 nEnd)=0
 
virtual bool Insert (sal_Int32 nPos, const OUString &rTxt)=0
 
virtual bool Replace (sal_Int32 nPos, const OUString &rTxt)=0
 
virtual bool ReplaceRange (sal_Int32 nPos, sal_Int32 nLen, const OUString &rTxt)=0
 
virtual void SetAttr (sal_Int32 nStt, sal_Int32 nEnd, sal_uInt16 nSlotId, SfxPoolItem &)=0
 
virtual bool SetINetAttr (sal_Int32 nStt, sal_Int32 nEnd, const OUString &rURL)=0
 
virtual OUString const * GetPrevPara (bool bAtNormalPos)=0
 
virtual bool ChgAutoCorrWord (sal_Int32 &rSttPos, sal_Int32 nEndPos, SvxAutoCorrect &rACorrect, OUString *pPara)=0
 
virtual bool TransliterateRTLWord (sal_Int32 &rSttPos, sal_Int32 nEndPos, bool bApply=false)=0
 
virtual void SaveCpltSttWord (ACFlags nFlag, sal_Int32 nPos, const OUString &rExceptWord, sal_Unicode cChar)
 
virtual LanguageType GetLanguage (sal_Int32 nPos) const
 

Private Member Functions

void ImplStartUndoAction ()
 

Private Attributes

EditEnginempEditEngine
 
ContentNodepCurNode
 
sal_Int32 nCursor
 
bool bAllowUndoAction
 
bool bUndoAction
 

Detailed Description

Definition at line 107 of file edtspell.hxx.

Constructor & Destructor Documentation

◆ EdtAutoCorrDoc()

EdtAutoCorrDoc::EdtAutoCorrDoc ( EditEngine pE,
ContentNode pCurNode,
sal_Int32  nCrsr,
sal_Unicode  cIns 
)

Definition at line 497 of file edtspell.cxx.

References pE.

◆ ~EdtAutoCorrDoc()

EdtAutoCorrDoc::~EdtAutoCorrDoc ( )
overridevirtual

Definition at line 505 of file edtspell.cxx.

References bUndoAction, mpEditEngine, and EditEngine::UndoActionEnd().

Member Function Documentation

◆ ChgAutoCorrWord()

bool EdtAutoCorrDoc::ChgAutoCorrWord ( sal_Int32 &  rSttPos,
sal_Int32  nEndPos,
SvxAutoCorrect rACorrect,
OUString *  pPara 
)
overridevirtual

◆ Delete()

bool EdtAutoCorrDoc::Delete ( sal_Int32  nStt,
sal_Int32  nEnd 
)
overridevirtual

◆ GetCursor()

sal_Int32 EdtAutoCorrDoc::GetCursor ( ) const
inline

Definition at line 140 of file edtspell.hxx.

References nCursor.

◆ GetLanguage()

LanguageType EdtAutoCorrDoc::GetLanguage ( sal_Int32  nPos) const
overridevirtual

Reimplemented from SvxAutoCorrDoc.

Definition at line 694 of file edtspell.cxx.

References EditEngine::GetLanguage(), mpEditEngine, editeng::LanguageSpan::nLang, nPos, and pCurNode.

◆ GetPrevPara()

OUString const * EdtAutoCorrDoc::GetPrevPara ( bool  bAtNormalPos)
overridevirtual

◆ ImplStartUndoAction()

void EdtAutoCorrDoc::ImplStartUndoAction ( )
private

◆ Insert()

bool EdtAutoCorrDoc::Insert ( sal_Int32  nPos,
const OUString &  rTxt 
)
overridevirtual

◆ Replace()

bool EdtAutoCorrDoc::Replace ( sal_Int32  nPos,
const OUString &  rTxt 
)
overridevirtual

Implements SvxAutoCorrDoc.

Definition at line 537 of file edtspell.cxx.

References nPos, and ReplaceRange().

◆ ReplaceRange()

bool EdtAutoCorrDoc::ReplaceRange ( sal_Int32  nPos,
sal_Int32  nLen,
const OUString &  rTxt 
)
overridevirtual

◆ SetAttr()

void EdtAutoCorrDoc::SetAttr ( sal_Int32  nStt,
sal_Int32  nEnd,
sal_uInt16  nSlotId,
SfxPoolItem rItem 
)
overridevirtual

◆ SetINetAttr()

bool EdtAutoCorrDoc::SetINetAttr ( sal_Int32  nStt,
sal_Int32  nEnd,
const OUString &  rURL 
)
overridevirtual

◆ TransliterateRTLWord()

bool EdtAutoCorrDoc::TransliterateRTLWord ( sal_Int32 &  rSttPos,
sal_Int32  nEndPos,
bool  bApply = false 
)
overridevirtual

Implements SvxAutoCorrDoc.

Definition at line 683 of file edtspell.cxx.

Member Data Documentation

◆ bAllowUndoAction

bool EdtAutoCorrDoc::bAllowUndoAction
private

◆ bUndoAction

bool EdtAutoCorrDoc::bUndoAction
private

Definition at line 114 of file edtspell.hxx.

Referenced by ImplStartUndoAction(), and ~EdtAutoCorrDoc().

◆ mpEditEngine

EditEngine* EdtAutoCorrDoc::mpEditEngine
private

◆ nCursor

sal_Int32 EdtAutoCorrDoc::nCursor
private

◆ pCurNode

ContentNode* EdtAutoCorrDoc::pCurNode
private

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