X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=matita%2Fmatita%2FapplyTransformation.ml;h=236e59def34becbb6654780f2d3f7d42779fbc18;hb=f9f775a550264a8dc9ce7ea9a48b79892a122c3c;hp=f21677e5de38d02f2cb6d14a3419adc13f250d6f;hpb=e2dde4cca0fe3ce74a79edbf8cb7a0f8e616daa9;p=helm.git diff --git a/matita/matita/applyTransformation.ml b/matita/matita/applyTransformation.ml index f21677e5d..236e59def 100644 --- a/matita/matita/applyTransformation.ml +++ b/matita/matita/applyTransformation.ml @@ -35,21 +35,27 @@ (* $Id$ *) +class status = + object + inherit Interpretations.status + inherit TermContentPres.status + end + let mpres_document pres_box = Xml.add_xml_declaration (CicNotationPres.print_box pres_box) let ntxt_of_cic_sequent ~map_unicode_to_tex size status metasenv subst sequent = let content_sequent,ids_to_refs = - NTermCicContent.nmap_sequent status ~metasenv ~subst sequent in + Interpretations.nmap_sequent status ~metasenv ~subst sequent in let pres_sequent = - Sequent2pres.nsequent2pres ids_to_refs subst content_sequent in + Sequent2pres.nsequent2pres status ids_to_refs subst content_sequent in let pres_sequent = CicNotationPres.mpres_of_box pres_sequent in BoxPp.render_to_string ~map_unicode_to_tex (function x::_ -> x | _ -> assert false) size pres_sequent let ntxt_of_cic_object ~map_unicode_to_tex size status obj = - let cobj,ids_to_nrefs = NTermCicContent.nmap_obj status obj in - let pres_sequent = Content2pres.ncontent2pres ~ids_to_nrefs cobj in + let cobj,ids_to_nrefs = Interpretations.nmap_obj status obj in + let pres_sequent = Content2pres.ncontent2pres status ~ids_to_nrefs cobj in let pres_sequent = CicNotationPres.mpres_of_box pres_sequent in BoxPp.render_to_string ~map_unicode_to_tex (function x::_ -> x | _ -> assert false) size pres_sequent