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:
Collaboration diagram for SwUndoInsertLabel:

Public Member Functions

 SwUndoInsertLabel (const SwLabelType eTyp, const OUString &rText, const OUString &rSeparator, const OUString &rNumberSeparator, const bool bBefore, const sal_uInt16 nId, const OUString &rCharacterStyle, 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
 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 bool Merge (SfxUndoAction *pNextAction)
virtual OUString GetRepeatComment (SfxRepeatTarget &) 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

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

Constructor & Destructor Documentation

SwUndoInsertLabel::SwUndoInsertLabel ( const SwLabelType  eTyp,
const OUString &  rText,
const OUString &  rSeparator,
const OUString &  rNumberSeparator,
const bool  bBefore,
const sal_uInt16  nId,
const OUString &  rCharacterStyle,
const bool  bCpyBrd,
const SwDoc pDoc 

Definition at line 845 of file unins.cxx.

References INSERTLABEL, m_bUndoKeep, m_eType, and OBJECT.

SwUndoInsertLabel::~SwUndoInsertLabel ( )

Definition at line 870 of file unins.cxx.

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

Member Function Documentation

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

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.

the rewriter of this undo object

Reimplemented from SwUndo.

Definition at line 1001 of file unins.cxx.

References CreateRewriter(), and m_sText.

void SwUndoInsertLabel::RedoImpl ( ::sw::UndoRedoContext rContext)
void SwUndoInsertLabel::RepeatImpl ( ::sw::RepeatContext rContext)
void SwUndoInsertLabel::SetDrawObj ( SdrLayerID  nLayerId)

Definition at line 1040 of file unins.cxx.

References Draw, m_eType, and m_nLayerId.

Referenced by lcl_InsertDrawLabel().

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

Definition at line 216 of file UndoInsert.hxx.

References NODE, and Object.

Referenced by lcl_InsertLabel().

void SwUndoInsertLabel::SetUndoKeep ( )

Definition at line 219 of file UndoInsert.hxx.

References m_bUndoKeep.

Referenced by lcl_InsertLabel().

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

Member Data Documentation

union { ... }
bool SwUndoInsertLabel::m_bBefore

Definition at line 182 of file UndoInsert.hxx.

Referenced by RepeatImpl().

bool SwUndoInsertLabel::m_bCopyBorder

Definition at line 184 of file UndoInsert.hxx.

Referenced by RepeatImpl().

bool SwUndoInsertLabel::m_bUndoKeep

Definition at line 183 of file UndoInsert.hxx.

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

SwLabelType SwUndoInsertLabel::m_eType

Definition at line 180 of file UndoInsert.hxx.

Referenced by RedoImpl(), RepeatImpl(), SetDrawObj(), SetFlys(), UndoImpl(), and ~SwUndoInsertLabel().

sal_uInt16 SwUndoInsertLabel::m_nFieldId

Definition at line 179 of file UndoInsert.hxx.

Referenced by RepeatImpl().

SdrLayerID SwUndoInsertLabel::m_nLayerId

Definition at line 181 of file UndoInsert.hxx.

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

OUString SwUndoInsertLabel::m_sCharacterStyle

Definition at line 177 of file UndoInsert.hxx.

Referenced by RepeatImpl().

OUString SwUndoInsertLabel::m_sNumberSeparator

Definition at line 176 of file UndoInsert.hxx.

Referenced by RepeatImpl().

OUString SwUndoInsertLabel::m_sSeparator

Definition at line 175 of file UndoInsert.hxx.

Referenced by RepeatImpl().

OUString SwUndoInsertLabel::m_sText

Definition at line 173 of file UndoInsert.hxx.

Referenced by GetRewriter(), and RepeatImpl().

SwNodeOffset SwUndoInsertLabel::nNode

Definition at line 169 of file UndoInsert.hxx.

struct { ... } SwUndoInsertLabel::NODE
struct { ... } SwUndoInsertLabel::OBJECT
SwUndoFormatAttr* SwUndoInsertLabel::pUndoAttr

Definition at line 164 of file UndoInsert.hxx.

SwUndoInsLayFormat* SwUndoInsertLabel::pUndoFly

Definition at line 163 of file UndoInsert.hxx.

SwUndoDelete* SwUndoInsertLabel::pUndoInsNd

Definition at line 168 of file UndoInsert.hxx.

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