Document
Object Hierarchy:
Description:
Namespace: Gedit
Package: gedit
Content:
Properties:
- public string content_type { owned get; set; }
The document's content type.
- public bool empty_search { get; }
The property is used internally by gedit. It must not be used in a gedit plugin. The property can be modified or removed at any time.
- public string mime_type { owned get; }
The document's MIME type.
Creation methods:
- public Document ()
Methods:
- public string get_content_type ()
- public unowned SourceFile get_file ()
Gets the associated SourceFile.
- public unowned SourceLanguage get_language ()
- public string get_metadata (string key)
Gets the metadata assigned to
key
. - public string get_mime_type ()
Note: this never returns
null
. - public unowned SourceSearchContext get_search_context ()
Gets the search context.
- public string get_short_name_for_display ()
Note: this never returns
null
. - public bool is_untitled ()
- public void set_language (SourceLanguage? lang)
- public void set_search_context (SourceSearchContext? search_context)
Sets the new search context for the document.
Signals:
- public virtual signal void load ()
The "load" signal is emitted at the beginning of a file loading.
- public virtual signal void loaded ()
The "loaded" signal is emitted at the end of a successful file loading.
- public virtual signal void save ()
The "save" signal is emitted at the beginning of a file saving.
- public virtual signal void saved ()
The "saved" signal is emitted at the end of a successful file saving.
Inherited Members:
All known members inherited from class Gtk.SourceBuffer
- backward_iter_to_source_mark
- begin_not_undoable_action
- bracket_matched
- can_redo
- can_undo
- change_case
- create_source_mark
- end_not_undoable_action
- ensure_highlight
- forward_iter_to_source_mark
- get_context_classes_at_iter
- get_highlight_matching_brackets
- get_highlight_syntax
- get_implicit_trailing_newline
- get_language
- get_max_undo_levels
- get_source_marks_at_iter
- get_source_marks_at_line
- get_style_scheme
- get_undo_manager
- highlight_matching_brackets
- highlight_syntax
- highlight_updated
- implicit_trailing_newline
- iter_backward_to_context_class_toggle
- iter_forward_to_context_class_toggle
- iter_has_context_class
- join_lines
- language
- max_undo_levels
All known members inherited from class Gtk.TextBuffer
- @delete
- add_mark
- add_selection_clipboard
- apply_tag
- apply_tag_by_name
- backspace
- begin_user_action
- changed
- copy_clipboard
- copy_target_list
- create_child_anchor
- create_mark
- create_tag
- cursor_position
- cut_clipboard
- delete_interactive
- delete_mark
- delete_mark_by_name
- delete_range
- delete_selection
- deserialize
- deserialize_get_can_create_tags
- deserialize_set_can_create_tags
- end_user_action
- get_bounds
- get_char_count
- get_copy_target_list
- get_deserialize_formats
- get_end_iter
- get_has_selection
- get_insert
- get_iter_at_child_anchor
- get_iter_at_line
- get_iter_at_line_index
- get_iter_at_line_offset
- get_iter_at_mark
- get_iter_at_offset
- get_line_count
- get_mark
- get_modified
- get_paste_target_list
- get_selection_bound
- get_selection_bounds
- get_serialize_formats
- get_slice
- get_start_iter
- get_tag_table
- get_text
- has_selection
- insert
- insert_at_cursor
- insert_child_anchor
- insert_interactive
- insert_interactive_at_cursor
- insert_markup
- insert_pixbuf
- insert_range
- insert_range_interactive
- insert_text
- insert_with_tags
- insert_with_tags_by_name
- mark_deleted
- mark_set
- modified_changed
- move_mark
- move_mark_by_name
- paste_clipboard
- paste_done
- paste_target_list
- place_cursor
- register_deserialize_format
- register_deserialize_tagset
- register_serialize_format
- register_serialize_tagset
- remove_all_tags
- remove_selection_clipboard
- remove_tag
- remove_tag_by_name
- select_range
- serialize
- set_modified
- set_text
- tag_table
- text
- unregister_deserialize_format
- unregister_serialize_format
All known members inherited from class GLib.Object