ILIAS  release_5-3 Revision v5.3.23-19-g915713cf615
PHPExcel_Writer_OpenDocument_Cell_Comment Class Reference
+ Collaboration diagram for PHPExcel_Writer_OpenDocument_Cell_Comment:

Static Public Member Functions

static write (PHPExcel_Shared_XMLWriter $objWriter, PHPExcel_Cell $cell)
 

Detailed Description

Definition at line 37 of file Comment.php.

Member Function Documentation

◆ write()

static PHPExcel_Writer_OpenDocument_Cell_Comment::write ( PHPExcel_Shared_XMLWriter  $objWriter,
PHPExcel_Cell  $cell 
)
static

Definition at line 39 of file Comment.php.

References $comment, PHPExcel_Cell\getCoordinate(), and PHPExcel_Cell\getWorksheet().

Referenced by PHPExcel_Writer_OpenDocument_Content\_writeCells().

40  {
41  $comments = $cell->getWorksheet()->getComments();
42  if (!isset($comments[$cell->getCoordinate()])) {
43  return;
44  }
45  $comment = $comments[$cell->getCoordinate()];
46 
47  $objWriter->startElement('office:annotation');
48  //$objWriter->writeAttribute('draw:style-name', 'gr1');
49  //$objWriter->writeAttribute('draw:text-style-name', 'P1');
50  $objWriter->writeAttribute('svg:width', $comment->getWidth());
51  $objWriter->writeAttribute('svg:height', $comment->getHeight());
52  $objWriter->writeAttribute('svg:x', $comment->getMarginLeft());
53  $objWriter->writeAttribute('svg:y', $comment->getMarginTop());
54  //$objWriter->writeAttribute('draw:caption-point-x', $comment->getMarginLeft());
55  //$objWriter->writeAttribute('draw:caption-point-y', $comment->getMarginTop());
56  $objWriter->writeElement('dc:creator', $comment->getAuthor());
57  // TODO: Not realized in PHPExcel_Comment yet.
58  //$objWriter->writeElement('dc:date', $comment->getDate());
59  $objWriter->writeElement('text:p', $comment->getText()->getPlainText());
60  //$objWriter->writeAttribute('draw:text-style-name', 'P1');
61  $objWriter->endElement();
62  }
getCoordinate()
Get cell coordinate.
Definition: Cell.php:171
$comment
Definition: buildRTE.php:83
getWorksheet()
Get parent worksheet.
Definition: Cell.php:488
+ Here is the call graph for this function:
+ Here is the caller graph for this function:

The documentation for this class was generated from the following file: