sourcelanguagesmanager.h

Go to the documentation of this file.
00001 // -*- c++ -*-
00002 // Generated by gtkmmproc -- DO NOT MODIFY!
00003 #ifndef _GTKSOURCEVIEWMM_SOURCELANGUAGESMANAGER_H
00004 #define _GTKSOURCEVIEWMM_SOURCELANGUAGESMANAGER_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  
00110     
00111   Glib::SListHandle<Glib::RefPtr<SourceLanguage> > get_available_languages() const;
00112 
00113     //_WRAP_METHOD(SourceLanguage& get_language_from_mime_type(const Glib::ustring &mime_type) const, gtk_source_languages_manager_get_language_from_mime_type)
00114 
00118     Glib::RefPtr<SourceLanguage> get_language_from_mime_type (const Glib::ustring &mime_type)  const;
00119     
00120 
00124     
00125   Glib::SListHandle<Glib::ustring> get_lang_files_dirs() const;
00126 
00127 
00128 public:
00129 
00130 public:
00131   //C++ methods used to invoke GTK+ virtual functions:
00132 #ifdef GLIBMM_VFUNCS_ENABLED
00133 #endif //GLIBMM_VFUNCS_ENABLED
00134 
00135 protected:
00136   //GTK+ Virtual Functions (override these to change behaviour):
00137 #ifdef GLIBMM_VFUNCS_ENABLED
00138 #endif //GLIBMM_VFUNCS_ENABLED
00139 
00140   //Default Signal Handlers::
00141 #ifdef GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00142 #endif //GLIBMM_DEFAULT_SIGNAL_HANDLERS_ENABLED
00143 
00144 
00145 };
00146 
00147 } /* namespace gtksourceview */
00148 
00149 
00150 namespace Glib
00151 {
00160   Glib::RefPtr<gtksourceview::SourceLanguageManager> wrap(GtkSourceLanguageManager* object, bool take_copy = false);
00161 }
00162 
00163 
00164 #endif /* _GTKSOURCEVIEWMM_SOURCELANGUAGESMANAGER_H */
00165 

Generated on Wed Feb 6 02:24:39 2008 for libgtksourceviewmm by  doxygen 1.5.1