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