xref: /dokuwiki/inc/parser/renderer.php (revision f62ea8a1d1cf10eddeae777b11420624e111b7ea)
1<?php
2class Doku_Renderer {
3    var $info = array(
4        'cache' => TRUE, // may the rendered result cached?
5    );
6
7
8    function nocache() {
9        $this->info['cache'] = FALSE;
10    }
11
12    function document_start() {}
13
14    function document_end() {}
15
16    function toc_open() {}
17
18    function tocbranch_open($level) {}
19
20    function tocitem_open($level, $empty = FALSE) {}
21
22    function tocelement($level, $title) {}
23
24    function tocitem_close($level) {}
25
26    function tocbranch_close($level) {}
27
28    function toc_close() {}
29
30    function header($text, $level, $pos) {}
31
32    function section_open($level) {}
33
34    function section_close() {}
35
36    function cdata($text) {}
37
38    function p_open() {}
39
40    function p_close() {}
41
42    function linebreak() {}
43
44    function hr() {}
45
46    function strong_open() {}
47
48    function strong_close() {}
49
50    function emphasis_open() {}
51
52    function emphasis_close() {}
53
54    function underline_open() {}
55
56    function underline_close() {}
57
58    function monospace_open() {}
59
60    function monospace_close() {}
61
62    function subscript_open() {}
63
64    function subscript_close() {}
65
66    function superscript_open() {}
67
68    function superscript_close() {}
69
70    function deleted_open() {}
71
72    function deleted_close() {}
73
74    function footnote_open() {}
75
76    function footnote_close() {}
77
78    function listu_open() {}
79
80    function listu_close() {}
81
82    function listo_open() {}
83
84    function listo_close() {}
85
86    function listitem_open($level) {}
87
88    function listitem_close() {}
89
90    function listcontent_open($level) {}
91
92    function listcontent_close() {}
93
94    function unformatted($text) {}
95
96    function php($text) {}
97
98    function html($text) {}
99
100    function preformatted($text) {}
101
102    function file($text) {}
103
104    function quote_open() {}
105
106    function quote_close() {}
107
108    function code($text, $lang = NULL) {}
109
110    function acronym($acronym) {}
111
112    function smiley($smiley) {}
113
114    function wordblock($word) {}
115
116    function entity($entity) {}
117
118    // 640x480 ($x=640, $y=480)
119    function multiplyentity($x, $y) {}
120
121    function singlequoteopening() {}
122
123    function singlequoteclosing() {}
124
125    function doublequoteopening() {}
126
127    function doublequoteclosing() {}
128
129    // $link like 'SomePage'
130    function camelcaselink($link) {}
131
132    // $link like 'wiki:syntax', $title could be an array (media)
133    function internallink($link, $title = NULL) {}
134
135    // $link is full URL with scheme, $title could be an array (media)
136    function externallink($link, $title = NULL) {}
137
138    // $link is the original link - probably not much use
139    // $wikiName is an indentifier for the wiki
140    // $wikiUri is the URL fragment to append to some known URL
141    function interwikilink($link, $title = NULL, $wikiName, $wikiUri) {}
142
143    // Link to file on users OS, $title could be an array (media)
144    function filelink($link, $title = NULL) {}
145
146    // Link to a Windows share, , $title could be an array (media)
147    function windowssharelink($link, $title = NULL) {}
148
149    function email($address, $title = NULL) {}
150
151    function internalmedialink (
152        $src,$title=NULL,$align=NULL,$width=NULL,$height=NULL,$cache=NULL
153        ) {}
154
155    function externalmedialink(
156        $src,$title=NULL,$align=NULL,$width=NULL,$height=NULL,$cache=NULL
157        ) {}
158
159    function table_open($maxcols = NULL, $numrows = NULL){}
160
161    function table_close(){}
162
163    function tablerow_open(){}
164
165    function tablerow_close(){}
166
167    function tableheader_open($colspan = 1, $align = NULL){}
168
169    function tableheader_close(){}
170
171    function tablecell_open($colspan = 1, $align = NULL){}
172
173    function tablecell_close(){}
174
175}
176
177
178//Setup VIM: ex: et ts=4 enc=utf-8 :
179