|
LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
Public Member Functions | |
| SwUndoTextToTable (const SwPaM &, const SwInsertTableOptions &, sal_Unicode, sal_uInt16, const SwTableAutoFormat *pAFormat) | |
| virtual | ~SwUndoTextToTable () override |
| virtual void | UndoImpl (::sw::UndoRedoContext &) override |
| virtual void | RedoImpl (::sw::UndoRedoContext &) override |
| virtual void | RepeatImpl (::sw::RepeatContext &) override |
| SwHistory & | GetHistory () |
| void | AddFillBox (const SwTableBox &rBox) |
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 |
Public Member Functions inherited from SwUndRng | |
| 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 Attributes | |
| OUString | m_sTableName |
| SwInsertTableOptions | m_aInsertTableOpts |
| std::vector< SwNodeOffset > | mvDelBoxes |
| std::unique_ptr< SwTableAutoFormat > | m_pAutoFormat |
| SwHistory * | m_pHistory |
| sal_Unicode | m_cSeparator |
| sal_uInt16 | m_nAdjust |
| bool | m_bSplitEnd: 1 |
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) |
Public Attributes inherited from SwUndRng | |
| SwNodeOffset | m_nSttNode |
| SwNodeOffset | m_nEndNode |
| sal_Int32 | m_nSttContent |
| sal_Int32 | m_nEndContent |
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 84 of file UndoTable.hxx.
| SwUndoTextToTable::SwUndoTextToTable | ( | const SwPaM & | rRg, |
| const SwInsertTableOptions & | rInsTableOpts, | ||
| sal_Unicode | cCh, | ||
| sal_uInt16 | nAdj, | ||
| const SwTableAutoFormat * | pAFormat | ||
| ) |
Definition at line 710 of file untbl.cxx.
References SwPaM::End(), SwPosition::GetContentIndex(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwNodes::GetEndOfContent(), SwNode::GetIndex(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwContentNode::Len(), m_bSplitEnd, m_pAutoFormat, and TEXTTOTABLE.
|
overridevirtual |
Definition at line 727 of file untbl.cxx.
References m_pAutoFormat.
| void SwUndoTextToTable::AddFillBox | ( | const SwTableBox & | rBox | ) |
Definition at line 827 of file untbl.cxx.
References SwTableBox::GetSttIdx(), and mvDelBoxes.
Referenced by lcl_BalanceTable().
| SwHistory & SwUndoTextToTable::GetHistory | ( | ) |
Definition at line 832 of file untbl.cxx.
References m_pHistory.
Referenced by SwDoc::TextToTable().
|
overridevirtual |
Implements SwUndo.
Definition at line 805 of file untbl.cxx.
References SwUndRng::AddUndoRedoPaM(), sw::UndoRedoContext::GetDoc(), SwTable::GetFrameFormat(), m_aInsertTableOpts, m_cSeparator, m_nAdjust, m_pAutoFormat, m_sTableName, SwUndo::RemoveIdxFromRange(), SwUndRng::SetPaM(), and SwDoc::TextToTable().
|
overridevirtual |
Reimplemented from SwUndo.
Definition at line 816 of file untbl.cxx.
References SwNode::FindTableNode(), sw::RepeatContext::GetDoc(), SwPaM::GetPointNode(), sw::RepeatContext::GetRepeatPaM(), m_aInsertTableOpts, m_cSeparator, m_nAdjust, m_pAutoFormat, and SwDoc::TextToTable().
|
overridevirtual |
Implements SwUndo.
Definition at line 732 of file untbl.cxx.
References SwUndRng::AddUndoRedoPaM(), SwContentIndex::Assign(), SwContentNode::CanJoinNext(), SwHistory::Count(), DeleteBox_(), SwTableNode::DelFrames(), fnMoveBackward, SwNode::GetContentNode(), sw::UndoRedoContext::GetDoc(), SwTable::GetFrameFormat(), SwNode::GetIndex(), SwFormat::GetName(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwNode::GetTableNode(), SwTextNode::GetText(), SwNode::GetTextNode(), GoInContent(), SwContentNode::JoinNext(), SwTextNode::JoinNext(), m_bSplitEnd, m_cSeparator, SwUndRng::m_nEndNode, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, m_pHistory, m_sTableName, SwPaM::Move(), mvDelBoxes, n, SwPosition::nContent, SwUndo::RemoveIdxFromSection(), SwUndo::RemoveIdxRel(), SwPosition::SetContent(), SwHistory::SetTmpEnd(), SwDoc::TableToText(), and SwHistory::TmpRollback().
|
private |
Definition at line 87 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 93 of file UndoTable.hxx.
Referenced by SwUndoTextToTable(), and UndoImpl().
|
private |
Definition at line 91 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), and UndoImpl().
|
private |
Definition at line 92 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 89 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), SwUndoTextToTable(), and ~SwUndoTextToTable().
|
private |
Definition at line 90 of file UndoTable.hxx.
Referenced by GetHistory(), and UndoImpl().
|
private |
Definition at line 86 of file UndoTable.hxx.
Referenced by RedoImpl(), and UndoImpl().
|
private |
Definition at line 88 of file UndoTable.hxx.
Referenced by AddFillBox(), and UndoImpl().