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 * ====================================================== */
20 #include "bufferparams.h"
22 /// This contains the runtime configuration of LyX
28 int read (string const & filename);
30 void write(string const & filename) const;
34 void output(ostream & os) const;
35 /// Is a bind file already (or currently) read?
38 int ReadBindFile(string const & name = "cua");
46 string print_evenpage_flag;
48 string print_oddpage_flag;
50 string print_pagerange_flag;
52 string print_copies_flag;
54 string print_collcopies_flag;
56 string print_reverse_flag;
58 string print_landscape_flag;
60 string print_to_printer;
62 bool print_adapt_output;
66 string print_file_extension;
68 string print_extra_options;
70 string print_spool_command;
72 string print_spool_printerprefix;
74 string print_paper_flag;
76 string print_paper_dimension_flag;
78 string custom_export_command;
80 string custom_export_format;
83 /// program for running latex
86 string pdflatex_command;
88 string pdf_to_ps_command;
90 string dvi_to_ps_command;
91 /// program for performing literate programming
92 string literate_command;
93 string literate_extension;
94 string literate_error_filter;
95 /// program for compiling
97 string build_error_filter;
98 /// program for running relyx
100 /// postscript interpreter (in general "gs", if it is installed)
102 /// program for viewing postscript output (default "ghostview -swap")
103 string view_ps_command;
104 /// program for viewing postscript pictures (default "ghostview")
105 string view_pspic_command;
106 /// program for viewing dvi output (default "xdvi")
107 string view_dvi_command;
108 /// option for telling the dvi viewer about the paper size
109 string view_dvi_paper_option;
110 /// program for viewing pdf output (default "xpdf")
111 string view_pdf_command;
112 /// default paper size for local xdvi/dvips/ghostview/whatever
113 BufferParams::PAPER_SIZE default_papersize;
114 /// command to run chktex incl. options
115 string chktex_command;
116 /// command to run an html converter incl. options
119 string sgml_extra_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 /// Zoom factor for screen fonts
140 /// Screen font sizes in points for each font size
141 float font_sizes[10];
142 /// Allow the use of scalable fonts? Default is yes.
143 bool use_scalable_fonts;
149 string roman_font_name;
151 string sans_font_name;
153 string typewriter_font_name;
155 string menu_font_name;
157 string popup_font_name;
161 unsigned int autosave;
169 string ascii_roff_command;
171 unsigned int ascii_linelen;
174 /// Accept compound words in spellchecker?
175 bool isp_accept_compound;
176 /// Pass input encoding switch to ispell?
177 bool isp_use_input_encoding;
178 /// Use alternate language?
179 bool isp_use_alt_lang;
180 /// Use personal dictionary?
181 bool isp_use_pers_dict;
182 /// Use escape chars?
183 bool isp_use_esc_chars;
184 /// Alternate language for ispell
186 /// Alternate personal dictionary file for ispell
187 string isp_pers_dict;
188 /// Escape characters
189 string isp_esc_chars;
192 /// Ask for confirmation of exit when there are unsaved documents?
193 bool exit_confirmation;
194 /// Should we display short-cut information in the minibuffer?
195 bool display_shortcuts;
197 string primary_kbmap;
199 string secondary_kbmap;
203 string date_insert_format;
208 void defaultKeyBindings();