Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
 
 
 
 
 
 

81 rinda
3.3 KiB

  1. /* GTK - The GIMP Toolkit
  2. * gtkprintoperationpreview.h: Abstract print preview interface
  3. * Copyright (C) 2006, Red Hat, Inc.
  4. *
  5. * This library is free software; you can redistribute it and/or
  6. * modify it under the terms of the GNU Lesser General Public
  7. * License as published by the Free Software Foundation; either
  8. * version 2 of the License, or (at your option) any later version.
  9. *
  10. * This library is distributed in the hope that it will be useful,
  11. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. * Lesser General Public License for more details.
  14. *
  15. * You should have received a copy of the GNU Lesser General Public
  16. * License along with this library; if not, write to the
  17. * Free Software Foundation, Inc., 59 Temple Place - Suite 330,
  18. * Boston, MA 02111-1307, USA.
  19. */
  20. #if defined(GTK_DISABLE_SINGLE_INCLUDES) && !defined (__GTK_H_INSIDE__) && !defined (GTK_COMPILATION)
  21. #error "Only <gtk/gtk.h> can be included directly."
  22. #endif
  23. #ifndef __GTK_PRINT_OPERATION_PREVIEW_H__
  24. #define __GTK_PRINT_OPERATION_PREVIEW_H__
  25. #include <cairo.h>
  26. #include <gtk/gtkprintcontext.h>
  27. G_BEGIN_DECLS
  28. #define GTK_TYPE_PRINT_OPERATION_PREVIEW (gtk_print_operation_preview_get_type ())
  29. #define GTK_PRINT_OPERATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreview))
  30. #define GTK_IS_PRINT_OPERATION_PREVIEW(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW))
  31. #define GTK_PRINT_OPERATION_PREVIEW_GET_IFACE(obj) (G_TYPE_INSTANCE_GET_INTERFACE ((obj), GTK_TYPE_PRINT_OPERATION_PREVIEW, GtkPrintOperationPreviewIface))
  32. typedef struct _GtkPrintOperationPreview GtkPrintOperationPreview; /*dummy typedef */
  33. typedef struct _GtkPrintOperationPreviewIface GtkPrintOperationPreviewIface;
  34. struct _GtkPrintOperationPreviewIface
  35. {
  36. GTypeInterface g_iface;
  37. /* signals */
  38. void (*ready) (GtkPrintOperationPreview *preview,
  39. GtkPrintContext *context);
  40. void (*got_page_size) (GtkPrintOperationPreview *preview,
  41. GtkPrintContext *context,
  42. GtkPageSetup *page_setup);
  43. /* methods */
  44. void (*render_page) (GtkPrintOperationPreview *preview,
  45. gint page_nr);
  46. gboolean (*is_selected) (GtkPrintOperationPreview *preview,
  47. gint page_nr);
  48. void (*end_preview) (GtkPrintOperationPreview *preview);
  49. /* Padding for future expansion */
  50. void (*_gtk_reserved1) (void);
  51. void (*_gtk_reserved2) (void);
  52. void (*_gtk_reserved3) (void);
  53. void (*_gtk_reserved4) (void);
  54. void (*_gtk_reserved5) (void);
  55. void (*_gtk_reserved6) (void);
  56. void (*_gtk_reserved7) (void);
  57. };
  58. GType gtk_print_operation_preview_get_type (void) G_GNUC_CONST;
  59. void gtk_print_operation_preview_render_page (GtkPrintOperationPreview *preview,
  60. gint page_nr);
  61. void gtk_print_operation_preview_end_preview (GtkPrintOperationPreview *preview);
  62. gboolean gtk_print_operation_preview_is_selected (GtkPrintOperationPreview *preview,
  63. gint page_nr);
  64. G_END_DECLS
  65. #endif /* __GTK_PRINT_OPERATION_PREVIEW_H__ */