forked from qt-creator/qt-creator
CppTools: CppHighlightingSupport takes a BaseTextDocument
...instead an ITextEditor. The ITextEditor was only used to access the file path and QTextDocument via the BaseTextEditorWidget. Change-Id: Idef2b8162b992fe3718e16e2a046e2ff214846f2 Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
This commit is contained in:
@@ -47,7 +47,7 @@
|
||||
namespace Core { class IEditor; }
|
||||
namespace CPlusPlus { class LookupContext; }
|
||||
namespace ProjectExplorer { class Project; }
|
||||
namespace TextEditor { class BaseTextEditor; class BlockRange; }
|
||||
namespace TextEditor { class BaseTextEditor; class BaseTextDocument; class BlockRange; }
|
||||
namespace Utils { class FileName; }
|
||||
|
||||
namespace CppTools {
|
||||
@@ -260,7 +260,8 @@ public:
|
||||
virtual void addModelManagerSupport(ModelManagerSupport *modelManagerSupport) = 0;
|
||||
virtual ModelManagerSupport *modelManagerSupportForMimeType(const QString &mimeType) const = 0;
|
||||
virtual CppCompletionAssistProvider *completionAssistProvider(const QString &mimeType) const = 0;
|
||||
virtual CppHighlightingSupport *highlightingSupport(Core::IEditor *editor) const = 0;
|
||||
virtual CppHighlightingSupport *highlightingSupport(
|
||||
TextEditor::BaseTextDocument *baseTextDocument) const = 0;
|
||||
|
||||
virtual void setIndexingSupport(CppTools::CppIndexingSupport *indexingSupport) = 0;
|
||||
virtual CppIndexingSupport *indexingSupport() = 0;
|
||||
|
||||
Reference in New Issue
Block a user