ILIAS  release_5-2 Revision v5.2.25-18-g3f80b828510
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.

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 }
$objWriter
$comment
Definition: buildRTE.php:83
getWorksheet()
Get parent worksheet.
Definition: Cell.php:488
getCoordinate()
Get cell coordinate.
Definition: Cell.php:171

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

Referenced by PHPExcel_Writer_OpenDocument_Content\_writeCells().

+ 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: