1<?php
2
3/**
4 * ODTSettings: class for maintaining the settings data of an ODT document.
5 *              Code was previously included in renderer.php.
6 *
7 * @license    GPL 2 (http://www.gnu.org/licenses/gpl.html)
8 * @author Andreas Gohr <andi@splitbrain.org>
9 * @author Aurelien Bompard <aurelien@bompard.org>
10 * @author LarsDW223
11 */
12class ODTSettings
13{
14    var $settings = null;
15
16    /**
17     * Constructor. Set initial meta data.
18     */
19    public function __construct() {
20        $this->settings  = '<' . '?xml version="1.0" encoding="UTF-8"?' . ">\n";
21        $this->settings .= '<office:document-settings xmlns:office="urn:oasis:names:tc:opendocument:xmlns:office:1.0" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:config="urn:oasis:names:tc:opendocument:xmlns:config:1.0" xmlns:ooo="http://openoffice.org/2004/office" office:version="1.2"><office:settings><config:config-item-set config:name="dummy-settings"><config:config-item config:name="MakeValidatorHappy" config:type="boolean">true</config:config-item></config:config-item-set></office:settings></office:document-settings>';
22    }
23
24    /**
25     * Returns the complete manifest content.
26     */
27    function getContent(){
28        return $this->settings;
29    }
30}
31