private function PHPExcel_Writer_Excel2007_Chart::_writeLayout in Loft Data Grids 6.2
Same name and namespace in other branches
- 7.2 vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Chart.php \PHPExcel_Writer_Excel2007_Chart::_writeLayout()
Write Layout
Parameters
PHPExcel_Chart_Layout $layout:
PHPExcel_Shared_XMLWriter $objWriter XML Writer:
Throws
5 calls to PHPExcel_Writer_Excel2007_Chart::_writeLayout()
- PHPExcel_Writer_Excel2007_Chart::_writeCatAx in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php - Write Category Axis
- PHPExcel_Writer_Excel2007_Chart::_writeLegend in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php - Write Chart Legend
- PHPExcel_Writer_Excel2007_Chart::_writePlotArea in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php - Write Chart Plot Area
- PHPExcel_Writer_Excel2007_Chart::_writeTitle in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php - Write Chart Title
- PHPExcel_Writer_Excel2007_Chart::_writeValAx in vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php - Write Value Axis
File
- vendor/
phpoffice/ phpexcel/ Classes/ PHPExcel/ Writer/ Excel2007/ Chart.php, line 1487
Class
- PHPExcel_Writer_Excel2007_Chart
- PHPExcel_Writer_Excel2007_Chart
Code
private function _writeLayout(PHPExcel_Chart_Layout $layout = NULL, $objWriter) {
$objWriter
->startElement('c:layout');
if (!is_null($layout)) {
$objWriter
->startElement('c:manualLayout');
$layoutTarget = $layout
->getLayoutTarget();
if (!is_null($layoutTarget)) {
$objWriter
->startElement('c:layoutTarget');
$objWriter
->writeAttribute('val', $layoutTarget);
$objWriter
->endElement();
}
$xMode = $layout
->getXMode();
if (!is_null($xMode)) {
$objWriter
->startElement('c:xMode');
$objWriter
->writeAttribute('val', $xMode);
$objWriter
->endElement();
}
$yMode = $layout
->getYMode();
if (!is_null($yMode)) {
$objWriter
->startElement('c:yMode');
$objWriter
->writeAttribute('val', $yMode);
$objWriter
->endElement();
}
$x = $layout
->getXPosition();
if (!is_null($x)) {
$objWriter
->startElement('c:x');
$objWriter
->writeAttribute('val', $x);
$objWriter
->endElement();
}
$y = $layout
->getYPosition();
if (!is_null($y)) {
$objWriter
->startElement('c:y');
$objWriter
->writeAttribute('val', $y);
$objWriter
->endElement();
}
$w = $layout
->getWidth();
if (!is_null($w)) {
$objWriter
->startElement('c:w');
$objWriter
->writeAttribute('val', $w);
$objWriter
->endElement();
}
$h = $layout
->getHeight();
if (!is_null($h)) {
$objWriter
->startElement('c:h');
$objWriter
->writeAttribute('val', $h);
$objWriter
->endElement();
}
$objWriter
->endElement();
}
$objWriter
->endElement();
}