]> git.lyx.org Git - lyx.git/blobdiff - src/LyXRC.h
Allow negative values for counters
[lyx.git] / src / LyXRC.h
index ba5020cf20b370e6241f75a95b3a0abf04a610e5..6e82a6def98e9db9ba5e6c07225616d60a02f17c 100644 (file)
@@ -18,9 +18,9 @@
 #ifndef LYXRC_H
 #define LYXRC_H
 
-#include "Length.h"
 #include "LyX.h"
 
+#include "support/Length.h"
 #include "support/strfwd.h"
 #include "support/userinfo.h"
 
@@ -51,8 +51,12 @@ public:
                RC_BIBTEX_ALTERNATIVES,
                RC_BIBTEX_COMMAND,
                RC_BINDFILE,
+               RC_BOOKMARKS_VISIBILITY,
                RC_CHECKLASTFILES,
                RC_CHKTEX_COMMAND,
+               RC_CITATION_SEARCH,
+               RC_CITATION_SEARCH_PATTERN,
+               RC_CITATION_SEARCH_VIEW,
                RC_COMPLETION_CURSOR_TEXT,
                RC_COMPLETION_INLINE_DELAY,
                RC_COMPLETION_INLINE_MATH,
@@ -66,9 +70,11 @@ public:
                RC_CONVERTER,
                RC_CONVERTER_CACHE_MAXAGE,
                RC_COPIER,
+               RC_CT_ADDITIONS_UNDERLINED,
+               RC_CT_MARKUP_COPIED,
                RC_CURSOR_FOLLOWS_SCROLLBAR,
                RC_CURSOR_WIDTH,
-               RC_DEFAULT_DECIMAL_POINT,
+               RC_DEFAULT_DECIMAL_SEP,
                RC_DEFAULT_LENGTH_UNIT,
                RC_DEFAULT_OTF_VIEW_FORMAT,
                RC_DEFAULT_PLATEX_VIEW_FORMAT,
@@ -169,6 +175,7 @@ public:
                RC_UIFILE,
                RC_USELASTFILEPOS,
                RC_USER_EMAIL,
+               RC_USER_INITIALS,
                RC_USER_NAME,
                RC_USE_CONVERTER_CACHE,
                RC_USE_CONVERTER_NEEDAUTH_FORBIDDEN,
@@ -182,13 +189,14 @@ public:
                RC_VIEWER_ALTERNATIVES,
                RC_VISUAL_CURSOR,
                RC_CLOSE_BUFFER_WITH_LAST_VIEW,
+               RC_DRAW_STRATEGY,
                RC_LAST
        };
 
        ///
        LyXRC() : user_name(support::user_name()),
                  user_email(support::user_email()) // always empty
-               {};
+               {}
 
        /// \param check_format: whether to try to convert the file format,
        /// if it is not current. this should only be true, really, for the
@@ -240,6 +248,15 @@ public:
        /// default paper size for local xdvi/dvips/ghostview/whatever
        /// command to run chktex incl. options
        std::string chktex_command = "chktex -n1 -n3 -n6 -n9 -n22 -n25 -n30 -n38";
+       /// Use external script to search for file corresponding to a 
+       /// given citation.
+       bool citation_search = false;
+       /// Name of external script which searches for file corresponding to a 
+       /// given citation. At this moment only script lyxpaperview.p is supported
+       /// (search for pdf or ps based on specific items)
+       std::string citation_search_view;
+       /// Items to search for in citation_search_view
+       std::string citation_search_pattern = "%year% %abbrvciteauthor%";
        /// all available commands to run bibtex incl. options
        CommandSet bibtex_alternatives;
        /// command to run bibtex incl. options
@@ -303,6 +320,7 @@ public:
        int defaultZoom = 150;
        /// Actual zoom factor for screen fonts
        /// (default zoom plus buffer zoom factor)
+       /// Do not set directly. Use GuiView::setCurrentZoom()
        int currentZoom = 150;
        /// Screen font sizes in points for each font size
        std::string font_sizes[10] = { "5.0", "7.0", "8.0", "9.0", "10.0",
@@ -355,11 +373,9 @@ public:
        /// Accept compound words in spellchecker?
        bool spellchecker_accept_compound = false;
        /// spellcheck continuously?
-       bool spellcheck_continuously = false;
+       bool spellcheck_continuously = true;
        /// spellcheck notes and comments?
        bool spellcheck_notes = true;
-       /// minimum length of words to complete
-       unsigned int completion_minlength = 6;
        ///
        bool use_kbmap = false;
        ///
@@ -418,6 +434,10 @@ public:
        ///
        bool cursor_follows_scrollbar = false;
        ///
+       bool ct_additions_underlined = true;
+       ///
+       bool ct_markup_copied = false;
+       ///
        bool scroll_below_document = false;
        ///
        enum MacroEditStyle {
@@ -449,6 +469,8 @@ public:
        std::string user_name; // set in constructor
        /// user email
        std::string user_email; // set in constructor (empty for now)
+       /// user initials
+       std::string user_initials;
        /// icon set name
        std::string icon_set;
        /// whether to use the icons from the theme
@@ -502,6 +524,8 @@ public:
        bool completion_inline_text = false;
        ///
        int completion_inline_dots = -1;
+       /// minimum length of words to complete
+       unsigned int completion_minlength = 6;
        ///
        double completion_popup_delay = 2.0;
        ///
@@ -525,7 +549,7 @@ public:
        ///
        int export_overwrite = NO_FILES;
        /// Default decimal point when aligning table columns on decimal
-       std::string default_decimal_point = ".";
+       std::string default_decimal_sep = "locale";
        ///
        Length::UNIT default_length_unit = Length::CM;
        ///
@@ -537,10 +561,30 @@ public:
        };
        ///
        ScrollWheelZoom scroll_wheel_zoom = SCROLL_WHEEL_ZOOM_CTRL;
+       // FIXME: should be caret_width
        ///
-       int cursor_width = 1;
+       int cursor_width = 0;
        /// One of: yes, no, ask
        std::string close_buffer_with_last_view = "yes";
+       enum BookmarksVisibility {
+               BMK_NONE,
+               BMK_MARGIN,
+               BMK_INLINE
+       };
+
+       ///
+       BookmarksVisibility bookmarks_visibility = BMK_NONE;
+
+       enum DrawStrategy {
+               // draw all (not implemented yet)
+               // FS_FULL,
+               // draw only what has changed
+               DS_PARTIAL,
+               // draw in backing store (only what has changed)
+               DS_BACKINGSTORE
+       };
+       ///
+       DrawStrategy draw_strategy = DS_PARTIAL;
 };
 
 
@@ -551,7 +595,7 @@ extern LyXRC lyxrc;
 ///
 extern LyXRC system_lyxrc;
 
-// used by at least frontends/qt4/GuiPref.cpp
+// used by at least frontends/qt/GuiPref.cpp
 const long maxlastfiles = 50;
 
 } // namespace lyx