2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright 1995 Matthias Ettrich
8 * Copyright 1995-2000 The LyX Team.
10 * ====================================================== */
19 #include "bufferparams.h"
21 /// This contains the runtime configuration of LyX
28 int read (string const & filename);
30 void write(string const & filename) const;
34 void output(std::ostream & os) const;
35 /// Is a bind file already (or currently) read?
38 int ReadBindFile(string const & name = "cua");
48 string print_evenpage_flag;
50 string print_oddpage_flag;
52 string print_pagerange_flag;
54 string print_copies_flag;
56 string print_collcopies_flag;
58 string print_reverse_flag;
60 string print_landscape_flag;
62 string print_to_printer;
64 bool print_adapt_output;
68 string print_file_extension;
70 string print_extra_options;
72 string print_spool_command;
74 string print_spool_printerprefix;
76 string print_paper_flag;
78 string print_paper_dimension_flag;
80 string custom_export_command;
82 string custom_export_format;
85 /// program for running latex
88 string pdflatex_command;
90 string pdf_to_ps_command;
92 string dvi_to_ps_command;
93 /// program for performing literate programming
94 string literate_command;
95 string literate_extension;
96 string literate_error_filter;
97 /// program for compiling
99 string build_error_filter;
100 /// program for running relyx
101 string relyx_command;
102 /// postscript interpreter (in general "gs", if it is installed)
104 /// program for viewing postscript output (default "ghostview -swap")
105 string view_ps_command;
106 /// program for viewing postscript pictures (default "ghostview")
107 string view_pspic_command;
108 /// program for viewing dvi output (default "xdvi")
109 string view_dvi_command;
110 /// option for telling the dvi viewer about the paper size
111 string view_dvi_paper_option;
112 /// program for viewing pdf output (default "xpdf")
113 string view_pdf_command;
114 /// default paper size for local xdvi/dvips/ghostview/whatever
115 BufferParams::PAPER_SIZE default_papersize;
116 /// command to run chktex incl. options
117 string chktex_command;
118 /// command to run an html converter incl. options
121 string document_path;
123 string template_path;
129 bool auto_region_delete;
130 /// flag telling whether lastfiles should be checked for existance
131 bool check_lastfiles;
132 /// filename for lastfiles file
134 /// maximal number of lastfiles
135 unsigned int num_lastfiles;
136 /// shall a backup file be created
138 /// A directory for storing backup files
139 string backupdir_path;
140 /// Zoom factor for screen fonts
142 /// parameter for button_4 and button_5 (scrollwheel)
143 unsigned int wheel_jump;
144 /// Screen font sizes in points for each font size
145 float font_sizes[10];
146 /// Allow the use of scalable fonts? Default is yes.
147 bool use_scalable_fonts;
150 /// Whether lyx should handle deadkeys by itself
151 bool override_x_deadkeys;
155 string roman_font_name;
157 string sans_font_name;
159 string typewriter_font_name;
161 string menu_font_name;
163 string popup_font_name;
171 FontEncoding font_norm_type;
173 void set_font_norm_type();
175 string font_norm_menu;
177 unsigned int autosave;
185 string ascii_roff_command;
187 unsigned int ascii_linelen;
190 /// Accept compound words in spellchecker?
191 bool isp_accept_compound;
192 /// Pass input encoding switch to ispell?
193 bool isp_use_input_encoding;
194 /// Use alternate language?
195 bool isp_use_alt_lang;
196 /// Use personal dictionary?
197 bool isp_use_pers_dict;
198 /// Use escape chars?
199 bool isp_use_esc_chars;
200 /// Alternate language for ispell
202 /// Alternate personal dictionary file for ispell
203 string isp_pers_dict;
204 /// Escape characters
205 string isp_esc_chars;
208 /// Ask for confirmation of exit when there are unsaved documents?
209 bool exit_confirmation;
210 /// Should we display short-cut information in the minibuffer?
211 bool display_shortcuts;
213 string primary_kbmap;
215 string secondary_kbmap;
219 string date_insert_format;
221 string language_package;
223 bool language_auto_begin;
225 bool language_auto_end;
227 string language_command_begin;
229 string language_command_end;
235 bool mark_foreign_language;
238 /// Do we have to use a GUI?
241 string linuxdoc_to_lyx_command;
243 string linuxdoc_to_html_command;
245 string linuxdoc_to_latex_command;
247 string docbook_to_dvi_command;
249 string docbook_to_html_command;
251 string docbook_to_pdf_command;