4 * This file is part of LyX, the document processor.
5 * Licence details can be found in the file COPYING.
7 * Full author contact details are available in file CREDITS
14 #include "graphics/GraphicsTypes.h"
16 // #include <boost/utility.hpp>
18 /// This contains the runtime configuration of LyX
19 class LyXRC
//: public noncopyable {
20 // after 1.1.6 I will use a LyXRCStruct here and then this can be made
21 // noncopyable again. For now I want to minimise changes. ARRae 20001010
30 RC_PRINTPAGERANGEFLAG
,
32 RC_PRINTCOLLCOPIESFLAG
,
34 RC_PRINTLANDSCAPEFLAG
,
38 RC_PRINTFILEEXTENSION
,
39 RC_PRINTEXSTRAOPTIONS
,
40 RC_PRINTSPOOL_COMMAND
,
41 RC_PRINTSPOOL_PRINTERPREFIX
,
43 RC_PRINTPAPERDIMENSIONFLAG
,
44 RC_CUSTOM_EXPORT_COMMAND
,
45 RC_CUSTOM_EXPORT_FORMAT
,
51 RC_SCREEN_FONT_TYPEWRITER
,
52 RC_SCREEN_FONT_ROMAN_FOUNDRY
,
53 RC_SCREEN_FONT_SANS_FOUNDRY
,
54 RC_SCREEN_FONT_TYPEWRITER_FOUNDRY
,
55 RC_SCREEN_FONT_ENCODING
,
58 RC_POPUP_FONT_ENCODING
,
79 RC_VIEWDVI_PAPEROPTION
,
88 RC_SCREEN_FONT_SCALABLE
,
93 RC_CURSOR_FOLLOWS_SCROLLBAR
,
94 RC_DIALOGS_ICONIFY_WITH_MAIN
,
99 RC_MARK_FOREIGN_LANGUAGE
,
101 RC_LANGUAGE_AUTO_BEGIN
,
102 RC_LANGUAGE_AUTO_END
,
103 RC_LANGUAGE_COMMAND_BEGIN
,
104 RC_LANGUAGE_COMMAND_END
,
105 RC_LANGUAGE_COMMAND_LOCAL
,
106 RC_LANGUAGE_GLOBAL_OPTIONS
,
107 RC_LANGUAGE_USE_BABEL
,
108 RC_DATE_INSERT_FORMAT
,
115 RC_LABEL_INIT_LENGTH
,
118 RC_PREVIEW_HASHED_LABELS
,
119 RC_PREVIEW_SCALE_FACTOR
,
132 int read(string
const & filename
);
134 void write(string
const & filename
) const;
138 void output(std::ostream
& os
) const;
140 static string
const getDescription(LyXRCTags
);
148 string print_command
;
150 string print_evenpage_flag
;
152 string print_oddpage_flag
;
154 string print_pagerange_flag
;
156 string print_copies_flag
;
158 string print_collcopies_flag
;
160 string print_reverse_flag
;
162 string print_landscape_flag
;
164 string print_to_printer
;
166 bool print_adapt_output
;
168 string print_to_file
;
170 string print_file_extension
;
172 string print_extra_options
;
174 string print_spool_command
;
176 string print_spool_printerprefix
;
178 string print_paper_flag
;
180 string print_paper_dimension_flag
;
182 string custom_export_command
;
184 string custom_export_format
;
185 /// postscript interpreter (in general "gs", if it is installed)
187 /// option for telling the dvi viewer about the paper size
188 string view_dvi_paper_option
;
189 /// default paper size for local xdvi/dvips/ghostview/whatever
190 PAPER_SIZE default_papersize
;
191 /// command to run chktex incl. options
192 string chktex_command
;
194 string document_path
;
196 string template_path
;
202 bool auto_region_delete
;
203 /// flag telling whether lastfiles should be checked for existance
204 bool auto_reset_options
;
206 bool check_lastfiles
;
207 /// filename for lastfiles file
209 /// maximal number of lastfiles
210 unsigned int num_lastfiles
;
211 /// shall a backup file be created
213 /// A directory for storing backup files
214 string backupdir_path
;
215 /// Zoom factor for screen fonts
217 /// parameter for button_4 and button_5 (scrollwheel)
218 unsigned int wheel_jump
;
219 /// Screen font sizes in points for each font size
220 float font_sizes
[10];
221 /// Allow the use of scalable fonts? Default is yes.
222 bool use_scalable_fonts
;
228 string roman_font_name
;
230 string sans_font_name
;
232 string typewriter_font_name
;
234 string roman_font_foundry
;
236 string sans_font_foundry
;
238 string typewriter_font_foundry
;
240 string popup_bold_font
;
242 string popup_normal_font
;
265 FontEncoding font_norm_type
;
267 void set_font_norm_type();
269 string popup_font_encoding
;
271 unsigned int autosave
;
273 string ascii_roff_command
;
275 unsigned int ascii_linelen
;
276 /// use library instead of process
280 /// Accept compound words in spellchecker?
281 bool isp_accept_compound
;
282 /// Pass input encoding switch to ispell?
283 bool isp_use_input_encoding
;
284 /// Use alternate language?
285 bool isp_use_alt_lang
;
286 /// Use personal dictionary?
287 bool isp_use_pers_dict
;
288 /// Use escape chars?
289 bool isp_use_esc_chars
;
290 /// Alternate language for ispell
292 /// Alternate personal dictionary file for ispell
293 string isp_pers_dict
;
294 /// Escape characters
295 string isp_esc_chars
;
299 string primary_kbmap
;
301 string secondary_kbmap
;
305 string date_insert_format
;
307 string language_package
;
309 bool language_auto_begin
;
311 bool language_auto_end
;
313 string language_command_begin
;
315 string language_command_end
;
317 string language_command_local
;
319 bool language_global_options
;
321 bool language_use_babel
;
327 bool mark_foreign_language
;
329 string default_language
;
331 bool cursor_follows_scrollbar
;
333 bool dialogs_iconify_with_main
;
335 int label_init_length
;
337 lyx::graphics::DisplayType display_graphics
;
343 bool preview_hashed_labels
;
345 float preview_scale_factor
;
355 extern LyXRC system_lyxrc
;