83 for (std::unique_ptr<SwSortUndoElement>
const& pElement :
m_SortList)
90 USHRT_MAX != aMovedList.
GetPos(pSource) );
110 std::vector<SwNodeIndex> aIdxList;
115 for (std::unique_ptr<SwSortUndoElement>
const& pElement :
m_SortList)
157 for (std::unique_ptr<SwSortUndoElement>
const& pElement:
m_SortList)
164 USHRT_MAX != aMovedList.
GetPos( pTarget ) );
187 std::vector<SwNodeIndex> aIdxList;
228 m_SortList.push_back(std::make_unique<SwSortUndoElement>(rOrgPos, rNewPos));
233 m_SortList.push_back(std::make_unique<SwSortUndoElement>(nOrgPos, nNewPos));
virtual bool MoveNodeRange(SwNodeRange &, SwNode &, SwMoveFlags)=0
static SwTableNode * IsInTable(const SwNode &)
bool SortText(const SwPaM &, const SwSortOptions &)
Sort Text in the Document.
IDocumentContentOperations const & getIDocumentContentOperations() const
sal_uInt16 GetPos(const SwTableBox *pTableBox) const
void push_back(const SwTableBox *&rpTableBox)
void RestoreUpperFrames(SwNodes &rNds, SwNodeOffset nStt, SwNodeOffset nEnd)
Marks a node in the document model.
SwTextNode * GetTextNode()
Inline methods from Node.hxx.
SwNodeOffset GetIndex() const
PaM is Point and Mark: a selection of the document model.
SwNode & GetPointNode() const
const SwPosition * GetPoint() const
const SwPosition * Start() const
SwTableBox is one table cell in the document model.
const SwTable & GetTable() const
void DelFrames(SwRootFrame const *pLayout=nullptr)
Method deletes all views of document for the node.
SwTable is one table in the document model, containing rows (which contain cells).
const SwTableBox * GetTableBox(const OUString &rName, const bool bPerformValidCheck=false) const
SwTextNode is a paragraph in the document model.
const OUString & GetText() const
SwPaM & AddUndoRedoPaM(::sw::UndoRedoContext &, bool const bCorrToContent=false) const
void SetPaM(SwPaM &, bool bCorrToContent=false) const
virtual void RepeatImpl(::sw::RepeatContext &) override
virtual ~SwUndoSort() override
std::unique_ptr< SwSortOptions > m_pSortOptions
virtual void RedoImpl(::sw::UndoRedoContext &) override
virtual void UndoImpl(::sw::UndoRedoContext &) override
SwNodeOffset m_nTableNode
SwUndoSort(const SwPaM &, const SwSortOptions &)
void Insert(const OUString &rOrgPos, const OUString &rNewPos)
std::vector< std::unique_ptr< SwSortUndoElement > > m_SortList
std::unique_ptr< SwUndoAttrTable > m_pUndoAttrTable
static void RemoveIdxFromRange(SwPaM &rPam, bool bMoveNext)
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.
o3tl::strong_int< sal_Int32, struct Tag_SwNodeOffset > SwNodeOffset
void SetContent(sal_Int32 nContentIndex)
Set content index, only valid to call this if the position points to a SwContentNode subclass.