File: IHtmlRender.cs

package info (click to toggle)
mono-tools 4.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 13,868 kB
  • sloc: cs: 100,909; sh: 3,845; makefile: 2,040; xml: 126
file content (54 lines) | stat: -rw-r--r-- 1,027 bytes parent folder | download | duplicates (8)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//
// IHtmlRender.cs: Interface that abstracts the html render widget
//
// Author: Mario Sopena
//
using System;
using Gtk;

namespace Monodoc
{
	public interface IHtmlRender
	{
		// Jump to an anchor of the form <a name="tttt">
		void JumpToAnchor (string anchor_name);

		//Copy to the clipboard the selcted text
		void Copy ();

		//Select all the text
		void SelectAll ();

		//Render the HTML code given
		void Render (string html_code);

		//Event fired when the use is over an Url
		event EventHandler OnUrl;

		//Event fired when the user clicks on a Link
		event EventHandler UrlClicked;

		// Variable that handles the info encessary for the events
		// As every implementation of HtmlRender will have differents events
		// we try to homogenize them with the variabel
		string Url { get; }

		Widget HtmlPanel { get; }

		void Print (string Html);

		bool Initialize ();
		Capabilities Capabilities { get; }
		string Name { get; }

	}

	[Flags]
	public enum Capabilities
	{
		None = 0,
		Css = 1,
		Fonts = 2
	}

}