]> git.lyx.org Git - features.git/commitdiff
move plaintext() implementation to MathMacroTemplate.C;
authorMichael Schmitt <michael.schmitt@teststep.org>
Sun, 25 Feb 2007 09:27:11 +0000 (09:27 +0000)
committerMichael Schmitt <michael.schmitt@teststep.org>
Sun, 25 Feb 2007 09:27:11 +0000 (09:27 +0000)
support localization

git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@17338 a592a061-630c-0410-9148-cb99ea01b6c8

src/mathed/MathMacroTemplate.C
src/mathed/MathMacroTemplate.h

index a78756f3371b9e74ec9abbcae94d6900d7758484..2f6f8b4e79e59a97f6a4d0746ada73d52e6e355f 100644 (file)
@@ -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
 {
        return MacroData(asString(cell(0)), numargs(), asString(cell(1)), std::string());
index cf46734618f290d0abce49e90add8e0cd82482c1..34029c00bd9149ddb37475dffeae2c9a06bf0810 100644 (file)
@@ -45,9 +45,8 @@ public:
        ///
        void write(WriteStream & os) const;
        ///
-       int plaintext(Buffer const &, odocstream & os,
-                       OutputParams const &) const
-       { os << "[math macro]"; return 12; }
+       int plaintext(Buffer const &, odocstream &,
+                     OutputParams const &) const;
 
        /// Number of arguments
        int numargs() const;