LibreOffice Module sw (master) 1
|
#include <UndoTable.hxx>
Public Member Functions | |
SwUndoTableNumFormat (const SwTableBox &rBox, const SfxItemSet *pNewSet=nullptr) | |
virtual | ~SwUndoTableNumFormat () override |
virtual void | UndoImpl (::sw::UndoRedoContext &) override |
virtual void | RedoImpl (::sw::UndoRedoContext &) override |
void | SetNumFormat (sal_uLong nNewNumFormatIdx, const double &rNewNumber) |
void | SetBox (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 |
Private Attributes | |
std::unique_ptr< SfxItemSet > | m_pBoxSet |
std::unique_ptr< SwHistory > | m_pHistory |
OUString | m_aStr |
OUString | m_aNewFormula |
sal_uLong | m_nFormatIdx |
sal_uLong | m_nNewFormatIdx |
double | m_fNum |
double | m_fNewNum |
SwNodeOffset | m_nNode |
SwNodeOffset | m_nNodePos |
bool | m_bNewFormat: 1 |
bool | m_bNewFormula: 1 |
bool | m_bNewValue: 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) |
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 248 of file UndoTable.hxx.
SwUndoTableNumFormat::SwUndoTableNumFormat | ( | const SwTableBox & | rBox, |
const SfxItemSet * | pNewSet = nullptr |
||
) |
Definition at line 2045 of file untbl.cxx.
References aTableBoxSetRange, SwpHints::DeRegister(), SwDoc::GetAttrPool(), SwFormat::GetAttrSet(), SwFormat::GetDoc(), SwTableBox::GetFrameFormat(), SfxItemSet::GetItemIfSet(), SwDoc::GetNodes(), SwContentNode::GetpSwAttrSet(), SwTextNode::GetpSwpHints(), SwTableBox::GetSttIdx(), SwTableBox::GetSttNd(), SwTextNode::GetText(), SwContentNode::HasSwAttrSet(), SwTableBox::IsValidNumTextNd(), m_aNewFormula, m_aStr, m_bNewFormat, m_bNewFormula, m_bNewValue, m_fNewNum, m_nNewFormatIdx, m_nNode, m_nNodePos, m_pBoxSet, m_pHistory, NODE_OFFSET_MAX(), RES_BOXATR_FORMAT(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), and TBLNUMFMT.
|
overridevirtual |
Definition at line 2112 of file untbl.cxx.
References m_pBoxSet, and m_pHistory.
|
overridevirtual |
Implements SwUndo.
Definition at line 2212 of file untbl.cxx.
References SwPosition::Assign(), SwTableBox::ClaimFrameFormat(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), SwNode::FindSttNodeByType(), SwNode::FindTableNode(), SwDoc::GetAttrPool(), sw::UndoRedoContext::GetCursorSupplier(), GetDfltAttr(), sw::UndoRedoContext::GetDoc(), SwDoc::getIDocumentFieldsAccess(), SwNode::GetIndex(), SwPosition::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), getSwDefaultTextFormat(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwNodes::GoNext(), Ignore, SwNode::IsContentNode(), m_aNewFormula, m_bNewFormat, m_bNewFormula, m_bNewValue, m_fNewNum, m_fNum, m_nFormatIdx, m_nNewFormatIdx, m_nNode, m_pBoxSet, NONE, SfxItemSet::Put(), RES_BOXATR_FORMAT(), RES_BOXATR_FORMULA(), RES_BOXATR_VALUE(), SwFormat::ResetFormatAttr(), SwFormat::SetFormatAttr(), SwTableBoxStartNode, and IDocumentFieldsAccess::UpdateTableFields().
void SwUndoTableNumFormat::SetBox | ( | const SwTableBox & | rBox | ) |
Definition at line 2300 of file untbl.cxx.
References SwTableBox::GetSttIdx(), and m_nNode.
|
inline |
Definition at line 271 of file UndoTable.hxx.
References m_fNum, and m_nFormatIdx.
|
overridevirtual |
Implements SwUndo.
Definition at line 2118 of file untbl.cxx.
References SwPosition::Assign(), SwTableBox::ChgFrameFormat(), SwTextNode::ClearSwpHintsArr(), sw::IShellCursorSupplier::CreateNewShellCursor(), SwPaM::DeleteMark(), IDocumentRedlineAccess::DeleteRedline(), SwTextNode::EraseText(), SwNode::FindTableNode(), sw::UndoRedoContext::GetCursorSupplier(), sw::UndoRedoContext::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwNode::GetIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTextNode::GetpSwpHints(), SwTableBox::GetSttNd(), SwTableNode::GetTable(), SwTable::GetTableBox(), SwTextNode::GetText(), SwContentNode::HasSwAttrSet(), SwTextNode::InsertText(), m_aStr, m_nNode, m_nNodePos, m_pBoxSet, m_pHistory, SwDoc::MakeTableBoxFormat(), NODE_OFFSET_MAX(), NOHINTEXPAND, SwTextNode::ResetAllAttr(), SwFormat::SetFormatAttr(), and SwTableBoxStartNode.
|
private |
Definition at line 252 of file UndoTable.hxx.
Referenced by RedoImpl(), and SwUndoTableNumFormat().
|
private |
Definition at line 252 of file UndoTable.hxx.
Referenced by SwUndoTableNumFormat(), and UndoImpl().
|
private |
Definition at line 259 of file UndoTable.hxx.
Referenced by RedoImpl(), and SwUndoTableNumFormat().
|
private |
Definition at line 260 of file UndoTable.hxx.
Referenced by RedoImpl(), and SwUndoTableNumFormat().
|
private |
Definition at line 261 of file UndoTable.hxx.
Referenced by RedoImpl(), and SwUndoTableNumFormat().
|
private |
Definition at line 255 of file UndoTable.hxx.
Referenced by RedoImpl(), and SwUndoTableNumFormat().
|
private |
Definition at line 255 of file UndoTable.hxx.
Referenced by RedoImpl(), and SetNumFormat().
|
private |
Definition at line 254 of file UndoTable.hxx.
Referenced by RedoImpl(), and SetNumFormat().
|
private |
Definition at line 254 of file UndoTable.hxx.
Referenced by RedoImpl(), and SwUndoTableNumFormat().
|
private |
Definition at line 256 of file UndoTable.hxx.
Referenced by RedoImpl(), SetBox(), SwUndoTableNumFormat(), and UndoImpl().
|
private |
Definition at line 257 of file UndoTable.hxx.
Referenced by SwUndoTableNumFormat(), and UndoImpl().
|
private |
Definition at line 250 of file UndoTable.hxx.
Referenced by RedoImpl(), SwUndoTableNumFormat(), UndoImpl(), and ~SwUndoTableNumFormat().
|
private |
Definition at line 251 of file UndoTable.hxx.
Referenced by SwUndoTableNumFormat(), UndoImpl(), and ~SwUndoTableNumFormat().