KateIndentScript

Search for usage in LXR

KateIndentScript Class Reference

#include <kateindentscript.h>

Inheritance diagram for KateIndentScript:

Public Member Functions

 KateIndentScript (const QString &url, const KateIndentScriptHeader &header)
 
QPair< int, int > indent (KTextEditor::ViewPrivate *view, const KTextEditor::Cursor position, QChar typedCharacter, int indentWidth)
 
const KateIndentScriptHeader & indentHeader () const
 
const QStringtriggerCharacters ()
 
- Public Member Functions inherited from KateScript
 KateScript (const QString &urlOrScript, enum InputType inputType=InputURL)
 
void clearExceptions ()
 
void displayBacktrace (const QJSValue &error, const QString &header=QString())
 
const QStringerrorMessage ()
 
QJSValue evaluate (const QString &program, const FieldMap &env=FieldMap())
 
QJSValue function (const QString &name)
 
KateScriptHeader & generalHeader ()
 
QJSValue global (const QString &name)
 
bool load ()
 
void setGeneralHeader (const KateScriptHeader &generalHeader)
 
bool setView (KTextEditor::ViewPrivate *view)
 
const QStringurl ()
 

Additional Inherited Members

- Public Types inherited from KateScript
typedef QMap< QString, QJSValueFieldMap
 
enum  InputType { InputURL, InputSCRIPT }
 
- Static Public Member Functions inherited from KateScript
static QString backtrace (const QJSValue &error, const QString &header=QString())
 
- Protected Member Functions inherited from KateScript
bool hasException (const QJSValue &object, const QString &file)
 
- Protected Attributes inherited from KateScript
QJSEnginem_engine = nullptr
 

Detailed Description

A specialized class for scripts that are of type ScriptType::Indentation.

Definition at line 101 of file kateindentscript.h.

Member Function Documentation

◆ indent()

QPair< int, int > KateIndentScript::indent ( KTextEditor::ViewPrivate *  view,
const KTextEditor::Cursor  position,
QChar  typedCharacter,
int  indentWidth 
)

Returns a pair where the first value is the indent amount, and the second value is the alignment.

Definition at line 45 of file kateindentscript.cpp.


The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2022 The KDE developers.
Generated on Sun Jun 26 2022 03:49:55 by doxygen 1.8.17 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.