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 {
24 // after 1.1.6 I will use a LyXRCStruct here and then this can be made
25 // noncopyable again. For now I want to minimise changes. ARRae 20001010
33 int read (string const & filename);
35 void write(string const & filename) const;
39 void output(std::ostream & os) const;
40 /// Is a bind file already (or currently) read?
43 int ReadBindFile(string const & name = "cua");
53 string print_evenpage_flag;
55 string print_oddpage_flag;
57 string print_pagerange_flag;
59 string print_copies_flag;
61 string print_collcopies_flag;
63 string print_reverse_flag;
65 string print_landscape_flag;
67 string print_to_printer;
69 bool print_adapt_output;
73 string print_file_extension;
75 string print_extra_options;
77 string print_spool_command;
79 string print_spool_printerprefix;
81 string print_paper_flag;
83 string print_paper_dimension_flag;
85 string custom_export_command;
87 string custom_export_format;
90 /// postscript interpreter (in general "gs", if it is installed)
92 /// option for telling the dvi viewer about the paper size
93 string view_dvi_paper_option;
94 /// default paper size for local xdvi/dvips/ghostview/whatever
95 BufferParams::PAPER_SIZE default_papersize;
96 /// command to run chktex incl. options
97 string chktex_command;
101 string template_path;
107 bool auto_region_delete;
108 /// flag telling whether lastfiles should be checked for existance
109 bool check_lastfiles;
110 /// filename for lastfiles file
112 /// maximal number of lastfiles
113 unsigned int num_lastfiles;
114 /// shall a backup file be created
116 /// A directory for storing backup files
117 string backupdir_path;
118 /// Zoom factor for screen fonts
120 /// parameter for button_4 and button_5 (scrollwheel)
121 unsigned int wheel_jump;
122 /// Screen font sizes in points for each font size
123 float font_sizes[10];
124 /// Allow the use of scalable fonts? Default is yes.
125 bool use_scalable_fonts;
128 /// Whether lyx should handle deadkeys by itself
129 bool override_x_deadkeys;
133 string roman_font_name;
135 string sans_font_name;
137 string typewriter_font_name;
139 string menu_font_name;
141 string popup_font_name;
154 FontEncoding font_norm_type;
156 void set_font_norm_type();
158 string font_norm_menu;
160 unsigned int autosave;
168 string ascii_roff_command;
170 unsigned int ascii_linelen;
173 /// Accept compound words in spellchecker?
174 bool isp_accept_compound;
175 /// Pass input encoding switch to ispell?
176 bool isp_use_input_encoding;
177 /// Use alternate language?
178 bool isp_use_alt_lang;
179 /// Use personal dictionary?
180 bool isp_use_pers_dict;
181 /// Use escape chars?
182 bool isp_use_esc_chars;
183 /// Alternate language for ispell
185 /// Alternate personal dictionary file for ispell
186 string isp_pers_dict;
187 /// Escape characters
188 string isp_esc_chars;
191 /// Ask for confirmation of exit when there are unsaved documents?
192 bool exit_confirmation;
193 /// Should we display short-cut information in the minibuffer?
194 bool display_shortcuts;
196 string primary_kbmap;
198 string secondary_kbmap;
202 string date_insert_format;
204 string language_package;
206 bool language_auto_begin;
208 bool language_auto_end;
210 string language_command_begin;
212 string language_command_end;
218 bool mark_foreign_language;
221 /// Do we have to use a GUI?
224 bool new_ask_filename;
226 string default_language;
228 bool cursor_follows_scrollbar;
234 extern LyXRC system_lyxrc;