X-Git-Url: https://git.lyx.org/gitweb/?a=blobdiff_plain;f=src%2Fmathed%2Fformulamacro.C;h=39ab9325401bde56f23a94e7d151e9f8f2577d76;hb=7338f3b980d4dc5793ff80be814b7a74e1c72274;hp=390643dcf8055ee40598ef67cb3a06048dca0c1b;hpb=11cee62d3515396bcfdcc618a868f33be6fe3bdd;p=lyx.git diff --git a/src/mathed/formulamacro.C b/src/mathed/formulamacro.C index 390643dcf8..39ab932540 100644 --- a/src/mathed/formulamacro.C +++ b/src/mathed/formulamacro.C @@ -1,14 +1,12 @@ -/* - * File: formulamacro.C - * Purpose: Implementation of the formula macro LyX inset - * Author: André Pönitz, based on ideas of Alejandro Aguilar Sierra - * Created: March 2001 - * Description: Allows the edition of math macros inside Lyx. +/** + * \file formulamacro.C + * This file is part of LyX, the document processor. + * Licence details can be found in the file COPYING. * - * Copyright: 2001 The LyX Project + * \author Alejandro Aguilar Sierra + * \author André Pönitz * - * You are free to use and modify this code under the terms of - * the GNU General Public Licence version 2 or later. + * Full author contact details are available in file CREDITS. */ #include @@ -39,6 +37,7 @@ using namespace lyx::support; using std::ostream; +using std::auto_ptr; extern MathCursor * mathcursor; @@ -65,9 +64,9 @@ InsetFormulaMacro::InsetFormulaMacro(string const & s) } -Inset * InsetFormulaMacro::clone() const +auto_ptr InsetFormulaMacro::clone() const { - return new InsetFormulaMacro(*this); + return auto_ptr(new InsetFormulaMacro(*this)); } @@ -151,9 +150,9 @@ MathAtom & InsetFormulaMacro::par() } -Inset::Code InsetFormulaMacro::lyxCode() const +InsetOld::Code InsetFormulaMacro::lyxCode() const { - return Inset::MATHMACRO_CODE; + return InsetOld::MATHMACRO_CODE; }