]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.h
adjust
[lyx.git] / src / PDFOptions.h
index f49b2b03fc1806a27d4cafa72131861346d8d34f..c8fc16e131528f8d8485eff1c54912a68c31530c 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef PDFOPTIONS_H
 #define PDFOPTIONS_H
 
-
-#include <string>
 #include "support/docstream.h"
 
 namespace lyx {
@@ -25,15 +23,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(odocstream &) const;
+       void writeLaTeX(odocstringstream &, 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 +65,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 +116,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;
        /**