• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • applications API Reference
  • KDE Home
  • Contact Us
 

Kate

Public Member Functions | List of all members
KateSyntaxDocument Class Reference

#include <katesyntaxdocument.h>

Inherits QDomDocument.

Public Member Functions

 KateSyntaxDocument (KConfig *config, bool force=false)
 
 ~KateSyntaxDocument ()
 
QStringList & finddata (const QString &mainGroup, const QString &type, bool clearList=true)
 
void freeGroupInfo (KateSyntaxContextData *data)
 
KateSyntaxContextData * getConfig (const QString &mainGroupName, const QString &config)
 
KateSyntaxContextData * getGroupInfo (const QString &mainGroupName, const QString &group)
 
KateSyntaxContextData * getSubItems (KateSyntaxContextData *data)
 
QString groupData (const KateSyntaxContextData *data, const QString &name)
 
QString groupItemData (const KateSyntaxContextData *data, const QString &name)
 
const KateSyntaxModeList & modeList ()
 
bool nextGroup (KateSyntaxContextData *data)
 
bool nextItem (KateSyntaxContextData *data)
 
bool setIdentifier (const QString &identifier)
 

Detailed Description

Store and manage the information about Syntax Highlighting.

Definition at line 73 of file katesyntaxdocument.h.

Constructor & Destructor Documentation

KateSyntaxDocument::KateSyntaxDocument ( KConfig *  config,
bool  force = false 
)
explicit

Constructor Sets the current file to nothing and build the ModeList (katesyntaxhighlightingrc)

Parameters
forcefore the update of the hl cache

Definition at line 41 of file katesyntaxdocument.cpp.

KateSyntaxDocument::~KateSyntaxDocument ( )

Desctructor.

Definition at line 49 of file katesyntaxdocument.cpp.

Member Function Documentation

QStringList & KateSyntaxDocument::finddata ( const QString &  mainGroup,
const QString &  type,
bool  clearList = true 
)

Returns a list with all the keywords inside the list type.

Definition at line 293 of file katesyntaxdocument.cpp.

void KateSyntaxDocument::freeGroupInfo ( KateSyntaxContextData *  data)

Definition at line 196 of file katesyntaxdocument.cpp.

KateSyntaxContextData * KateSyntaxDocument::getConfig ( const QString &  mainGroupName,
const QString &  config 
)

Get the KateSyntaxContextData of the DomElement Config inside mainGroupName It just fills KateSyntaxContextData::item.

Get the KateSyntaxContextData of the QDomElement Config inside mainGroupName KateSyntaxContextData::item will contain the QDomElement found.

Definition at line 262 of file katesyntaxdocument.cpp.

KateSyntaxContextData * KateSyntaxDocument::getGroupInfo ( const QString &  mainGroupName,
const QString &  group 
)

Get the KateSyntaxContextData of the QDomElement Config inside mainGroupName KateSyntaxContextData::parent will contain the QDomElement found.

Definition at line 278 of file katesyntaxdocument.cpp.

KateSyntaxContextData * KateSyntaxDocument::getSubItems ( KateSyntaxContextData *  data)

Definition at line 201 of file katesyntaxdocument.cpp.

QString KateSyntaxDocument::groupData ( const KateSyntaxContextData *  data,
const QString &  name 
)

Definition at line 181 of file katesyntaxdocument.cpp.

QString KateSyntaxDocument::groupItemData ( const KateSyntaxContextData *  data,
const QString &  name 
)

This function is used to fetch the atributes of the tags.

This function is used to fetch the atributes of the tags of the item in a KateSyntaxContextData.

Definition at line 161 of file katesyntaxdocument.cpp.

const KateSyntaxModeList& KateSyntaxDocument::modeList ( )
inline

Get the mode list.

Returns
mode list

Definition at line 100 of file katesyntaxdocument.h.

bool KateSyntaxDocument::nextGroup ( KateSyntaxContextData *  data)

Jump to the next group, KateSyntaxContextData::currentGroup will point to the next group.

Parameters
datacontext
Returns
success

Definition at line 102 of file katesyntaxdocument.cpp.

bool KateSyntaxDocument::nextItem ( KateSyntaxContextData *  data)

Jump to the next item, KateSyntaxContextData::item will point to the next item.

Parameters
datacontext
Returns
success

Definition at line 133 of file katesyntaxdocument.cpp.

bool KateSyntaxDocument::setIdentifier ( const QString &  identifier)

If the open hl file is different from the one needed, it opens the new one and assign some other things.

Parameters
identifierfile name and path of the new xml needed
Returns
success

identifier = File name and path of the new xml needed

Definition at line 59 of file katesyntaxdocument.cpp.


The documentation for this class was generated from the following files:
  • katesyntaxdocument.h
  • katesyntaxdocument.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:31:54 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

Kate

Skip menu "Kate"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

applications API Reference

Skip menu "applications API Reference"
  •   kate
  •       kate
  •   KTextEditor
  •   Kate
  • Applications
  •   Libraries
  •     libkonq
  • Konsole

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal