X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FPDFOptions.h;h=a3e3cea14b51651d8e4917f9d1b4d1c1d6c90c3d;hb=c393abbe12c360eec07a3dcbb5929e6b7c0ad329;hp=2fa661aa71782b8d0b81fa1905a38ee72c5ebb92;hpb=db578f0b988cdac56bece40eb0b6d71217271741;p=lyx.git diff --git a/src/PDFOptions.h b/src/PDFOptions.h index 2fa661aa71..a3e3cea14b 100644 --- a/src/PDFOptions.h +++ b/src/PDFOptions.h @@ -12,6 +12,8 @@ #ifndef PDFOPTIONS_H #define PDFOPTIONS_H +#include "OutputParams.h" + #include "support/strfwd.h" #include @@ -34,7 +36,8 @@ public: /// output to lyx header void writeFile(std::ostream &) const; /// output to tex header - void writeLaTeX(odocstream &, bool hyperref_already_provided) const; + int writeLaTeX(OutputParams &, odocstream &, + bool hyperref_already_provided) const; /// read tokens from lyx header std::string readToken(Lexer &lex, std::string const & token); /// set implicit settings for hyperref @@ -96,18 +99,14 @@ public: bool colorlinks; /** * Adds backlink text to the end of each item in the bibliography, - * as a list of section numbers. + * as a list of section/slide/page numbers. * This can only work properly if there is a blank line after each * \bibitem. - * backref boolean false - */ - bool backref; - /** - * Adds backlink text to the end of each item in the bibliography, - * as a list of page numbers. - * pagebackref boolean false + * backref string empty(="section"), "false", "section", "slide", "page" + * + * Internally we use false/section/slide/pages. See also bug 5340. */ - bool pagebackref; + std::string backref; /** * Determines how the file is opening in Acrobat; * the possibilities are None, UseThumbs (show thumbnails), UseOutlines