LibreOffice Module sw (master) 1
|
#include <vcl/keycod.hxx>
#include <IDocumentMarkAccess.hxx>
#include <ndindex.hxx>
#include <deque>
#include <optional>
#include <vector>
#include <o3tl/typed_flags_set.hxx>
Go to the source code of this file.
Classes | |
class | sw::mark::SaveBookmark |
class | sw::mark::ContentIdxStore |
Takes care of storing relevant attributes of an SwTextNode before split, then restore them on the new node. More... | |
struct | o3tl::typed_flags< sw::mark::RestoreMode > |
struct | SaveFly |
data structure to temporarily hold fly anchor positions relative to some location. More... | |
class | SwDataChanged |
class | ZSortFly |
Helper to copy paragraph-bound Flys. More... | |
class | SwTableNumFormatMerge |
class | SaveRedlEndPosForRestore |
Namespaces | |
namespace | sfx2 |
namespace | sw |
Dialog to specify the properties of date form field. | |
namespace | sw::mark |
namespace | o3tl |
Typedefs | |
typedef std::deque< SaveFly > | SaveFlyArr |
Enumerations | |
enum class | sw::mark::RestoreMode { sw::mark::Flys = 1 , sw::mark::NonFlys = 2 , sw::mark::All = 3 } |
Functions | |
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) |
void | RestFlyInRange (SaveFlyArr &rArr, const SwPosition &rSttIdx, const SwNode *pInsPos, bool isForceToStartPos=false) |
void | SaveFlyInRange (const SwNodeRange &rRg, SaveFlyArr &rArr) |
void | SaveFlyInRange (const SwPaM &rPam, const SwPosition &rInsPos, SaveFlyArr &rArr, bool bMoveAllFlys, SwHistory *pHistory=nullptr) |
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. More... | |
void | PaMCorrAbs (const SwPaM &rRange, const SwPosition &rNewPos) |
Function declarations so that everything below the CursorShell can move the Cursor once in a while. More... | |
void | PaMCorrRel (const SwNode &rOldNode, const SwPosition &rNewPos, const sal_Int32 nOffset=0) |
Sets all PaMs in OldNode to relative Pos. More... | |
typedef std::deque< SaveFly > SaveFlyArr |
Definition at line 117 of file mvsave.hxx.
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 |
||
) |
void DelFlyInRange | ( | SwNode & | rMkNd, |
SwNode & | rPtNd, | ||
std::optional< sal_Int32 > | oMkContentIdx, | ||
std::optional< sal_Int32 > | oPtContentIdx | ||
) |
Delete and move all Flys at the paragraph, that are within the selection.
If there is a Fly at the SPoint, it is moved onto the Mark.
Definition at line 208 of file docedt.cxx.
References AllMask, sw::FrameFormats< value_type >::begin(), CheckNoCntnt, DelFlyInRange(), IDocumentLayoutAccess::DelLayoutFormat(), sw::FrameFormats< value_type >::find(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwNode::GetContentNode(), SwNode::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwNodeIndex::GetNode(), GetNode(), SwDoc::GetSpzFrameFormats(), i, IsDestroyFrameAnchoredAtChar(), IsSelectFrameAnchoredAtPara(), point(), RES_FLYFRMFMT(), sw::FrameFormats< value_type >::size(), SwFormat::Which(), and WriterfilterHack.
Referenced by sw::DocumentContentOperationsManager::DeleteRangeImplImpl(), sw::DocumentContentOperationsManager::DeleteSection(), DelFlyInRange(), and SwTOXBaseSection::Update().
void PaMCorrAbs | ( | const SwPaM & | rRange, |
const SwPosition & | rNewPos | ||
) |
Function declarations so that everything below the CursorShell can move the Cursor once in a while.
These functions do not call the SwDoc::Corr methods!
Definition at line 90 of file doccorr.cxx.
References SwDoc::cleanupUnoCursorTable(), SwPaM::End(), SwCursorShell::GetCursor_(), SwNode::GetDoc(), SwDoc::GetEditShell(), SwPaM::GetNext(), SwPosition::GetNode(), sw::Ring< value_type >::GetRingContainer(), SwUnoTableCursor::GetSelRing(), SwCursorShell::GetStackCursor(), SwCursorShell::GetTableCrs(), SwCursorShell::IsTableMode(), SwDoc::mvUnoCursorTable, and SwPaM::Start().
Referenced by SwDoc::ClearDoc(), SwDoc::CorrAbs(), sw::DocumentContentOperationsManager::DeleteRangeImpl(), sw::DocumentContentOperationsManager::DeleteSection(), SwDoc::DeleteTOX(), sw::DocumentContentOperationsManager::DelFullPara(), SwDoc::DelTable(), SwFEShell::Paste(), SwUndoDelete::RedoImpl(), sw::DocumentContentOperationsManager::ReplaceRangeImpl(), SwDoc::TextToTable(), SwUndoInserts::UndoImpl(), SwUndoInsLayFormat::UndoImpl(), and SwUndoSplitTable::UndoImpl().
void PaMCorrRel | ( | const SwNode & | rOldNode, |
const SwPosition & | rNewPos, | ||
const sal_Int32 | nOffset = 0 |
||
) |
Sets all PaMs in OldNode to relative Pos.
Definition at line 244 of file doccorr.cxx.
References SwDoc::cleanupUnoCursorTable(), SwPosition::GetContentIndex(), SwCursorShell::GetCursor_(), SwNode::GetDoc(), SwDoc::GetEditShell(), SwPaM::GetNext(), sw::Ring< value_type >::GetRingContainer(), SwUnoTableCursor::GetSelRing(), SwCursorShell::GetStackCursor(), SwCursorShell::GetTableCrs(), SwCursorShell::IsTableMode(), and SwDoc::mvUnoCursorTable.
Referenced by SwDoc::CorrRel(), and SwUndo::RemoveIdxRel().
void RestFlyInRange | ( | SaveFlyArr & | rArr, |
const SwPosition & | rSttIdx, | ||
const SwNode * | pInsPos, | ||
bool | isForceToStartPos = false |
||
) |
Definition at line 53 of file docedt.cxx.
References SwPosition::Assign(), sw::CheckAnchoredFlyConsistency(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwPosition::GetContentIndex(), SwNode::GetContentNode(), IDocumentLayoutAccess::GetCurrentLayout(), SwNode::GetDoc(), SwFormat::GetDoc(), SwDoc::getIDocumentLayoutAccess(), SwContentNode::getLayoutFrame(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwDoc::GetSpzFrameFormats(), SwFrameFormat::MakeFrames(), SwFormatAnchor::SetAnchor(), SwPosition::SetContent(), and SwFormat::SetFormatAttr().
Referenced by SwUndoRedlineDelete::InitHistory(), sw::DocumentContentOperationsManager::MoveNodeRange(), sw::DocumentContentOperationsManager::MoveRange(), and sw::DocumentContentOperationsManager::ReplaceRangeImpl().
void SaveFlyInRange | ( | const SwNodeRange & | rRg, |
SaveFlyArr & | rArr | ||
) |
Definition at line 106 of file docedt.cxx.
References SwNodeRange::aEnd, SwNodeRange::aStart, sw::FrameFormats< value_type >::begin(), sw::CheckAnchoredFlyConsistency(), sw::FrameFormats< value_type >::erase(), SwFormatAnchor::GetAnchorContentOffset(), SwFormatAnchor::GetAnchorId(), SwFormatAnchor::GetAnchorNode(), SwNode::GetDoc(), SwNodeIndex::GetIndex(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwDoc::GetSpzFrameFormats(), n, SwFormatAnchor::SetAnchor(), and sw::FrameFormats< value_type >::size().
Referenced by SwUndoRedlineDelete::InitHistory(), sw::DocumentContentOperationsManager::MoveNodeRange(), sw::DocumentContentOperationsManager::MoveRange(), and sw::DocumentContentOperationsManager::ReplaceRangeImpl().
void SaveFlyInRange | ( | const SwPaM & | rPam, |
const SwPosition & | rInsPos, | ||
SaveFlyArr & | rArr, | ||
bool | bMoveAllFlys, | ||
SwHistory * | pHistory = nullptr |
||
) |
Definition at line 136 of file docedt.cxx.
References SwHistory::AddChangeFlyAnchor(), SwPosition::Adjust(), AllMask, sw::FrameFormats< value_type >::begin(), sw::CheckAnchoredFlyConsistency(), CheckNoCntnt, SwFrameFormat::DelFrames(), SwPaM::End(), SwNode::EndOfSectionNode(), sw::FrameFormats< value_type >::erase(), SwFormat::GetAnchor(), SwFormatAnchor::GetAnchorId(), SwFormat::GetContent(), SwFormatAnchor::GetContentAnchor(), SwFormatContent::GetContentIdx(), SwPosition::GetContentIndex(), SwNode::GetDoc(), SwNode::GetIndex(), SwNodeIndex::GetNode(), SwPosition::GetNode(), SwPosition::GetNodeIndex(), SwPaM::GetPoint(), SwDoc::GetSpzFrameFormats(), SwNode::GetTextNode(), IsDestroyFrameAnchoredAtChar(), IsSelectFrameAnchoredAtPara(), SwNode::IsTextNode(), SwTextNode::Len(), n, SwFormatAnchor::SetAnchor(), SwFormat::SetFormatAttr(), sw::FrameFormats< value_type >::size(), and SwPaM::Start().