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 SourceLanguageManager ;
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
00123 Glib::ustring get_id() const;
00124
00128
00134 Glib::ustring get_name() const;
00135
00140
00146 Glib::ustring get_section() const;
00147
00151
00155 gboolean get_hidden() const;
00156
00157
00162
00168 Glib::StringArrayHandle get_mime_types() const;
00169
00175 Glib::StringArrayHandle get_globs() const;
00176
00182 Glib::StringArrayHandle get_style_ids() const;
00183
00184
00192 Glib::ustring get_style_name(const Glib::ustring& style_id) const;
00193
00201 Glib::ustring get_metadata(const Glib::ustring& name) const;
00202
00203
00204 public:
00205
00206 public:
00207
00208 #ifdef GLIBMM_VFUNCS_ENABLED
00209 #endif //GLIBMM_VFUNCS_ENABLED
00210
00211 protected:
00212
00213 #ifdef GLIBMM_VFUNCS_ENABLED
00214 #endif //GLIBMM_VFUNCS_ENABLED
00215
00216
00217 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00218 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00219
00220
00221 };
00222
00223 }
00224
00225
00226 namespace Glib
00227 {
00236 Glib::RefPtr<gtksourceview::SourceLanguage> wrap(GtkSourceLanguage* object, bool take_copy = false);
00237 }
00238
00239
00240 #endif
00241