Index: inc/document.hpp
===================================================================
--- inc/document.hpp (revision 75296efd7a9d2243ed5b725c5ec5e024cf8d4835)
+++ inc/document.hpp (revision 6460a27fda60372c9a6f37ce5f654de90a0eebaf)
@@ -26,4 +26,5 @@
 #include "features.hpp"
 #ifdef WITH_GTKSOURCEVIEW
+#include "sourceview/sourcelanguagesmanager.hpp"
 #include "sourceview/sourceview.hpp"
 #endif
@@ -35,4 +36,6 @@
 {
 public:
+	typedef std::map<Glib::ustring, Glib::ustring> MimeMap;
+
 	Document(obby::document& doc);
 	virtual ~Document();
@@ -54,8 +57,16 @@
 #ifdef WITH_GTKSOURCEVIEW
 	Gtk::SourceView m_view;
+	Glib::RefPtr<Gtk::SourceLanguagesManager> m_lang_manager;
 #else
 	Gtk::TextView m_view;
 #endif
 	bool m_editing;
+
+public:
+#ifdef WITH_GTKSOURCEVIEW
+	static const MimeMap& create_mime_map();
+	static const MimeMap& m_mime_map;
+#endif
+
 };
 
