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);
31 /// Is a bind file already (or currently) read?
34 int ReadBindFile(string const & name = "cua");
42 string print_evenpage_flag;
44 string print_oddpage_flag;
46 string print_pagerange_flag;
48 string print_copies_flag;
50 string print_collcopies_flag;
52 string print_reverse_flag;
54 string print_landscape_flag;
56 string print_to_printer;
58 bool print_adapt_output;
62 string print_file_extension;
64 string print_extra_options;
66 string print_spool_command;
68 string print_spool_printerprefix;
70 string print_paper_flag;
72 string print_paper_dimension_flag;
74 string custom_export_command;
76 string custom_export_format;
77 /// program for running latex
79 /// program for performing literate programming
80 string literate_command;
81 string literate_extension;
82 string literate_error_filter;
83 /// program for compiling
85 string build_error_filter;
86 /// program for running relyx
88 /// postscript interpreter (in general "gs", if it is installed)
90 /// program for viewing postscript output (default "ghostview -swap")
91 string view_ps_command;
92 /// program for viewing postscript pictures (default "ghostview")
93 string view_pspic_command;
94 /// program for viewing dvi output (default "xdvi")
95 string view_dvi_command;
96 /// default paper size for local xdvi/dvips/ghostview/whatever
97 BufferParams::PAPER_SIZE default_papersize;
98 /// command to run chktex incl. options
99 string chktex_command;
100 /// command to run an html converter incl. options
103 string sgml_extra_options;
105 string document_path;
107 string template_path;
113 bool auto_region_delete;
114 /// flag telling whether lastfiles should be checked for existance
115 bool check_lastfiles;
116 /// filename for lastfiles file
118 /// maximal number of lastfiles
119 unsigned int num_lastfiles;
120 /// Zoom factor for screen fonts
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;
131 string roman_font_name;
133 string sans_font_name;
135 string typewriter_font_name;
137 string menu_font_name;
139 string popup_font_name;
143 unsigned int autosave;
151 string ascii_roff_command;
153 unsigned int ascii_linelen;
156 /// Accept compound words in spellchecker?
157 bool isp_accept_compound;
158 /// Pass input encoding switch to ispell?
159 bool isp_use_input_encoding;
160 /// Use alternate language?
161 bool isp_use_alt_lang;
162 /// Use personal dictionary?
163 bool isp_use_pers_dict;
164 /// Use escape chars?
165 bool isp_use_esc_chars;
166 /// Alternate language for ispell
168 /// Alternate personal dictionary file for ispell
169 string isp_pers_dict;
170 /// Escape characters
171 string isp_esc_chars;
174 /// Ask for confirmation of exit when there are unsaved documents?
175 bool exit_confirmation;
176 /// Should we display short-cut information in the minibuffer?
177 bool display_shortcuts;
179 string primary_kbmap;
181 string secondary_kbmap;
187 void defaultKeyBindings();