medit/moo/mooedit/mooprintpreview.h

67 lines
2.5 KiB
C

/*
* mooprintpreview.h
*
* Copyright (C) 2004-2006 by Yevgen Muntyan <muntyan@math.tamu.edu>
*
* 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.
*
* See COPYING file that comes with this distribution.
*/
#ifndef MOOEDIT_COMPILATION
#error "This file may not be used directly"
#endif
#ifndef __MOO_PRINT_PREVIEW_H__
#define __MOO_PRINT_PREVIEW_H__
#include <mooedit/mootextprint.h>
#include <mooutils/mooglade.h>
G_BEGIN_DECLS
#define MOO_TYPE_PRINT_PREVIEW (_moo_print_preview_get_type ())
#define MOO_PRINT_PREVIEW(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_PRINT_PREVIEW, MooPrintPreview))
#define MOO_PRINT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_PRINT_PREVIEW, MooPrintPreviewClass))
#define MOO_IS_PRINT_PREVIEW(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_PRINT_PREVIEW))
#define MOO_IS_PRINT_PREVIEW_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_PRINT_PREVIEW))
#define MOO_PRINT_PREVIEW_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_PRINT_PREVIEW, MooPrintPreviewClass))
typedef struct _MooPrintPreviewPrivate MooPrintPreviewPrivate;
typedef struct _MooPrintPreviewClass MooPrintPreviewClass;
#define MOO_PRINT_PREVIEW_RESPONSE_PRINT GTK_RESPONSE_APPLY
struct _MooPrintPreview
{
GtkDialog base;
MooPrintPreviewPrivate *priv;
};
struct _MooPrintPreviewClass
{
GtkDialogClass base_class;
};
GType _moo_print_preview_get_type (void) G_GNUC_CONST;
GtkWidget *_moo_print_preview_new (MooPrintOperation *op,
GtkPrintOperationPreview *gtk_preview,
GtkPrintContext *context);
void _moo_print_preview_start (MooPrintPreview *preview);
cairo_t *_moo_print_preview_create_cairo_context (MooPrintOperation *op,
GtkPrintOperationPreview *gtk_preview,
GtkPrintContext *context);
GtkPrintOperationPreview *_moo_print_preview_get_gtk_preview (MooPrintPreview *preview);
G_END_DECLS
#endif /* __MOO_PRINT_PREVIEW_H__ */