コード例 #1
0
 /**
  * This function opens a multi column frame according to the parameters in $properties.
  * See function createMultiColumnFrameStyle of helper class stylefactory.php for more
  * information about the supported properties/CSS styles.
  *
  * @author LarsDW223
  *
  * @param $properties
  */
 function _odtOpenMultiColumnFrame($properties)
 {
     // Create style name.
     $style_name = $this->factory->createMultiColumnFrameStyle($style, $properties);
     $this->autostyles[$style_name] = $style;
     $width_abs = $this->_getAbsWidthMindMargins(100);
     // Group the frame so that they are stacked one on each other.
     $this->p_close();
     $this->doc .= '<text:p>';
     // Draw a frame with a text box in it. the text box will be left opened
     // to grow with the content (requires fo:min-height in $style_name).
     $this->doc .= '<draw:frame draw:style-name="' . $style_name . '" draw:name="Frame1"
                     text:anchor-type="paragraph" svg:width="' . $width_abs . 'cm" draw:z-index="0">';
     $this->doc .= '<draw:text-box fo:min-height="1pt">';
 }
コード例 #2
0
ファイル: page.php プロジェクト: a-gundy/dokuwiki-plugin-odt
 /**
  * This function opens a multi column frame according to the parameters in $properties.
  * See function createMultiColumnFrameStyle of helper class stylefactory.php for more
  * information about the supported properties/CSS styles.
  *
  * @author LarsDW223
  *
  * @param $properties
  */
 function _odtOpenMultiColumnFrame($properties)
 {
     // Create style name.
     $style_obj = $this->factory->createMultiColumnFrameStyle($properties);
     $this->docHandler->addAutomaticStyle($style_obj);
     $style_name = $style_obj->getProperty('style-name');
     $width_abs = $this->_getAbsWidthMindMargins(100);
     // Group the frame so that they are stacked one on each other.
     $this->p_close();
     $this->p_open();
     $this->state->enter('frame', 'frame');
     $this->state->setInParagraph(false);
     // Draw a frame with a text box in it. the text box will be left opened
     // to grow with the content (requires fo:min-height in $style_name).
     $this->doc .= '<draw:frame draw:style-name="' . $style_name . '" draw:name="Frame1"
                     text:anchor-type="paragraph" svg:width="' . $width_abs . 'cm" draw:z-index="0">';
     $this->doc .= '<draw:text-box fo:min-height="1pt">';
 }