setClass ('paragraph'); if (isset($style_name)) { $this->setStyleName ($style_name); } } /** * Return the elements name. * * @return string The ODT XML element name. */ public function getElementName () { return ('text:p'); } /** * Return string with encoded opening tag. * * @return string The ODT XML code to open this element. */ public function getOpeningTag () { return ''; } /** * Return string with encoded closing tag. * * @return string The ODT XML code to close this element. */ public function getClosingTag () { return ''; } /** * Are we in a paragraph or not? * As a paragraph we are of course. * * @return boolean */ public function getInParagraph() { return true; } /** * Determine and set the parent for this element. * As a paragraph the previous element is our parent. * * @param ODTStateElement $previous */ public function determineParent(ODTStateElement $previous) { $this->setParent($previous); } }