Add `writeRaw` annotation and disambiguate `Settings`
This commit is contained in:
parent
5511378eca
commit
f380c29eef
|
|
@ -28,12 +28,13 @@ if (!defined('DATE_W3C')) {
|
||||||
/**
|
/**
|
||||||
* XMLWriter wrapper
|
* XMLWriter wrapper
|
||||||
*
|
*
|
||||||
* @method bool writeElement(string $name, string $content = null)
|
|
||||||
* @method bool startElement(string $name)
|
|
||||||
* @method bool writeAttribute(string $name, string $value)
|
|
||||||
* @method bool endElement()
|
* @method bool endElement()
|
||||||
* @method bool startDocument(string $version = 1.0, string $encoding = null, string $standalone = null)
|
* @method bool startDocument(string $version = 1.0, string $encoding = null, string $standalone = null)
|
||||||
|
* @method bool startElement(string $name)
|
||||||
* @method bool text(string $content)
|
* @method bool text(string $content)
|
||||||
|
* @method bool writeAttribute(string $name, string $value)
|
||||||
|
* @method bool writeElement(string $name, string $content = null)
|
||||||
|
* @method bool writeRaw(string $content)
|
||||||
*/
|
*/
|
||||||
class XMLWriter
|
class XMLWriter
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -17,7 +17,7 @@
|
||||||
|
|
||||||
namespace PhpOffice\PhpWord\Writer\Word2007\Part;
|
namespace PhpOffice\PhpWord\Writer\Word2007\Part;
|
||||||
|
|
||||||
use PhpOffice\PhpWord\Settings;
|
use PhpOffice\PhpWord\Settings as PhpWordSettings;
|
||||||
use PhpOffice\PhpWord\Shared\XMLWriter;
|
use PhpOffice\PhpWord\Shared\XMLWriter;
|
||||||
use PhpOffice\PhpWord\Style;
|
use PhpOffice\PhpWord\Style;
|
||||||
use PhpOffice\PhpWord\Style\Font;
|
use PhpOffice\PhpWord\Style\Font;
|
||||||
|
|
@ -158,8 +158,8 @@ class Styles extends AbstractPart
|
||||||
*/
|
*/
|
||||||
private function writeDefaultStyles(XMLWriter $xmlWriter, $styles)
|
private function writeDefaultStyles(XMLWriter $xmlWriter, $styles)
|
||||||
{
|
{
|
||||||
$fontName = Settings::getDefaultFontName();
|
$fontName = PhpWordSettings::getDefaultFontName();
|
||||||
$fontSize = Settings::getDefaultFontSize();
|
$fontSize = PhpWordSettings::getDefaultFontSize();
|
||||||
|
|
||||||
// Default font
|
// Default font
|
||||||
$xmlWriter->startElement('w:docDefaults');
|
$xmlWriter->startElement('w:docDefaults');
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue