56 $objWriter->startDocument(
'1.0',
'UTF-8',
'yes');
59 $comments = $pWorksheet->getComments();
65 if (!isset($authors[$comment->getAuthor()])) {
66 $authors[$comment->getAuthor()] = $authorId++;
72 $objWriter->writeAttribute(
'xmlns',
'http://schemas.openxmlformats.org/spreadsheetml/2006/main');
76 foreach ($authors as $author =>
$index) {
83 foreach ($comments as
$key => $value) {
107 $objWriter->writeAttribute(
'ref', $pCellReference);
108 $objWriter->writeAttribute(
'authorId', $pAuthors[$pComment->getAuthor()]);
136 $objWriter->startDocument(
'1.0',
'UTF-8',
'yes');
139 $comments = $pWorksheet->getComments();
143 $objWriter->writeAttribute(
'xmlns:v',
'urn:schemas-microsoft-com:vml');
144 $objWriter->writeAttribute(
'xmlns:o',
'urn:schemas-microsoft-com:office:office');
145 $objWriter->writeAttribute(
'xmlns:x',
'urn:schemas-microsoft-com:office:excel');
161 $objWriter->writeAttribute(
'id',
'_x0000_t202');
162 $objWriter->writeAttribute(
'coordsize',
'21600,21600');
164 $objWriter->writeAttribute(
'path',
'm,l,21600r21600,l21600,xe');
168 $objWriter->writeAttribute(
'joinstyle',
'miter');
173 $objWriter->writeAttribute(
'gradientshapeok',
't');
174 $objWriter->writeAttribute(
'o:connecttype',
'rect');
180 foreach ($comments as
$key => $value) {
209 $objWriter->writeAttribute(
'type',
'#_x0000_t202');
210 $objWriter->writeAttribute(
'style',
'position:absolute;margin-left:' . $pComment->getMarginLeft() .
';margin-top:' . $pComment->getMarginTop() .
';width:' . $pComment->getWidth() .
';height:' . $pComment->getHeight() .
';z-index:1;visibility:' . ($pComment->getVisible() ?
'visible' :
'hidden'));
211 $objWriter->writeAttribute(
'fillcolor',
'#' . $pComment->getFillColor()->getRGB());
212 $objWriter->writeAttribute(
'o:insetmode',
'auto');
216 $objWriter->writeAttribute(
'color2',
'#' . $pComment->getFillColor()->getRGB());
228 $objWriter->writeAttribute(
'o:connecttype',
'none');
233 $objWriter->writeAttribute(
'style',
'mso-direction-alt:auto');
237 $objWriter->writeAttribute(
'style',
'text-align:left');
244 $objWriter->writeAttribute(
'ObjectType',
'Note');
247 $objWriter->writeElement(
'x:MoveWithCells',
'');
250 $objWriter->writeElement(
'x:SizeWithCells',
'');
256 $objWriter->writeElement(
'x:AutoFill',
'False');
259 $objWriter->writeElement(
'x:Row', ($row - 1));
static coordinateFromString($pCoordinateString='A1')
Coordinate from string.
if(!array_key_exists('StateId', $_REQUEST)) $id
getParentWriter()
Get parent IWriter object.
Create styles array
The data for the language used.
static columnIndexFromString($pString='A')
Column index from string.
const STORAGE_MEMORY
Temporary storage method.