protected function loadDocumentLayout($sPart)
{
$xmlReader = new XMLReader();
if ($xmlReader->getDomFromString($sPart)) {
foreach ($xmlReader->getElements('/p:presentation/p:sldSz') as $oElement) {
$type = $oElement->getAttribute('type');
$oLayout = $this->oPhpPresentation->getLayout();
if ($type == DocumentLayout::LAYOUT_CUSTOM) {
$oLayout->setCX($oElement->getAttribute('cx'));
$oLayout->setCY($oElement->getAttribute('cy'));
} else {
$oLayout->setDocumentLayout($type, true);
if ($oElement->getAttribute('cx') < $oElement->getAttribute('cy')) {
$oLayout->setDocumentLayout($type, false);
}
}
}
}
}