/** * sets default font for notes * * @param PHPRtfLite_Font $font */ public static function setDefaultFont(PHPRtfLite_Font $font) { self::$_defaultFont = $font; }
/** * gets default font for notes * * @return PHPRtfLite_Font */ public function getDefaultFontForNotes() { return PHPRtfLite_Note::getDefaultFont($font); }
/** * renders document definition head for footnotes/endnotes * * @return string */ public function getContent() { $content = ''; $content .= PHPRtfLite_Note::getFootnoteNumberingTypeAsRtf($this->_footnoteNumberingType) . ' '; $content .= PHPRtfLite_Note::getEndnoteNumberingTypeAsRtf($this->_endnoteNumberingType) . ' '; $content .= '\\ftnstart' . $this->_footnoteStartNumber . ' '; $content .= '\\aftnstart' . $this->_endnoteStartNumber . ' '; if ($this->_footnoteRestartEachPage) { $content .= '\\ftnrstpg '; } if ($this->_endnoteRestartEachPage) { $content .= '\\aftnrstpg '; } return $content; }
/** * adds an endnote * * @param string $noteText * @param PHPRtfLite_Font $font * @param PHPRtfLite_ParFormat $parFormat * * @return PHPRtfLite_Note */ public function addEndnote($noteText, PHPRtfLite_Font $font = null, PHPRtfLite_ParFormat $parFormat = null) { $endnote = new PHPRtfLite_Note($this->_rtf, $noteText, $font, $parFormat); $endnote->setIsFootnote(false); $this->_elements[] = $endnote; return $endnote; }