28#include <osl/diagnose.h>
34 :
SwUndo( nUndoId, &rDoc ),
35 m_aNumRule( rNewRule ),
36 m_pOldNumRule( new
SwNumRule( rOldRule )), m_nLRSavePos( 0 )
48 OUString aReplaceRule )
51 m_sReplaceRule(
std::move( aReplaceRule )), m_nLRSavePos( 0 )
178 OSL_ENSURE( pNd,
"Where has the TextNode gone?" );
210 m_nNewStart( 0 ), m_nOffset( nOff )
285 m_nIndex( rIdx.GetIndex() ), mbNewNum(bNewNum),
296 if (
nullptr != pTextNd)
308 if (
nullptr != pTextNd)
329 m_nIndex( rPos.GetNodeIndex() ), m_nOldStart( USHRT_MAX ),
330 m_nNewStart( USHRT_MAX ), m_bSetStartValue( false ), m_bFlag( bFlg )
336 , m_nIndex(rPos.GetNodeIndex())
337 , m_nOldStart(USHRT_MAX)
339 , m_bSetStartValue(true)
void ChkCondColl(const SwTextFormatColl *pColl=nullptr)
SwFormatColl * GetCondFormatColl() const
bool MoveOutlinePara(const SwPaM &rPam, SwOutlineNodes::difference_type nOffset)
Outline - move up / move down.
void SetNodeNumStart(const SwPosition &rPos, sal_uInt16 nStt)
bool NumOrNoNum(SwNode &rIdx, bool bDel=false)
void ReplaceNumRule(const SwPosition &rPos, const OUString &rOldRule, const OUString &rNewRule)
bool MoveParagraph(SwPaM &, SwNodeOffset nOffset, bool bIsOutlMv=false)
Move selected paragraphs (not only numberings) according to offsets.
void DelNumRules(const SwPaM &, SwRootFrame const *pLayout=nullptr)
void SetNumRuleStart(const SwPosition &rPos, bool bFlag=true)
OUString SetNumRule(const SwPaM &, const SwNumRule &, bool bCreateNewList, SwRootFrame const *pLayout=nullptr, const OUString &sContinuedListId=OUString(), bool bSetItem=true, const bool bResetIndentAttrs=false)
Accept changes of outline styles for OutlineRule.
void ChgNumRuleFormats(const SwNumRule &rRule)
bool NumUpDown(const SwPaM &, bool bDown, SwRootFrame const *pLayout=nullptr)
Marks a node in the document model.
Base class of the Writer document model elements.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset GetIndex() const
const OUString & GetName() const
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetPoint() const
void AddRule(SwUndoArg eWhat, const OUString &rWith)
SwTextNode is a paragraph in the document model.
void SetAttrListLevel(int nLevel)
Sets the list level of this text node.
SwNumberTree::tSwNumTreeNumber GetAttrListRestartValue() const
void SetCountedInList(bool bCounted)
SwNumRule * GetNumRule(bool bInParent=true) const
Returns numbering rule of this text node.
int GetActualListLevel(SwListRedlineType eRedline=SwListRedlineType::SHOW) const
Returns the actual list level of this text node, when it is a list item.
bool HasAttrListRestartValue() const
SwPaM & AddUndoRedoPaM(::sw::UndoRedoContext &, bool const bCorrToContent=false) const
virtual void RedoImpl(::sw::UndoRedoContext &) override
std::unique_ptr< SwHistory > m_pHistory
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwUndoDelNum(const SwPaM &rPam)
void AddNode(const SwTextNode &rNd)
std::vector< NodeLevel > m_aNodes
virtual ~SwUndoDelNum() override
void SaveOldNumRule(const SwNumRule &rOld)
virtual void RepeatImpl(::sw::RepeatContext &) override
SwUndoInsNum(const SwPaM &rPam, const SwNumRule &rRule)
std::unique_ptr< SwNumRule > m_pOldNumRule
virtual ~SwUndoInsNum() override
std::unique_ptr< SwHistory > m_pHistory
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
virtual void RedoImpl(::sw::UndoRedoContext &) override
SwUndoMoveNum(const SwPaM &rPam, SwNodeOffset nOffset, bool bIsOutlMv)
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwUndoNumOrNoNum(const SwNode &rIdx, bool mbOldNum, bool mbNewNum)
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwUndoNumRuleStart(const SwPosition &rPos, bool bDelete)
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void RepeatImpl(::sw::RepeatContext &) override
SwUndoNumUpDown(const SwPaM &rPam, short nOffset)
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
SwContentNode * GetNode(SwPaM &rPam, bool &rbFirst, SwMoveFnCollection const &fnMove, bool const bInReadOnly, SwRootFrame const *const i_pLayout)
This function returns the next node in direction of search.
Marks a position in the document model.
SwNodeOffset GetNodeIndex() const
sal_Int32 GetContentIndex() const
constexpr sal_Int32 COMPLETE_STRING