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

#include <UndoInsert.hxx>

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

Public Member Functions

 SwUndoInsertLabel (const SwLabelType eTyp, OUString rText, OUString aSeparator, OUString aNumberSeparator, const bool bBefore, const sal_uInt16 nId, OUString aCharacterStyle, const bool bCpyBrd, const SwDoc *pDoc)
 
virtual ~SwUndoInsertLabel () override
 
virtual void UndoImpl (::sw::UndoRedoContext &) override
 
virtual void RedoImpl (::sw::UndoRedoContext &) override
 
virtual void RepeatImpl (::sw::RepeatContext &) override
 
virtual SwRewriter GetRewriter () const override
 Returns the rewriter of this undo object. More...
 
void SetNodePos (SwNodeOffset nNd)
 
void SetUndoKeep ()
 
void SetFlys (SwFrameFormat &rOldFly, SfxItemSet const &rChgSet, SwFrameFormat &rNewFly)
 
void SetDrawObj (SdrLayerID nLayerId)
 
- 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
 

Static Public Member Functions

static SwRewriter CreateRewriter (const OUString &rStr)
 
- 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)
 

Private Attributes

union {
   struct {
      SwUndoInsLayFormat *   pUndoFly
 
      SwUndoFormatAttr *   pUndoAttr
 
   }   OBJECT
 
   struct {
      SwUndoDelete *   pUndoInsNd
 
      SwNodeOffset   nNode
 
   }   NODE
 
}; 
 
OUString m_sText
 
OUString m_sSeparator
 
OUString m_sNumberSeparator
 
OUString m_sCharacterStyle
 
sal_uInt16 m_nFieldId
 
SwLabelType m_eType
 
SdrLayerID m_nLayerId
 
bool m_bBefore:1
 
bool m_bUndoKeep:1
 
bool m_bCopyBorder:1
 

Additional Inherited Members

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 160 of file UndoInsert.hxx.

Constructor & Destructor Documentation

◆ SwUndoInsertLabel()

SwUndoInsertLabel::SwUndoInsertLabel ( const SwLabelType  eTyp,
OUString  rText,
OUString  aSeparator,
OUString  aNumberSeparator,
const bool  bBefore,
const sal_uInt16  nId,
OUString  aCharacterStyle,
const bool  bCpyBrd,
const SwDoc pDoc 
)

Definition at line 832 of file unins.cxx.

References INSERTLABEL, m_bUndoKeep, m_eType, and OBJECT.

◆ ~SwUndoInsertLabel()

SwUndoInsertLabel::~SwUndoInsertLabel ( )
overridevirtual

Definition at line 857 of file unins.cxx.

References Draw, m_eType, NODE, Object, and OBJECT.

Member Function Documentation

◆ CreateRewriter()

SwRewriter SwUndoInsertLabel::CreateRewriter ( const OUString &  rStr)
static

◆ GetRewriter()

SwRewriter SwUndoInsertLabel::GetRewriter ( ) const
overridevirtual

Returns the rewriter of this undo object.

The rewriter contains this rule:

$1 -> '<text of inserted label>'

<text of inserted label> is shortened to nUndoStringLength characters.

Returns
the rewriter of this undo object

Reimplemented from SwUndo.

Definition at line 988 of file unins.cxx.

References CreateRewriter(), and m_sText.

◆ RedoImpl()

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

◆ RepeatImpl()

void SwUndoInsertLabel::RepeatImpl ( ::sw::RepeatContext rContext)
overridevirtual

◆ SetDrawObj()

void SwUndoInsertLabel::SetDrawObj ( SdrLayerID  nLayerId)

Definition at line 1027 of file unins.cxx.

References Draw, m_eType, and m_nLayerId.

Referenced by lcl_InsertDrawLabel().

◆ SetFlys()

void SwUndoInsertLabel::SetFlys ( SwFrameFormat rOldFly,
SfxItemSet const &  rChgSet,
SwFrameFormat rNewFly 
)

◆ SetNodePos()

void SwUndoInsertLabel::SetNodePos ( SwNodeOffset  nNd)
inline

Definition at line 218 of file UndoInsert.hxx.

References m_eType, NODE, and Object.

Referenced by lcl_InsertLabel().

◆ SetUndoKeep()

void SwUndoInsertLabel::SetUndoKeep ( )
inline

Definition at line 221 of file UndoInsert.hxx.

References m_bUndoKeep.

Referenced by lcl_InsertLabel().

◆ UndoImpl()

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

Member Data Documentation

◆ 

union { ... } SwUndoInsertLabel::@6

◆ m_bBefore

bool SwUndoInsertLabel::m_bBefore
private

Definition at line 184 of file UndoInsert.hxx.

Referenced by RepeatImpl().

◆ m_bCopyBorder

bool SwUndoInsertLabel::m_bCopyBorder
private

Definition at line 186 of file UndoInsert.hxx.

Referenced by RepeatImpl().

◆ m_bUndoKeep

bool SwUndoInsertLabel::m_bUndoKeep
private

Definition at line 185 of file UndoInsert.hxx.

Referenced by RedoImpl(), SetUndoKeep(), SwUndoInsertLabel(), and UndoImpl().

◆ m_eType

SwLabelType SwUndoInsertLabel::m_eType
private

◆ m_nFieldId

sal_uInt16 SwUndoInsertLabel::m_nFieldId
private

Definition at line 181 of file UndoInsert.hxx.

Referenced by RepeatImpl().

◆ m_nLayerId

SdrLayerID SwUndoInsertLabel::m_nLayerId
private

Definition at line 183 of file UndoInsert.hxx.

Referenced by RedoImpl(), SetDrawObj(), and UndoImpl().

◆ m_sCharacterStyle

OUString SwUndoInsertLabel::m_sCharacterStyle
private

Definition at line 179 of file UndoInsert.hxx.

Referenced by RepeatImpl().

◆ m_sNumberSeparator

OUString SwUndoInsertLabel::m_sNumberSeparator
private

Definition at line 178 of file UndoInsert.hxx.

Referenced by RepeatImpl().

◆ m_sSeparator

OUString SwUndoInsertLabel::m_sSeparator
private

Definition at line 177 of file UndoInsert.hxx.

Referenced by RepeatImpl().

◆ m_sText

OUString SwUndoInsertLabel::m_sText
private

Definition at line 175 of file UndoInsert.hxx.

Referenced by GetRewriter(), and RepeatImpl().

◆ nNode

SwNodeOffset SwUndoInsertLabel::nNode

Definition at line 171 of file UndoInsert.hxx.

◆ 

struct { ... } SwUndoInsertLabel::NODE

◆ 

struct { ... } SwUndoInsertLabel::OBJECT

◆ pUndoAttr

SwUndoFormatAttr* SwUndoInsertLabel::pUndoAttr

Definition at line 166 of file UndoInsert.hxx.

◆ pUndoFly

SwUndoInsLayFormat* SwUndoInsertLabel::pUndoFly

Definition at line 165 of file UndoInsert.hxx.

◆ pUndoInsNd

SwUndoDelete* SwUndoInsertLabel::pUndoInsNd

Definition at line 170 of file UndoInsert.hxx.


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