PHPWord/src/PhpWord/Reader/ODText/AbstractPart.php

100 lines
2.7 KiB
PHP
Raw Normal View History

2014-04-29 01:18:01 +07:00
<?php
/**
* This file is part of PHPWord - A pure PHP library for reading and writing
* word processing documents.
*
* PHPWord is free software distributed under the terms of the GNU Lesser
* General Public License version 3 as published by the Free Software Foundation.
*
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code. For the full list of
* contributors, visit https://github.com/PHPOffice/PHPWord/contributors.
2014-04-29 01:18:01 +07:00
*
* @link https://github.com/PHPOffice/PHPWord
* @copyright 2010-2014 PHPWord contributors
2014-05-04 21:03:28 +04:00
* @license http://www.gnu.org/licenses/lgpl.txt LGPL version 3
2014-04-29 01:18:01 +07:00
*/
namespace PhpOffice\PhpWord\Reader\ODText;
2014-05-15 14:41:08 +07:00
use PhpOffice\PhpWord\Reader\Word2007\AbstractPart as Word2007AbstractPart;
use PhpOffice\PhpWord\Shared\XMLReader;
2014-04-29 01:18:01 +07:00
/**
* Abstract part reader
*/
2014-05-15 14:41:08 +07:00
abstract class AbstractPart extends Word2007AbstractPart
2014-04-29 01:18:01 +07:00
{
2014-05-21 00:00:19 +07:00
/**
* Read w:p (override)
*
* @param \PhpOffice\PhpWord\Shared\XMLReader $xmlReader
* @param \DOMElement $domNode
* @param mixed $parent
* @param string $docPart
*
* @todo Get font style for preserve text
*/
protected function readParagraph(XMLReader $xmlReader, \DOMElement $domNode, &$parent, $docPart)
{
}
2014-04-29 01:18:01 +07:00
/**
* Read w:r (override)
2014-04-29 01:18:01 +07:00
*
* @param \PhpOffice\PhpWord\Shared\XMLReader $xmlReader
* @param \DOMElement $domNode
* @param mixed $parent
* @param string $docPart
* @param mixed $paragraphStyle
2014-04-29 01:18:01 +07:00
*/
protected function readRun(XMLReader $xmlReader, \DOMElement $domNode, &$parent, $docPart, $paragraphStyle = null)
{
}
2014-04-29 01:18:01 +07:00
2014-05-21 00:00:19 +07:00
/**
* Read w:tbl (override)
*
* @param \PhpOffice\PhpWord\Shared\XMLReader $xmlReader
* @param \DOMElement $domNode
* @param mixed $parent
* @param string $docPart
*/
protected function readTable(XMLReader $xmlReader, \DOMElement $domNode, &$parent, $docPart)
{
}
2014-04-29 01:18:01 +07:00
/**
* Read w:pPr (override)
2014-04-29 01:18:01 +07:00
*/
protected function readParagraphStyle(XMLReader $xmlReader, \DOMElement $domNode)
{
}
2014-04-29 01:18:01 +07:00
/**
* Read w:rPr (override)
2014-04-29 01:18:01 +07:00
*/
protected function readFontStyle(XMLReader $xmlReader, \DOMElement $domNode)
2014-04-29 01:18:01 +07:00
{
}
/**
* Read w:tblPr (override)
2014-04-29 01:18:01 +07:00
*/
protected function readTableStyle(XMLReader $xmlReader, \DOMElement $domNode)
2014-04-29 01:18:01 +07:00
{
}
2014-05-21 00:26:43 +07:00
/**
* Read style definition (override)
*
* @param \PhpOffice\PhpWord\Shared\XMLReader $xmlReader
* @param \DOMElement $parentNode
* @param array $styleDefs
* @return array
*/
protected function readStyleDefs(XMLReader $xmlReader, \DOMElement $parentNode = null, $styleDefs = array())
{
}
2014-04-29 01:18:01 +07:00
}