medit/moo/mooedit/mooprintpreview.h

69 lines
2.6 KiB
C
Raw Normal View History

2006-11-10 05:32:54 -08:00
/*
* mooprintpreview.h
*
2010-11-07 01:20:45 -08:00
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@sourceforge.net>
2006-11-10 05:32:54 -08:00
*
* This file is part of medit. medit is free software; you can
* redistribute it and/or modify it under the terms of the
* GNU Lesser General Public License as published by the
* Free Software Foundation; either version 2.1 of the License,
* or (at your option) any later version.
2006-11-10 05:32:54 -08:00
*
* You should have received a copy of the GNU Lesser General Public
* License along with medit. If not, see <http://www.gnu.org/licenses/>.
2006-11-10 05:32:54 -08:00
*/
#ifndef MOOEDIT_COMPILATION
#error "This file may not be used directly"
#endif
#ifndef MOO_PRINT_PREVIEW_H
#define MOO_PRINT_PREVIEW_H
2006-11-10 05:32:54 -08:00
#include <mooedit/mootextprint.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))
2010-12-12 02:29:20 -08:00
typedef struct MooPrintPreview MooPrintPreview;
typedef struct MooPrintPreviewPrivate MooPrintPreviewPrivate;
typedef struct MooPrintPreviewClass MooPrintPreviewClass;
2006-11-10 05:32:54 -08:00
#define MOO_PRINT_PREVIEW_RESPONSE_PRINT GTK_RESPONSE_APPLY
2010-12-12 02:29:20 -08:00
struct MooPrintPreview
2006-11-10 05:32:54 -08:00
{
GtkDialog base;
MooPrintPreviewPrivate *priv;
2006-11-10 05:32:54 -08:00
};
2010-12-12 02:29:20 -08:00
struct MooPrintPreviewClass
2006-11-10 05:32:54 -08:00
{
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);
2006-11-10 05:32:54 -08:00
G_END_DECLS
#endif /* MOO_PRINT_PREVIEW_H */