Definition at line 36 of file Theme.php.
◆ _writeColourScheme()
PHPExcel_Writer_Excel2007_Theme::_writeColourScheme |
( |
|
$objWriter | ) |
|
|
private |
Write colour scheme to XML format.
- Parameters
-
- Returns
- string XML Output
- Exceptions
-
Definition at line 858 of file Theme.php.
859 {
860 foreach(self::$_colourScheme as $colourName => $colourValue) {
862
864 $objWriter->writeAttribute(
'val', $colourValue);
866
868 }
869
870 }
References $objWriter.
Referenced by writeTheme().
◆ _writeFonts()
PHPExcel_Writer_Excel2007_Theme::_writeFonts |
( |
|
$objWriter, |
|
|
|
$latinFont, |
|
|
|
$fontSet |
|
) |
| |
|
private |
Write fonts to XML format.
- Parameters
-
- Returns
- string XML Output
- Exceptions
-
Definition at line 825 of file Theme.php.
826 {
827
829 $objWriter->writeAttribute(
'typeface', $latinFont);
831
832
836
837
841
842 foreach($fontSet as $fontScript => $typeface) {
844 $objWriter->writeAttribute(
'script', $fontScript);
845 $objWriter->writeAttribute(
'typeface', $typeface);
847 }
848
849 }
References $objWriter.
Referenced by writeTheme().
◆ writeTheme()
PHPExcel_Writer_Excel2007_Theme::writeTheme |
( |
PHPExcel |
$pPHPExcel = null | ) |
|
Write theme to XML format.
- Parameters
-
- Returns
- string XML Output
- Exceptions
-
Definition at line 139 of file Theme.php.
140 {
141
145 } else {
147 }
148
149
150 $objWriter->startDocument(
'1.0',
'UTF-8',
'yes');
151
152
154 $objWriter->writeAttribute(
'xmlns:a',
'http://schemas.openxmlformats.org/drawingml/2006/main');
155 $objWriter->writeAttribute(
'name',
'Office Theme');
156
157
159
160
163
164
166
167
169 $objWriter->writeAttribute(
'val',
'windowText');
170 $objWriter->writeAttribute(
'lastClr',
'000000');
172
174
175
177
178
181 $objWriter->writeAttribute(
'lastClr',
'FFFFFF');
183
185
186
188
190
191
194
195
199
200
204
206
207
210
211
213
214
216
217
221
223
224
226 $objWriter->writeAttribute(
'rotWithShape',
'1');
227
228
230
231
234
235
238
239
243
244
248
250
252
253
256
257
260
261
265
266
270
272
274
275
278
279
282
283
287
288
292
294
296
298
299
301 $objWriter->writeAttribute(
'ang',
'16200000');
304
306
307
309 $objWriter->writeAttribute(
'rotWithShape',
'1');
310
311
313
314
317
318
321
322
326
327
331
333
335
336
339
340
343
344
348
349
353
355
357
358
361
362
365
366
370
371
375
377
379
381
382
384 $objWriter->writeAttribute(
'ang',
'16200000');
387
389
391
392
394
395
401
402
404
405
408
409
413
414
418
420
422
423
427
429
430
436
437
439
440
444
446
447
451
453
454
460
461
463
464
468
470
471
475
477
479
480
481
482
484
485
487
488
490
491
493 $objWriter->writeAttribute(
'blurRad',
'40000');
496 $objWriter->writeAttribute(
'rotWithShape',
'0');
497
498
501
502
506
508
510
512
514
515
517
518
520
521
523 $objWriter->writeAttribute(
'blurRad',
'40000');
526 $objWriter->writeAttribute(
'rotWithShape',
'0');
527
528
531
532
536
538
540
542
544
545
547
548
550
551
553 $objWriter->writeAttribute(
'blurRad',
'40000');
556 $objWriter->writeAttribute(
'rotWithShape',
'0');
557
558
561
562
566
568
570
572
573
575
576
578 $objWriter->writeAttribute(
'prst',
'orthographicFront');
579
580
586
588
589
593
594
600
602
604
605
607
608
613
615
617
619
620
622
623
625
626
630
632
633
635 $objWriter->writeAttribute(
'rotWithShape',
'1');
636
637
639
640
643
644
647
648
652
653
657
659
661
662
665
666
669
670
674
675
679
680
684
686
688
689
692
693
696
697
701
702
706
708
710
712
713
716
717
724
726
728
729
731 $objWriter->writeAttribute(
'rotWithShape',
'1');
732
733
735
736
739
740
743
744
748
749
753
755
757
758
761
762
765
766
770
771
775
777
779
781
782
785
786
793
795
797
799
801
803
804
805 $objWriter->writeElement(
'a:objectDefaults',
null);
806
807
808 $objWriter->writeElement(
'a:extraClrSchemeLst',
null);
809
811
812
814 }
const STORAGE_MEMORY
Temporary storage method.
_writeFonts($objWriter, $latinFont, $fontSet)
Write fonts to XML format.
_writeColourScheme($objWriter)
Write colour scheme to XML format.
getParentWriter()
Get parent IWriter object.
References $objWriter, _writeColourScheme(), _writeFonts(), PHPExcel_Writer_Excel2007_WriterPart\getParentWriter(), PHPExcel_Shared_XMLWriter\STORAGE_DISK, and PHPExcel_Shared_XMLWriter\STORAGE_MEMORY.
◆ $_colourScheme
PHPExcel_Writer_Excel2007_Theme::$_colourScheme |
|
staticprivate |
Initial value:= array(
'dk2' => '1F497D',
'lt2' => 'EEECE1',
'accent1' => '4F81BD',
'accent2' => 'C0504D',
'accent3' => '9BBB59',
'accent4' => '8064A2',
'accent5' => '4BACC6',
'accent6' => 'F79646',
'hlink' => '0000FF',
'folHlink' => '800080',
)
Map of core colours array of string.
Definition at line 119 of file Theme.php.
◆ $_majorFonts
PHPExcel_Writer_Excel2007_Theme::$_majorFonts |
|
staticprivate |
Map of Major fonts to write array of string.
Definition at line 43 of file Theme.php.
◆ $_minorFonts
PHPExcel_Writer_Excel2007_Theme::$_minorFonts |
|
staticprivate |
Map of Minor fonts to write array of string.
Definition at line 81 of file Theme.php.
The documentation for this class was generated from the following file:
- libs/composer/vendor/phpoffice/phpexcel/Classes/PHPExcel/Writer/Excel2007/Theme.php