]> git.lyx.org Git - lyx.git/blob - src/lyxrc.h
white-space changes, removed definitions.h several enum changes because of this,...
[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-1999 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 "toolbar.h"
20 #include "bufferparams.h"
21
22 /// This contains the runtime configuration of LyX
23 class LyXRC {
24 public:
25         ///
26         LyXRC();
27         ///
28         int Read (string const & filename);
29         ///
30         void Print();
31         /// Is a bind file already (or currently) read?
32         bool hasBindFile;
33         ///
34         int ReadBindFile(string const & name = "cua");
35         ///
36         Toolbar toolbar;
37         ///
38         string printer;
39         ///
40         string print_command;
41         ///
42         string print_evenpage_flag;
43         ///
44         string print_oddpage_flag;
45         ///
46         string print_pagerange_flag;
47         ///
48         string print_copies_flag;
49         ///
50         string print_collcopies_flag;
51         ///
52         string print_reverse_flag;
53         ///
54         string print_landscape_flag;
55         ///
56         string print_to_printer;
57         ///
58         bool print_adapt_output;
59         ///
60         string print_to_file;
61         ///
62         string print_file_extension;
63         ///
64         string print_extra_options;
65         ///
66         string print_spool_command;
67         ///
68         string print_spool_printerprefix;
69         ///
70         string print_paper_flag;
71         ///
72         string print_paper_dimension_flag;
73         ///
74         string custom_export_command;
75         ///
76         string custom_export_format;
77         /// program for running latex
78         string latex_command;
79         /// program for performing literate programming
80         string literate_command;
81         string literate_extension;
82         string literate_error_filter;
83         /// program for compiling
84         string build_command;
85         string build_error_filter;
86         /// program for running relyx
87         string relyx_command;
88         /// postscript interpreter (in general "gs", if it is installed)
89         string ps_command;
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
101         string html_command;
102         ///
103         string sgml_extra_options;
104         ///
105         string document_path;
106         ///
107         string template_path;
108         ///
109         string tempdir_path;
110         ///
111         bool use_tempdir;
112         ///
113         bool auto_region_delete;
114         /// flag telling whether lastfiles should be checked for existance
115         bool check_lastfiles;
116         /// filename for lastfiles file
117         string lastfiles;
118         /// maximal number of lastfiles
119         unsigned int num_lastfiles;
120         /// Zoom factor for screen fonts
121         unsigned int zoom;
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;
126         /// DPI of monitor
127         float dpi;
128         ///
129         string fontenc;
130         ///
131         string roman_font_name;
132         ///
133         string sans_font_name;
134         ///
135         string typewriter_font_name;
136         ///
137         string menu_font_name;
138         ///
139         string popup_font_name;
140         ///
141         string font_norm;
142         ///
143         unsigned int autosave;
144         ///
145         string fax_command;
146         ///
147         string phone_book;
148         ///
149         string fax_program;
150         ///
151         string ascii_roff_command;
152         ///
153         unsigned int ascii_linelen;
154         /// Ispell command
155         string isp_command;
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
167         string isp_alt_lang;
168         /// Alternate personal dictionary file for ispell
169         string isp_pers_dict;
170         /// Escape characters
171         string isp_esc_chars;
172         ///
173         bool use_kbmap;
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;
178         ///
179         string primary_kbmap;
180         ///
181         string secondary_kbmap;
182         ///
183         string lyxpipes;
184
185 private:
186         ///
187         void defaultKeyBindings();
188 };
189
190 #endif