]> git.lyx.org Git - lyx.git/blobdiff - src/lyxrc.h
Dekel's import/export patch
[lyx.git] / src / lyxrc.h
index 7eec3c242fb2c7c75381b647410e836b67c298e1..b6065dcb10c46dc21508396335fc855ee875795e 100644 (file)
 #pragma interface
 #endif
 
-#include "ToolbarDefaults.h"
 #include "bufferparams.h"
+#include <boost/utility.hpp>
 
 /// This contains the runtime configuration of LyX
-class LyXRC {
+class LyXRC //: public noncopyable {
+// after 1.1.6 I will use a LyXRCStruct here and then this can be made
+// noncopyable again.  For now I want to minimise changes.  ARRae 20001010
+{
 public:
+       ///
        LyXRC();
        ///
        void setDefaults();
@@ -38,10 +42,10 @@ public:
        ///
        int ReadBindFile(string const & name = "cua");
        ///
-       ToolbarDefaults toolbardefaults;
-       ///
        string bind_file;
        ///
+       string ui_file;
+       ///
        string printer;
        ///
        string print_command;
@@ -83,41 +87,14 @@ public:
        string custom_export_format;
        ///
        bool pdf_mode;
-       /// program for running latex
-       string latex_command;
-       ///
-       string pdflatex_command;
-       ///
-       string pdf_to_ps_command;
-       ///
-       string dvi_to_ps_command;
-        /// program for performing literate programming
-        string literate_command;
-        string literate_extension;
-        string literate_error_filter;
-        /// program for compiling
-        string build_command;
-        string build_error_filter;
-       /// program for running relyx
-       string relyx_command;
        /// postscript interpreter (in general "gs", if it is installed)
        string ps_command;
-       /// program for viewing postscript output (default "ghostview -swap")
-       string view_ps_command;
-       /// program for viewing postscript pictures (default "ghostview")
-       string view_pspic_command;
-       /// program for viewing dvi output (default "xdvi")
-       string view_dvi_command;
        /// option for telling the dvi viewer about the paper size
        string view_dvi_paper_option;
-       /// program for viewing pdf output (default "xpdf")
-       string view_pdf_command;
         /// default paper size for local xdvi/dvips/ghostview/whatever
         BufferParams::PAPER_SIZE default_papersize;
        /// command to run chktex incl. options
        string chktex_command;
-       /// command to run an html converter incl. options
-       string html_command;
        ///
        string document_path;
        ///
@@ -140,6 +117,8 @@ public:
        string backupdir_path;
        /// Zoom factor for screen fonts
        unsigned int zoom;
+       /// parameter for button_4 and button_5 (scrollwheel)
+       unsigned int wheel_jump;
        /// Screen font sizes in points for each font size
        float font_sizes[10];
        /// Allow the use of scalable fonts? Default is yes.
@@ -163,6 +142,19 @@ public:
        ///
        string font_norm;
        ///
+       enum FontEncoding {
+               ///
+               ISO_10646_1,
+               ///
+               ISO_8859_6_8,
+               ///
+               OTHER_ENCODING
+       };
+       ///
+       FontEncoding font_norm_type;
+       ///
+       void set_font_norm_type();
+       ///
        string font_norm_menu;
        ///
        unsigned int autosave;
@@ -229,19 +221,15 @@ public:
        /// Do we have to use a GUI?
        bool use_gui;
        ///
-       string linuxdoc_to_lyx_command;
-       ///
-       string linuxdoc_to_html_command;
-       ///
-       string linuxdoc_to_latex_command;
+       bool new_ask_filename;
        ///
-       string docbook_to_dvi_command;
+       string default_language;
        ///
-       string docbook_to_html_command;
-       ///
-       string docbook_to_pdf_command;
+       bool cursor_follows_scrollbar;
 };
 
+///
 extern LyXRC lyxrc;
-
+///
+extern LyXRC system_lyxrc;
 #endif