sourcelanguagemanager.h

Go to the documentation of this file.
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 
00107   static Glib::RefPtr<SourceLanguageManager> get_default();
00108 
00109  
00110   Glib::StringArrayHandle get_search_path() const;
00111   
00112   void set_search_path(const Glib::StringArrayHandle& dirs);
00113 
00114   
00115   Glib::StringArrayHandle get_language_ids() const;
00116 
00117   
00118   Glib::RefPtr<SourceLanguage> get_language(const Glib::ustring& id);
00119   
00120   Glib::RefPtr<const SourceLanguage> get_language(const Glib::ustring& id) const;
00121 
00122 
00123 public:
00124 
00125 public:
00126   //C++ methods used to invoke GTK+ virtual functions:
00127 #ifdef GLIBMM_VFUNCS_ENABLED
00128 #endif //GLIBMM_VFUNCS_ENABLED
00129 
00130 protected:
00131   //GTK+ Virtual Functions (override these to change behaviour):
00132 #ifdef GLIBMM_VFUNCS_ENABLED
00133 #endif //GLIBMM_VFUNCS_ENABLED
00134 
00135   //Default Signal Handlers::
00136 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00137 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00138 
00139 
00140 };
00141 
00142 } /* namespace gtksourceview */
00143 
00144 
00145 namespace Glib
00146 {
00155   Glib::RefPtr<gtksourceview::SourceLanguageManager> wrap(GtkSourceLanguageManager* object, bool take_copy = false);
00156 }
00157 
00158 
00159 #endif /* _GTKSOURCEVIEWMM_SOURCELANGUAGEMANAGER_H */
00160 

Generated on Tue Sep 25 18:39:18 2007 for libgtksourceviewmm by  doxygen 1.5.1