LibreOffice Module sw (master) 1
Classes | Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes | List of all members
sw::DocumentContentOperationsManager Class Referencefinal

#include <DocumentContentOperationsManager.hxx>

Inheritance diagram for sw::DocumentContentOperationsManager:
[legend]
Collaboration diagram for sw::DocumentContentOperationsManager:
[legend]

Classes

struct  ParaRstFormat
 Parameters for _Rst and lcl_SetTextFormatColl. More...
 

Public Member Functions

 DocumentContentOperationsManager (SwDoc &i_rSwdoc)
 
bool CopyRange (SwPaM &, SwPosition &, SwCopyFlags) const override
 Copy a selected content range to a position. More...
 
void DeleteSection (SwNode *pNode) override
 Delete a full Section of the NodeArray. More...
 
void DeleteRange (SwPaM &) override
 Delete a range SwFlyFrameFormat. More...
 
bool DelFullPara (SwPaM &) override
 Delete full paragraphs. More...
 
bool DeleteAndJoin (SwPaM &, SwDeleteFlags flags=SwDeleteFlags::Default) override
 complete delete of a given PaM More...
 
bool MoveRange (SwPaM &, SwPosition &, SwMoveFlags) override
 
bool MoveNodeRange (SwNodeRange &, SwNode &, SwMoveFlags) override
 
void MoveAndJoin (SwPaM &, SwPosition &) override
 Move a range. More...
 
bool Overwrite (const SwPaM &rRg, const OUString &rStr) override
 Overwrite string in an existing text node. More...
 
bool InsertString (const SwPaM &rRg, const OUString &, const SwInsertFlags nInsertMode=SwInsertFlags::EMPTYEXPAND) override
 Insert string into existing text node at position rRg.Point(). More...
 
void SetIME (bool bIME) override
 States that the last inserted string came from IME. More...
 
bool GetIME () const override
 Did the last inserted string come from IME? More...
 
void TransliterateText (const SwPaM &rPaM, utl::TransliterationWrapper &) override
 change text to Upper/Lower/Hiragana/Katakana/... More...
 
SwFlyFrameFormatInsertGraphic (const SwPaM &rRg, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet, SwFrameFormat *) override
 Insert graphic or formula. More...
 
void ReRead (SwPaM &, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic) override
 Transpose graphic (with undo) More...
 
SwDrawFrameFormatInsertDrawObj (const SwPaM &rRg, SdrObject &rDrawObj, const SfxItemSet &rFlyAttrSet) override
 Insert a DrawObject. More...
 
SwFlyFrameFormatInsertEmbObject (const SwPaM &rRg, const svt::EmbeddedObjectRef &xObj, SfxItemSet *pFlyAttrSet) override
 Insert OLE-objects. More...
 
SwFlyFrameFormatInsertOLE (const SwPaM &rRg, const OUString &rObjName, sal_Int64 nAspect, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet) override
 
bool SplitNode (const SwPosition &rPos, bool bChkTableStart) override
 Split a node at rPos (implemented only for TextNode). More...
 
bool AppendTextNode (SwPosition &rPos) override
 
bool ReplaceRange (SwPaM &rPam, const OUString &rNewStr, const bool bRegExReplace) override
 Replace selected range in a TextNode with string. More...
 
bool InsertPoolItem (const SwPaM &rRg, const SfxPoolItem &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr, SwTextAttr **ppNewTextAttr=nullptr) override
 Insert an attribute. More...
 
void InsertItemSet (const SwPaM &rRg, const SfxItemSet &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr) override
 
void RemoveLeadingWhiteSpace (const SwPosition &rPos) override
 Removes any leading white space from the paragraph. More...
 
void RemoveLeadingWhiteSpace (SwPaM &rPaM) override
 
void DeleteDummyChar (SwPosition const &rPos, sal_Unicode cDummy)
 
void CopyWithFlyInFly (const SwNodeRange &rRg, SwNode &rInsPos, const std::pair< const SwPaM &, const SwPosition & > *pCopiedPaM=nullptr, bool bMakeNewFrames=true, bool bDelRedlines=true, bool bCopyFlyAtFly=false, SwCopyFlags flags=SwCopyFlags::Default) const
 note: rRg/rInsPos exclude a partially selected start text node; pCopiedPaM includes a partially selected start text node More...
 
void CopyFlyInFlyImpl (const SwNodeRange &rRg, SwPaM const *const pCopiedPaM, SwNode &rStartIdx, const bool bCopyFlyAtFly=false, SwCopyFlags flags=SwCopyFlags::Default) const
 
virtual ~DocumentContentOperationsManager () override
 
virtual bool CopyRange (SwPaM &rPam, SwPosition &rPos, SwCopyFlags flags) const =0
 Copy a selected content range to a position. More...
 
virtual void DeleteSection (SwNode *pNode)=0
 Delete section containing the node. More...
 
virtual void DeleteRange (SwPaM &)=0
 Delete a range SwFlyFrameFormat. More...
 
virtual bool DelFullPara (SwPaM &)=0
 Delete full paragraphs. More...
 
virtual bool DeleteAndJoin (SwPaM &, SwDeleteFlags flags=SwDeleteFlags::Default)=0
 complete delete of a given PaM More...
 
virtual bool MoveRange (SwPaM &, SwPosition &, SwMoveFlags)=0
 
virtual bool MoveNodeRange (SwNodeRange &, SwNode &, SwMoveFlags)=0
 
virtual void MoveAndJoin (SwPaM &, SwPosition &)=0
 Move a range. More...
 
virtual bool Overwrite (const SwPaM &rRg, const OUString &rStr)=0
 Overwrite string in an existing text node. More...
 
virtual bool InsertString (const SwPaM &rRg, const OUString &, const SwInsertFlags nInsertMode=SwInsertFlags::EMPTYEXPAND)=0
 Insert string into existing text node at position rRg.Point(). More...
 
virtual void SetIME (bool bIME)=0
 States that the last inserted string came from IME. More...
 
virtual bool GetIME () const =0
 Did the last inserted string come from IME? More...
 
virtual void TransliterateText (const SwPaM &rPaM, utl::TransliterationWrapper &)=0
 change text to Upper/Lower/Hiragana/Katakana/... More...
 
virtual SwFlyFrameFormatInsertGraphic (const SwPaM &rRg, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet, SwFrameFormat *)=0
 Insert graphic or formula. More...
 
virtual void ReRead (SwPaM &, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic)=0
 Transpose graphic (with undo) More...
 
virtual SwDrawFrameFormatInsertDrawObj (const SwPaM &rRg, SdrObject &rDrawObj, const SfxItemSet &rFlyAttrSet)=0
 Insert a DrawObject. More...
 
virtual SwFlyFrameFormatInsertEmbObject (const SwPaM &rRg, const svt::EmbeddedObjectRef &xObj, SfxItemSet *pFlyAttrSet)=0
 Insert OLE-objects. More...
 
virtual SwFlyFrameFormatInsertOLE (const SwPaM &rRg, const OUString &rObjName, sal_Int64 nAspect, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet)=0
 
virtual bool SplitNode (const SwPosition &rPos, bool bChkTableStart)=0
 Split a node at rPos (implemented only for TextNode). More...
 
virtual bool AppendTextNode (SwPosition &rPos)=0
 
virtual bool ReplaceRange (SwPaM &rPam, const OUString &rNewStr, const bool bRegExReplace)=0
 Replace selected range in a TextNode with string. More...
 
virtual bool InsertPoolItem (const SwPaM &rRg, const SfxPoolItem &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr, SwTextAttr **ppNewTextAttr=nullptr)=0
 Insert an attribute. More...
 
virtual void InsertItemSet (const SwPaM &rRg, const SfxItemSet &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr)=0
 
virtual void RemoveLeadingWhiteSpace (const SwPosition &rPos)=0
 Removes any leading white space from the paragraph. More...
 
virtual void RemoveLeadingWhiteSpace (SwPaM &rPaM)=0
 

Static Public Member Functions

static bool lcl_RstTextAttr (SwNode *pNd, void *pArgs)
 @params pArgs contains the document's ChrFormatTable Is need for selections at the beginning/end and with no SSelection. More...
 

Private Member Functions

bool DeleteAndJoinImpl (SwPaM &, SwDeleteFlags)
 
bool DeleteAndJoinWithRedlineImpl (SwPaM &, SwDeleteFlags)
 
bool DeleteRangeImpl (SwPaM &, SwDeleteFlags)
 
bool DeleteRangeImplImpl (SwPaM &, SwDeleteFlags)
 
bool ReplaceRangeImpl (SwPaM &, OUString const &, const bool)
 
SwFlyFrameFormatInsNoTextNode (const SwPosition &rPos, SwNoTextNode *, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet, SwFrameFormat *)
 
bool CopyImpl (SwPaM &, SwPosition &, SwCopyFlags flags, SwPaM *const pCpyRng) const
 
bool CopyImplImpl (SwPaM &, SwPosition &, SwCopyFlags flags, SwPaM *const pCpyRng) const
 
 DocumentContentOperationsManager (DocumentContentOperationsManager const &)=delete
 
DocumentContentOperationsManageroperator= (DocumentContentOperationsManager const &)=delete
 

Private Attributes

SwDocm_rDoc
 
bool m_bIME = false
 

Additional Inherited Members

- Protected Member Functions inherited from IDocumentContentOperations
virtual ~IDocumentContentOperations ()
 

Detailed Description

Definition at line 33 of file DocumentContentOperationsManager.hxx.

Constructor & Destructor Documentation

◆ DocumentContentOperationsManager() [1/2]

sw::DocumentContentOperationsManager::DocumentContentOperationsManager ( SwDoc i_rSwdoc)

Definition at line 1978 of file DocumentContentOperationsManager.cxx.

◆ ~DocumentContentOperationsManager()

sw::DocumentContentOperationsManager::~DocumentContentOperationsManager ( )
overridevirtual

Definition at line 4087 of file DocumentContentOperationsManager.cxx.

◆ DocumentContentOperationsManager() [2/2]

sw::DocumentContentOperationsManager::DocumentContentOperationsManager ( DocumentContentOperationsManager const &  )
privatedelete

Member Function Documentation

◆ AppendTextNode()

bool sw::DocumentContentOperationsManager::AppendTextNode ( SwPosition rPos)
overridevirtual

◆ CopyFlyInFlyImpl()

void sw::DocumentContentOperationsManager::CopyFlyInFlyImpl ( const SwNodeRange rRg,
SwPaM const *const  pCopiedPaM,
SwNode rStartIdx,
const bool  bCopyFlyAtFly = false,
SwCopyFlags  flags = SwCopyFlags::Default 
) const

◆ CopyImpl()

bool sw::DocumentContentOperationsManager::CopyImpl ( SwPaM rPam,
SwPosition rPos,
SwCopyFlags  flags,
SwPaM *const  pCpyRng 
) const
private

◆ CopyImplImpl()

bool sw::DocumentContentOperationsManager::CopyImplImpl ( SwPaM rPam,
SwPosition rPos,
SwCopyFlags  flags,
SwPaM *const  pCpyRng 
) const
private

Definition at line 4871 of file DocumentContentOperationsManager.cxx.

References aBreakSetRange, SwPosition::Adjust(), SwNodeRange::aEnd, SwContentIndex::Assign(), SwNodeIndex::Assign(), SwNodeRange::aStart, CopyAll, sw::CopyBookmarks(), SwTextNode::CopyCollFormat(), SwTextNode::CopyText(), SfxItemSet::Count(), SwDoc::CreateUnoCursor(), DeleteRedlines, SwPaM::Exchange(), fnMoveBackward, fnMoveForward, IDocumentMarkAccess::getAllMarksCount(), SwFormatAnchor::GetAnchorId(), SwDoc::GetAttrPool(), SwPaM::GetBound(), SwPosition::GetContentIndex(), SwNode::GetContentNode(), SwPosition::GetContentNode(), SwNode::GetDoc(), SwUndoInserts::GetFlysAnchoredAt(), sw::GetFlysAnchoredAt(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SfxItemSet::GetItemState(), SwContentIndex::GetMark(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwNode::GetNodeType(), SwDoc::GetOutlineNumRule(), SwPaM::GetPageNum(), SwPaM::GetPoint(), SwContentNode::GetpSwAttrSet(), IDocumentRedlineAccess::GetRedlineFlags(), SwTextNode::GetText(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), GoInContent(), GoInNode(), SwPaM::HasMark(), SwContentNode::HasSwAttrSet(), Ignore, SwDoc::IsClipBoard(), SwDoc::IsColumnSelection(), SwNode::IsContentNode(), sw::IsEmptyRange(), SwTextNode::IsInList(), SwDoc::IsInsOnlyTextGlossary(), SwTextNode::Len(), m_rDoc, SwTextNode::MakeCopy(), SwNodes::MakeTextNode(), SwPaM::Move(), SwPosition::nContent, SwPosition::nNode, NUMRULE_STATE, POP_NUMRULE_STATE, PUSH_NUMRULE_STATE, SfxItemSet::Put(), RES_BREAK(), RES_PAGEDESC(), RES_POOLCOLL_STANDARD, SwTextNode::ResetAttr(), SwDoc::SearchNumRule(), SwTextNode::SetAttr(), SwPosition::SetContent(), SwUndoInserts::SetInsertRange(), SwPaM::SetMark(), IDocumentState::SetModified(), SwDoc::SetNumRule(), SwDoc::SetOutlineNumRule(), IDocumentRedlineAccess::SetRedlineFlags_intern(), IDocumentContentOperations::SplitNode(), SwPaM::Start(), SwPaM::StartEnd(), and Table.

◆ CopyRange()

bool sw::DocumentContentOperationsManager::CopyRange ( SwPaM rPam,
SwPosition rPos,
SwCopyFlags  flags 
) const
overridevirtual

Copy a selected content range to a position.

The position can be in the same or in an another document. It can also be within the range!

Warning
The range has to include at least two nodes or has to be a SwDoc::IsColumnSelection, because the rPam is treated [mark, point[.

Normally this function should work only with content nodes. But there is a special case used by SwDoc::Paste, which starts the SwPaM at the content start node. This position doesn't contain any content:

SwNodeIndex aSourceIdx( rSource.GetNodes().GetEndOfExtras(), 1 );
Marks a node in the document model.
Definition: ndindex.hxx:31

This is important, because it prevents merging of the first node of the range into the node pointed to by rPos. As a result this keeps all properties of the first real content node, which is the 2nd, including the Flys and the page description. In this case the first (fake) node is silently dropped and all other nodes are just copied.

Parameters
rPamThe source node range to copy
rPosThe target copy destination
flagsSwCopyFlags::CheckPos: If this function should check if rPos is in a fly frame anchored in rPam. If false, then no such check will be performed, and it is assumed that the caller took care of verifying this constraint already.

Implements IDocumentContentOperations.

Definition at line 2006 of file DocumentContentOperationsManager.cxx.

References IDocumentRedlineAccess::AppendRedline(), CheckPosInFly, CopyImpl(), SwRedlineTable::empty(), SwPaM::End(), SwPosition::GetContentIndex(), SwNode::GetDoc(), SwDoc::getIDocumentRedlineAccess(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlineTable(), SwPaM::HasMark(), SwDoc::IsClipBoard(), SwDoc::IsColumnSelection(), SwNode::IsContentNode(), sw::IsEmptyRange(), IDocumentRedlineAccess::IsIgnoreRedline(), IDocumentRedlineAccess::IsRedlineOn(), SwNode::IsTextNode(), SwContentNode::Len(), m_rDoc, IDocumentRedlineAccess::SetRedlineFlags_intern(), IDocumentRedlineAccess::SplitRedline(), and SwPaM::Start().

◆ CopyWithFlyInFly()

void sw::DocumentContentOperationsManager::CopyWithFlyInFly ( const SwNodeRange rRg,
SwNode rInsPos,
const std::pair< const SwPaM &, const SwPosition & > *  pCopiedPaM = nullptr,
bool  bMakeNewFrames = true,
bool  bDelRedlines = true,
bool  bCopyFlyAtFly = false,
SwCopyFlags  flags = SwCopyFlags::Default 
) const

note: rRg/rInsPos exclude a partially selected start text node; pCopiedPaM includes a partially selected start text node

Definition at line 3635 of file DocumentContentOperationsManager.cxx.

References SwNodeRange::aEnd, SwNodeRange::aStart, sw::CopyBookmarks(), SwNodes::CopyNodes(), SwNodes::DelDummyNodes(), DeleteRedlines, SwContentNode::DelFrames(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::end(), end, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::erase(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::find(), SwNode::FindSectionNode(), SwIterator< TElementType, TSource, eMode >::First(), IDocumentMarkAccess::getAllMarksCount(), SwNode::GetDoc(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwNode::GetNodeType(), IDocumentRedlineAccess::GetRedlineFlags(), SwNode::GetTextNode(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), SwNode::IsEndNode(), SwNode::IsSectionNode(), SwNode::IsStartNode(), m_rDoc, MakeFrames(), SwIterator< TElementType, TSource, eMode >::Next(), sw::RecreateStartTextFrames(), SaveRedlEndPosForRestore::Restore(), and Start.

Referenced by SwTextFootnote::CopyFootnote(), sw::DocumentLayoutManager::CopyLayoutFormat(), SwRangeRedline::CopyToSection(), lcl_CopyBoxToDoc(), lcl_CpyBox(), and SwDoc::SplitDoc().

◆ DeleteAndJoin()

bool sw::DocumentContentOperationsManager::DeleteAndJoin ( SwPaM ,
SwDeleteFlags  flags = SwDeleteFlags::Default 
)
overridevirtual

◆ DeleteAndJoinImpl()

bool sw::DocumentContentOperationsManager::DeleteAndJoinImpl ( SwPaM rPam,
SwDeleteFlags  flags 
)
private

◆ DeleteAndJoinWithRedlineImpl()

bool sw::DocumentContentOperationsManager::DeleteAndJoinWithRedlineImpl ( SwPaM rPam,
SwDeleteFlags  flags 
)
private

◆ DeleteDummyChar()

void sw::DocumentContentOperationsManager::DeleteDummyChar ( SwPosition const &  rPos,
sal_Unicode  cDummy 
)

◆ DeleteRange()

void sw::DocumentContentOperationsManager::DeleteRange ( SwPaM )
overridevirtual

◆ DeleteRangeImpl()

bool sw::DocumentContentOperationsManager::DeleteRangeImpl ( SwPaM rPam,
SwDeleteFlags  flags 
)
private

◆ DeleteRangeImplImpl()

bool sw::DocumentContentOperationsManager::DeleteRangeImplImpl ( SwPaM rPam,
SwDeleteFlags  flags 
)
private

◆ DeleteSection()

void sw::DocumentContentOperationsManager::DeleteSection ( SwNode pNode)
overridevirtual

◆ DelFullPara()

bool sw::DocumentContentOperationsManager::DelFullPara ( SwPaM )
overridevirtual

Delete full paragraphs.

Implements IDocumentContentOperations.

Definition at line 2149 of file DocumentContentOperationsManager.cxx.

References SwPosition::Adjust(), SwNodeRange::aEnd, SwPosition::AssignEndIndex(), SwPosition::AssignStartIndex(), SwNodeRange::aStart, CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, IDocumentRedlineAccess::CompressRedlines(), SwDoc::CorrAbs(), SwNodes::Count(), Default, SwNodes::Delete(), SwPaM::DeleteMark(), IDocumentMarkAccess::deleteMark(), IDocumentLayoutAccess::DelLayoutFormat(), SwRedlineTable::empty(), SwPaM::End(), SwNode::EndOfSectionIndex(), SwPaM::Exchange(), fnMoveBackward, fnMoveForward, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwNode::GetContentNode(), SwPosition::GetContentNode(), IDocumentMarkAccess::getFieldmarkAt(), SwTable::GetFrameFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), IDocumentMarkAccess::getInnerFieldmarkFor(), SfxItemSet::GetItemState(), getLength(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), IDocumentRedlineAccess::GetRedlineTable(), SwDoc::GetSpzFrameFormats(), SwTableNode::GetTable(), SwNode::GetTextNode(), GoInNode(), SwNodes::GoNext(), SwPaM::HasMark(), i, SwNode::IsContentNode(), sw::mark::IsFieldmarkOverlap(), IDocumentRedlineAccess::IsIgnoreRedline(), IDocumentRedlineAccess::IsRedlineOn(), m_rDoc, SwPaM::Move(), n, SwPaM::Normalize(), PaMCorrAbs(), RES_BREAK(), RES_PAGEDESC(), SAL_WARN, SwPosition::SetContent(), SwFormat::SetFormatAttr(), SwPaM::SetMark(), IDocumentState::SetModified(), size, SwPaM::Start(), SwNode::StartOfSectionIndex(), and SwNode::StartOfSectionNode().

◆ GetIME()

bool sw::DocumentContentOperationsManager::GetIME ( ) const
overridevirtual

Did the last inserted string come from IME?

Implements IDocumentContentOperations.

Definition at line 2953 of file DocumentContentOperationsManager.cxx.

References m_bIME.

◆ InsertDrawObj()

SwDrawFrameFormat * sw::DocumentContentOperationsManager::InsertDrawObj ( const SwPaM rRg,
SdrObject rDrawObj,
const SfxItemSet rFlyAttrSet 
)
overridevirtual

◆ InsertEmbObject()

SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsertEmbObject ( const SwPaM rRg,
const svt::EmbeddedObjectRef xObj,
SfxItemSet pFlyAttrSet 
)
overridevirtual

◆ InsertGraphic()

SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsertGraphic ( const SwPaM rRg,
const OUString &  rGrfName,
const OUString &  rFltName,
const Graphic pGraphic,
const SfxItemSet pFlyAttrSet,
const SfxItemSet pGrfAttrSet,
SwFrameFormat  
)
overridevirtual

◆ InsertItemSet()

void sw::DocumentContentOperationsManager::InsertItemSet ( const SwPaM rRg,
const SfxItemSet rSet,
const SetAttrMode  nFlags = SetAttrMode::DEFAULT,
SwRootFrame const *  pLayout = nullptr 
)
overridevirtual

◆ InsertOLE()

SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsertOLE ( const SwPaM rRg,
const OUString &  rObjName,
sal_Int64  nAspect,
const SfxItemSet pFlyAttrSet,
const SfxItemSet pGrfAttrSet 
)
overridevirtual

◆ InsertPoolItem()

bool sw::DocumentContentOperationsManager::InsertPoolItem ( const SwPaM rRg,
const SfxPoolItem ,
const SetAttrMode  nFlags = SetAttrMode::DEFAULT,
SwRootFrame const *  pLayout = nullptr,
SwTextAttr **  ppNewTextAttr = nullptr 
)
overridevirtual

Insert an attribute.

If rRg spans several nodes the attribute is split, provided it makes sense. Nodes, where this attribute does not make sense are ignored. In nodes completely enclosed in the selection the attribute becomes hard-formatted, in all other (text-) nodes the attribute is inserted into the attribute array. For a character attribute, in cases where no selection exists an "empty" hint is inserted. If there is a selection the attribute is hard-formatted and added to the node at rRg.Start(). If the attribute could not be inserted, the method returns false.

Implements IDocumentContentOperations.

Definition at line 3540 of file DocumentContentOperationsManager.cxx.

References SwDoc::GetAttrPool(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), m_rDoc, SfxItemSet::Put(), IDocumentState::SetModified(), and SfxPoolItem::Which().

◆ InsertString()

bool sw::DocumentContentOperationsManager::InsertString ( const SwPaM rRg,
const OUString &  ,
const SwInsertFlags  nInsertMode = SwInsertFlags::EMPTYEXPAND 
)
overridevirtual

◆ InsNoTextNode()

SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsNoTextNode ( const SwPosition rPos,
SwNoTextNode pNode,
const SfxItemSet pFlyAttrSet,
const SfxItemSet pGrfAttrSet,
SwFrameFormat pFrameFormat 
)
private

◆ lcl_RstTextAttr()

bool sw::DocumentContentOperationsManager::lcl_RstTextAttr ( SwNode pNd,
void *  pArgs 
)
static

◆ MoveAndJoin()

void sw::DocumentContentOperationsManager::MoveAndJoin ( SwPaM ,
SwPosition  
)
overridevirtual

◆ MoveNodeRange()

bool sw::DocumentContentOperationsManager::MoveNodeRange ( SwNodeRange rRange,
SwNode rDestNd,
SwMoveFlags  eMvFlags 
)
overridevirtual

◆ MoveRange()

bool sw::DocumentContentOperationsManager::MoveRange ( SwPaM rPaM,
SwPosition rPos,
SwMoveFlags  eMvFlags 
)
overridevirtual

Implements IDocumentContentOperations.

Definition at line 2358 of file DocumentContentOperationsManager.cxx.

References SwPosition::Adjust(), ALLFLYS, SwPosition::Assign(), SwContentNode::CanJoinNext(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::clear(), sw::mark::ContentIdxStore::Create(), DelBookmarks(), SwPaM::DeleteMark(), eMode, o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::empty(), SwRedlineTable::empty(), SwPaM::End(), SwPaM::Exchange(), fnMoveBackward, fnMoveForward, SwPosition::GetContentIndex(), SwNode::GetContentNode(), SwPosition::GetContentNode(), SwDoc::GetFootnoteIdxs(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), SwNode::GetIndex(), SwPaM::GetMark(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwPaM::GetPointNode(), IDocumentRedlineAccess::GetRedlineTable(), SwNode::GetTextNode(), GoInContent(), SwPaM::HasMark(), o3tl::sorted_vector< typename Value, typename Compare, template< typename, typename > class Find, bool >::insert(), sw::mark::IsFieldmarkOverlap(), SwTextNode::JoinNext(), SwTextNode::Len(), m_rDoc, SwPaM::Move(), SwNodes::MoveRange(), REDLINES, RestFlyInRange(), SaveFlyInRange(), SwPosition::SetContent(), SwPaM::SetMark(), IDocumentState::SetModified(), SwTextNode::SplitContentNode(), SwPaM::Start(), and SwFootnoteIdxs::UpdateAllFootnote().

Referenced by MoveAndJoin().

◆ operator=()

DocumentContentOperationsManager & sw::DocumentContentOperationsManager::operator= ( DocumentContentOperationsManager const &  )
privatedelete

◆ Overwrite()

bool sw::DocumentContentOperationsManager::Overwrite ( const SwPaM rRg,
const OUString &  rStr 
)
overridevirtual

◆ RemoveLeadingWhiteSpace() [1/2]

void sw::DocumentContentOperationsManager::RemoveLeadingWhiteSpace ( const SwPosition rPos)
overridevirtual

◆ RemoveLeadingWhiteSpace() [2/2]

void sw::DocumentContentOperationsManager::RemoveLeadingWhiteSpace ( SwPaM rPaM)
overridevirtual

◆ ReplaceRange()

bool sw::DocumentContentOperationsManager::ReplaceRange ( SwPaM rPam,
const OUString &  rNewStr,
const bool  bRegExReplace 
)
overridevirtual

◆ ReplaceRangeImpl()

bool sw::DocumentContentOperationsManager::ReplaceRangeImpl ( SwPaM rPam,
OUString const &  rStr,
const bool  bRegExReplace 
)
private

Definition at line 4476 of file DocumentContentOperationsManager.cxx.

References IDocumentRedlineAccess::AppendRedline(), SwPosition::Assign(), SwDoc::CreateUnoCursor(), IDocumentMarkAccess::deleteMark(), IDocumentRedlineAccess::DeleteRedline(), SwRedlineTable::empty(), EMPTY, SwPaM::End(), SwPaM::Exchange(), fnMoveBackward, SwDoc::GetAttrPool(), SwPosition::GetContentIndex(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), SwPaM::GetMark(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwTextNode::GetParaAttr(), SwPaM::GetPoint(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlineTable(), SwTextNode::GetText(), SwNode::GetTextNode(), SwPaM::HasMark(), IDocumentRedlineAccess::IsIgnoreRedline(), IDocumentRedlineAccess::IsRedlineOn(), m_rDoc, IDocumentMarkAccess::makeMark(), SwPaM::Move(), On, PaMCorrAbs(), REPLACE, SwTextNode::ReplaceText(), RES_CHRATR_BEGIN(), RES_TXTATR_CJK_RUBY(), RES_TXTATR_INETFMT(), RES_TXTATR_META(), RES_TXTATR_METAFIELD(), RES_TXTATR_REFMARK(), RES_TXTATR_TOXMARK(), RES_TXTATR_WITHEND_END(), RES_UNKNOWNATR_BEGIN(), RES_UNKNOWNATR_END(), RestFlyInRange(), SwDoc::RstTextAttrs(), SAL_WARN_IF, SaveFlyInRange(), SwUndoReplace::SetEnd(), SwPaM::SetMark(), IDocumentState::SetModified(), IDocumentRedlineAccess::SetRedlineFlags(), ShowDelete, ShowInsert, ShowMask, SwPaM::Start(), SwPaM::StartEnd(), sw_GetJoinFlags(), sw_JoinText(), IDocumentMarkAccess::UNO_BOOKMARK, and sw::UpdateFramesForAddDeleteRedline().

◆ ReRead()

void sw::DocumentContentOperationsManager::ReRead ( SwPaM ,
const OUString &  rGrfName,
const OUString &  rFltName,
const Graphic pGraphic 
)
overridevirtual

◆ SetIME()

void sw::DocumentContentOperationsManager::SetIME ( bool  bIME)
overridevirtual

States that the last inserted string came from IME.

Implements IDocumentContentOperations.

Definition at line 2948 of file DocumentContentOperationsManager.cxx.

References m_bIME.

◆ SplitNode()

bool sw::DocumentContentOperationsManager::SplitNode ( const SwPosition rPos,
bool  bChkTableStart 
)
overridevirtual

◆ TransliterateText()

void sw::DocumentContentOperationsManager::TransliterateText ( const SwPaM rPaM,
utl::TransliterationWrapper  
)
overridevirtual

Member Data Documentation

◆ m_bIME

bool sw::DocumentContentOperationsManager::m_bIME = false
private

Definition at line 159 of file DocumentContentOperationsManager.hxx.

Referenced by GetIME(), and SetIME().

◆ m_rDoc

SwDoc& sw::DocumentContentOperationsManager::m_rDoc
private

The documentation for this class was generated from the following files: