/* Katoob * Copyright (c) 2002 Arabeyes, Mohammed Sameer. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef KATOOBDOCUMENT_H #define KATOOBDOCUMENT_H #ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include #define KATOOB_TYPE_DOCUMENT (katoob_document_get_type ()) #define KATOOB_DOCUMENT(obj) (GTK_CHECK_CAST ((obj), KATOOB_TYPE_DOCUMENT, KatoobDocument)) #define KATOOB_DOCUMENT_CLASS(klass) (GTK_CHECK_CLASS_CAST ((klass), KATOOB_TYPE_DOCUMENT, KatoobDocumentClass)) #define KATOOB_IS_DOCUMENT(obj) (GTK_CHECK_TYPE ((obj), KATOOB_TYPE_DOCUMENT)) #define KATOOB_IS_DOCUMENT_CLASS(klass) (GTK_CHECK_CLASS_TYPE ((klass), KATOOB_TYPE_DOCUMENT)) #define KATOOB_DOCUMENT_GET_CLASS(obj) (GTK_CHECK_GET_CLASS ((obj), KATOOB_TYPE_DOCUMENT, KatoobDocumentClass)) typedef struct _KatoobDocument KatoobDocument; typedef struct _KatoobDocumentClass KatoobDocumentClass; typedef struct _KatoobDocumentPrivate KatoobDocumentPrivate; struct _KatoobDocument { GtkTextView view; KatoobDocumentPrivate *priv; }; struct _KatoobDocumentClass { GtkTextViewClass parent_class; /* Signal handlers */ void (* created) (KatoobDocument *document); void (* destroyed) (KatoobDocument *document); }; GType katoob_document_get_type (void) G_GNUC_CONST; KatoobDocument* katoob_document_new (void); GtkWidget* katoob_document_new_from_file(gchar *file); GtkTextBuffer *katoob_document_get_buffer(KatoobDocument *document); #ifdef __cplusplus } #endif /* __cplusplus */ #endif /* KATOOBDOCUMENT_H */