35#include <osl/diagnose.h>
43 m_nContent( rPos.GetContentIndex() ),
44 m_bTableFlag( false ), m_bCheckTableStart( bChkTable )
47 OSL_ENSURE( pTextNd,
"only for TextNode" );
52 pTextNd->
GetText().getLength(),
false );
88 nullptr != ( pTNd = pDoc->
GetNodes()[ pTableNd->
GetIndex()-1 ]->GetTextNode() ))
150 OSL_ENSURE(pTNd,
"SwUndoSplitNode::RedoImpl(): SwTextNode expected");
virtual bool SplitNode(const SwPosition &rPos, bool bChkTableStart)=0
Split a node at rPos (implemented only for TextNode).
virtual bool IsRedlineOn() const =0
Query if redlining is on.
virtual bool DeleteRedline(const SwPaM &rPam, bool bSaveInUndo, RedlineType nDelType)=0
static bool IsRedlineOn(const RedlineFlags eM)
virtual std::size_t GetRedlineAuthor()=0
virtual bool SplitRedline(const SwPaM &rPam)=0
virtual void SetRedlineFlags_intern(RedlineFlags eMode)=0
Set a new redline mode.
virtual const SwRedlineTable & GetRedlineTable() const =0
virtual AppendResult AppendRedline(SwRangeRedline *pNewRedl, bool bCallDelete)=0
Append a new redline.
virtual RedlineFlags GetRedlineFlags() const =0
Query the currently set redline mode.
const T * GetItemIfSet(TypedWhichId< T > nWhich, bool bSrchInParent=true) const
const SwAttrSet * GetpSwAttrSet() const
void RstTextAttrs(const SwPaM &rRg, bool bInclRefToxMark=false, bool bExactRange=false, SwRootFrame const *pLayout=nullptr)
IDocumentContentOperations const & getIDocumentContentOperations() const
IDocumentRedlineAccess const & getIDocumentRedlineAccess() const
bool UpdateParRsid(SwTextNode *pTextNode, sal_uInt32 nVal=0)
Pagedescriptor Client of SwPageDesc that is "described" by the attribute.
Marks a node in the document model.
SwNodeOffset GetIndex() const
Base class of the Writer document model elements.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset GetIndex() const
bool IsContentNode() const
SwTableNode * FindTableNode()
Search table node, in which it is.
void Delete(const SwNodeIndex &rPos, SwNodeOffset nNodes=SwNodeOffset(1))
const SwPosition * GetMark() const
SwNode & GetPointNode() const
virtual void SetMark()
Unless this is called, the getter method of Mark will return Point.
bool Move(SwMoveFnCollection const &fnMove=fnMoveForward, SwGoInDoc fnGo=GoInContent)
Movement of cursor.
const SwPosition * GetPoint() const
const SwTable & GetTable() const
SwTableFormat * GetFrameFormat()
SwTextNode is a paragraph in the document model.
virtual SwContentNode * JoinNext() override
sal_uInt32 GetParRsid() const
SwpHints * GetpSwpHints()
const OUString & GetText() const
std::unique_ptr< SwHistory > m_pHistory
std::unique_ptr< SwRedlineData > m_pRedlineData
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual ~SwUndoSplitNode() override
SwUndoSplitNode(SwDoc &rDoc, const SwPosition &rPos, bool bChkTable)
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
void SetRedlineFlags(RedlineFlags eMode)
RedlineFlags GetRedlineFlags() const
static void RemoveIdxRel(SwNodeOffset, const SwPosition &)
virtual SwCursor & CreateNewShellCursor()=0
IShellCursorSupplier & GetCursorSupplier()
constexpr TypedWhichId< SwFormatPageDesc > RES_PAGEDESC(99)
constexpr TypedWhichId< SvxFormatBreakItem > RES_BREAK(100)
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
SwMoveFnCollection const & fnMoveBackward
Marks a position in the document model.
void Adjust(SwNodeOffset nDelta)
Adjust node position, and resets content position to zero.
void Assign(const SwNode &rNd, SwNodeOffset nDelta, sal_Int32 nContentOffset=0)
These all set both nNode and nContent.
void SetContent(sal_Int32 nContentIndex)
Set content index, only valid to call this if the position points to a SwContentNode subclass.