blob: c71636552fe086fbafd8c0ab22b7cb4e743bfd61 (
plain)
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
|
//
// 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);
}
}
|