2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-1999 The LyX Team.
10 * ======================================================*/
21 /// This contains the runtime configuration of LyX
29 int Read (string const & filename);
32 /// Is a bind file already (or currently) read?
35 int ReadBindFile(string name = "cua");
43 string print_evenpage_flag;
45 string print_oddpage_flag;
47 string print_pagerange_flag;
49 string print_copies_flag;
51 string print_collcopies_flag;
53 string print_reverse_flag;
55 string print_landscape_flag;
57 string print_to_printer;
59 bool print_adapt_output;
63 string print_file_extension;
65 string print_extra_options;
67 string print_spool_command;
69 string print_spool_printerprefix;
71 string print_paper_flag;
73 string print_paper_dimension_flag;
75 string custom_export_command;
77 string custom_export_format;
78 /// program for running latex
80 /// program for performing literate programming
81 string literate_command;
82 string literate_extension;
83 string literate_error_filter;
84 /// program for compiling
86 string build_error_filter;
87 /// program for running relyx
89 /// postscript interpreter (in general "gs", if it is installed)
91 /// program for viewing postscript output (default "ghostview -swap")
92 string view_ps_command;
93 /// program for viewing postscript pictures (default "ghostview")
94 string view_pspic_command;
95 /// program for viewing dvi output (default "xdvi")
96 string view_dvi_command;
97 /// default paper size for local xdvi/dvips/ghostview/whatever
98 LYX_PAPER_SIZE default_papersize;
99 /// command to run chktex incl. options
100 string chktex_command;
101 /// command to run an html converter incl. options
104 string sgml_extra_options;
106 string document_path;
108 string template_path;
114 bool auto_region_delete;
115 /// flag telling whether lastfiles should be checked for existance
116 bool check_lastfiles;
117 /// filename for lastfiles file
119 /// maximal number of lastfiles
120 unsigned int num_lastfiles;
121 /// Zoom factor for screen fonts
123 /// Screen font sizes in points for each font size
124 float font_sizes[10];
125 /// Allow the use of scalable fonts? Default is yes.
126 bool use_scalable_fonts;
132 string roman_font_name;
134 string sans_font_name;
136 string typewriter_font_name;
138 string menu_font_name;
140 string popup_font_name;
144 unsigned int autosave;
152 string ascii_roff_command;
154 unsigned int ascii_linelen;
157 /// Accept compound words in spellchecker?
158 bool isp_accept_compound;
159 /// Pass input encoding switch to ispell?
160 bool isp_use_input_encoding;
161 /// Use alternate language?
162 bool isp_use_alt_lang;
163 /// Use personal dictionary?
164 bool isp_use_pers_dict;
165 /// Use escape chars?
166 bool isp_use_esc_chars;
167 /// Alternate language for ispell
169 /// Alternate personal dictionary file for ispell
170 string isp_pers_dict;
171 /// Escape characters
172 string isp_esc_chars;
175 /// Ask for confirmation of exit when there are unsaved documents?
176 bool exit_confirmation;
177 /// Should we display short-cut information in the minibuffer?
178 bool display_shortcuts;
180 string primary_kbmap;
182 string secondary_kbmap;
188 void defaultKeyBindings();