LibreOffice Module sc (master)  1
undosort.hxx
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
2 /*
3  * This file is part of the LibreOffice project.
4  *
5  * This Source Code Form is subject to the terms of the Mozilla Public
6  * License, v. 2.0. If a copy of the MPL was not distributed with this
7  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
8  */
9 
10 #ifndef INCLUDED_SC_UNDOSORT_HXX
11 #define INCLUDED_SC_UNDOSORT_HXX
12 
13 #include "undobase.hxx"
14 #include <sortparam.hxx>
15 
16 namespace sc {
17 
18 class UndoSort : public ScSimpleUndo
19 {
21 
22 public:
23  UndoSort( ScDocShell* pDocSh, const ReorderParam& rParam );
24 
25  virtual OUString GetComment() const override;
26  virtual void Undo() override;
27  virtual void Redo() override;
28 
29 private:
30  void Execute( bool bUndo );
31 };
32 
33 }
34 
35 #endif
36 
37 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */
virtual void Redo() override
Definition: undosort.cxx:33
UndoSort(ScDocShell *pDocSh, const ReorderParam &rParam)
Definition: undosort.cxx:18
virtual void Undo() override
Definition: undosort.cxx:26
ReorderParam maParam
Definition: undosort.hxx:20
virtual OUString GetComment() const override
Definition: undosort.cxx:21
void Execute(bool bUndo)
Definition: undosort.cxx:40