1 /* -*- Mode: C; indent-tabs-mode: t; c-basic-offset: 4; tab-width: 4 -*- */ 2 /* 3 * ianjuta-document.h -- Autogenerated from libanjuta.idl 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 2 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 Library 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, write to the Free Software 17 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef _IANJUTA_DOCUMENT_H_ 21 #define _IANJUTA_DOCUMENT_H_ 22 23 #include <glib-object.h> 24 25 G_BEGIN_DECLS 26 27 #define IANJUTA_TYPE_DOCUMENT (ianjuta_document_get_type ()) 28 #define IANJUTA_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), IANJUTA_TYPE_DOCUMENT, IAnjutaDocument)) 29 #define IANJUTA_IS_DOCUMENT(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), IANJUTA_TYPE_DOCUMENT)) 30 #define IANJUTA_DOCUMENT_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), IANJUTA_TYPE_DOCUMENT, IAnjutaDocumentIface)) 31 32 #define IANJUTA_DOCUMENT_ERROR ianjuta_document_error_quark() 33 34 typedef struct _IAnjutaDocument IAnjutaDocument; 35 typedef struct _IAnjutaDocumentIface IAnjutaDocumentIface; 36 37 38 struct _IAnjutaDocumentIface { 39 GTypeInterface g_iface; 40 41 /* Signal */ 42 void (*update_ui) (IAnjutaDocument *obj); 43 44 void (*begin_undo_action) (IAnjutaDocument *obj, GError **err); 45 gboolean (*can_redo) (IAnjutaDocument *obj, GError **err); 46 gboolean (*can_undo) (IAnjutaDocument *obj, GError **err); 47 void (*clear) (IAnjutaDocument *obj, GError **err); 48 void (*copy) (IAnjutaDocument *obj, GError **err); 49 void (*cut) (IAnjutaDocument *obj, GError **err); 50 void (*end_undo_action) (IAnjutaDocument *obj, GError **err); 51 const gchar* (*get_filename) (IAnjutaDocument *obj, GError **err); 52 void (*grab_focus) (IAnjutaDocument *obj, GError **err); 53 void (*paste) (IAnjutaDocument *obj, GError **err); 54 void (*redo) (IAnjutaDocument *obj, GError **err); 55 void (*undo) (IAnjutaDocument *obj, GError **err); 56 57 }; 58 59 60 GQuark ianjuta_document_error_quark (void); 61 GType ianjuta_document_get_type (void); 62 63 void ianjuta_document_begin_undo_action (IAnjutaDocument *obj, GError **err); 64 65 gboolean ianjuta_document_can_redo (IAnjutaDocument *obj, GError **err); 66 67 gboolean ianjuta_document_can_undo (IAnjutaDocument *obj, GError **err); 68 69 void ianjuta_document_clear (IAnjutaDocument *obj, GError **err); 70 71 void ianjuta_document_copy (IAnjutaDocument *obj, GError **err); 72 73 void ianjuta_document_cut (IAnjutaDocument *obj, GError **err); 74 75 void ianjuta_document_end_undo_action (IAnjutaDocument *obj, GError **err); 76 77 const gchar* ianjuta_document_get_filename (IAnjutaDocument *obj, GError **err); 78 79 void ianjuta_document_grab_focus (IAnjutaDocument *obj, GError **err); 80 81 void ianjuta_document_paste (IAnjutaDocument *obj, GError **err); 82 83 void ianjuta_document_redo (IAnjutaDocument *obj, GError **err); 84 85 void ianjuta_document_undo (IAnjutaDocument *obj, GError **err); 86 87 88 G_END_DECLS 89 90 #endif 91