File Source for Theme.php

PHPExcel_Writer_Excel2007

# Source for file Theme.php

Documentation is available at Theme.php

1. <?php
2. /**
3. * PHPExcel
4. *
5. * Copyright (c) 2006 - 2011 PHPExcel
6. *
7. * This library is free software; you can redistribute it and/or
8. * modify it under the terms of the GNU Lesser General Public
9. * License as published by the Free Software Foundation; either
10. * version 2.1 of the License, or (at your option) any later version.
11. *
12. * This library is distributed in the hope that it will be useful,
13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15. * Lesser General Public License for more details.
16. *
17. * You should have received a copy of the GNU Lesser General Public
18. * License along with this library; if not, write to the Free Software
19. * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20. *
21. * @category PHPExcel
22. * @package PHPExcel_Writer_Excel2007
23. * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
24. * @license http://www.gnu.org/licenses/old-licenses/lgpl-2.1.txt LGPL
25. * @version 1.7.6, 2011-02-27
26. */
29. /**
30. * PHPExcel_Writer_Excel2007_DocProps
31. *
32. * @category PHPExcel
33. * @package PHPExcel_Writer_Excel2007
34. * @copyright Copyright (c) 2006 - 2011 PHPExcel (http://www.codeplex.com/PHPExcel)
35. */
36. class PHPExcel_Writer_Excel2007_Theme extends PHPExcel_Writer_Excel2007_WriterPart
37. {
38. /**
39. * Write theme to XML format
40. *
41. * @param PHPExcel $pPHPExcel
42. * @return string XML Output
43. * @throws Exception
44. */
45. public function writeTheme(PHPExcel $pPHPExcel = null)
46. {
47. // Create XML writer
48. $objWriter = null;
49. if ($this-> getParentWriter()->getUseDiskCaching()) {
50. $objWriter = new PHPExcel_Shared_XMLWriter( PHPExcel_Shared_XMLWriter:: STORAGE_DISK, $this-> getParentWriter()->getDiskCachingDirectory());
51. } else {
52. $objWriter = new PHPExcel_Shared_XMLWriter( PHPExcel_Shared_XMLWriter:: STORAGE_MEMORY);
53. }
55. // XML header
56. $objWriter->startDocument('1.0','UTF-8','yes');
58. // a:theme
59. $objWriter->startElement('a:theme');
60. $objWriter->writeAttribute('xmlns:a', 'http://schemas.openxmlformats.org/drawingml/2006/main');
61. $objWriter->writeAttribute('name', 'Office Theme');
63. // a:themeElements
64. $objWriter->startElement('a:themeElements');
66. {
67. // a:clrScheme
68. $objWriter->startElement('a:clrScheme');
69. $objWriter->writeAttribute('name', 'Office');
71. // a:dk1
72. $objWriter->startElement('a:dk1');
74. // a:sysClr
75. $objWriter->startElement('a:sysClr');
76. $objWriter->writeAttribute('val', 'windowText');
77. $objWriter->writeAttribute('lastClr', '000000');
78. $objWriter->endElement();
80. $objWriter->endElement();
82. // a:lt1
83. $objWriter->startElement('a:lt1');
85. // a:sysClr
86. $objWriter->startElement('a:sysClr');
87. $objWriter->writeAttribute('val', 'window');
88. $objWriter->writeAttribute('lastClr', 'FFFFFF');
89. $objWriter->endElement();
91. $objWriter->endElement();
93. // a:dk2
94. $objWriter->startElement('a:dk2');
96. // a:sysClr
97. $objWriter->startElement('a:srgbClr');
98. $objWriter->writeAttribute('val', '1F497D');
99. $objWriter->endElement();
101. $objWriter->endElement();
103. // a:lt2
104. $objWriter->startElement('a:lt2');
106. // a:sysClr
107. $objWriter->startElement('a:srgbClr');
108. $objWriter->writeAttribute('val', 'EEECE1');
109. $objWriter->endElement();
111. $objWriter->endElement();
113. // a:accent1
114. $objWriter->startElement('a:accent1');
116. // a:sysClr
117. $objWriter->startElement('a:srgbClr');
118. $objWriter->writeAttribute('val', '4F81BD');
119. $objWriter->endElement();
121. $objWriter->endElement();
123. // a:accent2
124. $objWriter->startElement('a:accent2');
126. // a:sysClr
127. $objWriter->startElement('a:srgbClr');
128. $objWriter->writeAttribute('val', 'C0504D');
129. $objWriter->endElement();
131. $objWriter->endElement();
133. // a:accent3
134. $objWriter->startElement('a:accent3');
136. // a:sysClr
137. $objWriter->startElement('a:srgbClr');
138. $objWriter->writeAttribute('val', '9BBB59');
139. $objWriter->endElement();
141. $objWriter->endElement();
143. // a:accent4
144. $objWriter->startElement('a:accent4');
146. // a:sysClr
147. $objWriter->startElement('a:srgbClr');
148. $objWriter->writeAttribute('val', '8064A2');
149. $objWriter->endElement();
151. $objWriter->endElement();
153. // a:accent5
154. $objWriter->startElement('a:accent5');
156. // a:sysClr
157. $objWriter->startElement('a:srgbClr');
158. $objWriter->writeAttribute('val', '4BACC6');
159. $objWriter->endElement();
161. $objWriter->endElement();
163. // a:accent6
164. $objWriter->startElement('a:accent6');
166. // a:sysClr
167. $objWriter->startElement('a:srgbClr');
168. $objWriter->writeAttribute('val', 'F79646');
169. $objWriter->endElement();
171. $objWriter->endElement();
173. // a:hlink
174. $objWriter->startElement('a:hlink');
176. // a:sysClr
177. $objWriter->startElement('a:srgbClr');
178. $objWriter->writeAttribute('val', '0000FF');
179. $objWriter->endElement();
181. $objWriter->endElement();
183. // a:folHlink
184. $objWriter->startElement('a:folHlink');
186. // a:sysClr
187. $objWriter->startElement('a:srgbClr');
188. $objWriter->writeAttribute('val', '800080');
189. $objWriter->endElement();
191. $objWriter->endElement();
193. $objWriter->endElement();
194. }
196. {
197. // a:fontScheme
198. $objWriter->startElement('a:fontScheme');
199. $objWriter->writeAttribute('name', 'Office');
201. // a:majorFont
202. $objWriter->startElement('a:majorFont');
204. // a:latin
205. $objWriter->startElement('a:latin');
206. $objWriter->writeAttribute('typeface', 'Cambria');
207. $objWriter->endElement();
209. // a:ea
210. $objWriter->startElement('a:ea');
211. $objWriter->writeAttribute('typeface', '');
212. $objWriter->endElement();
214. // a:cs
215. $objWriter->startElement('a:cs');
216. $objWriter->writeAttribute('typeface', '');
217. $objWriter->endElement();
219. // a:font
220. $objWriter->startElement('a:font');
221. $objWriter->writeAttribute('script', 'Jpan');
222. $objWriter->writeAttribute('typeface', '?? ?????');
223. $objWriter->endElement();
225. // a:font
226. $objWriter->startElement('a:font');
227. $objWriter->writeAttribute('script', 'Hang');
228. $objWriter->writeAttribute('typeface', '?? ??');
229. $objWriter->endElement();
231. // a:font
232. $objWriter->startElement('a:font');
233. $objWriter->writeAttribute('script', 'Hans');
234. $objWriter->writeAttribute('typeface', '??');
235. $objWriter->endElement();
237. // a:font
238. $objWriter->startElement('a:font');
239. $objWriter->writeAttribute('script', 'Hant');
240. $objWriter->writeAttribute('typeface', '????');
241. $objWriter->endElement();
243. // a:font
244. $objWriter->startElement('a:font');
245. $objWriter->writeAttribute('script', 'Arab');
246. $objWriter->writeAttribute('typeface', 'Times New Roman');
247. $objWriter->endElement();
249. // a:font
250. $objWriter->startElement('a:font');
251. $objWriter->writeAttribute('script', 'Hebr');
252. $objWriter->writeAttribute('typeface', 'Times New Roman');
253. $objWriter->endElement();
255. // a:font
256. $objWriter->startElement('a:font');
257. $objWriter->writeAttribute('script', 'Thai');
258. $objWriter->writeAttribute('typeface', 'Tahoma');
259. $objWriter->endElement();
261. // a:font
262. $objWriter->startElement('a:font');
263. $objWriter->writeAttribute('script', 'Ethi');
264. $objWriter->writeAttribute('typeface', 'Nyala');
265. $objWriter->endElement();
267. // a:font
268. $objWriter->startElement('a:font');
269. $objWriter->writeAttribute('script', 'Beng');
270. $objWriter->writeAttribute('typeface', 'Vrinda');
271. $objWriter->endElement();
273. // a:font
274. $objWriter->startElement('a:font');
275. $objWriter->writeAttribute('script', 'Gujr');
276. $objWriter->writeAttribute('typeface', 'Shruti');
277. $objWriter->endElement();
279. // a:font
280. $objWriter->startElement('a:font');
281. $objWriter->writeAttribute('script', 'Khmr');
282. $objWriter->writeAttribute('typeface', 'MoolBoran');
283. $objWriter->endElement();
285. // a:font
286. $objWriter->startElement('a:font');
287. $objWriter->writeAttribute('script', 'Knda');
288. $objWriter->writeAttribute('typeface', 'Tunga');
289. $objWriter->endElement();
291. // a:font
292. $objWriter->startElement('a:font');
293. $objWriter->writeAttribute('script', 'Guru');
294. $objWriter->writeAttribute('typeface', 'Raavi');
295. $objWriter->endElement();
297. // a:font
298. $objWriter->startElement('a:font');
299. $objWriter->writeAttribute('script', 'Cans');
300. $objWriter->writeAttribute('typeface', 'Euphemia');
301. $objWriter->endElement();
303. // a:font
304. $objWriter->startElement('a:font');
305. $objWriter->writeAttribute('script', 'Cher');
306. $objWriter->writeAttribute('typeface', 'Plantagenet Cherokee');
307. $objWriter->endElement();
309. // a:font
310. $objWriter->startElement('a:font');
311. $objWriter->writeAttribute('script', 'Yiii');
312. $objWriter->writeAttribute('typeface', 'Microsoft Yi Baiti');
313. $objWriter->endElement();
315. // a:font
316. $objWriter->startElement('a:font');
317. $objWriter->writeAttribute('script', 'Tibt');
318. $objWriter->writeAttribute('typeface', 'Microsoft Himalaya');
319. $objWriter->endElement();
321. // a:font
322. $objWriter->startElement('a:font');
323. $objWriter->writeAttribute('script', 'Thaa');
324. $objWriter->writeAttribute('typeface', 'MV Boli');
325. $objWriter->endElement();
327. // a:font
328. $objWriter->startElement('a:font');
329. $objWriter->writeAttribute('script', 'Deva');
330. $objWriter->writeAttribute('typeface', 'Mangal');
331. $objWriter->endElement();
333. // a:font
334. $objWriter->startElement('a:font');
335. $objWriter->writeAttribute('script', 'Telu');
336. $objWriter->writeAttribute('typeface', 'Gautami');
337. $objWriter->endElement();
339. // a:font
340. $objWriter->startElement('a:font');
341. $objWriter->writeAttribute('script', 'Taml');
342. $objWriter->writeAttribute('typeface', 'Latha');
343. $objWriter->endElement();
345. // a:font
346. $objWriter->startElement('a:font');
347. $objWriter->writeAttribute('script', 'Syrc');
348. $objWriter->writeAttribute('typeface', 'Estrangelo Edessa');
349. $objWriter->endElement();
351. // a:font
352. $objWriter->startElement('a:font');
353. $objWriter->writeAttribute('script', 'Orya');
354. $objWriter->writeAttribute('typeface', 'Kalinga');
355. $objWriter->endElement();
357. // a:font
358. $objWriter->startElement('a:font');
359. $objWriter->writeAttribute('script', 'Mlym');
360. $objWriter->writeAttribute('typeface', 'Kartika');
361. $objWriter->endElement();
363. // a:font
364. $objWriter->startElement('a:font');
365. $objWriter->writeAttribute('script', 'Laoo');
366. $objWriter->writeAttribute('typeface', 'DokChampa');
367. $objWriter->endElement();
369. // a:font
370. $objWriter->startElement('a:font');
371. $objWriter->writeAttribute('script', 'Sinh');
372. $objWriter->writeAttribute('typeface', 'Iskoola Pota');
373. $objWriter->endElement();
375. // a:font
376. $objWriter->startElement('a:font');
377. $objWriter->writeAttribute('script', 'Mong');
378. $objWriter->writeAttribute('typeface', 'Mongolian Baiti');
379. $objWriter->endElement();
381. // a:font
382. $objWriter->startElement('a:font');
383. $objWriter->writeAttribute('script', 'Viet');
384. $objWriter->writeAttribute('typeface', 'Times New Roman');
385. $objWriter->endElement();
387. // a:font
388. $objWriter->startElement('a:font');
389. $objWriter->writeAttribute('script', 'Uigh');
390. $objWriter->writeAttribute('typeface', 'Microsoft Uighur');
391. $objWriter->endElement();
393. $objWriter->endElement();
395. // a:minorFont
396. $objWriter->startElement('a:minorFont');
398. // a:latin
399. $objWriter->startElement('a:latin');
400. $objWriter->writeAttribute('typeface', 'Calibri');
401. $objWriter->endElement();
403. // a:ea
404. $objWriter->startElement('a:ea');
405. $objWriter->writeAttribute('typeface', '');
406. $objWriter->endElement();
408. // a:cs
409. $objWriter->startElement('a:cs');
410. $objWriter->writeAttribute('typeface', '');
411. $objWriter->endElement();
413. // a:font
414. $objWriter->startElement('a:font');
415. $objWriter->writeAttribute('script', 'Jpan');
416. $objWriter->writeAttribute('typeface', '?? ?????');
417. $objWriter->endElement();
419. // a:font
420. $objWriter->startElement('a:font');
421. $objWriter->writeAttribute('script', 'Hang');
422. $objWriter->writeAttribute('typeface', '?? ??');
423. $objWriter->endElement();
425. // a:font
426. $objWriter->startElement('a:font');
427. $objWriter->writeAttribute('script', 'Hans');
428. $objWriter->writeAttribute('typeface', '??');
429. $objWriter->endElement();
431. // a:font
432. $objWriter->startElement('a:font');
433. $objWriter->writeAttribute('script', 'Hant');
434. $objWriter->writeAttribute('typeface', '????');
435. $objWriter->endElement();
437. // a:font
438. $objWriter->startElement('a:font');
439. $objWriter->writeAttribute('script', 'Arab');
440. $objWriter->writeAttribute('typeface', 'Arial');
441. $objWriter->endElement();
443. // a:font
444. $objWriter->startElement('a:font');
445. $objWriter->writeAttribute('script', 'Hebr');
446. $objWriter->writeAttribute('typeface', 'Arial');
447. $objWriter->endElement();
449. // a:font
450. $objWriter->startElement('a:font');
451. $objWriter->writeAttribute('script', 'Thai');
452. $objWriter->writeAttribute('typeface', 'Tahoma');
453. $objWriter->endElement();
455. // a:font
456. $objWriter->startElement('a:font');
457. $objWriter->writeAttribute('script', 'Ethi');
458. $objWriter->writeAttribute('typeface', 'Nyala');
459. $objWriter->endElement();
461. // a:font
462. $objWriter->startElement('a:font');
463. $objWriter->writeAttribute('script', 'Beng');
464. $objWriter->writeAttribute('typeface', 'Vrinda');
465. $objWriter->endElement();
467. // a:font
468. $objWriter->startElement('a:font');
469. $objWriter->writeAttribute('script', 'Gujr');
470. $objWriter->writeAttribute('typeface', 'Shruti');
471. $objWriter->endElement();
473. // a:font
474. $objWriter->startElement('a:font');
475. $objWriter->writeAttribute('script', 'Khmr');
476. $objWriter->writeAttribute('typeface', 'DaunPenh');
477. $objWriter->endElement();
479. // a:font
480. $objWriter->startElement('a:font');
481. $objWriter->writeAttribute('script', 'Knda');
482. $objWriter->writeAttribute('typeface', 'Tunga');
483. $objWriter->endElement();
485. // a:font
486. $objWriter->startElement('a:font');
487. $objWriter->writeAttribute('script', 'Guru');
488. $objWriter->writeAttribute('typeface', 'Raavi');
489. $objWriter->endElement();
491. // a:font
492. $objWriter->startElement('a:font');
493. $objWriter->writeAttribute('script', 'Cans');
494. $objWriter->writeAttribute('typeface', 'Euphemia');
495. $objWriter->endElement();
497. // a:font
498. $objWriter->startElement('a:font');
499. $objWriter->writeAttribute('script', 'Cher');
500. $objWriter->writeAttribute('typeface', 'Plantagenet Cherokee');
501. $objWriter->endElement();
503. // a:font
504. $objWriter->startElement('a:font');
505. $objWriter->writeAttribute('script', 'Yiii');
506. $objWriter->writeAttribute('typeface', 'Microsoft Yi Baiti');
507. $objWriter->endElement();
509. // a:font
510. $objWriter->startElement('a:font');
511. $objWriter->writeAttribute('script', 'Tibt');
512. $objWriter->writeAttribute('typeface', 'Microsoft Himalaya');
513. $objWriter->endElement();
515. // a:font
516. $objWriter->startElement('a:font');
517. $objWriter->writeAttribute('script', 'Thaa');
518. $objWriter->writeAttribute('typeface', 'MV Boli');
519. $objWriter->endElement();
521. // a:font
522. $objWriter->startElement('a:font');
523. $objWriter->writeAttribute('script', 'Deva');
524. $objWriter->writeAttribute('typeface', 'Mangal');
525. $objWriter->endElement();
527. // a:font
528. $objWriter->startElement('a:font');
529. $objWriter->writeAttribute('script', 'Telu');
530. $objWriter->writeAttribute('typeface', 'Gautami');
531. $objWriter->endElement();
533. // a:font
534. $objWriter->startElement('a:font');
535. $objWriter->writeAttribute('script', 'Taml');
536. $objWriter->writeAttribute('typeface', 'Latha');
537. $objWriter->endElement();
539. // a:font
540. $objWriter->startElement('a:font');
541. $objWriter->writeAttribute('script', 'Syrc');
542. $objWriter->writeAttribute('typeface', 'Estrangelo Edessa');
543. $objWriter->endElement();
545. // a:font
546. $objWriter->startElement('a:font');
547. $objWriter->writeAttribute('script', 'Orya');
548. $objWriter->writeAttribute('typeface', 'Kalinga');
549. $objWriter->endElement();
551. // a:font
552. $objWriter->startElement('a:font');
553. $objWriter->writeAttribute('script', 'Mlym');
554. $objWriter->writeAttribute('typeface', 'Kartika');
555. $objWriter->endElement();
557. // a:font
558. $objWriter->startElement('a:font');
559. $objWriter->writeAttribute('script', 'Laoo');
560. $objWriter->writeAttribute('typeface', 'DokChampa');
561. $objWriter->endElement();
563. // a:font
564. $objWriter->startElement('a:font');
565. $objWriter->writeAttribute('script', 'Sinh');
566. $objWriter->writeAttribute('typeface', 'Iskoola Pota');
567. $objWriter->endElement();
569. // a:font
570. $objWriter->startElement('a:font');
571. $objWriter->writeAttribute('script', 'Mong');
572. $objWriter->writeAttribute('typeface', 'Mongolian Baiti');
573. $objWriter->endElement();
575. // a:font
576. $objWriter->startElement('a:font');
577. $objWriter->writeAttribute('script', 'Viet');
578. $objWriter->writeAttribute('typeface', 'Arial');
579. $objWriter->endElement();
581. // a:font
582. $objWriter->startElement('a:font');
583. $objWriter->writeAttribute('script', 'Uigh');
584. $objWriter->writeAttribute('typeface', 'Microsoft Uighur');
585. $objWriter->endElement();
587. $objWriter->endElement();
589. $objWriter->endElement();
590. }
592. {
593. // a:fmtScheme
594. $objWriter->startElement('a:fmtScheme');
595. $objWriter->writeAttribute('name', 'Office');
597. // a:fillStyleLst
598. $objWriter->startElement('a:fillStyleLst');
600. // a:solidFill
601. $objWriter->startElement('a:solidFill');
603. // a:schemeClr
604. $objWriter->startElement('a:schemeClr');
605. $objWriter->writeAttribute('val', 'phClr');
606. $objWriter->endElement();
608. $objWriter->endElement();
610. // a:gradFill
611. $objWriter->startElement('a:gradFill');
612. $objWriter->writeAttribute('rotWithShape', '1');
614. // a:gsLst
615. $objWriter->startElement('a:gsLst');
617. // a:gs
618. $objWriter->startElement('a:gs');
619. $objWriter->writeAttribute('pos', '0');
621. // a:schemeClr
622. $objWriter->startElement('a:schemeClr');
623. $objWriter->writeAttribute('val', 'phClr');
625. // a:tint
626. $objWriter->startElement('a:tint');
627. $objWriter->writeAttribute('val', '50000');
628. $objWriter->endElement();
630. // a:satMod
631. $objWriter->startElement('a:satMod');
632. $objWriter->writeAttribute('val', '300000');
633. $objWriter->endElement();
635. $objWriter->endElement();
637. $objWriter->endElement();
639. // a:gs
640. $objWriter->startElement('a:gs');
641. $objWriter->writeAttribute('pos', '35000');
643. // a:schemeClr
644. $objWriter->startElement('a:schemeClr');
645. $objWriter->writeAttribute('val', 'phClr');
647. // a:tint
648. $objWriter->startElement('a:tint');
649. $objWriter->writeAttribute('val', '37000');
650. $objWriter->endElement();
652. // a:satMod
653. $objWriter->startElement('a:satMod');
654. $objWriter->writeAttribute('val', '300000');
655. $objWriter->endElement();
657. $objWriter->endElement();
659. $objWriter->endElement();
661. // a:gs
662. $objWriter->startElement('a:gs');
663. $objWriter->writeAttribute('pos', '100000');
665. // a:schemeClr
666. $objWriter->startElement('a:schemeClr');
667. $objWriter->writeAttribute('val', 'phClr');
669. // a:tint
670. $objWriter->startElement('a:tint');
671. $objWriter->writeAttribute('val', '15000');
672. $objWriter->endElement();
674. // a:satMod
675. $objWriter->startElement('a:satMod');
676. $objWriter->writeAttribute('val', '350000');
677. $objWriter->endElement();
679. $objWriter->endElement();
681. $objWriter->endElement();
683. $objWriter->endElement();
685. // a:lin
686. $objWriter->startElement('a:lin');
687. $objWriter->writeAttribute('ang', '16200000');
688. $objWriter->writeAttribute('scaled', '1');
689. $objWriter->endElement();
691. $objWriter->endElement();
693. // a:gradFill
694. $objWriter->startElement('a:gradFill');
695. $objWriter->writeAttribute('rotWithShape', '1');
697. // a:gsLst
698. $objWriter->startElement('a:gsLst');
700. // a:gs
701. $objWriter->startElement('a:gs');
702. $objWriter->writeAttribute('pos', '0');
704. // a:schemeClr
705. $objWriter->startElement('a:schemeClr');
706. $objWriter->writeAttribute('val', 'phClr');
708. // a:shade
709. $objWriter->startElement('a:shade');
710. $objWriter->writeAttribute('val', '51000');
711. $objWriter->endElement();
713. // a:satMod
714. $objWriter->startElement('a:satMod');
715. $objWriter->writeAttribute('val', '130000');
716. $objWriter->endElement();
718. $objWriter->endElement();
720. $objWriter->endElement();
722. // a:gs
723. $objWriter->startElement('a:gs');
724. $objWriter->writeAttribute('pos', '80000');
726. // a:schemeClr
727. $objWriter->startElement('a:schemeClr');
728. $objWriter->writeAttribute('val', 'phClr');
730. // a:shade
731. $objWriter->startElement('a:shade');
732. $objWriter->writeAttribute('val', '93000');
733. $objWriter->endElement();
735. // a:satMod
736. $objWriter->startElement('a:satMod');
737. $objWriter->writeAttribute('val', '130000');
738. $objWriter->endElement();
740. $objWriter->endElement();
742. $objWriter->endElement();
744. // a:gs
745. $objWriter->startElement('a:gs');
746. $objWriter->writeAttribute('pos', '100000');
748. // a:schemeClr
749. $objWriter->startElement('a:schemeClr');
750. $objWriter->writeAttribute('val', 'phClr');
752. // a:shade
753. $objWriter->startElement('a:shade');
754. $objWriter->writeAttribute('val', '94000');
755. $objWriter->endElement();
757. // a:satMod
758. $objWriter->startElement('a:satMod');
759. $objWriter->writeAttribute('val', '135000');
760. $objWriter->endElement();
762. $objWriter->endElement();
764. $objWriter->endElement();
766. $objWriter->endElement();
768. // a:lin
769. $objWriter->startElement('a:lin');
770. $objWriter->writeAttribute('ang', '16200000');
771. $objWriter->writeAttribute('scaled', '0');
772. $objWriter->endElement();
774. $objWriter->endElement();
776. $objWriter->endElement();
778. // a:lnStyleLst
779. $objWriter->startElement('a:lnStyleLst');
781. // a:ln
782. $objWriter->startElement('a:ln');
783. $objWriter->writeAttribute('w', '9525');
784. $objWriter->writeAttribute('cap', 'flat');
785. $objWriter->writeAttribute('cmpd', 'sng');
786. $objWriter->writeAttribute('algn', 'ctr');
788. // a:solidFill
789. $objWriter->startElement('a:solidFill');
791. // a:schemeClr
792. $objWriter->startElement('a:schemeClr');
793. $objWriter->writeAttribute('val', 'phClr');
795. // a:shade
796. $objWriter->startElement('a:shade');
797. $objWriter->writeAttribute('val', '95000');
798. $objWriter->endElement();
800. // a:satMod
801. $objWriter->startElement('a:satMod');
802. $objWriter->writeAttribute('val', '105000');
803. $objWriter->endElement();
805. $objWriter->endElement();
807. $objWriter->endElement();
809. // a:prstDash
810. $objWriter->startElement('a:prstDash');
811. $objWriter->writeAttribute('val', 'solid');
812. $objWriter->endElement();
814. $objWriter->endElement();
816. // a:ln
817. $objWriter->startElement('a:ln');
818. $objWriter->writeAttribute('w', '25400');
819. $objWriter->writeAttribute('cap', 'flat');
820. $objWriter->writeAttribute('cmpd', 'sng');
821. $objWriter->writeAttribute('algn', 'ctr');
823. // a:solidFill
824. $objWriter->startElement('a:solidFill');
826. // a:schemeClr
827. $objWriter->startElement('a:schemeClr');
828. $objWriter->writeAttribute('val', 'phClr');
829. $objWriter->endElement();
831. $objWriter->endElement();
833. // a:prstDash
834. $objWriter->startElement('a:prstDash');
835. $objWriter->writeAttribute('val', 'solid');
836. $objWriter->endElement();
838. $objWriter->endElement();
840. // a:ln
841. $objWriter->startElement('a:ln');
842. $objWriter->writeAttribute('w', '38100');
843. $objWriter->writeAttribute('cap', 'flat');
844. $objWriter->writeAttribute('cmpd', 'sng');
845. $objWriter->writeAttribute('algn', 'ctr');
847. // a:solidFill
848. $objWriter->startElement('a:solidFill');
850. // a:schemeClr
851. $objWriter->startElement('a:schemeClr');
852. $objWriter->writeAttribute('val', 'phClr');
853. $objWriter->endElement();
855. $objWriter->endElement();
857. // a:prstDash
858. $objWriter->startElement('a:prstDash');
859. $objWriter->writeAttribute('val', 'solid');
860. $objWriter->endElement();
862. $objWriter->endElement();
864. $objWriter->endElement();
868. // a:effectStyleLst
869. $objWriter->startElement('a:effectStyleLst');
871. // a:effectStyle
872. $objWriter->startElement('a:effectStyle');
874. // a:effectLst
875. $objWriter->startElement('a:effectLst');
877. // a:outerShdw
878. $objWriter->startElement('a:outerShdw');
879. $objWriter->writeAttribute('blurRad', '40000');
880. $objWriter->writeAttribute('dist', '20000');
881. $objWriter->writeAttribute('dir', '5400000');
882. $objWriter->writeAttribute('rotWithShape', '0');
884. // a:srgbClr
885. $objWriter->startElement('a:srgbClr');
886. $objWriter->writeAttribute('val', '000000');
888. // a:alpha
889. $objWriter->startElement('a:alpha');
890. $objWriter->writeAttribute('val', '38000');
891. $objWriter->endElement();
893. $objWriter->endElement();
895. $objWriter->endElement();
897. $objWriter->endElement();
899. $objWriter->endElement();
901. // a:effectStyle
902. $objWriter->startElement('a:effectStyle');
904. // a:effectLst
905. $objWriter->startElement('a:effectLst');
907. // a:outerShdw
908. $objWriter->startElement('a:outerShdw');
909. $objWriter->writeAttribute('blurRad', '40000');
910. $objWriter->writeAttribute('dist', '23000');
911. $objWriter->writeAttribute('dir', '5400000');
912. $objWriter->writeAttribute('rotWithShape', '0');
914. // a:srgbClr
915. $objWriter->startElement('a:srgbClr');
916. $objWriter->writeAttribute('val', '000000');
918. // a:alpha
919. $objWriter->startElement('a:alpha');
920. $objWriter->writeAttribute('val', '35000');
921. $objWriter->endElement();
923. $objWriter->endElement();
925. $objWriter->endElement();
927. $objWriter->endElement();
929. $objWriter->endElement();
931. // a:effectStyle
932. $objWriter->startElement('a:effectStyle');
934. // a:effectLst
935. $objWriter->startElement('a:effectLst');
937. // a:outerShdw
938. $objWriter->startElement('a:outerShdw');
939. $objWriter->writeAttribute('blurRad', '40000');
940. $objWriter->writeAttribute('dist', '23000');
941. $objWriter->writeAttribute('dir', '5400000');
942. $objWriter->writeAttribute('rotWithShape', '0');
944. // a:srgbClr
945. $objWriter->startElement('a:srgbClr');
946. $objWriter->writeAttribute('val', '000000');
948. // a:alpha
949. $objWriter->startElement('a:alpha');
950. $objWriter->writeAttribute('val', '35000');
951. $objWriter->endElement();
953. $objWriter->endElement();
955. $objWriter->endElement();
957. $objWriter->endElement();
959. // a:scene3d
960. $objWriter->startElement('a:scene3d');
962. // a:camera
963. $objWriter->startElement('a:camera');
964. $objWriter->writeAttribute('prst', 'orthographicFront');
966. // a:rot
967. $objWriter->startElement('a:rot');
968. $objWriter->writeAttribute('lat', '0');
969. $objWriter->writeAttribute('lon', '0');
970. $objWriter->writeAttribute('rev', '0');
971. $objWriter->endElement();
973. $objWriter->endElement();
975. // a:lightRig
976. $objWriter->startElement('a:lightRig');
977. $objWriter->writeAttribute('rig', 'threePt');
978. $objWriter->writeAttribute('dir', 't');
980. // a:rot
981. $objWriter->startElement('a:rot');
982. $objWriter->writeAttribute('lat', '0');
983. $objWriter->writeAttribute('lon', '0');
984. $objWriter->writeAttribute('rev', '1200000');
985. $objWriter->endElement();
987. $objWriter->endElement();
989. $objWriter->endElement();
991. // a:sp3d
992. $objWriter->startElement('a:sp3d');
994. // a:bevelT
995. $objWriter->startElement('a:bevelT');
996. $objWriter->writeAttribute('w', '63500');
997. $objWriter->writeAttribute('h', '25400');
998. $objWriter->endElement();
1000. $objWriter->endElement();
1002. $objWriter->endElement();
1004. $objWriter->endElement();
1006. // a:bgFillStyleLst
1007. $objWriter->startElement('a:bgFillStyleLst');
1009. // a:solidFill
1010. $objWriter->startElement('a:solidFill');
1012. // a:schemeClr
1013. $objWriter->startElement('a:schemeClr');
1014. $objWriter->writeAttribute('val', 'phClr');
1015. $objWriter->endElement();
1017. $objWriter->endElement();
1019. // a:gradFill
1020. $objWriter->startElement('a:gradFill');
1021. $objWriter->writeAttribute('rotWithShape', '1');
1023. // a:gsLst
1024. $objWriter->startElement('a:gsLst');
1026. // a:gs
1027. $objWriter->startElement('a:gs');
1028. $objWriter->writeAttribute('pos', '0');
1030. // a:schemeClr
1031. $objWriter->startElement('a:schemeClr');
1032. $objWriter->writeAttribute('val', 'phClr');
1034. // a:tint
1035. $objWriter->startElement('a:tint');
1036. $objWriter->writeAttribute('val', '40000');
1037. $objWriter->endElement();
1039. // a:satMod
1040. $objWriter->startElement('a:satMod');
1041. $objWriter->writeAttribute('val', '350000');
1042. $objWriter->endElement();
1044. $objWriter->endElement();
1046. $objWriter->endElement();
1048. // a:gs
1049. $objWriter->startElement('a:gs');
1050. $objWriter->writeAttribute('pos', '40000');
1052. // a:schemeClr
1053. $objWriter->startElement('a:schemeClr');
1054. $objWriter->writeAttribute('val', 'phClr');
1056. // a:tint
1057. $objWriter->startElement('a:tint');
1058. $objWriter->writeAttribute('val', '45000');
1059. $objWriter->endElement();
1061. // a:shade
1062. $objWriter->startElement('a:shade');
1063. $objWriter->writeAttribute('val', '99000');
1064. $objWriter->endElement();
1066. // a:satMod
1067. $objWriter->startElement('a:satMod');
1068. $objWriter->writeAttribute('val', '350000');
1069. $objWriter->endElement();
1071. $objWriter->endElement();
1073. $objWriter->endElement();
1075. // a:gs
1076. $objWriter->startElement('a:gs');
1077. $objWriter->writeAttribute('pos', '100000');
1079. // a:schemeClr
1080. $objWriter->startElement('a:schemeClr');
1081. $objWriter->writeAttribute('val', 'phClr');
1083. // a:shade
1084. $objWriter->startElement('a:shade');
1085. $objWriter->writeAttribute('val', '20000');
1086. $objWriter->endElement();
1088. // a:satMod
1089. $objWriter->startElement('a:satMod');
1090. $objWriter->writeAttribute('val', '255000');
1091. $objWriter->endElement();
1093. $objWriter->endElement();
1095. $objWriter->endElement();
1097. $objWriter->endElement();
1099. // a:path
1100. $objWriter->startElement('a:path');
1101. $objWriter->writeAttribute('path', 'circle');
1103. // a:fillToRect
1104. $objWriter->startElement('a:fillToRect');
1105. $objWriter->writeAttribute('l', '50000');
1106. $objWriter->writeAttribute('t', '-80000');
1107. $objWriter->writeAttribute('r', '50000');
1108. $objWriter->writeAttribute('b', '180000');
1109. $objWriter->endElement();
1111. $objWriter->endElement();
1113. $objWriter->endElement();
1115. // a:gradFill
1116. $objWriter->startElement('a:gradFill');
1117. $objWriter->writeAttribute('rotWithShape', '1');
1119. // a:gsLst
1120. $objWriter->startElement('a:gsLst');
1122. // a:gs
1123. $objWriter->startElement('a:gs');
1124. $objWriter->writeAttribute('pos', '0');
1126. // a:schemeClr
1127. $objWriter->startElement('a:schemeClr');
1128. $objWriter->writeAttribute('val', 'phClr');
1130. // a:tint
1131. $objWriter->startElement('a:tint');
1132. $objWriter->writeAttribute('val', '80000');
1133. $objWriter->endElement();
1135. // a:satMod
1136. $objWriter->startElement('a:satMod');
1137. $objWriter->writeAttribute('val', '300000');
1138. $objWriter->endElement();
1140. $objWriter->endElement();
1142. $objWriter->endElement();
1144. // a:gs
1145. $objWriter->startElement('a:gs');
1146. $objWriter->writeAttribute('pos', '100000');
1148. // a:schemeClr
1149. $objWriter->startElement('a:schemeClr');
1150. $objWriter->writeAttribute('val', 'phClr');
1152. // a:shade
1153. $objWriter->startElement('a:shade');
1154. $objWriter->writeAttribute('val', '30000');
1155. $objWriter->endElement();
1157. // a:satMod
1158. $objWriter->startElement('a:satMod');
1159. $objWriter->writeAttribute('val', '200000');
1160. $objWriter->endElement();
1162. $objWriter->endElement();
1164. $objWriter->endElement();
1166. $objWriter->endElement();
1168. // a:path
1169. $objWriter->startElement('a:path');
1170. $objWriter->writeAttribute('path', 'circle');
1172. // a:fillToRect
1173. $objWriter->startElement('a:fillToRect');
1174. $objWriter->writeAttribute('l', '50000');
1175. $objWriter->writeAttribute('t', '50000');
1176. $objWriter->writeAttribute('r', '50000');
1177. $objWriter->writeAttribute('b', '50000');
1178. $objWriter->endElement();
1180. $objWriter->endElement();
1182. $objWriter->endElement();
1184. $objWriter->endElement();
1186. $objWriter->endElement();
1187. }
1189. $objWriter->endElement();
1191. // a:objectDefaults
1192. $objWriter->writeElement('a:objectDefaults', null);
1194. // a:extraClrSchemeLst
1195. $objWriter->writeElement('a:extraClrSchemeLst', null);
1197. $objWriter->endElement();
1199. // Return
1200. return $objWriter->getData();
1201. }
1202. }

Documentation generated on Sun, 27 Feb 2011 16:35:39 -0800 by phpDocumentor 1.4.3