]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.h
Embedding: saving inzip name to .lyx file so that embedded files can always be found...
[lyx.git] / src / PDFOptions.h
index d34132b13059fd51a4b0bbd523953a57f13a2a60..13f83b9436b1555ee876bf9429e84fc264189da5 100644 (file)
@@ -12,9 +12,9 @@
 #ifndef PDFOPTIONS_H
 #define PDFOPTIONS_H
 
+#include "support/strfwd.h"
 
 #include <string>
-#include "support/docstream.h"
 
 namespace lyx {
 
@@ -25,15 +25,15 @@ class PDFOptions {
 public:
        ///
        PDFOptions() { clear(); }
-       /// check for string settings
+       /// check whether user added any settings for hyperref
        bool empty() const;
        /// output to lyx header
        void writeFile(std::ostream &) const;
        /// output to tex header
-       void writeLaTeX(odocstringstream &) const;
+       void writeLaTeX(odocstream &, bool hyper_required) const;
        /// read tokens from lyx header
        std::string readToken(Lexer &lex, std::string const & token);
-       /// keep implicit hyperref settings
+       /// set implicit settings for hyperref
        void clear();
 
        ///
@@ -67,7 +67,7 @@ public:
                * Level (\maxdimen) to which bookmarks are open
                * bookmarksopenlevel    parameter
                */
-       std::string bookmarksopenlevel;
+       int bookmarksopenlevel;
        /**
                * Allows link text to break across lines.
                * breaklinks        boolean false
@@ -118,6 +118,15 @@ public:
                * dialog -> PDFOptions.pagemode .
                */
        std::string pagemode;
+       /**
+               * Flag indicating whether hyperref tries to derive the values for
+               * pdftitle and pdfauthor from \title and \author.
+               * pdfusetitle       boolean false
+               *
+               * Note that we use true as default value instead. The option is also
+               * used in latex output only when title and author is not filled.
+       */
+       bool pdfusetitle;
        ///latex string
        static const std::string pagemode_fullscreen;
        /**