X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fsoftware%2Fmatita%2FmatitaScript.mli;h=304818f7bc8cf4500d9ec6acee7fcfcc99641331;hb=79ce67a7a7502462e827de098b1056516092c0a7;hp=cfc4655414bc08acaca2528aa175fa93c85a8da6;hpb=55b82bd235d82ff7f0a40d980effe1efde1f5073;p=helm.git diff --git a/helm/software/matita/matitaScript.mli b/helm/software/matita/matitaScript.mli index cfc465541..304818f7b 100644 --- a/helm/software/matita/matitaScript.mli +++ b/helm/software/matita/matitaScript.mli @@ -24,7 +24,7 @@ *) exception NoUnfinishedProof -exception ActionCancelled +exception ActionCancelled of string class type script = object @@ -33,7 +33,7 @@ object method locked_tag : GText.tag method error_tag : GText.tag - (** @return current status *) + (** @return current status *) method lexicon_status: LexiconEngine.status method grafite_status: GrafiteTypes.status @@ -51,9 +51,15 @@ object method template: unit -> unit (** {2 Load/save} *) - - method assignFileName : string -> unit (* to the current active file *) + + method has_name: bool + (* alwais return a name, use has_name to check if it is the default one *) + method filename: string + method buri_of_current_file: string + method include_paths: string list + method assignFileName : string option -> unit (* to the current active file *) method loadFromFile : string -> unit + method loadFromString : string -> unit method saveToFile : unit -> unit method filename : string @@ -62,7 +68,6 @@ object (** @return true if there is an ongoing proof, false otherise *) method onGoingProof: unit -> bool -(* method proofStatus: ProofEngineTypes.status |+* @raise Statement_error +| *) method proofMetasenv: Cic.metasenv (** @raise Statement_error *) method proofContext: Cic.context (** @raise Statement_error *) method proofConclusion: Cic.term (** @raise Statement_error *) @@ -73,12 +78,14 @@ object (** end of script, true if the whole script has been executed *) method eos: bool + method bos: bool (** misc *) method clean_dirty_lock: unit (* debug *) method dump : unit -> unit + method expandAllVirtuals : unit end @@ -88,10 +95,9 @@ val script: source_view:GSourceView.source_view -> mathviewer: MatitaTypes.mathViewer-> urichooser: (UriManager.uri list -> UriManager.uri list) -> - develcreator: (containing:string option -> unit) -> ask_confirmation: (title:string -> message:string -> [`YES | `NO | `CANCEL]) -> - set_star: (string -> bool -> unit) -> + set_star: (bool -> unit) -> unit -> script