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(), and SyntaxDocument(). Referenced by SyntaxDocument(). |
|
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(), QFile::open(), setIdentifier(), and QString::utf8(). Referenced by setIdentifier(). |
|
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(), nextGroup(), QDomNode::nextSibling(), syntaxContextData::parent, and QDomNode::toElement(). Referenced by nextGroup(). |
|
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, nextItem(), QDomNode::nextSibling(), and QDomNode::toElement(). Referenced by nextItem(). |
|
This function is used to fetch the atributes of the tags.
Definition at line 161 of file katesyntaxdocument.cpp. References QDomElement::attribute(), groupItemData(), QString::isEmpty(), syntaxContextData::item, and QDomElement::tagName(). Referenced by groupItemData(). |
|
Get the syntaxContextData of the DomElement Config inside mainGroupName It just fills syntaxContextData::item.
Definition at line 255 of file katesyntaxdocument.cpp. References getConfig(), and syntaxContextData::item. Referenced by getConfig(). |
|
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 getGroupInfo(), and syntaxContextData::parent. Referenced by getGroupInfo(). |
|
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(), finddata(), QString::isEmpty(), QDomNode::isNull(), QDomNodeList::item(), kdDebug(), QDomNode::nextSibling(), QDomElement::tagName(), and QDomNode::toElement(). Referenced by finddata(). |
The documentation for this class was generated from the following files: