]> git.donarmstrong.com Git - xournal.git/blob - src/xo-file.h
add Polish translation
[xournal.git] / src / xo-file.h
1 /*
2  *  This program is free software; you can redistribute it and/or
3  *  modify it under the terms of the GNU General Public
4  *  License as published by the Free Software Foundation; either
5  *  version 2 of the License, or (at your option) any later version.
6  *
7  *  This software is distributed in the hope that it will be useful,
8  *  but WITHOUT ANY WARRANTY; without even the implied warranty of  
9  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
10  *  General Public License for more details.
11  *
12  *  You should have received a copy of the GNU General Public License
13  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
14  */
15
16 #define DEFAULT_SHORTEN_MENUS \
17   "optionsProgressiveBG optionsLeftHanded optionsButtonSwitchMapping"
18
19 #define GS_CMDLINE \
20   "gs -sDEVICE=bmp16m -r%f -q -sOutputFile=- " \
21   "-dNOPAUSE -dBATCH -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 %s"
22
23 extern int GS_BITMAP_DPI, PDFTOPPM_PRINTING_DPI;
24
25 #define TMPDIR_TEMPLATE "/tmp/xournalpdf.XXXXXX"
26
27 void new_journal(void);
28 gboolean save_journal(const char *filename);
29 gboolean close_journal(void);
30 gboolean open_journal(char *filename);
31
32 struct Background *attempt_load_pix_bg(char *filename, gboolean attach);
33 GList *attempt_load_gv_bg(char *filename);
34 struct Background *attempt_screenshot_bg(void);
35
36 void cancel_bgpdf_request(struct BgPdfRequest *req);
37 gboolean add_bgpdf_request(int pageno, double zoom);
38 gboolean bgpdf_scheduler_callback(gpointer data);
39 void shutdown_bgpdf(void);
40 gboolean init_bgpdf(char *pdfname, gboolean create_pages, int file_domain);
41
42 void bgpdf_create_page_with_bg(int pageno, struct BgPdfPage *bgpg);
43 void bgpdf_update_bg(int pageno, struct BgPdfPage *bgpg);
44
45 void init_mru(void);
46 void update_mru_menu(void);
47 void new_mru_entry(char *name);
48 void delete_mru_entry(int which);
49 void save_mru_list(void);
50
51 void init_config_default(void);
52 void load_config_from_file(void);
53 void save_config_to_file(void);