KateScriptDocument

Search for usage in LXR

KateScriptDocument Class Reference

#include <katescriptdocument.h>

Inheritance diagram for KateScriptDocument:

Public Member Functions

 KateScriptDocument (QJSEngine *, QObject *parent=nullptr)
 
Q_INVOKABLE QJSValue anchor (const QJSValue &cursor, QChar character)
 
Q_INVOKABLE QJSValue anchor (int line, int column, QChar character)
 
KTextEditor::Cursor anchor (KTextEditor::Cursor cursor, QChar character)
 
KTextEditor::Cursor anchorInternal (int line, int column, QChar character)
 
Q_INVOKABLE int attribute (const QJSValue &jscursor)
 
Q_INVOKABLE int attribute (int line, int column)
 
Q_INVOKABLE QString attributeName (const QJSValue &jscursor)
 
Q_INVOKABLE QString attributeName (int line, int column)
 
Q_INVOKABLE bool canBreakAt (const QString &character, int attribute)
 
Q_INVOKABLE bool canComment (int startAttribute, int endAttribute)
 
Q_INVOKABLE QString charAt (const QJSValue &jscursor)
 
Q_INVOKABLE QString charAt (int line, int column)
 
Q_INVOKABLE bool clear ()
 
Q_INVOKABLE QString commentEnd (int attribute)
 
Q_INVOKABLE QString commentMarker (int attribute)
 
Q_INVOKABLE QString commentStart (int attribute)
 
Q_INVOKABLE int defStyleNum (const QJSValue &cursor)
 
Q_INVOKABLE int defStyleNum (int line, int column)
 
KTextEditor::DocumentPrivatedocument ()
 
Q_INVOKABLE QJSValue documentEnd ()
 
Q_INVOKABLE QJSValue documentRange ()
 
Q_INVOKABLE void editBegin ()
 
Q_INVOKABLE void editEnd ()
 
Q_INVOKABLE QStringList embeddedHighlightingModes ()
 
Q_INVOKABLE QString encoding ()
 
Q_INVOKABLE bool endsWith (int line, const QString &pattern, bool skipWhiteSpaces)
 
Q_INVOKABLE QString fileName ()
 
Q_INVOKABLE int findTouchedLine (int startLine, bool down)
 
Q_INVOKABLE QString firstChar (int line)
 
Q_INVOKABLE int firstColumn (int line)
 
Q_INVOKABLE int firstVirtualColumn (int line)
 
Q_INVOKABLE int fromVirtualColumn (const QJSValue &jscursor)
 
Q_INVOKABLE int fromVirtualColumn (int line, int virtualColumn)
 
Q_INVOKABLE QJSValue fromVirtualCursor (const QJSValue &jscursor)
 
Q_INVOKABLE QJSValue fromVirtualCursor (int line, int column)
 
Q_INVOKABLE QString highlightingMode ()
 
Q_INVOKABLE QString highlightingModeAt (const QJSValue &pos)
 
Q_INVOKABLE void indent (const QJSValue &jsrange, int change)
 
Q_INVOKABLE bool insertLine (int line, const QString &s)
 
Q_INVOKABLE bool insertText (const QJSValue &jscursor, const QString &s)
 
Q_INVOKABLE bool insertText (int line, int column, const QString &s)
 
Q_INVOKABLE bool isAttribute (const QJSValue &jscursor, int attr)
 
Q_INVOKABLE bool isAttribute (int line, int column, int attr)
 
Q_INVOKABLE bool isAttributeName (const QJSValue &cursor, const QString &name)
 
Q_INVOKABLE bool isAttributeName (int line, int column, const QString &name)
 
Q_INVOKABLE bool isChar (const QJSValue &cursor)
 
Q_INVOKABLE bool isChar (int line, int column)
 
Q_INVOKABLE bool isCode (const QJSValue &cursor)
 
Q_INVOKABLE bool isCode (int line, int column)
 
Q_INVOKABLE bool isComment (const QJSValue &cursor)
 
Q_INVOKABLE bool isComment (int line, int column)
 
Q_INVOKABLE bool isInWord (const QString &character, int attribute)
 
Q_INVOKABLE bool isLineModified (int line)
 
Q_INVOKABLE bool isLineSaved (int line)
 
Q_INVOKABLE bool isLineTouched (int line)
 
Q_INVOKABLE bool isModified ()
 
Q_INVOKABLE bool isOthers (const QJSValue &cursor)
 
Q_INVOKABLE bool isOthers (int line, int column)
 
Q_INVOKABLE bool isRegionMarker (const QJSValue &cursor)
 
Q_INVOKABLE bool isRegionMarker (int line, int column)
 
Q_INVOKABLE bool isSpace (const QJSValue &jscursor)
 
Q_INVOKABLE bool isSpace (int line, int column)
 
Q_INVOKABLE bool isString (const QJSValue &cursor)
 
Q_INVOKABLE bool isString (int line, int column)
 
Q_INVOKABLE bool isValidTextPosition (const QJSValue &cursor)
 
Q_INVOKABLE bool isValidTextPosition (int line, int column)
 
Q_INVOKABLE void joinLines (int startLine, int endLine)
 
Q_INVOKABLE QString lastChar (int line)
 
Q_INVOKABLE int lastColumn (int line)
 
Q_INVOKABLE int lastVirtualColumn (int line)
 
Q_INVOKABLE int length ()
 
Q_INVOKABLE QString line (int line)
 
Q_INVOKABLE int lineLength (int line)
 
Q_INVOKABLE int lines ()
 
Q_INVOKABLE bool matchesAt (const QJSValue &cursor, const QString &s)
 
Q_INVOKABLE bool matchesAt (int line, int column, const QString &s)
 
Q_INVOKABLE QString mimeType ()
 
Q_INVOKABLE int nextNonEmptyLine (int line)
 
Q_INVOKABLE int nextNonSpaceColumn (const QJSValue &jscursor)
 
Q_INVOKABLE int nextNonSpaceColumn (int line, int column)
 
Q_INVOKABLE int prevNonEmptyLine (int line)
 
Q_INVOKABLE int prevNonSpaceColumn (const QJSValue &jscursor)
 
Q_INVOKABLE int prevNonSpaceColumn (int line, int column)
 
Q_INVOKABLE bool removeLine (int line)
 
Q_INVOKABLE bool removeText (const QJSValue &jsfrom, const QJSValue &jsto)
 
Q_INVOKABLE bool removeText (const QJSValue &range)
 
Q_INVOKABLE bool removeText (int fromLine, int fromColumn, int toLine, int toColumn)
 
Q_INVOKABLE QJSValue rfind (const QJSValue &cursor, const QString &text, int attribute=-1)
 
Q_INVOKABLE QJSValue rfind (int line, int column, const QString &text, int attribute=-1)
 
KTextEditor::Cursor rfind (KTextEditor::Cursor cursor, const QString &text, int attribute=-1)
 
KTextEditor::Cursor rfindInternal (int line, int column, const QString &text, int attribute=-1)
 
void setDocument (KTextEditor::DocumentPrivate *document)
 
Q_INVOKABLE bool setText (const QString &s)
 
Q_INVOKABLE void setVariable (const QString &s, const QString &v)
 
Q_INVOKABLE bool startsWith (int line, const QString &pattern, bool skipWhiteSpaces)
 
Q_INVOKABLE QString text ()
 
Q_INVOKABLE QString text (const QJSValue &jsfrom, const QJSValue &jsto)
 
Q_INVOKABLE QString text (const QJSValue &jsrange)
 
Q_INVOKABLE QString text (int fromLine, int fromColumn, int toLine, int toColumn)
 
Q_INVOKABLE int toVirtualColumn (const QJSValue &cursor)
 
Q_INVOKABLE int toVirtualColumn (int line, int column)
 
Q_INVOKABLE QJSValue toVirtualCursor (const QJSValue &jscursor)
 
Q_INVOKABLE QJSValue toVirtualCursor (int line, int column)
 
Q_INVOKABLE bool truncate (const QJSValue &jscursor)
 
Q_INVOKABLE bool truncate (int line, int column)
 
Q_INVOKABLE QString url ()
 
Q_INVOKABLE QString variable (const QString &s)
 
Q_INVOKABLE QString wordAt (const QJSValue &jscursor)
 
Q_INVOKABLE QString wordAt (int line, int column)
 
Q_INVOKABLE QJSValue wordRangeAt (const QJSValue &jscursor)
 
Q_INVOKABLE QJSValue wordRangeAt (int line, int column)
 
Q_INVOKABLE bool wrapLine (const QJSValue &cursor)
 
Q_INVOKABLE bool wrapLine (int line, int column)
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
QBindable< QStringbindableObjectName ()
 
bool blockSignals (bool block)
 
const QObjectListchildren () const const
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
void deleteLater ()
 
void destroyed (QObject *obj)
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectInfo () const const
 
void dumpObjectTree () const const
 
QList< QByteArraydynamicPropertyNames () const const
 
virtual bool event (QEvent *e)
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (Qt::FindChildOptions options) const const
 
bool inherits (const char *className) const const
 
void installEventFilter (QObject *filterObj)
 
bool isQuickItemType () const const
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
void killTimer (int id)
 
virtual const QMetaObjectmetaObject () const const
 
void moveToThread (QThread *targetThread)
 
QString objectName () const const
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
QVariant property (const char *name) const const
 
 Q_CLASSINFO (Name, Value)
 
 Q_EMIT Q_EMIT
 
 Q_ENUM (...)
 
 Q_ENUM_NS (...)
 
 Q_ENUMS (...)
 
 Q_FLAG (...)
 
 Q_FLAG_NS (...)
 
 Q_FLAGS (...)
 
 Q_GADGET Q_GADGET
 
 Q_GADGET_EXPORT (EXPORT_MACRO)
 
 Q_INTERFACES (...)
 
 Q_INVOKABLE Q_INVOKABLE
 
 Q_MOC_INCLUDE Q_MOC_INCLUDE
 
 Q_NAMESPACE Q_NAMESPACE
 
 Q_NAMESPACE_EXPORT (EXPORT_MACRO)
 
 Q_OBJECT Q_OBJECT
 
 Q_PROPERTY (...)
 
 Q_REVISION Q_REVISION
 
 Q_SET_OBJECT_NAME (Object)
 
 Q_SIGNAL Q_SIGNAL
 
 Q_SIGNALS Q_SIGNALS
 
 Q_SLOT Q_SLOT
 
 Q_SLOTS Q_SLOTS
 
qobject_cast (const QObject *object)
 
qobject_cast (QObject *object)
 
 QT_NO_NARROWING_CONVERSIONS_IN_CONNECT QT_NO_NARROWING_CONVERSIONS_IN_CONNECT
 
void removeEventFilter (QObject *obj)
 
void setObjectName (const QString &name)
 
void setObjectName (QAnyStringView name)
 
void setParent (QObject *parent)
 
bool setProperty (const char *name, const QVariant &value)
 
bool setProperty (const char *name, QVariant &&value)
 
bool signalsBlocked () const const
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds interval, Qt::TimerType timerType)
 
QThreadthread () const const
 

Additional Inherited Members

- 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)
 
- Public Attributes inherited from QObject
typedef QObjectList
 
- 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
 
QObjectsender () 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()

KateScriptDocument::KateScriptDocument ( QJSEngine * engine,
QObject * parent = nullptr )
explicit

Definition at line 22 of file katescriptdocument.cpp.

Member Function Documentation

◆ anchor() [1/3]

QJSValue KateScriptDocument::anchor ( const QJSValue & cursor,
QChar character )

Definition at line 309 of file katescriptdocument.cpp.

◆ anchor() [2/3]

QJSValue KateScriptDocument::anchor ( int line,
int column,
QChar character )

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]

QString KateScriptDocument::attributeName ( const QJSValue & jscursor)

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]

QString KateScriptDocument::charAt ( const QJSValue & jscursor)

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]

QJSValue KateScriptDocument::fromVirtualCursor ( const QJSValue & jscursor)

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()

QString KateScriptDocument::highlightingModeAt ( const QJSValue & pos)

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]

bool KateScriptDocument::insertText ( const QJSValue & jscursor,
const QString & s )

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]

bool KateScriptDocument::isAttributeName ( const QJSValue & cursor,
const QString & name )

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]

bool KateScriptDocument::matchesAt ( const QJSValue & cursor,
const QString & s )

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]

bool KateScriptDocument::removeText ( const QJSValue & jsfrom,
const QJSValue & jsto )

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()

void KateScriptDocument::setVariable ( const QString & s,
const QString & v )

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]

QString KateScriptDocument::text ( const QJSValue & jsfrom,
const QJSValue & jsto )

Definition at line 388 of file katescriptdocument.cpp.

◆ text() [3/4]

QString KateScriptDocument::text ( const QJSValue & jsrange)

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]

QJSValue KateScriptDocument::toVirtualCursor ( const QJSValue & jscursor)

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()

QString KateScriptDocument::variable ( const QString & s)

Definition at line 765 of file katescriptdocument.cpp.

◆ wordAt() [1/2]

QString KateScriptDocument::wordAt ( const QJSValue & jscursor)

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]

QJSValue KateScriptDocument::wordRangeAt ( const QJSValue & jscursor)

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:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jul 19 2024 12:00:29 by doxygen 1.11.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.