LibreOffice Module sw (master)
1
|
#include <acorrect.hxx>
Public Member Functions | |
SwAutoCorrDoc (SwEditShell &rEditShell, SwPaM &rPam, sal_Unicode cIns=0) | |
virtual | ~SwAutoCorrDoc () override |
virtual bool | Delete (sal_Int32 nStt, sal_Int32 nEnd) override |
virtual bool | Insert (sal_Int32 nPos, const OUString &rText) override |
virtual bool | Replace (sal_Int32 nPos, const OUString &rText) override |
virtual bool | ReplaceRange (sal_Int32 nPos, sal_Int32 nLen, const OUString &rText) 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 |
Return the text of a previous paragraph. More... | |
virtual bool | ChgAutoCorrWord (sal_Int32 &rSttPos, sal_Int32 nEndPos, SvxAutoCorrect &rACorrect, OUString *pPara) override |
virtual bool | TransliterateRTLWord (sal_Int32 &rSttPos, sal_Int32 nEndPos) override |
virtual void | SaveCpltSttWord (ACFlags nFlag, sal_Int32 nPos, const OUString &rExceptWord, sal_Unicode cChar) override |
virtual LanguageType | GetLanguage (sal_Int32 nPos) const override |
![]() | |
SvxAutoCorrDoc () | |
virtual | ~SvxAutoCorrDoc () |
Private Member Functions | |
void | DeleteSel (SwPaM &rDelPam) |
void | DeleteSelImpl (SwPaM &rDelPam) |
Private Attributes | |
SwEditShell & | m_rEditSh |
SwPaM & | m_rCursor |
std::unique_ptr< SwNodeIndex > | m_pIndex |
int | m_nEndUndoCounter |
bool | m_bUndoIdInitialized |
Definition at line 48 of file acorrect.hxx.
SwAutoCorrDoc::SwAutoCorrDoc | ( | SwEditShell & | rEditShell, |
SwPaM & | rPam, | ||
sal_Unicode | cIns = 0 |
||
) |
Definition at line 92 of file acorrect.cxx.
|
overridevirtual |
Definition at line 100 of file acorrect.cxx.
References SwEditShell::EndUndo(), i, m_nEndUndoCounter, and m_rEditSh.
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 368 of file acorrect.cxx.
References assert(), SwIndex::Assign(), SwNodeIndex::Assign(), CheckPosInFly, IDocumentContentOperations::CopyRange(), DeleteSel(), DeleteSelImpl(), SwDoc::DontExpandFormat(), SwNode::FindTableNode(), GetAppLanguage(), SvxAutoCorrect::GetAutoCorrFileName(), SwPaM::GetContentNode(), SwViewShell::GetDoc(), SwNodes::GetEndOfContent(), SwNodes::GetEndOfExtras(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), GetLanguage(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SvxAutocorrWord::GetLong(), SwPaM::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), sw::GetRanges(), SvxAutocorrWord::GetShort(), SwTextFrame::GetText(), SwNode::GetTextNode(), SwNodes::GoNext(), sw::GotoNextLayoutTextFrame(), sw::GotoPrevLayoutTextFrame(), IDocumentRedlineAccess::HasRedline(), SvxAutocorrWord::IsTextOnly(), LANGUAGE_SYSTEM, m_bUndoIdInitialized, m_pIndex, m_rCursor, m_rEditSh, SwPosition::nContent, SwPosition::nNode, nPos, IDocumentContentOperations::ReplaceRange(), SwDontExpandItem::RestoreDontExpandItems(), SwDontExpandItem::SaveDontExpandItems(), SvxAutoCorrect::SearchWordsInList(), SwPaM::SetMark(), and USHRT_MAX.
Referenced by SwAutoFormat::AutoCorrect().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 144 of file acorrect.cxx.
References assert(), DeleteSel(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetNode(), SwNode::GetTextNode(), m_bUndoIdInitialized, m_rCursor, and m_rEditSh.
Definition at line 108 of file acorrect.cxx.
References DeleteSelImpl(), SwViewShell::GetDoc(), sw::GetRanges(), and m_rEditSh.
Referenced by ChgAutoCorrWord(), and Delete().
Definition at line 126 of file acorrect.cxx.
References assert(), IDocumentContentOperations::DeleteAndJoin(), IDocumentContentOperations::DeleteRange(), SwViewShell::GetDoc(), SwDoc::getIDocumentContentOperations(), SwPaM::GetMark(), SwPaM::GetPoint(), SwDoc::IsAutoFormatRedline(), m_rEditSh, and SwPosition::nNode.
Referenced by ChgAutoCorrWord(), and DeleteSel().
|
overridevirtual |
Reimplemented from SvxAutoCorrDoc.
Definition at line 594 of file acorrect.cxx.
References assert(), GetAppLanguage(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwNodeIndex::GetNode(), SwPaM::GetPoint(), SwNode::GetTextNode(), LANGUAGE_SYSTEM, m_rCursor, m_rEditSh, and SwPosition::nNode.
Referenced by ChgAutoCorrWord(), SaveCpltSttWord(), and TransliterateRTLWord().
|
overridevirtual |
Return the text of a previous paragraph.
bAtNormalPos | If <true> before the normal insert position; if <false> in which the corrected word was inserted. (Doesn't need to be the same paragraph!) |
Implements SvxAutoCorrDoc.
Definition at line 337 of file acorrect.cxx.
References SwViewShell::GetLayout(), SwPaM::GetPoint(), sw::GotoPrevLayoutTextFrame(), m_bUndoIdInitialized, m_pIndex, m_rCursor, m_rEditSh, and SwPosition::nNode.
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 159 of file acorrect.cxx.
References assert(), AUTOCORRECT, SwViewShell::GetDoc(), SwDoc::getIDocumentContentOperations(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetNode(), SwNode::GetTextNode(), IDocumentContentOperations::InsertString(), m_bUndoIdInitialized, m_nEndUndoCounter, m_rCursor, m_rEditSh, and SwEditShell::StartUndo().
|
overridevirtual |
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 184 of file acorrect.cxx.
References assert(), AUTOCORRECT, CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, Char, SwViewShell::GetDoc(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentRedlineAccess(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetNode(), SwNode::GetTextNode(), IDocumentRedlineAccess::HasRedline(), IDocumentContentOperations::InsertString(), SwDoc::IsAutoFormatRedline(), m_bUndoIdInitialized, m_nEndUndoCounter, m_rCursor, m_rEditSh, n, pos, IDocumentContentOperations::ReplaceRange(), and SwEditShell::StartUndo().
Referenced by Replace().
|
overridevirtual |
Reimplemented from SvxAutoCorrDoc.
Definition at line 584 of file acorrect.cxx.
References SwViewShell::GetDoc(), SwNodeIndex::GetIndex(), GetLanguage(), SwPaM::GetPoint(), m_pIndex, m_rCursor, m_rEditSh, SwPosition::nNode, and SwDoc::SetAutoCorrExceptWord().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 287 of file acorrect.cxx.
References aCharFormatSetRange, assert(), SwDoc::GetAttrPool(), SwViewShell::GetDoc(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetNode(), SwNode::GetTextNode(), SfxItemPool::GetWhich(), m_bUndoIdInitialized, m_rCursor, m_rEditSh, SetAllScriptItem(), SwDoc::SetFormatItemByAutoFormat(), and SfxPoolItem::SetWhich().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 313 of file acorrect.cxx.
References assert(), SwDoc::GetAttrPool(), SwViewShell::GetDoc(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), SwPaM::GetNode(), SwNode::GetTextNode(), m_bUndoIdInitialized, m_rCursor, m_rEditSh, and SwDoc::SetFormatItemByAutoFormat().
|
overridevirtual |
Implements SvxAutoCorrDoc.
Definition at line 510 of file acorrect.cxx.
References aProperties, assert(), CHAR_ZWSP, GetAppLanguage(), SwViewShell::GetDoc(), GetHyphenator(), SwDoc::getIDocumentContentOperations(), GetLanguage(), SwViewShell::GetLayout(), SwContentNode::getLayoutFrame(), LanguageTag::getLocale(), SwPaM::GetNode(), SwDoc::GetNumberFormatter(), SvNumberFormatter::GetPreviewString(), SwNode::GetTextNode(), i, LANGUAGE_SYSTEM, LANGUAGE_USER_HUNGARIAN_ROVAS, m_bUndoIdInitialized, m_rCursor, m_rEditSh, IDocumentContentOperations::ReplaceRange(), and sPrefix.
Referenced by SwAutoFormat::AutoCorrect().
|
private |
Definition at line 54 of file acorrect.hxx.
Referenced by ChgAutoCorrWord(), Delete(), GetPrevPara(), Insert(), ReplaceRange(), SetAttr(), SetINetAttr(), and TransliterateRTLWord().
|
private |
Definition at line 53 of file acorrect.hxx.
Referenced by Insert(), ReplaceRange(), and ~SwAutoCorrDoc().
|
private |
Definition at line 52 of file acorrect.hxx.
Referenced by ChgAutoCorrWord(), GetPrevPara(), and SaveCpltSttWord().
|
private |
Definition at line 51 of file acorrect.hxx.
Referenced by ChgAutoCorrWord(), Delete(), GetLanguage(), GetPrevPara(), Insert(), ReplaceRange(), SaveCpltSttWord(), SetAttr(), SetINetAttr(), and TransliterateRTLWord().
|
private |
Definition at line 50 of file acorrect.hxx.
Referenced by ChgAutoCorrWord(), Delete(), DeleteSel(), DeleteSelImpl(), GetLanguage(), GetPrevPara(), Insert(), ReplaceRange(), SaveCpltSttWord(), SetAttr(), SetINetAttr(), TransliterateRTLWord(), and ~SwAutoCorrDoc().