mirror of
https://github.com/shuchkin/simplexlsxgen.git
synced 2023-08-10 21:12:59 +03:00
Update SimpleXLSXGen.php
This commit is contained in:
parent
1d5713d681
commit
f0b003ff4f
@ -467,10 +467,10 @@ class SimpleXLSXGen
|
|||||||
' <x:ClientData ObjectType="Note">' . self::NEWLINE .
|
' <x:ClientData ObjectType="Note">' . self::NEWLINE .
|
||||||
' <x:MoveWithCells/>' . self::NEWLINE .
|
' <x:MoveWithCells/>' . self::NEWLINE .
|
||||||
' <x:SizeWithCells/>' . self::NEWLINE .
|
' <x:SizeWithCells/>' . self::NEWLINE .
|
||||||
' <x:Anchor>'.$col.', 0, '.($row-2).', 0, '.($col+2).', 0, '.($row+1).', 0</x:Anchor>' . self::NEWLINE .
|
' <x:Anchor>' . $col . ', 0, ' . $row . ', 0, ' . ($col+2) . ', 0, ' . ($row+3) . ', 0</x:Anchor>' . self::NEWLINE .
|
||||||
' <x:AutoFill>False</x:AutoFill>' . self::NEWLINE .
|
' <x:AutoFill>False</x:AutoFill>' . self::NEWLINE .
|
||||||
' <x:Row>'.($row-1).'</x:Row>' . self::NEWLINE .
|
' <x:Row>' . ($row-1) . '</x:Row>' . self::NEWLINE .
|
||||||
' <x:Column>'.($col-1).'</x:Column>' . self::NEWLINE .
|
' <x:Column>' . ($col-1) . '</x:Column>' . self::NEWLINE .
|
||||||
' </x:ClientData>' . self::NEWLINE .
|
' </x:ClientData>' . self::NEWLINE .
|
||||||
'</v:shape>' . self::NEWLINE;
|
'</v:shape>' . self::NEWLINE;
|
||||||
}
|
}
|
||||||
@ -1036,7 +1036,7 @@ class SimpleXLSXGen
|
|||||||
$COLS[] = '</cols>';
|
$COLS[] = '</cols>';
|
||||||
$REF = 'A1:' . $this->num2name(count($COL)) . $CUR_ROW;
|
$REF = 'A1:' . $this->num2name(count($COL)) . $CUR_ROW;
|
||||||
} else {
|
} else {
|
||||||
$ROWS[] = '<row r="1"><c r="A1" t="s"><v>0</v></c></row>';
|
$ROWS[] = '<row r="1"><c r="A1"></c></row>'; //'<row r="1"><c r="A1" t="s"><v>0</v></c></row>';
|
||||||
$REF = 'A1:A1';
|
$REF = 'A1:A1';
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1066,9 +1066,9 @@ class SimpleXLSXGen
|
|||||||
|
|
||||||
$COMMENTS = '';
|
$COMMENTS = '';
|
||||||
if (count($this->sheets[$idx]['comments'])) {
|
if (count($this->sheets[$idx]['comments'])) {
|
||||||
$this->extLinkId++;
|
$this->extLinkId += 2; //2 links: drawing in sheet?.xml and drawing and comments?.xml in rel file
|
||||||
$this->sheets[$idx]['commentDrawingId'] = $this->extLinkId;
|
$this->sheets[$idx]['commentDrawingId'] = $this->extLinkId - 1;
|
||||||
$COMMENTS = '<legacyDrawing r:id="rId' . $this->extLinkId . '"/>' . self::NEWLINE;
|
$COMMENTS = '<legacyDrawing r:id="rId' . $this->sheets[$idx]['commentDrawingId'] . '"/>' . self::NEWLINE;
|
||||||
}
|
}
|
||||||
|
|
||||||
//restore locale
|
//restore locale
|
||||||
|
Loading…
Reference in New Issue
Block a user