X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FOutputParams.h;h=ff9491205ba90b35f2721d76acc21725019badc8;hb=4ea6d81437ec7b5bea165d78ca37cb163e262042;hp=598b5753b8d4e2ae2a0fb032d26a583d77a24614;hpb=9aa0fe91f6f39ffd889af02e7bb00b7eef585abc;p=lyx.git diff --git a/src/OutputParams.h b/src/OutputParams.h index 598b5753b8..ff9491205b 100644 --- a/src/OutputParams.h +++ b/src/OutputParams.h @@ -13,9 +13,10 @@ #define OUTPUTPARAMS_H -#include "support/shared_ptr.h" #include "Changes.h" +#include + namespace lyx { @@ -78,6 +79,8 @@ public: This esentially seems to mean whether InsetInclude, InsetGraphics and InsetExternal should add the absolute path to any external files or not. + Non-nice LaTeX also includes additional safe line breaks in order to + increase the precision of forward/reverse search and error reporting. */ bool nice; @@ -101,7 +104,7 @@ public: /** inulemcmd > 0 means that the environment in which the inset is typeset is part of a ulem command (\uline, \uuline, - \uwave, or \sout). Insets that output latex commands relying + \uwave, \sout or \xout). Insets that output latex commands relying on local assignments (such as \cite) should enclose such commands in \mbox{} in order to avoid breakage. */ @@ -113,9 +116,11 @@ public: /** Document language babel name */ - mutable std::string document_language; + std::string document_language; /** The master language. Non-null only for child documents. + Note that this is not the language of the top level master, but + of the direct parent for nested includes. */ mutable Language const * master_language; @@ -161,11 +166,15 @@ public: /** Customized bibtex_command */ - mutable std::string bibtex_command; + std::string bibtex_command; /** Customized index_command */ - mutable std::string index_command; + std::string index_command; + + /** Hyperref driver + */ + std::string hyperref_driver; /** Line length to use with plaintext or LaTeX export. */ @@ -180,7 +189,17 @@ public: This is a hack: Make it possible to add stuff to constant OutputParams instances. */ - shared_ptr exportdata; + std::shared_ptr exportdata; + + /** Whether we are entering a display math inset. + * Needed to correctly strike out deleted math in change tracking. + */ + mutable bool inDisplayMath; + + /** Whether we are leaving a display math inset. + * Needed to correctly track nested ulem commands in change tracking. + */ + mutable bool wasDisplayMath; /** Whether we are inside a comment inset. Insets that are including * external files like InsetGraphics, InsetInclude and InsetExternal @@ -190,6 +209,15 @@ public: */ bool inComment; + /** Whether a btUnit (for multiple biblographies) is open. + */ + mutable bool openbtUnit; + + /** Process only the children's aux files with BibTeX. + * This is necessary with chapterbib. + */ + bool only_childbibs; + /** Whether we are in a table cell. * For newline, it matters whether its content is aligned or not. */ @@ -235,13 +263,13 @@ public: mutable int lastid; /// Last position in the last paragraph before an inset - mutable int lastpos; + mutable pos_type lastpos; /// is this the last paragraph in the current buffer/inset? bool isLastPar; - /** whether or not do actual file copying and image conversion + /** whether or not to do actual file copying and image conversion * This mode will be used to preview the source code */ bool dryrun; @@ -252,6 +280,9 @@ public: /// Should we output verbatim or escape LaTeX's special chars? bool pass_thru; + /// Should we output verbatim specific chars? + docstring pass_thru_chars; + /// Should we output captions? bool html_disable_captions; @@ -270,6 +301,9 @@ public: /// Are we generating this material for use by advanced search? bool for_search; + /// Are we generating this material for instant preview? + bool for_preview; + /// Include all children notwithstanding the use of \includeonly bool includeall;