RC_SHOW_BANNER,
RC_WHEEL_JUMP,
RC_CONVERTER,
+ RC_COPIER,
RC_VIEWER,
RC_FORMAT,
RC_DEFAULT_LANGUAGE,
RC_USE_SPELL_LIB,
RC_USER_NAME,
RC_USER_EMAIL,
+ RC_INDEX_COMMAND,
RC_LAST
};
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;
///
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;
///
///
bool show_banner;
///
- bool preview;
+ enum PreviewStatus {
+ PREVIEW_OFF,
+ PREVIEW_NO_MATH,
+ PREVIEW_ON
+ };
+ ///
+ PreviewStatus preview;
///
bool preview_hashed_labels;
///
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;
///