]> git.lyx.org Git - lyx.git/blob - src/lyxrc.h
New lyxrc command \override_x_deadkeys
[lyx.git] / src / lyxrc.h
1 // -*- C++ -*-
2 /* This file is part of
3  * ====================================================== 
4  * 
5  *           LyX, The Document Processor
6  *       
7  *           Copyright 1995 Matthias Ettrich
8  *           Copyright 1995-2000 The LyX Team.
9  *
10  * ====================================================== */
11
12 #ifndef LYXRC_H
13 #define LYXRC_H
14
15 #ifdef __GNUG__
16 #pragma interface
17 #endif
18
19 #include "ToolbarDefaults.h"
20 #include "bufferparams.h"
21
22 /// This contains the runtime configuration of LyX
23 class LyXRC {
24 public:
25         LyXRC();
26         ///
27         void setDefaults();
28         ///
29         int read (string const & filename);
30         ///
31         void write(string const & filename) const;
32         ///
33         void print() const;
34         ///
35         void output(std::ostream & os) const;
36         /// Is a bind file already (or currently) read?
37         bool hasBindFile;
38         ///
39         int ReadBindFile(string const & name = "cua");
40         ///
41         ToolbarDefaults toolbardefaults;
42         ///
43         string printer;
44         ///
45         string print_command;
46         ///
47         string print_evenpage_flag;
48         ///
49         string print_oddpage_flag;
50         ///
51         string print_pagerange_flag;
52         ///
53         string print_copies_flag;
54         ///
55         string print_collcopies_flag;
56         ///
57         string print_reverse_flag;
58         ///
59         string print_landscape_flag;
60         ///
61         string print_to_printer;
62         ///
63         bool print_adapt_output;
64         ///
65         string print_to_file;
66         ///
67         string print_file_extension;
68         ///
69         string print_extra_options;
70         ///
71         string print_spool_command;
72         ///
73         string print_spool_printerprefix;
74         ///
75         string print_paper_flag;
76         ///
77         string print_paper_dimension_flag;
78         ///
79         string custom_export_command;
80         ///
81         string custom_export_format;
82         ///
83         bool pdf_mode;
84         /// program for running latex
85         string latex_command;
86         ///
87         string pdflatex_command;
88         ///
89         string pdf_to_ps_command;
90         ///
91         string dvi_to_ps_command;
92         /// program for performing literate programming
93         string literate_command;
94         string literate_extension;
95         string literate_error_filter;
96         /// program for compiling
97         string build_command;
98         string build_error_filter;
99         /// program for running relyx
100         string relyx_command;
101         /// postscript interpreter (in general "gs", if it is installed)
102         string ps_command;
103         /// program for viewing postscript output (default "ghostview -swap")
104         string view_ps_command;
105         /// program for viewing postscript pictures (default "ghostview")
106         string view_pspic_command;
107         /// program for viewing dvi output (default "xdvi")
108         string view_dvi_command;
109         /// option for telling the dvi viewer about the paper size
110         string view_dvi_paper_option;
111         /// program for viewing pdf output (default "xpdf")
112         string view_pdf_command;
113         /// default paper size for local xdvi/dvips/ghostview/whatever
114         BufferParams::PAPER_SIZE default_papersize;
115         /// command to run chktex incl. options
116         string chktex_command;
117         /// command to run an html converter incl. options
118         string html_command;
119         ///
120         string document_path;
121         ///
122         string template_path;
123         ///
124         string tempdir_path;
125         ///
126         bool use_tempdir;
127         ///
128         bool auto_region_delete;
129         /// flag telling whether lastfiles should be checked for existance
130         bool check_lastfiles;
131         /// filename for lastfiles file
132         string lastfiles;
133         /// maximal number of lastfiles
134         unsigned int num_lastfiles;
135         /// shall a backup file be created
136         bool make_backup;
137         /// A directory for storing backup files
138         string backupdir_path;
139         /// Zoom factor for screen fonts
140         unsigned int zoom;
141         /// Screen font sizes in points for each font size
142         float font_sizes[10];
143         /// Allow the use of scalable fonts? Default is yes.
144         bool use_scalable_fonts;
145         /// DPI of monitor
146         float dpi;
147         /// Whether lyx should handle deadkeys by itself
148         bool override_x_deadkeys;
149         ///
150         string fontenc;
151         ///
152         string roman_font_name;
153         ///
154         string sans_font_name;
155         ///
156         string typewriter_font_name;
157         ///
158         string menu_font_name;
159         ///
160         string popup_font_name;
161         ///
162         string font_norm;
163         ///
164         string font_norm_menu;
165         ///
166         unsigned int autosave;
167         ///
168         string fax_command;
169         ///
170         string phone_book;
171         ///
172         string fax_program;
173         ///
174         string ascii_roff_command;
175         ///
176         unsigned int ascii_linelen;
177         /// Ispell command
178         string isp_command;
179         /// Accept compound words in spellchecker?
180         bool isp_accept_compound;
181         /// Pass input encoding switch to ispell?
182         bool isp_use_input_encoding;
183         /// Use alternate language?
184         bool isp_use_alt_lang;
185         /// Use personal dictionary?
186         bool isp_use_pers_dict;
187         /// Use escape chars?
188         bool isp_use_esc_chars;
189         /// Alternate language for ispell
190         string isp_alt_lang;
191         /// Alternate personal dictionary file for ispell
192         string isp_pers_dict;
193         /// Escape characters
194         string isp_esc_chars;
195         ///
196         bool use_kbmap;
197         /// Ask for confirmation of exit when there are unsaved documents?
198         bool exit_confirmation;
199         /// Should we display short-cut information in the minibuffer?
200         bool display_shortcuts;
201         ///
202         string primary_kbmap;
203         ///
204         string secondary_kbmap;
205         ///
206         string lyxpipes;
207         ///
208         string date_insert_format;
209         ///
210         string language_package;
211         ///
212         bool language_auto_begin;
213         ///
214         bool language_auto_end;
215         ///
216         string language_command_begin;
217         ///
218         string language_command_end;
219         ///
220         bool rtl_support;
221         ///
222         bool auto_number;
223         ///
224         bool show_banner;
225         /// Do we have to use a GUI?
226         bool use_gui;
227         ///
228         string linuxdoc_to_lyx_command;
229         ///
230         string linuxdoc_to_html_command;
231         ///
232         string linuxdoc_to_latex_command;
233         ///
234         string docbook_to_dvi_command;
235         ///
236         string docbook_to_html_command;
237         ///
238         string docbook_to_pdf_command;
239 };
240
241 extern LyXRC lyxrc;
242
243 #endif