@@ 1813-1827 (lines=15) @@ | ||
1810 | /** |
|
1811 | * Store the LEFTMARGIN BIFF record. |
|
1812 | */ |
|
1813 | private function writeMarginLeft() |
|
1814 | { |
|
1815 | $record = 0x0026; // Record identifier |
|
1816 | $length = 0x0008; // Bytes to follow |
|
1817 | ||
1818 | $margin = $this->phpSheet->getPageMargins()->getLeft(); // Margin in inches |
|
1819 | ||
1820 | $header = pack('vv', $record, $length); |
|
1821 | $data = pack('d', $margin); |
|
1822 | if (self::getByteOrder()) { // if it's Big Endian |
|
1823 | $data = strrev($data); |
|
1824 | } |
|
1825 | ||
1826 | $this->append($header . $data); |
|
1827 | } |
|
1828 | ||
1829 | /** |
|
1830 | * Store the RIGHTMARGIN BIFF record. |
|
@@ 1832-1846 (lines=15) @@ | ||
1829 | /** |
|
1830 | * Store the RIGHTMARGIN BIFF record. |
|
1831 | */ |
|
1832 | private function writeMarginRight() |
|
1833 | { |
|
1834 | $record = 0x0027; // Record identifier |
|
1835 | $length = 0x0008; // Bytes to follow |
|
1836 | ||
1837 | $margin = $this->phpSheet->getPageMargins()->getRight(); // Margin in inches |
|
1838 | ||
1839 | $header = pack('vv', $record, $length); |
|
1840 | $data = pack('d', $margin); |
|
1841 | if (self::getByteOrder()) { // if it's Big Endian |
|
1842 | $data = strrev($data); |
|
1843 | } |
|
1844 | ||
1845 | $this->append($header . $data); |
|
1846 | } |
|
1847 | ||
1848 | /** |
|
1849 | * Store the TOPMARGIN BIFF record. |
|
@@ 1851-1865 (lines=15) @@ | ||
1848 | /** |
|
1849 | * Store the TOPMARGIN BIFF record. |
|
1850 | */ |
|
1851 | private function writeMarginTop() |
|
1852 | { |
|
1853 | $record = 0x0028; // Record identifier |
|
1854 | $length = 0x0008; // Bytes to follow |
|
1855 | ||
1856 | $margin = $this->phpSheet->getPageMargins()->getTop(); // Margin in inches |
|
1857 | ||
1858 | $header = pack('vv', $record, $length); |
|
1859 | $data = pack('d', $margin); |
|
1860 | if (self::getByteOrder()) { // if it's Big Endian |
|
1861 | $data = strrev($data); |
|
1862 | } |
|
1863 | ||
1864 | $this->append($header . $data); |
|
1865 | } |
|
1866 | ||
1867 | /** |
|
1868 | * Store the BOTTOMMARGIN BIFF record. |
|
@@ 1870-1884 (lines=15) @@ | ||
1867 | /** |
|
1868 | * Store the BOTTOMMARGIN BIFF record. |
|
1869 | */ |
|
1870 | private function writeMarginBottom() |
|
1871 | { |
|
1872 | $record = 0x0029; // Record identifier |
|
1873 | $length = 0x0008; // Bytes to follow |
|
1874 | ||
1875 | $margin = $this->phpSheet->getPageMargins()->getBottom(); // Margin in inches |
|
1876 | ||
1877 | $header = pack('vv', $record, $length); |
|
1878 | $data = pack('d', $margin); |
|
1879 | if (self::getByteOrder()) { // if it's Big Endian |
|
1880 | $data = strrev($data); |
|
1881 | } |
|
1882 | ||
1883 | $this->append($header . $data); |
|
1884 | } |
|
1885 | ||
1886 | /** |
|
1887 | * Write the PRINTHEADERS BIFF record. |