LibreOffice Module editeng (master) 1
|
#include <edtspell.hxx>
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 | |
EditEngine * | mpEditEngine |
ContentNode * | pCurNode |
sal_Int32 | nCursor |
bool | bAllowUndoAction |
bool | bUndoAction |
Definition at line 107 of file edtspell.hxx.
EdtAutoCorrDoc::EdtAutoCorrDoc | ( | EditEngine * | pE, |
ContentNode * | pCurNode, | ||
sal_Int32 | nCrsr, | ||
sal_Unicode | cIns | ||
) |
Definition at line 497 of file edtspell.cxx.
References pE.
|
overridevirtual |
Definition at line 505 of file edtspell.cxx.
References bUndoAction, mpEditEngine, and EditEngine::UndoActionEnd().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 643 of file edtspell.cxx.
References bAllowUndoAction, ContentNode::Copy(), EditEngine::DeleteSelection(), EditEngine::GetLanguage(), SvxAutocorrWord::GetLong(), SvxAutocorrWord::GetShort(), ContentNode::GetString(), EditEngine::InsertText(), SvxAutocorrWord::IsTextOnly(), mpEditEngine, nCursor, pCurNode, SAL_WARN_IF, and SvxAutoCorrect::SearchWordsInList().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 511 of file edtspell.cxx.
References bAllowUndoAction, EditEngine::DeleteSelection(), mpEditEngine, nCursor, pCurNode, and SAL_WARN_IF.
|
inline |
Definition at line 140 of file edtspell.hxx.
References nCursor.
|
overridevirtual |
Reimplemented from SvxAutoCorrDoc.
Definition at line 694 of file edtspell.cxx.
References EditEngine::GetLanguage(), mpEditEngine, editeng::LanguageSpan::nLang, nPos, and pCurNode.
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 609 of file edtspell.cxx.
References bAllowUndoAction, EE_PARA_BULLETSTATE(), EE_PARA_OUTLLEVEL(), EditEngine::GetControlWord(), EditEngine::GetEditDoc(), EditEngine::GetParaAttrib(), EditDoc::GetPos(), ContentNode::GetString(), SfxBoolItem::GetValue(), SfxInt16Item::GetValue(), ContentNode::Len(), mpEditEngine, n, nPos, OUTLINER, and pCurNode.
|
private |
Definition at line 699 of file edtspell.cxx.
References bAllowUndoAction, bUndoAction, EDITUNDO_INSERT, EditEngine::GetEditDoc(), EditDoc::GetPos(), mpEditEngine, nCursor, pCurNode, and EditEngine::UndoActionStart().
Referenced by Insert(), and ReplaceRange().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 522 of file edtspell.cxx.
References bAllowUndoAction, ImplStartUndoAction(), EditEngine::InsertText(), mpEditEngine, nCursor, nPos, pCurNode, and SAL_WARN_IF.
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 537 of file edtspell.cxx.
References nPos, and ReplaceRange().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 542 of file edtspell.cxx.
References bAllowUndoAction, EditEngine::DeleteSelection(), ImplStartUndoAction(), EditEngine::InsertText(), ContentNode::Len(), mpEditEngine, nCursor, nPos, and pCurNode.
Referenced by Replace().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 565 of file edtspell.cxx.
References bAllowUndoAction, Edge, EditEngine::GetEditDoc(), EditEngine::GetEmptyItemSet(), EditDoc::GetItemPool(), SfxItemPool::GetName(), SfxItemPool::GetSecondaryPool(), SfxItemPool::GetWhich(), EditSelection::Max(), mpEditEngine, pCurNode, SfxItemSet::Put(), EditEngine::SetAttribs(), EditPaM::SetIndex(), and SfxPoolItem::SetWhich().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 590 of file edtspell.cxx.
References bAllowUndoAction, EditEngine::DeleteSelection(), EE_FEATURE_FIELD(), EditEngine::GetSelected(), EditEngine::InsertField(), mpEditEngine, nCursor, pCurNode, Repr, SAL_WARN_IF, and EditEngine::UpdateFieldsOnly().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 683 of file edtspell.cxx.
|
private |
Definition at line 113 of file edtspell.hxx.
Referenced by ChgAutoCorrWord(), Delete(), GetPrevPara(), ImplStartUndoAction(), Insert(), ReplaceRange(), SetAttr(), and SetINetAttr().
|
private |
Definition at line 114 of file edtspell.hxx.
Referenced by ImplStartUndoAction(), and ~EdtAutoCorrDoc().
|
private |
Definition at line 109 of file edtspell.hxx.
Referenced by ChgAutoCorrWord(), Delete(), GetLanguage(), GetPrevPara(), ImplStartUndoAction(), Insert(), ReplaceRange(), SetAttr(), SetINetAttr(), and ~EdtAutoCorrDoc().
|
private |
Definition at line 111 of file edtspell.hxx.
Referenced by ChgAutoCorrWord(), Delete(), GetCursor(), ImplStartUndoAction(), Insert(), ReplaceRange(), and SetINetAttr().
|
private |
Definition at line 110 of file edtspell.hxx.
Referenced by ChgAutoCorrWord(), Delete(), GetLanguage(), GetPrevPara(), ImplStartUndoAction(), Insert(), ReplaceRange(), SetAttr(), and SetINetAttr().