Lines Matching refs:this

56         $this->Lexer->addSpecialPattern('{{setcounter [a-z0-9=]+?}}',$mode,'plugin_caption_caption');
57 $this->Lexer->addEntryPattern('<figure.*?>(?=.*</figure>)',$mode,'plugin_caption_caption');
58 $this->Lexer->addEntryPattern('<table.*?>(?=.*</table>)',$mode,'plugin_caption_caption');
59 $this->Lexer->addEntryPattern('<codeblock.*?>(?=.*</codeblock>)',$mode,'plugin_caption_caption');
60 $this->Lexer->addEntryPattern('<fileblock.*?>(?=.*</fileblock>)',$mode,'plugin_caption_caption');
61 $this->Lexer->addPattern('<caption>(?=.*</caption>)','plugin_caption_caption');
62 $this->Lexer->addPattern('</caption>','plugin_caption_caption');
66 $this->Lexer->addExitPattern('</figure>','plugin_caption_caption');
67 $this->Lexer->addExitPattern('</table>','plugin_caption_caption');
68 $this->Lexer->addExitPattern('</codeblock>','plugin_caption_caption');
69 $this->Lexer->addExitPattern('</fileblock>','plugin_caption_caption');
102 if (in_array(explode(' ',$match)[0],$this->_types)) {
103 $this->_type = explode(' ',$match)[0];
104 switch ($this->_type) {
110 $caption_labels[$label] = $this->_fignum;
111 $this->_figlabels[$this->_fignum] = $label;
115 $pattern = '##REF:'.$this->_figlabels[$this->_fignum].'##';
117 $renderer->doc = str_replace($pattern, $this->_fignum, $renderer->doc);
127 $caption_labels[$label] = $this->_tabnum;
128 $this->_tablabels[$this->_tabnum] = $label;
132 $pattern = '##REF:'.$this->_tablabels[$this->_tabnum].'##';
134 $renderer->doc = str_replace($pattern, $this->_tabnum, $renderer->doc);
144 $caption_labels[$label] = $this->_tabnum;
145 $this->_codelabels[$this->_codenum] = $label;
149 if(isset($this->_codelabels[$this->_codenum])) {
150 $pattern = '##REF:'.$this->_codelabels[$this->_codenum].'##';
152 $renderer->doc = str_replace($pattern, $this->_codenum, $renderer->doc);
163 $caption_labels[$label] = $this->_filenum;
164 $this->_tablabels[$this->_filenum] = $label;
168 $pattern = '##REF:'.$this->_filelabels[$this->_filenum].'##';
170 $renderer->doc = str_replace($pattern, $this->_filenum, $renderer->doc);
181 if (!$this->_incaption) {
182 $this->_incaption = true;
183 switch ($this->_type) {
186 if(array_key_exists($this->_fignum,$this->_figlabels)) {
188 .$this->_figlabels[$this->_fignum].'"';
191 if ($this->getConf('abbrev')) {
192 $renderer->doc .= $this->getLang('figureabbrev');
194 $renderer->doc .= $this->getLang('figurelong');
196 $renderer->doc .= ' ' . $this->_fignum . ':</span>';
201 if(array_key_exists($this->_tabnum,$this->_tablabels)) {
203 .$this->_tablabels[$this->_tabnum].'"';
206 if ($this->getConf('abbrev')) {
207 $renderer->doc .= $this->getLang('tableabbrev');
209 $renderer->doc .= $this->getLang('tablelong');
211 $renderer->doc .= ' ' . $this->_tabnum . ':</span>';
216 if(array_key_exists($this->_codenum,$this->_codelabels)) {
218 .$this->_codelabels[$this->_codenum].'"';
221 if ($this->getConf('abbrev')) {
222 $renderer->doc .= $this->getLang('codeabbrev');
224 $renderer->doc .= $this->getLang('codelong');
226 $renderer->doc .= ' ' . $this->_codenum . ':</span>';
231 if(array_key_exists($this->_filenum,$this->_filelabels)) {
233 .$this->_tablabels[$this->_filenum].'"';
236 if ($this->getConf('abbrev')) {
237 $renderer->doc .= $this->getLang('fileabbrev');
239 $renderer->doc .= $this->getLang('filelong');
241 $renderer->doc .= ' ' . $this->_filenum . ':</span>';
246 $this->_incaption = false;
247 switch ($this->_type) {
271 switch ($this->_type) {
273 $this->_fignum++;
277 $this->_tabnum++;
281 $this->_codenum++;
285 $this->_filenum++;
289 $this->_type = '';
296 if (in_array($_type,$this->_types)) {
299 $this->_fignum = $_num;
302 $this->_tabnum = $_num;
305 $this->_codenum = $_num;
308 $this->_filenum = $_num;
325 if (in_array($match,$this->_types)) {
326 $this->_type = $match;
327 switch ($this->_type) {
332 $this->_label = $label;
338 $this->_label = $label;
347 if (!$this->_incaption) {
348 $this->_incaption = true;
352 $this->_incaption = false;
353 if ($this->_label) {
354 $renderer->doc .= "\n" . '\label{'.$this->_label.'}';
355 $this->_label = '';
366 switch ($this->_type) {
374 $this->_type = '';
393 if (in_array($match,$this->_types)) {
394 $this->_type = $match;
395 switch ($this->_type) {
400 $caption_labels[$label] = $this->_fignum;
401 $this->_label = $label;
408 $caption_labels[$label] = $this->_tabnum;
409 $this->_label = $label;
419 if (!$this->_incaption) {
420 $this->_incaption = true;
422 switch ($this->_type) {
424 if ($this->getConf('abbrev')) {
425 $renderer->cdata($this->getLang('figureabbrev'));
427 $renderer->cdata($this->getLang('figurelong'));
429 $renderer->cdata(" " . $this->_fignum . ": ");
432 if ($this->getConf('abbrev')) {
433 $renderer->cdata($this->getLang('tableabbrev'));
435 $renderer->cdata($this->getLang('tablelong'));
437 $renderer->cdata(" " . $this->_tabnum . ": ");
441 $this->_incaption = false;
442 switch ($this->_type) {
460 switch ($this->_type) {
462 $this->_fignum++;
466 $this->_tabnum++;
469 $this->_type = '';