| 1 | /* i4ucdocumentpageviewiface.vala |
|---|
| 2 | * |
|---|
| 3 | * Copyright (C) 2010 Matias De la Puente |
|---|
| 4 | * |
|---|
| 5 | * This program is free software: you can redistribute it and/or modify |
|---|
| 6 | * it under the terms of the GNU General Public License as published by |
|---|
| 7 | * the Free Software Foundation, either version 3 of the License, or |
|---|
| 8 | * (at your option) any later version. |
|---|
| 9 | * |
|---|
| 10 | * This program is distributed in the hope that it will be useful, |
|---|
| 11 | * but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 12 | * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 13 | * GNU General Public License for more details. |
|---|
| 14 | * |
|---|
| 15 | * You should have received a copy of the GNU General Public License |
|---|
| 16 | * along with this program. If not, see <http://www.gnu.org/licenses/>. |
|---|
| 17 | * |
|---|
| 18 | * Author: |
|---|
| 19 | * Matias De la Puente <mfpuente.ar@gmail.com> |
|---|
| 20 | */ |
|---|
| 21 | |
|---|
| 22 | public interface I4uc.DocumentPageViewIface : GLib.Object, PageIface |
|---|
| 23 | { |
|---|
| 24 | //Settings properties |
|---|
| 25 | public abstract string font_name { set; get; } |
|---|
| 26 | public abstract int tab_width { set; get; } |
|---|
| 27 | public abstract bool auto_indent { set; get; } |
|---|
| 28 | public abstract bool highlight_current_line { set; get; } |
|---|
| 29 | public abstract bool insert_spaces_instead_of_tabs { set; get; } |
|---|
| 30 | public abstract bool show_line_numbers { set; get; } |
|---|
| 31 | public abstract bool highlight_matching_brackets { set; get; } |
|---|
| 32 | public abstract bool wrap_mode { set; get; } |
|---|
| 33 | public abstract bool can_undo { get; } |
|---|
| 34 | public abstract bool can_redo { get; } |
|---|
| 35 | public abstract bool has_selection { get; } |
|---|
| 36 | public abstract string content { set; get; } |
|---|
| 37 | public abstract string language_id { set; get; } |
|---|
| 38 | |
|---|
| 39 | public abstract MessageBarIface error_message_bar { get; } |
|---|
| 40 | public abstract MessageBarIface reload_message_bar { get; } |
|---|
| 41 | public abstract MessageBarIface save_message_bar { get; } |
|---|
| 42 | |
|---|
| 43 | //Search and Replace properties |
|---|
| 44 | public abstract SearchBarViewIface search_bar_view { get; } |
|---|
| 45 | public abstract bool search_bar_view_visible { set; get; } |
|---|
| 46 | |
|---|
| 47 | //Content properties |
|---|
| 48 | public abstract bool content_visible { set; get; } |
|---|
| 49 | public abstract bool content_modified { set; get; } |
|---|
| 50 | |
|---|
| 51 | //Signals |
|---|
| 52 | public signal void selected (); |
|---|
| 53 | public signal void content_changed (); |
|---|
| 54 | public signal void selection_changed (); |
|---|
| 55 | public signal void focused_in (); |
|---|
| 56 | |
|---|
| 57 | //Methods |
|---|
| 58 | public abstract void undo (); |
|---|
| 59 | public abstract void redo (); |
|---|
| 60 | public abstract void cut (); |
|---|
| 61 | public abstract void copy (); |
|---|
| 62 | public abstract void paste (); |
|---|
| 63 | public abstract void guess_language_id (string content_type); |
|---|
| 64 | public abstract int show_save_dialog (string name, ref string folder_uri, out string document_uri); |
|---|
| 65 | public abstract void show_print_dialog () throws GLib.Error; |
|---|
| 66 | public abstract int show_close_message (); |
|---|
| 67 | public abstract void grab_focus (); |
|---|
| 68 | public abstract void add_recent (string uri); |
|---|
| 69 | public abstract void go_to_line (int line); |
|---|
| 70 | } |
|---|