styleText.xts 27 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!--
  3. Licensed Materials - Property of IBM
  4. BI and PM: qs
  5. (C) Copyright IBM Corp. 2001, 2017
  6. US Government Users Restricted Rights - Use, duplication or disclosure restricted by GSA ADP Schedule Contract with IBM Corp.
  7. -->
  8. <!--
  9. Copyright (C) 2008 Cognos ULC, an IBM Company. All rights reserved.
  10. Cognos (R) is a trademark of Cognos ULC, (formerly Cognos Incorporated).
  11. -->
  12. <xts:morphlet version="1.0" xmlns:xts="http://developer.cognos.com/schemas/xts/" messageBase="messages/QSRVUITextPL.xml,messages/portal.xml,messages/portalRL.xml" requiredCapability="canUseQueryStudio, canUseQueryStudioAdvancedMode">
  13. <xts:block id="page" type="exec" mode="output" processor="XSLT" mimeType="text/html">
  14. <!-- get the debug logic sheet -->
  15. <xts:logicsheet path="logicsheets/debuglogic.xslt"/>
  16. <!-- get the new theme stuff -->
  17. <xts:logicsheet path="logicsheets/portal.xsl"/>
  18. <xts:logicsheet path="qs/logicsheets/dialogs.xsl"/>
  19. <xts:logicsheet path="logicsheets/presentation/dialog/framework.xsl"/>
  20. <xts:logicsheet path="logicsheets/presentation/layout.xsl"/>
  21. <xts:logicsheet path="logicsheets/presentation/dialog/presentation.xsl"/>
  22. <xts:logicsheet path="logicsheets/presentation/controls/framework.xsl"/>
  23. <xts:logicsheet path="logicsheets/presentation/controls/presentation.xsl"/>
  24. <xts:logicsheet path="logicsheets/cm-logic.xsl"/>
  25. <!-- apply the form logic -->
  26. <xts:logicsheet path="logicsheets/formlogic.xslt"/>
  27. <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xts="http://developer.cognos.com/schemas/xts/" xmlns:lyt="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/layout/" xmlns:pf="http://developer.cognos.com/schemas/xts/pf" xmlns:dp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/presentation/" xmlns:df="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/dialog/framework/" xmlns:cp="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/presentation/" xmlns:cf="http://developer.cognos.com/schemas/xts/logicsheets/xslt/presentation/controls/framework/" xmlns:dbg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/debug/" xmlns:qsdlg="http://developer.cognos.com/schemas/xts/logicsheets/xslt/qs/dialog/" xmlns:xtsext="xalan://com.cognos.xts.ext.XTSExt" exclude-result-prefixes="xsl xts lyt pf dp df cp cf dbg qsdlg xtsext">
  28. <xsl:output method="html" version="1.0" encoding="UTF-8" indent="no"/>
  29. <!-- Default variables (like skin) -->
  30. <qsdlg:variables/>
  31. <!-- add any theme variables -->
  32. <df:variables/>
  33. <pf:variables/>
  34. <!-- start the output -->
  35. <xsl:template match="/root">
  36. <dp:page>
  37. <dp:script>
  38. <script type="text/javascript">
  39. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/layout.js</xsl:attribute>
  40. <xsl:text/>//<xsl:text/>
  41. </script>
  42. <script type="text/javascript">
  43. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/dialogs/styleText.js</xsl:attribute>
  44. <xsl:text/>//<xsl:text/>
  45. </script>
  46. <script type="text/javascript">
  47. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/CSSManager.js</xsl:attribute>
  48. <xsl:text/>//<xsl:text/>
  49. </script>
  50. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/prompting/promptCommon.css"/>
  51. <link rel="stylesheet" type="text/css" href="{$qsdlgskin}/qs/QSRVDialog.css"/>
  52. <script type="text/javascript">
  53. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/prompting.js</xsl:attribute>
  54. <xsl:text/>//<xsl:text/>
  55. </script>
  56. <script type="text/javascript">
  57. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/CTreeIE5NS6.js</xsl:attribute>
  58. <xsl:text/>//<xsl:text/>
  59. </script>
  60. <script type="text/javascript">
  61. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/CAlignmentPicker.js</xsl:attribute>
  62. <xsl:text/>//<xsl:text/>
  63. </script>
  64. <script type="text/javascript">
  65. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/CColorPicker.js</xsl:attribute>
  66. <xsl:text/>//<xsl:text/>
  67. </script>
  68. <script type="text/javascript">
  69. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CDialogManager.js</xsl:attribute>
  70. <xsl:text/>//<xsl:text/>
  71. </script>
  72. <script type="text/javascript">
  73. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/qs/classes/CWindowManager.js</xsl:attribute>
  74. <xsl:text/>//<xsl:text/>
  75. </script>
  76. <!-- Fix for bug COGCQ00080804
  77. If a customer doesn't create a promptingStrings_<locale>.js file properly, we still want to have the defaults loaded.
  78. So, import the english one first
  79. -->
  80. <script type="text/javascript">
  81. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/res/promptingStrings_en.js</xsl:attribute>
  82. </script>
  83. <script type="text/javascript">
  84. <xsl:attribute name="src"><xsl:value-of select="$webRoot"/>/prompting/res/promptingStrings_<xsl:choose>
  85. <!-- 'zh' isn't a valid locale for promptingStrings, defaulting to 'zh-cn' -->
  86. <xsl:when test="/root/user/param[@name='productLocale']='zh'">zh-cn</xsl:when>
  87. <xsl:otherwise><xsl:value-of select="/root/user/param[@name='productLocale']"/></xsl:otherwise>
  88. </xsl:choose>.js</xsl:attribute>
  89. <xsl:text/>//<xsl:text/>
  90. </script>
  91. <script type="text/javascript">&lt;!--
  92. var goDialogManager = new CDialogManager();
  93. var cf = getConfigFrame();
  94. var previewString = "<xts:string id="STYLE_DIALOG_PREVIEW_STRING" encode="javascript"/>";
  95. var alignments = new Array();
  96. alignments[""] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_DEFAULT" encode="javascript"/>";
  97. alignments["TL"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_TOP_LEFT" encode="javascript"/>";
  98. alignments["TC"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_TOP_CENTER" encode="javascript"/>";
  99. alignments["TR"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_TOP_RIGHT" encode="javascript"/>";
  100. alignments["ML"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_MIDDLE_LEFT" encode="javascript"/>";
  101. alignments["MC"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_MIDDLE_CENTER" encode="javascript"/>";
  102. alignments["MR"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_MIDDLE_RIGHT" encode="javascript"/>";
  103. alignments["BL"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_BOTTOM_LEFT" encode="javascript"/>";
  104. alignments["BC"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_BOTTOM_CENTER" encode="javascript"/>";
  105. alignments["BR"] = "<xts:string id="STYLE_DIALOG_TEXT_ALIGN_BOTTOM_RIGHT" encode="javascript"/>";
  106. var sections = new Array("chkTitle"
  107. ,"chkColumnHeadings"
  108. ,"chkSectionSummaryTitles"
  109. ,"chkSubtitle"
  110. ,"chkData"
  111. ,"chkSectionSummaryValues"
  112. ,"chkFilters"
  113. ,"chkGroupSummaryTitles"
  114. ,"chkSummaryTitles"
  115. ,"chkSections"
  116. ,"chkGroupSummaryValues"
  117. ,"chkSummaryValues"
  118. //,"chkFooter"
  119. );
  120. var advClosedSize = 442;
  121. var advOpenSize = 557;
  122. function execute(evt)
  123. {
  124. if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
  125. {
  126. // send the style command
  127. if (cf)
  128. {
  129. var css = processCSSForSubmission(getCSSFromForm());
  130. <xsl:choose>
  131. <xsl:when test="/root/env/param[@name='modal']='true'">
  132. var fct = getConfigFrame().dlgGlobalGetParm("csCALLBACK");
  133. if (typeof fct == "function") {
  134. fct(css);
  135. }
  136. cf.hideCModal();
  137. </xsl:when>
  138. <xsl:otherwise>
  139. cf.hideDialogFrame();
  140. if (document.f.apply_styles_to[0].checked)
  141. {
  142. cf.sendStyleCommand('',false);
  143. cf.sendStyleCommand(css,false);
  144. }
  145. else
  146. {
  147. for (var i=0; i &lt; sections.length; i++)
  148. {
  149. if (document.f[sections[i]].checked)
  150. {
  151. selectionType = document.f[sections[i]].value;
  152. cf.sendStyleAllCommand('', selectionType, false);
  153. cf.sendStyleAllCommand(css, selectionType, false);
  154. }
  155. }
  156. }
  157. cf.sendBufferedCommands();
  158. </xsl:otherwise>
  159. </xsl:choose>
  160. }
  161. }
  162. }
  163. function cancelDialog(evt)
  164. {
  165. if(goDialogManager.isSpaceOrEnterKeyEvent(evt))
  166. {
  167. if (cf)
  168. {
  169. <xsl:choose>
  170. <xsl:when test="/root/env/param[@name='modal']='true'">
  171. cf.hideCModal();
  172. </xsl:when>
  173. <xsl:otherwise>
  174. cf.hideDialogFrame();
  175. </xsl:otherwise>
  176. </xsl:choose>
  177. }
  178. }
  179. }
  180. function showHideApplyStyles()
  181. {
  182. var applyStylesRow1 = document.getElementById("applyStylesRow1");
  183. var applyStylesRow2 = document.getElementById("applyStylesRow2");
  184. var applyStylesRow3 = document.getElementById("applyStylesRow3");
  185. var applyStylesImg = document.getElementById("applyStylesImg");
  186. if (applyStylesRow1.style.display == "none")
  187. {
  188. if (document.all)
  189. {
  190. applyStylesRow1.style.display = "inline";
  191. applyStylesRow2.style.display = "inline";
  192. applyStylesRow3.style.display = "inline";
  193. }
  194. else
  195. {
  196. applyStylesRow1.style.display = "table-row";
  197. applyStylesRow2.style.display = "table-row";
  198. applyStylesRow3.style.display = "table-row";
  199. }
  200. applyStylesImg.src = "<xsl:value-of select="xtsext:javascriptencode(string($qsdlgskin))"/>/prompting/images/prompt_option_collapse.gif";
  201. cf.showDialogFrame(advOpenSize);
  202. }
  203. else
  204. {
  205. applyStylesRow1.style.display = "none";
  206. applyStylesRow2.style.display = "none";
  207. applyStylesRow3.style.display = "none";
  208. applyStylesImg.src = "<xsl:value-of select="xtsext:javascriptencode(string($qsdlgskin))"/>/prompting/images/prompt_option_expand.gif";
  209. cf.showDialogFrame(advClosedSize);
  210. }
  211. }
  212. function init()
  213. {
  214. attachMouseEvents();
  215. if (cf)
  216. {
  217. cp.setColor(null);
  218. bcp.setColor(null);
  219. var fontFamily = document.f.fontFamily;
  220. for (var i = 0; i &lt; cf.supportedFonts.length; i++)
  221. {
  222. var fontValue = cf.supportedFonts[i];
  223. if (fontValue.indexOf(' ') >= 0) {
  224. fontValue = "'" + fontValue + "'";
  225. }
  226. fontFamily.options[fontFamily.options.length] = new Option(cf.supportedFonts[i], fontValue);
  227. }
  228. var fontSize = document.f.fontSize;
  229. for (var i = 0; i &lt; cf.supportedFontSizes.length; i++)
  230. {
  231. fontSize.options[fontSize.options.length] = new Option(cf.supportedFontSizes[i] + " " + cf.supportedFontSizesUnitLabel, cf.supportedFontSizes[i] + cf.supportedFontSizesUnit);
  232. }
  233. }
  234. <xsl:choose>
  235. <xsl:when test="/root/env/param[@name='modal']='true'">
  236. document.body.className = 'body_dialog_modal';
  237. sections = new Array();
  238. var currentStyleStr = (cf ? cf.dlgGlobalGetParm('xxStyle') : '');
  239. </xsl:when>
  240. <xsl:otherwise>
  241. if (cf) cf.showDialogFrame(advClosedSize);
  242. setApplyTo(false);
  243. var currentStyleArr = getStylesFromAllSelectedCols();
  244. currentStyleArr = currentStyleArr.concat(getStylesFromAllSelectedReportElements());
  245. var currentStyleStr = mergeStyles(currentStyleArr);
  246. </xsl:otherwise>
  247. </xsl:choose>
  248. setCSS(currentStyleStr);
  249. document.f.fontFamily.focus();
  250. }
  251. function setCSS(styleStr)
  252. {
  253. var elementsArray = new Array(document.getElementById('selectColorSwatchForeColor'), document.getElementById('selectColorSwatchBackColor'), alp, cp, bcp)
  254. var formArray = new Array(document.f.ForeColor, document.f.BackColor,
  255. document.f.chkUnderline, document.f.chkOverline, document.f.chkStrikeThrough,
  256. document.f.textAlignment,
  257. document.f.fontFamily, document.f.fontSize, document.f.fontWeight, document.f.fontStyle);
  258. initTextStyles(styleStr, elementsArray, formArray);
  259. updatePreview();
  260. }
  261. function setApplyTo(bEnabled)
  262. {
  263. for (var i=0; i &lt; sections.length; i++)
  264. {
  265. document.f[sections[i]].disabled = !bEnabled;
  266. }
  267. }
  268. //--&gt;</script>
  269. </dp:script>
  270. <form style="margin:0px" name="f" method="POST" onsubmit="return false;" onclick="hidePickers()">
  271. <xsl:if test="/root/env/param[@name='modal']='true'">
  272. <xsl:attribute name="class">body_dialog_modal</xsl:attribute>
  273. </xsl:if>
  274. <table border="0" cellspacing="0" cellpadding="0" height="100%" width="100%">
  275. <xsl:if test="not(/root/env/param[@name='modal']='true')">
  276. <tr>
  277. <td width="100%" height="0%">
  278. <!-- dialog header -->
  279. <dp:header help="false">
  280. <!-- header titles -->
  281. <dp:title>
  282. <xts:string id="STYLE_DIALOG_TEXT_TITLE"/>
  283. </dp:title>
  284. <!-- close link for the header -->
  285. <dp:close>
  286. <a href="javascript:getConfigFrame().hideDialogFrame()">
  287. <dp:closeMarker/>
  288. </a>
  289. </dp:close>
  290. <!-- description (hint text) -->
  291. <dp:description>
  292. <xts:string id="STYLE_DIALOG_TEXT_TITLE_DESCRIPTION"/>
  293. </dp:description>
  294. </dp:header>
  295. </td>
  296. </tr>
  297. </xsl:if>
  298. <tr>
  299. <td width="100%" height="100%" valign="top">
  300. <!-- layout -->
  301. <lyt:layout style="1" border="no">
  302. <lyt:section>
  303. <table width="100%" border="0">
  304. <tr>
  305. <td>
  306. <dp:input>
  307. <dp:section1>
  308. <xts:string id="STYLE_DIALOG_TEXT_FONT_FONT"/>
  309. </dp:section1>
  310. <dp:section2>
  311. <select name="fontFamily" onchange="updatePreview()">
  312. <option value=""><xts:string id="STYLE_DIALOG_SELECT_FONT_FAMILY_DEFAULT"/></option>
  313. </select>
  314. </dp:section2>
  315. </dp:input>
  316. </td>
  317. <td>
  318. <dp:input>
  319. <dp:section1>
  320. <xts:string id="STYLE_DIALOG_TEXT_FONT_SIZE"/>
  321. </dp:section1>
  322. <dp:section2>
  323. <select name="fontSize" onchange="updatePreview()">
  324. <option value=""><xts:string id="STYLE_DIALOG_SELECT_FONT_SIZE_DEFAULT"/></option>
  325. </select>
  326. </dp:section2>
  327. </dp:input>
  328. </td>
  329. <td>
  330. <dp:input>
  331. <dp:section1>
  332. <xts:string id="STYLE_DIALOG_TEXT_FONT_WEIGHT"/>
  333. </dp:section1>
  334. <dp:section2>
  335. <select name="fontWeight" onchange="updatePreview()">
  336. <option value=""><xts:string id="STYLE_DIALOG_SELECT_FONT_WEIGHT_DEFAULT"/></option>
  337. <option value="normal"><xts:string id="STYLE_DIALOG_SELECT_FONT_WEIGHT_NORMAL"/></option>
  338. <option value="bold"><xts:string id="STYLE_DIALOG_SELECT_FONT_WEIGHT_BOLD"/></option>
  339. </select>
  340. </dp:section2>
  341. </dp:input>
  342. </td>
  343. </tr>
  344. <tr>
  345. <td>
  346. <dp:input>
  347. <dp:section1>
  348. <xts:string id="STYLE_DIALOG_TEXT_FONT_COLOR"/>
  349. </dp:section1>
  350. <dp:section2>
  351. <qsdlg:colorSwatch id="ForeColor" jsObjId="cp" fct="updateColor" type="TYPE_COLOR"/>
  352. </dp:section2>
  353. </dp:input>
  354. </td>
  355. <td valign="top" rowspan="2">
  356. <dp:input>
  357. <dp:section1>
  358. <xts:string id="STYLE_DIALOG_TEXT_FONT_EFFECTS"/>
  359. </dp:section1>
  360. <dp:section2>
  361. <table border="0" cellspacing="0" cellpadding="0">
  362. <tr>
  363. <td class="formText">
  364. <input type="checkbox" name="chkUnderline" value="text-decoration:underline" onclick="updatePreview()">
  365. <xts:string id="STYLE_DIALOG_TEXT_FONT_UNDERLINE"/>
  366. </input>
  367. </td>
  368. </tr>
  369. <tr>
  370. <td class="formText">
  371. <input type="checkbox" name="chkOverline" value="text" onclick="updatePreview()">
  372. <xts:string id="STYLE_DIALOG_TEXT_FONT_OVERLINE"/>
  373. </input>
  374. </td>
  375. </tr>
  376. <tr>
  377. <td class="formText">
  378. <input type="checkbox" name="chkStrikeThrough" value="text" onclick="updatePreview()">
  379. <xts:string id="STYLE_DIALOG_TEXT_FONT_STRIKETHROUGH"/>
  380. </input>
  381. </td>
  382. </tr>
  383. </table>
  384. </dp:section2>
  385. </dp:input>
  386. </td>
  387. <td>
  388. <dp:input>
  389. <dp:section1>
  390. <xts:string id="STYLE_DIALOG_TEXT_FONT_STYLE"/>
  391. </dp:section1>
  392. <dp:section2>
  393. <select name="fontStyle" onchange="updatePreview()">
  394. <option value=""><xts:string id="STYLE_DIALOG_SELECT_FONT_STYLE_DEFAULT"/></option>
  395. <option value="normal"><xts:string id="STYLE_DIALOG_SELECT_FONT_STYLE_NORMAL"/></option>
  396. <option value="italic"><xts:string id="STYLE_DIALOG_SELECT_FONT_STYLE_ITALIC"/></option>
  397. </select>
  398. </dp:section2>
  399. </dp:input>
  400. </td>
  401. </tr>
  402. <tr>
  403. <td>
  404. <dp:input>
  405. <dp:section1>
  406. <xts:string id="STYLE_DIALOG_TEXT_FONT_BACKGROUND_COLOR"/>
  407. </dp:section1>
  408. <dp:section2>
  409. <qsdlg:colorSwatch id="BackColor" jsObjId="bcp" fct="updateBackgroundColor" type="TYPE_BACKGROUND_COLOR"/>
  410. </dp:section2>
  411. </dp:input>
  412. </td>
  413. <td valign="top">
  414. <dp:input>
  415. <dp:section1>
  416. <xts:string id="STYLE_DIALOG_TEXT_FONT_TEXT_ALIGNMENT"/>
  417. </dp:section1>
  418. <dp:section2>
  419. <table border="0" cellspacing="0" cellpadding="0">
  420. <tr>
  421. <td class="formText">
  422. <input type="hidden" name="textAlignment" value=""/>
  423. <div id="selectAlignment"/>
  424. </td>
  425. <td>
  426. <div style="padding-left:5px;" id="selectAlignmentALP"/>
  427. <script>
  428. var alp = new CAlignmentPicker("ALP", "alp", "updateAlignment", null, false);
  429. </script>
  430. </td>
  431. </tr>
  432. </table>
  433. </dp:section2>
  434. </dp:input>
  435. </td>
  436. </tr>
  437. </table>
  438. <table style="width:85%;height:118px;" border="0">
  439. <tr>
  440. <td class="formLabel">
  441. <xts:string id="STYLE_DIALOG_PREVIEW"/>
  442. </td>
  443. </tr>
  444. <tr>
  445. <td id="preview" class="formText" style="padding:9px;border:1px solid #999999;"/>
  446. </tr>
  447. <tr>
  448. <td class="formText" style="text-align:right;width:100%" nowrap="nowrap">
  449. <a href="javascript:void(0);" onmousedown="setCSS('');" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;"><xts:string id="STYLE_BORDER_RESET"/></a>
  450. </td>
  451. </tr>
  452. </table>
  453. <xsl:if test="not(/root/env/param[@name='modal']='true')">
  454. <table border="0" cellspacing="1" cellpadding="1" width="85%">
  455. <tr>
  456. <td class="formText">
  457. <a style="padding-right:5px;" href="javascript:void(0);" onmousedown="showHideApplyStyles()" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;"><xts:string id="STYLE_DIALOG_ADVANCED_OPTIONS"/></a>
  458. <a href="javascript:void(0);" onmousedown="showHideApplyStyles()" onmouseover="window.status='';return true;" onmouseout="window.status='';return true;">
  459. <img id="applyStylesImg" border="0">
  460. <xsl:attribute name="src"><xsl:value-of select="$qsdlgskin"/>/prompting/images/prompt_option_expand.gif</xsl:attribute>
  461. </img>
  462. </a>
  463. </td>
  464. </tr>
  465. <tr id="applyStylesRow1" style="display:none;">
  466. <td class="formText">
  467. <input type="radio" name="apply_styles_to" value="current_selection" checked="true" onclick="setApplyTo(false); return true;">
  468. <xts:string id="STYLE_DIALOG_TEXT_APPLY_CURRENT"/>
  469. </input>
  470. </td>
  471. </tr>
  472. <tr id="applyStylesRow2" style="display:none;">
  473. <td class="formText">
  474. <input type="radio" name="apply_styles_to" value="specified_selection" onclick="setApplyTo(true); return true;">
  475. <xts:string id="STYLE_DIALOG_TEXT_APPLY_CUSTOM"/>
  476. </input>
  477. </td>
  478. </tr>
  479. <tr id="applyStylesRow3" style="display:none;">
  480. <td class="formText" style="padding-left:32px;">
  481. <table border="0" cellspacing="1" cellpadding="1" width="100%">
  482. <tr>
  483. <td class="formText" style="width:33%">
  484. <table border="0" cellspacing="0" cellpadding="0">
  485. <tr>
  486. <td class="formText"><input type="checkbox" name="chkTitle" value="TitleStyle"/></td>
  487. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_TITLE"/></td>
  488. </tr>
  489. </table>
  490. </td>
  491. <td class="formText" style="width:34%">
  492. <table border="0" cellspacing="0" cellpadding="0">
  493. <tr>
  494. <td class="formText"><input type="checkbox" name="chkColumnHeadings" value="ColumnTitleStyle"/></td>
  495. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_COLUMN_TITLES"/></td>
  496. </tr>
  497. </table>
  498. </td>
  499. <td class="formText" style="width:33%">
  500. <table border="0" cellspacing="0" cellpadding="0">
  501. <tr>
  502. <td class="formText"><input type="checkbox" name="chkSectionSummaryTitles" value="ColumnSectionFooterLabelStyle"/></td>
  503. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_SECTION_SUMMARY_TITLES"/></td>
  504. </tr>
  505. </table>
  506. </td>
  507. </tr>
  508. <tr>
  509. <td class="formText" style="width:33%">
  510. <table border="0" cellspacing="0" cellpadding="0">
  511. <tr>
  512. <td class="formText"><input type="checkbox" name="chkSubtitle" value="SubtitleStyle"/></td>
  513. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_SUBTITLE"/></td>
  514. </tr>
  515. </table>
  516. </td>
  517. <td class="formText" style="width:34%">
  518. <table border="0" cellspacing="0" cellpadding="0">
  519. <tr>
  520. <td class="formText"><input type="checkbox" name="chkData" value="ColumnStyle"/></td>
  521. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_DATA"/></td>
  522. </tr>
  523. </table>
  524. </td>
  525. <td class="formText" style="width:33%">
  526. <table border="0" cellspacing="0" cellpadding="0">
  527. <tr>
  528. <td class="formText"><input type="checkbox" name="chkSectionSummaryValues" value="ColumnSectionFooterValueStyle"/></td>
  529. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_SECTION_SUMMARY_VALUES"/></td>
  530. </tr>
  531. </table>
  532. </td>
  533. </tr>
  534. <tr>
  535. <td class="formText" style="width:33%">
  536. <table border="0" cellspacing="0" cellpadding="0">
  537. <tr>
  538. <td class="formText"><input type="checkbox" name="chkFilters" value="FilterStyle"/></td>
  539. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_FILTERS"/></td>
  540. </tr>
  541. </table>
  542. </td>
  543. <td class="formText" style="width:34%">
  544. <table border="0" cellspacing="0" cellpadding="0">
  545. <tr>
  546. <td class="formText"><input type="checkbox" name="chkGroupSummaryTitles" value="ColumnGroupFooterLabelStyle"/></td>
  547. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_GROUP_SUMMARY_TITLES"/></td>
  548. </tr>
  549. </table>
  550. </td>
  551. <td class="formText" style="width:33%">
  552. <table border="0" cellspacing="0" cellpadding="0">
  553. <tr>
  554. <td class="formText"><input type="checkbox" name="chkSummaryTitles" value="ColumnFooterLabelStyle"/></td>
  555. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_SUMMARY_TITLES"/></td>
  556. </tr>
  557. </table>
  558. </td>
  559. </tr>
  560. <tr>
  561. <td class="formText" style="width:33%">
  562. <table border="0" cellspacing="0" cellpadding="0">
  563. <tr>
  564. <td class="formText"><input type="checkbox" name="chkSections" value="SectionStyle"/></td>
  565. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_SECTIONS"/></td>
  566. </tr>
  567. </table>
  568. </td>
  569. <td class="formText" style="width:34%">
  570. <table border="0" cellspacing="0" cellpadding="0">
  571. <tr>
  572. <td class="formText"><input type="checkbox" name="chkGroupSummaryValues" value="ColumnGroupFooterValueStyle"/></td>
  573. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_GROUP_SUMMARY_VALUES"/></td>
  574. </tr>
  575. </table>
  576. </td>
  577. <td class="formText" style="width:33%">
  578. <table border="0" cellspacing="0" cellpadding="0">
  579. <tr>
  580. <td class="formText"><input type="checkbox" name="chkSummaryValues" value="ColumnFooterValueStyle"/></td>
  581. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_SUMMARY_VALUES"/></td>
  582. </tr>
  583. </table>
  584. </td>
  585. </tr>
  586. <tr>
  587. <td colspan="2"/>
  588. <td class="formText" style="width:33%">
  589. <!--<table border="0" cellspacing="0" cellpadding="0">
  590. <tr>
  591. <td class="formText"><input type="checkbox" name="chkFooter" value="FooterStyle">/></td>
  592. </tr>
  593. <tr>
  594. <td class="formText"><xts:string id="STYLE_DIALOG_TEXT_APPLY_ALL_FOOTER"/></td>
  595. </tr>
  596. </table>-->
  597. </td>
  598. </tr>
  599. </table>
  600. </td>
  601. </tr>
  602. </table>
  603. </xsl:if>
  604. </lyt:section>
  605. </lyt:layout>
  606. </td>
  607. </tr>
  608. <xsl:if test="not(/root/env/param[@name='modal']='true')">
  609. <tr>
  610. <td width="100%" height="0%">
  611. <dp:footer>
  612. <df:button df:id="IDS_OK" df:style="href" onkeypress="javascript:execute(event)" df:href="javascript:execute(null)"/>
  613. <df:button df:id="IDS_CANCEL" df:style="href" onkeypress="javascript:cancelDialog(event)" df:href="javascript:cancelDialog(null)"/>
  614. </dp:footer>
  615. </td>
  616. </tr>
  617. </xsl:if>
  618. </table>
  619. </form>
  620. <!-- <dbg:dumpxml select="/"/> -->
  621. </dp:page>
  622. </xsl:template>
  623. </xsl:stylesheet>
  624. </xts:block>
  625. </xts:morphlet>