interfaces
highlightinginterface.h
Go to the documentation of this file.00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __ktexteditor_highlightinginterface_h__
00021 #define __ktexteditor_highlightinginterface_h__
00022
00023 #include <kdelibs_export.h>
00024
00025 class QString;
00026 class QCString;
00027
00028 namespace KTextEditor
00029 {
00030
00034 class KTEXTEDITOR_EXPORT HighlightingInterface
00035 {
00036 friend class PrivateHighlightingInterface;
00037
00038 public:
00039 HighlightingInterface ();
00040 virtual ~HighlightingInterface ();
00041
00042 unsigned int highlightingInterfaceNumber () const;
00043
00044 protected:
00045 void setHighlightingInterfaceDCOPSuffix (const QCString &suffix);
00046
00047
00048
00049
00050 public:
00054 virtual unsigned int hlMode () = 0;
00055
00059 virtual bool setHlMode (unsigned int mode) = 0;
00060
00064 virtual unsigned int hlModeCount () = 0;
00065
00069 virtual QString hlModeName (unsigned int mode) = 0;
00070
00074 virtual QString hlModeSectionName (unsigned int mode) = 0;
00075
00076
00077
00078
00079 public:
00080 virtual void hlChanged () = 0;
00081
00082 private:
00083 class PrivateHighlightingInterface *d;
00084 static unsigned int globalHighlightingInterfaceNumber;
00085 unsigned int myHighlightingInterfaceNumber;
00086 };
00087
00088 KTEXTEDITOR_EXPORT HighlightingInterface *highlightingInterface (class Document *doc);
00089
00090 }
00091
00092 #endif