]> git.lyx.org Git - lyx.git/blobdiff - src/PDFOptions.h
* BufferView::updateMetrics(): split up the method in two for the SinglePar case.
[lyx.git] / src / PDFOptions.h
index f49b2b03fc1806a27d4cafa72131861346d8d34f..84580f23e14e5289f28b88a751435b211f68e909 100644 (file)
@@ -12,8 +12,6 @@
 #ifndef PDFOPTIONS_H
 #define PDFOPTIONS_H
 
-
-#include <string>
 #include "support/docstream.h"
 
 namespace lyx {
@@ -21,16 +19,28 @@ namespace lyx {
 class Lexer;
 
 /// Options for PDF generation
+
+/*
+  Possible cleanups, left for next fileformat change:
+  
+  - bookmarksopenlevel is stored in .lyx as string; 
+    after change to spinbox it would be appropriate
+    change to int.
+  - store_options flag can be completely replaced by
+    function store_options() doing essentialy the same
+    as empty() now.
+*/
+
 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 &) const;
        /// read tokens from lyx header
        std::string readToken(Lexer &lex, std::string const & token);
        /// keep implicit hyperref settings
@@ -67,7 +77,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