1 <?php
2 /**
3  * DokuWiki Plugin structodt (Syntax Component)
4  *
5  * @license GPL 2 http://www.gnu.org/licenses/gpl-2.0.html
6  * @author  Szymon Olewniczak <it@rid.pl>
7  */
8 
9 // must be run within Dokuwiki
10 use dokuwiki\plugin\structodt\meta\AggregationEditorTableOdt;
11 
12 if (!defined('DOKU_INC')) die();
13 
14 class syntax_plugin_structodt_global extends syntax_plugin_struct_global
15 {
16 
17     /** @var string which class to use for output */
18     protected $tableclass = AggregationEditorTableOdt::class;
19 
20     /**
21      * Connect lookup pattern to lexer.
22      *
23      * @param string $mode Parser mode
24      */
25     public function connectTo($mode)
26     {
27         $this->Lexer->addSpecialPattern('----+ *struct odt global *-+\n.*?\n----+', $mode, 'plugin_structodt_global');
28     }
29 }
30 
31 // vim:ts=4:sw=4:et: