home *** CD-ROM | disk | FTP | other *** search
/ Dream 52 / Amiga_Dream_52.iso / Linux / Divers / lyx-0.13.2.tar.gz / lyx-0.13.2.tar / lyx-0.13.2 / src / lyxrc.h < prev    next >
C/C++ Source or Header  |  1998-04-23  |  4KB  |  164 lines

  1. // -*- C++ -*-
  2. /* This file is part of
  3.  * ======================================================
  4.  * 
  5.  *           LyX, The Document Processor
  6.  *      
  7.  *        Copyright (C) 1995 1996 Matthias Ettrich
  8.  *           and 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 "toolbarbackend.h"
  20.  
  21. /// This contains the runtime configuration of LyX
  22. class LyXRC {
  23. public:
  24.     ///
  25.     LyXRC();
  26.     ///
  27.     ~LyXRC();
  28.     ///
  29.     int Read (LString const & filename);
  30.     ///
  31.         void Print();
  32.     ///
  33.     ToolbarBackend toolbarBackend;
  34.     ///
  35.     LString printer;
  36.     ///
  37.     LString print_command;
  38.     ///
  39.     LString print_evenpage_flag;
  40.     ///
  41.     LString print_oddpage_flag;
  42.     ///
  43.     LString print_reverse_flag;
  44.     ///
  45.     LString print_landscape_flag;
  46.     ///
  47.     LString print_to_printer;
  48.     ///
  49.     bool print_adapt_output;
  50.     ///
  51.     LString print_to_file;
  52.     ///
  53.     LString print_file_extension;
  54.     ///
  55.     LString print_extra_options;
  56.     ///
  57.     LString print_spool_command;
  58.         ///
  59.     LString print_spool_printerprefix;
  60.     ///
  61.         LString custom_export_command;
  62.     ///
  63.     LString custom_export_format;
  64.     /// program for running latex
  65.     LString latex_command;
  66.     /// postscript interpreter (in general "gs", if it is installed)
  67.     LString ps_command;
  68.     /// program for viewing postscript output (default "ghostview -swap")
  69.     LString view_ps_command;
  70.     /// program for viewing postscript pictures (default "ghostview")
  71.     LString view_pspic_command;
  72.     /// program for viewing dvi output (default "xdvi")
  73.     LString view_dvi_command;
  74.         /// default paper size for local xdvi/dvips/ghostview/whatever
  75.         LYX_PAPER_SIZE default_papersize;
  76.     /// command to run chktex incl. options
  77.     LString chktex_command;
  78.     ///
  79.     LString sgml_extra_options;
  80.     ///
  81.     LString document_path;
  82.     ///
  83.     LString template_path;
  84.     ///
  85.     LString tempdir_path;
  86.     ///
  87.     bool use_tempdir;
  88.     ///
  89.     bool auto_region_delete;
  90.     /// flag telling whether lastfiles should be checked for existance
  91.     bool check_lastfiles;
  92.     /// filename for lastfiles file
  93.     LString lastfiles;
  94.     /// maximal number of lastfiles
  95.     unsigned int num_lastfiles;
  96.     /// Zoom factor for screen fonts
  97.     unsigned int zoom;
  98.     /// Screen font sizes in points for each font size
  99.     float font_sizes[10];
  100.     /// Allow the use of scalable fonts? Default is yes.
  101.     bool use_scalable_fonts;
  102.     /// DPI of monitor
  103.     float dpi;
  104.     ///
  105.     LString fontenc;
  106.     ///
  107.     LString roman_font_name;
  108.     ///
  109.     LString sans_font_name;
  110.     ///
  111.     LString typewriter_font_name;
  112.     ///
  113.     LString menu_font_name;
  114.     ///
  115.     LString popup_font_name;
  116.     ///
  117.     LString font_norm;
  118.     ///
  119.     unsigned int autosave;
  120.     ///
  121.     LString fax_command;
  122.     ///
  123.     LString phone_book;
  124.     ///
  125.     LString fax_program;
  126.     ///
  127.     LString ascii_roff_command;
  128.     ///
  129.     unsigned int ascii_linelen;
  130.     /// Accept compound words in spellchecker?
  131.     bool isp_accept_compound;
  132.     /// Pass input encoding switch to ispell?
  133.     bool isp_use_input_encoding;
  134.     /// Use alternate language?
  135.     bool isp_use_alt_lang;
  136.     /// Use personal dictionary?
  137.     bool isp_use_pers_dict;
  138.     /// Use escape chars?
  139.     bool isp_use_esc_chars;
  140.     /// Alternate language for ispell
  141.     LString isp_alt_lang;
  142.     /// Alternate personal dictionary file for ispell
  143.     LString isp_pers_dict;
  144.     /// Escape characters
  145.     LString isp_esc_chars;
  146.     ///
  147.     bool use_kbmap;
  148.     /// Ask for confirmation of exit when there are unsaved documents?
  149.     bool exit_confirmation;
  150.     /// Should we display short-cut information in the minibuffer?
  151.     bool display_shortcuts;
  152.     ///
  153.     LString primary_kbmap;
  154.     ///
  155.     LString secondary_kbmap;
  156.     ///
  157.     LString lyxpipes;
  158.  
  159. private:
  160.     void defaultKeyBindings();
  161. };
  162.  
  163. #endif
  164.