X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2FBufferParams.h;h=61c8612fae4b29b631833f0786d231da6ac87687;hb=3256dbc78a76f947080dc8e3414abc60e4b5c5af;hp=36ab933e4cc7d41df298376b8f0a592b7b1936dd;hpb=0fce3ff6bd61a9d5b8d928b624741f31bc176795;p=lyx.git diff --git a/src/BufferParams.h b/src/BufferParams.h index 36ab933e4c..61c8612fae 100644 --- a/src/BufferParams.h +++ b/src/BufferParams.h @@ -274,8 +274,20 @@ public: std::vector author_map; /// std::string const dvips_options() const; + /** The return value of paperSizeName() depends on the + * purpose for which the paper size is needed, since they + * support different subsets of paper sizes. + */ + enum Papersize_Purpose { + /// + DVIPS, + /// + DVIPDFM, + /// + XDVI + }; /// - std::string const paperSizeName() const; + std::string const paperSizeName(Papersize_Purpose const & purpose) const; /// set up if and how babel is called std::string const babelCall(std::string const & lang_opts) const; /// handle inputenc etc.