You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

115 lines
3.2KB

  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. AllowOADocReOpen: "AllowOADocReOpen",
  57. AutoSaveToServerTime: "AutoSaveToServerTime",
  58. bkInsertFile: "bkInsertFile",
  59. buttonGroups: "buttonGroups",
  60. CanSaveAs: "CanSaveAs",
  61. copyUrl: "copyUrl",
  62. DefaultUploadFieldName: "DefaultUploadFieldName",
  63. disableBtns: "disableBtns",
  64. insertFileUrl: "insertFileUrl",
  65. IsInCurrOADocOpen: "IsInCurrOADocOpen",
  66. IsInCurrOADocSaveAs: "IsInCurrOADocSaveAs",
  67. isOA: "isOA",
  68. notifyUrl: "notifyUrl",
  69. OADocCanSaveAs: "OADocCanSaveAs",
  70. OADocLandMode: "OADocLandMode",
  71. OADocUserSave: "OADocUserSave",
  72. openType: "openType",
  73. picPath: "picPath",
  74. picHeight: "picHeight",
  75. picWidth: "picWidth",
  76. redFileElement: "redFileElement",
  77. revisionCtrl: "revisionCtrl",
  78. ShowOATabDocActive: "ShowOATabDocActive",
  79. SourcePath: "SourcePath",
  80. /**
  81. * 保存文档到业务系统服务端时,另存一份其他格式到服务端,其他格式支持:.pdf .ofd .uot .uof
  82. */
  83. suffix: "suffix",
  84. templateDataUrl: "templateDataUrl",
  85. TempTimerID: "TempTimerID",
  86. /**
  87. * 文档上传到业务系统的保存地址:服务端接收文件流的地址
  88. */
  89. uploadPath: "uploadPath",
  90. /**
  91. * 文档上传到服务端后的名称
  92. */
  93. uploadFieldName: "uploadFieldName",
  94. /**
  95. * 文档上传时的名称,默认取当前活动文档的名称
  96. */
  97. uploadFileName: "uploadFileName",
  98. uploadAppendPath: "uploadAppendPath",
  99. /**
  100. * 标志位: 1 在保存到业务系统时再保存一份suffix格式的文档, 需要和suffix参数配合使用
  101. */
  102. uploadWithAppendPath: "uploadWithAppendPath",
  103. userName: "userName",
  104. WPSInitUserName: "WPSInitUserName",
  105. taskpaneid: "taskpaneid",
  106. /**
  107. * 是否弹出上传前确认和成功后的确认信息:true|弹出,false|不弹出
  108. */
  109. Save2OAShowConfirm: "Save2OAShowConfirm",
  110. /**
  111. * 修订状态标志位
  112. */
  113. RevisionEnableFlag: "RevisionEnableFlag"
  114. }