enum.js 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179
  1. /**
  2. * WPS常用的API枚举值,具体参与API文档
  3. */
  4. var WPS_Enum = {
  5. wdDoNotSaveChanges: 0,
  6. wdFormatPDF: 17,
  7. wdFormatOpenDocumentText: 23,
  8. wdFieldFormTextInput: 70,
  9. wdAlertsNone: 0,
  10. wdDialogFilePageSetup: 178,
  11. wdDialogFilePrint: 88,
  12. wdRelativeHorizontalPositionPage: 1,
  13. wdGoToPage: 1,
  14. wdPropertyPages: 14,
  15. wdRDIComments: 1,
  16. wdDialogInsertDateTime: 165,
  17. msoCTPDockPositionLeft: 0,
  18. msoCTPDockPositionRight: 2,
  19. /**
  20. * 将形状嵌入到文字中。
  21. */
  22. wdWrapInline: 7,
  23. /**
  24. * 将形状放在文字前面。 请参阅 wdWrapFront。
  25. */
  26. wdWrapNone: 3,
  27. /**
  28. * 使文字环绕形状。 行在形状的另一侧延续。
  29. */
  30. wdWrapSquare: 0,
  31. /**
  32. * 使文字环绕形状。
  33. */
  34. wdWrapThrough: 2,
  35. /**
  36. * 使文字紧密地环绕形状。
  37. */
  38. wdWrapTight: 1,
  39. /**
  40. * 将文字放在形状的上方和下方。
  41. */
  42. wdWrapTopBottom: 4,
  43. /**
  44. * 将形状放在文字后面。
  45. */
  46. wdWrapBehind: 5,
  47. /**
  48. * 将形状放在文字前面。
  49. */
  50. wdWrapFront: 6,
  51. }
  52. /**
  53. * WPS加载项自定义的枚举值
  54. */
  55. var constStrEnum = {
  56. docPassWord: '6TFC$RGB',
  57. AllowOADocReOpen: 'AllowOADocReOpen',
  58. AutoSaveToServerTime: 'AutoSaveToServerTime',
  59. bkInsertFile: 'bkInsertFile',
  60. buttonGroups: 'buttonGroups',
  61. CanSaveAs: 'CanSaveAs',
  62. copyUrl: 'copyUrl',
  63. DefaultUploadFieldName: 'DefaultUploadFieldName',
  64. disableBtns: 'disableBtns',
  65. insertFileUrl: 'insertFileUrl',
  66. IsInCurrOADocOpen: 'IsInCurrOADocOpen',
  67. IsInCurrOADocSaveAs: 'IsInCurrOADocSaveAs',
  68. isOA: 'isOA',
  69. notifyUrl: 'notifyUrl',
  70. OADocCanSaveAs: 'OADocCanSaveAs',
  71. OADocLandMode: 'OADocLandMode',
  72. OADocUserSave: 'OADocUserSave',
  73. openType: 'openType',
  74. picPath: 'picPath',
  75. picHeight: 'picHeight',
  76. picWidth: 'picWidth',
  77. redFileElement: 'redFileElement',
  78. revisionCtrl: 'revisionCtrl',
  79. ShowOATabDocActive: 'ShowOATabDocActive',
  80. SourcePath: 'SourcePath',
  81. /**
  82. * 保存文档到业务系统服务端时,另存一份其他格式到服务端,其他格式支持:.pdf .ofd .uot .uof
  83. */
  84. suffix: 'suffix',
  85. templateDataUrl: 'templateDataUrl',
  86. TempTimerID: 'TempTimerID',
  87. /**
  88. * 文档上传到业务系统的保存地址:服务端接收文件流的地址
  89. */
  90. uploadPath: 'uploadPath',
  91. /**
  92. * 文档上传到服务端后的名称
  93. */
  94. uploadFieldName: 'uploadFieldName',
  95. /**
  96. * 文档上传时的名称,默认取当前活动文档的名称
  97. */
  98. uploadFileName: 'uploadFileName',
  99. uploadAppendPath: 'uploadAppendPath',
  100. /**
  101. * 标志位: 1 在保存到业务系统时再保存一份suffix格式的文档, 需要和suffix参数配合使用
  102. */
  103. uploadWithAppendPath: 'uploadWithAppendPath',
  104. userName: 'userName',
  105. WPSInitUserName: 'WPSInitUserName',
  106. taskpaneid: 'taskpaneid',
  107. /**
  108. * 是否弹出上传前确认和成功后的确认信息:true|弹出,false|不弹出
  109. */
  110. Save2OAShowConfirm: 'Save2OAShowConfirm',
  111. /**
  112. * 修订状态标志位
  113. */
  114. RevisionEnableFlag: 'RevisionEnableFlag',
  115. /**
  116. * 本地日志记录模式标识
  117. */
  118. SaveLocalDebugInfo: 'SaveLocalDebugInfo',
  119. /**
  120. * 本地日志
  121. */
  122. DebugLocalStorageFlag: 'DebugLocalStorageFlag',
  123. /**
  124. * 水印文字
  125. */
  126. WaterMark: 'WaterMark',
  127. NeedSaveMark: 'NeedSaveMark',
  128. /**
  129. * 最初文档状态码
  130. */
  131. OriginalRsid: 'OriginalRsid',
  132. /**
  133. * 是否静默启动
  134. */
  135. IsSilentMode: 'IsSilentMode',
  136. /**
  137. * 当前保存点
  138. */
  139. CurrentRsid: 'CurrentRsid',
  140. /**
  141. * 前置/后置loading ID
  142. */
  143. BeforeAfterLoadingID: 'BeforeAfterLoadingID',
  144. /**
  145. * 目录分隔符
  146. */
  147. DirSeparator: '\\',
  148. }
  149. /**
  150. * 枚举 WdSaveOptions
  151. */
  152. const WdSaveOptions = {
  153. wdDoNotSaveChange: 0,
  154. wdPromptToSaveChanges: -2,
  155. wdSaveChanges: -1,
  156. }
  157. /**
  158. * 枚举 WdProtectionType
  159. */
  160. const WdProtectionType = {
  161. wdAllowOnlyComments: 1,
  162. wdAllowOnlyFormFields: 2,
  163. wdAllowOnlyReading: 3,
  164. wdAllowOnlyRevisions: 0,
  165. wdNoProtection: -1,
  166. }