00001
00002
00003 #ifndef _GTKSOURCEVIEWMM_SOURCELANGUAGE_H
00004 #define _GTKSOURCEVIEWMM_SOURCELANGUAGE_H
00005
00006
00007 #include <glibmm.h>
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00032
00033 #include <glibmm/object.h>
00034 #include <gtksourceviewmm/sourcestylescheme.h>
00035
00036
00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00038 typedef struct _GtkSourceLanguage GtkSourceLanguage;
00039 typedef struct _GtkSourceLanguageClass GtkSourceLanguageClass;
00040 #endif
00041
00042
00043 namespace gtksourceview
00044 { class SourceLanguage_Class; }
00045 namespace gtksourceview
00046 {
00047
00048 class SourceLanguagesManager ;
00049
00050
00055
00056 class SourceLanguage : public Glib::Object
00057 {
00058
00059 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00060
00061 public:
00062 typedef SourceLanguage CppObjectType;
00063 typedef SourceLanguage_Class CppClassType;
00064 typedef GtkSourceLanguage BaseObjectType;
00065 typedef GtkSourceLanguageClass BaseClassType;
00066
00067 private: friend class SourceLanguage_Class;
00068 static CppClassType sourcelanguage_class_;
00069
00070 private:
00071
00072 SourceLanguage(const SourceLanguage&);
00073 SourceLanguage& operator=(const SourceLanguage&);
00074
00075 protected:
00076 explicit SourceLanguage(const Glib::ConstructParams& construct_params);
00077 explicit SourceLanguage(GtkSourceLanguage* castitem);
00078
00079 #endif
00080
00081 public:
00082 virtual ~SourceLanguage();
00083
00084 #ifndef DOXYGEN_SHOULD_SKIP_THIS
00085 static GType get_type() G_GNUC_CONST;
00086 static GType get_base_type() G_GNUC_CONST;
00087 #endif
00088
00090 GtkSourceLanguage* gobj() { return reinterpret_cast<GtkSourceLanguage*>(gobject_); }
00091
00093 const GtkSourceLanguage* gobj() const { return reinterpret_cast<GtkSourceLanguage*>(gobject_); }
00094
00096 GtkSourceLanguage* gobj_copy();
00097
00098 private:
00099
00100
00101 protected:
00102 SourceLanguage();
00103
00104 public:
00105
00109
00110 static Glib::RefPtr<SourceLanguage> create();
00111
00112
00117
00118 Glib::ustring get_id() const;
00119
00123
00124 Glib::ustring get_name() const;
00125
00130
00131 Glib::ustring get_section() const;
00132
00136
00137
00138
00143
00144 Glib::StringArrayHandle get_mime_types() const;
00145
00146
00147 Glib::ustring get_style_name(const Glib::ustring& style_id) const;
00148
00149
00150 public:
00151
00152 public:
00153
00154 #ifdef GLIBMM_VFUNCS_ENABLED
00155 #endif //GLIBMM_VFUNCS_ENABLED
00156
00157 protected:
00158
00159 #ifdef GLIBMM_VFUNCS_ENABLED
00160 #endif //GLIBMM_VFUNCS_ENABLED
00161
00162
00163 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00164 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00165
00166
00167 };
00168
00169 }
00170
00171
00172 namespace Glib
00173 {
00182 Glib::RefPtr<gtksourceview::SourceLanguage> wrap(GtkSourceLanguage* object, bool take_copy = false);
00183 }
00184
00185
00186 #endif
00187