60 void SetIME(
bool bIME)
override;
62 bool GetIME()
const override;
69 void ReRead(
SwPaM&,
const OUString& rGrfName,
const OUString& rFltName,
const Graphic* pGraphic)
override;
83 const bool bRegExReplace)
override;
89 SwTextAttr **ppNewTextAttr =
nullptr)
override;
105 const std::pair<const SwPaM&, const SwPosition&> * pCopiedPaM =
nullptr,
106 bool bMakeNewFrames =
true,
107 bool bDelRedlines =
true,
108 bool bCopyFlyAtFly =
false,
111 SwPaM const*
const pCopiedPaM,
113 const bool bCopyFlyAtFly =
false,
185void CalcBreaks(std::vector<std::pair<SwNodeOffset, sal_Int32>> & rBreaks,
186 SwPaM const & rPam,
bool const isOnlyFieldmarks =
false);
Text operation/manipulation interface.
Layout frame for SwNoTextNode, i.e. graphics and OLE nodes (including charts).
Base class of the Writer document model elements.
PaM is Point and Mark: a selection of the document model.
The root element of a Writer document layout.
A wrapper around SfxPoolItem to store the start position of (usually) a text portion,...
bool InsertPoolItem(const SwPaM &rRg, const SfxPoolItem &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr, SwTextAttr **ppNewTextAttr=nullptr) override
Insert an attribute.
bool CopyRange(SwPaM &, SwPosition &, SwCopyFlags) const override
Copy a selected content range to a position.
bool MoveNodeRange(SwNodeRange &, SwNode &, SwMoveFlags) override
void RemoveLeadingWhiteSpace(const SwPosition &rPos) override
Removes any leading white space from the paragraph.
bool DeleteAndJoinWithRedlineImpl(SwPaM &, SwDeleteFlags)
void SetIME(bool bIME) override
States that the last inserted string came from IME.
void InsertItemSet(const SwPaM &rRg, const SfxItemSet &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr) override
DocumentContentOperationsManager(DocumentContentOperationsManager const &)=delete
bool DeleteRangeImplImpl(SwPaM &, SwDeleteFlags)
bool Overwrite(const SwPaM &rRg, const OUString &rStr) override
Overwrite string in an existing text node.
SwFlyFrameFormat * InsertOLE(const SwPaM &rRg, const OUString &rObjName, sal_Int64 nAspect, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet) override
void ReRead(SwPaM &, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic) override
Transpose graphic (with undo)
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 selec...
SwFlyFrameFormat * InsertGraphic(const SwPaM &rRg, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet, SwFrameFormat *) override
Insert graphic or formula.
static bool lcl_RstTextAttr(SwNode *pNd, void *pArgs)
@params pArgs contains the document's ChrFormatTable Is need for selections at the beginning/end and ...
void CopyFlyInFlyImpl(const SwNodeRange &rRg, SwPaM const *const pCopiedPaM, SwNode &rStartIdx, const bool bCopyFlyAtFly=false, SwCopyFlags flags=SwCopyFlags::Default) const
void MoveAndJoin(SwPaM &, SwPosition &) override
Move a range.
bool CopyImplImpl(SwPaM &, SwPosition &, SwCopyFlags flags, SwPaM *const pCpyRng) const
bool MoveRange(SwPaM &, SwPosition &, SwMoveFlags) override
DocumentContentOperationsManager & operator=(DocumentContentOperationsManager const &)=delete
bool GetIME() const override
Did the last inserted string come from IME?
bool CopyImpl(SwPaM &, SwPosition &, SwCopyFlags flags, SwPaM *const pCpyRng) const
SwFlyFrameFormat * InsertEmbObject(const SwPaM &rRg, const svt::EmbeddedObjectRef &xObj, SfxItemSet *pFlyAttrSet) override
Insert OLE-objects.
SwDrawFrameFormat * InsertDrawObj(const SwPaM &rRg, SdrObject &rDrawObj, const SfxItemSet &rFlyAttrSet) override
Insert a DrawObject.
bool ReplaceRange(SwPaM &rPam, const OUString &rNewStr, const bool bRegExReplace) override
Replace selected range in a TextNode with string.
bool DelFullPara(SwPaM &) override
Delete full paragraphs.
bool ReplaceRangeImpl(SwPaM &, OUString const &, const bool)
bool SplitNode(const SwPosition &rPos, bool bChkTableStart) override
Split a node at rPos (implemented only for TextNode).
void DeleteSection(SwNode *pNode) override
Delete a full Section of the NodeArray.
bool AppendTextNode(SwPosition &rPos) override
virtual ~DocumentContentOperationsManager() override
void TransliterateText(const SwPaM &rPaM, utl::TransliterationWrapper &) override
change text to Upper/Lower/Hiragana/Katakana/...
bool DeleteAndJoin(SwPaM &, SwDeleteFlags flags=SwDeleteFlags::Default) override
complete delete of a given PaM
DocumentContentOperationsManager(SwDoc &i_rSwdoc)
bool InsertString(const SwPaM &rRg, const OUString &, const SwInsertFlags nInsertMode=SwInsertFlags::EMPTYEXPAND) override
Insert string into existing text node at position rRg.Point().
void DeleteRange(SwPaM &) override
Delete a range SwFlyFrameFormat.
SwFlyFrameFormat * InsNoTextNode(const SwPosition &rPos, SwNoTextNode *, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet, SwFrameFormat *)
bool DeleteAndJoinImpl(SwPaM &, SwDeleteFlags)
bool DeleteRangeImpl(SwPaM &, SwDeleteFlags)
void DeleteDummyChar(SwPosition const &rPos, sal_Unicode cDummy)
Dialog to specify the properties of date form field.
void CopyBookmarks(const SwPaM &rPam, const SwPosition &rCpyPam, SwCopyFlags flags)
void CalcBreaks(std::vector< std::pair< SwNodeOffset, sal_Int32 > > &rBreaks, SwPaM const &rPam, bool const isOnlyFieldmarks)
Marks a position in the document model.
Parameters for _Rst and lcl_SetTextFormatColl.
SwRootFrame const *const pLayout
ParaRstFormat(const SwPosition *pStt, const SwPosition *pEnd, SwHistory *pHst, const SfxItemSet *pSet=nullptr, SwRootFrame const *const pLay=nullptr)
const SwPosition * pEndNd
const SwPosition * pSttNd
SwFormatColl * pFormatColl
bool bExactRange
From the attributes included in the range, delete only the ones which have exactly same range....
const SfxItemSet * pDelSet