19#ifndef INCLUDED_SW_SOURCE_CORE_INC_MVSAVE_HXX
20#define INCLUDED_SW_SOURCE_CORE_INC_MVSAVE_HXX
31 class MetadatableUndo;
52 const ::sw::mark::IMark& rBkmk,
54 std::optional<sal_Int32> oContentIdx);
57 std::optional<sal_Int32> oContentIdx = std::nullopt);
86 static std::shared_ptr<ContentIdxStore>
Create();
96 std::vector< ::sw::mark::SaveBookmark> * SaveBkmk =
nullptr,
97 std::optional<sal_Int32> oStartContentIdx = std::nullopt,
98 std::optional<sal_Int32> oEndContentIdx = std::nullopt);
120 const SwNode* pInsPos,
bool isForceToStartPos =
false);
127 std::optional<sal_Int32> nMkContentIdx = std::nullopt,
128 std::optional<sal_Int32> pPtContentIdx = std::nullopt);
156 const sal_Int32 nOffset = 0 );
170 sal_uInt32 nArrOrdNum );
std::optional< SwNodeIndex > moSaveIndex
~SaveRedlEndPosForRestore()
SaveRedlEndPosForRestore(const SwNode &rInsIdx, sal_Int32 nContent)
std::vector< SwPosition * > mvSavArr
Marks a character position inside a document model content node (SwContentNode)
sal_Int32 GetContent() const
SwDataChanged(const SwPaM &rPam)
const SwPosition * m_pPos
Base class of the Writer document model elements.
PaM is Point and Mark: a selection of the document model.
Helper to copy paragraph-bound Flys.
bool operator==(const ZSortFly &) const
const SwFormatAnchor * m_pAnchor
ZSortFly(const SwFrameFormat *pFrameFormat, const SwFormatAnchor *pFlyAnchor, sal_uInt32 nArrOrdNum)
bool operator<(const ZSortFly &rCmp) const
const SwFormatAnchor * GetAnchor() const
const SwFrameFormat * m_pFormat
const SwFrameFormat * GetFormat() const
Takes care of storing relevant attributes of an SwTextNode before split, then restore them on the new...
virtual void Save(SwDoc &rDoc, SwNodeOffset nNode, sal_Int32 nContent, bool bSaveFlySplit=false)=0
virtual ~ContentIdxStore()
static std::shared_ptr< ContentIdxStore > Create()
virtual void Restore(SwDoc &rDoc, SwNodeOffset nNode, sal_Int32 nOffset=0, bool bAuto=false, bool bAtStart=false, RestoreMode=RestoreMode::All)=0
virtual void Restore(SwNode &rNd, sal_Int32 nLen, sal_Int32 nCorrLen, RestoreMode=RestoreMode::All)=0
void SetInDoc(SwDoc *pDoc, const SwNode &, std::optional< sal_Int32 > oContentIdx=std::nullopt)
IDocumentMarkAccess::MarkType m_eOrigBkmType
OUString m_aHideCondition
SaveBookmark(const ::sw::mark::IMark &rBkmk, const SwNode &rMvPos, std::optional< sal_Int32 > oContentIdx)
std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo
void PaMCorrRel(const SwNode &rOldNode, const SwPosition &rNewPos, const sal_Int32 nOffset=0)
Sets all PaMs in OldNode to relative Pos.
void DelFlyInRange(SwNode &rMkNd, SwNode &rPtNd, std::optional< sal_Int32 > nMkContentIdx=std::nullopt, std::optional< sal_Int32 > pPtContentIdx=std::nullopt)
Delete and move all Flys at the paragraph, that are within the selection.
void SaveFlyInRange(const SwNodeRange &rRg, SaveFlyArr &rArr)
void RestFlyInRange(SaveFlyArr &rArr, const SwPosition &rSttIdx, const SwNode *pInsPos, bool isForceToStartPos=false)
void PaMCorrAbs(const SwPaM &rRange, const SwPosition &rNewPos)
Function declarations so that everything below the CursorShell can move the Cursor once in a while.
void DelBookmarks(SwNode &rStt, const SwNode &rEnd, std::vector< ::sw::mark::SaveBookmark > *SaveBkmk=nullptr, std::optional< sal_Int32 > oStartContentIdx=std::nullopt, std::optional< sal_Int32 > oEndContentIdx=std::nullopt)
std::deque< SaveFly > SaveFlyArr
Dialog to specify the properties of date form field.
data structure to temporarily hold fly anchor positions relative to some location.
SaveFly(SwNodeOffset nNodeDiff, sal_Int32 const nCntntIdx, SwFrameFormat *pFormat, bool bInsert)
bool isAtInsertNode
if true, anchor at insert node index
SwFrameFormat * pFrameFormat
sal_Int32 nContentIndex
relative node difference
SwNodeOffset nNdDiff
the fly's frame format
Marks a position in the document model.