]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.h
compil fix for Qt-4.2
[lyx.git] / src / BufferParams.h
index 5dc05b3c38cbd2a58d270b47b6a491cfde429ea4..61c8612fae4b29b631833f0786d231da6ac87687 100644 (file)
@@ -133,7 +133,7 @@ public:
        /// need not be done if we know this isn't the final time through, or if
        /// the BufferParams do not represent the parameters for an actual buffer
        /// (as in GuiDocument).
-       bool addLayoutModule(std::string modName);
+       bool addLayoutModule(std::string const & modName);
        /// Clear the list
        void clearLayoutModules();
 
@@ -274,8 +274,20 @@ public:
        std::vector<unsigned int> 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.