27 #include <osl/diagnose.h>
33 :
SwUndo( nUndoId, &rDoc ),
34 m_aNumRule( rNewRule ),
35 m_pOldNumRule( new
SwNumRule( rOldRule )), m_nLRSavePos( 0 )
47 const OUString& rReplaceRule )
50 m_sReplaceRule( rReplaceRule ), m_nLRSavePos( 0 )
176 OSL_ENSURE( pNd,
"Where has the TextNode gone?" );
208 m_nNewStart( 0 ), m_nOffset( nOff )
283 m_nIndex( rIdx.GetIndex() ), mbNewNum(bNewNum),
294 if (
nullptr != pTextNd)
306 if (
nullptr != pTextNd)
327 m_nIndex( rPos.nNode.GetIndex() ), m_nOldStart(
USHRT_MAX ),
328 m_nNewStart(
USHRT_MAX ), m_bSetStartValue( false ), m_bFlag( bFlg )
334 , m_nIndex(rPos.nNode.GetIndex())
337 , m_bSetStartValue(true)
SwPaM & AddUndoRedoPaM(::sw::UndoRedoContext &, bool const bCorrToContent=false) const
std::unique_ptr< SwHistory > m_pHistory
sal_uLong GetIndex() const
void SaveOldNumRule(const SwNumRule &rOld)
Marks a position in the document model.
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.
std::unique_ptr< SwNumRule > m_pOldNumRule
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwFormatColl * GetCondFormatColl() const
bool NumOrNoNum(const SwNodeIndex &rIdx, bool bDel=false)
bool MoveOutlinePara(const SwPaM &rPam, SwOutlineNodes::difference_type nOffset)
Outline - move up / move down.
virtual void RepeatImpl(::sw::RepeatContext &) override
void SetNumRuleStart(const SwPosition &rPos, bool bFlag=true)
const OUString & GetName() const
virtual void RepeatImpl(::sw::RepeatContext &) override
bool NumUpDown(const SwPaM &, bool bDown, SwRootFrame const *pLayout=nullptr)
virtual void RedoImpl(::sw::UndoRedoContext &) override
int GetActualListLevel() const
Returns the actual list level of this text node, when it is a list item.
virtual ~SwUndoInsNum() override
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual SwRewriter GetRewriter() const override
Returns the rewriter for this object.
sal_uLong GetIndex() const
virtual ~SwUndoDelNum() override
void SetCountedInList(bool bCounted)
void ChkCondColl(const SwTextFormatColl *pColl=nullptr)
virtual void RepeatImpl(::sw::RepeatContext &) override
SwUndoNumOrNoNum(const SwNodeIndex &rIdx, bool mbOldNum, bool mbNewNum)
SwUndoDelNum(const SwPaM &rPam)
void DelNumRules(const SwPaM &, SwRootFrame const *pLayout=nullptr)
void SetNodeNumStart(const SwPosition &rPos, sal_uInt16 nStt)
PaM is Point and Mark: a selection of the document model.
virtual void RepeatImpl(::sw::RepeatContext &) override
const SwPosition * GetPoint() const
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
void AddRule(SwUndoArg eWhat, const OUString &rWith)
SwNumRule * GetNumRule(bool bInParent=true) const
Returns numbering rule of this text node.
bool MoveParagraph(SwPaM &, tools::Long nOffset, bool bIsOutlMv=false)
Move selected paragraphs (not only numberings) according to offsets.
Marks a node in the document model.
SwUndoNumUpDown(const SwPaM &rPam, short nOffset)
SwUndoInsNum(const SwPaM &rPam, const SwNumRule &rRule)
bool ReplaceNumRule(const SwPosition &rPos, const OUString &rOldRule, const OUString &rNewRule)
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwTextNode is a paragraph in the document model.
void SetAttrListLevel(int nLevel)
Sets the list level of this text node.
virtual void UndoImpl(::sw::UndoRedoContext &) override
std::vector< NodeLevel > m_aNodes
SwNumberTree::tSwNumTreeNumber GetAttrListRestartValue() const
const o3tl::enumarray< SvxAdjust, unsigned short > aSvxToUnoAdjust USHRT_MAX
std::unique_ptr< SwHistory > m_pHistory
sal_Int32 GetIndex() const
SwUndoMoveNum(const SwPaM &rPam, tools::Long nOffset, bool bIsOutlMv)
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
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 AddNode(const SwTextNode &rNd)
bool HasAttrListRestartValue() const
SwUndoNumRuleStart(const SwPosition &rPos, bool bDelete)
const sal_Int32 COMPLETE_STRING
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
void ChgNumRuleFormats(const SwNumRule &rRule)