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"
26 /// This contains the runtime configuration of LyX
33 int read (string const & filename);
35 void write(string const & filename) const;
39 void output(ostream & os) const;
40 /// Is a bind file already (or currently) read?
43 int ReadBindFile(string const & name = "cua");
45 ToolbarDefaults toolbardefaults;
51 string print_evenpage_flag;
53 string print_oddpage_flag;
55 string print_pagerange_flag;
57 string print_copies_flag;
59 string print_collcopies_flag;
61 string print_reverse_flag;
63 string print_landscape_flag;
65 string print_to_printer;
67 bool print_adapt_output;
71 string print_file_extension;
73 string print_extra_options;
75 string print_spool_command;
77 string print_spool_printerprefix;
79 string print_paper_flag;
81 string print_paper_dimension_flag;
83 string custom_export_command;
85 string custom_export_format;
88 /// program for running latex
91 string pdflatex_command;
93 string pdf_to_ps_command;
95 string dvi_to_ps_command;
96 /// program for performing literate programming
97 string literate_command;
98 string literate_extension;
99 string literate_error_filter;
100 /// program for compiling
101 string build_command;
102 string build_error_filter;
103 /// program for running relyx
104 string relyx_command;
105 /// postscript interpreter (in general "gs", if it is installed)
107 /// program for viewing postscript output (default "ghostview -swap")
108 string view_ps_command;
109 /// program for viewing postscript pictures (default "ghostview")
110 string view_pspic_command;
111 /// program for viewing dvi output (default "xdvi")
112 string view_dvi_command;
113 /// option for telling the dvi viewer about the paper size
114 string view_dvi_paper_option;
115 /// program for viewing pdf output (default "xpdf")
116 string view_pdf_command;
117 /// default paper size for local xdvi/dvips/ghostview/whatever
118 BufferParams::PAPER_SIZE default_papersize;
119 /// command to run chktex incl. options
120 string chktex_command;
121 /// command to run an html converter incl. options
124 string sgml_extra_options;
126 string document_path;
128 string template_path;
134 bool auto_region_delete;
135 /// flag telling whether lastfiles should be checked for existance
136 bool check_lastfiles;
137 /// filename for lastfiles file
139 /// maximal number of lastfiles
140 unsigned int num_lastfiles;
141 /// shall a backup file be created
143 /// Zoom factor for screen fonts
145 /// Screen font sizes in points for each font size
146 float font_sizes[10];
147 /// Allow the use of scalable fonts? Default is yes.
148 bool use_scalable_fonts;
154 string roman_font_name;
156 string sans_font_name;
158 string typewriter_font_name;
160 string menu_font_name;
162 string popup_font_name;
166 string font_norm_menu;
168 unsigned int autosave;
176 string ascii_roff_command;
178 unsigned int ascii_linelen;
181 /// Accept compound words in spellchecker?
182 bool isp_accept_compound;
183 /// Pass input encoding switch to ispell?
184 bool isp_use_input_encoding;
185 /// Use alternate language?
186 bool isp_use_alt_lang;
187 /// Use personal dictionary?
188 bool isp_use_pers_dict;
189 /// Use escape chars?
190 bool isp_use_esc_chars;
191 /// Alternate language for ispell
193 /// Alternate personal dictionary file for ispell
194 string isp_pers_dict;
195 /// Escape characters
196 string isp_esc_chars;
199 /// Ask for confirmation of exit when there are unsaved documents?
200 bool exit_confirmation;
201 /// Should we display short-cut information in the minibuffer?
202 bool display_shortcuts;
204 string primary_kbmap;
206 string secondary_kbmap;
210 string date_insert_format;
212 string language_package;
214 bool language_auto_begin;
216 bool language_auto_end;
218 string language_command_begin;
220 string language_command_end;
224 string auto_mathmode;
228 typedef map<string, int> Bindings;
233 void defaultKeyBindings();