]> git.lyx.org Git - lyx.git/blobdiff - src/LyXRC.h
Further cleanup of InsetFlex, InsetCollapsable and InsetLayout:
[lyx.git] / src / LyXRC.h
index 13a348162543fca6f25081155a837d649c8f6861..e5c5958c1b3488b00cf5627862998e50fe84800f 100644 (file)
@@ -19,9 +19,9 @@
 #define LYXRC_H
 
 #include "paper.h"
-#include "graphics/GraphicsTypes.h"
 
-#include <iosfwd>
+#include "support/strfwd.h"
+
 #include <string>
 
 
@@ -32,9 +32,7 @@ namespace support { class FileName; }
 class Lexer;
 
 /// This contains the runtime configuration of LyX
-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
+class LyXRC
 {
 public:
        enum LyXRCTags {
@@ -58,6 +56,7 @@ public:
                RC_CUSTOM_EXPORT_COMMAND,
                RC_CUSTOM_EXPORT_FORMAT,
                RC_DATE_INSERT_FORMAT,
+               RC_DEFFILE,
                RC_DEFAULT_LANGUAGE,
                RC_DEFAULT_PAPERSIZE,
                RC_DIALOGS_ICONIFY_WITH_MAIN,
@@ -139,6 +138,7 @@ public:
                RC_USE_ESC_CHARS,
                RC_USE_INP_ENC,
                RC_USE_PERS_DICT,
+               RC_USE_PIXMAP_CACHE,
                RC_USE_SPELL_LIB,
                RC_VIEWDVI_PAPEROPTION,
                RC_VIEWER,
@@ -160,9 +160,10 @@ public:
        ///
        void write(support::FileName const & filename,
                   bool ignore_system_lyxrc) const;
-       ///
+       /// write rc. If a specific tag is given, only output that one.
        void write(std::ostream & os,
-                  bool ignore_system_lyxrc) const;
+                  bool ignore_system_lyxrc, 
+                  std::string const & tag = std::string()) const;
        ///
        void print() const;
        // FIXME unused (was used for xforms. Do we still need this?)
@@ -170,6 +171,8 @@ public:
        ///
        std::string bind_file;
        ///
+       std::string def_file;
+       ///
        std::string ui_file;
        ///
        std::string printer;
@@ -289,6 +292,8 @@ public:
        bool isp_use_alt_lang;
        /// Use personal dictionary?
        bool isp_use_pers_dict;
+       /// Use pixmap cache?
+       bool use_pixmap_cache;
        /// Use escape chars?
        bool isp_use_esc_chars;
        /// Alternate language for ispell
@@ -338,7 +343,8 @@ public:
        ///
        int label_init_length;
        ///
-       graphics::DisplayType display_graphics;
+       ///graphics::DisplayType
+       int display_graphics;
        ///
        bool show_banner;
        ///
@@ -380,7 +386,7 @@ class LyXRC_PreviewStatus {
        LyXRC::PreviewStatus val_;
 public:
        LyXRC_PreviewStatus(LyXRC::PreviewStatus val) : val_(val) {}
-       operator LyXRC::PreviewStatus() const{ return val_; }
+       operator LyXRC::PreviewStatus() const { return val_; }
 };