/**
  * 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
 /**
  * @param $property
  * @param $value
  * @param int $emValue
  * @return string
  */
 public function adjustValueForODT($property, $value, $emValue = 0)
 {
     return $this->factory->adjustValueForODT($property, $value, $emValue);
 }