Branch, Collapsable, Footnote, Hyperlink, Label, Line, Note,
Newline, Newpage, Quotes, Space, SpecialChar
-These insets probably do nothing:
- OptArg, Phantom
+These insets do nothing for XHTML:
+ ERT, OptArg, Phantom
These insets work but still need work:
InsetBox: We need a Length::asHTML() method and the like, but it basically works.
Maybe for the beginning, we should just do everything numerically, but even
that will need a bit of work. Validation is our friend, presumably.
InsetCommand: By default does nothing. That may be right?
- InsetERT: It's not entirely clear what it's best to do here. Maybe output it
- verbatim. Perhaps wrapped in some CSS. (What else would one expect?)
InsetExternal: I don't understand these so am not sure what to do.
InsetFloat: This will need some work, again because I do not really understand
what these are meant to do. Presumably, we'll just use a div or something, but
}
+int InsetERT::xhtml(odocstream &, OutputParams const &) const
+{
+ return 0; // do not output TeX code
+}
+
+
int InsetERT::docbook(odocstream & os, OutputParams const &) const
{
// FIXME can we do the same thing here as for LaTeX?
///
int docbook(odocstream &, OutputParams const &) const;
///
+ int xhtml(odocstream &, OutputParams const &) const;
+ ///
void validate(LaTeXFeatures &) const {}
///
bool showInsetDialog(BufferView *) const;
}
+int InsetOptArg::xhtml(odocstream &, OutputParams const &) const
+{
+ return 0;
+}
+
+
int InsetOptArg::latexOptional(odocstream & os,
OutputParams const & runparams) const
{
int plaintext(odocstream &, OutputParams const &) const;
/// Standard DocBook output -- short-circuited
int docbook(odocstream &, OutputParams const &) const;
+ /// Standard XHTML output -- short-circuited
+ int xhtml(odocstream &, OutputParams const &) const;
/// Write out to the .lyx file
void write(std::ostream & os) const;
/// should paragraph indendation be ommitted in any case?
}
+int InsetPhantom::xhtml(odocstream &, OutputParams const &) const
+{
+ return 0; // makes no sense for HTML
+}
+
+
docstring InsetPhantom::contextMenu(BufferView const &, int, int) const
{
return from_ascii("context-phantom");
int plaintext(odocstream &, OutputParams const &) const;
///
int docbook(odocstream &, OutputParams const &) const;
+ /// Does nothing.
+ int xhtml(odocstream &, OutputParams const &) const;
///
bool getStatus(Cursor &, FuncRequest const &, FuncStatus &) const;
///