@@ 649-664 (lines=16) @@ | ||
646 | * @param mixed $xfIndex The XF format index for the cell |
|
647 | * @param array $arrcRun Index to Font record and characters beginning |
|
648 | */ |
|
649 | private function _writeRichTextString($row, $col, $str, $xfIndex, $arrcRun){ |
|
650 | $record = 0x00FD; // Record identifier |
|
651 | $length = 0x000A; // Bytes to follow |
|
652 | ||
653 | $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeShort($str, $arrcRun); |
|
654 | ||
655 | /* check if string is already present */ |
|
656 | if (!isset($this->_str_table[$str])) { |
|
657 | $this->_str_table[$str] = $this->_str_unique++; |
|
658 | } |
|
659 | $this->_str_total++; |
|
660 | ||
661 | $header = pack('vv', $record, $length); |
|
662 | $data = pack('vvvV', $row, $col, $xfIndex, $this->_str_table[$str]); |
|
663 | $this->_append($header.$data); |
|
664 | } |
|
665 | ||
666 | /** |
|
667 | * Write a string to the specified row and column (zero indexed). |
|
@@ 717-733 (lines=17) @@ | ||
714 | * @param mixed $xfIndex The XF format index for the cell |
|
715 | * @return integer |
|
716 | */ |
|
717 | private function _writeLabelSst($row, $col, $str, $xfIndex) |
|
718 | { |
|
719 | $record = 0x00FD; // Record identifier |
|
720 | $length = 0x000A; // Bytes to follow |
|
721 | ||
722 | $str = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($str); |
|
723 | ||
724 | /* check if string is already present */ |
|
725 | if (!isset($this->_str_table[$str])) { |
|
726 | $this->_str_table[$str] = $this->_str_unique++; |
|
727 | } |
|
728 | $this->_str_total++; |
|
729 | ||
730 | $header = pack('vv', $record, $length); |
|
731 | $data = pack('vvvV', $row, $col, $xfIndex, $this->_str_table[$str]); |
|
732 | $this->_append($header.$data); |
|
733 | } |
|
734 | ||
735 | /** |
|
736 | * Writes a note associated with the cell given by the row and column. |