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 /// A directory for storing backup files
144 string backupdir_path;
145 /// Zoom factor for screen fonts
147 /// Screen font sizes in points for each font size
148 float font_sizes[10];
149 /// Allow the use of scalable fonts? Default is yes.
150 bool use_scalable_fonts;
156 string roman_font_name;
158 string sans_font_name;
160 string typewriter_font_name;
162 string menu_font_name;
164 string popup_font_name;
168 string font_norm_menu;
170 unsigned int autosave;
178 string ascii_roff_command;
180 unsigned int ascii_linelen;
183 /// Accept compound words in spellchecker?
184 bool isp_accept_compound;
185 /// Pass input encoding switch to ispell?
186 bool isp_use_input_encoding;
187 /// Use alternate language?
188 bool isp_use_alt_lang;
189 /// Use personal dictionary?
190 bool isp_use_pers_dict;
191 /// Use escape chars?
192 bool isp_use_esc_chars;
193 /// Alternate language for ispell
195 /// Alternate personal dictionary file for ispell
196 string isp_pers_dict;
197 /// Escape characters
198 string isp_esc_chars;
201 /// Ask for confirmation of exit when there are unsaved documents?
202 bool exit_confirmation;
203 /// Should we display short-cut information in the minibuffer?
204 bool display_shortcuts;
206 string primary_kbmap;
208 string secondary_kbmap;
212 string date_insert_format;
214 string language_package;
216 bool language_auto_begin;
218 bool language_auto_end;
220 string language_command_begin;
222 string language_command_end;
226 string auto_mathmode;
230 typedef map<string, int> Bindings;
235 void defaultKeyBindings();