X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPDFOptions.h;h=84580f23e14e5289f28b88a751435b211f68e909;hb=2417d9d911dbca181c48f45d1aad26d31c9aa815;hp=d34132b13059fd51a4b0bbd523953a57f13a2a60;hpb=6881ac8c4c9da9fc7ddcdc613fc9cc650a0f555d;p=lyx.git diff --git a/src/PDFOptions.h b/src/PDFOptions.h index d34132b130..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,11 +19,23 @@ 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; @@ -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