@@ 1934-1948 (lines=15) @@ | ||
1931 | /** |
|
1932 | * Store the LEFTMARGIN BIFF record. |
|
1933 | */ |
|
1934 | private function writeMarginLeft() |
|
1935 | { |
|
1936 | $record = 0x0026; // Record identifier |
|
1937 | $length = 0x0008; // Bytes to follow |
|
1938 | ||
1939 | $margin = $this->phpSheet->getPageMargins()->getLeft(); // Margin in inches |
|
1940 | ||
1941 | $header = pack('vv', $record, $length); |
|
1942 | $data = pack('d', $margin); |
|
1943 | if (self::getByteOrder()) { // if it's Big Endian |
|
1944 | $data = strrev($data); |
|
1945 | } |
|
1946 | ||
1947 | $this->append($header . $data); |
|
1948 | } |
|
1949 | ||
1950 | /** |
|
1951 | * Store the RIGHTMARGIN BIFF record. |
|
@@ 1953-1967 (lines=15) @@ | ||
1950 | /** |
|
1951 | * Store the RIGHTMARGIN BIFF record. |
|
1952 | */ |
|
1953 | private function writeMarginRight() |
|
1954 | { |
|
1955 | $record = 0x0027; // Record identifier |
|
1956 | $length = 0x0008; // Bytes to follow |
|
1957 | ||
1958 | $margin = $this->phpSheet->getPageMargins()->getRight(); // Margin in inches |
|
1959 | ||
1960 | $header = pack('vv', $record, $length); |
|
1961 | $data = pack('d', $margin); |
|
1962 | if (self::getByteOrder()) { // if it's Big Endian |
|
1963 | $data = strrev($data); |
|
1964 | } |
|
1965 | ||
1966 | $this->append($header . $data); |
|
1967 | } |
|
1968 | ||
1969 | /** |
|
1970 | * Store the TOPMARGIN BIFF record. |
|
@@ 1972-1986 (lines=15) @@ | ||
1969 | /** |
|
1970 | * Store the TOPMARGIN BIFF record. |
|
1971 | */ |
|
1972 | private function writeMarginTop() |
|
1973 | { |
|
1974 | $record = 0x0028; // Record identifier |
|
1975 | $length = 0x0008; // Bytes to follow |
|
1976 | ||
1977 | $margin = $this->phpSheet->getPageMargins()->getTop(); // Margin in inches |
|
1978 | ||
1979 | $header = pack('vv', $record, $length); |
|
1980 | $data = pack('d', $margin); |
|
1981 | if (self::getByteOrder()) { // if it's Big Endian |
|
1982 | $data = strrev($data); |
|
1983 | } |
|
1984 | ||
1985 | $this->append($header . $data); |
|
1986 | } |
|
1987 | ||
1988 | /** |
|
1989 | * Store the BOTTOMMARGIN BIFF record. |
|
@@ 1991-2005 (lines=15) @@ | ||
1988 | /** |
|
1989 | * Store the BOTTOMMARGIN BIFF record. |
|
1990 | */ |
|
1991 | private function writeMarginBottom() |
|
1992 | { |
|
1993 | $record = 0x0029; // Record identifier |
|
1994 | $length = 0x0008; // Bytes to follow |
|
1995 | ||
1996 | $margin = $this->phpSheet->getPageMargins()->getBottom(); // Margin in inches |
|
1997 | ||
1998 | $header = pack('vv', $record, $length); |
|
1999 | $data = pack('d', $margin); |
|
2000 | if (self::getByteOrder()) { // if it's Big Endian |
|
2001 | $data = strrev($data); |
|
2002 | } |
|
2003 | ||
2004 | $this->append($header . $data); |
|
2005 | } |
|
2006 | ||
2007 | /** |
|
2008 | * Write the PRINTHEADERS BIFF record. |