1999-09-27 18:44:28 +00:00
|
|
|
// -*- C++ -*-
|
|
|
|
/* This file is part of
|
|
|
|
* ======================================================
|
|
|
|
*
|
|
|
|
* LyX, The Document Processor
|
|
|
|
*
|
|
|
|
* Copyright (C) 1995 1996 Matthias Ettrich
|
|
|
|
* and the LyX Team.
|
|
|
|
*
|
|
|
|
*======================================================*/
|
|
|
|
|
1999-10-02 16:21:10 +00:00
|
|
|
#ifndef LYXRC_H
|
|
|
|
#define LYXRC_H
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
#ifdef __GNUG__
|
|
|
|
#pragma interface
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include "toolbar.h"
|
|
|
|
|
|
|
|
/// This contains the runtime configuration of LyX
|
|
|
|
class LyXRC {
|
|
|
|
public:
|
|
|
|
///
|
|
|
|
LyXRC();
|
|
|
|
///
|
|
|
|
~LyXRC();
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
int Read (string const & filename);
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
void Print();
|
|
|
|
/// Is a bind file already (or currently) read?
|
|
|
|
bool hasBindFile;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
int ReadBindFile(string name = "cua");
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
Toolbar toolbar;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string printer;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_evenpage_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_oddpage_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_pagerange_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_copies_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_collcopies_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_reverse_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_landscape_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_to_printer;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
bool print_adapt_output;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_to_file;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_file_extension;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_extra_options;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_spool_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_spool_printerprefix;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_paper_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string print_paper_dimension_flag;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string custom_export_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string custom_export_format;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// program for running latex
|
1999-10-02 16:21:10 +00:00
|
|
|
string latex_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// program for performing literate programming
|
1999-10-02 16:21:10 +00:00
|
|
|
string literate_command;
|
|
|
|
string literate_extension;
|
|
|
|
string literate_error_filter;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// program for compiling
|
1999-10-02 16:21:10 +00:00
|
|
|
string build_command;
|
|
|
|
string build_error_filter;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// program for running relyx
|
1999-10-02 16:21:10 +00:00
|
|
|
string relyx_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// postscript interpreter (in general "gs", if it is installed)
|
1999-10-02 16:21:10 +00:00
|
|
|
string ps_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// program for viewing postscript output (default "ghostview -swap")
|
1999-10-02 16:21:10 +00:00
|
|
|
string view_ps_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// program for viewing postscript pictures (default "ghostview")
|
1999-10-02 16:21:10 +00:00
|
|
|
string view_pspic_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// program for viewing dvi output (default "xdvi")
|
1999-10-02 16:21:10 +00:00
|
|
|
string view_dvi_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// default paper size for local xdvi/dvips/ghostview/whatever
|
|
|
|
LYX_PAPER_SIZE default_papersize;
|
|
|
|
/// command to run chktex incl. options
|
1999-10-02 16:21:10 +00:00
|
|
|
string chktex_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string sgml_extra_options;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string document_path;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string template_path;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string tempdir_path;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
bool use_tempdir;
|
|
|
|
///
|
|
|
|
bool auto_region_delete;
|
|
|
|
/// flag telling whether lastfiles should be checked for existance
|
|
|
|
bool check_lastfiles;
|
|
|
|
/// filename for lastfiles file
|
1999-10-02 16:21:10 +00:00
|
|
|
string lastfiles;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// maximal number of lastfiles
|
|
|
|
unsigned int num_lastfiles;
|
|
|
|
/// Zoom factor for screen fonts
|
|
|
|
unsigned int zoom;
|
|
|
|
/// Screen font sizes in points for each font size
|
|
|
|
float font_sizes[10];
|
|
|
|
/// Allow the use of scalable fonts? Default is yes.
|
|
|
|
bool use_scalable_fonts;
|
|
|
|
/// DPI of monitor
|
|
|
|
float dpi;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string fontenc;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string roman_font_name;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string sans_font_name;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string typewriter_font_name;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string menu_font_name;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string popup_font_name;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string font_norm;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
unsigned int autosave;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string fax_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string phone_book;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string fax_program;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string ascii_roff_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
unsigned int ascii_linelen;
|
|
|
|
/// Ispell command
|
1999-10-02 16:21:10 +00:00
|
|
|
string isp_command;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// Accept compound words in spellchecker?
|
|
|
|
bool isp_accept_compound;
|
|
|
|
/// Pass input encoding switch to ispell?
|
|
|
|
bool isp_use_input_encoding;
|
|
|
|
/// Use alternate language?
|
|
|
|
bool isp_use_alt_lang;
|
|
|
|
/// Use personal dictionary?
|
|
|
|
bool isp_use_pers_dict;
|
|
|
|
/// Use escape chars?
|
|
|
|
bool isp_use_esc_chars;
|
|
|
|
/// Alternate language for ispell
|
1999-10-02 16:21:10 +00:00
|
|
|
string isp_alt_lang;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// Alternate personal dictionary file for ispell
|
1999-10-02 16:21:10 +00:00
|
|
|
string isp_pers_dict;
|
1999-09-27 18:44:28 +00:00
|
|
|
/// Escape characters
|
1999-10-02 16:21:10 +00:00
|
|
|
string isp_esc_chars;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
|
|
|
bool use_kbmap;
|
|
|
|
/// Ask for confirmation of exit when there are unsaved documents?
|
|
|
|
bool exit_confirmation;
|
|
|
|
/// Should we display short-cut information in the minibuffer?
|
|
|
|
bool display_shortcuts;
|
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string primary_kbmap;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string secondary_kbmap;
|
1999-09-27 18:44:28 +00:00
|
|
|
///
|
1999-10-02 16:21:10 +00:00
|
|
|
string lyxpipes;
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
///
|
|
|
|
void defaultKeyBindings();
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|