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 &) override
 complete delete of a given PaM More...
 
bool MoveRange (SwPaM &, SwPosition &, SwMoveFlags) override
 
bool MoveNodeRange (SwNodeRange &, SwNodeIndex &, 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...
 
SwFlyFrameFormatInsertGraphicObject (const SwPaM &rRg, const GraphicObject &rGrfObj, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet) override
 
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 DeleteDummyChar (SwPosition const &rPos, sal_Unicode cDummy)
 
void CopyWithFlyInFly (const SwNodeRange &rRg, const SwNodeIndex &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, const SwNodeIndex &rStartIdx, const bool bCopyFlyAtFly=false, SwCopyFlags flags=SwCopyFlags::Default) const
 
virtual ~DocumentContentOperationsManager () override
 

Static Public Member Functions

static bool lcl_RstTextAttr (SwNode *pNd, void *pArgs)
 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 &)
 
bool DeleteAndJoinWithRedlineImpl (SwPaM &)
 
bool DeleteRangeImpl (SwPaM &)
 
bool DeleteRangeImplImpl (SwPaM &)
 
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

sw::DocumentContentOperationsManager::DocumentContentOperationsManager ( SwDoc i_rSwdoc)

Definition at line 1990 of file DocumentContentOperationsManager.cxx.

sw::DocumentContentOperationsManager::~DocumentContentOperationsManager ( )
overridevirtual

Definition at line 4099 of file DocumentContentOperationsManager.cxx.

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

Member Function Documentation

bool sw::DocumentContentOperationsManager::AppendTextNode ( SwPosition rPos)
overridevirtual
void sw::DocumentContentOperationsManager::CopyFlyInFlyImpl ( const SwNodeRange rRg,
SwPaM const *const  pCopiedPaM,
const SwNodeIndex rStartIdx,
const bool  bCopyFlyAtFly = false,
SwCopyFlags  flags = SwCopyFlags::Default 
) const
bool sw::DocumentContentOperationsManager::CopyImpl ( SwPaM rPam,
SwPosition rPos,
SwCopyFlags  flags,
SwPaM *const  pCpyRng 
) const
private
bool sw::DocumentContentOperationsManager::CopyImplImpl ( SwPaM rPam,
SwPosition rPos,
SwCopyFlags  flags,
SwPaM *const  pCpyRng 
) const
private

Definition at line 4872 of file DocumentContentOperationsManager.cxx.

References aBreakSetRange, SwNodeRange::aEnd, IDocumentUndoRedo::AppendUndo(), SwIndex::Assign(), SwNodeIndex::Assign(), SwNodeRange::aStart, CopyAll, sw::CopyBookmarks(), SwTextNode::CopyCollFormat(), CopyFlyInFlyImpl(), SwTextNode::CopyText(), CopyWithFlyInFly(), SwDoc::CreateUnoCursor(), DeleteRedlines, IDocumentUndoRedo::DoesUndo(), SwPaM::End(), SwPaM::Exchange(), fnMoveBackward, fnMoveForward, IDocumentMarkAccess::getAllMarksCount(), SwFormatAnchor::GetAnchorId(), SwDoc::GetAttrPool(), SwNode::GetContentNode(), SwNode::GetDoc(), sw::GetFlysAnchoredAt(), SwUndoInserts::GetFlysAnchoredAt(), SwDoc::getIDocumentContentOperations(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwPaM::GetMark(), SwNodeIndex::GetNode(), GetNode(), SwDoc::GetNodes(), 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_POOLCOLL_STANDARD, SwTextNode::ResetAttr(), SwDoc::SearchNumRule(), SwFormatAnchor::SetAnchor(), SwTextNode::SetAttr(), SwUndoInserts::SetInsertRange(), SwPaM::SetMark(), IDocumentState::SetModified(), SwDoc::SetNumRule(), SwDoc::SetOutlineNumRule(), IDocumentRedlineAccess::SetRedlineFlags_intern(), IDocumentContentOperations::SplitNode(), and SwPaM::Start().

Referenced by CopyImpl().

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 );

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 2018 of file DocumentContentOperationsManager.cxx.

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

void sw::DocumentContentOperationsManager::CopyWithFlyInFly ( const SwNodeRange rRg,
const SwNodeIndex 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 3641 of file DocumentContentOperationsManager.cxx.

References SwNodeRange::aEnd, SwNodeRange::aStart, sw::CopyBookmarks(), CopyFlyInFlyImpl(), SwNodes::CopyNodes(), SwNodes::DelDummyNodes(), DeleteRedlines, SwContentNode::DelFrames(), o3tl::sorted_vector< Value, Compare, Find, class >::empty(), o3tl::sorted_vector< Value, Compare, Find, class >::end(), end, o3tl::sorted_vector< Value, Compare, Find, class >::erase(), o3tl::sorted_vector< Value, Compare, Find, class >::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< Value, Compare, Find, class >::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(), CopyImplImpl(), sw::DocumentLayoutManager::CopyLayoutFormat(), SwRangeRedline::CopyToSection(), lcl_CopyBoxToDoc(), and SwDoc::SplitDoc().

bool sw::DocumentContentOperationsManager::DeleteAndJoin ( SwPaM )
overridevirtual
bool sw::DocumentContentOperationsManager::DeleteAndJoinImpl ( SwPaM rPam)
private
bool sw::DocumentContentOperationsManager::DeleteAndJoinWithRedlineImpl ( SwPaM rPam)
private
void sw::DocumentContentOperationsManager::DeleteDummyChar ( SwPosition const &  rPos,
sal_Unicode  cDummy 
)
void sw::DocumentContentOperationsManager::DeleteRange ( SwPaM )
overridevirtual
bool sw::DocumentContentOperationsManager::DeleteRangeImpl ( SwPaM rPam)
private
bool sw::DocumentContentOperationsManager::DeleteRangeImplImpl ( SwPaM rPam)
private
void sw::DocumentContentOperationsManager::DeleteSection ( SwNode pNode)
overridevirtual
bool sw::DocumentContentOperationsManager::DelFullPara ( SwPaM )
overridevirtual

Delete full paragraphs.

Implements IDocumentContentOperations.

Definition at line 2148 of file DocumentContentOperationsManager.cxx.

References SwNodeRange::aEnd, IDocumentUndoRedo::AppendUndo(), SwIndex::Assign(), SwNodeRange::aStart, CH_TXT_ATR_FIELDEND, CH_TXT_ATR_FIELDSEP, CH_TXT_ATR_FIELDSTART, IDocumentUndoRedo::ClearRedo(), SwDoc::CorrAbs(), SwNodes::Count(), SwNodes::Delete(), SwPaM::DeleteMark(), IDocumentMarkAccess::deleteMark(), IDocumentLayoutAccess::DelLayoutFormat(), IDocumentUndoRedo::DoesUndo(), SwPaM::End(), SwNode::EndOfSectionIndex(), SwPaM::Exchange(), fnMoveBackward, fnMoveForward, SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetContentAnchor(), SwNode::GetContentNode(), IDocumentMarkAccess::getFieldmarkAt(), IDocumentMarkAccess::getFieldmarkFor(), SwTable::GetFrameFormat(), SwDoc::getIDocumentLayoutAccess(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), SwNodeIndex::GetIndex(), SfxItemSet::GetItemState(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), SwPaM::GetPoint(), SwDoc::GetSpzFrameFormats(), SwTableNode::GetTable(), SwNode::GetTextNode(), GoInNode(), SwNodes::GoNext(), SwPaM::HasMark(), i, SwNode::IsContentNode(), sw::mark::IsFieldmarkOverlap(), IDocumentRedlineAccess::IsRedlineOn(), m_rDoc, SwContentNode::MakeEndIndex(), SwContentNode::MakeStartIndex(), SwPaM::Move(), SwPosition::nContent, SwPosition::nNode, SwPaM::Normalize(), PaMCorrAbs(), SAL_WARN, SwFormat::SetFormatAttr(), SwPaM::SetMark(), IDocumentState::SetModified(), SwFrameFormats::size(), SwPaM::Start(), SwNode::StartOfSectionIndex(), and SwNode::StartOfSectionNode().

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

Did the last inserted string come from IME?

Implements IDocumentContentOperations.

Definition at line 2950 of file DocumentContentOperationsManager.cxx.

References m_bIME.

SwDrawFrameFormat * sw::DocumentContentOperationsManager::InsertDrawObj ( const SwPaM rRg,
SdrObject rDrawObj,
const SfxItemSet rFlyAttrSet 
)
overridevirtual
SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsertEmbObject ( const SwPaM rRg,
const svt::EmbeddedObjectRef xObj,
SfxItemSet pFlyAttrSet 
)
overridevirtual
SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsertGraphic ( const SwPaM rRg,
const OUString &  rGrfName,
const OUString &  rFltName,
const Graphic pGraphic,
const SfxItemSet pFlyAttrSet,
const SfxItemSet pGrfAttrSet,
SwFrameFormat  
)
overridevirtual
SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsertGraphicObject ( const SwPaM rRg,
const GraphicObject rGrfObj,
const SfxItemSet pFlyAttrSet,
const SfxItemSet pGrfAttrSet 
)
overridevirtual
void sw::DocumentContentOperationsManager::InsertItemSet ( const SwPaM rRg,
const SfxItemSet rSet,
const SetAttrMode  nFlags = SetAttrMode::DEFAULT,
SwRootFrame const *  pLayout = nullptr 
)
overridevirtual
SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsertOLE ( const SwPaM rRg,
const OUString &  rObjName,
sal_Int64  nAspect,
const SfxItemSet pFlyAttrSet,
const SfxItemSet pGrfAttrSet 
)
overridevirtual
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 3554 of file DocumentContentOperationsManager.cxx.

References IDocumentUndoRedo::AppendUndo(), IDocumentUndoRedo::ClearRedo(), IDocumentUndoRedo::DoesUndo(), SwDoc::GetAttrPool(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), utl::ConfigManager::IsFuzzing(), m_rDoc, SfxItemSet::Put(), IDocumentState::SetModified(), and SfxPoolItem::Which().

bool sw::DocumentContentOperationsManager::InsertString ( const SwPaM rRg,
const OUString &  ,
const SwInsertFlags  nInsertMode = SwInsertFlags::EMPTYEXPAND 
)
overridevirtual
SwFlyFrameFormat * sw::DocumentContentOperationsManager::InsNoTextNode ( const SwPosition rPos,
SwNoTextNode pNode,
const SfxItemSet pFlyAttrSet,
const SfxItemSet pGrfAttrSet,
SwFrameFormat pFrameFormat 
)
private
bool sw::DocumentContentOperationsManager::lcl_RstTextAttr ( SwNode pNd,
void pArgs 
)
static
void sw::DocumentContentOperationsManager::MoveAndJoin ( SwPaM ,
SwPosition  
)
overridevirtual
bool sw::DocumentContentOperationsManager::MoveNodeRange ( SwNodeRange rRange,
SwNodeIndex rPos,
SwMoveFlags  eMvFlags 
)
overridevirtual
bool sw::DocumentContentOperationsManager::MoveRange ( SwPaM rPaM,
SwPosition rPos,
SwMoveFlags  eMvFlags 
)
overridevirtual
DocumentContentOperationsManager& sw::DocumentContentOperationsManager::operator= ( DocumentContentOperationsManager const &  )
privatedelete
bool sw::DocumentContentOperationsManager::Overwrite ( const SwPaM rRg,
const OUString &  rStr 
)
overridevirtual
void sw::DocumentContentOperationsManager::RemoveLeadingWhiteSpace ( const SwPosition rPos)
overridevirtual
bool sw::DocumentContentOperationsManager::ReplaceRange ( SwPaM rPam,
const OUString &  rNewStr,
const bool  bRegExReplace 
)
overridevirtual
bool sw::DocumentContentOperationsManager::ReplaceRangeImpl ( SwPaM ,
OUString const &  ,
const bool   
)
private

Definition at line 4482 of file DocumentContentOperationsManager.cxx.

References IDocumentRedlineAccess::AppendRedline(), IDocumentUndoRedo::AppendUndo(), SwIndex::Assign(), IDocumentMarkAccess::deleteMark(), IDocumentRedlineAccess::DeleteRedline(), IDocumentUndoRedo::DoesUndo(), EMPTY, SwRedlineTable::empty(), SwPaM::End(), IDocumentUndoRedo::EndUndo(), SwPaM::Exchange(), false, fnMoveBackward, SwDoc::GetAttrPool(), SwNode::GetContentNode(), SwDoc::getIDocumentMarkAccess(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwIndex::GetMark(), SwPaM::GetMark(), SwNodeIndex::GetNode(), SwTextNode::GetParaAttr(), SwPaM::GetPoint(), IDocumentRedlineAccess::GetRedlineFlags(), IDocumentRedlineAccess::GetRedlineTable(), SwTextNode::GetText(), SwNode::GetTextNode(), SwPaM::HasMark(), InsertItemSet(), InsertString(), IDocumentRedlineAccess::IsIgnoreRedline(), IDocumentRedlineAccess::IsRedlineOn(), m_rDoc, IDocumentMarkAccess::makeMark(), SwPaM::Move(), SwPosition::nContent, sw::mark::New, SwPosition::nNode, On, PaMCorrAbs(), REPLACE, SwTextNode::ReplaceText(), RES_CHRATR_BEGIN(), RES_TXTATR_INETFMT(), RES_TXTATR_META(), RES_TXTATR_TOXMARK(), RES_TXTATR_WITHEND_END(), RES_UNKNOWNATR_BEGIN(), SwDoc::RstTextAttrs(), SAL_WARN_IF, SwUndoReplace::SetEnd(), SwPaM::SetMark(), IDocumentState::SetModified(), IDocumentRedlineAccess::SetRedlineFlags(), ShowDelete, ShowInsert, ShowMask, SplitNode(), IDocumentUndoRedo::StartUndo(), sw_GetJoinFlags(), sw_JoinText(), and IDocumentMarkAccess::UNO_BOOKMARK.

Referenced by ReplaceRange().

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

States that the last inserted string came from IME.

Implements IDocumentContentOperations.

Definition at line 2945 of file DocumentContentOperationsManager.cxx.

References m_bIME.

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

Split a node at rPos (implemented only for TextNode).

Implements IDocumentContentOperations.

Definition at line 3294 of file DocumentContentOperationsManager.cxx.

References IDocumentRedlineAccess::AppendRedline(), IDocumentUndoRedo::AppendUndo(), IDocumentUndoRedo::ClearRedo(), sw::mark::ContentIdxStore::Create(), IDocumentUndoRedo::DoesUndo(), eMode, SwRedlineTable::empty(), sw::mark::Flys, fnMoveBackward, SwNode::GetContentNode(), SwNodes::GetEndOfExtras(), SwTable::GetFrameFormat(), SwDoc::getIDocumentRedlineAccess(), SwDoc::getIDocumentState(), SwDoc::getIDocumentStylePoolAccess(), SwDoc::GetIDocumentUndoRedo(), SwIndex::GetIndex(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwFormat::GetItemState(), SwNodeIndex::GetNode(), SwDoc::GetNodes(), IDocumentRedlineAccess::GetRedlineTable(), SwTableNode::GetTable(), IDocumentStylePoolAccess::GetTextCollFromPool(), SwNode::GetTextNode(), SwNode::IsContentNode(), SwNode::IsEndNode(), IDocumentRedlineAccess::IsIgnoreRedline(), IDocumentRedlineAccess::IsRedlineOn(), SwNode::IsStartNode(), SwNode::IsTableNode(), SwNode::IsTextNode(), SwTextNode::Len(), m_rDoc, SwNodes::MakeTextNode(), SwPaM::Move(), SwPosition::nContent, SwPosition::nNode, sw::mark::NonFlys, RES_POOLCOLL_TEXT, SwFormat::ResetFormatAttr(), SwTextNode::SetAttr(), SwPaM::SetMark(), IDocumentState::SetModified(), SwUndoSplitNode::SetTableFlag(), SwTextNode::SplitContentNode(), IDocumentRedlineAccess::SplitRedline(), SwNode::StartOfSectionNode(), SwTableBoxStartNode, and SwDoc::UpdateParRsid().

Referenced by ReplaceRangeImpl().

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

Member Data Documentation

bool sw::DocumentContentOperationsManager::m_bIME = false
private

Definition at line 161 of file DocumentContentOperationsManager.hxx.

Referenced by GetIME(), and SetIME().

SwDoc& sw::DocumentContentOperationsManager::m_rDoc
private

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