diff --git a/modules/evvtgendoc/OpenDocument/Section.php b/modules/evvtgendoc/OpenDocument/Section.php index a2f645a0f8..c8f5ce018a 100644 --- a/modules/evvtgendoc/OpenDocument/Section.php +++ b/modules/evvtgendoc/OpenDocument/Section.php @@ -75,6 +75,7 @@ public function __construct(DOMNode $node, OpenDocument $document) { $this->allowedElements = array( 'OpenDocument_Span', 'OpenDocument_Paragraph', + 'OpenDocument_Heading', ); } @@ -120,5 +121,9 @@ public function createParagraph($text = '') { public function createSpan($text) { return OpenDocument_Span::instance($this, $text); } + + public function createHeading($text = '', $level = 1) { + return OpenDocument_Heading::instance($this, $text, $level); + } } ?>