2 /* This file is part of
3 * ======================================================
5 * LyX, The Document Processor
7 * Copyright (C) 1995 1996 Matthias Ettrich
10 *======================================================*/
21 /// This contains the runtime configuration of LyX
29 int Read (LString const & filename);
32 /// Is a bind file already (or currently) read?
35 int ReadBindFile(LString name = "cua");
41 LString print_command;
43 LString print_evenpage_flag;
45 LString print_oddpage_flag;
47 LString print_pagerange_flag;
49 LString print_copies_flag;
51 LString print_collcopies_flag;
53 LString print_reverse_flag;
55 LString print_landscape_flag;
57 LString print_to_printer;
59 bool print_adapt_output;
61 LString print_to_file;
63 LString print_file_extension;
65 LString print_extra_options;
67 LString print_spool_command;
69 LString print_spool_printerprefix;
71 LString print_paper_flag;
73 LString print_paper_dimension_flag;
75 LString custom_export_command;
77 LString custom_export_format;
78 /// program for running latex
79 LString latex_command;
80 /// program for performing literate programming
81 LString literate_command;
82 LString literate_extension;
83 LString literate_error_filter;
84 /// program for compiling
85 LString build_command;
86 LString build_error_filter;
87 /// program for running relyx
88 LString relyx_command;
89 /// postscript interpreter (in general "gs", if it is installed)
91 /// program for viewing postscript output (default "ghostview -swap")
92 LString view_ps_command;
93 /// program for viewing postscript pictures (default "ghostview")
94 LString view_pspic_command;
95 /// program for viewing dvi output (default "xdvi")
96 LString view_dvi_command;
97 /// default paper size for local xdvi/dvips/ghostview/whatever
98 LYX_PAPER_SIZE default_papersize;
99 /// command to run chktex incl. options
100 LString chktex_command;
102 LString sgml_extra_options;
104 LString document_path;
106 LString template_path;
108 LString tempdir_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 LString roman_font_name;
132 LString sans_font_name;
134 LString typewriter_font_name;
136 LString menu_font_name;
138 LString popup_font_name;
142 unsigned int autosave;
150 LString 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
166 LString isp_alt_lang;
167 /// Alternate personal dictionary file for ispell
168 LString isp_pers_dict;
169 /// Escape characters
170 LString 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 LString primary_kbmap;
180 LString secondary_kbmap;
186 void defaultKeyBindings();