Example #1
0
 /**
  * Write Borders
  *
  * @param 	PHPPowerPoint_Shared_XMLWriter 	$objWriter 		XML Writer
  * @param 	PHPPowerPoint_Style_Borders		$pBorders		Borders
  * @throws 	Exception
  */
 protected function _writeBorders(PHPPowerPoint_Shared_XMLWriter $objWriter = null, PHPPowerPoint_Style_Borders $pBorders = null)
 {
     $this->_writeBorder($objWriter, $pBorders->getLeft(), 'L');
     $this->_writeBorder($objWriter, $pBorders->getRight(), 'R');
     $this->_writeBorder($objWriter, $pBorders->getTop(), 'T');
     $this->_writeBorder($objWriter, $pBorders->getBottom(), 'B');
     $this->_writeBorder($objWriter, $pBorders->getDiagonalDown(), 'TlToBr');
     $this->_writeBorder($objWriter, $pBorders->getDiagonalUp(), 'BlToTr');
 }