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