• Main Page
  • Related Pages
  • Namespaces
  • Classes
  • Files
  • File List
  • File Members

ap_DocView.h

Go to the documentation of this file.
00001 /* The AbiWord Document Widget
00002  *
00003  * Copyright (C) 2007 Michael Gorse <mgorse@alum.wpi.edu>
00004  *
00005  * This program is free software; you can redistribute it and/or
00006  * modify it under the terms of the GNU General Public License
00007  * as published by the Free Software Foundation; either version 2
00008  * of the License, or (at your option) any later version.
00009  *
00010  * This program is distributed in the hope that it will be useful,
00011  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00012  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00013  * GNU General Public License for more details.
00014  *
00015  * You should have received a copy of the GNU General Public License
00016  * along with this program; if not, write to the Free Software
00017  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
00018  * 02110-1301 USA.
00019  */
00020 #ifndef AP_DOCVIEW_H
00021 #define AP_DOCVIEW_H
00022 
00023 #include "ut_compiler.h"
00024 ABI_W_NO_CONST_QUAL
00025 #include <gtk/gtk.h>
00026 ABI_W_POP
00027 
00028 G_BEGIN_DECLS
00029 
00030 #define AP_TYPE_DOCVIEW      (ap_DocView_get_type ())
00031 #define AP_DOCVIEW(obj)       (G_TYPE_CHECK_INSTANCE_CAST((obj), AT_TYPE_DOCVIEW, ApDocView))
00032 #define IS_AP_DOCVIEW(obj)     (G_TYPE_CHECK_INSTANCE_TYPE((obj), AT_TYPE_DOCVIEW))
00033 #define IS_AP_DOCVIEW_CLASS(k) (G_TYPE_CHECK_CLASS_TYPE ((k), AT_TYPE_DOCVIEW))
00034 #define AP_DOCVIEW_CLASS(k)    (G_TYPE_CHECK_CLASS_CAST ((k), AT_TYPE_DOCVIEW, AbiWidgetClass))
00035 
00036   /* forward declarations */
00037   typedef struct _ApDocView      ApDocView;
00038   typedef GtkDrawingAreaClass ApDocViewClass;
00039   typedef struct _AbiPrivData    AbiPrivData;
00040 
00041   struct _ApDocView
00042   {
00043     GtkDrawingArea base;
00044     GtkWidget * child;
00045     /* private instance data */
00046     AbiPrivData * priv;
00047   };
00048 
00049   /* the public API */
00050   GtkWidget * ap_DocView_new (void);
00051   GType     ap_DocView_get_type (void);
00052 
00053 G_END_DECLS
00054 
00055 #endif /* AP_DOCVIEW_H */

Generated on Sun Feb 14 2021 for AbiWord by  doxygen 1.7.1