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) |
![]() | |
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 Attributes | |
OUString | m_sTableName |
SwInsertTableOptions | m_aInsertTableOpts |
std::vector< sal_uLong > | 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 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) |
![]() | |
sal_uLong | m_nSttNode |
sal_uLong | m_nEndNode |
sal_Int32 | m_nSttContent |
sal_Int32 | m_nEndContent |
![]() | |
virtual SwRewriter | GetRewriter () const |
Returns the rewriter for this object. More... | |
![]() | |
static void | RemoveIdxFromSection (SwDoc &, sal_uLong nSttIdx, const sal_uLong *pEndIdx=nullptr) |
static void | RemoveIdxFromRange (SwPaM &rPam, bool bMoveNext) |
static void | RemoveIdxRel (sal_uLong, const SwPosition &) |
static bool | CanRedlineGroup (SwRedlineSaveDatas &rCurr, const SwRedlineSaveDatas &rCheck, bool bCurrIsEnd) |
![]() | |
bool | m_bCacheComment |
std::optional< OUString > | maComment |
Definition at line 74 of file UndoTable.hxx.
SwUndoTextToTable::SwUndoTextToTable | ( | const SwPaM & | rRg, |
const SwInsertTableOptions & | rInsTableOpts, | ||
sal_Unicode | cCh, | ||
sal_uInt16 | nAdj, | ||
const SwTableAutoFormat * | pAFormat | ||
) |
Definition at line 702 of file untbl.cxx.
References SwPaM::End(), SwNode::GetContentNode(), SwPaM::GetDoc(), SwNodes::GetEndOfContent(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwContentNode::Len(), m_bSplitEnd, m_pAutoFormat, SwPosition::nContent, SwPosition::nNode, and TEXTTOTABLE.
|
overridevirtual |
Definition at line 719 of file untbl.cxx.
References m_pAutoFormat.
void SwUndoTextToTable::AddFillBox | ( | const SwTableBox & | rBox | ) |
Definition at line 824 of file untbl.cxx.
References SwTableBox::GetSttIdx(), and mvDelBoxes.
Referenced by lcl_BalanceTable().
SwHistory & SwUndoTextToTable::GetHistory | ( | ) |
Definition at line 829 of file untbl.cxx.
References m_pHistory.
Referenced by SwDoc::TextToTable().
|
overridevirtual |
Implements SwUndo.
Definition at line 802 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 813 of file untbl.cxx.
References SwNode::FindTableNode(), sw::RepeatContext::GetDoc(), SwPaM::GetNode(), sw::RepeatContext::GetRepeatPaM(), m_aInsertTableOpts, m_cSeparator, m_nAdjust, m_pAutoFormat, and SwDoc::TextToTable().
|
overridevirtual |
Implements SwUndo.
Definition at line 724 of file untbl.cxx.
References SwUndRng::AddUndoRedoPaM(), SwNodeIndex::Assign(), SwContentNode::CanJoinNext(), SwHistory::Count(), DeleteBox_(), fnMoveBackward, SwNode::GetContentNode(), sw::UndoRedoContext::GetDoc(), SwNodes::GetEndOfContent(), SwNodeIndex::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwTable::GetTableBox(), SwNode::GetTableNode(), SwTextNode::GetText(), SwNode::GetTextNode(), GoInContent(), SwTextNode::JoinNext(), SwContentNode::JoinNext(), m_bSplitEnd, m_cSeparator, SwUndRng::m_nEndNode, SwUndRng::m_nSttContent, SwUndRng::m_nSttNode, m_pHistory, m_sTableName, mvDelBoxes, n, SwPosition::nNode, SwUndo::RemoveIdxFromSection(), SwUndo::RemoveIdxRel(), SwHistory::SetTmpEnd(), SwDoc::TableToText(), and SwHistory::TmpRollback().
|
private |
Definition at line 77 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 83 of file UndoTable.hxx.
Referenced by SwUndoTextToTable(), and UndoImpl().
|
private |
Definition at line 81 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), and UndoImpl().
|
private |
Definition at line 82 of file UndoTable.hxx.
Referenced by RedoImpl(), and RepeatImpl().
|
private |
Definition at line 79 of file UndoTable.hxx.
Referenced by RedoImpl(), RepeatImpl(), SwUndoTextToTable(), and ~SwUndoTextToTable().
|
private |
Definition at line 80 of file UndoTable.hxx.
Referenced by GetHistory(), and UndoImpl().
|
private |
Definition at line 76 of file UndoTable.hxx.
Referenced by RedoImpl(), and UndoImpl().
|
private |
Definition at line 78 of file UndoTable.hxx.
Referenced by AddFillBox(), and UndoImpl().