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