diff --git a/src/insets/InsetBox.cpp b/src/insets/InsetBox.cpp index 25552d5aa8..ad2084f5bb 100644 --- a/src/insets/InsetBox.cpp +++ b/src/insets/InsetBox.cpp @@ -24,6 +24,7 @@ #include "LaTeXFeatures.h" #include "Lexer.h" #include "MetricsInfo.h" +#include "output_xhtml.h" #include "TextClass.h" #include "support/debug.h" @@ -478,24 +479,24 @@ int InsetBox::docbook(odocstream & os, OutputParams const & runparams) const } -docstring InsetBox::xhtml(odocstream &, OutputParams const & runparams) const +docstring InsetBox::xhtml(XHTMLStream & xs, OutputParams const & runparams) const { + // construct attributes + string attrs = "class='" + params_.type + "'"; string style; if (!params_.width.empty()) style += ("width: " + params_.width.asHTMLString() + ";"); if (!params_.height.empty()) style += ("height: " + params_.height.asHTMLString() + ";"); - - docstring retval = from_ascii("
((int)a1 | (int)a2); +} + } // namespace lyx diff --git a/src/insets/InsetText.h b/src/insets/InsetText.h index fb1fb0a6ba..421870b0e6 100644 --- a/src/insets/InsetText.h +++ b/src/insets/InsetText.h @@ -222,6 +222,9 @@ private: mutable Text text_; }; + +InsetText::XHTMLOptions operator|(InsetText::XHTMLOptions a1, InsetText::XHTMLOptions a2); + } // namespace lyx #endif