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

#include <UndoInsert.hxx>

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

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 (sal_uLong 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
 
      sal_uLong   nNode
 
   }   NODE
 
}; 
 
OUString const m_sText
 
OUString const m_sSeparator
 
OUString const m_sNumberSeparator
 
OUString const m_sCharacterStyle
 
sal_uInt16 const m_nFieldId
 
SwLabelType const m_eType
 
SdrLayerID m_nLayerId
 
bool const m_bBefore:1
 
bool m_bUndoKeep:1
 
bool const m_bCopyBorder:1
 

Additional Inherited Members

- Static Protected Member Functions inherited from SwUndo
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)
 
- Protected Attributes inherited from SwUndo
bool m_bCacheComment
 
o3tl::optional< OUString > maComment
 

Detailed Description

Definition at line 155 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 849 of file unins.cxx.

References INSERTLABEL, m_bUndoKeep, m_eType, and OBJECT.

SwUndoInsertLabel::~SwUndoInsertLabel ( )
overridevirtual

Definition at line 874 of file unins.cxx.

References LTYPE_DRAW, LTYPE_OBJECT, m_eType, NODE, and OBJECT.

Member Function Documentation

SwRewriter SwUndoInsertLabel::CreateRewriter ( const OUString &  rStr)
static
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 1005 of file unins.cxx.

References CreateRewriter(), and m_sText.

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

Definition at line 1044 of file unins.cxx.

References LTYPE_DRAW, m_eType, and m_nLayerId.

Referenced by lcl_InsertDrawLabel().

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

Definition at line 213 of file UndoInsert.hxx.

References LTYPE_OBJECT, and NODE.

Referenced by lcl_InsertLabel().

void SwUndoInsertLabel::SetUndoKeep ( )
inline

Definition at line 216 of file UndoInsert.hxx.

References m_bUndoKeep.

Referenced by lcl_InsertLabel().

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

Member Data Documentation

union { ... }
bool const SwUndoInsertLabel::m_bBefore
private

Definition at line 179 of file UndoInsert.hxx.

Referenced by RepeatImpl().

bool const SwUndoInsertLabel::m_bCopyBorder
private

Definition at line 181 of file UndoInsert.hxx.

Referenced by RepeatImpl().

bool SwUndoInsertLabel::m_bUndoKeep
private

Definition at line 180 of file UndoInsert.hxx.

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

SwLabelType const SwUndoInsertLabel::m_eType
private

Definition at line 177 of file UndoInsert.hxx.

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

sal_uInt16 const SwUndoInsertLabel::m_nFieldId
private

Definition at line 176 of file UndoInsert.hxx.

Referenced by RepeatImpl().

SdrLayerID SwUndoInsertLabel::m_nLayerId
private

Definition at line 178 of file UndoInsert.hxx.

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

OUString const SwUndoInsertLabel::m_sCharacterStyle
private

Definition at line 174 of file UndoInsert.hxx.

Referenced by RepeatImpl().

OUString const SwUndoInsertLabel::m_sNumberSeparator
private

Definition at line 173 of file UndoInsert.hxx.

Referenced by RepeatImpl().

OUString const SwUndoInsertLabel::m_sSeparator
private

Definition at line 172 of file UndoInsert.hxx.

Referenced by RepeatImpl().

OUString const SwUndoInsertLabel::m_sText
private

Definition at line 170 of file UndoInsert.hxx.

Referenced by GetRewriter(), and RepeatImpl().

sal_uLong SwUndoInsertLabel::nNode

Definition at line 166 of file UndoInsert.hxx.

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

Definition at line 161 of file UndoInsert.hxx.

SwUndoInsLayFormat* SwUndoInsertLabel::pUndoFly

Definition at line 160 of file UndoInsert.hxx.

SwUndoDelete* SwUndoInsertLabel::pUndoInsNd

Definition at line 165 of file UndoInsert.hxx.


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