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 * ====================================================== */
21 #include "ToolbarDefaults.h"
22 #include "bufferparams.h"
27 /// This contains the runtime configuration of LyX
34 int read (string const & filename);
36 void write(string const & filename) const;
40 void output(ostream & os) const;
41 /// Is a bind file already (or currently) read?
44 int ReadBindFile(string const & name = "cua");
46 ToolbarDefaults toolbardefaults;
52 string print_evenpage_flag;
54 string print_oddpage_flag;
56 string print_pagerange_flag;
58 string print_copies_flag;
60 string print_collcopies_flag;
62 string print_reverse_flag;
64 string print_landscape_flag;
66 string print_to_printer;
68 bool print_adapt_output;
72 string print_file_extension;
74 string print_extra_options;
76 string print_spool_command;
78 string print_spool_printerprefix;
80 string print_paper_flag;
82 string print_paper_dimension_flag;
84 string custom_export_command;
86 string custom_export_format;
89 /// program for running latex
92 string pdflatex_command;
94 string pdf_to_ps_command;
96 string dvi_to_ps_command;
97 /// program for performing literate programming
98 string literate_command;
99 string literate_extension;
100 string literate_error_filter;
101 /// program for compiling
102 string build_command;
103 string build_error_filter;
104 /// program for running relyx
105 string relyx_command;
106 /// postscript interpreter (in general "gs", if it is installed)
108 /// program for viewing postscript output (default "ghostview -swap")
109 string view_ps_command;
110 /// program for viewing postscript pictures (default "ghostview")
111 string view_pspic_command;
112 /// program for viewing dvi output (default "xdvi")
113 string view_dvi_command;
114 /// option for telling the dvi viewer about the paper size
115 string view_dvi_paper_option;
116 /// program for viewing pdf output (default "xpdf")
117 string view_pdf_command;
118 /// default paper size for local xdvi/dvips/ghostview/whatever
119 BufferParams::PAPER_SIZE default_papersize;
120 /// command to run chktex incl. options
121 string chktex_command;
122 /// command to run an html converter incl. options
125 string document_path;
127 string template_path;
133 bool auto_region_delete;
134 /// flag telling whether lastfiles should be checked for existance
135 bool check_lastfiles;
136 /// filename for lastfiles file
138 /// maximal number of lastfiles
139 unsigned int num_lastfiles;
140 /// shall a backup file be created
142 /// A directory for storing backup files
143 string backupdir_path;
144 /// Zoom factor for screen fonts
146 /// Screen font sizes in points for each font size
147 float font_sizes[10];
148 /// Allow the use of scalable fonts? Default is yes.
149 bool use_scalable_fonts;
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;
167 string font_norm_menu;
169 unsigned int autosave;
177 string ascii_roff_command;
179 unsigned int ascii_linelen;
182 /// Accept compound words in spellchecker?
183 bool isp_accept_compound;
184 /// Pass input encoding switch to ispell?
185 bool isp_use_input_encoding;
186 /// Use alternate language?
187 bool isp_use_alt_lang;
188 /// Use personal dictionary?
189 bool isp_use_pers_dict;
190 /// Use escape chars?
191 bool isp_use_esc_chars;
192 /// Alternate language for ispell
194 /// Alternate personal dictionary file for ispell
195 string isp_pers_dict;
196 /// Escape characters
197 string isp_esc_chars;
200 /// Ask for confirmation of exit when there are unsaved documents?
201 bool exit_confirmation;
202 /// Should we display short-cut information in the minibuffer?
203 bool display_shortcuts;
205 string primary_kbmap;
207 string secondary_kbmap;
211 string date_insert_format;
213 string language_package;
215 bool language_auto_begin;
217 bool language_auto_end;
219 string language_command_begin;
221 string language_command_end;
228 /// Do we have to use a GUI?
231 string linuxdoc_to_lyx_command;
233 string linuxdoc_to_html_command;
235 string linuxdoc_to_latex_command;
237 string docbook_to_dvi_command;
239 string docbook_to_html_command;
241 string docbook_to_pdf_command;
243 typedef map<string, int> Bindings;
248 void defaultKeyBindings();