LibreOffice Module sw (master) 1
Public Member Functions | Private Attributes | List of all members
SwUndoTableNumFormat Class Referencefinal

#include <UndoTable.hxx>

Inheritance diagram for SwUndoTableNumFormat:
[legend]
Collaboration diagram for SwUndoTableNumFormat:
[legend]

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 DateTimeGetDateTime () const
 
virtual void dumpAsXml (xmlTextWriterPtr pWriter) const
 

Private Attributes

std::unique_ptr< SfxItemSetm_pBoxSet
 
std::unique_ptr< SwHistorym_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
 

Detailed Description

Definition at line 248 of file UndoTable.hxx.

Constructor & Destructor Documentation

◆ SwUndoTableNumFormat()

SwUndoTableNumFormat::SwUndoTableNumFormat ( const SwTableBox rBox,
const SfxItemSet pNewSet = nullptr 
)

◆ ~SwUndoTableNumFormat()

SwUndoTableNumFormat::~SwUndoTableNumFormat ( )
overridevirtual

Definition at line 2112 of file untbl.cxx.

References m_pBoxSet, and m_pHistory.

Member Function Documentation

◆ RedoImpl()

void SwUndoTableNumFormat::RedoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

◆ SetBox()

void SwUndoTableNumFormat::SetBox ( const SwTableBox rBox)

Definition at line 2300 of file untbl.cxx.

References SwTableBox::GetSttIdx(), and m_nNode.

◆ SetNumFormat()

void SwUndoTableNumFormat::SetNumFormat ( sal_uLong  nNewNumFormatIdx,
const double &  rNewNumber 
)
inline

Definition at line 271 of file UndoTable.hxx.

References m_fNum, and m_nFormatIdx.

◆ UndoImpl()

void SwUndoTableNumFormat::UndoImpl ( ::sw::UndoRedoContext rContext)
overridevirtual

Member Data Documentation

◆ m_aNewFormula

OUString SwUndoTableNumFormat::m_aNewFormula
private

Definition at line 252 of file UndoTable.hxx.

Referenced by RedoImpl(), and SwUndoTableNumFormat().

◆ m_aStr

OUString SwUndoTableNumFormat::m_aStr
private

Definition at line 252 of file UndoTable.hxx.

Referenced by SwUndoTableNumFormat(), and UndoImpl().

◆ m_bNewFormat

bool SwUndoTableNumFormat::m_bNewFormat
private

Definition at line 259 of file UndoTable.hxx.

Referenced by RedoImpl(), and SwUndoTableNumFormat().

◆ m_bNewFormula

bool SwUndoTableNumFormat::m_bNewFormula
private

Definition at line 260 of file UndoTable.hxx.

Referenced by RedoImpl(), and SwUndoTableNumFormat().

◆ m_bNewValue

bool SwUndoTableNumFormat::m_bNewValue
private

Definition at line 261 of file UndoTable.hxx.

Referenced by RedoImpl(), and SwUndoTableNumFormat().

◆ m_fNewNum

double SwUndoTableNumFormat::m_fNewNum
private

Definition at line 255 of file UndoTable.hxx.

Referenced by RedoImpl(), and SwUndoTableNumFormat().

◆ m_fNum

double SwUndoTableNumFormat::m_fNum
private

Definition at line 255 of file UndoTable.hxx.

Referenced by RedoImpl(), and SetNumFormat().

◆ m_nFormatIdx

sal_uLong SwUndoTableNumFormat::m_nFormatIdx
private

Definition at line 254 of file UndoTable.hxx.

Referenced by RedoImpl(), and SetNumFormat().

◆ m_nNewFormatIdx

sal_uLong SwUndoTableNumFormat::m_nNewFormatIdx
private

Definition at line 254 of file UndoTable.hxx.

Referenced by RedoImpl(), and SwUndoTableNumFormat().

◆ m_nNode

SwNodeOffset SwUndoTableNumFormat::m_nNode
private

Definition at line 256 of file UndoTable.hxx.

Referenced by RedoImpl(), SetBox(), SwUndoTableNumFormat(), and UndoImpl().

◆ m_nNodePos

SwNodeOffset SwUndoTableNumFormat::m_nNodePos
private

Definition at line 257 of file UndoTable.hxx.

Referenced by SwUndoTableNumFormat(), and UndoImpl().

◆ m_pBoxSet

std::unique_ptr<SfxItemSet> SwUndoTableNumFormat::m_pBoxSet
private

Definition at line 250 of file UndoTable.hxx.

Referenced by RedoImpl(), SwUndoTableNumFormat(), UndoImpl(), and ~SwUndoTableNumFormat().

◆ m_pHistory

std::unique_ptr<SwHistory> SwUndoTableNumFormat::m_pHistory
private

Definition at line 251 of file UndoTable.hxx.

Referenced by SwUndoTableNumFormat(), UndoImpl(), and ~SwUndoTableNumFormat().


The documentation for this class was generated from the following files: