X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2FDEVEL%2Fmathml_editor%2Fsrc%2FCMathMLFactoryXSLTDiff.cc;h=d3706a70427f307db334196c9c9593ef2f59d614;hb=3c7ca719c304eb7de7d8d4e9a90ebe0db8d8ecab;hp=c26407b2ee5e12cd488d8f98999a63de41099f01;hpb=8d15b9f68470945a45ce96dbc1c892742c85cb9c;p=helm.git diff --git a/helm/DEVEL/mathml_editor/src/CMathMLFactoryXSLTDiff.cc b/helm/DEVEL/mathml_editor/src/CMathMLFactoryXSLTDiff.cc index c26407b2e..d3706a704 100644 --- a/helm/DEVEL/mathml_editor/src/CMathMLFactoryXSLTDiff.cc +++ b/helm/DEVEL/mathml_editor/src/CMathMLFactoryXSLTDiff.cc @@ -1,3 +1,27 @@ +/* This file is part of EdiTeX, an editor of mathematical + * expressions based on TeX syntax. + * + * Copyright (C) 2002-2003 Luca Padovani , + * 2003 Paolo Marinelli . + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Lesser General Public + * License as published by the Free Software Foundation; either + * version 2.1 of the License, or (at your option) any later version. + * + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Lesser General Public License for more details. + * + * You should have received a copy of the GNU Lesser General Public + * License along with this library; if not, write to the Free Software + * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + * + * For more information, please visit the project's home page + * http://helm.cs.unibo.it/editex/ + * or send an email to + */ #include "dom.hh" #include "Diff.hh" @@ -26,13 +50,13 @@ CMathMLFactoryXSLTDiff::documentModified(TDocument& doc) #endif DOM::Document res = style.apply(doc.document()); assert(res); - //cout << "*** THE DIRTY FRAGMENT HAS ID = " << std::string(dirty["id"]) << endl; + //cout << "*** THE TEX DOCUMENT" << endl; //style.save(doc.document(), stdout); - cout << "*** THE CURRENT DOCUMENT:" << endl; + std::cout << "*** THE CURRENT DOCUMENT:" << std::endl; if (result) style.save(result, stdout); - cout << "*** THE NEW DOCUMENT:" << endl; + std::cout << "*** THE NEW DOCUMENT:" << std::endl; style.save(res, stdout); - cout << "*** THE DIFF:" << endl; + std::cout << "*** THE DIFF:" << std::endl; DOMX::Diff diff = DOMX::Diff::diff(result, res); style.save(diff.document(), stdout); diff.patch();