mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-22 10:00:33 +00:00
Use InsetLayout for LaTeX output.
This commit is contained in:
parent
1c33d95adf
commit
33022ebb5a
@ -477,12 +477,19 @@ InsetLayout Preview
|
||||
End
|
||||
|
||||
InsetLayout Script:superscript
|
||||
LyXType standard
|
||||
LatexType command
|
||||
LaTeXName textsuperscript
|
||||
MultiPar false
|
||||
HTMLTag sup
|
||||
HTMLIsBlock 0
|
||||
End
|
||||
|
||||
InsetLayout Script:subscript
|
||||
Requires subscript
|
||||
LyXType standard
|
||||
LatexType command
|
||||
LaTeXName textsubscript
|
||||
MultiPar false
|
||||
HTMLTag sub
|
||||
HTMLIsBlock 0
|
||||
|
@ -326,29 +326,6 @@ docstring InsetScript::toolTip(BufferView const &, int, int) const
|
||||
}
|
||||
|
||||
|
||||
void InsetScript::validate(LaTeXFeatures & features) const
|
||||
{
|
||||
if (params_.type == InsetScriptParams::Subscript)
|
||||
features.require("subscript");
|
||||
InsetText::validate(features);
|
||||
}
|
||||
|
||||
|
||||
void InsetScript::latex(otexstream & os, OutputParams const & runparams) const
|
||||
{
|
||||
switch (params_.type) {
|
||||
case InsetScriptParams::Subscript:
|
||||
os << "\\textsubscript{";
|
||||
break;
|
||||
case InsetScriptParams::Superscript:
|
||||
os << "\\textsuperscript{";
|
||||
break;
|
||||
}
|
||||
InsetText::latex(os, runparams);
|
||||
os << "}";
|
||||
}
|
||||
|
||||
|
||||
int InsetScript::plaintext(odocstream & os, OutputParams const & runparams) const
|
||||
{
|
||||
odocstringstream oss;
|
||||
|
@ -86,10 +86,6 @@ public:
|
||||
///
|
||||
bool allowParagraphCustomization(idx_type = 0) const { return false; }
|
||||
///
|
||||
virtual void validate(LaTeXFeatures &) const;
|
||||
///
|
||||
void latex(otexstream &, OutputParams const &) const;
|
||||
///
|
||||
int plaintext(odocstream &, OutputParams const &) const;
|
||||
///
|
||||
int docbook(odocstream &, OutputParams const &) const;
|
||||
|
Loading…
Reference in New Issue
Block a user