Пример #1
0
 /**
  * sets default font for notes
  *
  * @param PHPRtfLite_Font $font
  */
 public static function setDefaultFont(PHPRtfLite_Font $font)
 {
     self::$_defaultFont = $font;
 }
Пример #2
0
 /**
  * gets default font for notes
  *
  * @return PHPRtfLite_Font
  */
 public function getDefaultFontForNotes()
 {
     return PHPRtfLite_Note::getDefaultFont($font);
 }
Пример #3
0
 /**
  * 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;
 }
Пример #4
0
 /**
  * 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;
 }