mirror of
https://git.lyx.org/repos/lyx.git
synced 2025-01-23 16:52:02 +00:00
move plaintext() implementation to MathMacroTemplate.C;
support localization git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17338 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
914e698b8d
commit
d6c60193d6
@ -219,6 +219,16 @@ void MathMacroTemplate::write(WriteStream & os) const
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
int MathMacroTemplate::plaintext(Buffer const &, odocstream & os,
|
||||||
|
OutputParams const &) const
|
||||||
|
{
|
||||||
|
static docstring const str = '[' + _("math macro") + ']';
|
||||||
|
|
||||||
|
os << str;
|
||||||
|
return str.size();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
MacroData MathMacroTemplate::asMacroData() const
|
MacroData MathMacroTemplate::asMacroData() const
|
||||||
{
|
{
|
||||||
return MacroData(asString(cell(0)), numargs(), asString(cell(1)), std::string());
|
return MacroData(asString(cell(0)), numargs(), asString(cell(1)), std::string());
|
||||||
|
@ -45,9 +45,8 @@ public:
|
|||||||
///
|
///
|
||||||
void write(WriteStream & os) const;
|
void write(WriteStream & os) const;
|
||||||
///
|
///
|
||||||
int plaintext(Buffer const &, odocstream & os,
|
int plaintext(Buffer const &, odocstream &,
|
||||||
OutputParams const &) const
|
OutputParams const &) const;
|
||||||
{ os << "[math macro]"; return 12; }
|
|
||||||
|
|
||||||
/// Number of arguments
|
/// Number of arguments
|
||||||
int numargs() const;
|
int numargs() const;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user