Kate
Go to the documentation of this file.
20 #ifndef KATE_SCRIPT_DOCUMENT_H
21 #define KATE_SCRIPT_DOCUMENT_H
24 #include <QStringList>
25 #include <QtScript/QScriptable>
29 #include <QtScript/QScriptValue>
61 Q_INVOKABLE
QString highlightingMode();
62 Q_INVOKABLE
QStringList embeddedHighlightingModes();
64 Q_INVOKABLE
bool isModified();
66 Q_INVOKABLE
QString text(
int fromLine,
int fromColumn,
int toLine,
int toColumn);
69 Q_INVOKABLE
QString line(
int line);
70 Q_INVOKABLE
QString wordAt(
int line,
int column);
74 Q_INVOKABLE
QString charAt(
int line,
int column);
76 Q_INVOKABLE
QString firstChar(
int line);
77 Q_INVOKABLE
QString lastChar(
int line);
78 Q_INVOKABLE
bool isSpace(
int line,
int column);
80 Q_INVOKABLE
bool matchesAt(
int line,
int column,
const QString &s);
82 Q_INVOKABLE
bool setText(
const QString &s);
83 Q_INVOKABLE
bool clear();
84 Q_INVOKABLE
bool truncate(
int line,
int column);
86 Q_INVOKABLE
bool insertText(
int line,
int column,
const QString &s);
88 Q_INVOKABLE
bool removeText(
int fromLine,
int fromColumn,
int toLine,
int toColumn);
91 Q_INVOKABLE
bool insertLine(
int line,
const QString &s);
92 Q_INVOKABLE
bool removeLine(
int line);
93 Q_INVOKABLE
bool wrapLine(
int line,
int column);
95 Q_INVOKABLE
void joinLines(
int startLine,
int endLine);
96 Q_INVOKABLE
int lines();
97 Q_INVOKABLE
int length();
98 Q_INVOKABLE
int lineLength(
int line);
99 Q_INVOKABLE
void editBegin();
100 Q_INVOKABLE
void editEnd();
102 Q_INVOKABLE
int lastColumn(
int line);
103 Q_INVOKABLE
int prevNonSpaceColumn(
int line,
int column);
105 Q_INVOKABLE
int nextNonSpaceColumn(
int line,
int column);
107 Q_INVOKABLE
int prevNonEmptyLine(
int line);
108 Q_INVOKABLE
int nextNonEmptyLine(
int line);
109 Q_INVOKABLE
bool isInWord(
const QString &character,
int attribute);
110 Q_INVOKABLE
bool canBreakAt(
const QString &character,
int attribute);
111 Q_INVOKABLE
bool canComment(
int startAttribute,
int endAttribute);
112 Q_INVOKABLE
QString commentMarker(
int attribute);
113 Q_INVOKABLE
QString commentStart(
int attribute);
114 Q_INVOKABLE
QString commentEnd(
int attribute);
122 Q_INVOKABLE
int attribute(
int line,
int column);
128 Q_INVOKABLE
bool isAttribute(
int line,
int column,
int attr);
134 Q_INVOKABLE
QString attributeName(
int line,
int column);
140 Q_INVOKABLE
bool isAttributeName(
int line,
int column,
const QString &
name);
147 Q_INVOKABLE
int firstVirtualColumn(
int line);
148 Q_INVOKABLE
int lastVirtualColumn(
int line);
149 Q_INVOKABLE
int toVirtualColumn(
int line,
int column);
152 Q_INVOKABLE
int fromVirtualColumn(
int line,
int virtualColumn);
161 Q_INVOKABLE
int defStyleNum(
int line,
int column);
163 Q_INVOKABLE
bool isCode(
int line,
int column);
165 Q_INVOKABLE
bool isComment(
int line,
int column);
167 Q_INVOKABLE
bool isString(
int line,
int column);
169 Q_INVOKABLE
bool isRegionMarker(
int line,
int column);
171 Q_INVOKABLE
bool isChar(
int line,
int column);
173 Q_INVOKABLE
bool isOthers(
int line,
int column);
177 Q_INVOKABLE
bool startsWith (
int line,
const QString &
pattern,
bool skipWhiteSpaces);
178 Q_INVOKABLE
bool endsWith (
int line,
const QString &pattern,
bool skipWhiteSpaces);
184 bool _isCode(
int defaultStyle);
const char * name(StandardAction id)
#define KATEPART_TESTS_EXPORT
QString indent(QString text, int spaces)
QString pattern(Mode mode=Reading)
Thinish wrapping around KateDocument, exposing the methods we want exposed and adding some helper met...
KAction * clear(const QObject *recvr, const char *slot, QObject *parent)
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:52 by
doxygen 1.8.7 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.