diff --git a/src/plugins/texteditor/basetextdocument.h b/src/plugins/texteditor/basetextdocument.h index 37b43407d6f..f5f9682b419 100644 --- a/src/plugins/texteditor/basetextdocument.h +++ b/src/plugins/texteditor/basetextdocument.h @@ -44,9 +44,6 @@ class QTextDocument; QT_END_NAMESPACE namespace TextEditor { -namespace Internal { -class DocumentMarker; -} class ITextMarkable; class StorageSettings; @@ -73,7 +70,7 @@ public: ITextMarkable *documentMarker() const; - //IFile + // IFile implementation. virtual bool save(const QString &fileName = QString()); virtual QString fileName() const; virtual bool isReadOnly() const; @@ -99,22 +96,20 @@ public: void setSyntaxHighlighter(SyntaxHighlighter *highlighter); SyntaxHighlighter *syntaxHighlighter() const; - bool hasDecodingError() const; QTextCodec *codec() const; void setCodec(QTextCodec *c); QByteArray decodingErrorSample() const; void reload(QTextCodec *codec); - void cleanWhitespace(const QTextCursor &cursor); signals: void titleChanged(QString title); private: - void cleanWhitespace(QTextCursor& cursor, bool cleanIndentation, bool inEntireDocument); - void ensureFinalNewLine(QTextCursor& cursor); + void cleanWhitespace(QTextCursor &cursor, bool cleanIndentation, bool inEntireDocument); + void ensureFinalNewLine(QTextCursor &cursor); void documentClosing(); BaseTextDocumentPrivate *d;