00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _GTKSOURCEVIEWMM_SOURCELANGUAGE_H 00004 #define _GTKSOURCEVIEWMM_SOURCELANGUAGE_H 00005 00006 00007 #include <glibmm.h> 00008 00009 /* sourcebuffer.hg 00010 * 00011 * Copyright (C) 2004-2005 Jae Jang 00012 * Copyright (C) 2005-2006 Rob Page 00013 * Copyright (C) 2006 Dodji Seketeli 00014 * 00015 * This library is free software; you can redistribute it and/or 00016 * modify it under the terms of the GNU Library General Public 00017 * License as published by the Free Software Foundation; either 00018 * version 2 of the License, or (at your option) any later version. 00019 * 00020 * This library is distributed in the hope that it will be useful, 00021 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00022 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00023 * Library General Public License for more details. 00024 * 00025 * You should have received a copy of the GNU Library General Public 00026 * License along with this library; if not, write to the Free 00027 * Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 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 /* DOXYGEN_SHOULD_SKIP_THIS */ 00041 00042 00043 namespace gtksourceview 00044 { class SourceLanguage_Class; } // namespace gtksourceview 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 // noncopyable 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 /* DOXYGEN_SHOULD_SKIP_THIS */ 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 //C++ methods used to invoke GTK+ virtual functions: 00208 #ifdef GLIBMM_VFUNCS_ENABLED 00209 #endif //GLIBMM_VFUNCS_ENABLED 00210 00211 protected: 00212 //GTK+ Virtual Functions (override these to change behaviour): 00213 #ifdef GLIBMM_VFUNCS_ENABLED 00214 #endif //GLIBMM_VFUNCS_ENABLED 00215 00216 //Default Signal Handlers:: 00217 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00218 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00219 00220 00221 }; 00222 00223 } /* namespace gtksourceview */ 00224 00225 00226 namespace Glib 00227 { 00236 Glib::RefPtr<gtksourceview::SourceLanguage> wrap(GtkSourceLanguage* object, bool take_copy = false); 00237 } 00238 00239 00240 #endif /* _GTKSOURCEVIEWMM_SOURCELANGUAGE_H */ 00241