medit/moo/mooedit/mootextprint.h

65 lines
2.4 KiB
C
Raw Normal View History

2006-03-25 01:40:54 -08:00
/*
* mootextprint.h
*
2010-11-07 01:20:45 -08:00
* Copyright (C) 2004-2010 by Yevgen Muntyan <emuntyan@sourceforge.net>
2006-03-25 01:40: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-03-25 01:40: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-03-25 01:40:54 -08:00
*/
2006-05-07 11:15:58 -07:00
#ifndef MOOEDIT_COMPILATION
#error "This file may not be used directly"
#endif
#ifndef MOO_TEXT_PRINT_H
#define MOO_TEXT_PRINT_H
2006-03-25 01:40:54 -08:00
#include <gtk/gtk.h>
G_BEGIN_DECLS
2006-05-07 11:15:58 -07:00
#define MOO_TYPE_PRINT_OPERATION (_moo_print_operation_get_type ())
2006-03-25 01:40:54 -08:00
#define MOO_PRINT_OPERATION(object) (G_TYPE_CHECK_INSTANCE_CAST ((object), MOO_TYPE_PRINT_OPERATION, MooPrintOperation))
#define MOO_PRINT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_CAST ((klass), MOO_TYPE_PRINT_OPERATION, MooPrintOperationClass))
#define MOO_IS_PRINT_OPERATION(object) (G_TYPE_CHECK_INSTANCE_TYPE ((object), MOO_TYPE_PRINT_OPERATION))
#define MOO_IS_PRINT_OPERATION_CLASS(klass) (G_TYPE_CHECK_CLASS_TYPE ((klass), MOO_TYPE_PRINT_OPERATION))
#define MOO_PRINT_OPERATION_GET_CLASS(obj) (G_TYPE_INSTANCE_GET_CLASS ((obj), MOO_TYPE_PRINT_OPERATION, MooPrintOperationClass))
2010-12-12 02:29:20 -08:00
typedef struct MooPrintOperation MooPrintOperation;
typedef struct MooPrintOperationPrivate MooPrintOperationPrivate;
typedef struct MooPrintOperationClass MooPrintOperationClass;
2006-03-25 01:40:54 -08:00
2010-12-12 02:29:20 -08:00
struct MooPrintOperation
2006-03-25 01:40:54 -08:00
{
GtkPrintOperation base;
MooPrintOperationPrivate *priv;
2006-03-25 01:40:54 -08:00
};
2010-12-12 02:29:20 -08:00
struct MooPrintOperationClass
2006-03-25 01:40:54 -08:00
{
GtkPrintOperationClass base_class;
};
2006-05-07 16:44:10 -07:00
GType _moo_print_operation_get_type (void) G_GNUC_CONST;
void _moo_edit_page_setup (GtkWidget *parent);
2006-05-07 16:44:10 -07:00
void _moo_edit_print (GtkTextView *view,
GtkWidget *parent);
void _moo_edit_print_preview (GtkTextView *view,
GtkWidget *parent);
2006-11-18 23:12:56 -08:00
void _moo_edit_export_pdf (GtkTextView *view,
const char *filename);
2006-03-25 01:40:54 -08:00
G_END_DECLS
#endif /* MOO_TEXT_PRINT_H */