Lines Matching refs:this

39         $this->config = plugin_load('helper', 'odt_config');
42 $this->document = new ODTDocument();
43 $this->init_ok = $this->document->initialize ();
50 $this->config->setParam($name, $value);
59 return $this->config->isParam($string);
92 $this->css = $loader->load
93 ('odt', 'odt', $this->config->getParam('css_template'));
97 $this->import = plugin_load('helper', 'odt_cssimport');
98 if ( isset($this->import) ) {
99 $this->import->importFromString ($this->css);
104 $this->import->adjustLengthValues (array($this, 'adjustLengthCallback'));
108 switch ($this->config->getParam('css_usage')) {
110 $this->document->setCSSUsage('basic');
113 $this->document->setCSSUsage('full');
116 $this->document->setCSSUsage('off');
119 $this->document->setMediaSelector($this->config->getParam('media_sel'));
123 … $this->document->addHTMLElement ('html', 'lang="'.$conf['lang'].'" dir="'.$lang['direction'].'"');
124 $this->document->addHTMLElement ('body');
125 $this->document->addHTMLElement ('div', 'id="dokuwiki__site"');
126 …$this->document->addHTMLElement ('div', 'id="dokuwiki__top" class="site dokuwiki mode_show tpl_ado…
127 $this->document->addHTMLElement ('div', 'id="dokuwiki__content"');
128 $this->document->addHTMLElement ('div', 'class="page group"');
131 $this->document->importCSSFromString
132 …($this->css, $this->config->getParam('media_sel'), array($this, 'replaceURLPrefixesCallback'), fal…
140 $this->document->setPixelPerEm($this->config->getParam ('css_font_size'));
141 $this->document->setTwipsPerPixelX($this->config->getParam ('twips_per_pixel_x'));
142 $this->document->setTwipsPerPixelY($this->config->getParam ('twips_per_pixel_y'));
156 $mode = $this->config->load($warning);
159 $this->setupUnits();
168 … $this->document->setOrderedListParams(NULL, $this->config->getParam('olist_label_align'));
169 … $this->document->setUnorderedListParams(NULL, $this->config->getParam('olist_label_align'));
174 $this->load_css();
179 $this->buildODTPathes ($ODTtemplate, $temp_dir);
180 $this->document->importODTStyles($ODTtemplate, $temp_dir);
182 if ($this->config->getParam ('apply_fs_to_non_css')) {
183 $this->document->adjustFontSizes($this->config->getParam('css_font_size').'pt');
189 $media_sel = $this->config->getParam ('media_sel');
190 $template = $this->config->getParam ('odt_template');
191 $directory = $this->config->getParam ('tpl_dir');
192 $template_path = $this->config->getParam('mediadir').'/'.$directory."/".$template;
193 $this->document->importCSSFromFile
194 …($template_path, $media_sel, array($this, 'replaceURLPrefixesCallback'), $this->config->getParam('…
197 $this->document->setOutlineStyle($this->config->getParam('outline_list_style'));
204 $this->document->setOutlineStyle($this->config->getParam('outline_list_style'));
206 if ($this->config->getParam ('apply_fs_to_non_css')) {
207 $this->document->adjustFontSizes($this->config->getParam('css_font_size').'pt');
216 $default = $this->document->getDefaultStyle ('paragraph');
220 $fontFizeInPx = $this->document->toPixel($fontFize);
222 $this->document->setPixelPerEm($fontFizeInPx);
229 $this->document->setStartPageFormat ($this->config->getParam ('format'),
230 $this->config->getParam ('orientation'),
231 $this->config->getParam ('margin_top'),
232 $this->config->getParam ('margin_right'),
233 $this->config->getParam ('margin_bottom'),
234 $this->config->getParam ('margin_left'));
238 $this->document->setTitle($ID);
241 $disabled = $this->config->getParam ('disable_links');
243 $this->document->disableLinks();
245 $this->document->enableLinks();
248 $this->set_page_bookmark($ID);
257 if (!$this->init_ok) {
261 $message = $this->getLang('init_failed_msg');
270 $this->document_setup();
288 $this->finalize_ODTfile();
291 $this->config->refresh();
294 $this->document->state->reset();
311 …$this->document->setPageFormat ($format, $orientation, $margin_top, $margin_right, $margin_bottom,…
320 $this->buildODTPathes ($ODTtemplate, $temp_dir);
323 $this->doc = $this->document->getODTFileAsString ($ODTtemplate, $temp_dir);
330 $this->config->setParam ('disable_links', false);
331 $this->document->enableLinks();
338 $this->config->setParam ('disable_links', true);
339 $this->document->disableLinks();
360 $data = $this->get_index_settings($type, $settings);
361 $this->document->insertIndex($type, $data);
392 if ($this->config->getParam('outline_list_style') == 'Numbers') {
398 $data ['maxlevel'] = $this->config->getParam('toc_maxlevel');
410 $data ['title'] = $this->getLang('toc_title');
420 $data ['leader_sign'] = $this->config->getParam('toc_leader_sign');
430 $data ['indents'] = explode (',', $this->config->getParam('toc_indents'));
439 $data ['pagebreak'] = $this->config->getParam('toc_pagebreak');
464 $data ['styleL'.($count + 1)] = $this->config->getParam('toc_style');
495 return $this->document->getWidth();
507 return $this->document->getHeight();
518 return $this->document->getMarginLeft();
529 return $this->document->getMarginRight();
540 return $this->document->getMarginTop();
551 return $this->document->getMarginBottom();
569 return $this->document->getRelWidthMindMargins($percentage);
584 return $this->document->getAbsWidthMindMargins($percentage);
602 return $this->document->getRelHeightMindMargins($percentage);
617 return $this->document->getAbsHeightMindMargins($percentage);
627 $this->document->addPlainText($text);
639 $this->document->paragraphOpen($style);
649 $this->document->paragraphClose();
659 $this->document->setPageBookmark($id);
670 $this->document->heading($text, $level);
674 $this->document->horizontalRule();
678 $this->document->linebreak();
682 $this->document->pagebreak();
686 $this->document->spanOpen($this->document->getStyleName('strong'));
690 $this->document->spanClose();
694 $this->document->spanOpen($this->document->getStyleName('emphasis'));
698 $this->document->spanClose();
702 $this->document->spanOpen($this->document->getStyleName('underline'));
706 $this->document->spanClose();
710 $this->document->spanOpen($this->document->getStyleName('monospace'));
714 $this->document->spanClose();
718 $this->document->spanOpen($this->document->getStyleName('sub'));
722 $this->document->spanClose();
726 $this->document->spanOpen($this->document->getStyleName('sup'));
730 $this->document->spanClose();
734 $this->document->spanOpen($this->document->getStyleName('del'));
738 $this->document->spanClose();
742 $this->document->generateSpansfromHTMLCode($HTMLCode);
756 $this->document->tableOpen($maxcols, $numrows);
760 $this->document->tableClose();
764 $this->document->tableAddColumn();
768 $this->document->tableRowOpen();
772 $this->document->tableRowClose();
783 $this->document->tableHeaderOpen($colspan, $rowspan, $align);
787 $this->document->tableHeaderClose();
798 $this->document->tableCellOpen($colspan, $rowspan, $align);
802 $this->document->tableCellClose();
811 $this->document->footnoteOpen();
820 $this->document->footnoteClose();
824 $this->document->listOpen($continue, $this->document->getStyleName('list'), 'ul');
828 $this->document->listClose();
832 $this->document->listOpen($continue, $this->document->getStyleName('numbering'), 'ol');
836 $this->document->listClose();
840 $this->document->listClose();
849 $this->document->listItemOpen($level);
853 $this->document->listItemClose();
862 $this->document->listHeaderOpen($level);
866 $this->document->listHeaderClose();
870 $this->document->listContentOpen();
874 $this->document->listContentClose();
883 $this->document->addPlainText($text);
892 $this->document->addPlainText($acronym);
899 if ( array_key_exists($smiley, $this->smileys) ) {
900 $src = DOKU_INC."lib/images/smileys/".$this->smileys[$smiley];
901 $this->_odtAddImage($src);
903 $this->document->addPlainText($smiley);
913 if (array_key_exists($entity, $this->entities)) {
914 $entity = $this->entities[$entity];
918 $this->document->addPlainText($entity);
931 $this->document->addPlainText($text);
937 $this->document->addPlainText($text);
943 $this->document->addPlainText($text);
949 $this->document->addPlainText($text);
955 $this->document->addPlainText($text);
961 $this->document->addPlainText($text);
970 $this->monospace_open();
971 $this->document->addPlainText($text);
972 $this->monospace_close();
981 $this->file($text);
990 $this->monospace_open();
991 $this->document->addPlainText($text);
992 $this->monospace_close();
1001 $this->file($text);
1010 $this->_preformatted($text);
1021 $this->_highlight('file', $text, $language, $options);
1025 $this->document->quoteOpen();
1029 $this->document->quoteClose();
1040 $this->_highlight('code', $text, $language, $options);
1049 $this->document->addPreformattedText($text, $style, $notescaped);
1062 if (!$this->document->styleExists($style_name)) {
1064 $body = $this->document->getStyleName('body');
1065 $style = clone($this->document->getStyle($body));
1070 $this->document->addAutomaticStyle($style);
1074 if (!$this->document->styleExists($style_name)) {
1075 $source_code_style = $this->document->getStyleByAlias('source code');
1083 $this->document->createTextStyle ($properties, true);
1086 if (!$this->document->styleExists($style_name)) {
1089 $ol = $this->document->getStyleName('numbering');
1090 $style = clone($this->document->getStyle($ol));
1100 $this->document->addAutomaticStyle($style);
1113 $this->_preformatted($text, $style_name);
1121 $this->createGeshiListStyle ();
1122 $source_code_style = $this->document->getStyleByAlias('source code');
1138 $options ['p_style'] = $this->document->getStyleName('preformatted');
1141 $this->document->tableOpen();
1142 $this->document->tableRowOpen();
1156 $this->document->tableCellOpenUseProperties($properties);
1159 $this->document->generateODTfromHTMLCode($highlighted_code, $options);
1162 $this->document->tableCellClose();
1163 $this->document->tableRowClose();
1164 $this->document->tableClose();
1191 return $this->externallink($url, $title, true);
1193 $this->externallink($url, $title);
1201 return $this->_odtAddImage($file, $width, $height, $align, $title, NULL, true);
1203 $this->_odtAddImage($file, $width, $height, $align, $title);
1213 …return $this->externalmedia(str_replace('doku.php?id=','lib/exe/fetch.php?media=',wl($src,'',true)…
1216 …$this->externalmedia(str_replace('doku.php?id=','lib/exe/fetch.php?media=',wl($src,'',true)),$titl…
1245 return $this->externallink($url, $title, true);
1247 $this->externallink($url, $title);
1253 $tmp_dir = $this->config->getParam ('tmpdir')."/odt";
1268 $doc .= $this->document->openImageLink ($src, $returnonly);
1270 $doc .= $this->_odtAddImage($tmp_name, $width, $height, $align, $title, $returnonly);
1272 $doc .= $this->document->closeImageLink ($returnonly);
1279 return $this->externallink($src,$title,true);
1281 $this->externallink($src,$title);
1295 return $this->internallink($link,$link, null, true);
1297 $this->internallink($link, $link);
1311 $ret .= '>'.$this->_xmlEntities($name).'</text:a>';
1330 $default = $this->_simpleTitle($id);
1333 $name = $this->_getLinkTitle($name, $default, $isImage, $id);
1345 return $this->locallink_with_text($hash, $id, $name, $returnonly);
1347 $this->locallink_with_text($hash, $id, $name, $returnonly);
1351 return $this->_doLink($url, $name, $returnonly);
1353 $this->_doLink($url, $name, $returnonly);
1366 $name = $this->_getLinkTitle($name, $url, $isImage);
1369 return $this->_doLink($url, $name, $returnonly);
1371 $this->_doLink($url, $name, $returnonly);
1386 $id = $this->_getLinkTitle($id, $hash, $isImage);
1387 $this->document->insertCrossReference($id, $text);
1402 $name = $this->_getLinkTitle($name, $hash, $isImage);
1403 $this->document->insertCrossReference($hash, $name);
1418 $name = $this->_getLinkTitle($name, $wikiUri, $isImage);
1419 $url = $this-> _resolveInterWiki($wikiName,$wikiUri);
1421 return $this->_doLink($url, $name, $returnonly);
1423 $this->_doLink($url, $name, $returnonly);
1437 $name = $this->_getLinkTitle($name, $url, $isImage);
1441 $this->document->addPlainText($name);
1455 $name = $this->_getLinkTitle($name, $address, $isImage);
1457 return $this->_doLink("mailto:".$address, $name, $returnonly);
1459 $this->_doLink("mailto:".$address, $name, $returnonly);
1472 $url = $this->_xmlEntities($url);
1476 $doc .= $this->document->openImageLink ($url, $returnonly);
1479 $doc .= $this->internalmedia($name['src'],
1489 $doc .= $this->document->closeImageLink ($returnonly);
1492 $doc .= $this->document->insertHyperlink ($url, $name, NULL, NULL, $returnonly);
1514 if ($this->config->getParam ('useheading') && $id) {
1517 return $this->_xmlEntities($heading);
1520 return $this->_xmlEntities($default);
1522 return $this->_xmlEntities($title);
1566 $this->listu_open();
1570 $this->document->listItemOpen(0);
1571 $this->document->listContentOpen();
1573 $this->externallink($item->get_permalink(),
1580 if($name) $this->cdata(' '.$lang['by'].' '.$name);
1584 $this->cdata(' ('.$item->get_date($this->config->getParam ('dformat')).')');
1587 $this->cdata(strip_tags($item->get_description()));
1589 $this->document->listContentClose();
1590 $this->document->listItemClose();
1593 $this->document->listItemOpen(0);
1594 $this->document->listContentOpen();
1595 $this->emphasis_open();
1596 $this->cdata($lang['rssfailed']);
1597 $this->emphasis_close();
1598 $this->externallink($url);
1599 $this->document->listContentClose();
1600 $this->document->listItemClose();
1602 $this->listu_close();
1612 $this->document->addStringAsSVGImage($string, $width, $height, $align, $title, $style);
1623 return $this->document->addStringAsSVGImageFile($string);
1639 return $this->document->addFileAsPicture($src);
1658 … return $this->document->addImage($src, $width, $height, $align, $title, $style, $returnonly);
1660 $this->document->addImage($src, $width, $height, $align, $title, $style, $returnonly);
1676 return $this->document->addImageUseProperties($src, $properties, $returnonly);
1678 $this->document->addImageUseProperties($src, $properties, $returnonly);
1690 return $this->document->getImageSize($src, $maxwidth, $maxheight);
1700 return $this->document->getImageSizeString($src, $width, $height);
1711 $this->document->spanOpenUseCSS($element, $attributes, $import);
1722 $this->document->spanOpenUseProperties($properties);
1726 $this->document->spanOpen($style_name);
1735 $this->document->spanClose();
1746 $this->document->paragraphOpenUseCSS($element, $attributes, $import);
1757 $this->document->paragraphOpenUseProperties($properties);
1767 $this->document->openTextBoxUseCSS ($element, $attributes, $import);
1788 $this->_odtOpenTextBoxUseProperties ($properties);
1797 $this->_odtCloseTextBox();
1808 $this->document->tableOpenUseCSS($maxcols, $numrows, $element, $attributes, $import);
1819 $this->document->tableOpenUseProperties ($properties, $maxcols, $numrows);
1830 $this->document->tableClose();
1841 $this->document->tableAddColumnUseProperties($properties);
1853 $this->document->tableHeaderOpenUseCSS($colspan, $rowspan, $element, $attributes, $import);
1865 $this->document->tableHeaderOpenUseProperties($properties, $colspan = 1, $rowspan = 1);
1877 $this->document->tableRowOpenUseCSS($element, $attributes, $import);
1889 $this->document->tableRowOpenUseProperties($properties);
1901 $this->document->tableCellOpenUseCSS($colspan, $rowspan, $element, $attributes, $import);
1913 $this->document->tableCellOpenUseProperties($properties, $colspan, $rowspan);
1923 $this->document->openMultiColumnTextBoxUseProperties($properties);
1934 $this->document->closeMultiColumnTextBox();
1944 $this->document->openTextBoxUseProperties ($properties);
1955 $this->document->closeTextBox();
1965 $this->document->openFrameUseProperties ($properties);
1976 $this->document->closeFrame();
1987 $media_sel = $this->config->getParam ('media_sel');
1990 $this->import->getPropertiesForElement($dest, $element, $classString, $media_sel, $cssId);
1993 $this->document->getCSSStylePropertiesForODT($dest, $inlineStyle);
1999 $this->document->adjustValuesForODT($dest);
2010 return $this->import->replaceURLPrefix ($URL, $replacement);
2022 return $this->document->toPoints($pixel, 'x');
2034 return $this->document->toPoints($pixel, 'y');
2047 return $this->document->adjustValueForODT ($property, $value);
2069 $adjusted = $this->pixelToPointsX($number).'pt';
2080 $adjusted = $this->pixelToPointsY($number).'pt';
2091 $adjusted = $this->pixelToPointsY($number).'pt';
2117 $this->document->importCSSFromString
2118 …($text, $this->config->getParam('media_sel'), array($this, 'replaceURLPrefixesCallback'), true, $t…
2128 $media_sel = $this->config->getParam ('media_sel');
2130 $this->document->getODTProperties ($dest, $element, $attributes, $media_sel, $inherit);
2135 $media_sel = $this->config->getParam ('media_sel');
2137 $this->document->getODTPropertiesFromElement ($dest, $element, $media_sel, $inherit);
2146 $this->document->createTextStyle ($properties, $common);
2155 $this->document->createParagraphStyle ($properties, $common);
2164 $this->document->createTableStyle ($properties, $common);
2173 $this->document->createTableRowStyle ($properties, $common);
2182 $this->document->createTableCellStyle ($properties, $common);
2191 $this->document->createTableColumnStyle ($properties, $common);
2195 return $this->document->styleExists($style_name);
2208 $this->document->addUserField($name, $value);
2220 $this->document->insertUserField($name);
2227 if (is_dir($this->config->getParam('tmpdir'))) {
2228 $tempDirPath = $this->config->getParam('tmpdir');
2234 $template = $this->config->getParam ('odt_template');
2236 …$ODTTemplatePath = $this->config->getParam('mediadir').'/'.$this->config->getParam ('tpl_dir')."/"…
2241 return $this->document->addToValue ($value, $add);
2245 return $this->document->subFromValue ($value, $sub);
2249 return $this->document->getHTMLStack ();
2253 $this->document->dumpHTMLStack ();
2257 $this->document->setOrderedListParams($setLevel, $align, $paddingLeft, $marginLeft);
2261 $this->document->setUnorderedListParams($setLevel, $align, $paddingLeft, $marginLeft);
2272 $this->document->insertBookmark($id, $now);
2284 $this->document->generateODTfromHTMLCode($html_code, $options);