Lines Matching refs:this

73     if (isset($this->info['current_file_id'])) 
74 $cleanid = $this->info['current_file_id'];
76 $cleanid = noNS(cleanID($this->info['current_id'], TRUE));
77 $this->putcmd("label{" . md5($cleanid) . "}");
78 if (isset($this->info['current_file_id']))
79 $this->putnl("%%Start: " . $cleanid . ' => '
80 . $this->info['current_file_id']);
82 $this->putnl("%%Start: " . $cleanid . ' => ' . wikiFN($cleanid));
91 $this->headers = array();
102 $this->info['dokulinks'] = $this->dokulinks;
103 if (is_null($this->_tmphandle))
104 return $this->doc;
109 rewind($this->_tmphandle);
110 while (!feof($this->_tmphandle))
111 $this->doc .= fgets($this->_tmphandle);
113 fclose($this->_tmphandle);
132 $this->nlputcmdnl("$token{" . $this->_latexEntities($text) . "}");
135 $this->putcmd("label{" . md5($cleanid) . "}"); //label for links on headers
136 $this->putnl("%% " . $cleanid);
138 if ($this->_num_titles == 0) { //label for links on document/page
139 $this->label_document();
141 $this->_num_titles++;
143 $this->_acronyms_used = array();
144 $this->_footnote_index = 0;
149 $this->_section_level = $level;
157 $this->putent($text);
165 $this->put(DOKU_LF.DOKU_LF);
169 $this->put('\\\\ ');
173 $this->nlputcmdnl("dokuhline");
174 $this->putnl();
178 $this->putcmd("dokubold{");
182 $this->put('}');
186 $this->putcmd("dokuitalic{");
190 $this->put('}');
194 $this->putcmd("dokuunderline{");
195 $this->state['format'] = 1;
199 $this->state['format'] = 0;
200 $this->put('}');
204 $this->putcmd("dokumonospace{");
205 $this->state['format'] = 1;
209 $this->state['format'] = 0;
210 $this->put('}');
214 $this->putcmd("dokusubscript{");
218 $this->put('}');
222 $this->putcmd("dokusupscript{");
226 $this->put('}');
230 $this->putcmd("dokuoverline{");
234 $this->put('}');
238 $this->_footnote_index++;
239 $this->putcmd("dokufootnote{");
243 $this->put('}');
247 $this->putcmd("dokufootmark{");
251 $this->put('}');
258 $this->nlputcmdnl("begin{itemize}"); //need to overload that
262 $this->putcmdnl("end{itemize}");
266 $this->nlputcmd("begin{enumerate}"); //need to overload that
270 $this->putcmdnl("end{enumerate}");
274 $this->putcmd("dokuitem ");
278 $this->putnl();
290 $this->cdata($text);
294 $this->code("\n<php>\n$text\n</php>\n", 'php'); //Need to do smth ?!?
298 $this->code("\n<html>\n$text\n</html>\n", 'html'); //Any Ideas ?
305 $this->nlputcmdnl("small");
306 $this->putcmdnl("begin{verbatimtab}"); //need overload
307 $this->put(wordwrap(str_replace('verbatimtab', 'verbatim',
308 $text), $this->info['wrapcodelength'], "\n"));
309 $this->nlputcmdnl("end{verbatimtab}"); //need overload
310 $this->putcmdnl("normalsize");
314 $this->preformatted($text);
321 $this->_quote_level++;
322 $this->putcmd_protect("dokuquoting");
326 $this->_quote_level--;
327 if ($this->_quote_level == 0) {
328 $this->putnl();
329 $this->putnl();
335 $this->preformatted($text);
348 $this->nlputcmdnl("lstset{language=$lang}"); //need overload
349 $this->putcmd("begin{lstlisting}"); //need overload
350 $this->put(wordwrap($text, $this->info['wrapcodelength'], DOKU_LF));
351 $this->nlputcmdnl("end{lstlisting}"); //need overload
356 $this->put($acronym);
357 if (!isset($this->_acronyms_used[$this->acronyms[$acronym]])) {
358 $this->footnote_open();
359 $this->putent($this->acronyms[$acronym], 1);
360 $this->footnote_close();
361 $this->_acronyms_used[$this->acronyms[$acronym]] = $this->_footnote_index;
363 $this->footnotemark_open();
364 $this->put($this->_acronyms_used[$this->acronyms[$acronym]]);
365 $this->footnotemark_close();
370 if ( array_key_exists($smiley, $this->smileys) ) {
371 $this->putcmd("dokusmiley{");
372 $this->put(DOKU_INC.'lib/images/smileys/'.$this->smileys[$smiley]);
373 $this->put("}");
375 $this->put($smiley);
380 $this->put($word);
384 $this->put($this->latexentities[$entity], 1);
389 if ($this->_current_table_mode == 'table_analyse') { //try think something better
390 $this->cdata($x . "x" . $y);
393 $this->put($x);
394 $this->put("{\\texttimes}", 1); //Need Overload
395 $this->put($y);
399 $this->put("'");
403 $this->put("'");
407 $this->singlequoteopening();
411 $this->put('"');
415 $this->put('"');
420 $this->put($link);
429 $name = $this->_getLinkTitle($name, $hash, $isImage);
430 $hash = $this->_headerToLink($hash);
431 array_push($this->dokulinks, array('id' => $hash, 'name' => $name, 'type' => 'local', ));
432 $this->putcmd('hyperref[' . $md5 . ']{');
433 $this->putent($name);
434 $this->put('}');
442 $default = $this->_simpleTitle($id);
446 $name = $this->_getLinkTitle($name, $default, $isImage, $id);
454 array_push($this->dokulinks, array('id' => $id, 'name' => $name,
458 $this->putcmd('hyperref[');
463 $this->put($md5);
464 $this->put(']{');
465 $this->putent($name);
466 $this->put('}');
473 $this->putent('[['.$link.'|'.$title.']]');
480 $default = $this->_simpleTitle($id);
483 $name = $this->_getLinkTitle($name, $default, $isImage, $id);
498 $this->putcmd('href{' . $id . '#' . $hash . '}{' . $name . '}');
500 $this->putcmd('hyperlink{' . $id . '}{' . $name . '}');
507 $title = $this->_getLinkTitle($title, $link, $isImage);
509 $this->put($title);
512 $this->put($this->_formatLink(array('url' => $link,
515 $this->putcmd('url{'.$link.'}');
526 if ( isset($this->interwiki[$wikiName]) ) {
527 $url = $this->interwiki[$wikiName];
531 $linkname = $this->_getLinkTitle($title, $wikiUri, $isImage);
535 if (!(isset($this->interwiki_ps[$class])
536 && @file_exists($this->interwiki_ps[$class]))
541 $this->unformatted('img error: '. $imagefile);
545 $this->interwiki_ps[$class] = $filename;
547 if (isset($this->interwiki_ps[$class])) {
548 $this->putcmd("includegraphics[height=1em]{"); // need config for that
549 $this->put($this->interwiki_ps[$class], 1);
550 $this->put("}", 1);
553 $this->put($linkname); //link is an image
557 if ( isset($this->interwiki[$wikiName]) ) {
558 $url = $this->interwiki[$wikiName];
559 $this->put($this->_formatLink(array('url' => $url,
562 $this->putcmd('url{');
563 $this->put($link);
564 $this->put('}', 1);
571 array_push($this->dokulinks, array('id' => $link, 'name' => $title, 'type' => 'filelink'));
572 $this->unformatted('[['.$link.'|'.$title.']]');
577 $this->unformatted('[['.$link.'|'.$title.']]');
581 $this->putent($address);
596 $this->doc .= '{{'.$src.'|'.$title.'}}';
598 $this->doc .= '{{'.$src.'}}';
636 $this->listu_open();
641 $this->listitem_open(1);
642 $this->externallink($item->get_permalink(),
650 $this->cdata(' '.$lang['by'].' '.$name);
655 $this->cdata(' ('.$item->get_date($conf['dformat']).')');
661 $this->cdata($item->get_description());
663 $this->cdata(strip_tags($item->get_description()));
669 $this->listitem_close();
673 $this->listitem_open(1);
674 $this->emphasis_open();
676 $this->cdata($lang['rssfailed']);
677 $this->emphasis_close();
678 $this->externallink($url);
683 $this->listitem_close();
686 $this->listu_close();
690 $this->_current_table_mode = 'table_analyse';
691 $table_mode = $this->_current_table_mode . '_open';
692 $this->$table_mode($maxcols, $numrows);
696 $table_mode = $this->_current_table_mode . '_close';
697 $this->$table_mode();
701 $table_mode = $this->_current_table_mode . 'row_open';
702 $this->$table_mode();
707 $table_mode = $this->_current_table_mode . 'row_close';
708 $this->$table_mode();
712 $table_mode = $this->_current_table_mode . 'header_open';
713 $this->$table_mode($colspan, $align);
717 $table_mode = $this->_current_table_mode . 'header_close';
718 $this->$table_mode();
722 $table_mode = $this->_current_table_mode . 'cell_open';
723 $this->$table_mode($colspan, $align);
727 $table_mode = $this->_current_table_mode . 'cell_close';
728 $this->$table_mode();
732 $this->_current_table_args = array($maxcols, $numrows);
733 array_push($this->_current_table,
750 foreach ( $this->_current_table as $action ) {
773 $maxcols_word[$j] = $this->biggest_word_size($cell_text);
782 list($maxcols, $numrows) = $this->_current_table_args;
792 $this->_current_table_maxcols_size = $maxcols_word;
800 list($maxcols, $numrows) = $this->_current_table_args;
801 $longest_row = $this->table_analyse_size();
802 $this->_current_table_mode = 'tabular';
804 if ($numrows > $this->info['tablemaxrows']) { // need config
805 if ($longest_row < $this->info['tablerowlength']) //need config
806 $this->_current_table_mode = 'supertabular';
808 $this->_current_table_mode = 'supertabular_landscape';
810 if ($longest_row < $this->info['tablerowlength']) { //need config
811 $this->_current_table_mode = 'tabular';
813 $this->_current_table_mode = 'tabularx';
816 $this->putnl("%% Table analyse:");
817 $this->putnl("%% Numrows: " . $numrows);
818 $this->putnl("%% Longest row size: " . $longest_row);
819 $this->putnl("%% Choose table mode: " . $this->_current_table_mode);
821 foreach ( $this->_current_table as $action ) { //Ouput analysed table
826 $this->_current_table_cols_size = $this->_current_table_maxcols_size[$j];
831 $this->put($action['text']);
834 $table_mode = $this->_current_table_mode . $action['type'];
836 $this->$table_mode($arg1, $arg2);
840 $table_mode = $this->_current_table_mode . '_close';
841 $this->$table_mode($arg1, $arg2);
842 $this->_current_table_mode = NULL;
843 $this->_current_table_args = array();
844 $this->_current_table = array();
845 $this->_current_table_maxcols_size = array();
846 $this->_current_table_cols_size = 0;
850 array_push($this->_current_table,
856 array_push($this->_current_table,
862 array_push($this->_current_table,
868 array_push($this->_current_table,
874 array_push($this->_current_table,
880 array_push($this->_current_table,
887 $this->_current_tab_cols = 0;
888 if ($this->info['usetablefigure'])
889 $this->putcmdnl("begin{figure}[h]");
891 $this->putcmdnl("vspace{0.8em}");
892 $this->putcmd("begin{tabular}");
893 $this->put("{");
895 $this->put("l");
897 $this->putnl("}");
901 $this->putcmdnl("hline");
902 $this->putcmdnl("end{tabular}");
903 if ($this->info['usetablefigure'])
904 $this->putcmdnl("end{figure}");
906 $this->putcmdnl("vspace{0.8em}");
907 $this->putnl(); //Prevent Break
911 $this->putcmdnl("hline");
912 $this->_current_tab_cols = 0;
916 $this->linebreak();
917 $this->putnl();
921 $this->tablecell_open($colspan, $align);
922 $this->putcmd("dokuheadingstyle{");
923 $this->putcmd("color{dokuheadingcolor}");
927 $this->putcmd("normalcolor");
928 $this->put("}");
929 $this->tablecell_close();
933 if ($this->_current_tab_cols)
934 $this->put("&");
936 $this->_current_tab_colspan = 1;
937 $this->putcmd("multicolumn{". $colspan . "}");
938 $this->put("{");
939 if ($this->_current_tab_cols == 0)
940 $this->put("|");
943 $this->put("r");
946 $this->put("l");
949 $this->put("c");
952 $this->put("l");
954 $this->put("|}");
955 $this->put("{");
957 $this->_current_tab_cols++;
961 if ($this->_current_tab_colspan = 1) {
962 $this->_current_tab_colspan = 0;
963 $this->put("}");
970 $this->_current_tab_cols = 0;
971 if ($this->info['usetablefigure'])
972 $this->putcmdnl("begin{figure}[h]");
974 $this->putcmdnl("vspace{0.8em}");
975 $this->putcmd("begin{tabularx}{");
976 $this->putcmd("dokutabularwidth");
977 $this->put("}{|");
980 if (is_null($this->_current_table_maxcols_size[$i])
981 || $this->_current_table_maxcols_size[$i] == 0
982 || $this->_current_table_maxcols_size[$i] > $this->info['biggesttableword'])
983 $this->put("X|");
985 $this->put("p{" . ($this->_current_table_maxcols_size[$i] * 0.80). "em}|");
987 $this->put("}");
988 $this->put("%% ");
990 if (is_null($this->_current_table_maxcols_size[$i]))
991 $this->put("X");
993 $this->put($this->_current_table_maxcols_size[$i]);
994 $this->put(" | ");
996 $this->putnl();
1000 $this->putcmdnl("hline");
1001 $this->putcmdnl("end{tabularx}");
1002 if ($this->info['usetablefigure'])
1003 $this->putcmdnl("end{figure}");
1005 $this->putcmdnl("vspace{0.8em}");
1006 $this->putnl(); //Prevent Break
1010 $this->putcmdnl("hline");
1011 $this->_current_tab_cols = 0;
1015 $this->linebreak();
1016 $this->putnl();
1020 $this->tablecell_open($colspan, $align);
1021 $this->putcmd("dokuheadingstyle{");
1022 $this->putcmd("color{dokuheadingcolor}");
1026 $this->putcmd("normalcolor");
1027 $this->put("}");
1028 $this->tablecell_close();
1032 if ($this->_current_tab_cols)
1033 $this->put("&");
1035 $this->_current_tab_colspan = 1;
1036 $this->putcmd("multicolumn{". $colspan . "}");
1037 $this->put("{");
1038 if ($this->_current_tab_cols == 0)
1039 $this->put("|");
1042 $this->put("r");
1045 $this->put("l");
1048 $this->put("c");
1051 $this->put("l");
1053 $this->put("|}");
1054 $this->put("{");
1056 $this->put("{");
1058 $this->_current_tab_cols++;
1062 if ($this->_current_tab_colspan = 1) {
1063 $this->_current_tab_colspan = 0;
1064 $this->put("}");
1071 $this->_current_tab_cols = 0;
1072 $this->putcmdnl('par');
1073 $this->putcmd('tablefirsthead{');
1074 $this->putcmdnl('hline}');
1075 $this->putcmd('tablehead{');
1076 $this->putcmd('hline');
1077 $this->putcmd('multicolumn{'.($maxcols).'}{|l|}{');
1078 $this->putcmd('dokusupertabularheadbreak{}');
1079 $this->put('}');
1080 $this->linebreak();
1081 $this->nlputcmd('hline');
1082 $this->putnl('}');
1083 $this->putcmd('tabletail{');
1084 $this->putcmd('hline');
1085 $this->putcmd('multicolumn{'.($maxcols).'}{|r|}{');
1086 $this->putcmd('dokusupertabulartailbreak{}');
1087 $this->put('}');
1088 $this->linebreak();
1089 $this->nlputcmd('hline');
1090 $this->putnl('}');
1091 $this->putcmdnl('tablelasttail{\hline}');
1092 $this->putcmdnl('par');
1098 $this->putcmd("begin{supertabular}");
1099 $this->put("{");
1101 $this->put("l");
1103 $this->putnl("}");
1107 $this->putcmdnl("hline");
1108 $this->putcmdnl("end{supertabular}");
1109 $this->putcmdnl('par');
1110 $this->putnl(); //Prevent Break
1114 $this->putcmdnl("hline");
1115 $this->_current_tab_cols = 0;
1119 $this->linebreak();
1120 $this->putnl();
1124 $this->tablecell_open($colspan, $align);
1125 $this->putcmd("dokuheadingstyle{");
1126 $this->putcmd("color{dokuheadingcolor}");
1130 $this->putcmd("normalcolor");
1131 $this->put("}");
1132 $this->tablecell_close();
1136 if ($this->_current_tab_cols)
1137 $this->put("&");
1139 $this->_current_tab_colspan = 1;
1140 $this->putcmd("multicolumn{". $colspan . "}");
1141 $this->put("{");
1142 if ($this->_current_tab_cols == 0)
1143 $this->put("|");
1146 $this->put("r");
1149 $this->put("l");
1152 $this->put("c");
1155 $this->put("l");
1157 $this->put("|}");
1158 $this->put("{");
1160 $this->_current_tab_cols++;
1164 if ($this->_current_tab_colspan = 1) {
1165 $this->_current_tab_colspan = 0;
1166 $this->put("}");
1174 $this->putcmdnl("begin{landscape}");
1175 $this->supertabular_open($maxcols, $numrows);
1179 $this->putcmdnl("hline");
1180 $this->putcmdnl("end{supertabular}");
1181 $this->putcmdnl("end{landscape}");
1185 $this->supertabularrow_open();
1189 $this->supertabularrow_close();
1193 $this->supertabularheader_open($colspan, $align);
1197 $this->supertabularheader_close();
1201 $this->supertabularcell_open($colspan, $align);
1205 $this->supertabularcell_close();
1212 return $this->mediatops_old($filename, $title, $align, $width, $height,
1217 $this->unformatted('img '. $filename . '('. $mime . '=>' . $ext . ')');
1222 $this->unformatted('img '. $filename);
1225 $this->putcmd("begin{wrapfigure}{", -1);
1234 $this->putnl($align . "}{0pt}", -1);
1235 $this->putcmd("includegraphics", -1); // need config for that
1237 $this->put("[", -1);
1239 $this->put("height=" . $height. "pt", -1);
1241 $this->put(",", -1);
1243 $this->put("width=" . $width . "pt", -1);
1244 $this->put("]", -1);
1246 $this->put("{", -1);
1247 $this->put($img->get_output_filename(), -1);
1248 $this->put("}\n", -1);
1250 $this->putcmd("caption{", -1);
1252 $this->_formatLink(array('url' => $title,
1256 $this->putent($title, -1);
1257 $this->putnl("}", -1);
1259 $this->putcmdnl("end{wrapfigure}", -1);
1260 return $this->put_flush();
1267 $this->putcmdnl("begin{figure*}[h]", -1);
1270 $this->putcmdnl("raggedright", -1);
1274 $this->putcmdnl("raggedleft", -1);
1277 $this->putcmdnl("centering", -1);
1279 $this->putcmd("includegraphics", -1); // need config for that
1281 $this->put("[", -1);
1283 $this->put("height=" . $height. "pt", -1);
1285 $this->put(",", -1);
1287 $this->put("width=" . $width . "pt", -1);
1288 $this->put("]", -1);
1290 $this->put("{", -1);
1291 $this->put($filename, -1);
1292 $this->put("}\n", -1);
1294 $this->putcmd("caption{", -1);
1296 $this->_formatLink(array('url' => $title,
1300 $this->putent($title, -1);
1301 $this->putnl("}", -1);
1308 $this->putcmdnl("end{figure*}", -1);
1310 return $this->put_flush();
1321 $img = $this->mediatops($filename, $title, $align, $width,
1323 $this->put($img);
1328 array_push($this->dokulinks, array('id' => $filename , 'name' => $title, 'type' => 'file'));
1329 $this->putcmd('hyperref[');
1330 $this->put(md5($filename));
1331 $this->put(']{');
1332 $this->putent($title);
1333 $this->put('}');
1397 $filename = $this->get_from_URL($src,$ext,$this->calc_cache($cache));
1401 $this->unformatted('externalmedia dnl error: ' . $src . ' ext: ' . $ext. ' cache: '. $cache);
1403 $img = $this->mediatops($filename, $title, $align, $width,
1405 $this->put($img);
1410 $this->unformatted('externalmedia ' . $src);
1414 if ($linking == 'nolink' || $noLink) $this->doc .= $link['name'];
1415 else $this->doc .= $this->_formatLink($link);
1433 return $this->_latexEntities($heading);
1436 return $this->_latexEntities($default);
1438 return $this->_latexEntities($title);
1447 return $this->_imageTitle($title);
1459 $ent = $this->latexentities;
1485 while(in_array($title.$num,$this->headers)) {
1489 $this->headers[] = $title;
1511 $ret .= $this->_xmlEntities($title);
1514 $ret .= $this->_xmlEntities(noNS($src));
1527 $filename = $this->get_from_URL($src,$ext,$this->calc_cache($cache));
1529 $this->unformatted('externalmedia dnl error: ' . $src . ' ext: ' . $ext. ' cache: '. $cache);
1532 $ret .= $this->mediatops_old($filename, $title, $align, $width,
1544 $ret .= $this->_latexEntities($title);
1547 $ret .= $this->latexEntities(noNS($src));
1566 $ret .= ' title="'.$this->_xmlEntities($title).'"';
1567 $ret .= ' alt="'.$this->_xmlEntities($title).'"';
1574 $ret .= ' title="'.$this->_xmlEntities($cap).'"';
1575 $ret .= ' alt="'.$this->_xmlEntities($cap).'"';
1582 $ret .= ' width="'.$this->_xmlEntities($width).'"';
1585 $ret .= ' height="'.$this->_xmlEntities($height).'"';
1592 if ( !is_null($width) ) $ret .= ' width="'.$this->_xmlEntities($width).'"';
1593 if ( !is_null($height) ) $ret .= ' height="'.$this->_xmlEntities($height).'"';
1599 if ( !is_null($width) ) $ret .= ' width="'.$this->_xmlEntities($width).'"';
1600 if ( !is_null($height) ) $ret .= ' height="'.$this->_xmlEntities($height).'"';
1607 $ret .= $this->_xmlEntities($title);
1610 $ret .= $this->_xmlEntities(noNS($src));
1661 $this->putcmd('href{'.$link['url'].'}', -1);
1663 $this->put('{', -1);
1664 $this->putent($link['title'], -1);
1665 $this->put('}', -1);
1670 return $this->put_flush();
1681 return $this->_media($img['src'],
1724 $ret = join('', $this->_tmp_put);
1725 $this->_tmp_put = array();
1731 array_push($this->_tmp_put, $text);
1734 if ($this->_current_table_mode == 'table_analyse') {
1735 array_push($this->_current_table,
1742 if (is_null($this->_tmphandle))
1743 $this->doc .= $text;
1745 fwrite($this->_tmphandle, $text);
1750 return $this->put($this->_latexEntities($text), $mode);
1753 return $this->put('\\' . $cmd, $mode);
1756 return $this->put('{\\' . $cmd . '}', $mode);
1759 $this->putcmd($cmd . DOKU_LF, $mode);
1762 $this->putnl();
1763 $this->putcmd($cmd . DOKU_LF);
1766 $this->putnl();
1767 $this->putcmd($cmd);
1771 $this->put($text, $mode);
1773 $this->put(DOKU_LF, $mode);
1776 $this->put('$'. $cmd . '$');
1779 if ($this->state['format'] == 0)
1780 $this->putcmd("begin{verbatim}");
1781 $this->put($text);
1782 if ($this->state['format'] == 0)
1783 $this->putcmd("end{verbatim}");
1787 $this->info['command_hook'] .= $text;
1791 $this->info['footer_hook'] .= $text;
1795 return $this->info;
1799 return $this->_section_level;