LibreOffice Module sw (master)
1
|
#include <UndoRedline.hxx>
Public Member Functions | |
SwUndoRedlineDelete (const SwPaM &rRange, SwUndoId nUserId) | |
virtual SwRewriter | GetRewriter () const override |
Returns the rewriter for this object. More... | |
bool | CanGrouping (const SwUndoRedlineDelete &rPrev) |
SwNodeOffset | NodeDiff () const |
sal_Int32 | ContentStart () const |
void | SetRedlineText (const OUString &rText) |
![]() | |
SwUndoRedline (SwUndoId nUserId, const SwPaM &rRange) | |
virtual | ~SwUndoRedline () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
sal_uInt16 | GetRedlSaveCount () const |
![]() | |
SwUndo (SwUndoId const nId, const SwDoc *pDoc) | |
virtual | ~SwUndo () override |
SwUndoId | GetId () const |
virtual OUString | GetComment () const override |
Returns textual comment for this undo object. More... | |
ViewShellId | GetViewShellId () const override |
See SfxUndoAction::GetViewShellId(). More... | |
RedlineFlags | GetRedlineFlags () const |
void | SetRedlineFlags (RedlineFlags eMode) |
bool | IsDelBox () const |
void | IgnoreRepeat () |
![]() | |
SfxUndoAction () | |
virtual | ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE |
virtual bool | Merge (SfxUndoAction *pNextAction) |
virtual OUString | GetRepeatComment (SfxRepeatTarget &) const |
const DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
![]() | |
SwUndRng () | |
SwUndRng (const SwPaM &) | |
void | SetValues (const SwPaM &rPam) |
void | SetPaM (SwPaM &, bool bCorrToContent=false) const |
SwPaM & | AddUndoRedoPaM (::sw::UndoRedoContext &, bool const bCorrToContent=false) const |
Private Member Functions | |
virtual void | UndoRedlineImpl (SwDoc &rDoc, SwPaM &rPam) override |
virtual void | RedoRedlineImpl (SwDoc &rDoc, SwPaM &rPam) override |
Private Attributes | |
bool | m_bCanGroup: 1 |
bool | m_bIsDelim: 1 |
bool | m_bIsBackspace: 1 |
OUString | m_sRedlineText |
Additional Inherited Members | |
![]() | |
static bool | FillSaveData (const SwPaM &rRange, SwRedlineSaveDatas &rSData, bool bDelRange=true, bool bCopyNext=true) |
static bool | FillSaveDataForFormat (const SwPaM &, SwRedlineSaveDatas &) |
static void | SetSaveData (SwDoc &rDoc, SwRedlineSaveDatas &rSData) |
static bool | HasHiddenRedlines (const SwRedlineSaveDatas &rSData) |
![]() | |
SwNodeOffset | m_nSttNode |
SwNodeOffset | m_nEndNode |
sal_Int32 | m_nSttContent |
sal_Int32 | m_nEndContent |
![]() | |
virtual void | RepeatImpl (::sw::RepeatContext &) |
![]() | |
static void | RemoveIdxFromSection (SwDoc &, SwNodeOffset nSttIdx, const SwNodeOffset *pEndIdx=nullptr) |
static void | RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext) |
static void | RemoveIdxRel (SwNodeOffset, const SwPosition &) |
static bool | CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd) |
![]() | |
std::unique_ptr< SwRedlineData > | mpRedlData |
std::unique_ptr< SwRedlineSaveDatas > | mpRedlSaveData |
SwUndoId | mnUserId |
bool | mbHiddenRedlines |
![]() | |
bool | m_bCacheComment |
std::optional< OUString > | maComment |
Definition at line 53 of file UndoRedline.hxx.
Definition at line 200 of file unredln.cxx.
References CH_TXTATR_BREAKWORD, CH_TXTATR_INWORD, DELETE, EMPTY, false, GetAppCharClass(), SwIndex::GetIndex(), SwPaM::GetNode(), SwPaM::GetPoint(), SwTextNode::GetText(), SwPaM::GetText(), SwNode::GetTextNode(), CharClass::isLetterNumeric(), SwUndo::m_bCacheComment, m_bCanGroup, m_bIsBackspace, m_bIsDelim, SwUndRng::m_nEndContent, SwUndRng::m_nEndNode, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, SwUndoRedline::mnUserId, SwPosition::nContent, and SetRedlineText().
bool SwUndoRedlineDelete::CanGrouping | ( | const SwUndoRedlineDelete & | rPrev | ) |
Definition at line 255 of file unredln.cxx.
References SwUndo::CanRedlineGroup(), DELETE, m_bCanGroup, m_bIsBackspace, m_bIsDelim, SwUndRng::m_nEndContent, SwUndRng::m_nEndNode, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, SwUndoRedline::mnUserId, and SwUndoRedline::mpRedlSaveData.
|
inline |
Definition at line 72 of file UndoRedline.hxx.
References SwUndRng::m_nSttContent.
Referenced by SwUndoTableCpyTable::UndoImpl().
|
overridevirtual |
Returns the rewriter for this object.
Reimplemented from SwUndo.
Definition at line 224 of file unredln.cxx.
References SwRewriter::AddRule(), SwRewriter::Apply(), aStr, DenoteSpecialCharacters(), m_sRedlineText, nUndoStringLength, ShortenString(), SwResId(), and UndoArg1.
|
inline |
Definition at line 71 of file UndoRedline.hxx.
References SwUndRng::m_nEndNode, and SwUndRng::m_nSttNode.
Referenced by SwUndoTableCpyTable::UndoImpl().
Reimplemented from SwUndoRedline.
Definition at line 246 of file unredln.cxx.
References IDocumentRedlineAccess::AppendRedline(), SwDoc::getIDocumentRedlineAccess(), SwPaM::GetMark(), SwPaM::GetPoint(), SwUndoRedline::mpRedlData, and sw::UpdateFramesForAddDeleteRedline().
void SwUndoRedlineDelete::SetRedlineText | ( | const OUString & | rText | ) |
Definition at line 236 of file unredln.cxx.
References m_sRedlineText.
Referenced by SwUndoRedlineDelete().
Reimplemented from SwUndoRedline.
Definition at line 241 of file unredln.cxx.
References IDocumentRedlineAccess::DeleteRedline(), and SwDoc::getIDocumentRedlineAccess().
|
private |
Definition at line 55 of file UndoRedline.hxx.
Referenced by CanGrouping(), and SwUndoRedlineDelete().
|
private |
Definition at line 57 of file UndoRedline.hxx.
Referenced by CanGrouping(), and SwUndoRedlineDelete().
|
private |
Definition at line 56 of file UndoRedline.hxx.
Referenced by CanGrouping(), and SwUndoRedlineDelete().
|
private |
Definition at line 59 of file UndoRedline.hxx.
Referenced by GetRewriter(), and SetRedlineText().