@@ 910-919 (lines=10) @@ | ||
907 | * |
|
908 | * @param string $stringValue |
|
909 | */ |
|
910 | private function _writeStringRecord($stringValue) |
|
911 | { |
|
912 | $record = 0x0207; // Record identifier |
|
913 | $data = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($stringValue); |
|
914 | ||
915 | $length = strlen($data); |
|
916 | $header = pack('vv', $record, $length); |
|
917 | ||
918 | $this->_append($header . $data); |
|
919 | } |
|
920 | ||
921 | /** |
|
922 | * Write a hyperlink. |
|
@@ 1839-1858 (lines=20) @@ | ||
1836 | /** |
|
1837 | * Store the header caption BIFF record. |
|
1838 | */ |
|
1839 | private function _writeHeader() |
|
1840 | { |
|
1841 | $record = 0x0014; // Record identifier |
|
1842 | ||
1843 | /* removing for now |
|
1844 | // need to fix character count (multibyte!) |
|
1845 | if (strlen($this->_phpSheet->getHeaderFooter()->getOddHeader()) <= 255) { |
|
1846 | $str = $this->_phpSheet->getHeaderFooter()->getOddHeader(); // header string |
|
1847 | } else { |
|
1848 | $str = ''; |
|
1849 | } |
|
1850 | */ |
|
1851 | ||
1852 | $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->_phpSheet->getHeaderFooter()->getOddHeader()); |
|
1853 | $length = strlen($recordData); |
|
1854 | ||
1855 | $header = pack("vv", $record, $length); |
|
1856 | ||
1857 | $this->_append($header . $recordData); |
|
1858 | } |
|
1859 | ||
1860 | /** |
|
1861 | * Store the footer caption BIFF record. |
|
@@ 1863-1882 (lines=20) @@ | ||
1860 | /** |
|
1861 | * Store the footer caption BIFF record. |
|
1862 | */ |
|
1863 | private function _writeFooter() |
|
1864 | { |
|
1865 | $record = 0x0015; // Record identifier |
|
1866 | ||
1867 | /* removing for now |
|
1868 | // need to fix character count (multibyte!) |
|
1869 | if (strlen($this->_phpSheet->getHeaderFooter()->getOddFooter()) <= 255) { |
|
1870 | $str = $this->_phpSheet->getHeaderFooter()->getOddFooter(); |
|
1871 | } else { |
|
1872 | $str = ''; |
|
1873 | } |
|
1874 | */ |
|
1875 | ||
1876 | $recordData = PHPExcel_Shared_String::UTF8toBIFF8UnicodeLong($this->_phpSheet->getHeaderFooter()->getOddFooter()); |
|
1877 | $length = strlen($recordData); |
|
1878 | ||
1879 | $header = pack("vv", $record, $length); |
|
1880 | ||
1881 | $this->_append($header . $recordData); |
|
1882 | } |
|
1883 | ||
1884 | /** |
|
1885 | * Store the horizontal centering HCENTER BIFF record. |