Commit 7c050eb4 authored by hjk's avatar hjk
Browse files

basetextdocument.h: code cosmetics

parent 5710fed5
...@@ -44,9 +44,6 @@ class QTextDocument; ...@@ -44,9 +44,6 @@ class QTextDocument;
QT_END_NAMESPACE QT_END_NAMESPACE
namespace TextEditor { namespace TextEditor {
namespace Internal {
class DocumentMarker;
}
class ITextMarkable; class ITextMarkable;
class StorageSettings; class StorageSettings;
...@@ -73,7 +70,7 @@ public: ...@@ -73,7 +70,7 @@ public:
ITextMarkable *documentMarker() const; ITextMarkable *documentMarker() const;
//IFile // IFile implementation.
virtual bool save(const QString &fileName = QString()); virtual bool save(const QString &fileName = QString());
virtual QString fileName() const; virtual QString fileName() const;
virtual bool isReadOnly() const; virtual bool isReadOnly() const;
...@@ -99,22 +96,20 @@ public: ...@@ -99,22 +96,20 @@ public:
void setSyntaxHighlighter(SyntaxHighlighter *highlighter); void setSyntaxHighlighter(SyntaxHighlighter *highlighter);
SyntaxHighlighter *syntaxHighlighter() const; SyntaxHighlighter *syntaxHighlighter() const;
bool hasDecodingError() const; bool hasDecodingError() const;
QTextCodec *codec() const; QTextCodec *codec() const;
void setCodec(QTextCodec *c); void setCodec(QTextCodec *c);
QByteArray decodingErrorSample() const; QByteArray decodingErrorSample() const;
void reload(QTextCodec *codec); void reload(QTextCodec *codec);
void cleanWhitespace(const QTextCursor &cursor); void cleanWhitespace(const QTextCursor &cursor);
signals: signals:
void titleChanged(QString title); void titleChanged(QString title);
private: private:
void cleanWhitespace(QTextCursor& cursor, bool cleanIndentation, bool inEntireDocument); void cleanWhitespace(QTextCursor &cursor, bool cleanIndentation, bool inEntireDocument);
void ensureFinalNewLine(QTextCursor& cursor); void ensureFinalNewLine(QTextCursor &cursor);
void documentClosing(); void documentClosing();
BaseTextDocumentPrivate *d; BaseTextDocumentPrivate *d;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment