Merge pull request #3757 from andy5995/iss-3752
[geany-mirror.git] / src / printing.h
blob8781447554c9a4c549c8dca3fb3f8d792af64ab3
1 /*
2 * printing.h - this file is part of Geany, a fast and lightweight IDE
4 * Copyright 2007 The Geany contributors
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License along
17 * with this program; if not, write to the Free Software Foundation, Inc.,
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 #ifndef GEANY_PRINTING_H
23 #define GEANY_PRINTING_H 1
25 #include "document.h"
27 #include <glib.h>
29 G_BEGIN_DECLS
31 /* General printing preferences. */
32 typedef struct PrintingPrefs
34 gboolean use_gtk_printing;
35 gboolean print_line_numbers;
36 gboolean print_page_numbers;
37 gboolean print_page_header;
38 gboolean page_header_basename;
39 gchar *page_header_datefmt;
40 gchar *external_print_cmd;
41 } PrintingPrefs;
43 extern PrintingPrefs printing_prefs;
46 void printing_page_setup_gtk(void);
48 void printing_print_doc(GeanyDocument *doc);
50 G_END_DECLS
52 #endif /* GEANY_PRINTING_H */