38 bool bUndoGroup = pCursor->
GetNext() != pCursor;
59 if ( !rPaM.HasMark() )
72 SwNode* pNd = &aIdx.GetNode();
74 if( pNd->IsTextNode() )
75 static_cast<SwTextNode*>(pNd)->GCAttr();
118 if( pCursor->
GetNext() != pCursor )
125 if( rPaM.HasMark() && ( bIsTableMode ||
126 *rPaM.GetPoint() != *rPaM.GetMark() ))
128 if (bParagraphSetting)
142 if (bParagraphSetting)
157 if( pCursor->
GetNext() != pCursor )
164 if( rTmpCursor.HasMark() && ( bIsTableMode ||
165 *rTmpCursor.GetPoint() != *rTmpCursor.GetMark() ))
167 if (bParagraphSetting)
181 if (bParagraphSetting)
void SetDefault(const SfxPoolItem &)
Set attribute as new default attribute in document.
const SwNodes & GetNodes() const
SwPaM * GetCursor(bool bMakeTableCursor=true) const
Return pointer to the current shell cursor.
virtual void InsertItemSet(const SwPaM &rRg, const SfxItemSet &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr)=0
void SetAttrSet(const SfxItemSet &, SetAttrMode nFlags=SetAttrMode::DEFAULT, SwPaM *pCursor=nullptr, const bool bParagraphSetting=false)
virtual SwUndoId EndUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Closes undo block.
IDocumentUndoRedo & GetIDocumentUndoRedo()
IDocumentContentOperations const & getIDocumentContentOperations() const
bool HasSelection() const
Does the current cursor create a selection?
static bool IsShowChanges(const RedlineFlags eM)
void ResetAttrs(const SwPaM &rRg, bool bTextAttr=true, const o3tl::sorted_vector< sal_uInt16 > &rAttrs=o3tl::sorted_vector< sal_uInt16 >(), const bool bSendDataChangedEvents=true, SwRootFrame const *pLayout=nullptr)
Reset attributes.
const SfxPoolItem & GetDefault(sal_uInt16 nFormatHint) const
Get the default attribute in this document.
PaM is Point and Mark: a selection of the document model.
virtual SwRedlineTable::size_type GetRedlinePos(const SwNode &rNode, RedlineType nType) const =0
const SfxPoolItem & GetDefault(sal_uInt16 nFormatHint) const
Query default attribute of document.
bool GoNext(SwNode *pNd, SwIndex *pIdx, sal_uInt16 nMode)
virtual SwUndoId StartUndo(SwUndoId const eUndoId, SwRewriter const *const pRewriter)=0
Opens undo block.
void SetAttrItem(const SfxPoolItem &, SetAttrMode nFlags=SetAttrMode::DEFAULT, const bool bParagraphSetting=false)
Marks a node in the document model.
ring_container GetRingContainer()
const SwPosition * Start() const
void ResetAttr(const o3tl::sorted_vector< sal_uInt16 > &attrs=o3tl::sorted_vector< sal_uInt16 >(), SwPaM *pCursor=nullptr)
void SetDefault(const SfxPoolItem &)
Set attribute as new default attribute in current document.
SwTextNode is a paragraph in the document model.
IDocumentRedlineAccess const & getIDocumentRedlineAccess() const
virtual bool InsertPoolItem(const SwPaM &rRg, const SfxPoolItem &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr, bool bExpandCharToPara=false, SwTextAttr **ppNewTextAttr=nullptr)=0
Insert an attribute.
virtual void SetRedlineFlags(RedlineFlags eMode)=0
Set a new redline mode.
static void lcl_disableShowChangesIfNeeded(SwDoc *const pDoc, const SwNode &rNode, RedlineFlags &eRedlMode)
virtual RedlineFlags GetRedlineFlags() const =0
Query the currently set redline mode.
virtual const SwRedlineTable & GetRedlineTable() const =0
void StartAllAction()
For all views of this document.
SwRootFrame * GetLayout() const
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
Base class of the Writer document model elements.