1 | #ifndef __TEST_PRINT_FILE_OPERATION_H__ |
2 | #define __TEST_PRINT_FILE_OPERATION_H__ |
3 | |
4 | #include <gtk/gtk.h> |
5 | |
6 | G_BEGIN_DECLS |
7 | |
8 | #define TEST_TYPE_PRINT_FILE_OPERATION (test_print_file_operation_get_type ()) |
9 | #define TEST_PRINT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), TEST_TYPE_PRINT_FILE_OPERATION, TestPrintFileOperation)) |
10 | #define TEST_IS_PRINT_FILE_OPERATION(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), TEST_TYPE_PRINT_FILE_OPERATION)) |
11 | |
12 | typedef struct _TestPrintFileOperationClass TestPrintFileOperationClass; |
13 | typedef struct _TestPrintFileOperationPrivate TestPrintFileOperationPrivate; |
14 | typedef struct _TestPrintFileOperation TestPrintFileOperation; |
15 | |
16 | struct _TestPrintFileOperation |
17 | { |
18 | GtkPrintOperation parent_instance; |
19 | |
20 | /* < private > */ |
21 | char *filename; |
22 | double font_size; |
23 | int lines_per_page; |
24 | |
25 | |
26 | char **lines; |
27 | int num_lines; |
28 | int num_pages; |
29 | }; |
30 | |
31 | struct _TestPrintFileOperationClass |
32 | { |
33 | GtkPrintOperationClass parent_class; |
34 | }; |
35 | |
36 | GType test_print_file_operation_get_type (void); |
37 | TestPrintFileOperation *test_print_file_operation_new (const char *filename); |
38 | void test_print_file_operation_set_font_size (TestPrintFileOperation *op, |
39 | double points); |
40 | |
41 | G_END_DECLS |
42 | |
43 | #endif /* __TEST_PRINT_FILE_OPERATION_H__ */ |
44 | |