00001 // -*- c++ -*- 00002 // Generated by gtkmmproc -- DO NOT MODIFY! 00003 #ifndef _GTKSOURCEVIEWMM_SOURCELANGUAGEMANAGER_H 00004 #define _GTKSOURCEVIEWMM_SOURCELANGUAGEMANAGER_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/sourcelanguage.h> 00035 00036 00037 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00038 typedef struct _GtkSourceLanguageManager GtkSourceLanguageManager; 00039 typedef struct _GtkSourceLanguageManagerClass GtkSourceLanguageManagerClass; 00040 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00041 00042 00043 namespace gtksourceview 00044 { class SourceLanguageManager_Class; } // namespace gtksourceview 00045 namespace gtksourceview 00046 { 00047 00048 00050 00051 class SourceLanguageManager : public Glib::Object 00052 { 00053 00054 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00055 00056 public: 00057 typedef SourceLanguageManager CppObjectType; 00058 typedef SourceLanguageManager_Class CppClassType; 00059 typedef GtkSourceLanguageManager BaseObjectType; 00060 typedef GtkSourceLanguageManagerClass BaseClassType; 00061 00062 private: friend class SourceLanguageManager_Class; 00063 static CppClassType sourcelanguagemanager_class_; 00064 00065 private: 00066 // noncopyable 00067 SourceLanguageManager(const SourceLanguageManager&); 00068 SourceLanguageManager& operator=(const SourceLanguageManager&); 00069 00070 protected: 00071 explicit SourceLanguageManager(const Glib::ConstructParams& construct_params); 00072 explicit SourceLanguageManager(GtkSourceLanguageManager* castitem); 00073 00074 #endif /* DOXYGEN_SHOULD_SKIP_THIS */ 00075 00076 public: 00077 virtual ~SourceLanguageManager(); 00078 00079 #ifndef DOXYGEN_SHOULD_SKIP_THIS 00080 static GType get_type() G_GNUC_CONST; 00081 static GType get_base_type() G_GNUC_CONST; 00082 #endif 00083 00085 GtkSourceLanguageManager* gobj() { return reinterpret_cast<GtkSourceLanguageManager*>(gobject_); } 00086 00088 const GtkSourceLanguageManager* gobj() const { return reinterpret_cast<GtkSourceLanguageManager*>(gobject_); } 00089 00091 GtkSourceLanguageManager* gobj_copy(); 00092 00093 private: 00094 00095 protected: 00096 SourceLanguageManager(); 00097 00098 public: 00099 00103 00104 static Glib::RefPtr<SourceLanguageManager> create(); 00105 00106 00111 static Glib::RefPtr<SourceLanguageManager> get_default(); 00112 00113 00118 Glib::StringArrayHandle get_search_path() const; 00119 00134 void set_search_path(const Glib::StringArrayHandle& dirs); 00135 00136 00142 Glib::StringArrayHandle get_language_ids() const; 00143 00144 00152 Glib::RefPtr<SourceLanguage> get_language(const Glib::ustring& id); 00153 00161 Glib::RefPtr<const SourceLanguage> get_language(const Glib::ustring& id) const; 00162 00163 00164 public: 00165 00166 public: 00167 //C++ methods used to invoke GTK+ virtual functions: 00168 #ifdef GLIBMM_VFUNCS_ENABLED 00169 #endif //GLIBMM_VFUNCS_ENABLED 00170 00171 protected: 00172 //GTK+ Virtual Functions (override these to change behaviour): 00173 #ifdef GLIBMM_VFUNCS_ENABLED 00174 #endif //GLIBMM_VFUNCS_ENABLED 00175 00176 //Default Signal Handlers:: 00177 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00178 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED 00179 00180 00181 }; 00182 00183 } /* namespace gtksourceview */ 00184 00185 00186 namespace Glib 00187 { 00196 Glib::RefPtr<gtksourceview::SourceLanguageManager> wrap(GtkSourceLanguageManager* object, bool take_copy = false); 00197 } 00198 00199 00200 #endif /* _GTKSOURCEVIEWMM_SOURCELANGUAGEMANAGER_H */ 00201