X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPDFOptions.h;h=84580f23e14e5289f28b88a751435b211f68e909;hb=2417d9d911dbca181c48f45d1aad26d31c9aa815;hp=f49b2b03fc1806a27d4cafa72131861346d8d34f;hpb=51179197c6121e1bcd18d4b1520395640425aa84;p=lyx.git diff --git a/src/PDFOptions.h b/src/PDFOptions.h index f49b2b03fc..84580f23e1 100644 --- a/src/PDFOptions.h +++ b/src/PDFOptions.h @@ -12,8 +12,6 @@ #ifndef PDFOPTIONS_H #define PDFOPTIONS_H - -#include #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