These insets are basically done, though there are probably issues here and there,
and there are even some FIXMEs:
Bibitem, Branch, Collapsable, Footnote, Hyperlink, Info, Label, Line,
These insets are basically done, though there are probably issues here and there,
and there are even some FIXMEs:
Bibitem, Branch, Collapsable, Footnote, Hyperlink, Info, Label, Line,
- Marginal, Note, Newline, Newpage, Quotes, Space, SpecialChar
+ Marginal, Note, Newline, Newpage, Quotes, Space, SpecialChar, Wrap
These insets do nothing for XHTML:
ERT, OptArg, Phantom
These insets do nothing for XHTML:
ERT, OptArg, Phantom
InsetTOC: We should just be able to use what we have in the TOC. To get links to
work, though, we'll need to co-ordinate the writing of anchors in the sections,
which won't actually happen until later.
InsetTOC: We should just be able to use what we have in the TOC. To get links to
work, though, we'll need to co-ordinate the writing of anchors in the sections,
which won't actually happen until later.
- InsetWrap: This should be simple enough, probably a div and some CSS, but I'm not sure
- precisely what this is supposed to do.
MATH
Regarding math, the view seems to be that we should in the first instance just use what
MATH
Regarding math, the view seems to be that we should in the first instance just use what
Size Small
EndFont
MultiPar true
Size Small
EndFont
MultiPar true
+ HTMLStyle
+ span.wrap {
+ float: right;
+ width: 40%;
+ border: 2px solid black;
+ padding: 1ex;
+ margin: 1ex;
+ }
+ EndHTMLStyle
+docstring InsetWrap::xhtml(odocstream &, OutputParams const & rp) const
+{
+ string const len = params_.width.asHTMLString();
+ docstring retval = from_ascii("<div class='wrap'");
+ if (!len.empty())
+ retval += from_ascii(" style='width: " + len + ";");
+ retval += from_ascii("'>");
+ odocstringstream os;
+ docstring const deferred = InsetText::xhtml(os, rp);
+ retval += os.str() + from_ascii("</div>");
+ retval += deferred;
+}
+
+
bool InsetWrap::insetAllowed(InsetCode code) const
{
switch(code) {
bool InsetWrap::insetAllowed(InsetCode code) const
{
switch(code) {
///
int docbook(odocstream &, OutputParams const &) const;
///
///
int docbook(odocstream &, OutputParams const &) const;
///
+ docstring xhtml(odocstream &, OutputParams const &) const;
+ ///
docstring editMessage() const;
///
bool insetAllowed(InsetCode) const;
docstring editMessage() const;
///
bool insetAllowed(InsetCode) const;