ILIAS
release_5-4 Revision v5.4.26-12-gabc799a52e6
|
Header/Footer Formatting Syntax taken from Office Open XML Part 4 - Markup Language Reference, page 1970:.
More...
Public Member Functions | |
__construct () | |
Create a new HeaderFooter. More... | |
getOddHeader () | |
Get OddHeader. More... | |
setOddHeader ($pValue) | |
Set OddHeader. More... | |
getOddFooter () | |
Get OddFooter. More... | |
setOddFooter ($pValue) | |
Set OddFooter. More... | |
getEvenHeader () | |
Get EvenHeader. More... | |
setEvenHeader ($pValue) | |
Set EvenHeader. More... | |
getEvenFooter () | |
Get EvenFooter. More... | |
setEvenFooter ($pValue) | |
Set EvenFooter. More... | |
getFirstHeader () | |
Get FirstHeader. More... | |
setFirstHeader ($pValue) | |
Set FirstHeader. More... | |
getFirstFooter () | |
Get FirstFooter. More... | |
setFirstFooter ($pValue) | |
Set FirstFooter. More... | |
getDifferentOddEven () | |
Get DifferentOddEven. More... | |
setDifferentOddEven ($pValue) | |
Set DifferentOddEven. More... | |
getDifferentFirst () | |
Get DifferentFirst. More... | |
setDifferentFirst ($pValue) | |
Set DifferentFirst. More... | |
getScaleWithDocument () | |
Get ScaleWithDocument. More... | |
setScaleWithDocument ($pValue) | |
Set ScaleWithDocument. More... | |
getAlignWithMargins () | |
Get AlignWithMargins. More... | |
setAlignWithMargins ($pValue) | |
Set AlignWithMargins. More... | |
addImage (HeaderFooterDrawing $image, $location=self::IMAGE_HEADER_LEFT) | |
Add header/footer image. More... | |
removeImage ($location=self::IMAGE_HEADER_LEFT) | |
Remove header/footer image. More... | |
setImages (array $images) | |
Set header/footer images. More... | |
getImages () | |
Get header/footer images. More... | |
__clone () | |
Implement PHP __clone to create a deep clone, not just a shallow copy. More... | |
Data Fields | |
const | IMAGE_HEADER_LEFT = 'LH' |
const | IMAGE_HEADER_CENTER = 'CH' |
const | IMAGE_HEADER_RIGHT = 'RH' |
const | IMAGE_FOOTER_LEFT = 'LF' |
const | IMAGE_FOOTER_CENTER = 'CF' |
const | IMAGE_FOOTER_RIGHT = 'RF' |
Private Attributes | |
$oddHeader = '' | |
$oddFooter = '' | |
$evenHeader = '' | |
$evenFooter = '' | |
$firstHeader = '' | |
$firstFooter = '' | |
$differentOddEven = false | |
$differentFirst = false | |
$scaleWithDocument = true | |
$alignWithMargins = true | |
$headerFooterImages = [] | |
Header/Footer Formatting Syntax taken from Office Open XML Part 4 - Markup Language Reference, page 1970:.
There are a number of formatting codes that can be written inline with the actual header / footer text, which affect the formatting in the header or footer.
Example: This example shows the text "Center Bold Header" on the first line (center section), and the date on the second line (center section). &CCenter &"-,Bold"Bold&"-,Regular"Header_x000A_&D
General Rules: There is no required order in which these codes must appear.
The first occurrence of the following codes turns the formatting ON, the second occurrence turns it OFF again:
&D - code for "date" &T - code for "time" &G - code for "picture as background" &U - code for "text single underline" &E - code for "double underline" &R - code for "right section". When two or more occurrences of this section marker exist, the contents from all markers are concatenated, in the order of appearance, and placed into the right section. &Z - code for "this workbook's file path" &F - code for "this workbook's file name" &A - code for "sheet tab name" &+ - code for add to page #. &- - code for subtract from page #. &"font name,font type" - code for "text font name" and "text font type", where font name and font type are strings specifying the name and type of the font, separated by a comma. When a hyphen appears in font name, it means "none specified". Both of font name and font type can be localized values. &"-,Bold" - code for "bold font style" &B - also means "bold font style". &"-,Regular" - code for "regular font style" &"-,Italic" - code for "italic font style" &I - also means "italic font style" &"-,Bold Italic" code for "bold italic font style" &O - code for "outline style" &H - code for "shadow style"
Definition at line 66 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::__construct | ( | ) |
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::__clone | ( | ) |
Implement PHP __clone to create a deep clone, not just a shallow copy.
Definition at line 479 of file HeaderFooter.php.
References $key.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::addImage | ( | HeaderFooterDrawing | $image, |
$location = self::IMAGE_HEADER_LEFT |
|||
) |
Add header/footer image.
string | $location |
Definition at line 407 of file HeaderFooter.php.
References $location.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getAlignWithMargins | ( | ) |
Get AlignWithMargins.
Definition at line 381 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$alignWithMargins.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getDifferentFirst | ( | ) |
Get DifferentFirst.
Definition at line 333 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$differentFirst.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getDifferentOddEven | ( | ) |
Get DifferentOddEven.
Definition at line 309 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$differentOddEven.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getEvenFooter | ( | ) |
Get EvenFooter.
Definition at line 237 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$evenFooter.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getEvenHeader | ( | ) |
Get EvenHeader.
Definition at line 213 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$evenHeader.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getFirstFooter | ( | ) |
Get FirstFooter.
Definition at line 285 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$firstFooter.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getFirstHeader | ( | ) |
Get FirstHeader.
Definition at line 261 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$firstHeader.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getImages | ( | ) |
Get header/footer images.
Definition at line 449 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$headerFooterImages.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getOddFooter | ( | ) |
Get OddFooter.
Definition at line 189 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$oddFooter.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getOddHeader | ( | ) |
Get OddHeader.
Definition at line 165 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$oddHeader.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::getScaleWithDocument | ( | ) |
Get ScaleWithDocument.
Definition at line 357 of file HeaderFooter.php.
References PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\$scaleWithDocument.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::removeImage | ( | $location = self::IMAGE_HEADER_LEFT | ) |
Remove header/footer image.
string | $location |
Definition at line 421 of file HeaderFooter.php.
References $location.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setAlignWithMargins | ( | $pValue | ) |
Set AlignWithMargins.
bool | $pValue |
Definition at line 393 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setDifferentFirst | ( | $pValue | ) |
Set DifferentFirst.
bool | $pValue |
Definition at line 345 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setDifferentOddEven | ( | $pValue | ) |
Set DifferentOddEven.
bool | $pValue |
Definition at line 321 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setEvenFooter | ( | $pValue | ) |
Set EvenFooter.
string | $pValue |
Definition at line 249 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setEvenHeader | ( | $pValue | ) |
Set EvenHeader.
string | $pValue |
Definition at line 225 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setFirstFooter | ( | $pValue | ) |
Set FirstFooter.
string | $pValue |
Definition at line 297 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setFirstHeader | ( | $pValue | ) |
Set FirstHeader.
string | $pValue |
Definition at line 273 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setImages | ( | array | $images | ) |
Set header/footer images.
HeaderFooterDrawing[] | $images |
Definition at line 437 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setOddFooter | ( | $pValue | ) |
Set OddFooter.
string | $pValue |
Definition at line 201 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setOddHeader | ( | $pValue | ) |
Set OddHeader.
string | $pValue |
Definition at line 177 of file HeaderFooter.php.
PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::setScaleWithDocument | ( | $pValue | ) |
Set ScaleWithDocument.
bool | $pValue |
Definition at line 369 of file HeaderFooter.php.
|
private |
Definition at line 144 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getAlignWithMargins().
|
private |
Definition at line 130 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getDifferentFirst().
|
private |
Definition at line 123 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getDifferentOddEven().
|
private |
Definition at line 102 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getEvenFooter().
|
private |
Definition at line 95 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getEvenHeader().
|
private |
Definition at line 116 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getFirstFooter().
|
private |
Definition at line 109 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getFirstHeader().
|
private |
Definition at line 151 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getImages().
|
private |
Definition at line 88 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getOddFooter().
|
private |
Definition at line 81 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getOddHeader().
|
private |
Definition at line 137 of file HeaderFooter.php.
Referenced by PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter\getScaleWithDocument().
const PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::IMAGE_FOOTER_CENTER = 'CF' |
Definition at line 73 of file HeaderFooter.php.
const PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::IMAGE_FOOTER_LEFT = 'LF' |
Definition at line 72 of file HeaderFooter.php.
const PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::IMAGE_FOOTER_RIGHT = 'RF' |
Definition at line 74 of file HeaderFooter.php.
const PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::IMAGE_HEADER_CENTER = 'CH' |
Definition at line 70 of file HeaderFooter.php.
const PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::IMAGE_HEADER_LEFT = 'LH' |
Definition at line 69 of file HeaderFooter.php.
const PhpOffice\PhpSpreadsheet\Worksheet\HeaderFooter::IMAGE_HEADER_RIGHT = 'RH' |
Definition at line 71 of file HeaderFooter.php.