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;
91 string literate_extension;
92 /// program for running relyx
94 /// postscript interpreter (in general "gs", if it is installed)
96 /// option for telling the dvi viewer about the paper size
97 string view_dvi_paper_option;
98 /// default paper size for local xdvi/dvips/ghostview/whatever
99 BufferParams::PAPER_SIZE default_papersize;
100 /// command to run chktex incl. options
101 string chktex_command;
103 string document_path;
105 string template_path;
111 bool auto_region_delete;
112 /// flag telling whether lastfiles should be checked for existance
113 bool check_lastfiles;
114 /// filename for lastfiles file
116 /// maximal number of lastfiles
117 unsigned int num_lastfiles;
118 /// shall a backup file be created
120 /// A directory for storing backup files
121 string backupdir_path;
122 /// Zoom factor for screen fonts
124 /// parameter for button_4 and button_5 (scrollwheel)
125 unsigned int wheel_jump;
126 /// Screen font sizes in points for each font size
127 float font_sizes[10];
128 /// Allow the use of scalable fonts? Default is yes.
129 bool use_scalable_fonts;
132 /// Whether lyx should handle deadkeys by itself
133 bool override_x_deadkeys;
137 string roman_font_name;
139 string sans_font_name;
141 string typewriter_font_name;
143 string menu_font_name;
145 string popup_font_name;
158 FontEncoding font_norm_type;
160 void set_font_norm_type();
162 string font_norm_menu;
164 unsigned int autosave;
172 string ascii_roff_command;
174 unsigned int ascii_linelen;
177 /// Accept compound words in spellchecker?
178 bool isp_accept_compound;
179 /// Pass input encoding switch to ispell?
180 bool isp_use_input_encoding;
181 /// Use alternate language?
182 bool isp_use_alt_lang;
183 /// Use personal dictionary?
184 bool isp_use_pers_dict;
185 /// Use escape chars?
186 bool isp_use_esc_chars;
187 /// Alternate language for ispell
189 /// Alternate personal dictionary file for ispell
190 string isp_pers_dict;
191 /// Escape characters
192 string isp_esc_chars;
195 /// Ask for confirmation of exit when there are unsaved documents?
196 bool exit_confirmation;
197 /// Should we display short-cut information in the minibuffer?
198 bool display_shortcuts;
200 string primary_kbmap;
202 string secondary_kbmap;
206 string date_insert_format;
208 string language_package;
210 bool language_auto_begin;
212 bool language_auto_end;
214 string language_command_begin;
216 string language_command_end;
222 bool mark_foreign_language;
225 /// Do we have to use a GUI?
228 string linuxdoc_to_lyx_command;
230 bool new_ask_filename;
232 string default_language;
234 bool cursor_follows_scrollbar;
240 extern LyXRC system_lyxrc;