PHP Class PhpOffice\PhpPresentation\Writer\ODPresentation\Content

Inheritance: extends AbstractDecoratorWriter
Show file Open project: phpoffice/phppowerpoint

Protected Properties

Property Type Description
$arrStyleBullet [] Stores bullet styles for text shapes that include lists.
$arrStyleParagraph array Stores paragraph information for text shapes.
$arrStyleTextFont PhpOffice\PhpPresentation\Shape\RichText\Run[] Stores font styles for text shapes that include lists.
$shapeId integer Used to track the current shape ID.

Public Methods

Method Description
render ( ) : PhpOffice\Common\Adapter\Zip\ZipInterface
writeContent ( ) : string Write content file to XML format
writeDrawingStyle ( PhpOffice\Common\XMLWriter $objWriter, PhpOffice\PhpPresentation\Shape\AbstractDrawing $shape ) Write the default style information for an AbstractDrawing
writeGroupStyle ( PhpOffice\Common\XMLWriter $objWriter, Group $group ) Writes the style information for a group of shapes
writeLineStyle ( PhpOffice\Common\XMLWriter $objWriter, Line $shape ) Write the default style information for a Line shape.
writeShapeChart ( PhpOffice\Common\XMLWriter $objWriter, Chart $shape ) Write table Chart
writeShapeComment ( PhpOffice\Common\XMLWriter $objWriter, Comment $oShape ) Write Comment
writeShapeDrawing ( PhpOffice\Common\XMLWriter $objWriter, AbstractDrawingAdapter $shape ) Write picture
writeShapeGroup ( PhpOffice\Common\XMLWriter $objWriter, Group $group ) Writes a group of shapes
writeShapeLine ( PhpOffice\Common\XMLWriter $objWriter, Line $shape )
writeShapeMedia ( PhpOffice\Common\XMLWriter $objWriter, Media $shape ) Write picture
writeShapeTable ( PhpOffice\Common\XMLWriter $objWriter, Table $shape ) Write table Shape
writeShapeTxt ( PhpOffice\Common\XMLWriter $objWriter, RichText $shape ) Write text
writeSlideNote ( PhpOffice\Common\XMLWriter $objWriter, PhpOffice\PhpPresentation\Slide\Note $note ) Write the slide note
writeStyleSlide ( PhpOffice\Common\XMLWriter $objWriter, Slide $slide, integer $incPage ) Write style of a slide
writeTableStyle ( PhpOffice\Common\XMLWriter $objWriter, Table $shape ) Write the default style information for a Table shape
writeTxtStyle ( PhpOffice\Common\XMLWriter $objWriter, RichText $shape ) Write the default style information for a RichText shape

Protected Methods

Method Description
writeStylePartShadow ( PhpOffice\Common\XMLWriter $objWriter, PhpOffice\PhpPresentation\Style\Shadow $oShadow )

Method Details

render() public method

public render ( ) : PhpOffice\Common\Adapter\Zip\ZipInterface
return PhpOffice\Common\Adapter\Zip\ZipInterface

writeContent() public method

Write content file to XML format
public writeContent ( ) : string
return string XML Output

writeDrawingStyle() public method

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

writeGroupStyle() public method

Writes the style information for a group of shapes
public writeGroupStyle ( PhpOffice\Common\XMLWriter $objWriter, Group $group )
$objWriter PhpOffice\Common\XMLWriter
$group PhpOffice\PhpPresentation\Shape\Group

writeLineStyle() public method

Write the default style information for a Line shape.
public writeLineStyle ( PhpOffice\Common\XMLWriter $objWriter, Line $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\Line

writeShapeChart() public method

Write table Chart
public writeShapeChart ( PhpOffice\Common\XMLWriter $objWriter, Chart $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\Chart

writeShapeComment() public method

Write Comment
public writeShapeComment ( PhpOffice\Common\XMLWriter $objWriter, Comment $oShape )
$objWriter PhpOffice\Common\XMLWriter
$oShape PhpOffice\PhpPresentation\Shape\Comment

writeShapeDrawing() public method

Write picture
public writeShapeDrawing ( PhpOffice\Common\XMLWriter $objWriter, AbstractDrawingAdapter $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\Drawing\AbstractDrawingAdapter

writeShapeGroup() public method

Writes a group of shapes
public writeShapeGroup ( PhpOffice\Common\XMLWriter $objWriter, Group $group )
$objWriter PhpOffice\Common\XMLWriter
$group PhpOffice\PhpPresentation\Shape\Group

writeShapeLine() public method

public writeShapeLine ( PhpOffice\Common\XMLWriter $objWriter, Line $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\Line

writeShapeMedia() public method

Write picture
public writeShapeMedia ( PhpOffice\Common\XMLWriter $objWriter, Media $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\Media

writeShapeTable() public method

Write table Shape
public writeShapeTable ( PhpOffice\Common\XMLWriter $objWriter, Table $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\Table

writeShapeTxt() public method

Write text
public writeShapeTxt ( PhpOffice\Common\XMLWriter $objWriter, RichText $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\RichText

writeSlideNote() public method

Write the slide note
public writeSlideNote ( PhpOffice\Common\XMLWriter $objWriter, PhpOffice\PhpPresentation\Slide\Note $note )
$objWriter PhpOffice\Common\XMLWriter
$note PhpOffice\PhpPresentation\Slide\Note

writeStylePartShadow() protected method

protected writeStylePartShadow ( PhpOffice\Common\XMLWriter $objWriter, PhpOffice\PhpPresentation\Style\Shadow $oShadow )
$objWriter PhpOffice\Common\XMLWriter
$oShadow PhpOffice\PhpPresentation\Style\Shadow

writeStyleSlide() public method

Write style of a slide
public writeStyleSlide ( PhpOffice\Common\XMLWriter $objWriter, Slide $slide, integer $incPage )
$objWriter PhpOffice\Common\XMLWriter
$slide PhpOffice\PhpPresentation\Slide
$incPage integer

writeTableStyle() public method

Write the default style information for a Table shape
public writeTableStyle ( PhpOffice\Common\XMLWriter $objWriter, Table $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\Table

writeTxtStyle() public method

Write the default style information for a RichText shape
public writeTxtStyle ( PhpOffice\Common\XMLWriter $objWriter, RichText $shape )
$objWriter PhpOffice\Common\XMLWriter
$shape PhpOffice\PhpPresentation\Shape\RichText

Property Details

$arrStyleBullet protected property

Stores bullet styles for text shapes that include lists.
protected [] $arrStyleBullet
return []

$arrStyleParagraph protected property

Stores paragraph information for text shapes.
protected array $arrStyleParagraph
return array

$arrStyleTextFont protected property

Stores font styles for text shapes that include lists.
protected Run[],PhpOffice\PhpPresentation\Shape\RichText $arrStyleTextFont
return PhpOffice\PhpPresentation\Shape\RichText\Run[]

$shapeId protected property

Used to track the current shape ID.
protected int $shapeId
return integer