Note that we have also changed the layout name to uppercase, but
this should be fine, since it was so far unused.
Decoration minimalistic
MultiPar true
End
Decoration minimalistic
MultiPar true
End
+
+InsetLayout Script:superscript
+ MultiPar false
+ HTMLTag sup
+ HTMLIsBlock 0
+End
+
+InsetLayout Script:subscript
+ MultiPar false
+ HTMLTag sub
+ HTMLIsBlock 0
+End
docstring InsetScript::layoutName() const
{
docstring InsetScript::layoutName() const
{
- return from_ascii("script:" + scripttranslator().find(params_.type));
+ return from_ascii("Script:" + scripttranslator().find(params_.type));
-docstring InsetScript::xhtml(XHTMLStream & xs, OutputParams const & runparams) const
-{
- string cmdname;
- switch (params_.type) {
- case InsetScriptParams::Subscript:
- cmdname = "sub";
- break;
- case InsetScriptParams::Superscript:
- cmdname = "sup";
- break;
- }
-
- xs << html::StartTag(cmdname);
- docstring const ret = InsetText::xhtml(xs, runparams);
- xs << html::EndTag(cmdname);
- return ret;
-}
-
-
string InsetScript::contextMenuName() const
{
return "context-script";
string InsetScript::contextMenuName() const
{
return "context-script";
///
int docbook(odocstream &, OutputParams const &) const;
///
///
int docbook(odocstream &, OutputParams const &) const;
///
- docstring xhtml(XHTMLStream &, OutputParams const &) const;
- ///
void edit(Cursor & cur, bool front,
EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
///
void edit(Cursor & cur, bool front,
EntryDirection entry_from = ENTRY_DIRECTION_IGNORE);
///