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