94 for (
const std::unique_ptr<SwSortUndoElement> &
i :
m_SortList)
97 *
i->SORT_TXT_TBL.TBL.pSource );
99 *
i->SORT_TXT_TBL.TBL.pTarget );
103 USHRT_MAX != aMovedList.
GetPos(pSource) );
123 std::vector<SwNodeIndex> aIdxList;
128 for (
const std::unique_ptr<SwSortUndoElement> & j :
m_SortList)
133 j->SORT_TXT_TBL.TXT.nTarget ) );
171 for (
const std::unique_ptr<SwSortUndoElement> &
i :
m_SortList)
174 *
i->SORT_TXT_TBL.TBL.pSource );
176 *
i->SORT_TXT_TBL.TBL.pTarget );
180 USHRT_MAX != aMovedList.
GetPos( pTarget ) );
203 std::vector<SwNodeIndex> aIdxList;
245 m_SortList.push_back(std::make_unique< SwSortUndoElement>(rOrgPos, rNewPos));
250 m_SortList.push_back(std::make_unique<SwSortUndoElement>(nOrgPos, nNewPos));
SwUndoSort(const SwPaM &, const SwSortOptions &)
SwPaM & AddUndoRedoPaM(::sw::UndoRedoContext &, bool const bCorrToContent=false) const
SwNode & GetNode(bool bPoint=true) const
const SwTableBox * GetTableBox(const OUString &rName, const bool bPerformValidCheck=false) const
void DelFrames(SwRootFrame const *pLayout=nullptr)
Method deletes all views of document for the node.
const OUString & GetText() const
static void RemoveIdxFromSection(SwDoc &, SwNodeOffset nSttIdx, const SwNodeOffset *pEndIdx=nullptr)
void MoveCell(SwDoc *pDoc, const SwTableBox *pSource, const SwTableBox *pTar, bool bMovedBefore, SwUndoSort *pUD)
Move a single Cell.
union SwSortUndoElement::@9 SORT_TXT_TBL
virtual ~SwUndoSort() override
virtual void RepeatImpl(::sw::RepeatContext &) override
IDocumentContentOperations const & getIDocumentContentOperations() const
virtual void UndoImpl(::sw::UndoRedoContext &) override
sal_uInt16 GetPos(const SwTableBox *pTableBox) const
virtual void RedoImpl(::sw::UndoRedoContext &) override
const SwTable & GetTable() const
void push_back(const SwTableBox *&rpTableBox)
void Insert(const OUString &rOrgPos, const OUString &rNewPos)
static void RemoveIdxFromRange(SwPaM &rPam, bool bMoveNext)
bool SortText(const SwPaM &, const SwSortOptions &)
Sort Text in the Document.
PaM is Point and Mark: a selection of the document model.
const SwPosition * GetPoint() const
std::vector< std::unique_ptr< SwSortUndoElement > > m_SortList
SwNodeOffset GetIndex() const
Marks a node in the document model.
virtual bool MoveNodeRange(SwNodeRange &, SwNodeIndex &, SwMoveFlags)=0
SwTable is one table in the document model, containing rows (which contain cells).
const SwPosition * Start() const
SwTextNode is a paragraph in the document model.
void SetPaM(SwPaM &, bool bCorrToContent=false) const
SwTableNode * IsIdxInTable(const SwNodeIndex &rIdx)
SwNodeOffset m_nTableNode
SwTableBox is one table cell in the document model.
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
void RestoreUpperFrames(SwNodes &rNds, SwNodeOffset nStt, SwNodeOffset nEnd)
std::unique_ptr< SwSortOptions > m_pSortOptions
std::unique_ptr< SwUndoAttrTable > m_pUndoAttrTable
SwTextNode * GetTextNode()
Inline methods from Node.hxx.