Release 0.4.1
[xournal.git] / src / xo-file.h
blob0cc2e2e60960018124795d8deba6d8b5fc9707d2
1 #define DEFAULT_SHORTEN_MENUS \
2 "optionsAntialiasBG optionsProgressiveBG optionsLeftHanded"
4 #define GS_CMDLINE \
5 "gs -sDEVICE=bmp16m -r%f -q -sOutputFile=- " \
6 "-dNOPAUSE -dBATCH -dEPSCrop -dTextAlphaBits=4 -dGraphicsAlphaBits=4 %s"
8 extern int GS_BITMAP_DPI, PDFTOPPM_PRINTING_DPI;
10 #define TMPDIR_TEMPLATE "/tmp/xournalpdf.XXXXXX"
12 #define PDFTOPPM_ARGV \
13 { "pdftoppm", "-q", "-f", pageno_str, "-l", pageno_str, \
14 "-r", dpi_str, pdf_filename, ppm_root, NULL }
16 void new_journal(void);
17 gboolean save_journal(const char *filename);
18 gboolean close_journal(void);
19 gboolean open_journal(char *filename);
21 struct Background *attempt_load_pix_bg(char *filename, gboolean attach);
22 GList *attempt_load_gv_bg(char *filename);
23 struct Background *attempt_screenshot_bg(void);
25 void cancel_bgpdf_request(struct BgPdfRequest *req);
26 void add_bgpdf_request(int pageno, double zoom, gboolean printing);
27 void bgpdf_spawn_child(void);
28 void shutdown_bgpdf(void);
29 gboolean init_bgpdf(char *pdfname, gboolean create_pages, int file_domain);
31 void bgpdf_create_page_with_bg(int pageno, struct BgPdfPage *bgpg);
32 void bgpdf_update_bg(int pageno, struct BgPdfPage *bgpg);
34 void init_mru(void);
35 void update_mru_menu(void);
36 void new_mru_entry(char *name);
37 void delete_mru_entry(int which);
38 void save_mru_list(void);
40 void init_config_default(void);
41 void load_config_from_file(void);
42 void save_config_to_file(void);