X-Git-Url: http://matita.cs.unibo.it/gitweb/?a=blobdiff_plain;f=helm%2Fmatita%2FmatitaMathView.mli;h=ea0c077d842ef2c7ca9731df7f4d4395b79fb277;hb=c8d3e50eb70bef01ed4e2e67c89c15ab5069a580;hp=f4a7241602287db583f01a68071059d8a5425d1a;hpb=5c56a926588a63ceac31e6ddd6e3eeb02fadf3a9;p=helm.git diff --git a/helm/matita/matitaMathView.mli b/helm/matita/matitaMathView.mli index f4a724160..ea0c077d8 100644 --- a/helm/matita/matitaMathView.mli +++ b/helm/matita/matitaMathView.mli @@ -40,11 +40,11 @@ type 'widget constructor = val clickableMathView: MatitaGuiTypes.clickableMathView constructor -val sequentViewer: MatitaGuiTypes.sequentViewer constructor +val cicMathView: MatitaGuiTypes.cicMathView constructor val sequentsViewer: notebook:GPack.notebook -> - sequentViewer:MatitaGuiTypes.sequentViewer -> + cicMathView:MatitaGuiTypes.cicMathView -> unit -> MatitaGuiTypes.sequentsViewer @@ -61,17 +61,22 @@ val reset_font_size: unit -> unit val refresh_all_browsers: unit -> unit (** act on all cicBrowsers *) val update_font_sizes: unit -> unit - (** {3 selection handling} *) + (** {3 Clipboard & Selection handling} *) - (* @return the selections of a (unspecified) math viewer *) -val get_selections: unit -> string list option +val has_selection: unit -> bool - (* remove the selections of all math viewers *) -val reset_selections: unit -> unit + (** fills the clipboard with the current selection + * @raise Failure "no selection" *) +val copy_selection: unit -> unit +val has_clipboard: unit -> bool (** clipboard is not empty *) +val empty_clipboard: unit -> unit (** empty the clipboard *) + + (** @raise Failure "empty clipboard" *) +val paste_clipboard: MatitaGuiTypes.paste_kind -> string (** {2 Singleton instances} *) -val sequentViewer_instance: unit -> MatitaGuiTypes.sequentViewer +val cicMathView_instance: unit -> MatitaGuiTypes.cicMathView val sequentsViewer_instance: unit -> MatitaGuiTypes.sequentsViewer val mathViewer: unit -> MatitaTypes.mathViewer