• Skip to content
  • Skip to link menu
Trinity API Reference
  • Trinity API Reference
  • kate
 

kate

katesyntaxdocument.h
00001 /* This file is part of the KDE libraries
00002    Copyright (C) 2001 Joseph Wenninger <jowenn@kde.org>
00003    Copyright (C) 2000 Scott Manson <sdmanson@alltel.net>
00004 
00005    This library is free software; you can redistribute it and/or
00006    modify it under the terms of the GNU Library General Public
00007    License version 2 as published by the Free Software Foundation.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017    Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef __KATE_SYNTAXDOCUMENT_H__
00021 #define __KATE_SYNTAXDOCUMENT_H__
00022 
00023 #include <tqdom.h>
00024 #include <tqstringlist.h>
00025 
00029 class KateSyntaxModeListItem
00030 {
00031   public:
00032     TQString name;
00033     TQString nameTranslated;
00034     TQString section;
00035     TQString mimetype;
00036     TQString extension;
00037     TQString identifier;
00038     TQString version;
00039     TQString priority;
00040     TQString author;
00041     TQString license;
00042     bool hidden;
00043 };
00044 
00048 typedef TQValueList<KateSyntaxModeListItem*> KateSyntaxModeList;
00049 
00053 class KateSyntaxContextData
00054 {
00055   public:
00056     TQDomElement parent;
00057     TQDomElement currentGroup;
00058     TQDomElement item;
00059 };
00060 
00064 class KateSyntaxDocument : public TQDomDocument
00065 {
00066   public:
00072     KateSyntaxDocument(bool force = false);
00073 
00077     ~KateSyntaxDocument();
00078 
00085     bool setIdentifier(const TQString& identifier);
00086 
00091     const KateSyntaxModeList &modeList() { return myModeList; }
00092 
00098     bool nextGroup(KateSyntaxContextData* data);
00099 
00105     bool nextItem(KateSyntaxContextData* data);
00106 
00110     TQString groupItemData(const KateSyntaxContextData* data,const TQString& name);
00111     TQString groupData(const KateSyntaxContextData* data,const TQString& name);
00112 
00113     void freeGroupInfo(KateSyntaxContextData* data);
00114     KateSyntaxContextData* getSubItems(KateSyntaxContextData* data);
00115 
00120     KateSyntaxContextData* getConfig(const TQString& mainGroupName, const TQString &config);
00121 
00126     KateSyntaxContextData* getGroupInfo(const TQString& mainGroupName, const TQString &group);
00127 
00131     TQStringList& finddata(const TQString& mainGroup,const TQString& type,bool clearList=true);
00132 
00133   private:
00138     void setupModeList(bool force);
00139 
00144     bool getElement (TQDomElement &element, const TQString &mainGroupName, const TQString &config);
00145 
00149     KateSyntaxModeList myModeList;
00150 
00154     TQString currentFile;
00155 
00159     TQStringList m_data;
00160 };
00161 
00162 #endif
00163 
00164 // kate: space-indent on; indent-width 2; replace-tabs on;

kate

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

kate

Skip menu "kate"
  • arts
  • dcop
  • dnssd
  • interfaces
  •     interface
  •     library
  •   kspeech
  •   ktexteditor
  • kabc
  • kate
  • kcmshell
  • kdecore
  • kded
  • kdefx
  • kdeprint
  • kdesu
  • kdeui
  • kdoctools
  • khtml
  • kimgio
  • kinit
  • kio
  •   bookmarks
  •   httpfilter
  •   kfile
  •   kio
  •   kioexec
  •   kpasswdserver
  •   kssl
  • kioslave
  •   http
  • kjs
  • kmdi
  •   kmdi
  • knewstuff
  • kparts
  • krandr
  • kresources
  • kspell2
  • kunittest
  • kutils
  • kwallet
  • libkmid
  • libkscreensaver
Generated for kate by doxygen 1.7.6.1
This website is maintained by Timothy Pearson.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. |