#include "Lexer.h"
#include "MetricsInfo.h"
#include "OutputParams.h"
+#include "output_xhtml.h"
#include "support/debug.h"
#include "support/docstream.h"
}
-InsetSpace::~InsetSpace()
-{
- hideDialogs("space", this);
-}
-
-
docstring InsetSpace::toolTip(BufferView const &, int, int) const
{
docstring message;
message = _("Quad Space");
break;
case InsetSpaceParams::QQUAD:
- message = _("QQuad Space");
+ message = _("Double Quad Space");
break;
case InsetSpaceParams::ENSPACE:
message = _("Enspace");
void InsetSpace::doDispatch(Cursor & cur, FuncRequest & cmd)
{
- switch (cmd.action) {
+ switch (cmd.action()) {
case LFUN_INSET_MODIFY:
string2params(to_utf8(cmd.argument()), params_);
bool InsetSpace::getStatus(Cursor & cur, FuncRequest const & cmd,
FuncStatus & status) const
{
- switch (cmd.action) {
+ switch (cmd.action()) {
// we handle these
case LFUN_INSET_MODIFY:
if (cmd.getArg(0) == "space") {
}
-bool InsetSpace::showInsetDialog(BufferView * bv) const
-{
- bv->showDialog("space", params2string(params()),
- const_cast<InsetSpace *>(this));
- return true;
-}
-
-
namespace {
int const arrow_size = 8;
}
}
-docstring InsetSpace::xhtml(odocstream & os, OutputParams const &) const
+docstring InsetSpace::xhtml(XHTMLStream & xs, OutputParams const &) const
{
+ string output;
switch (params_.kind) {
case InsetSpaceParams::NORMAL:
- os << " ";
+ output = " ";
break;
case InsetSpaceParams::ENSKIP:
case InsetSpaceParams::ENSPACE:
- os << " ";
+ output =" ";
break;
case InsetSpaceParams::QQUAD:
- os << " ";
+ output =" ";
case InsetSpaceParams::THICK:
case InsetSpaceParams::QUAD:
- os << " ";
+ output =" ";
break;
case InsetSpaceParams::THIN:
- os << " ";
+ output =" ";
break;
case InsetSpaceParams::PROTECTED:
case InsetSpaceParams::MEDIUM:
case InsetSpaceParams::NEGTHIN:
case InsetSpaceParams::NEGMEDIUM:
case InsetSpaceParams::NEGTHICK:
- os << " ";
+ output =" ";
break;
case InsetSpaceParams::HFILL:
case InsetSpaceParams::HFILL_PROTECTED:
case InsetSpaceParams::RIGHTARROWFILL:
case InsetSpaceParams::UPBRACEFILL:
case InsetSpaceParams::DOWNBRACEFILL:
- // FIXME Can we do anything with those in HTML?
- os << '\n';
+ // FIXME XHTML
+ // Can we do anything with those in HTML?
break;
case InsetSpaceParams::CUSTOM:
case InsetSpaceParams::CUSTOM_PROTECTED:
- // FIXME Probably we could do some sort of blank span?
- os << '\n';
+ // FIXME XHTML
+ // Probably we could do some sort of blank span?
+ break;
}
+ // don't escape the entities!
+ xs << XHTMLStream::NextRaw() << from_ascii(output);
return docstring();
}