diff options
Diffstat (limited to 'src/plugins/cppeditor/cpprefactoringchanges.h')
-rw-r--r-- | src/plugins/cppeditor/cpprefactoringchanges.h | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/src/plugins/cppeditor/cpprefactoringchanges.h b/src/plugins/cppeditor/cpprefactoringchanges.h index a50631856a..2b4d09b9e5 100644 --- a/src/plugins/cppeditor/cpprefactoringchanges.h +++ b/src/plugins/cppeditor/cpprefactoringchanges.h @@ -27,6 +27,9 @@ #include "cppeditor_global.h" +#include "cppmodelmanager.h" +#include "cppworkingcopy.h" + #include <cplusplus/CppDocument.h> #include <texteditor/refactoringchanges.h> @@ -79,6 +82,26 @@ protected: friend class CppRefactoringChanges; // for access to constructor }; +class CPPEDITOR_EXPORT CppRefactoringChangesData : public TextEditor::RefactoringChangesData +{ +public: + explicit CppRefactoringChangesData(const CPlusPlus::Snapshot &snapshot); + + void indentSelection(const QTextCursor &selection, + const Utils::FilePath &filePath, + const TextEditor::TextDocument *textDocument) const override; + + void reindentSelection(const QTextCursor &selection, + const Utils::FilePath &filePath, + const TextEditor::TextDocument *textDocument) const override; + + void fileChanged(const Utils::FilePath &filePath) override; + + CPlusPlus::Snapshot m_snapshot; + CppModelManager *m_modelManager; + WorkingCopy m_workingCopy; +}; + class CPPEDITOR_EXPORT CppRefactoringChanges: public TextEditor::RefactoringChanges { public: |