CreateTheme1.inc 37 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270
  1. <?php
  2. /**
  3. *
  4. *
  5. * @category Phpdocx
  6. * @package elements
  7. * @copyright Copyright (c) 2009-2011 Narcea Producciones Multimedia S.L.
  8. * (http://www.2mdc.com)
  9. * @license LGPL
  10. * @version 1.0
  11. * @link http://www.phpdocx.com
  12. * @since File available since Release 1.0
  13. */
  14. include_once dirname(__FILE__) . '/CreateElement.inc';
  15. /**
  16. *
  17. *
  18. * @category Phpdocx
  19. * @package elements
  20. * @copyright Copyright (c) 2009-2011 Narcea Producciones Multimedia S.L.
  21. * (http://www.2mdc.com)
  22. * @license http://www.phpdocx.com/wp-content/themes/lightword/pro_license.php
  23. * @version 1.0
  24. * @link http://www.phpdocx.com
  25. * @since Class available since Release 1.0
  26. */
  27. class CreateTheme1 extends CreateElement
  28. {
  29. const NAMESPACEWORD = 'a';
  30. /**
  31. * @access private
  32. * @var CreateFooter
  33. * @static
  34. */
  35. private static $_instance = NULL;
  36. /**
  37. *
  38. * @access protected
  39. * @var string
  40. */
  41. protected $_xml;
  42. /**
  43. * Construct
  44. *
  45. * @access public
  46. */
  47. public function __construct()
  48. {
  49. }
  50. /**
  51. * Destruct
  52. *
  53. * @access public
  54. */
  55. public function __destruct()
  56. {
  57. }
  58. /**
  59. *
  60. * @access public
  61. * @return string
  62. */
  63. public function __toString()
  64. {
  65. return $this->_xml;
  66. }
  67. /**
  68. *
  69. * @access public
  70. * @return CreateTheme1
  71. * @static
  72. */
  73. public static function getInstance()
  74. {
  75. if (self::$_instance == NULL) {
  76. self::$_instance = new CreateTheme1();
  77. }
  78. return self::$_instance;
  79. }
  80. /**
  81. * Create theme
  82. *
  83. * @access public
  84. * @param string $font
  85. */
  86. public function createTheme($font)
  87. {
  88. $this->_xml = '';
  89. $this->generateTHEMEELEMENTS();
  90. $this->generateCLRSCHEME('Office');
  91. $this->generateDK1();
  92. $this->generateSYSCLR("windowText", "000000");
  93. $this->generateLT1();
  94. $this->generateSYSCLR("window", "FFFFFF");
  95. $this->generateDK2();
  96. $this->generateSRGBCLR('1F497D');
  97. $this->generateLT2();
  98. $this->generateSRGBCLR('EEECE1');
  99. $this->generateACCENT1();
  100. $this->generateSRGBCLR('4F81BD');
  101. $this->generateACCENT2();
  102. $this->generateSRGBCLR('C0504D');
  103. $this->generateACCENT3();
  104. $this->generateSRGBCLR('9BBB59');
  105. $this->generateACCENT4();
  106. $this->generateSRGBCLR('8064A2');
  107. $this->generateACCENT5();
  108. $this->generateSRGBCLR('4BACC6');
  109. $this->generateACCENT6();
  110. $this->generateSRGBCLR('F79646');
  111. $this->generateHLINK();
  112. $this->generateSRGBCLR('0000FF');
  113. $this->generateFOLHLINK();
  114. $this->generateSRGBCLR('800080');
  115. if ($font != '') {
  116. $this->generateFONTSCHEMA('Office');
  117. $this->generateMAYORFONT();
  118. $this->generateLATIN($font);
  119. $this->generateEA('');
  120. $this->generateCS('');
  121. $this->generateMINORFONT();
  122. $this->generateLATIN($font);
  123. $this->generateEA('');
  124. $this->generateCS('');
  125. } else {
  126. $this->generateFONTSCHEMA('Office');
  127. $this->generateMAYORFONT();
  128. $this->generateLATIN('Cambria');
  129. $this->generateEA('');
  130. $this->generateCS('');
  131. $this->generateFONT('Jpan', 'MS 明朝');
  132. $this->generateFONT2('Hang', '맑은 고딕');
  133. $this->generateFONT2('Hans', '宋体');
  134. $this->generateFONT2('Hant', '新細明體');
  135. $this->generateFONT2('Arab', 'Times New Roman');
  136. $this->generateFONT2('Hebr', 'Times New Roman');
  137. $this->generateFONT2('Thai', 'Angsana New');
  138. $this->generateFONT2('Ethi', 'Nyala');
  139. $this->generateFONT2('Beng', 'Vrinda');
  140. $this->generateFONT2('Gujr', 'Shruti');
  141. $this->generateFONT2('Khmr', 'MoolBoran');
  142. $this->generateFONT2('Knda', 'Tunga');
  143. $this->generateFONT2('Guru', 'Raavi');
  144. $this->generateFONT2('Cans', 'Euphemia');
  145. $this->generateFONT2('Cher', 'Plantagenet Cherokee');
  146. $this->generateFONT2('Yiii', 'Microsoft Yi Baiti');
  147. $this->generateFONT2('Tibt', 'Microsoft Himalaya');
  148. $this->generateFONT2('Thaa', 'MV Boli');
  149. $this->generateFONT2('Deva', 'Mangal');
  150. $this->generateFONT2('Telu', 'Gautami');
  151. $this->generateFONT2('Taml', 'Latha');
  152. $this->generateFONT2('Syrc', 'Estrangelo Edessa');
  153. $this->generateFONT2('Orya', 'Kalinga');
  154. $this->generateFONT2('Mlym', 'Kartika');
  155. $this->generateFONT2('Laoo', 'DokChampa');
  156. $this->generateFONT2('Sinh', 'Iskoola Pota');
  157. $this->generateFONT2('Mong', 'Mongolian Baiti');
  158. $this->generateFONT2('Viet', 'Times New Roman');
  159. $this->generateFONT3('Uigh', 'Microsoft Uighur');
  160. $this->generateMINORFONT();
  161. $this->generateLATIN('Calibri');
  162. $this->generateEA('');
  163. $this->generateCS('');
  164. $this->generateFONT('Jpan', 'MS 明朝');
  165. $this->generateFONT2('Hang', '맑은 고딕');
  166. $this->generateFONT2('Hans', '宋体');
  167. $this->generateFONT2('Hant', '新細明體');
  168. $this->generateFONT2('Arab', 'Arial');
  169. $this->generateFONT2('Hebr', 'Arial');
  170. $this->generateFONT2('Thai', 'Cordia New');
  171. $this->generateFONT2('Ethi', 'Nyala');
  172. $this->generateFONT2('Beng', 'Vrinda');
  173. $this->generateFONT2('Gujr', 'Shruti');
  174. $this->generateFONT2('Khmr', 'DaunPenh');
  175. $this->generateFONT2('Knda', 'Tunga');
  176. $this->generateFONT2('Guru', 'Raavi');
  177. $this->generateFONT2('Cans', 'Euphemia');
  178. $this->generateFONT2('Cher', 'Plantagenet Cherokee');
  179. $this->generateFONT2('Yiii', 'Microsoft Yi Baiti');
  180. $this->generateFONT2('Tibt', 'Microsoft Himalaya');
  181. $this->generateFONT2('Thaa', 'MV Boli');
  182. $this->generateFONT2('Deva', 'Mangal');
  183. $this->generateFONT2('Telu', 'Gautami');
  184. $this->generateFONT2('Taml', 'Latha');
  185. $this->generateFONT2('Syrc', 'Estrangelo Edessa');
  186. $this->generateFONT2('Orya', 'Kalinga');
  187. $this->generateFONT2('Mlym', 'Kartika');
  188. $this->generateFONT2('Laoo', 'DokChampa');
  189. $this->generateFONT2('Sinh', 'Iskoola Pota');
  190. $this->generateFONT2('Mong', 'Mongolian Baiti');
  191. $this->generateFONT2('Viet', 'Arial');
  192. $this->generateFONT3('Uigh', 'Microsoft Uighur');
  193. }
  194. $this->generateFMTSCHEME('Office');
  195. $this->generateFILLSTYLELST();
  196. $this->generateSOLIDFILL();
  197. $this->generateSCHEMECLR('phClr');
  198. $this->generateGRADFILL(1);
  199. $this->generateGSLST();
  200. $this->generateGS(0);
  201. $this->generateSCHEMECLR2('phClr');
  202. $this->generateTINT('50000');
  203. $this->generateSATMOD('300000');
  204. $this->generateGS(35000);
  205. $this->generateSCHEMECLR2('phClr');
  206. $this->generateTINT(37000);
  207. $this->generateSATMOD(300000);
  208. $this->generateGS2(100000);
  209. $this->generateSCHEMECLR2('phClr');
  210. $this->generateTINT(15000);
  211. $this->generateSATMOD(350000);
  212. $this->generateLIN(16200000, 1);
  213. $this->generateGRADFILL2(1);
  214. $this->generateGSLST();
  215. $this->generateGS(0);
  216. $this->generateSCHEMECLR2('phClr');
  217. $this->generateSHADE('51000');
  218. $this->generateSATMOD('130000');
  219. $this->generateGS(80000);
  220. $this->generateSCHEMECLR2('phClr');
  221. $this->generateSHADE(93000);
  222. $this->generateSATMOD(130000);
  223. $this->generateGS2(100000);
  224. $this->generateSCHEMECLR2('phClr');
  225. $this->generateSHADE(94000);
  226. $this->generateSATMOD(135000);
  227. $this->generateLIN(16200000, 0);
  228. $this->generateLNSTYLELST();
  229. $this->generateLN(9525, "flat", "sng", "ctr");
  230. $this->generateSOLIDFILL();
  231. $this->generateSCHEMECLR3('phClr');
  232. $this->generateSHADE('95000');
  233. $this->generateSATMOD('105000');
  234. $this->generatePRSTDASH('solid');
  235. $this->generateLN(25400, "flat", "sng", "ctr");
  236. $this->generateSOLIDFILL();
  237. $this->generateSCHEMECLR('phClr');
  238. $this->generatePRSTDASH('solid');
  239. $this->generateLN2(38100, 'flat', 'sng', 'ctr');
  240. $this->generateSOLIDFILL();
  241. $this->generateSCHEMECLR('phClr');
  242. $this->generatePRSTDASH('solid');
  243. $this->generateEFFECTSTYLELST();
  244. $this->generateEFFECTSTYLE();
  245. $this->generateEFFECTLST();
  246. $this->generateOUTERSHDW(40000, 20000, 5400000, 0);
  247. $this->generateSRGBCLR2('000000');
  248. $this->generateALPHA(38000);
  249. $this->generateEFFECTSTYLE();
  250. $this->generateEFFECTLST();
  251. $this->generateOUTERSHDW(40000, 23000, 5400000, 0);
  252. $this->generateSRGBCLR2('000000');
  253. $this->generateALPHA(35000);
  254. $this->generateEFFECTSTYLE2();
  255. $this->generateEFFECTLST2();
  256. $this->generateOUTERSHDW(40000, 23000, 5400000, 0);
  257. $this->generateSRGBCLR2('000000');
  258. $this->generateALPHA(35000);
  259. $this->generateSCENE3D();
  260. $this->generateCAMERA('orthographicFront');
  261. $this->generateROT(0, 0, 0);
  262. $this->generateLIGHTRIG('threePt', 't');
  263. $this->generateROT(0, 0, 1200000);
  264. $this->generateSP3D();
  265. $this->generateBEVELT(63500, 25400);
  266. $this->generateBGFILLSTYLELST();
  267. $this->generateSOLIDFILL();
  268. $this->generateSCHEMECLR('phClr');
  269. $this->generateGRADFILL(1);
  270. $this->generateGSLST();
  271. $this->generateGS(0);
  272. $this->generateSCHEMECLR2('phClr');
  273. $this->generateTINT('40000');
  274. $this->generateSATMOD('350000');
  275. $this->generateGS(40000);
  276. $this->generateSCHEMECLR2('phClr');
  277. $this->generateTINT2(45000);
  278. $this->generateSHADE(99000);
  279. $this->generateSATMOD(350000);
  280. $this->generateGS2(100000);
  281. $this->generateSCHEMECLR2('phClr');
  282. $this->generateSHADE(20000);
  283. $this->generateSATMOD(255000);
  284. $this->generatePATH('circle');
  285. $this->generateFILLTORECT(50000, '-80000', 50000, 180000);
  286. $this->generateGRADFILL2(1);
  287. $this->generateGSLST();
  288. $this->generateGS(0);
  289. $this->generateSCHEMECLR2('phClr');
  290. $this->generateTINT('80000');
  291. $this->generateSATMOD('300000');
  292. $this->generateGS2(100000);
  293. $this->generateSCHEMECLR2('phClr');
  294. $this->generateSHADE(30000);
  295. $this->generateSATMOD(200000);
  296. $this->generatePATH('circle');
  297. $this->generateFILLTORECT(50000, 50000, 50000, 50000);
  298. $this->generateOBJECTDEFAULTS();
  299. $this->generateEXTRACLRSCHEMELST();
  300. $this->cleanTemplate();
  301. }
  302. /**
  303. * Generate a:themeelements
  304. *
  305. * @access protected
  306. */
  307. protected function generateTHEMEELEMENTS()
  308. {
  309. $this->_xml = '<' . CreateTheme1::NAMESPACEWORD .
  310. ':themeElements>__GENERATETHEMEELEMENTS1____' .
  311. 'GENERATETHEMEELEMENTS2____GENERATETHEMEELEMENTS3__</' .
  312. CreateTheme1::NAMESPACEWORD .
  313. ':themeElements>__GENERATETHEMEELEMENTS4__';
  314. }
  315. /**
  316. * Generate a:clrscheme
  317. *
  318. * @access protected
  319. * @param string $name
  320. */
  321. protected function generateCLRSCHEME($name = 'Office')
  322. {
  323. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  324. ':clrScheme name="' . $name .
  325. '">__GENERATECLRSCHEME__</' . CreateTheme1::NAMESPACEWORD .
  326. ':clrScheme>';
  327. $this->_xml = str_replace(
  328. '__GENERATETHEMEELEMENTS1__',
  329. $xml,
  330. $this->_xml
  331. );
  332. }
  333. /**
  334. * Generate a:dk1
  335. *
  336. * @access protected
  337. */
  338. protected function generateDK1()
  339. {
  340. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  341. ':dk1>__GENERATESYSCLR__</' . CreateTheme1::NAMESPACEWORD .
  342. ':dk1>__GENERATEDK1__';
  343. $this->_xml = str_replace('__GENERATECLRSCHEME__', $xml, $this->_xml);
  344. }
  345. /**
  346. * Generate a:sysclr
  347. *
  348. * @access protected
  349. * @param string $val
  350. * @param string $lastClr
  351. */
  352. protected function generateSYSCLR($val = 'windowText', $lastClr = '000000')
  353. {
  354. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  355. ':sysClr val="' . $val . '" lastClr="' . $lastClr .
  356. '"></' . CreateTheme1::NAMESPACEWORD . ':sysClr>';
  357. $this->_xml = str_replace('__GENERATESYSCLR__', $xml, $this->_xml);
  358. }
  359. /**
  360. * Generate a:lt1
  361. *
  362. * @access protected
  363. */
  364. protected function generateLT1()
  365. {
  366. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  367. ':lt1>__GENERATESYSCLR__</' . CreateTheme1::NAMESPACEWORD .
  368. ':lt1>__GENERATELT1__';
  369. $this->_xml = str_replace('__GENERATEDK1__', $xml, $this->_xml);
  370. }
  371. /**
  372. * Generate a:dk2
  373. *
  374. * @access protected
  375. */
  376. protected function generateDK2()
  377. {
  378. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  379. ':dk2>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  380. ':dk2>__GENERATEDK2__';
  381. $this->_xml = str_replace('__GENERATELT1__', $xml, $this->_xml);
  382. }
  383. /**
  384. * Generate a:srgbclr
  385. *
  386. * @access protected
  387. * @param string $val
  388. */
  389. protected function generateSRGBCLR($val = 'windowText')
  390. {
  391. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':srgbClr val="' . $val .
  392. '"></' . CreateTheme1::NAMESPACEWORD . ':srgbClr>';
  393. $this->_xml = str_replace('__GENERATESRGBCLR__', $xml, $this->_xml);
  394. }
  395. /**
  396. * Generate a:lt2
  397. *
  398. * @access protected
  399. */
  400. protected function generateLT2()
  401. {
  402. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  403. ':lt2>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  404. ':lt2>__GENERATELT2__';
  405. $this->_xml = str_replace('__GENERATEDK2__', $xml, $this->_xml);
  406. }
  407. /**
  408. * Generate a:accent1
  409. *
  410. * @access protected
  411. */
  412. protected function generateACCENT1()
  413. {
  414. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  415. ':accent1>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  416. ':accent1>__GENERATEACCENT1__';
  417. $this->_xml = str_replace('__GENERATELT2__', $xml, $this->_xml);
  418. }
  419. /**
  420. * Generate a:accent2
  421. *
  422. * @access protected
  423. */
  424. protected function generateACCENT2()
  425. {
  426. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  427. ':accent2>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  428. ':accent2>__GENERATEACCENT2__';
  429. $this->_xml = str_replace('__GENERATEACCENT1__', $xml, $this->_xml);
  430. }
  431. /**
  432. * Generate a:accent3
  433. *
  434. * @access protected
  435. */
  436. protected function generateACCENT3()
  437. {
  438. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  439. ':accent3>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  440. ':accent3>__GENERATEACCENT3__';
  441. $this->_xml = str_replace('__GENERATEACCENT2__', $xml, $this->_xml);
  442. }
  443. /**
  444. * Generate a:accent4
  445. *
  446. * @access protected
  447. */
  448. protected function generateACCENT4()
  449. {
  450. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  451. ':accent4>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  452. ':accent4>__GENERATEACCENT4__';
  453. $this->_xml = str_replace('__GENERATEACCENT3__', $xml, $this->_xml);
  454. }
  455. /**
  456. * Generate a:accent5
  457. *
  458. * @access protected
  459. */
  460. protected function generateACCENT5()
  461. {
  462. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  463. ':accent5>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  464. ':accent5>__GENERATEACCENT5__';
  465. $this->_xml = str_replace('__GENERATEACCENT4__', $xml, $this->_xml);
  466. }
  467. /**
  468. * Generate a:accent6
  469. *
  470. * @access protected
  471. */
  472. protected function generateACCENT6()
  473. {
  474. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  475. ':accent6>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  476. ':accent6>__GENERATEACCENT6__';
  477. $this->_xml = str_replace('__GENERATEACCENT5__', $xml, $this->_xml);
  478. }
  479. /**
  480. * Generate a:hlink
  481. *
  482. * @access protected
  483. */
  484. protected function generateHLINK()
  485. {
  486. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  487. ':hlink>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  488. ':hlink>__GENERATEHLINK__';
  489. $this->_xml = str_replace('__GENERATEACCENT6__', $xml, $this->_xml);
  490. }
  491. /**
  492. * Generate a:folhlink
  493. *
  494. * @access protected
  495. */
  496. protected function generateFOLHLINK()
  497. {
  498. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  499. ':folHlink>__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  500. ':folHlink>';
  501. $this->_xml = str_replace('__GENERATEHLINK__', $xml, $this->_xml);
  502. }
  503. /**
  504. * Generate a:fontschema
  505. *
  506. * @access protected
  507. * @param string $name
  508. */
  509. protected function generateFONTSCHEMA($name = 'Office')
  510. {
  511. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  512. ':fontScheme name="' . $name .
  513. '">__GENERATEFONTSCHEMA1____GENERATEFONTSCHEMA2__</' .
  514. CreateTheme1::NAMESPACEWORD . ':fontScheme>';
  515. $this->_xml = str_replace(
  516. '__GENERATETHEMEELEMENTS2__', $xml, $this->_xml
  517. );
  518. }
  519. /**
  520. * Generate a:mayorfont
  521. *
  522. * @access protected
  523. */
  524. protected function generateMAYORFONT()
  525. {
  526. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  527. ':majorFont>__GENERATEMAYORFONT__</' .
  528. CreateTheme1::NAMESPACEWORD .
  529. ':majorFont>';
  530. $this->_xml = str_replace('__GENERATEFONTSCHEMA1__', $xml, $this->_xml);
  531. }
  532. /**
  533. * Generate a:latin
  534. *
  535. * @access protected
  536. * @param string $typeface
  537. */
  538. protected function generateLATIN($typeface = 'cambia')
  539. {
  540. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  541. ':latin typeface="' . $typeface .
  542. '"></' . CreateTheme1::NAMESPACEWORD .
  543. ':latin>__GENERATELATIN__';
  544. $this->_xml = str_replace('__GENERATEMAYORFONT__', $xml, $this->_xml);
  545. }
  546. /**
  547. * Generate a:ea
  548. *
  549. * @access protected
  550. * @param string $typeface
  551. */
  552. protected function generateEA($typeface = '')
  553. {
  554. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  555. ':ea typeface="' . $typeface .
  556. '"></' . CreateTheme1::NAMESPACEWORD .
  557. ':ea>__GENERATEEA__';
  558. $this->_xml = str_replace('__GENERATELATIN__', $xml, $this->_xml);
  559. }
  560. /**
  561. * Generate a:cs
  562. *
  563. * @access protected
  564. * @param string $typeface
  565. */
  566. protected function generateCS($typeface = '')
  567. {
  568. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  569. ':cs typeface="' . $typeface .
  570. '"></' . CreateTheme1::NAMESPACEWORD .
  571. ':cs>__GENERATECS__';
  572. $this->_xml = str_replace('__GENERATEEA__', $xml, $this->_xml);
  573. }
  574. /**
  575. * Generate a:font
  576. *
  577. * @access protected
  578. * @param string $script
  579. * @param string $typeface
  580. */
  581. protected function generateFONT($script = '', $typeface = '')
  582. {
  583. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  584. ':font script="' . $script .
  585. '" typeface="' . $typeface .
  586. '"></' . CreateTheme1::NAMESPACEWORD .
  587. ':font>__GENERATEFONT__';
  588. $this->_xml = str_replace('__GENERATECS__', $xml, $this->_xml);
  589. }
  590. /**
  591. * Generate a:font
  592. *
  593. * @access protected
  594. * @param string script
  595. * @param string $typeface
  596. */
  597. protected function generateFONT2($script = '', $typeface = '')
  598. {
  599. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  600. ':font script="' . $script .
  601. '" typeface="' . $typeface .
  602. '"></' . CreateTheme1::NAMESPACEWORD .
  603. ':font>__GENERATEFONT__';
  604. $this->_xml = str_replace('__GENERATEFONT__', $xml, $this->_xml);
  605. }
  606. /**
  607. * Generate a:font
  608. *
  609. * @access protected
  610. * @param string $script
  611. * @param string $typeface
  612. */
  613. protected function generateFONT3($script = '', $typeface = '')
  614. {
  615. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  616. ':font script="' . $script .
  617. '" typeface="' . $typeface .
  618. '"></' . CreateTheme1::NAMESPACEWORD .
  619. ':font>';
  620. $this->_xml = str_replace('__GENERATEFONT__', $xml, $this->_xml);
  621. }
  622. /**
  623. * Generate a:minorfont
  624. *
  625. * @access protected
  626. */
  627. protected function generateMINORFONT()
  628. {
  629. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  630. ':minorFont>__GENERATEMAYORFONT__</' .
  631. CreateTheme1::NAMESPACEWORD . ':minorFont>';
  632. $this->_xml = str_replace('__GENERATEFONTSCHEMA2__', $xml, $this->_xml);
  633. }
  634. /**
  635. * Generate a:fmtscheme
  636. *
  637. * @access protected
  638. * @param string $name
  639. */
  640. protected function generateFMTSCHEME($name)
  641. {
  642. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':fmtScheme name="' . $name .
  643. '">__GENERATEFMTSCHEME__</' . CreateTheme1::NAMESPACEWORD .
  644. ':fmtScheme>';
  645. $this->_xml = str_replace(
  646. '__GENERATETHEMEELEMENTS3__', $xml, $this->_xml
  647. );
  648. }
  649. /**
  650. * Generate a:fillstylelst
  651. *
  652. * @access protected
  653. */
  654. protected function generateFILLSTYLELST()
  655. {
  656. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  657. ':fillStyleLst>__GENERATEFILLSTYLELST__</' .
  658. CreateTheme1::NAMESPACEWORD .
  659. ':fillStyleLst>__GENERATEFILLSTYLELST2__';
  660. $this->_xml = str_replace('__GENERATEFMTSCHEME__', $xml, $this->_xml);
  661. }
  662. /**
  663. * Generate a:solidfill
  664. *
  665. * @access protected
  666. */
  667. protected function generateSOLIDFILL()
  668. {
  669. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  670. ':solidFill>__GENERATESOLIDFILL__</' .
  671. CreateTheme1::NAMESPACEWORD .
  672. ':solidFill>__GENERATESOLIDFILL2__';
  673. $this->_xml = str_replace(
  674. '__GENERATEFILLSTYLELST__', $xml, $this->_xml
  675. );
  676. }
  677. /**
  678. * Generate a:schemeclr
  679. *
  680. * @access protected
  681. * @param string $val
  682. */
  683. protected function generateSCHEMECLR($val)
  684. {
  685. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':schemeClr val="' . $val .
  686. '"></' . CreateTheme1::NAMESPACEWORD . ':schemeClr>';
  687. $this->_xml = str_replace('__GENERATESOLIDFILL__', $xml, $this->_xml);
  688. }
  689. /**
  690. * Generate a:gradfill
  691. *
  692. * @access protected
  693. * @param string $rotWithShape
  694. */
  695. protected function generateGRADFILL($rotWithShape)
  696. {
  697. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':gradFill rotWithShape="' .
  698. $rotWithShape . '">__GENERATEGRADFILL__</' .
  699. CreateTheme1::NAMESPACEWORD .
  700. ':gradFill>__GENERATESOLIDFILL2__';
  701. $this->_xml = str_replace('__GENERATESOLIDFILL2__', $xml, $this->_xml);
  702. }
  703. /**
  704. * Generate a:gradfill
  705. *
  706. * @access protected
  707. * @param string $rotWithShape
  708. */
  709. protected function generateGRADFILL2($rotWithShape)
  710. {
  711. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':gradFill rotWithShape="' .
  712. $rotWithShape . '">__GENERATEGRADFILL__</' .
  713. CreateTheme1::NAMESPACEWORD . ':gradFill>';
  714. $this->_xml = str_replace('__GENERATESOLIDFILL2__', $xml, $this->_xml);
  715. }
  716. /**
  717. * Generate a:gslst
  718. *
  719. * @access protected
  720. */
  721. protected function generateGSLST()
  722. {
  723. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':gsLst>__GENERATEGSLST__</'.
  724. CreateTheme1::NAMESPACEWORD . ':gsLst>__GENERATEGSLST2__';
  725. $this->_xml = str_replace('__GENERATEGRADFILL__', $xml, $this->_xml);
  726. }
  727. /**
  728. * Generate a:gs
  729. *
  730. * @access protected
  731. * @param string $pos
  732. */
  733. protected function generateGS($pos)
  734. {
  735. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':gs pos="' . $pos .
  736. '">__GENERATEPOS__</' . CreateTheme1::NAMESPACEWORD .
  737. ':gs>__GENERATEGSLST__';
  738. $this->_xml = str_replace('__GENERATEGSLST__', $xml, $this->_xml);
  739. }
  740. /**
  741. * Generate a:gs
  742. *
  743. * @access protected
  744. * @param string $pos
  745. */
  746. protected function generateGS2($pos)
  747. {
  748. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':gs pos="' .
  749. $pos . '">__GENERATEPOS__</' . CreateTheme1::NAMESPACEWORD . ':gs>';
  750. $this->_xml = str_replace('__GENERATEGSLST__', $xml, $this->_xml);
  751. }
  752. /**
  753. * Generate a:schemeclr
  754. *
  755. * @access protected
  756. * @param string $val
  757. */
  758. protected function generateSCHEMECLR2($val)
  759. {
  760. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':schemeClr val="' . $val .
  761. '">__GENERATESCHEMECLR2__</' . CreateTheme1::NAMESPACEWORD .
  762. ':schemeClr>';
  763. $this->_xml = str_replace('__GENERATEPOS__', $xml, $this->_xml);
  764. }
  765. /**
  766. * Generate a:tint
  767. *
  768. * @access protected
  769. * @param string $val
  770. */
  771. protected function generateTINT($val)
  772. {
  773. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':tint val="' . $val .
  774. '"></' . CreateTheme1::NAMESPACEWORD .
  775. ':tint>__GENERATETINT__';
  776. $this->_xml = str_replace('__GENERATESCHEMECLR2__', $xml, $this->_xml);
  777. }
  778. /**
  779. * Generate a:shade
  780. *
  781. * @access protected
  782. * @param string $val
  783. */
  784. protected function generateSHADE($val)
  785. {
  786. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':shade val="' . $val .
  787. '"></' . CreateTheme1::NAMESPACEWORD . ':shade>__GENERATETINT__';
  788. $this->_xml = str_replace('__GENERATESCHEMECLR2__', $xml, $this->_xml);
  789. }
  790. /**
  791. * Generate a:satmod
  792. *
  793. * @access protected
  794. * @param string $val
  795. */
  796. protected function generateSATMOD($val)
  797. {
  798. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':satMod val="' . $val .
  799. '"></' . CreateTheme1::NAMESPACEWORD . ':satMod>';
  800. $this->_xml = str_replace('__GENERATETINT__', $xml, $this->_xml);
  801. }
  802. /**
  803. * Generate a:lin
  804. *
  805. * @access protected
  806. * @param string $val
  807. * @param string $scaled
  808. */
  809. protected function generateLIN($ang, $scaled)
  810. {
  811. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':lin ang="' . $ang .
  812. '" scaled="' . $scaled .
  813. '"></' . CreateTheme1::NAMESPACEWORD . ':lin>';
  814. $this->_xml = str_replace('__GENERATEGSLST2__', $xml, $this->_xml);
  815. }
  816. /**
  817. * Generate a:lnstylelst
  818. *
  819. * @access protected
  820. */
  821. protected function generateLNSTYLELST()
  822. {
  823. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  824. ':lnStyleLst>__GENERATELNSTYLELST__</' .
  825. CreateTheme1::NAMESPACEWORD . ':lnStyleLst>__GENERATELNSTYLELST2__';
  826. $this->_xml = str_replace(
  827. '__GENERATEFILLSTYLELST2__', $xml, $this->_xml
  828. );
  829. }
  830. /**
  831. * Generate a:ln
  832. *
  833. * @access protected
  834. * @param string $w
  835. * @param string $cap
  836. * @param string $cmpd
  837. * @param string $algn
  838. */
  839. protected function generateLN($w, $cap, $cmpd, $algn)
  840. {
  841. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':ln w="' . $w .
  842. '" cap="' . $cap . '" cmpd="' . $cmpd . '" algn="' . $algn .
  843. '">__GENERATEFILLSTYLELST__</' . CreateTheme1::NAMESPACEWORD .
  844. ':ln>__GENERATELNSTYLELST__';
  845. $this->_xml = str_replace('__GENERATELNSTYLELST__', $xml, $this->_xml);
  846. }
  847. /**
  848. * Generate a:ln
  849. *
  850. * @access protected
  851. * @param string $w
  852. * @param string $cap
  853. * @param string $cmpd
  854. * @param string $algn
  855. */
  856. protected function generateLN2($w, $cap, $cmpd, $algn)
  857. {
  858. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':ln w="' . $w .
  859. '" cap="' . $cap . '" cmpd="' . $cmpd . '" algn="' . $algn .
  860. '">__GENERATEFILLSTYLELST__</' . CreateTheme1::NAMESPACEWORD
  861. . ':ln>';
  862. $this->_xml = str_replace('__GENERATELNSTYLELST__', $xml, $this->_xml);
  863. }
  864. /**
  865. * Generate a:schemeclr3
  866. *
  867. * @access protected
  868. * @param string $val
  869. */
  870. protected function generateSCHEMECLR3($val)
  871. {
  872. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':schemeClr val="' .
  873. $val . '">__GENERATESCHEMECLR2__</' . CreateTheme1::NAMESPACEWORD
  874. . ':schemeClr>';
  875. $this->_xml = str_replace('__GENERATESOLIDFILL__', $xml, $this->_xml);
  876. }
  877. /**
  878. * Generate a:prstdash
  879. *
  880. * @access protected
  881. * @param string $val
  882. */
  883. protected function generatePRSTDASH($val)
  884. {
  885. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  886. ':prstDash val="' . $val . '"></' .
  887. CreateTheme1::NAMESPACEWORD . ':prstDash>';
  888. $this->_xml = str_replace('__GENERATESOLIDFILL2__', $xml, $this->_xml);
  889. }
  890. /**
  891. * Generate a:effectstylest
  892. *
  893. * @access protected
  894. */
  895. protected function generateEFFECTSTYLELST()
  896. {
  897. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  898. ':effectStyleLst>__GENERATEEFFECTSTYLELST__</' .
  899. CreateTheme1::NAMESPACEWORD .
  900. ':effectStyleLst>__GENERATEEFFECTSTYLELST2__';
  901. $this->_xml = str_replace('__GENERATELNSTYLELST2__', $xml, $this->_xml);
  902. }
  903. /**
  904. * Generate a:effectstyle
  905. *
  906. * @access protected
  907. */
  908. protected function generateEFFECTSTYLE()
  909. {
  910. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  911. ':effectStyle>__GENERATEEFFECTSTYLE__</' .
  912. CreateTheme1::NAMESPACEWORD .
  913. ':effectStyle>__GENERATEEFFECTSTYLELST__';
  914. $this->_xml = str_replace(
  915. '__GENERATEEFFECTSTYLELST__',
  916. $xml,
  917. $this->_xml
  918. );
  919. }
  920. /**
  921. * Generate a:effectstyle2
  922. *
  923. * @access protected
  924. */
  925. protected function generateEFFECTSTYLE2()
  926. {
  927. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  928. ':effectStyle>__GENERATEEFFECTSTYLE__</' .
  929. CreateTheme1::NAMESPACEWORD . ':effectStyle>';
  930. $this->_xml = str_replace(
  931. '__GENERATEEFFECTSTYLELST__', $xml, $this->_xml
  932. );
  933. }
  934. /**
  935. * Generate a:effectlst
  936. *
  937. * @access protected
  938. */
  939. protected function generateEFFECTLST()
  940. {
  941. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  942. ':effectLst>__GENERATEEFFECTLST__</' .
  943. CreateTheme1::NAMESPACEWORD . ':effectLst>';
  944. $this->_xml = str_replace('__GENERATEEFFECTSTYLE__', $xml, $this->_xml);
  945. }
  946. /**
  947. * Generate a:outershdw
  948. *
  949. * @access protected
  950. * @param string $blurRad
  951. * @param string $dist
  952. * @param string $dir
  953. * @param string $rotWithShape
  954. */
  955. protected function generateOUTERSHDW($blurRad, $dist, $dir, $rotWithShape)
  956. {
  957. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  958. ':outerShdw blurRad="' . $blurRad . '" dist="' .
  959. $dist . '" dir="' . $dir . '" rotWithShape="' .
  960. $rotWithShape . '">__GENERATEOUTERSHDW__</' .
  961. CreateTheme1::NAMESPACEWORD . ':outerShdw>';
  962. $this->_xml = str_replace('__GENERATEEFFECTLST__', $xml, $this->_xml);
  963. }
  964. /**
  965. * Generate a:srgbclr2
  966. *
  967. * @access protected
  968. * @param string $val
  969. */
  970. protected function generateSRGBCLR2($val)
  971. {
  972. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':srgbClr val="' .
  973. $val . '">__GENERATESRGBCLR__</' . CreateTheme1::NAMESPACEWORD .
  974. ':srgbClr>';
  975. $this->_xml = str_replace('__GENERATEOUTERSHDW__', $xml, $this->_xml);
  976. }
  977. /**
  978. * Generate a:alpha
  979. *
  980. * @access protected
  981. * @param string $val
  982. */
  983. protected function generateALPHA($val)
  984. {
  985. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  986. ':alpha val="' . $val .
  987. '"></' . CreateTheme1::NAMESPACEWORD . ':alpha>';
  988. $this->_xml = str_replace('__GENERATESRGBCLR__', $xml, $this->_xml);
  989. }
  990. /**
  991. * Generate a:effectlst2
  992. *
  993. * @access protected
  994. */
  995. protected function generateEFFECTLST2()
  996. {
  997. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  998. ':effectLst>__GENERATEEFFECTLST__</' . CreateTheme1::NAMESPACEWORD .
  999. ':effectLst>__GENERATEEFFECTLST2__';
  1000. $this->_xml = str_replace('__GENERATEEFFECTSTYLE__', $xml, $this->_xml);
  1001. }
  1002. /**
  1003. *
  1004. * @access protected
  1005. */
  1006. protected function generateSCENE3D()
  1007. {
  1008. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1009. ':scene3d>__GENERATESCENE3D__</' . CreateTheme1::NAMESPACEWORD .
  1010. ':scene3d>__GENERATESCENE3D2__';
  1011. $this->_xml = str_replace('__GENERATEEFFECTLST2__', $xml, $this->_xml);
  1012. }
  1013. /**
  1014. * Generate a:camera
  1015. *
  1016. * @access protected
  1017. * @param string $prst
  1018. */
  1019. protected function generateCAMERA($prst)
  1020. {
  1021. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1022. ':camera prst="' . $prst .
  1023. '">__GENERATECAMERA__</' . CreateTheme1::NAMESPACEWORD .
  1024. ':camera>__GENERATECAMERA2__';
  1025. $this->_xml = str_replace('__GENERATESCENE3D__', $xml, $this->_xml);
  1026. }
  1027. /**
  1028. * Generate a:rot
  1029. *
  1030. * @access protected
  1031. * @param string $lat
  1032. * @param string $lon
  1033. * @param string @rev
  1034. */
  1035. protected function generateROT($lat, $lon, $rev)
  1036. {
  1037. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':rot lat="' . $lat .
  1038. '" lon="' . $lon . '" rev="' . $rev .
  1039. '"></' . CreateTheme1::NAMESPACEWORD . ':rot>';
  1040. $this->_xml = str_replace('__GENERATECAMERA__', $xml, $this->_xml);
  1041. }
  1042. /**
  1043. * Generate a:lightrig
  1044. *
  1045. * @access protected
  1046. * @param string $rig
  1047. * @param string $dir
  1048. */
  1049. protected function generateLIGHTRIG($rig, $dir)
  1050. {
  1051. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1052. ':lightRig rig="' . $rig . '" dir="' . $dir .
  1053. '">__GENERATECAMERA__</' . CreateTheme1::NAMESPACEWORD .
  1054. ':lightRig>';
  1055. $this->_xml = str_replace('__GENERATECAMERA2__', $xml, $this->_xml);
  1056. }
  1057. /**
  1058. * Generate a:sp3d
  1059. *
  1060. * @access protected
  1061. */
  1062. protected function generateSP3D()
  1063. {
  1064. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1065. ':sp3d>__GENERATESP3D__</' . CreateTheme1::NAMESPACEWORD .
  1066. ':sp3d>';
  1067. $this->_xml = str_replace('__GENERATESCENE3D2__', $xml, $this->_xml);
  1068. }
  1069. /**
  1070. * Generate a:bevelt
  1071. *
  1072. * @access protected
  1073. * @param string $w
  1074. * @param string $h
  1075. */
  1076. protected function generateBEVELT($w, $h)
  1077. {
  1078. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1079. ':bevelT w="' . $w . '" h="' . $h .
  1080. '"></' . CreateTheme1::NAMESPACEWORD . ':bevelT>';
  1081. $this->_xml = str_replace('__GENERATESP3D__', $xml, $this->_xml);
  1082. }
  1083. /**
  1084. * Generate a:bgfillstylelst
  1085. *
  1086. * @access protected
  1087. */
  1088. protected function generateBGFILLSTYLELST()
  1089. {
  1090. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1091. ':bgFillStyleLst>__GENERATEFILLSTYLELST__</' .
  1092. CreateTheme1::NAMESPACEWORD . ':bgFillStyleLst>';
  1093. $this->_xml = str_replace(
  1094. '__GENERATEEFFECTSTYLELST2__',
  1095. $xml,
  1096. $this->_xml
  1097. );
  1098. }
  1099. /**
  1100. * Generate a:tint2
  1101. *
  1102. * @access protected
  1103. * @param string $val
  1104. */
  1105. protected function generateTINT2($val)
  1106. {
  1107. $xml = '<' . CreateTheme1::NAMESPACEWORD . ':tint val="' . $val .
  1108. '"></' . CreateTheme1::NAMESPACEWORD .
  1109. ':tint>__GENERATESCHEMECLR2__';
  1110. $this->_xml = str_replace('__GENERATESCHEMECLR2__', $xml, $this->_xml);
  1111. }
  1112. /**
  1113. * Generate a:path
  1114. *
  1115. * @access protected
  1116. * @param string @path
  1117. */
  1118. protected function generatePATH($path)
  1119. {
  1120. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1121. ':path path="' . $path .
  1122. '">__GENERATEPATH__</' . CreateTheme1::NAMESPACEWORD .
  1123. ':path>';
  1124. $this->_xml = str_replace('__GENERATEGSLST2__', $xml, $this->_xml);
  1125. }
  1126. /**
  1127. * Generate a:filltorect
  1128. *
  1129. * @access protected
  1130. * @param string $l
  1131. * @param string $t
  1132. * @param string $r
  1133. * @param string $b
  1134. */
  1135. protected function generateFILLTORECT($l, $t, $r, $b)
  1136. {
  1137. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1138. ':fillToRect l="' . $l . '" t="' . $t . '" r="' . $r .
  1139. '" b="' . $b . '"></' . CreateTheme1::NAMESPACEWORD .
  1140. ':fillToRect>';
  1141. $this->_xml = str_replace('__GENERATEPATH__', $xml, $this->_xml);
  1142. }
  1143. /**
  1144. * Generate a:objectdefaults
  1145. *
  1146. * @access protected
  1147. */
  1148. protected function generateOBJECTDEFAULTS()
  1149. {
  1150. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1151. ':objectDefaults></' . CreateTheme1::NAMESPACEWORD .
  1152. ':objectDefaults>__GENERATETHEMEELEMENTS4__';
  1153. $this->_xml = str_replace(
  1154. '__GENERATETHEMEELEMENTS4__',
  1155. $xml,
  1156. $this->_xml
  1157. );
  1158. }
  1159. /**
  1160. * Generate a:extraclrschemelst
  1161. *
  1162. * @access protected
  1163. */
  1164. protected function generateEXTRACLRSCHEMELST()
  1165. {
  1166. $xml = '<' . CreateTheme1::NAMESPACEWORD .
  1167. ':extraClrSchemeLst></' . CreateTheme1::NAMESPACEWORD .
  1168. ':extraClrSchemeLst>';
  1169. $this->_xml = str_replace(
  1170. '__GENERATETHEMEELEMENTS4__',
  1171. $xml,
  1172. $this->_xml
  1173. );
  1174. }
  1175. }