20 #ifndef INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTCONTENTOPERATIONSMANAGER_HXX
21 #define INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTCONTENTOPERATIONSMANAGER_HXX
51 const bool bForceJoinNext =
false )
override;
72 void ReRead(
SwPaM&,
const OUString& rGrfName,
const OUString& rFltName,
const Graphic* pGraphic)
override;
86 const bool bRegExReplace)
override;
92 bool bExpandCharToPara =
false,
93 SwTextAttr **ppNewTextAttr =
nullptr)
override;
108 const std::pair<const SwPaM&, const SwPosition&> * pCopiedPaM =
nullptr,
109 bool bMakeNewFrames =
true,
110 bool bDelRedlines =
true,
111 bool bCopyFlyAtFly =
false,
114 SwPaM const*
const pCopiedPaM,
116 const bool bCopyFlyAtFly =
false,
139 : pFormatColl(nullptr)
147 , bResetListAttrs(false)
149 , bInclRefToxMark(false)
185 void CalcBreaks(std::vector<std::pair<sal_uLong, sal_Int32>> & rBreaks,
186 SwPaM const & rPam,
bool const isOnlyFieldmarks =
false);
190 #endif // INCLUDED_SW_SOURCE_CORE_INC_DOCUMENTCONTENTOPERATIONSMANAGER_HXX
SwDrawFrameFormat * InsertDrawObj(const SwPaM &rRg, SdrObject &rDrawObj, const SfxItemSet &rFlyAttrSet) override
Insert a DrawObject.
void TransliterateText(const SwPaM &rPaM, utl::TransliterationWrapper &) override
change text to Upper/Lower/Hiragana/Katakana/...
void CalcBreaks(std::vector< std::pair< sal_uLong, sal_Int32 >> &rBreaks, SwPaM const &rPam, bool const isOnlyFieldmarks)
DocumentContentOperationsManager & operator=(DocumentContentOperationsManager const &)=delete
Marks a position in the document model.
bool MoveRange(SwPaM &, SwPosition &, SwMoveFlags) override
SwFlyFrameFormat * InsertOLE(const SwPaM &rRg, const OUString &rObjName, sal_Int64 nAspect, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet) override
static bool lcl_RstTextAttr(const SwNodePtr &rpNd, void *pArgs)
pArgs contains the document's ChrFormatTable Is need for selections at the beginning/end and with no ...
bool CopyImpl(SwPaM &, SwPosition &, SwCopyFlags flags, SwPaM *const pCpyRng) const
const SfxItemSet * pDelSet
SwFlyFrameFormat * InsertEmbObject(const SwPaM &rRg, const svt::EmbeddedObjectRef &xObj, SfxItemSet *pFlyAttrSet) override
Insert OLE-objects.
bool DeleteAndJoinWithRedlineImpl(SwPaM &, const bool unused=false)
const SwPosition * pSttNd
Dialog to specify the properties of date form field.
The root element of a Writer document layout.
bool DelFullPara(SwPaM &) override
Delete full paragraphs.
bool InsertString(const SwPaM &rRg, const OUString &, const SwInsertFlags nInsertMode=SwInsertFlags::EMPTYEXPAND) override
Insert string into existing text node at position rRg.Point().
virtual ~DocumentContentOperationsManager() override
bool SplitNode(const SwPosition &rPos, bool bChkTableStart) override
Split a node at rPos (implemented only for TextNode).
bool DeleteAndJoin(SwPaM &, const bool bForceJoinNext=false) override
complete delete of a given PaM
const SwPosition * pEndNd
SwFormatColl * pFormatColl
bool InsertPoolItem(const SwPaM &rRg, const SfxPoolItem &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr, bool bExpandCharToPara=false, SwTextAttr **ppNewTextAttr=nullptr) override
Add a para for the char attribute exp...
void DeleteDummyChar(SwPosition const &rPos, sal_Unicode cDummy)
bool DeleteAndJoinImpl(SwPaM &, const bool)
void CopyFlyInFlyImpl(const SwNodeRange &rRg, SwPaM const *const pCopiedPaM, const SwNodeIndex &rStartIdx, const bool bCopyFlyAtFly=false, SwCopyFlags flags=SwCopyFlags::Default) const
void ReRead(SwPaM &, const OUString &rGrfName, const OUString &rFltName, const Graphic *pGraphic) override
Transpose graphic (with undo)
void RemoveLeadingWhiteSpace(const SwPosition &rPos) override
Removes any leading white space from the paragraph.
PaM is Point and Mark: a selection of the document model.
SwFlyFrameFormat * InsNoTextNode(const SwPosition &rPos, SwNoTextNode *, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet, SwFrameFormat *)
bool MoveAndJoin(SwPaM &, SwPosition &) override
Move a range.
bool bExactRange
From the attributes included in the range, delete only the ones which have exactly same range...
bool AppendTextNode(SwPosition &rPos) override
SwFlyFrameFormat * InsertGraphicObject(const SwPaM &rRg, const GraphicObject &rGrfObj, const SfxItemSet *pFlyAttrSet, const SfxItemSet *pGrfAttrSet) override
bool MoveNodeRange(SwNodeRange &, SwNodeIndex &, SwMoveFlags) override
Marks a node in the document model.
Text operation/manipulation interface.
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.
bool DeleteRangeImplImpl(SwPaM &)
bool ReplaceRangeImpl(SwPaM &, OUString const &, const bool)
void DeleteSection(SwNode *pNode) override
Delete a full Section of the NodeArray.
bool Overwrite(const SwPaM &rRg, const OUString &rStr) override
Overwrite string in an existing text node.
Parameters for _Rst and lcl_SetTextFormatColl.
void InsertItemSet(const SwPaM &rRg, const SfxItemSet &, const SetAttrMode nFlags=SetAttrMode::DEFAULT, SwRootFrame const *pLayout=nullptr) override
bool CopyRange(SwPaM &, SwPosition &, SwCopyFlags) const override
Copy a selected content range to a position.
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 selec...
bool CopyImplImpl(SwPaM &, SwPosition &, SwCopyFlags flags, SwPaM *const pCpyRng) const
SwRootFrame const *const pLayout
bool ReplaceRange(SwPaM &rPam, const OUString &rNewStr, const bool bRegExReplace) override
Replace selected range in a TextNode with string.
ParaRstFormat(const SwPosition *pStt, const SwPosition *pEnd, SwHistory *pHst, const SfxItemSet *pSet=nullptr, SwRootFrame const *const pLay=nullptr)
void CopyBookmarks(const SwPaM &rPam, SwPosition &rCpyPam)
void DeleteRange(SwPaM &) override
Delete a range SwFlyFrameFormat.
DocumentContentOperationsManager(SwDoc &i_rSwdoc)
Base class of the Writer document model elements.
bool DeleteRangeImpl(SwPaM &, const bool unused=false)