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/sourcetag.h> 00035 #include <gtksourceviewmm/sourcestylescheme.h> 00036 00037 00038 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00039 typedef struct _GtkSourceLanguage GtkSourceLanguage; 00040 typedef struct _GtkSourceLanguageClass GtkSourceLanguageClass; 00041 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00042 00043 00044 namespace gtksourceview 00045 { class SourceLanguage_Class; } // namespace gtksourceview 00046 namespace gtksourceview 00047 { 00048 00049 class SourceLanguagesManager ; 00050 00051 00056 00057 class SourceLanguage : public Glib::Object 00058 { 00059 00060 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00061 00062 public: 00063 typedef SourceLanguage CppObjectType; 00064 typedef SourceLanguage_Class CppClassType; 00065 typedef GtkSourceLanguage BaseObjectType; 00066 typedef GtkSourceLanguageClass BaseClassType; 00067 00068 private: friend class SourceLanguage_Class; 00069 static CppClassType sourcelanguage_class_; 00070 00071 private: 00072 // noncopyable 00073 SourceLanguage(const SourceLanguage&); 00074 SourceLanguage& operator=(const SourceLanguage&); 00075 00076 protected: 00077 explicit SourceLanguage(const Glib::ConstructParams& construct_params); 00078 explicit SourceLanguage(GtkSourceLanguage* castitem); 00079 00080 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00081 00082 public: 00083 virtual ~SourceLanguage(); 00084 00085 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00086 static GType get_type() G_GNUC_CONST; 00087 static GType get_base_type() G_GNUC_CONST; 00088 #endif 00089 00091 GtkSourceLanguage* gobj() { return reinterpret_cast<GtkSourceLanguage*>(gobject_); } 00092 00094 const GtkSourceLanguage* gobj() const { return reinterpret_cast<GtkSourceLanguage*>(gobject_); } 00095 00097 GtkSourceLanguage* gobj_copy(); 00098 00099 private: 00100 00101 00102 protected: 00103 SourceLanguage(); 00104 00105 public: 00106 00110 00111 static Glib::RefPtr<SourceLanguage> create(); 00112 00113 00118 00119 Glib::ustring get_id() const; 00120 00124 00125 Glib::ustring get_name() const; 00126 00131 00132 Glib::ustring get_section() const; 00133 00137 00138 Glib::SListHandle<Glib::RefPtr<SourceTag> > get_tags(); 00139 00143 00144 Glib::SListHandle<Glib::RefPtr<const SourceTag> > get_tags() const; 00145 00149 00150 gunichar get_escape_char() const; 00151 00156 00157 Glib::SListHandle<Glib::ustring> get_mime_types() const; 00158 00162 00163 void set_mime_types(const Glib::SListHandle<const Glib::ustring>& mime_types); 00164 00168 00169 Glib::RefPtr<SourceStyleScheme> get_style_scheme(); 00170 00174 00175 Glib::RefPtr<const SourceStyleScheme> get_style_scheme() const; 00176 00180 00181 void set_style_scheme(Glib::RefPtr<SourceStyleScheme> scheme); 00182 00187 00188 SourceTagStyle get_tag_style(const Glib::ustring& tag_id) const; 00189 00194 00195 void set_tag_style(const Glib::ustring& tag_id, const SourceTagStyle& style); 00196 00201 00202 SourceTagStyle get_tag_default_style(const Glib::ustring& tag_id) const; 00203 00204 00205 public: 00206 00207 public: 00208 //C++ methods used to invoke GTK+ virtual functions: 00209 #ifdef GLIBMM_VFUNCS_ENABLED 00210 #endif //GLIBMM_VFUNCS_ENABLED 00211 00212 protected: 00213 //GTK+ Virtual Functions (override these to change behaviour): 00214 #ifdef GLIBMM_VFUNCS_ENABLED 00215 #endif //GLIBMM_VFUNCS_ENABLED 00216 00217 //Default Signal Handlers:: 00218 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00219 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00220 00221 00222 }; 00223 00224 } /* namespace gtksourceview */ 00225 00226 00227 namespace Glib 00228 { 00234 Glib::RefPtr<gtksourceview::SourceLanguage> wrap(GtkSourceLanguage* object, bool take_copy = false); 00235 } 00236 00237 00238 #endif /* _GTKSOURCEVIEWMM_SOURCELANGUAGE_H */ 00239