From: Richard Heck Date: Thu, 26 Nov 2009 16:38:26 +0000 (+0000) Subject: Restore XHTML for InsetBox. X-Git-Tag: 2.0.0~5008 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=dc88d6ecd2e245d7d50d142f62c80069b2dcb0dc;p=features.git Restore XHTML for InsetBox. I guess that this should be "inline", that is, appear where it appears in the LyX file, as opposed to being deferred until after the current paragraph is output. But I'm not sure about this. If anyone has a view, let me know. git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@32215 a592a061-630c-0410-9148-cb99ea01b6c8 --- 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