|
@@ 1920-1934 (lines=15) @@
|
| 1917 |
|
/** |
| 1918 |
|
* Store the LEFTMARGIN BIFF record. |
| 1919 |
|
*/ |
| 1920 |
|
private function _writeMarginLeft() |
| 1921 |
|
{ |
| 1922 |
|
$record = 0x0026; // Record identifier |
| 1923 |
|
$length = 0x0008; // Bytes to follow |
| 1924 |
|
|
| 1925 |
|
$margin = $this->_phpSheet->getPageMargins()->getLeft(); // Margin in inches |
| 1926 |
|
|
| 1927 |
|
$header = pack("vv", $record, $length); |
| 1928 |
|
$data = pack("d", $margin); |
| 1929 |
|
if (self::getByteOrder()) { // if it's Big Endian |
| 1930 |
|
$data = strrev($data); |
| 1931 |
|
} |
| 1932 |
|
|
| 1933 |
|
$this->_append($header . $data); |
| 1934 |
|
} |
| 1935 |
|
|
| 1936 |
|
/** |
| 1937 |
|
* Store the RIGHTMARGIN BIFF record. |
|
@@ 1939-1953 (lines=15) @@
|
| 1936 |
|
/** |
| 1937 |
|
* Store the RIGHTMARGIN BIFF record. |
| 1938 |
|
*/ |
| 1939 |
|
private function _writeMarginRight() |
| 1940 |
|
{ |
| 1941 |
|
$record = 0x0027; // Record identifier |
| 1942 |
|
$length = 0x0008; // Bytes to follow |
| 1943 |
|
|
| 1944 |
|
$margin = $this->_phpSheet->getPageMargins()->getRight(); // Margin in inches |
| 1945 |
|
|
| 1946 |
|
$header = pack("vv", $record, $length); |
| 1947 |
|
$data = pack("d", $margin); |
| 1948 |
|
if (self::getByteOrder()) { // if it's Big Endian |
| 1949 |
|
$data = strrev($data); |
| 1950 |
|
} |
| 1951 |
|
|
| 1952 |
|
$this->_append($header . $data); |
| 1953 |
|
} |
| 1954 |
|
|
| 1955 |
|
/** |
| 1956 |
|
* Store the TOPMARGIN BIFF record. |
|
@@ 1958-1972 (lines=15) @@
|
| 1955 |
|
/** |
| 1956 |
|
* Store the TOPMARGIN BIFF record. |
| 1957 |
|
*/ |
| 1958 |
|
private function _writeMarginTop() |
| 1959 |
|
{ |
| 1960 |
|
$record = 0x0028; // Record identifier |
| 1961 |
|
$length = 0x0008; // Bytes to follow |
| 1962 |
|
|
| 1963 |
|
$margin = $this->_phpSheet->getPageMargins()->getTop(); // Margin in inches |
| 1964 |
|
|
| 1965 |
|
$header = pack("vv", $record, $length); |
| 1966 |
|
$data = pack("d", $margin); |
| 1967 |
|
if (self::getByteOrder()) { // if it's Big Endian |
| 1968 |
|
$data = strrev($data); |
| 1969 |
|
} |
| 1970 |
|
|
| 1971 |
|
$this->_append($header . $data); |
| 1972 |
|
} |
| 1973 |
|
|
| 1974 |
|
/** |
| 1975 |
|
* Store the BOTTOMMARGIN BIFF record. |
|
@@ 1977-1991 (lines=15) @@
|
| 1974 |
|
/** |
| 1975 |
|
* Store the BOTTOMMARGIN BIFF record. |
| 1976 |
|
*/ |
| 1977 |
|
private function _writeMarginBottom() |
| 1978 |
|
{ |
| 1979 |
|
$record = 0x0029; // Record identifier |
| 1980 |
|
$length = 0x0008; // Bytes to follow |
| 1981 |
|
|
| 1982 |
|
$margin = $this->_phpSheet->getPageMargins()->getBottom(); // Margin in inches |
| 1983 |
|
|
| 1984 |
|
$header = pack("vv", $record, $length); |
| 1985 |
|
$data = pack("d", $margin); |
| 1986 |
|
if (self::getByteOrder()) { // if it's Big Endian |
| 1987 |
|
$data = strrev($data); |
| 1988 |
|
} |
| 1989 |
|
|
| 1990 |
|
$this->_append($header . $data); |
| 1991 |
|
} |
| 1992 |
|
|
| 1993 |
|
/** |
| 1994 |
|
* Write the PRINTHEADERS BIFF record. |