PhantomTranslator const & phantomtranslator()
{
- static PhantomTranslator translator = init_phantomtranslator();
+ static PhantomTranslator const translator =
+ init_phantomtranslator();
return translator;
}
PhantomTranslatorLoc const & phantomtranslator_loc()
{
- static PhantomTranslatorLoc translator = init_phantomtranslator_loc();
+ static PhantomTranslatorLoc const translator =
+ init_phantomtranslator_loc();
return translator;
}
}
-docstring InsetPhantom::name() const
+docstring InsetPhantom::layoutName() const
{
return from_ascii("Phantom:" + phantomtranslator().find(params_.type));
}
}
-int InsetPhantom::plaintext(odocstream & os,
- OutputParams const & runparams) const
+int InsetPhantom::plaintext(odocstringstream & os,
+ OutputParams const & runparams, size_t max_length) const
{
if (params_.type == InsetPhantomParams::Phantom)
os << '[' << buffer().B_("phantom") << ":";
os << '[' << buffer().B_("hphantom") << ":";
else if (params_.type == InsetPhantomParams::VPhantom)
os << '[' << buffer().B_("vphantom") << ":";
- InsetCollapsable::plaintext(os, runparams);
+ InsetCollapsable::plaintext(os, runparams, max_length);
os << "]";
return PLAINTEXT_NEWLINE;
return docstring();
}
-docstring InsetPhantom::contextMenuName() const
+string InsetPhantom::contextMenuName() const
{
- return from_ascii("context-phantom");
+ return "context-phantom";
}