PhpOffice\PhpPresentation\Writer\ODPresentation\Content::writeDrawingStyle PHP Метод

writeDrawingStyle() публичный Метод

Write the default style information for an AbstractDrawing
public writeDrawingStyle ( PhpOffice\Common\XMLWriter $objWriter, PhpOffice\PhpPresentation\Shape\AbstractDrawing $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\AbstractDrawing
    public function writeDrawingStyle(XMLWriter $objWriter, AbstractDrawing $shape)
    {
        // style:style
        $objWriter->startElement('style:style');
        $objWriter->writeAttribute('style:name', 'gr' . $this->shapeId);
        $objWriter->writeAttribute('style:family', 'graphic');
        $objWriter->writeAttribute('style:parent-style-name', 'standard');
        // style:graphic-properties
        $objWriter->startElement('style:graphic-properties');
        $objWriter->writeAttribute('draw:stroke', 'none');
        $objWriter->writeAttribute('draw:fill', 'none');
        if ($shape->getShadow()->isVisible()) {
            $this->writeStylePartShadow($objWriter, $shape->getShadow());
        }
        $objWriter->endElement();
        $objWriter->endElement();
    }