19 #ifndef INCLUDED_SW_SOURCE_CORE_INC_MVSAVE_HXX
20 #define INCLUDED_SW_SOURCE_CORE_INC_MVSAVE_HXX
29 class MetadatableUndo;
51 const ::sw::mark::IMark& rBkmk,
79 virtual void Clear() =0;
80 virtual bool Empty() =0;
81 virtual void Save(
SwDoc& rDoc,
sal_uLong nNode, sal_Int32 nContent,
bool bSaveFlySplit=
false) =0;
85 static std::shared_ptr<ContentIdxStore>
Create();
95 std::vector< ::sw::mark::SaveBookmark> * SaveBkmk =
nullptr,
96 const SwIndex* pSttIdx =
nullptr,
97 const SwIndex* pEndIdx =
nullptr);
109 : pFrameFormat(pFormat)
111 , nContentIndex(nCntntIdx)
112 , isAtInsertNode(bInsert)
126 SwIndex const* pMkIdx =
nullptr,
127 SwIndex const* pPtIdx =
nullptr);
155 const sal_Int32 nOffset = 0 );
169 sal_uInt32 nArrOrdNum );
199 #endif // INCLUDED_SW_SOURCE_CORE_INC_MVSAVE_HXX
std::vector< SwPosition * > mvSavArr
Marks a position in the document model.
sal_uLong nNdDiff
the fly's frame format
const SwFrameFormat * m_pFormat
ZSortFly(const SwFrameFormat *pFrameFormat, const SwFormatAnchor *pFlyAnchor, sal_uInt32 nArrOrdNum)
bool operator<(const ZSortFly &rCmp) const
void SetInDoc(SwDoc *pDoc, const SwNodeIndex &, const SwIndex *pIdx=nullptr)
Dialog to specify the properties of date form field.
void SaveFlyInRange(const SwNodeRange &rRg, SaveFlyArr &rArr)
std::unique_ptr< SwNodeIndex > mpSaveIndex
SwDataChanged(const SwPaM &rPam)
SwFrameFormat * pFrameFormat
bool operator==(const ZSortFly &) const
SaveFly(sal_uLong nNodeDiff, sal_Int32 const nCntntIdx, SwFrameFormat *pFormat, bool bInsert)
~SaveRedlEndPosForRestore()
PaM is Point and Mark: a selection of the document model.
const SwFormatAnchor * m_pAnchor
void DelFlyInRange(const SwNodeIndex &rMkNdIdx, const SwNodeIndex &rPtNdIdx, SwIndex const *pMkIdx=nullptr, SwIndex const *pPtIdx=nullptr)
Delete and move all Flys at the paragraph, that are within the selection.
Takes care of storing relevant attributes of an SwTextNode before split, then restore them on the new...
void PaMCorrRel(const SwNodeIndex &rOldNode, const SwPosition &rNewPos, const sal_Int32 nOffset=0)
Sets all PaMs in OldNode to relative Pos.
Marks a character position inside a document model node.
void PaMCorrAbs(const SwPaM &rRange, const SwPosition &rNewPos)
Function declarations so that everything below the CursorShell can move the Cursor once in a while...
std::shared_ptr< ::sfx2::MetadatableUndo > m_pMetadataUndo
Marks a node in the document model.
Helper to copy paragraph-bound Flys.
std::deque< SaveFly > SaveFlyArr
bool isAtInsertNode
if true, anchor at insert node index
virtual void Save(SwDoc &rDoc, sal_uLong nNode, sal_Int32 nContent, bool bSaveFlySplit=false)=0
virtual void Restore(SwDoc &rDoc, sal_uLong nNode, sal_Int32 nOffset=0, bool bAuto=false, RestoreMode=RestoreMode::All)=0
void DelBookmarks(const SwNodeIndex &rStt, const SwNodeIndex &rEnd, std::vector< ::sw::mark::SaveBookmark > *SaveBkmk=nullptr, const SwIndex *pSttIdx=nullptr, const SwIndex *pEndIdx=nullptr)
const SwPosition * m_pPos
data structure to temporarily hold fly anchor positions relative to some location.
static std::shared_ptr< ContentIdxStore > Create()
void RestFlyInRange(SaveFlyArr &rArr, const SwPosition &rSttIdx, const SwNodeIndex *pInsPos)
virtual ~ContentIdxStore()
const SwFrameFormat * GetFormat() const
IDocumentMarkAccess::MarkType m_eOrigBkmType
SaveRedlEndPosForRestore(const SwNodeIndex &rInsIdx, sal_Int32 nContent)
sal_Int32 nContentIndex
relative node difference
const SwFormatAnchor * GetAnchor() const
sal_Int32 GetContent() const
OUString m_aHideCondition
SaveBookmark(const ::sw::mark::IMark &rBkmk, const SwNodeIndex &rMvPos, const SwIndex *pIdx)
Base class of the Writer document model elements.