SyntaxDocument Class Reference
Store and manage the information about Syntax Highlighting. More...
#include <katesyntaxdocument.h>
Inheritance diagram for SyntaxDocument:

Public Member Functions | |
SyntaxDocument (bool force=false) | |
~SyntaxDocument () | |
bool | setIdentifier (const QString &identifier) |
SyntaxModeList | modeList () |
bool | nextGroup (syntaxContextData *data) |
bool | nextItem (syntaxContextData *data) |
QString | groupItemData (const syntaxContextData *data, const QString &name) |
QString | groupData (const syntaxContextData *data, const QString &name) |
void | freeGroupInfo (syntaxContextData *data) |
syntaxContextData * | getSubItems (syntaxContextData *data) |
syntaxContextData * | getConfig (const QString &mainGroupName, const QString &config) |
syntaxContextData * | getGroupInfo (const QString &mainGroupName, const QString &group) |
QStringList & | finddata (const QString &mainGroup, const QString &type, bool clearList=true) |
Detailed Description
Store and manage the information about Syntax Highlighting.Definition at line 57 of file katesyntaxdocument.h.
Constructor & Destructor Documentation
|
Constructor: Sets the current file to nothing and build the ModeList (katesyntaxhighlightingrc). Definition at line 33 of file katesyntaxdocument.cpp. References QPtrList::setAutoDelete(). |
|
Desctructor. Definition at line 44 of file katesyntaxdocument.cpp. |
Member Function Documentation
|
If the open hl file is different from the one needed, it opens the new one and assign some other things. identifier = File name and path of the new xml needed Definition at line 52 of file katesyntaxdocument.cpp. References QFile::close(), KMessageBox::error(), QFile::open(), QDomDocument::setContent(), and QString::utf8(). |
|
Get the mode list. Definition at line 94 of file katesyntaxdocument.cpp. |
|
Jump to the next group, syntaxContextData::currentGroup will point to the next group. Definition at line 102 of file katesyntaxdocument.cpp. References syntaxContextData::currentGroup, QDomNode::isComment(), QDomNode::nextSibling(), syntaxContextData::parent, and QDomNode::toElement(). |
|
Jump to the next item, syntaxContextData::item will point to the next item. Definition at line 133 of file katesyntaxdocument.cpp. References syntaxContextData::currentGroup, QDomNode::isComment(), syntaxContextData::item, QDomNode::nextSibling(), and QDomNode::toElement(). |
|
This function is used to fetch the atributes of the tags. Definition at line 161 of file katesyntaxdocument.cpp. References QDomElement::attribute(), QString::isEmpty(), syntaxContextData::item, and QDomElement::tagName(). |
|
Get the syntaxContextData of the DomElement Config inside mainGroupName It just fills syntaxContextData::item. Definition at line 255 of file katesyntaxdocument.cpp. References syntaxContextData::item. |
|
Get the syntaxContextData of the QDomElement Config inside mainGroupName syntaxContextData::parent will contain the QDomElement found. Definition at line 271 of file katesyntaxdocument.cpp. References syntaxContextData::parent. |
|
Returns a list with all the keywords inside the list type. Definition at line 286 of file katesyntaxdocument.cpp. References QDomNodeList::count(), QDomDocument::documentElement(), QDomElement::elementsByTagName(), endl(), QString::isEmpty(), QDomNode::isNull(), QDomNodeList::item(), kdDebug(), QDomNode::nextSibling(), QDomElement::tagName(), and QDomNode::toElement(). |
The documentation for this class was generated from the following files: