Ви не можете вибрати більше 25 тем Теми мають розпочинатися з літери або цифри, можуть містити дефіси (-) і не повинні перевищувати 35 символів.

148 рядки
12KB

  1. <customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui" onLoad="OnWPSWorkTabLoad">
  2. <ribbon startFromScratch="false">
  3. <tabs>
  4. <!-- OA菜单开启显隐处理, insertBeforeMso表示要在WPS自身某个tab之前显示,insertAfterMso表示在某个WPS自身tab之后显示-->
  5. <!--在如下的tab定义中,id是WPSWorkExtTab,显示标签是OA辅助,有控制显隐的事件设置getVisible,设置在「开始」(TabHome)页签之前-->
  6. <tab id="WPSWorkExtTab" label="OA辅助" getVisible="OnGetVisible" insertBeforeMso="TabHome">
  7. <group id="grpWPSClound" label="WPS云文档相关功能" getVisible="OnGetVisible">
  8. <box id="boxBoxCloud1" boxStyle="horizontal" visible="true">
  9. <button id="btnOpenWPSYUN" label="WPS云文档" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  10. </box>
  11. <box id="boxBoxCloud1" boxStyle="horizontal" visible="true">
  12. <button id="btnOpenLocalWPSYUN" label="导入文件" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  13. </box>
  14. <separator id="sepWPSClound"/>
  15. </group>
  16. <group id="grpWPSWork" label="OA助手文档操作功能组" getVisible="OnGetVisible">
  17. <button id="btnSaveToServer" label="保存到OAdccc" onAction="OnAction" getEnabled="OnGetEnabled" getImage="GetImage" size="large"/>
  18. <button id="btnSaveAsFile" label="保存本地" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large" />
  19. <box id="boxWPSWorkEx" boxStyle="vertical" visible="true">
  20. <button id="btnChangeToPDF" label="转PDF上传" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  21. <button id="btnChangeToUOT" label="转UOT上传" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  22. <button id="btnChangeToOFD" label="转OFD上传" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  23. </box>
  24. <separator id="sepWPSWork" getVisible="OnGetVisible" />
  25. </group>
  26. <group id="grpOAExtend" label="扩展功能组" getVisible="OnGetVisible">
  27. <button id="btnInsertRedHeader" label="套红头" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  28. <button id="btnInsertSeal" label="印章" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large" />
  29. <button id="btnUploadOABackup" label="备份正文" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  30. <button id="btnClearRevDoc" label="清稿" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large" />
  31. <button id="btnInsertBookmark" label="导入书签" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large" />
  32. <button id="btnImportTemplate" label="导入模板" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  33. <separator id="sepOAExtend" getVisible="OnGetVisible" />
  34. </group>
  35. <group id="grpRevision" label="OA修订功能按钮组" getVisible="OnGetVisible">
  36. <box id="boxRevsion1" boxStyle="horizontal" visible="true">
  37. <button id="btnOpenRevision" label="打开修订" onAction="OnAction" getLabel="OnGetLabel" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large" />
  38. <button id="btnCloseRevision" label="关闭修订" onAction="OnAction" getLabel="OnGetLabel" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large" />
  39. </box>
  40. <box id="boxRevsion2" boxStyle="horizontal" visible="true">
  41. <button id="btnAcceptAllRevisions" label="接收修订" getLabel="OnGetLabel" getEnabled="OnGetEnabled" getVisible="OnGetVisible" onAction="OnAction" getImage="GetImage" size="large" />
  42. <button id="btnRejectAllRevisions" label="拒绝修订" getLabel="OnGetLabel" getEnabled="OnGetEnabled" getVisible="OnGetVisible" onAction="OnAction" getImage="GetImage" size="large" />
  43. </box>
  44. <separator id="sepWPSRevision" getVisible="OnGetVisible" />
  45. </group>
  46. <group id="grpFreqUsed" label="常用功能组" getVisible="OnGetVisible">
  47. <box id="boxFreqUsed1" boxStyle="horizontal" visible="true">
  48. <button id="btnInsertPic" label="插入图片" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  49. <button id="btnInsertDate" label="插入日期" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  50. <button id="btnPageSetup" label="页面设置" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  51. </box>
  52. <box id="boxFreqUsed2" boxStyle="horizontal" visible="true">
  53. <button id="btnInsertWater" label="插入水印" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  54. <button id="btnOpenScan" label="打开扫描仪" getLabel="OnGetLabel" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  55. <button id="btnQRCode" label="二维码" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  56. <button id="btnPrintDOC" label="打印设置" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  57. </box>
  58. <separator id="sepWPSFreqUsed" getVisible="OnGetVisible" />
  59. </group>
  60. <group id="grpDocSource" label="文件来源" getVisible="OnGetVisible">
  61. <box id="boxFileSource" boxStyle="horizontal" visible="true">
  62. <labelControl id="lblDocSourceTitle" label="文件来源:" />
  63. <button id="lblDocSourceValue" label="ddddd" onAction="OnAction" getLabel="OnGetLabel" />
  64. </box>
  65. <labelControl id="lblDocLandMode" label="" getLabel="OnGetLabel" getVisible="OnGetVisible" />
  66. <box id="boxUserName" boxStyle="horizontal" visible="true">
  67. <labelControl id="lblUserName" label="用户" getLabel="OnGetLabel" />
  68. <button id="btnUserName" label="用户" onAction="OnAction" getLabel="OnGetLabel" />
  69. </box>
  70. </group>
  71. <group id="grpNotice" label="通知消息" getVisible="OnGetVisible">
  72. <box id="boxNotice" boxStyle="vertical" visible="true">
  73. <button id="btnSendMessage1" label="执行业务系统函数handleOaFunc1" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  74. <button id="btnSendMessage2" label="执行业务系统函数handleOaFunc2" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  75. </box>
  76. <button id="btnAddWebShape" label="插入活动对象" onAction="OnAction" getEnabled="OnGetEnabled" getVisible="OnGetVisible" getImage="GetImage" size="large"/>
  77. </group>
  78. </tab>
  79. <!-- 在这里可以定义WPS自身的tab页签的一些行为,页签的getEnabled和getVisible等效,无onAction事件-->
  80. <!-- 全集可以去open.wps.cn/docs/office的idMso列表查询-->
  81. <!--WPS自身功能常见tab的idMso如下-->
  82. <!--开始-->
  83. <!-- <tab idMso="TabHome" getEnabled="OnGetEnabled"/> -->
  84. <!--插入-->
  85. <!-- <tab idMso="TabInsert" getEnabled="OnGetEnabled"/> -->
  86. <!--页面布局-->
  87. <!-- <tab idMso="TabPageLayoutWord" getEnabled="OnGetEnabled"/> -->
  88. <!--引用-->
  89. <!-- <tab idMso="TabReferences" getEnabled="OnGetEnabled"/> -->
  90. <!--审阅-->
  91. <!-- <tab idMso="TabReviewWord" getEnabled="OnGetEnabled"/> -->
  92. <!--视图-->
  93. <!-- <tab idMso="TabView" getEnabled="OnGetEnabled"/> -->
  94. <!--章节 bug-->
  95. <!-- <tab idMso="TabSection" getEnabled="OnGetEnabled"/> -->
  96. <!--安全 bug-->
  97. <!-- <tab idMso="TabSecurity" getEnabled="OnGetEnabled"/> -->
  98. <!--开发工具-->
  99. <!-- <tab idMso="TabDeveloper" getEnabled="OnGetEnabled"/> -->
  100. <!--云服务 bug-->
  101. <!-- <tab idMso="TabWorkSpace" getEnabled="OnGetEnabled"/> -->
  102. </tabs>
  103. </ribbon>
  104. <commands>
  105. <!-- idMso支持getEnabled和onAction,不支持visible属性和事件-->
  106. <!-- 文档复制和剪切控制-->
  107. <command idMso="Copy" getEnabled="OnGetEnabled" />
  108. <command idMso="Cut" getEnabled="OnGetEnabled" />
  109. <!-- 文档保存和另存控制-->
  110. <command idMso="FileSave" getEnabled="OnGetEnabled" onAction="OnAction"/>
  111. <command idMso="SaveAll" getEnabled="OnGetEnabled" />
  112. <command idMso="FileSaveAsMenu" getEnabled="OnGetEnabled" onAction="OnAction"/>
  113. <command idMso="FileSaveAs" getEnabled="OnGetEnabled" onAction="OnAction"/>
  114. <command idMso="FileSaveAsPicture" getEnabled="OnGetEnabled" />
  115. <command idMso="SaveAsPicture" getEnabled="OnGetEnabled" />
  116. <command idMso="FileMenuSendMail" getEnabled="OnGetEnabled" />
  117. <!-- 输出PDF控制-->
  118. <command idMso="SaveAsPDF" getEnabled="OnGetEnabled"/>
  119. <command idMso="FileSaveAsPDF" getEnabled="OnGetEnabled"/>
  120. <command idMso="ExportToPDF" getEnabled="OnGetEnabled"/>
  121. <command idMso="FileSaveAsPdfOrXps" getEnabled="OnGetEnabled"/>
  122. <!-- 输出OFD控制-->
  123. <command idMso="SaveAsOfd" getEnabled="OnGetEnabled"/>
  124. <command idMso="FileSaveAsOfd" getEnabled="OnGetEnabled"/>
  125. <!--文档打印控制-->
  126. <command idMso="FilePrint" getEnabled="OnGetEnabled"/>
  127. <command idMso="FilePrintMenu" getEnabled="OnGetEnabled"/>
  128. <command idMso="FilePrintPreview" getEnabled="OnGetEnabled"/>
  129. <!--文档修订控制-->
  130. <command idMso="ReviewTrackChangesMenu" getEnabled="OnGetEnabled"/>
  131. <command idMso="ReviewRejectChangeMenu" getEnabled="OnGetEnabled"/>
  132. <command idMso="ReviewAcceptChangeMenu" getEnabled="OnGetEnabled"/>
  133. <!--文档新建控制-->
  134. <command idMso="FileNewMenu" getEnabled="OnGetEnabled" onAction="OnAction"/>
  135. <command idMso="FileNew" getEnabled="OnGetEnabled" onAction="OnAction"/>
  136. <command idMso="WindowNew" getEnabled="OnGetEnabled" onAction="OnAction"/>
  137. <command idMso="FileNewBlankDocument" getEnabled="OnGetEnabled" onAction="OnAction"/>
  138. </commands>
  139. <contextMenus>
  140. <contextMenu idMso="ContextMenuText">
  141. <menu id="Menu_ContextMenuText" label="测试右键" visible="true">
  142. <button id="ShowAlert_ContextMenuText" label="弹出一个警告框" onAction="OnAction" getImage="GetImage" visible="true"/>
  143. </menu>
  144. </contextMenu>
  145. </contextMenus>
  146. </customUI>