Xfce Foundation Classes
Main Page  | IndexNamespace List  |  Alphabetical List  |  Class List  |  File List


Xfc::Gtk::SourceLanguagesManager Class Reference

A GtkSourceLanguagesManager C++ wrapper class. More...

Inheritance diagram for Xfc::Gtk::SourceLanguagesManager:

Xfc::G::Object Xfc::G::TypeInstance Xfc::Trackable List of all members.

Public Member Functions

Accessors
Accessors
Property Proxies

Detailed Description

A GtkSourceLanguagesManager C++ wrapper class.

SourceLanguagesManager is an object that manages a SourceBuffer's languages.


Constructor & Destructor Documentation

Xfc::Gtk::SourceLanguagesManager::SourceLanguagesManager ( GtkSourceLanguagesManager *  lm,
bool  reference = false 
) [explicit, protected]

Construct a new SourceLanguagesManager from an existing GtkSourceLanguagesManager.

Parameters:
lm A pointer to a GtkSourceLanguagesManager.
reference Set false if the initial reference count is floating, set true if it's not.

The lm can be a newly created GtkSourceLanguagesManager or an existing GtkSourceLanguagesManager (see G::Object::Object).

Xfc::Gtk::SourceLanguagesManager::SourceLanguagesManager ( GtkSourceLanguagesManager *  lm,
bool  reference = false 
) [explicit, protected]

Construct a new SourceLanguagesManager from an existing GtkSourceLanguagesManager.

Parameters:
lm A pointer to a GtkSourceLanguagesManager.
reference Set false if the initial reference count is floating, set true if it's not.

The lm can be a newly created GtkSourceLanguagesManager or an existing GtkSourceLanguagesManager (see G::Object::Object).


Member Function Documentation

bool Xfc::Gtk::SourceLanguagesManager::get_available_languages ( std::vector< SourceLanguage * > &  languages  )  const

Get a list of the available source languages.

Parameters:
languages A vector of SourceLanguage pointers to hold the available languages.
Returns:
true if languages is not empty.

SourceLanguage* Xfc::Gtk::SourceLanguagesManager::get_language_from_mime_type ( const String mime_type  )  const

Get the SourceLanguage object for mime_type.

Parameters:
mime_type The mime type.
Returns:
The SourceLanguage.

Gtk::SourceLanguage* Xfc::Gtk::SourceLanguagesManager::get_language_from_name ( const String language  )  const

Get the SourceLanguage object for language.

Parameters:
language The name of the language.
Returns:
The SourceLanguage.

The names for the currently supported languages are: Ada, C, C++, Diff, .desktop, HTML, IDL, Java, Latex, Perl, gettext translation, Python, XML.

bool Xfc::Gtk::SourceLanguagesManager::get_lang_files_dirs ( std::vector< String > &  dirs  )  const

Get a list of the directories where language specifications are kept.

Parameters:
dirs A vector of String to hold the directories.
Returns:
true if dirs is not empty.


The documentation for this class was generated from the following file: Xfce Foundation Classes
Copyright © 2004-2005 The XFC Development Team XFC 4.3