#include "LaTeXFeatures.h"
#include "LyXFunc.h"
#include "OutputParams.h"
+#include "output_xhtml.h"
#include "ParIterator.h"
#include "sgml.h"
#include "TocBackend.h"
}
+docstring InsetRef::xhtml(odocstream & os, OutputParams const &) const
+{
+ // FIXME What we'd really like to do is to be able to output some
+ // appropriate sort of text here. But to do that, we need to associate
+ // some sort of counter with the label, and we don't have that yet.
+ docstring const ref = html::htmlize(getParam("reference"));
+ os << "<a href=\"" << ref << "\">[" << ref << "]</a>";
+ return docstring();
+}
+
void InsetRef::tocString(odocstream & os) const
{
plaintext(os, OutputParams(0));
int plaintext(odocstream &, OutputParams const &) const;
///
int docbook(odocstream &, OutputParams const &) const;
+ ///
+ docstring xhtml(odocstream &, OutputParams const &) const;
/// the string that is passed to the TOC
void tocString(odocstream &) const;
///
///
static ParamInfo const & findInfo(std::string const &);
///
- static std::string defaultCommand() { return "ref"; };
+ static std::string defaultCommand() { return "ref"; }
///
static bool isCompatibleCommand(std::string const & s);
///