X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Flyxrc.h;h=5cd5bc34b6036bade70afe485349b330e78ae050;hb=37e82a546392d43f787826b85481a11f2a27af15;hp=9390133dae8a670c57a217eb14f0fdd68c68e459;hpb=931a49cc87b8ea31aee185b20457b1abc7587595;p=lyx.git diff --git a/src/lyxrc.h b/src/lyxrc.h index 9390133dae..5cd5bc34b6 100644 --- a/src/lyxrc.h +++ b/src/lyxrc.h @@ -120,6 +120,7 @@ enum LyXRCTags { RC_SHOW_BANNER, RC_WHEEL_JUMP, RC_CONVERTER, + RC_COPIER, RC_VIEWER, RC_FORMAT, RC_DEFAULT_LANGUAGE, @@ -131,6 +132,7 @@ enum LyXRCTags { RC_USE_SPELL_LIB, RC_USER_NAME, RC_USER_EMAIL, + RC_INDEX_COMMAND, RC_LAST }; @@ -148,9 +150,11 @@ private: int read(LyXLex &); public: /// - void write(std::string const & filename) const; + void write(std::string const & filename, + bool ignore_system_lyxrc) const; /// - void write(std::ostream & os) const; + void write(std::ostream & os, + bool ignore_system_lyxrc) const; /// void print() const; /// @@ -207,6 +211,8 @@ public: std::string chktex_command; /// command to run bibtex incl. options std::string bibtex_command; + /// command to run makeindex incl. options or other index programs + std::string index_command; /// std::string document_path; /// @@ -353,7 +359,13 @@ public: /// bool show_banner; /// - bool preview; + enum PreviewStatus { + PREVIEW_OFF, + PREVIEW_NO_MATH, + PREVIEW_ON + }; + /// + PreviewStatus preview; /// bool preview_hashed_labels; /// @@ -364,6 +376,19 @@ public: std::string user_email; }; + +/** \c LyXRC_PreviewStatus is a wrapper for LyXRC::PreviewStatus. + * It can be forward-declared and passed as a function argument without + * having to expose lyxrc.h. + */ +class LyXRC_PreviewStatus { + LyXRC::PreviewStatus val_; +public: + LyXRC_PreviewStatus(LyXRC::PreviewStatus val) : val_(val) {} + operator LyXRC::PreviewStatus() const{ return val_; } +}; + + /// extern LyXRC lyxrc; ///