@@ 1894-1908 (lines=15) @@ | ||
1891 | /** |
|
1892 | * Store the LEFTMARGIN BIFF record. |
|
1893 | */ |
|
1894 | private function writeMarginLeft() |
|
1895 | { |
|
1896 | $record = 0x0026; // Record identifier |
|
1897 | $length = 0x0008; // Bytes to follow |
|
1898 | ||
1899 | $margin = $this->phpSheet->getPageMargins()->getLeft(); // Margin in inches |
|
1900 | ||
1901 | $header = pack('vv', $record, $length); |
|
1902 | $data = pack('d', $margin); |
|
1903 | if (self::getByteOrder()) { // if it's Big Endian |
|
1904 | $data = strrev($data); |
|
1905 | } |
|
1906 | ||
1907 | $this->append($header . $data); |
|
1908 | } |
|
1909 | ||
1910 | /** |
|
1911 | * Store the RIGHTMARGIN BIFF record. |
|
@@ 1913-1927 (lines=15) @@ | ||
1910 | /** |
|
1911 | * Store the RIGHTMARGIN BIFF record. |
|
1912 | */ |
|
1913 | private function writeMarginRight() |
|
1914 | { |
|
1915 | $record = 0x0027; // Record identifier |
|
1916 | $length = 0x0008; // Bytes to follow |
|
1917 | ||
1918 | $margin = $this->phpSheet->getPageMargins()->getRight(); // Margin in inches |
|
1919 | ||
1920 | $header = pack('vv', $record, $length); |
|
1921 | $data = pack('d', $margin); |
|
1922 | if (self::getByteOrder()) { // if it's Big Endian |
|
1923 | $data = strrev($data); |
|
1924 | } |
|
1925 | ||
1926 | $this->append($header . $data); |
|
1927 | } |
|
1928 | ||
1929 | /** |
|
1930 | * Store the TOPMARGIN BIFF record. |
|
@@ 1932-1946 (lines=15) @@ | ||
1929 | /** |
|
1930 | * Store the TOPMARGIN BIFF record. |
|
1931 | */ |
|
1932 | private function writeMarginTop() |
|
1933 | { |
|
1934 | $record = 0x0028; // Record identifier |
|
1935 | $length = 0x0008; // Bytes to follow |
|
1936 | ||
1937 | $margin = $this->phpSheet->getPageMargins()->getTop(); // Margin in inches |
|
1938 | ||
1939 | $header = pack('vv', $record, $length); |
|
1940 | $data = pack('d', $margin); |
|
1941 | if (self::getByteOrder()) { // if it's Big Endian |
|
1942 | $data = strrev($data); |
|
1943 | } |
|
1944 | ||
1945 | $this->append($header . $data); |
|
1946 | } |
|
1947 | ||
1948 | /** |
|
1949 | * Store the BOTTOMMARGIN BIFF record. |
|
@@ 1951-1965 (lines=15) @@ | ||
1948 | /** |
|
1949 | * Store the BOTTOMMARGIN BIFF record. |
|
1950 | */ |
|
1951 | private function writeMarginBottom() |
|
1952 | { |
|
1953 | $record = 0x0029; // Record identifier |
|
1954 | $length = 0x0008; // Bytes to follow |
|
1955 | ||
1956 | $margin = $this->phpSheet->getPageMargins()->getBottom(); // Margin in inches |
|
1957 | ||
1958 | $header = pack('vv', $record, $length); |
|
1959 | $data = pack('d', $margin); |
|
1960 | if (self::getByteOrder()) { // if it's Big Endian |
|
1961 | $data = strrev($data); |
|
1962 | } |
|
1963 | ||
1964 | $this->append($header . $data); |
|
1965 | } |
|
1966 | ||
1967 | /** |
|
1968 | * Write the PRINTHEADERS BIFF record. |