]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/InsetMathSize.cpp
Fix build with GNU libstdc++ C++11 ABI
[lyx.git] / src / mathed / InsetMathSize.cpp
index fa0bc45604b3d26b26935f97e599617d6a86accf..dc79652fad105a311e99eafcfa531baaee9253ff 100644 (file)
 #include "output_xhtml.h"
 
 #include "support/convert.h"
+#include "support/gettext.h"
+#include "support/lstrings.h"
 
 #include <string>
 #include <ostream>
 
+using namespace lyx::support;
 using namespace std;
 
 namespace lyx {
@@ -101,18 +104,18 @@ void InsetMathSize::normalize(NormalStream & os) const
 
 void InsetMathSize::infoize(odocstream & os) const
 {
-       os << "Size: " << key_->name;
+       os << bformat(_("Size: %1$s"), key_->name);
 }
 
 
 void InsetMathSize::validate(LaTeXFeatures & features) const
 {
        if (features.runparams().math_flavor == OutputParams::MathAsHTML)
-               features.addPreambleSnippet("<style type=\"text/css\">\n"
+               features.addCSSSnippet(
                        "span.displaystyle, span.textstyle{font-size: normal;}\n"
                        "span.scriptstyle {font-size: small;}\n"
-                       "span.scriptscriptstyle {font-size: x-small;}\n"
-                       "</style>");
+                       "span.scriptscriptstyle {font-size: x-small;}");
+       InsetMathNest::validate(features);
 }
 
 } // namespace lyx