LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
Public Member Functions | |
SwUndoTableCpyTable (const SwDoc &rDoc) | |
virtual | ~SwUndoTableCpyTable () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
void | AddBoxBefore (const SwTableBox &rBox, bool bDelContent) |
void | AddBoxAfter (const SwTableBox &rBox, const SwNodeIndex &rIdx, bool bDelContent) |
bool | IsEmpty () const |
bool | InsertRow (SwTable &rTable, const SwSelBoxes &rBoxes, sal_uInt16 nCnt) |
void | dumpAsXml (xmlTextWriterPtr pWriter) const override |
Public Member Functions inherited from SwUndo | |
virtual void | UndoImpl (::sw::UndoRedoContext &)=0 |
virtual void | RedoImpl (::sw::UndoRedoContext &)=0 |
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 () |
Public Member Functions inherited from SfxUndoAction | |
SfxUndoAction () | |
virtual | ~SfxUndoAction () COVERITY_NOEXCEPT_FALSE |
virtual void | Undo () |
virtual void | UndoWithContext (SfxUndoContext &i_context) |
virtual void | Redo () |
virtual void | RedoWithContext (SfxUndoContext &i_context) |
virtual void | Repeat (SfxRepeatTarget &) |
virtual bool | CanRepeat (SfxRepeatTarget &) const |
virtual bool | Merge (SfxUndoAction *pNextAction) |
virtual OUString | GetComment () const |
virtual OUString | GetRepeatComment (SfxRepeatTarget &) const |
virtual ViewShellId | GetViewShellId () const |
const DateTime & | GetDateTime () const |
virtual void | dumpAsXml (xmlTextWriterPtr pWriter) const |
Static Private Member Functions | |
static std::unique_ptr< SwUndo > | PrepareRedline (SwDoc *pDoc, const SwTableBox &rBox, SwPosition &rPos, bool &rJoin, bool bRedo) |
Private Attributes | |
std::vector< std::unique_ptr< UndoTableCpyTable_Entry > > | m_vArr |
std::unique_ptr< SwUndoTableNdsChg > | m_pInsRowUndo |
Additional Inherited Members | |
Static Public Member Functions inherited from SwUndo | |
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) |
Protected Member Functions inherited from SwUndo | |
virtual SwRewriter | GetRewriter () const |
Returns the rewriter for this object. More... | |
virtual void | RepeatImpl (::sw::RepeatContext &) |
Static Protected Member Functions inherited from SwUndo | |
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) |
Protected Attributes inherited from SwUndo | |
bool | m_bCacheComment |
std::optional< OUString > | maComment |
Definition at line 278 of file UndoTable.hxx.
SwUndoTableCpyTable::SwUndoTableCpyTable | ( | const SwDoc & | rDoc | ) |
|
overridevirtual |
Definition at line 2352 of file untbl.cxx.
References m_pInsRowUndo, and m_vArr.
void SwUndoTableCpyTable::AddBoxAfter | ( | const SwTableBox & | rBox, |
const SwNodeIndex & | rIdx, | ||
bool | bDelContent | ||
) |
Definition at line 2614 of file untbl.cxx.
References UndoTableCpyTable_Entry::bJoin, DEBUG_REDLINE, SwNodes::Delete(), SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetNodes(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), IDocumentRedlineAccess::IsRedlineOn(), m_vArr, UndoTableCpyTable_Entry::nBoxIdx, UndoTableCpyTable_Entry::nOffset, PrepareRedline(), and UndoTableCpyTable_Entry::pUndo.
Referenced by lcl_CpyBox().
void SwUndoTableCpyTable::AddBoxBefore | ( | const SwTableBox & | rBox, |
bool | bDelContent | ||
) |
Definition at line 2583 of file untbl.cxx.
References DEBUG_REDLINE, Default, SwNode::EndOfSectionNode(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwDoc::GetDfltTextFormatColl(), SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTableBox::GetSttNd(), IDocumentRedlineAccess::IsRedlineOn(), m_vArr, SwNodes::MakeTextNode(), UndoTableCpyTable_Entry::pBoxNumAttr, UndoTableCpyTable_Entry::pUndo, RES_BOXATR_FORMAT(), RES_BOXATR_VALUE(), and RES_VERT_ORIENT().
Referenced by lcl_CpyBox().
|
overridevirtual |
Reimplemented from SfxUndoAction.
Definition at line 2737 of file untbl.cxx.
References m_pInsRowUndo, and m_vArr.
bool SwUndoTableCpyTable::InsertRow | ( | SwTable & | rTable, |
const SwSelBoxes & | rBoxes, | ||
sal_uInt16 | nCnt | ||
) |
Definition at line 2717 of file untbl.cxx.
References SwFormat::GetDoc(), SwTable::GetFrameFormat(), SwTable::GetTabSortBoxes(), SwTable::InsertRow(), m_pInsRowUndo, and TABLE_INSROW.
Referenced by SwTable::InsNewTable(), and SwTable::InsTable().
bool SwUndoTableCpyTable::IsEmpty | ( | ) | const |
Definition at line 2754 of file untbl.cxx.
References m_pInsRowUndo, and m_vArr.
|
staticprivate |
Definition at line 2643 of file untbl.cxx.
References SwPosition::Adjust(), IDocumentRedlineAccess::AppendRedline(), SwContentIndex::Assign(), SwPosition::Assign(), Default, DELETE, DontCombineRedlines, SwNode::EndOfSectionNode(), SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), IDocumentRedlineAccess::GetRedlineFlags(), SwTableBox::GetSttNd(), SwTextNode::GetText(), SwNode::GetTextNode(), Ignore, SwTextNode::JoinNext(), SwPosition::nContent, SwPosition::SetContent(), and IDocumentRedlineAccess::SetRedlineFlags_intern().
Referenced by AddBoxAfter(), and RedoImpl().
|
overridevirtual |
Implements SwUndo.
Definition at line 2495 of file untbl.cxx.
References UndoTableCpyTable_Entry::bJoin, SwTableBox::ClaimFrameFormat(), DEBUG_REDLINE, Default, SwNodes::Delete(), SwNode::EndOfSectionNode(), SwNode::FindTableNode(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), sw::IShellCursorSupplier::GetCurrentShellCursor(), sw::UndoRedoContext::GetCursorSupplier(), SwDoc::GetDfltTextFormatColl(), sw::UndoRedoContext::GetDoc(), SwTableBox::GetFrameFormat(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwUndo::GetRedlineFlags(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableNode::GetTable(), SwTable::GetTableBox(), IDocumentRedlineAccess::IsRedlineOn(), m_pInsRowUndo, m_vArr, SwNodes::MakeTextNode(), n, UndoTableCpyTable_Entry::nBoxIdx, UndoTableCpyTable_Entry::nOffset, UndoTableCpyTable_Entry::pBoxNumAttr, PrepareRedline(), UndoTableCpyTable_Entry::pUndo, RES_BOXATR_FORMAT(), RES_BOXATR_VALUE(), RES_VERT_ORIENT(), SwFormat::ResetFormatAttr(), and SwFormat::SetFormatAttr().
|
overridevirtual |
Implements SwUndo.
Definition at line 2358 of file untbl.cxx.
References SwPosition::Assign(), UndoTableCpyTable_Entry::bJoin, SwTableBox::ClaimFrameFormat(), SwUndoRedlineDelete::ContentStart(), DEBUG_REDLINE, Default, SwNodes::Delete(), IDocumentRedlineAccess::DeleteRedline(), SwNode::EndOfSectionNode(), SwNode::FindTableNode(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwDoc::GetDfltTextFormatColl(), sw::UndoRedoContext::GetDoc(), SwTableBox::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwUndo::GetRedlineFlags(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwNode::GetTextNode(), SwUndoDelete::IsDelFullPara(), IDocumentRedlineAccess::IsRedlineOn(), m_pInsRowUndo, m_vArr, SwNodes::MakeTextNode(), n, UndoTableCpyTable_Entry::nBoxIdx, SwUndoRedlineDelete::NodeDiff(), UndoTableCpyTable_Entry::nOffset, UndoTableCpyTable_Entry::pBoxNumAttr, UndoTableCpyTable_Entry::pUndo, RES_BOXATR_FORMAT(), RES_BOXATR_VALUE(), RES_VERT_ORIENT(), SwFormat::ResetFormatAttr(), SAL_WARN, and SwFormat::SetFormatAttr().
|
private |
Definition at line 281 of file UndoTable.hxx.
Referenced by dumpAsXml(), InsertRow(), IsEmpty(), RedoImpl(), UndoImpl(), and ~SwUndoTableCpyTable().
|
private |
Definition at line 280 of file UndoTable.hxx.
Referenced by AddBoxAfter(), AddBoxBefore(), dumpAsXml(), IsEmpty(), RedoImpl(), UndoImpl(), and ~SwUndoTableCpyTable().