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 * ======================================================*/
21 /// This contains the runtime configuration of LyX
27 int Read (string const & filename);
30 /// Is a bind file already (or currently) read?
33 int ReadBindFile(string const & name = "cua");
41 string print_evenpage_flag;
43 string print_oddpage_flag;
45 string print_pagerange_flag;
47 string print_copies_flag;
49 string print_collcopies_flag;
51 string print_reverse_flag;
53 string print_landscape_flag;
55 string print_to_printer;
57 bool print_adapt_output;
61 string print_file_extension;
63 string print_extra_options;
65 string print_spool_command;
67 string print_spool_printerprefix;
69 string print_paper_flag;
71 string print_paper_dimension_flag;
73 string custom_export_command;
75 string custom_export_format;
76 /// program for running latex
78 /// program for performing literate programming
79 string literate_command;
80 string literate_extension;
81 string literate_error_filter;
82 /// program for compiling
84 string build_error_filter;
85 /// program for running relyx
87 /// postscript interpreter (in general "gs", if it is installed)
89 /// program for viewing postscript output (default "ghostview -swap")
90 string view_ps_command;
91 /// program for viewing postscript pictures (default "ghostview")
92 string view_pspic_command;
93 /// program for viewing dvi output (default "xdvi")
94 string view_dvi_command;
95 /// default paper size for local xdvi/dvips/ghostview/whatever
96 LYX_PAPER_SIZE default_papersize;
97 /// command to run chktex incl. options
98 string chktex_command;
99 /// command to run an html converter incl. options
102 string sgml_extra_options;
104 string document_path;
106 string template_path;
112 bool auto_region_delete;
113 /// flag telling whether lastfiles should be checked for existance
114 bool check_lastfiles;
115 /// filename for lastfiles file
117 /// maximal number of lastfiles
118 unsigned int num_lastfiles;
119 /// Zoom factor for screen fonts
121 /// Screen font sizes in points for each font size
122 float font_sizes[10];
123 /// Allow the use of scalable fonts? Default is yes.
124 bool use_scalable_fonts;
130 string roman_font_name;
132 string sans_font_name;
134 string typewriter_font_name;
136 string menu_font_name;
138 string popup_font_name;
142 unsigned int autosave;
150 string ascii_roff_command;
152 unsigned int ascii_linelen;
155 /// Accept compound words in spellchecker?
156 bool isp_accept_compound;
157 /// Pass input encoding switch to ispell?
158 bool isp_use_input_encoding;
159 /// Use alternate language?
160 bool isp_use_alt_lang;
161 /// Use personal dictionary?
162 bool isp_use_pers_dict;
163 /// Use escape chars?
164 bool isp_use_esc_chars;
165 /// Alternate language for ispell
167 /// Alternate personal dictionary file for ispell
168 string isp_pers_dict;
169 /// Escape characters
170 string isp_esc_chars;
173 /// Ask for confirmation of exit when there are unsaved documents?
174 bool exit_confirmation;
175 /// Should we display short-cut information in the minibuffer?
176 bool display_shortcuts;
178 string primary_kbmap;
180 string secondary_kbmap;
186 void defaultKeyBindings();