]> git.lyx.org Git - lyx.git/blobdiff - src/BufferParams.cpp
Improve conversion error message.
[lyx.git] / src / BufferParams.cpp
index 21b8237fd29f0eb31051da596e4c2db9e31afb8f..488508555d85f41f0017c2d1254e574982b55648 100644 (file)
@@ -414,6 +414,7 @@ BufferParams::BufferParams()
        html_be_strict = false;
        html_math_output = MathML;
        html_math_img_scale = 1.0;
+       html_css_as_file = false;
 
        output_sync = false;
        use_refstyle = true;
@@ -850,6 +851,8 @@ string BufferParams::readToken(Lexer & lex, string const & token,
                html_math_output = static_cast<MathOutput>(temp);
        } else if (token == "\\html_be_strict") {
                lex >> html_be_strict;
+       } else if (token == "\\html_css_as_file") {
+               lex >> html_css_as_file;
        } else if (token == "\\html_math_img_scale") {
                lex >> html_math_img_scale;
        } else if (token == "\\html_latex_start") {
@@ -1088,9 +1091,10 @@ void BufferParams::writeFile(ostream & os) const
        }
 
        os << "\\tracking_changes " << convert<string>(trackChanges) << '\n'
-                << "\\output_changes " << convert<string>(outputChanges) << '\n'
-                << "\\html_math_output " << html_math_output << '\n'
-                << "\\html_be_strict " << convert<string>(html_be_strict) << '\n';
+          << "\\output_changes " << convert<string>(outputChanges) << '\n'
+          << "\\html_math_output " << html_math_output << '\n'
+          << "\\html_css_as_file " << html_css_as_file << '\n'
+          << "\\html_be_strict " << convert<string>(html_be_strict) << '\n';
        
        if (html_math_img_scale != 1.0)
                os << "\\html_math_img_scale " << convert<string>(html_math_img_scale) << '\n';
@@ -2589,7 +2593,8 @@ string const BufferParams::loadFonts(string const & rm,
                // didn't understand "Mapping=tex-text", while XeTeX
                // understood both. With most recent versions, both
                // variants are understood by both engines. However,
-               // we want to provide support for at least TeXLive 2009.
+               // we want to provide support for at least TeXLive 2009
+               // (for XeTeX; LuaTeX is only supported as of v.2)
                string const texmapping =
                        (features.runparams().flavor == OutputParams::XETEX) ?
                        "Mapping=tex-text" : "Ligatures=TeX";