LibreOffice Module sw (master) 1
|
#include <UndoInsert.hxx>
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 DateTime & | GetDateTime () 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 |
Definition at line 160 of file UndoInsert.hxx.
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.
|
overridevirtual |
|
static |
Definition at line 993 of file unins.cxx.
References SwRewriter::AddRule(), nUndoStringLength, ShortenString(), SwResId(), and UndoArg1.
Referenced by GetRewriter(), and SwFEShell::InsertLabel().
|
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.
Reimplemented from SwUndo.
Definition at line 988 of file unins.cxx.
References CreateRewriter(), and m_sText.
|
overridevirtual |
Implements SwUndo.
Definition at line 907 of file unins.cxx.
References Draw, SwFrameFormat::FindSdrObject(), sw::UndoRedoContext::GetDoc(), SwTable::GetFrameFormat(), IDocumentDrawModelAccess::GetHeavenId(), IDocumentDrawModelAccess::GetHellId(), SwDoc::getIDocumentDrawModelAccess(), IDocumentDrawModelAccess::GetInvisibleHeavenId(), IDocumentDrawModelAccess::GetInvisibleHellId(), SdrObject::GetLayer(), SwDoc::GetNodes(), SwTableNode::GetTable(), m_bUndoKeep, m_eType, m_nLayerId, NODE, Object, OBJECT, RES_KEEP(), SwFormat::SetFormatAttr(), SdrObject::SetLayer(), and Table.
|
overridevirtual |
Reimplemented from SwUndo.
Definition at line 949 of file unins.cxx.
References Draw, SwFrame::FindFlyFrame(), SwNode::FindTableNode(), Fly, SwFormat::GetContent(), SwFormatContent::GetContentIdx(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), sw::RepeatContext::GetDoc(), SwFlyFrame::GetFormat(), SwDoc::getIDocumentLayoutAccess(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwContentNode::getLayoutFrame(), SwPosition::GetNode(), SwPaM::GetPoint(), sw::RepeatContext::GetRepeatPaM(), SwDoc::InsertLabel(), m_bBefore, m_bCopyBorder, m_eType, m_nFieldId, m_sCharacterStyle, m_sNumberSeparator, m_sSeparator, m_sText, Object, and Table.
void SwUndoInsertLabel::SetDrawObj | ( | SdrLayerID | nLayerId | ) |
Definition at line 1027 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 | ||
) |
Definition at line 1012 of file unins.cxx.
References Draw, SwUndoFormatAttrHelper::GetUndo(), m_eType, Object, OBJECT, SwUndoFormatAttrHelper::ReleaseUndo(), and SwFormat::SetFormatAttr().
Referenced by lcl_InsertDrawLabel(), and lcl_InsertLabel().
|
inline |
Definition at line 218 of file UndoInsert.hxx.
References m_eType, NODE, and Object.
Referenced by lcl_InsertLabel().
|
inline |
Definition at line 221 of file UndoInsert.hxx.
References m_bUndoKeep.
Referenced by lcl_InsertLabel().
|
overridevirtual |
Implements SwUndo.
Definition at line 868 of file unins.cxx.
References SwPosition::Assign(), Default, Draw, SwFrameFormat::FindSdrObject(), sw::UndoRedoContext::GetDoc(), SwNodes::GetEndOfContent(), SwTable::GetFrameFormat(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwTableNode::GetTable(), m_bUndoKeep, m_eType, m_nLayerId, NODE, Object, OBJECT, RES_KEEP(), SwFormat::ResetFormatAttr(), SdrObject::SetLayer(), SwPaM::SetMark(), and Table.
union { ... } SwUndoInsertLabel::@6 |
|
private |
Definition at line 184 of file UndoInsert.hxx.
Referenced by RepeatImpl().
|
private |
Definition at line 186 of file UndoInsert.hxx.
Referenced by RepeatImpl().
|
private |
Definition at line 185 of file UndoInsert.hxx.
Referenced by RedoImpl(), SetUndoKeep(), SwUndoInsertLabel(), and UndoImpl().
|
private |
Definition at line 182 of file UndoInsert.hxx.
Referenced by RedoImpl(), RepeatImpl(), SetDrawObj(), SetFlys(), SetNodePos(), UndoImpl(), and ~SwUndoInsertLabel().
|
private |
Definition at line 181 of file UndoInsert.hxx.
Referenced by RepeatImpl().
|
private |
Definition at line 183 of file UndoInsert.hxx.
Referenced by RedoImpl(), SetDrawObj(), and UndoImpl().
|
private |
Definition at line 179 of file UndoInsert.hxx.
Referenced by RepeatImpl().
|
private |
Definition at line 178 of file UndoInsert.hxx.
Referenced by RepeatImpl().
|
private |
Definition at line 177 of file UndoInsert.hxx.
Referenced by RepeatImpl().
|
private |
Definition at line 175 of file UndoInsert.hxx.
Referenced by GetRewriter(), and RepeatImpl().
SwNodeOffset SwUndoInsertLabel::nNode |
Definition at line 171 of file UndoInsert.hxx.
struct { ... } SwUndoInsertLabel::NODE |
Referenced by RedoImpl(), SetNodePos(), UndoImpl(), and ~SwUndoInsertLabel().
struct { ... } SwUndoInsertLabel::OBJECT |
Referenced by RedoImpl(), SetFlys(), SwUndoInsertLabel(), UndoImpl(), and ~SwUndoInsertLabel().
SwUndoFormatAttr* SwUndoInsertLabel::pUndoAttr |
Definition at line 166 of file UndoInsert.hxx.
SwUndoInsLayFormat* SwUndoInsertLabel::pUndoFly |
Definition at line 165 of file UndoInsert.hxx.
SwUndoDelete* SwUndoInsertLabel::pUndoInsNd |
Definition at line 170 of file UndoInsert.hxx.