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"
20 #include <boost/utility.hpp>
22 /// This contains the runtime configuration of LyX
23 class LyXRC : public noncopyable {
30 int read (string const & filename);
32 void write(string const & filename) const;
36 void output(std::ostream & os) const;
37 /// Is a bind file already (or currently) read?
40 int ReadBindFile(string const & name = "cua");
50 string print_evenpage_flag;
52 string print_oddpage_flag;
54 string print_pagerange_flag;
56 string print_copies_flag;
58 string print_collcopies_flag;
60 string print_reverse_flag;
62 string print_landscape_flag;
64 string print_to_printer;
66 bool print_adapt_output;
70 string print_file_extension;
72 string print_extra_options;
74 string print_spool_command;
76 string print_spool_printerprefix;
78 string print_paper_flag;
80 string print_paper_dimension_flag;
82 string custom_export_command;
84 string custom_export_format;
88 string literate_extension;
89 /// program for running relyx
91 /// postscript interpreter (in general "gs", if it is installed)
93 /// option for telling the dvi viewer about the paper size
94 string view_dvi_paper_option;
95 /// default paper size for local xdvi/dvips/ghostview/whatever
96 BufferParams::PAPER_SIZE default_papersize;
97 /// command to run chktex incl. options
98 string chktex_command;
100 string document_path;
102 string template_path;
108 bool auto_region_delete;
109 /// flag telling whether lastfiles should be checked for existance
110 bool check_lastfiles;
111 /// filename for lastfiles file
113 /// maximal number of lastfiles
114 unsigned int num_lastfiles;
115 /// shall a backup file be created
117 /// A directory for storing backup files
118 string backupdir_path;
119 /// Zoom factor for screen fonts
121 /// parameter for button_4 and button_5 (scrollwheel)
122 unsigned int wheel_jump;
123 /// Screen font sizes in points for each font size
124 float font_sizes[10];
125 /// Allow the use of scalable fonts? Default is yes.
126 bool use_scalable_fonts;
129 /// Whether lyx should handle deadkeys by itself
130 bool override_x_deadkeys;
134 string roman_font_name;
136 string sans_font_name;
138 string typewriter_font_name;
140 string menu_font_name;
142 string popup_font_name;
155 FontEncoding font_norm_type;
157 void set_font_norm_type();
159 string font_norm_menu;
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;
205 string language_package;
207 bool language_auto_begin;
209 bool language_auto_end;
211 string language_command_begin;
213 string language_command_end;
219 bool mark_foreign_language;
222 /// Do we have to use a GUI?
225 string linuxdoc_to_lyx_command;
227 bool new_ask_filename;
229 string default_language;
235 //extern LyXRC system_lyxrc;