KateScriptDocument
#include <katescriptdocument.h>
Additional Inherited Members | |
Public Types inherited from QObject | |
typedef | QObjectList |
Properties inherited from QObject | |
objectName | |
Static Public Member Functions inherited from QObject | |
QMetaObject::Connection | connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type) |
QMetaObject::Connection | connect (const QObject *sender, PointerToMemberFunction signal, Functor functor) |
bool | disconnect (const QMetaObject::Connection &connection) |
bool | disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method) |
bool | disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method) |
bool | disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method) |
QString | tr (const char *sourceText, const char *disambiguation, int n) |
Protected Member Functions inherited from QObject | |
virtual void | childEvent (QChildEvent *event) |
virtual void | connectNotify (const QMetaMethod &signal) |
virtual void | customEvent (QEvent *event) |
virtual void | disconnectNotify (const QMetaMethod &signal) |
bool | isSignalConnected (const QMetaMethod &signal) const const |
int | receivers (const char *signal) const const |
QObject * | sender () const const |
int | senderSignalIndex () const const |
virtual void | timerEvent (QTimerEvent *event) |
Detailed Description
Thinish wrapping around KTextEditor::DocumentPrivate, exposing the methods we want exposed and adding some helper methods.
setDocument must be called before using any other method. This is not checked for the sake of speed.
Definition at line 33 of file katescriptdocument.h.
Constructor & Destructor Documentation
◆ KateScriptDocument()
Definition at line 22 of file katescriptdocument.cpp.
Member Function Documentation
◆ anchor() [1/3]
Definition at line 309 of file katescriptdocument.cpp.
◆ anchor() [2/3]
Definition at line 304 of file katescriptdocument.cpp.
◆ anchor() [3/3]
KTextEditor::Cursor KateScriptDocument::anchor | ( | KTextEditor::Cursor | cursor, |
QChar | character ) |
Definition at line 299 of file katescriptdocument.cpp.
◆ anchorInternal()
KTextEditor::Cursor KateScriptDocument::anchorInternal | ( | int | line, |
int | column, | ||
QChar | character ) |
Definition at line 247 of file katescriptdocument.cpp.
◆ attribute() [1/2]
int KateScriptDocument::attribute | ( | const QJSValue & | jscursor | ) |
Definition at line 726 of file katescriptdocument.cpp.
◆ attribute() [2/2]
int KateScriptDocument::attribute | ( | int | line, |
int | column ) |
Get the syntax highlighting attribute at a given position in the document.
Definition at line 720 of file katescriptdocument.cpp.
◆ attributeName() [1/2]
Definition at line 748 of file katescriptdocument.cpp.
◆ attributeName() [2/2]
QString KateScriptDocument::attributeName | ( | int | line, |
int | column ) |
Get the name of the syntax highlighting attribute at the given position.
Definition at line 743 of file katescriptdocument.cpp.
◆ canBreakAt()
bool KateScriptDocument::canBreakAt | ( | const QString & | character, |
int | attribute ) |
Definition at line 685 of file katescriptdocument.cpp.
◆ canComment()
bool KateScriptDocument::canComment | ( | int | startAttribute, |
int | endAttribute ) |
Definition at line 690 of file katescriptdocument.cpp.
◆ charAt() [1/2]
Definition at line 437 of file katescriptdocument.cpp.
◆ charAt() [2/2]
QString KateScriptDocument::charAt | ( | int | line, |
int | column ) |
Definition at line 430 of file katescriptdocument.cpp.
◆ clear()
bool KateScriptDocument::clear | ( | ) |
Definition at line 488 of file katescriptdocument.cpp.
◆ commentEnd()
QString KateScriptDocument::commentEnd | ( | int | attribute | ) |
Definition at line 705 of file katescriptdocument.cpp.
◆ commentMarker()
QString KateScriptDocument::commentMarker | ( | int | attribute | ) |
Definition at line 695 of file katescriptdocument.cpp.
◆ commentStart()
QString KateScriptDocument::commentStart | ( | int | attribute | ) |
Definition at line 700 of file katescriptdocument.cpp.
◆ defStyleNum() [1/2]
int KateScriptDocument::defStyleNum | ( | const QJSValue & | cursor | ) |
Definition at line 44 of file katescriptdocument.cpp.
◆ defStyleNum() [2/2]
int KateScriptDocument::defStyleNum | ( | int | line, |
int | column ) |
Definition at line 39 of file katescriptdocument.cpp.
◆ document()
KTextEditor::DocumentPrivate * KateScriptDocument::document | ( | ) |
Definition at line 34 of file katescriptdocument.cpp.
◆ documentEnd()
QJSValue KateScriptDocument::documentEnd | ( | ) |
Definition at line 715 of file katescriptdocument.cpp.
◆ documentRange()
QJSValue KateScriptDocument::documentRange | ( | ) |
Definition at line 710 of file katescriptdocument.cpp.
◆ editBegin()
void KateScriptDocument::editBegin | ( | ) |
Definition at line 600 of file katescriptdocument.cpp.
◆ editEnd()
void KateScriptDocument::editEnd | ( | ) |
Definition at line 605 of file katescriptdocument.cpp.
◆ embeddedHighlightingModes()
QStringList KateScriptDocument::embeddedHighlightingModes | ( | ) |
Definition at line 362 of file katescriptdocument.cpp.
◆ encoding()
QString KateScriptDocument::encoding | ( | ) |
Definition at line 352 of file katescriptdocument.cpp.
◆ endsWith()
bool KateScriptDocument::endsWith | ( | int | line, |
const QString & | pattern, | ||
bool | skipWhiteSpaces ) |
Definition at line 326 of file katescriptdocument.cpp.
◆ fileName()
QString KateScriptDocument::fileName | ( | ) |
Definition at line 337 of file katescriptdocument.cpp.
◆ findTouchedLine()
int KateScriptDocument::findTouchedLine | ( | int | startLine, |
bool | down ) |
Definition at line 585 of file katescriptdocument.cpp.
◆ firstChar()
QString KateScriptDocument::firstChar | ( | int | line | ) |
Definition at line 443 of file katescriptdocument.cpp.
◆ firstColumn()
int KateScriptDocument::firstColumn | ( | int | line | ) |
Definition at line 620 of file katescriptdocument.cpp.
◆ firstVirtualColumn()
int KateScriptDocument::firstVirtualColumn | ( | int | line | ) |
Definition at line 121 of file katescriptdocument.cpp.
◆ fromVirtualColumn() [1/2]
int KateScriptDocument::fromVirtualColumn | ( | const QJSValue & | jscursor | ) |
Definition at line 180 of file katescriptdocument.cpp.
◆ fromVirtualColumn() [2/2]
int KateScriptDocument::fromVirtualColumn | ( | int | line, |
int | virtualColumn ) |
Definition at line 170 of file katescriptdocument.cpp.
◆ fromVirtualCursor() [1/2]
Definition at line 192 of file katescriptdocument.cpp.
◆ fromVirtualCursor() [2/2]
QJSValue KateScriptDocument::fromVirtualCursor | ( | int | line, |
int | column ) |
Definition at line 186 of file katescriptdocument.cpp.
◆ highlightingMode()
QString KateScriptDocument::highlightingMode | ( | ) |
Definition at line 357 of file katescriptdocument.cpp.
◆ highlightingModeAt()
Definition at line 367 of file katescriptdocument.cpp.
◆ indent()
void KateScriptDocument::indent | ( | const QJSValue & | jsrange, |
int | change ) |
Definition at line 782 of file katescriptdocument.cpp.
◆ insertLine()
bool KateScriptDocument::insertLine | ( | int | line, |
const QString & | s ) |
Definition at line 539 of file katescriptdocument.cpp.
◆ insertText() [1/2]
Definition at line 514 of file katescriptdocument.cpp.
◆ insertText() [2/2]
bool KateScriptDocument::insertText | ( | int | line, |
int | column, | ||
const QString & | s ) |
Definition at line 508 of file katescriptdocument.cpp.
◆ isAttribute() [1/2]
bool KateScriptDocument::isAttribute | ( | const QJSValue & | jscursor, |
int | attr ) |
Definition at line 737 of file katescriptdocument.cpp.
◆ isAttribute() [2/2]
bool KateScriptDocument::isAttribute | ( | int | line, |
int | column, | ||
int | attr ) |
Return true if the highlight attribute equals attr
.
Definition at line 732 of file katescriptdocument.cpp.
◆ isAttributeName() [1/2]
Definition at line 759 of file katescriptdocument.cpp.
◆ isAttributeName() [2/2]
bool KateScriptDocument::isAttributeName | ( | int | line, |
int | column, | ||
const QString & | name ) |
Return true is the name of the syntax attribute equals name
.
Definition at line 754 of file katescriptdocument.cpp.
◆ isChar() [1/2]
bool KateScriptDocument::isChar | ( | const QJSValue & | cursor | ) |
Definition at line 103 of file katescriptdocument.cpp.
◆ isChar() [2/2]
bool KateScriptDocument::isChar | ( | int | line, |
int | column ) |
Definition at line 97 of file katescriptdocument.cpp.
◆ isCode() [1/2]
bool KateScriptDocument::isCode | ( | const QJSValue & | cursor | ) |
Definition at line 56 of file katescriptdocument.cpp.
◆ isCode() [2/2]
bool KateScriptDocument::isCode | ( | int | line, |
int | column ) |
Definition at line 50 of file katescriptdocument.cpp.
◆ isComment() [1/2]
bool KateScriptDocument::isComment | ( | const QJSValue & | cursor | ) |
Definition at line 67 of file katescriptdocument.cpp.
◆ isComment() [2/2]
bool KateScriptDocument::isComment | ( | int | line, |
int | column ) |
Definition at line 62 of file katescriptdocument.cpp.
◆ isInWord()
bool KateScriptDocument::isInWord | ( | const QString & | character, |
int | attribute ) |
Definition at line 680 of file katescriptdocument.cpp.
◆ isLineModified()
bool KateScriptDocument::isLineModified | ( | int | line | ) |
Definition at line 570 of file katescriptdocument.cpp.
◆ isLineSaved()
bool KateScriptDocument::isLineSaved | ( | int | line | ) |
Definition at line 575 of file katescriptdocument.cpp.
◆ isLineTouched()
bool KateScriptDocument::isLineTouched | ( | int | line | ) |
Definition at line 580 of file katescriptdocument.cpp.
◆ isModified()
bool KateScriptDocument::isModified | ( | ) |
Definition at line 372 of file katescriptdocument.cpp.
◆ isOthers() [1/2]
bool KateScriptDocument::isOthers | ( | const QJSValue & | cursor | ) |
Definition at line 115 of file katescriptdocument.cpp.
◆ isOthers() [2/2]
bool KateScriptDocument::isOthers | ( | int | line, |
int | column ) |
Definition at line 109 of file katescriptdocument.cpp.
◆ isRegionMarker() [1/2]
bool KateScriptDocument::isRegionMarker | ( | const QJSValue & | cursor | ) |
Definition at line 91 of file katescriptdocument.cpp.
◆ isRegionMarker() [2/2]
bool KateScriptDocument::isRegionMarker | ( | int | line, |
int | column ) |
Definition at line 85 of file katescriptdocument.cpp.
◆ isSpace() [1/2]
bool KateScriptDocument::isSpace | ( | const QJSValue & | jscursor | ) |
Definition at line 465 of file katescriptdocument.cpp.
◆ isSpace() [2/2]
bool KateScriptDocument::isSpace | ( | int | line, |
int | column ) |
Definition at line 459 of file katescriptdocument.cpp.
◆ isString() [1/2]
bool KateScriptDocument::isString | ( | const QJSValue & | cursor | ) |
Definition at line 79 of file katescriptdocument.cpp.
◆ isString() [2/2]
bool KateScriptDocument::isString | ( | int | line, |
int | column ) |
Definition at line 73 of file katescriptdocument.cpp.
◆ isValidTextPosition() [1/2]
bool KateScriptDocument::isValidTextPosition | ( | const QJSValue & | cursor | ) |
Definition at line 615 of file katescriptdocument.cpp.
◆ isValidTextPosition() [2/2]
bool KateScriptDocument::isValidTextPosition | ( | int | line, |
int | column ) |
Definition at line 610 of file katescriptdocument.cpp.
◆ joinLines()
void KateScriptDocument::joinLines | ( | int | startLine, |
int | endLine ) |
Definition at line 560 of file katescriptdocument.cpp.
◆ lastChar()
QString KateScriptDocument::lastChar | ( | int | line | ) |
Definition at line 451 of file katescriptdocument.cpp.
◆ lastColumn()
int KateScriptDocument::lastColumn | ( | int | line | ) |
Definition at line 626 of file katescriptdocument.cpp.
◆ lastVirtualColumn()
int KateScriptDocument::lastVirtualColumn | ( | int | line | ) |
Definition at line 131 of file katescriptdocument.cpp.
◆ length()
int KateScriptDocument::length | ( | ) |
Definition at line 590 of file katescriptdocument.cpp.
◆ line()
QString KateScriptDocument::line | ( | int | line | ) |
Definition at line 401 of file katescriptdocument.cpp.
◆ lineLength()
int KateScriptDocument::lineLength | ( | int | line | ) |
Definition at line 595 of file katescriptdocument.cpp.
◆ lines()
int KateScriptDocument::lines | ( | ) |
Definition at line 565 of file katescriptdocument.cpp.
◆ matchesAt() [1/2]
Definition at line 477 of file katescriptdocument.cpp.
◆ matchesAt() [2/2]
bool KateScriptDocument::matchesAt | ( | int | line, |
int | column, | ||
const QString & | s ) |
Definition at line 471 of file katescriptdocument.cpp.
◆ mimeType()
QString KateScriptDocument::mimeType | ( | ) |
Definition at line 347 of file katescriptdocument.cpp.
◆ nextNonEmptyLine()
int KateScriptDocument::nextNonEmptyLine | ( | int | line | ) |
Definition at line 668 of file katescriptdocument.cpp.
◆ nextNonSpaceColumn() [1/2]
int KateScriptDocument::nextNonSpaceColumn | ( | const QJSValue & | jscursor | ) |
Definition at line 650 of file katescriptdocument.cpp.
◆ nextNonSpaceColumn() [2/2]
int KateScriptDocument::nextNonSpaceColumn | ( | int | line, |
int | column ) |
Definition at line 644 of file katescriptdocument.cpp.
◆ prevNonEmptyLine()
int KateScriptDocument::prevNonEmptyLine | ( | int | line | ) |
Definition at line 656 of file katescriptdocument.cpp.
◆ prevNonSpaceColumn() [1/2]
int KateScriptDocument::prevNonSpaceColumn | ( | const QJSValue & | jscursor | ) |
Definition at line 638 of file katescriptdocument.cpp.
◆ prevNonSpaceColumn() [2/2]
int KateScriptDocument::prevNonSpaceColumn | ( | int | line, |
int | column ) |
Definition at line 632 of file katescriptdocument.cpp.
◆ removeLine()
bool KateScriptDocument::removeLine | ( | int | line | ) |
Definition at line 544 of file katescriptdocument.cpp.
◆ removeText() [1/3]
Definition at line 526 of file katescriptdocument.cpp.
◆ removeText() [2/3]
bool KateScriptDocument::removeText | ( | const QJSValue & | range | ) |
Definition at line 533 of file katescriptdocument.cpp.
◆ removeText() [3/3]
bool KateScriptDocument::removeText | ( | int | fromLine, |
int | fromColumn, | ||
int | toLine, | ||
int | toColumn ) |
Definition at line 520 of file katescriptdocument.cpp.
◆ rfind() [1/3]
QJSValue KateScriptDocument::rfind | ( | const QJSValue & | cursor, |
const QString & | text, | ||
int | attribute = -1 ) |
Definition at line 241 of file katescriptdocument.cpp.
◆ rfind() [2/3]
QJSValue KateScriptDocument::rfind | ( | int | line, |
int | column, | ||
const QString & | text, | ||
int | attribute = -1 ) |
Definition at line 236 of file katescriptdocument.cpp.
◆ rfind() [3/3]
KTextEditor::Cursor KateScriptDocument::rfind | ( | KTextEditor::Cursor | cursor, |
const QString & | text, | ||
int | attribute = -1 ) |
Definition at line 231 of file katescriptdocument.cpp.
◆ rfindInternal()
KTextEditor::Cursor KateScriptDocument::rfindInternal | ( | int | line, |
int | column, | ||
const QString & | text, | ||
int | attribute = -1 ) |
Definition at line 198 of file katescriptdocument.cpp.
◆ setDocument()
void KateScriptDocument::setDocument | ( | KTextEditor::DocumentPrivate * | document | ) |
Definition at line 29 of file katescriptdocument.cpp.
◆ setText()
bool KateScriptDocument::setText | ( | const QString & | s | ) |
Definition at line 483 of file katescriptdocument.cpp.
◆ setVariable()
Definition at line 770 of file katescriptdocument.cpp.
◆ startsWith()
bool KateScriptDocument::startsWith | ( | int | line, |
const QString & | pattern, | ||
bool | skipWhiteSpaces ) |
Definition at line 315 of file katescriptdocument.cpp.
◆ text() [1/4]
QString KateScriptDocument::text | ( | ) |
Definition at line 377 of file katescriptdocument.cpp.
◆ text() [2/4]
Definition at line 388 of file katescriptdocument.cpp.
◆ text() [3/4]
Definition at line 395 of file katescriptdocument.cpp.
◆ text() [4/4]
QString KateScriptDocument::text | ( | int | fromLine, |
int | fromColumn, | ||
int | toLine, | ||
int | toColumn ) |
Definition at line 382 of file katescriptdocument.cpp.
◆ toVirtualColumn() [1/2]
int KateScriptDocument::toVirtualColumn | ( | const QJSValue & | cursor | ) |
Definition at line 152 of file katescriptdocument.cpp.
◆ toVirtualColumn() [2/2]
int KateScriptDocument::toVirtualColumn | ( | int | line, |
int | column ) |
Definition at line 142 of file katescriptdocument.cpp.
◆ toVirtualCursor() [1/2]
Definition at line 164 of file katescriptdocument.cpp.
◆ toVirtualCursor() [2/2]
QJSValue KateScriptDocument::toVirtualCursor | ( | int | line, |
int | column ) |
Definition at line 158 of file katescriptdocument.cpp.
◆ truncate() [1/2]
bool KateScriptDocument::truncate | ( | const QJSValue & | jscursor | ) |
Definition at line 502 of file katescriptdocument.cpp.
◆ truncate() [2/2]
bool KateScriptDocument::truncate | ( | int | line, |
int | column ) |
Definition at line 493 of file katescriptdocument.cpp.
◆ url()
QString KateScriptDocument::url | ( | ) |
Definition at line 342 of file katescriptdocument.cpp.
◆ variable()
Definition at line 765 of file katescriptdocument.cpp.
◆ wordAt() [1/2]
Definition at line 412 of file katescriptdocument.cpp.
◆ wordAt() [2/2]
QString KateScriptDocument::wordAt | ( | int | line, |
int | column ) |
Definition at line 406 of file katescriptdocument.cpp.
◆ wordRangeAt() [1/2]
Definition at line 424 of file katescriptdocument.cpp.
◆ wordRangeAt() [2/2]
QJSValue KateScriptDocument::wordRangeAt | ( | int | line, |
int | column ) |
Definition at line 418 of file katescriptdocument.cpp.
◆ wrapLine() [1/2]
bool KateScriptDocument::wrapLine | ( | const QJSValue & | cursor | ) |
Definition at line 554 of file katescriptdocument.cpp.
◆ wrapLine() [2/2]
bool KateScriptDocument::wrapLine | ( | int | line, |
int | column ) |
Definition at line 549 of file katescriptdocument.cpp.
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 29 2024 11:53:45 by doxygen 1.12.0 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.