aspose_words_cloud 20.3.0 → 20.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (378) hide show
  1. checksums.yaml +4 -4
  2. data/lib/aspose_words_cloud.rb +259 -234
  3. data/lib/aspose_words_cloud/api/words_api.rb +16553 -16721
  4. data/lib/aspose_words_cloud/api_client.rb +411 -405
  5. data/lib/aspose_words_cloud/api_error.rb +58 -58
  6. data/lib/aspose_words_cloud/configuration.rb +157 -173
  7. data/lib/aspose_words_cloud/models/available_fonts_response.rb +243 -243
  8. data/lib/aspose_words_cloud/models/bmp_save_options_data.rb +475 -477
  9. data/lib/aspose_words_cloud/models/bookmark.rb +226 -227
  10. data/lib/aspose_words_cloud/models/bookmark_data.rb +217 -217
  11. data/lib/aspose_words_cloud/models/bookmark_response.rb +216 -217
  12. data/lib/aspose_words_cloud/models/bookmarks.rb +218 -219
  13. data/lib/aspose_words_cloud/models/bookmarks_outline_level_data.rb +217 -222
  14. data/lib/aspose_words_cloud/models/bookmarks_response.rb +216 -217
  15. data/lib/aspose_words_cloud/models/border.rb +318 -320
  16. data/lib/aspose_words_cloud/models/border_response.rb +216 -217
  17. data/lib/aspose_words_cloud/models/borders_collection.rb +218 -219
  18. data/lib/aspose_words_cloud/models/borders_response.rb +216 -217
  19. data/lib/aspose_words_cloud/models/classification_response.rb +239 -239
  20. data/lib/aspose_words_cloud/models/classification_result.rb +217 -222
  21. data/lib/aspose_words_cloud/models/comment.rb +273 -277
  22. data/lib/aspose_words_cloud/models/comment_base.rb +255 -0
  23. data/lib/aspose_words_cloud/models/comment_insert.rb +255 -0
  24. data/lib/aspose_words_cloud/models/comment_link.rb +206 -207
  25. data/lib/aspose_words_cloud/models/comment_response.rb +216 -217
  26. data/lib/aspose_words_cloud/models/comment_update.rb +255 -0
  27. data/lib/aspose_words_cloud/models/comments_collection.rb +218 -219
  28. data/lib/aspose_words_cloud/models/comments_response.rb +216 -217
  29. data/lib/aspose_words_cloud/models/compare_data.rb +236 -227
  30. data/lib/aspose_words_cloud/models/compare_options.rb +324 -0
  31. data/lib/aspose_words_cloud/models/doc_save_options_data.rb +317 -317
  32. data/lib/aspose_words_cloud/models/document.rb +295 -311
  33. data/lib/aspose_words_cloud/models/document_entry.rb +217 -217
  34. data/lib/aspose_words_cloud/models/document_entry_list.rb +209 -209
  35. data/lib/aspose_words_cloud/models/document_position.rb +216 -217
  36. data/lib/aspose_words_cloud/models/document_properties.rb +218 -219
  37. data/lib/aspose_words_cloud/models/document_properties_response.rb +216 -217
  38. data/lib/aspose_words_cloud/models/document_property.rb +236 -237
  39. data/lib/aspose_words_cloud/models/document_property_base.rb +207 -0
  40. data/lib/aspose_words_cloud/models/document_property_create_or_update.rb +207 -0
  41. data/lib/aspose_words_cloud/models/document_property_response.rb +216 -217
  42. data/lib/aspose_words_cloud/models/document_response.rb +216 -217
  43. data/lib/aspose_words_cloud/models/document_stat_data.rb +248 -264
  44. data/lib/aspose_words_cloud/models/downsample_options_data.rb +227 -227
  45. data/lib/aspose_words_cloud/models/drawing_object.rb +385 -388
  46. data/lib/aspose_words_cloud/models/drawing_object_collection.rb +218 -219
  47. data/lib/aspose_words_cloud/models/drawing_object_link.rb +216 -217
  48. data/lib/aspose_words_cloud/models/drawing_object_response.rb +216 -217
  49. data/lib/aspose_words_cloud/models/drawing_objects_response.rb +216 -217
  50. data/lib/aspose_words_cloud/models/emf_save_options_data.rb +475 -477
  51. data/lib/aspose_words_cloud/models/epub_save_options_data.rb +746 -746
  52. data/lib/aspose_words_cloud/models/error.rb +236 -237
  53. data/lib/aspose_words_cloud/models/error_details.rb +217 -222
  54. data/lib/aspose_words_cloud/models/field.rb +246 -247
  55. data/lib/aspose_words_cloud/models/field_base.rb +217 -0
  56. data/lib/aspose_words_cloud/models/field_collection.rb +218 -219
  57. data/lib/aspose_words_cloud/models/field_insert.rb +217 -0
  58. data/lib/aspose_words_cloud/models/field_link.rb +226 -227
  59. data/lib/aspose_words_cloud/models/field_names.rb +218 -219
  60. data/lib/aspose_words_cloud/models/field_names_response.rb +216 -217
  61. data/lib/aspose_words_cloud/models/field_response.rb +216 -217
  62. data/lib/aspose_words_cloud/models/field_update.rb +217 -0
  63. data/lib/aspose_words_cloud/models/fields_response.rb +216 -217
  64. data/lib/aspose_words_cloud/models/file_link.rb +237 -237
  65. data/lib/aspose_words_cloud/models/files_list.rb +209 -209
  66. data/lib/aspose_words_cloud/models/files_upload_result.rb +221 -221
  67. data/lib/aspose_words_cloud/models/fixed_page_save_options_data.rb +346 -347
  68. data/lib/aspose_words_cloud/models/font.rb +671 -676
  69. data/lib/aspose_words_cloud/models/font_info.rb +237 -237
  70. data/lib/aspose_words_cloud/models/font_response.rb +216 -217
  71. data/lib/aspose_words_cloud/models/footnote.rb +301 -304
  72. data/lib/aspose_words_cloud/models/footnote_base.rb +273 -0
  73. data/lib/aspose_words_cloud/models/footnote_collection.rb +218 -219
  74. data/lib/aspose_words_cloud/models/footnote_insert.rb +273 -0
  75. data/lib/aspose_words_cloud/models/footnote_link.rb +216 -217
  76. data/lib/aspose_words_cloud/models/footnote_response.rb +216 -217
  77. data/lib/aspose_words_cloud/models/footnote_update.rb +273 -0
  78. data/lib/aspose_words_cloud/models/footnotes_response.rb +216 -217
  79. data/lib/aspose_words_cloud/models/footnotes_stat_data.rb +217 -227
  80. data/lib/aspose_words_cloud/models/form_field.rb +306 -307
  81. data/lib/aspose_words_cloud/models/form_field_checkbox.rb +336 -337
  82. data/lib/aspose_words_cloud/models/form_field_collection.rb +218 -219
  83. data/lib/aspose_words_cloud/models/form_field_drop_down.rb +328 -329
  84. data/lib/aspose_words_cloud/models/form_field_response.rb +216 -217
  85. data/lib/aspose_words_cloud/models/form_field_text_input.rb +383 -384
  86. data/lib/aspose_words_cloud/models/form_fields_response.rb +216 -217
  87. data/lib/aspose_words_cloud/models/gif_save_options_data.rb +475 -477
  88. data/lib/aspose_words_cloud/models/graphics_quality_options_data.rb +357 -358
  89. data/lib/aspose_words_cloud/models/header_footer.rb +283 -286
  90. data/lib/aspose_words_cloud/models/header_footer_link.rb +253 -254
  91. data/lib/aspose_words_cloud/models/header_footer_link_collection.rb +218 -219
  92. data/lib/aspose_words_cloud/models/header_footer_response.rb +216 -217
  93. data/lib/aspose_words_cloud/models/header_footers_response.rb +216 -217
  94. data/lib/aspose_words_cloud/models/html_fixed_save_options_data.rb +476 -477
  95. data/lib/aspose_words_cloud/models/html_save_options_data.rb +736 -736
  96. data/lib/aspose_words_cloud/models/hyperlink.rb +226 -227
  97. data/lib/aspose_words_cloud/models/hyperlink_response.rb +216 -217
  98. data/lib/aspose_words_cloud/models/hyperlinks.rb +218 -219
  99. data/lib/aspose_words_cloud/models/hyperlinks_response.rb +216 -217
  100. data/lib/aspose_words_cloud/models/image_save_options_data.rb +475 -477
  101. data/lib/aspose_words_cloud/models/jpeg_save_options_data.rb +475 -477
  102. data/lib/aspose_words_cloud/models/link.rb +237 -237
  103. data/lib/aspose_words_cloud/models/link_element.rb +206 -207
  104. data/lib/aspose_words_cloud/models/load_web_document_data.rb +216 -217
  105. data/lib/aspose_words_cloud/models/metafile_rendering_options_data.rb +247 -247
  106. data/lib/aspose_words_cloud/models/mhtml_save_options_data.rb +746 -746
  107. data/lib/aspose_words_cloud/models/modification_operation_result.rb +215 -217
  108. data/lib/aspose_words_cloud/models/node_link.rb +216 -217
  109. data/lib/aspose_words_cloud/models/odt_save_options_data.rb +344 -344
  110. data/lib/aspose_words_cloud/models/office_math_link.rb +216 -217
  111. data/lib/aspose_words_cloud/models/office_math_object.rb +324 -326
  112. data/lib/aspose_words_cloud/models/office_math_object_response.rb +216 -217
  113. data/lib/aspose_words_cloud/models/office_math_objects_collection.rb +218 -219
  114. data/lib/aspose_words_cloud/models/office_math_objects_response.rb +216 -217
  115. data/lib/aspose_words_cloud/models/ooxml_save_options_data.rb +307 -307
  116. data/lib/aspose_words_cloud/models/outline_options_data.rb +259 -259
  117. data/lib/aspose_words_cloud/models/page_number.rb +237 -247
  118. data/lib/aspose_words_cloud/models/page_setup.rb +645 -646
  119. data/lib/aspose_words_cloud/models/page_stat_data.rb +236 -252
  120. data/lib/aspose_words_cloud/models/paragraph.rb +228 -229
  121. data/lib/aspose_words_cloud/models/paragraph_format.rb +567 -568
  122. data/lib/aspose_words_cloud/models/paragraph_format_response.rb +216 -217
  123. data/lib/aspose_words_cloud/models/paragraph_insert.rb +207 -207
  124. data/lib/aspose_words_cloud/models/paragraph_link.rb +226 -227
  125. data/lib/aspose_words_cloud/models/paragraph_link_collection.rb +218 -219
  126. data/lib/aspose_words_cloud/models/paragraph_link_collection_response.rb +216 -217
  127. data/lib/aspose_words_cloud/models/paragraph_response.rb +216 -217
  128. data/lib/aspose_words_cloud/models/pcl_save_options_data.rb +366 -367
  129. data/lib/aspose_words_cloud/models/pdf_digital_signature_details_data.rb +247 -247
  130. data/lib/aspose_words_cloud/models/pdf_encryption_details_data.rb +237 -237
  131. data/lib/aspose_words_cloud/models/pdf_save_options_data.rb +619 -624
  132. data/lib/aspose_words_cloud/models/png_save_options_data.rb +475 -477
  133. data/lib/aspose_words_cloud/models/preferred_width.rb +254 -259
  134. data/lib/aspose_words_cloud/models/protection_data.rb +207 -207
  135. data/lib/aspose_words_cloud/models/protection_data_response.rb +225 -227
  136. data/lib/aspose_words_cloud/models/protection_request.rb +227 -227
  137. data/lib/aspose_words_cloud/models/ps_save_options_data.rb +356 -357
  138. data/lib/aspose_words_cloud/models/range_document.rb +207 -207
  139. data/lib/aspose_words_cloud/models/range_text_response.rb +217 -217
  140. data/lib/aspose_words_cloud/models/replace_range.rb +254 -254
  141. data/lib/aspose_words_cloud/models/replace_text_parameters.rb +247 -262
  142. data/lib/aspose_words_cloud/models/replace_text_response.rb +226 -227
  143. data/lib/aspose_words_cloud/models/requests/AcceptAllRevisionsRequest.rb +65 -65
  144. data/lib/aspose_words_cloud/models/requests/AppendDocumentRequest.rb +77 -77
  145. data/lib/aspose_words_cloud/models/requests/ClassifyDocumentRequest.rb +69 -69
  146. data/lib/aspose_words_cloud/models/requests/ClassifyRequest.rb +49 -49
  147. data/lib/aspose_words_cloud/models/requests/CompareDocumentRequest.rb +69 -69
  148. data/lib/aspose_words_cloud/models/requests/ConvertDocumentRequest.rb +65 -65
  149. data/lib/aspose_words_cloud/models/requests/CopyFileRequest.rb +61 -61
  150. data/lib/aspose_words_cloud/models/requests/CopyFolderRequest.rb +57 -57
  151. data/lib/aspose_words_cloud/models/requests/CreateDocumentRequest.rb +53 -53
  152. data/lib/aspose_words_cloud/models/requests/CreateFolderRequest.rb +49 -49
  153. data/lib/aspose_words_cloud/models/requests/CreateOrUpdateDocumentPropertyRequest.rb +81 -81
  154. data/lib/aspose_words_cloud/models/requests/DeleteBorderRequest.rb +81 -81
  155. data/lib/aspose_words_cloud/models/requests/DeleteBordersRequest.rb +77 -77
  156. data/lib/aspose_words_cloud/models/requests/DeleteCommentRequest.rb +77 -77
  157. data/lib/aspose_words_cloud/models/requests/DeleteDocumentPropertyRequest.rb +77 -77
  158. data/lib/aspose_words_cloud/models/requests/DeleteDrawingObjectRequest.rb +81 -81
  159. data/lib/aspose_words_cloud/models/requests/DeleteDrawingObjectWithoutNodePathRequest.rb +77 -77
  160. data/lib/aspose_words_cloud/models/requests/DeleteFieldRequest.rb +81 -81
  161. data/lib/aspose_words_cloud/models/requests/DeleteFieldWithoutNodePathRequest.rb +77 -77
  162. data/lib/aspose_words_cloud/models/requests/DeleteFieldsRequest.rb +77 -77
  163. data/lib/aspose_words_cloud/models/requests/DeleteFieldsWithoutNodePathRequest.rb +73 -73
  164. data/lib/aspose_words_cloud/models/requests/DeleteFileRequest.rb +53 -53
  165. data/lib/aspose_words_cloud/models/requests/DeleteFolderRequest.rb +53 -53
  166. data/lib/aspose_words_cloud/models/requests/DeleteFootnoteRequest.rb +81 -81
  167. data/lib/aspose_words_cloud/models/requests/DeleteFootnoteWithoutNodePathRequest.rb +77 -77
  168. data/lib/aspose_words_cloud/models/requests/DeleteFormFieldRequest.rb +81 -81
  169. data/lib/aspose_words_cloud/models/requests/DeleteFormFieldWithoutNodePathRequest.rb +77 -77
  170. data/lib/aspose_words_cloud/models/requests/DeleteHeaderFooterRequest.rb +81 -81
  171. data/lib/aspose_words_cloud/models/requests/DeleteHeadersFootersRequest.rb +81 -81
  172. data/lib/aspose_words_cloud/models/requests/DeleteMacrosRequest.rb +73 -73
  173. data/lib/aspose_words_cloud/models/requests/DeleteOfficeMathObjectRequest.rb +81 -81
  174. data/lib/aspose_words_cloud/models/requests/DeleteOfficeMathObjectWithoutNodePathRequest.rb +77 -77
  175. data/lib/aspose_words_cloud/models/requests/DeleteParagraphRequest.rb +81 -81
  176. data/lib/aspose_words_cloud/models/requests/DeleteParagraphWithoutNodePathRequest.rb +77 -77
  177. data/lib/aspose_words_cloud/models/requests/DeleteRunRequest.rb +81 -81
  178. data/lib/aspose_words_cloud/models/requests/DeleteSectionRequest.rb +77 -77
  179. data/lib/aspose_words_cloud/models/requests/DeleteTableCellRequest.rb +81 -81
  180. data/lib/aspose_words_cloud/models/requests/DeleteTableRequest.rb +81 -81
  181. data/lib/aspose_words_cloud/models/requests/DeleteTableRowRequest.rb +81 -81
  182. data/lib/aspose_words_cloud/models/requests/DeleteTableWithoutNodePathRequest.rb +77 -77
  183. data/lib/aspose_words_cloud/models/requests/DeleteWatermarkRequest.rb +73 -73
  184. data/lib/aspose_words_cloud/models/requests/DownloadFileRequest.rb +53 -53
  185. data/lib/aspose_words_cloud/models/requests/ExecuteMailMergeOnlineRequest.rb +61 -61
  186. data/lib/aspose_words_cloud/models/requests/ExecuteMailMergeRequest.rb +85 -85
  187. data/lib/aspose_words_cloud/models/requests/GetAvailableFontsRequest.rb +45 -45
  188. data/lib/aspose_words_cloud/models/requests/GetBookmarkByNameRequest.rb +65 -65
  189. data/lib/aspose_words_cloud/models/requests/GetBookmarksRequest.rb +61 -61
  190. data/lib/aspose_words_cloud/models/requests/GetBorderRequest.rb +69 -69
  191. data/lib/aspose_words_cloud/models/requests/GetBordersRequest.rb +65 -65
  192. data/lib/aspose_words_cloud/models/requests/GetCommentRequest.rb +65 -65
  193. data/lib/aspose_words_cloud/models/requests/GetCommentsRequest.rb +61 -61
  194. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectByIndexRequest.rb +69 -69
  195. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectByIndexWithoutNodePathRequest.rb +65 -65
  196. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectImageDataRequest.rb +69 -69
  197. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectImageDataWithoutNodePathRequest.rb +65 -65
  198. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectOleDataRequest.rb +69 -69
  199. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectOleDataWithoutNodePathRequest.rb +65 -65
  200. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectsRequest.rb +65 -65
  201. data/lib/aspose_words_cloud/models/requests/GetDocumentDrawingObjectsWithoutNodePathRequest.rb +61 -61
  202. data/lib/aspose_words_cloud/models/requests/GetDocumentFieldNamesOnlineRequest.rb +49 -49
  203. data/lib/aspose_words_cloud/models/requests/GetDocumentFieldNamesRequest.rb +65 -65
  204. data/lib/aspose_words_cloud/models/requests/GetDocumentHyperlinkByIndexRequest.rb +65 -65
  205. data/lib/aspose_words_cloud/models/requests/GetDocumentHyperlinksRequest.rb +61 -61
  206. data/lib/aspose_words_cloud/models/requests/GetDocumentPropertiesRequest.rb +61 -61
  207. data/lib/aspose_words_cloud/models/requests/GetDocumentPropertyRequest.rb +65 -65
  208. data/lib/aspose_words_cloud/models/requests/GetDocumentProtectionRequest.rb +61 -61
  209. data/lib/aspose_words_cloud/models/requests/GetDocumentRequest.rb +61 -61
  210. data/lib/aspose_words_cloud/models/requests/GetDocumentStatisticsRequest.rb +73 -73
  211. data/lib/aspose_words_cloud/models/requests/GetDocumentWithFormatRequest.rb +73 -73
  212. data/lib/aspose_words_cloud/models/requests/GetFieldRequest.rb +69 -69
  213. data/lib/aspose_words_cloud/models/requests/GetFieldWithoutNodePathRequest.rb +65 -65
  214. data/lib/aspose_words_cloud/models/requests/GetFieldsRequest.rb +65 -65
  215. data/lib/aspose_words_cloud/models/requests/GetFieldsWithoutNodePathRequest.rb +61 -61
  216. data/lib/aspose_words_cloud/models/requests/GetFilesListRequest.rb +49 -49
  217. data/lib/aspose_words_cloud/models/requests/GetFootnoteRequest.rb +69 -69
  218. data/lib/aspose_words_cloud/models/requests/GetFootnoteWithoutNodePathRequest.rb +65 -65
  219. data/lib/aspose_words_cloud/models/requests/GetFootnotesRequest.rb +65 -65
  220. data/lib/aspose_words_cloud/models/requests/GetFootnotesWithoutNodePathRequest.rb +61 -61
  221. data/lib/aspose_words_cloud/models/requests/GetFormFieldRequest.rb +69 -69
  222. data/lib/aspose_words_cloud/models/requests/GetFormFieldWithoutNodePathRequest.rb +65 -65
  223. data/lib/aspose_words_cloud/models/requests/GetFormFieldsRequest.rb +65 -65
  224. data/lib/aspose_words_cloud/models/requests/GetFormFieldsWithoutNodePathRequest.rb +61 -61
  225. data/lib/aspose_words_cloud/models/requests/GetHeaderFooterOfSectionRequest.rb +73 -73
  226. data/lib/aspose_words_cloud/models/requests/GetHeaderFooterRequest.rb +69 -69
  227. data/lib/aspose_words_cloud/models/requests/GetHeaderFootersRequest.rb +69 -69
  228. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectRequest.rb +69 -69
  229. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectWithoutNodePathRequest.rb +65 -65
  230. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectsRequest.rb +65 -65
  231. data/lib/aspose_words_cloud/models/requests/GetOfficeMathObjectsWithoutNodePathRequest.rb +61 -61
  232. data/lib/aspose_words_cloud/models/requests/GetParagraphFormatRequest.rb +69 -69
  233. data/lib/aspose_words_cloud/models/requests/GetParagraphFormatWithoutNodePathRequest.rb +65 -65
  234. data/lib/aspose_words_cloud/models/requests/GetParagraphRequest.rb +69 -69
  235. data/lib/aspose_words_cloud/models/requests/GetParagraphWithoutNodePathRequest.rb +65 -65
  236. data/lib/aspose_words_cloud/models/requests/GetParagraphsRequest.rb +65 -65
  237. data/lib/aspose_words_cloud/models/requests/GetParagraphsWithoutNodePathRequest.rb +61 -61
  238. data/lib/aspose_words_cloud/models/requests/GetRangeTextRequest.rb +69 -69
  239. data/lib/aspose_words_cloud/models/requests/GetRunFontRequest.rb +69 -69
  240. data/lib/aspose_words_cloud/models/requests/GetRunRequest.rb +69 -69
  241. data/lib/aspose_words_cloud/models/requests/GetRunsRequest.rb +65 -65
  242. data/lib/aspose_words_cloud/models/requests/GetSectionPageSetupRequest.rb +65 -65
  243. data/lib/aspose_words_cloud/models/requests/GetSectionRequest.rb +65 -65
  244. data/lib/aspose_words_cloud/models/requests/GetSectionsRequest.rb +61 -61
  245. data/lib/aspose_words_cloud/models/requests/GetTableCellFormatRequest.rb +69 -69
  246. data/lib/aspose_words_cloud/models/requests/GetTableCellRequest.rb +69 -69
  247. data/lib/aspose_words_cloud/models/requests/GetTablePropertiesRequest.rb +69 -69
  248. data/lib/aspose_words_cloud/models/requests/GetTablePropertiesWithoutNodePathRequest.rb +65 -65
  249. data/lib/aspose_words_cloud/models/requests/GetTableRequest.rb +69 -69
  250. data/lib/aspose_words_cloud/models/requests/GetTableRowFormatRequest.rb +69 -69
  251. data/lib/aspose_words_cloud/models/requests/GetTableRowRequest.rb +69 -69
  252. data/lib/aspose_words_cloud/models/requests/GetTableWithoutNodePathRequest.rb +65 -65
  253. data/lib/aspose_words_cloud/models/requests/GetTablesRequest.rb +65 -65
  254. data/lib/aspose_words_cloud/models/requests/GetTablesWithoutNodePathRequest.rb +61 -61
  255. data/lib/aspose_words_cloud/models/requests/InsertCommentRequest.rb +77 -77
  256. data/lib/aspose_words_cloud/models/requests/InsertDrawingObjectRequest.rb +85 -85
  257. data/lib/aspose_words_cloud/models/requests/InsertDrawingObjectWithoutNodePathRequest.rb +81 -81
  258. data/lib/aspose_words_cloud/models/requests/InsertFieldRequest.rb +85 -85
  259. data/lib/aspose_words_cloud/models/requests/InsertFieldWithoutNodePathRequest.rb +81 -81
  260. data/lib/aspose_words_cloud/models/requests/InsertFootnoteRequest.rb +81 -81
  261. data/lib/aspose_words_cloud/models/requests/InsertFootnoteWithoutNodePathRequest.rb +77 -77
  262. data/lib/aspose_words_cloud/models/requests/InsertFormFieldRequest.rb +85 -85
  263. data/lib/aspose_words_cloud/models/requests/InsertFormFieldWithoutNodePathRequest.rb +81 -81
  264. data/lib/aspose_words_cloud/models/requests/InsertHeaderFooterRequest.rb +81 -81
  265. data/lib/aspose_words_cloud/models/requests/InsertPageNumbersRequest.rb +77 -77
  266. data/lib/aspose_words_cloud/models/requests/InsertParagraphRequest.rb +85 -85
  267. data/lib/aspose_words_cloud/models/requests/InsertRunRequest.rb +85 -85
  268. data/lib/aspose_words_cloud/models/requests/InsertTableCellRequest.rb +81 -81
  269. data/lib/aspose_words_cloud/models/requests/InsertTableRequest.rb +81 -81
  270. data/lib/aspose_words_cloud/models/requests/InsertTableRowRequest.rb +81 -81
  271. data/lib/aspose_words_cloud/models/requests/InsertTableWithoutNodePathRequest.rb +77 -77
  272. data/lib/aspose_words_cloud/models/requests/InsertWatermarkImageRequest.rb +85 -85
  273. data/lib/aspose_words_cloud/models/requests/InsertWatermarkTextRequest.rb +77 -77
  274. data/lib/aspose_words_cloud/models/requests/LoadWebDocumentRequest.rb +49 -49
  275. data/lib/aspose_words_cloud/models/requests/MoveFileRequest.rb +61 -61
  276. data/lib/aspose_words_cloud/models/requests/MoveFolderRequest.rb +57 -57
  277. data/lib/aspose_words_cloud/models/requests/ProtectDocumentRequest.rb +69 -69
  278. data/lib/aspose_words_cloud/models/requests/RejectAllRevisionsRequest.rb +65 -65
  279. data/lib/aspose_words_cloud/models/requests/RemoveRangeRequest.rb +73 -73
  280. data/lib/aspose_words_cloud/models/requests/RenderDrawingObjectRequest.rb +77 -77
  281. data/lib/aspose_words_cloud/models/requests/RenderDrawingObjectWithoutNodePathRequest.rb +73 -73
  282. data/lib/aspose_words_cloud/models/requests/RenderMathObjectRequest.rb +77 -77
  283. data/lib/aspose_words_cloud/models/requests/RenderMathObjectWithoutNodePathRequest.rb +73 -73
  284. data/lib/aspose_words_cloud/models/requests/RenderPageRequest.rb +73 -73
  285. data/lib/aspose_words_cloud/models/requests/RenderParagraphRequest.rb +77 -77
  286. data/lib/aspose_words_cloud/models/requests/RenderParagraphWithoutNodePathRequest.rb +73 -73
  287. data/lib/aspose_words_cloud/models/requests/RenderTableRequest.rb +77 -77
  288. data/lib/aspose_words_cloud/models/requests/RenderTableWithoutNodePathRequest.rb +73 -73
  289. data/lib/aspose_words_cloud/models/requests/ReplaceTextRequest.rb +77 -77
  290. data/lib/aspose_words_cloud/models/requests/ReplaceWithTextRequest.rb +77 -77
  291. data/lib/aspose_words_cloud/models/requests/ResetCacheRequest.rb +36 -36
  292. data/lib/aspose_words_cloud/models/requests/SaveAsRangeRequest.rb +73 -73
  293. data/lib/aspose_words_cloud/models/requests/SaveAsRequest.rb +69 -69
  294. data/lib/aspose_words_cloud/models/requests/SaveAsTiffRequest.rb +137 -137
  295. data/lib/aspose_words_cloud/models/requests/SearchRequest.rb +65 -65
  296. data/lib/aspose_words_cloud/models/requests/SplitDocumentRequest.rb +85 -85
  297. data/lib/aspose_words_cloud/models/requests/UnprotectDocumentRequest.rb +69 -69
  298. data/lib/aspose_words_cloud/models/requests/UpdateBookmarkRequest.rb +81 -81
  299. data/lib/aspose_words_cloud/models/requests/UpdateBorderRequest.rb +85 -85
  300. data/lib/aspose_words_cloud/models/requests/UpdateCommentRequest.rb +81 -81
  301. data/lib/aspose_words_cloud/models/requests/UpdateDrawingObjectRequest.rb +89 -89
  302. data/lib/aspose_words_cloud/models/requests/UpdateDrawingObjectWithoutNodePathRequest.rb +85 -85
  303. data/lib/aspose_words_cloud/models/requests/UpdateFieldRequest.rb +85 -85
  304. data/lib/aspose_words_cloud/models/requests/UpdateFieldsRequest.rb +65 -65
  305. data/lib/aspose_words_cloud/models/requests/UpdateFootnoteRequest.rb +85 -85
  306. data/lib/aspose_words_cloud/models/requests/UpdateFootnoteWithoutNodePathRequest.rb +81 -81
  307. data/lib/aspose_words_cloud/models/requests/UpdateFormFieldRequest.rb +85 -85
  308. data/lib/aspose_words_cloud/models/requests/UpdateFormFieldWithoutNodePathRequest.rb +81 -81
  309. data/lib/aspose_words_cloud/models/requests/UpdateParagraphFormatRequest.rb +85 -85
  310. data/lib/aspose_words_cloud/models/requests/UpdateRunFontRequest.rb +85 -85
  311. data/lib/aspose_words_cloud/models/requests/UpdateRunRequest.rb +85 -85
  312. data/lib/aspose_words_cloud/models/requests/UpdateSectionPageSetupRequest.rb +81 -81
  313. data/lib/aspose_words_cloud/models/requests/UpdateTableCellFormatRequest.rb +85 -85
  314. data/lib/aspose_words_cloud/models/requests/UpdateTablePropertiesRequest.rb +85 -85
  315. data/lib/aspose_words_cloud/models/requests/UpdateTablePropertiesWithoutNodePathRequest.rb +81 -81
  316. data/lib/aspose_words_cloud/models/requests/UpdateTableRowFormatRequest.rb +85 -85
  317. data/lib/aspose_words_cloud/models/requests/UploadFileRequest.rb +53 -53
  318. data/lib/aspose_words_cloud/models/response_error.rb +246 -247
  319. data/lib/aspose_words_cloud/models/revisions_modification_response.rb +216 -217
  320. data/lib/aspose_words_cloud/models/rtf_save_options_data.rb +317 -317
  321. data/lib/aspose_words_cloud/models/run.rb +226 -227
  322. data/lib/aspose_words_cloud/models/run_base.rb +207 -0
  323. data/lib/aspose_words_cloud/models/run_insert.rb +207 -0
  324. data/lib/aspose_words_cloud/models/run_link.rb +226 -227
  325. data/lib/aspose_words_cloud/models/run_response.rb +216 -217
  326. data/lib/aspose_words_cloud/models/run_update.rb +207 -0
  327. data/lib/aspose_words_cloud/models/runs.rb +218 -219
  328. data/lib/aspose_words_cloud/models/runs_response.rb +216 -217
  329. data/lib/aspose_words_cloud/models/save_options_data.rb +277 -277
  330. data/lib/aspose_words_cloud/models/save_response.rb +216 -217
  331. data/lib/aspose_words_cloud/models/save_result.rb +227 -229
  332. data/lib/aspose_words_cloud/models/search_response.rb +226 -227
  333. data/lib/aspose_words_cloud/models/search_result.rb +215 -217
  334. data/lib/aspose_words_cloud/models/search_results_collection.rb +218 -219
  335. data/lib/aspose_words_cloud/models/section.rb +254 -259
  336. data/lib/aspose_words_cloud/models/section_link.rb +216 -217
  337. data/lib/aspose_words_cloud/models/section_link_collection.rb +218 -219
  338. data/lib/aspose_words_cloud/models/section_link_collection_response.rb +216 -217
  339. data/lib/aspose_words_cloud/models/section_page_setup_response.rb +216 -217
  340. data/lib/aspose_words_cloud/models/section_response.rb +216 -217
  341. data/lib/aspose_words_cloud/models/split_document_response.rb +216 -217
  342. data/lib/aspose_words_cloud/models/split_document_result.rb +227 -229
  343. data/lib/aspose_words_cloud/models/stat_data_response.rb +225 -227
  344. data/lib/aspose_words_cloud/models/storage_file.rb +247 -257
  345. data/lib/aspose_words_cloud/models/story_child_nodes.rb +209 -209
  346. data/lib/aspose_words_cloud/models/string_format_data.rb +348 -348
  347. data/lib/aspose_words_cloud/models/svg_save_options_data.rb +406 -407
  348. data/lib/aspose_words_cloud/models/table.rb +237 -239
  349. data/lib/aspose_words_cloud/models/table_cell.rb +228 -229
  350. data/lib/aspose_words_cloud/models/table_cell_format.rb +410 -412
  351. data/lib/aspose_words_cloud/models/table_cell_format_response.rb +216 -217
  352. data/lib/aspose_words_cloud/models/table_cell_insert.rb +207 -207
  353. data/lib/aspose_words_cloud/models/table_cell_response.rb +216 -217
  354. data/lib/aspose_words_cloud/models/table_insert.rb +226 -237
  355. data/lib/aspose_words_cloud/models/table_link.rb +216 -217
  356. data/lib/aspose_words_cloud/models/table_link_collection.rb +218 -219
  357. data/lib/aspose_words_cloud/models/table_link_collection_response.rb +216 -217
  358. data/lib/aspose_words_cloud/models/table_properties.rb +430 -432
  359. data/lib/aspose_words_cloud/models/table_properties_response.rb +216 -217
  360. data/lib/aspose_words_cloud/models/table_response.rb +216 -217
  361. data/lib/aspose_words_cloud/models/table_row.rb +237 -239
  362. data/lib/aspose_words_cloud/models/table_row_format.rb +283 -284
  363. data/lib/aspose_words_cloud/models/table_row_format_response.rb +216 -217
  364. data/lib/aspose_words_cloud/models/table_row_insert.rb +217 -222
  365. data/lib/aspose_words_cloud/models/table_row_response.rb +216 -217
  366. data/lib/aspose_words_cloud/models/text_save_options_data.rb +384 -384
  367. data/lib/aspose_words_cloud/models/tiff_save_options_data.rb +505 -507
  368. data/lib/aspose_words_cloud/models/watermark_text.rb +217 -222
  369. data/lib/aspose_words_cloud/models/word_ml_save_options_data.rb +287 -287
  370. data/lib/aspose_words_cloud/models/words_api_error_response.rb +216 -217
  371. data/lib/aspose_words_cloud/models/words_api_link.rb +237 -237
  372. data/lib/aspose_words_cloud/models/words_response.rb +207 -207
  373. data/lib/aspose_words_cloud/models/xaml_fixed_save_options_data.rb +366 -367
  374. data/lib/aspose_words_cloud/models/xaml_flow_save_options_data.rb +297 -297
  375. data/lib/aspose_words_cloud/models/xml_color.rb +217 -217
  376. data/lib/aspose_words_cloud/models/xps_save_options_data.rb +385 -387
  377. data/lib/aspose_words_cloud/version.rb +29 -29
  378. metadata +19 -5
@@ -1,746 +1,746 @@
1
-
2
- require 'date'
3
-
4
- module AsposeWordsCloud
5
- #
6
- # --------------------------------------------------------------------------------------------------------------------
7
- # <copyright company="Aspose" file="MhtmlSaveOptionsData.rb">
8
- # Copyright (c) 2019 Aspose.Words for Cloud
9
- # </copyright>
10
- # <summary>
11
- # Permission is hereby granted, free of charge, to any person obtaining a copy
12
- # of this software and associated documentation files (the "Software"), to deal
13
- # in the Software without restriction, including without limitation the rights
14
- # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
- # copies of the Software, and to permit persons to whom the Software is
16
- # furnished to do so, subject to the following conditions:
17
- #
18
- # The above copyright notice and this permission notice shall be included in all
19
- # copies or substantial portions of the Software.
20
- #
21
- # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
- # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
- # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
- # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
- # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
- # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
- # SOFTWARE.
28
- # </summary>
29
- # --------------------------------------------------------------------------------------------------------------------
30
- #
31
-
32
- # Container class for mhtml save options.
33
- class MhtmlSaveOptionsData
34
- # Gets or sets format of save.
35
- attr_accessor :save_format
36
-
37
- # Gets or sets name of destination file.
38
- attr_accessor :file_name
39
-
40
- # Gets or sets a value determining how DrawingML shapes are rendered. { Fallback | DrawingML }.
41
- attr_accessor :dml_rendering_mode
42
-
43
- # Gets or sets a value determining how DrawingML effects are rendered. { Simplified | None | Fine }.
44
- attr_accessor :dml_effects_rendering_mode
45
-
46
- # Gets or sets controls zip output or not. Default value is false.
47
- attr_accessor :zip_output
48
-
49
- # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastSavedTime property is updated before saving.
50
- attr_accessor :update_last_saved_time_property
51
-
52
- # Gets or sets value determining whether content of is updated before saving.
53
- attr_accessor :update_sdt_content
54
-
55
- # Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
56
- attr_accessor :update_fields
57
-
58
- # Gets or sets specifies whether negative left and right indents of paragraphs are allowed (not normalized).
59
- attr_accessor :allow_negative_indent
60
-
61
- # Gets or sets specifies a prefix which is added to all CSS class names. Default value is an empty string and generated CSS class names have no common prefix. If this value is not empty, all CSS classes generated by Aspose.Words will start with the specified prefix.This might be useful, for example, if you add custom CSS to generated documents and want to prevent class name conflicts. If the value is not null or empty, it must be a valid CSS identifier.
62
- attr_accessor :css_class_name_prefix
63
-
64
- # Gets or sets specifies the name of the CSS file written when the document is exported to HTML.
65
- attr_accessor :css_style_sheet_file_name
66
-
67
- # Gets or sets specifies how CSS styles are exported.
68
- attr_accessor :css_style_sheet_type
69
-
70
- # Gets or sets specifies how the document should be split when saving.
71
- attr_accessor :document_split_criteria
72
-
73
- # Gets or sets specifies the maximum level of headings at which to split the document.
74
- attr_accessor :document_split_heading_level
75
-
76
- # Gets or sets specifies the encoding to use when exporting.
77
- attr_accessor :encoding
78
-
79
- # Gets or sets specifies whether to export built-in and custom document properties.
80
- attr_accessor :export_document_properties
81
-
82
- # Gets or sets controls how drop-down form fields are saved to HTML. Default value is false.
83
- attr_accessor :export_drop_down_form_field_as_text
84
-
85
- # Gets or sets specifies whether font resources should be exported.
86
- attr_accessor :export_font_resources
87
-
88
- # Gets or sets specifies whether fonts resources should be embedded to HTML in Base64 encoding. Default is false.
89
- attr_accessor :export_fonts_as_base64
90
-
91
- # Gets or sets specifies how headers and footers are output.
92
- attr_accessor :export_headers_footers_mode
93
-
94
- # Gets or sets specifies whether images are saved in Base64 format.
95
- attr_accessor :export_images_as_base64
96
-
97
- # Gets or sets specifies whether language information is exported.
98
- attr_accessor :export_language_information
99
-
100
- # Gets or sets controls how list labels are output.
101
- attr_accessor :export_list_labels
102
-
103
- # Gets or sets specifies whether original URL should be used as the URL of the linked images. Default value is false.
104
- attr_accessor :export_original_url_for_linked_images
105
-
106
- # Gets or sets specifies whether page margins is exported to HTML, MHTML or EPUB. Default is false.
107
- attr_accessor :export_page_margins
108
-
109
- # Gets or sets specifies whether page setup is exported.
110
- attr_accessor :export_page_setup
111
-
112
- # Gets or sets specifies whether font sizes should be output in relative units when saving.
113
- attr_accessor :export_relative_font_size
114
-
115
- # Gets or sets specifies whether to write the roundtrip information when saving to HTML Default value is true.
116
- attr_accessor :export_roundtrip_information
117
-
118
- # Gets or sets controls how textboxes represented by Aspose.Words.Drawing.Shape are saved to HTML, MHTML or EPUB. Default value is false. When set to true, exports textboxes as inline \"svg\" elements. When false, exports as \"image\" elements.
119
- attr_accessor :export_text_box_as_svg
120
-
121
- # Gets or sets controls how text input form fields are saved.
122
- attr_accessor :export_text_input_form_field_as_text
123
-
124
- # Gets or sets specifies whether to write page numbers to table of contents when saving.
125
- attr_accessor :export_toc_page_numbers
126
-
127
- # Gets or sets specifies whether to write the DOCTYPE declaration when saving.
128
- attr_accessor :export_xhtml_transitional
129
-
130
- # Gets or sets controls which font resources need subsetting when saving.
131
- attr_accessor :font_resources_subsetting_size_threshold
132
-
133
- # Gets or sets specifies the physical folder where fonts are saved when exporting a document.
134
- attr_accessor :fonts_folder
135
-
136
- # Gets or sets specifies the name of the folder used to construct font URIs.
137
- attr_accessor :fonts_folder_alias
138
-
139
- # Gets or sets specifies version of HTML standard that should be used when saving the document to HTML or MHTML. Default value is Aspose.Words.Saving.HtmlVersion.Xhtml.
140
- attr_accessor :html_version
141
-
142
- # Gets or sets specifies the output resolution for images when exporting.
143
- attr_accessor :image_resolution
144
-
145
- # Gets or sets specifies the physical folder where images are saved when exporting a document.
146
- attr_accessor :images_folder
147
-
148
- # Gets or sets specifies the name of the folder used to construct image URIs.
149
- attr_accessor :images_folder_alias
150
-
151
- # Gets or sets specifies in what format metafiles are saved when exporting to HTML, MHTML, or EPUB. Default value is Aspose.Words.Saving.HtmlMetafileFormat.Png, meaning that metafiles are rendered to raster PNG images. Metafiles are not natively displayed by HTML browsers. By default, Aspose.Words converts WMF and EMF images into PNG files when exporting to HTML.Other options are to convert metafiles to SVG images or to export them as is without conversion. Some image transforms, in particular image cropping, will not be applied to metafile images if they are exported to HTML without conversion.
152
- attr_accessor :metafile_format
153
-
154
- # Gets or sets controls how OfficeMath objects are exported to HTML, MHTML or EPUB. Default value is HtmlOfficeMathOutputMode.Image.
155
- attr_accessor :office_math_output_mode
156
-
157
- # Gets or sets specifies whether or not use pretty formats output.
158
- attr_accessor :pretty_format
159
-
160
- # Gets or sets specifies whether font family names used in the document are resolved and substituted according to FontSettings when being written into HTML-based formats. default value is false.
161
- attr_accessor :resolve_font_names
162
-
163
- # Gets or sets specifies a physical folder where all resources like images, fonts, and external CSS are saved when a document is exported to HTML. Default is an empty string.
164
- attr_accessor :resource_folder
165
-
166
- # Gets or sets specifies the name of the folder used to construct URIs of all resources written into an HTML document. Default is an empty string.
167
- attr_accessor :resource_folder_alias
168
-
169
- # Gets or sets specifies whether images are scaled by Aspose.Words to the bounding shape size when exporting.
170
- attr_accessor :scale_image_to_shape_size
171
-
172
- # Gets or sets controls how table, row and cell widths are exported.
173
- attr_accessor :table_width_output_mode
174
-
175
- # Gets or sets specifies whether to use CID (Content-ID) URLs to reference resources (images, fonts, CSS) included in MHTML documents. Default value is false.
176
- attr_accessor :export_cid_urls_for_mhtml_resources
177
-
178
- class EnumAttributeValidator
179
- attr_reader :datatype
180
- attr_reader :allowable_values
181
-
182
- def initialize(datatype, allowable_values)
183
- @allowable_values = allowable_values.map do |value|
184
- case datatype.to_s
185
- when /Integer/i
186
- value.to_i
187
- when /Float/i
188
- value.to_f
189
- else
190
- value
191
- end
192
- end
193
- end
194
-
195
- def valid?(value)
196
- !value || allowable_values.include?(value)
197
- end
198
- end
199
-
200
- # Attribute mapping from ruby-style variable name to JSON key.
201
- def self.attribute_map
202
- {
203
- :'save_format' => :'SaveFormat',
204
- :'file_name' => :'FileName',
205
- :'dml_rendering_mode' => :'DmlRenderingMode',
206
- :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
207
- :'zip_output' => :'ZipOutput',
208
- :'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
209
- :'update_sdt_content' => :'UpdateSdtContent',
210
- :'update_fields' => :'UpdateFields',
211
- :'allow_negative_indent' => :'AllowNegativeIndent',
212
- :'css_class_name_prefix' => :'CssClassNamePrefix',
213
- :'css_style_sheet_file_name' => :'CssStyleSheetFileName',
214
- :'css_style_sheet_type' => :'CssStyleSheetType',
215
- :'document_split_criteria' => :'DocumentSplitCriteria',
216
- :'document_split_heading_level' => :'DocumentSplitHeadingLevel',
217
- :'encoding' => :'Encoding',
218
- :'export_document_properties' => :'ExportDocumentProperties',
219
- :'export_drop_down_form_field_as_text' => :'ExportDropDownFormFieldAsText',
220
- :'export_font_resources' => :'ExportFontResources',
221
- :'export_fonts_as_base64' => :'ExportFontsAsBase64',
222
- :'export_headers_footers_mode' => :'ExportHeadersFootersMode',
223
- :'export_images_as_base64' => :'ExportImagesAsBase64',
224
- :'export_language_information' => :'ExportLanguageInformation',
225
- :'export_list_labels' => :'ExportListLabels',
226
- :'export_original_url_for_linked_images' => :'ExportOriginalUrlForLinkedImages',
227
- :'export_page_margins' => :'ExportPageMargins',
228
- :'export_page_setup' => :'ExportPageSetup',
229
- :'export_relative_font_size' => :'ExportRelativeFontSize',
230
- :'export_roundtrip_information' => :'ExportRoundtripInformation',
231
- :'export_text_box_as_svg' => :'ExportTextBoxAsSvg',
232
- :'export_text_input_form_field_as_text' => :'ExportTextInputFormFieldAsText',
233
- :'export_toc_page_numbers' => :'ExportTocPageNumbers',
234
- :'export_xhtml_transitional' => :'ExportXhtmlTransitional',
235
- :'font_resources_subsetting_size_threshold' => :'FontResourcesSubsettingSizeThreshold',
236
- :'fonts_folder' => :'FontsFolder',
237
- :'fonts_folder_alias' => :'FontsFolderAlias',
238
- :'html_version' => :'HtmlVersion',
239
- :'image_resolution' => :'ImageResolution',
240
- :'images_folder' => :'ImagesFolder',
241
- :'images_folder_alias' => :'ImagesFolderAlias',
242
- :'metafile_format' => :'MetafileFormat',
243
- :'office_math_output_mode' => :'OfficeMathOutputMode',
244
- :'pretty_format' => :'PrettyFormat',
245
- :'resolve_font_names' => :'ResolveFontNames',
246
- :'resource_folder' => :'ResourceFolder',
247
- :'resource_folder_alias' => :'ResourceFolderAlias',
248
- :'scale_image_to_shape_size' => :'ScaleImageToShapeSize',
249
- :'table_width_output_mode' => :'TableWidthOutputMode',
250
- :'export_cid_urls_for_mhtml_resources' => :'ExportCidUrlsForMhtmlResources'
251
- }
252
- end
253
-
254
- # Attribute type mapping.
255
- def self.swagger_types
256
- {
257
- :'save_format' => :'String',
258
- :'file_name' => :'String',
259
- :'dml_rendering_mode' => :'String',
260
- :'dml_effects_rendering_mode' => :'String',
261
- :'zip_output' => :'BOOLEAN',
262
- :'update_last_saved_time_property' => :'BOOLEAN',
263
- :'update_sdt_content' => :'BOOLEAN',
264
- :'update_fields' => :'BOOLEAN',
265
- :'allow_negative_indent' => :'BOOLEAN',
266
- :'css_class_name_prefix' => :'String',
267
- :'css_style_sheet_file_name' => :'String',
268
- :'css_style_sheet_type' => :'String',
269
- :'document_split_criteria' => :'String',
270
- :'document_split_heading_level' => :'Integer',
271
- :'encoding' => :'String',
272
- :'export_document_properties' => :'BOOLEAN',
273
- :'export_drop_down_form_field_as_text' => :'BOOLEAN',
274
- :'export_font_resources' => :'BOOLEAN',
275
- :'export_fonts_as_base64' => :'BOOLEAN',
276
- :'export_headers_footers_mode' => :'String',
277
- :'export_images_as_base64' => :'BOOLEAN',
278
- :'export_language_information' => :'BOOLEAN',
279
- :'export_list_labels' => :'String',
280
- :'export_original_url_for_linked_images' => :'BOOLEAN',
281
- :'export_page_margins' => :'BOOLEAN',
282
- :'export_page_setup' => :'BOOLEAN',
283
- :'export_relative_font_size' => :'BOOLEAN',
284
- :'export_roundtrip_information' => :'BOOLEAN',
285
- :'export_text_box_as_svg' => :'BOOLEAN',
286
- :'export_text_input_form_field_as_text' => :'BOOLEAN',
287
- :'export_toc_page_numbers' => :'BOOLEAN',
288
- :'export_xhtml_transitional' => :'BOOLEAN',
289
- :'font_resources_subsetting_size_threshold' => :'Integer',
290
- :'fonts_folder' => :'String',
291
- :'fonts_folder_alias' => :'String',
292
- :'html_version' => :'String',
293
- :'image_resolution' => :'Integer',
294
- :'images_folder' => :'String',
295
- :'images_folder_alias' => :'String',
296
- :'metafile_format' => :'String',
297
- :'office_math_output_mode' => :'String',
298
- :'pretty_format' => :'BOOLEAN',
299
- :'resolve_font_names' => :'BOOLEAN',
300
- :'resource_folder' => :'String',
301
- :'resource_folder_alias' => :'String',
302
- :'scale_image_to_shape_size' => :'BOOLEAN',
303
- :'table_width_output_mode' => :'String',
304
- :'export_cid_urls_for_mhtml_resources' => :'BOOLEAN'
305
- }
306
- end
307
-
308
- # Initializes the object
309
- # @param [Hash] attributes Model attributes in the form of hash
310
- def initialize(attributes = {})
311
- return unless attributes.is_a?(Hash)
312
-
313
- # convert string to symbol for hash key
314
- attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
315
-
316
- if attributes.key?(:'SaveFormat')
317
- self.save_format = attributes[:'SaveFormat']
318
- end
319
-
320
- if attributes.key?(:'FileName')
321
- self.file_name = attributes[:'FileName']
322
- end
323
-
324
- if attributes.key?(:'DmlRenderingMode')
325
- self.dml_rendering_mode = attributes[:'DmlRenderingMode']
326
- end
327
-
328
- if attributes.key?(:'DmlEffectsRenderingMode')
329
- self.dml_effects_rendering_mode = attributes[:'DmlEffectsRenderingMode']
330
- end
331
-
332
- if attributes.key?(:'ZipOutput')
333
- self.zip_output = attributes[:'ZipOutput']
334
- end
335
-
336
- if attributes.key?(:'UpdateLastSavedTimeProperty')
337
- self.update_last_saved_time_property = attributes[:'UpdateLastSavedTimeProperty']
338
- end
339
-
340
- if attributes.key?(:'UpdateSdtContent')
341
- self.update_sdt_content = attributes[:'UpdateSdtContent']
342
- end
343
-
344
- if attributes.key?(:'UpdateFields')
345
- self.update_fields = attributes[:'UpdateFields']
346
- end
347
-
348
- if attributes.key?(:'AllowNegativeIndent')
349
- self.allow_negative_indent = attributes[:'AllowNegativeIndent']
350
- end
351
-
352
- if attributes.key?(:'CssClassNamePrefix')
353
- self.css_class_name_prefix = attributes[:'CssClassNamePrefix']
354
- end
355
-
356
- if attributes.key?(:'CssStyleSheetFileName')
357
- self.css_style_sheet_file_name = attributes[:'CssStyleSheetFileName']
358
- end
359
-
360
- if attributes.key?(:'CssStyleSheetType')
361
- self.css_style_sheet_type = attributes[:'CssStyleSheetType']
362
- end
363
-
364
- if attributes.key?(:'DocumentSplitCriteria')
365
- self.document_split_criteria = attributes[:'DocumentSplitCriteria']
366
- end
367
-
368
- if attributes.key?(:'DocumentSplitHeadingLevel')
369
- self.document_split_heading_level = attributes[:'DocumentSplitHeadingLevel']
370
- end
371
-
372
- if attributes.key?(:'Encoding')
373
- self.encoding = attributes[:'Encoding']
374
- end
375
-
376
- if attributes.key?(:'ExportDocumentProperties')
377
- self.export_document_properties = attributes[:'ExportDocumentProperties']
378
- end
379
-
380
- if attributes.key?(:'ExportDropDownFormFieldAsText')
381
- self.export_drop_down_form_field_as_text = attributes[:'ExportDropDownFormFieldAsText']
382
- end
383
-
384
- if attributes.key?(:'ExportFontResources')
385
- self.export_font_resources = attributes[:'ExportFontResources']
386
- end
387
-
388
- if attributes.key?(:'ExportFontsAsBase64')
389
- self.export_fonts_as_base64 = attributes[:'ExportFontsAsBase64']
390
- end
391
-
392
- if attributes.key?(:'ExportHeadersFootersMode')
393
- self.export_headers_footers_mode = attributes[:'ExportHeadersFootersMode']
394
- end
395
-
396
- if attributes.key?(:'ExportImagesAsBase64')
397
- self.export_images_as_base64 = attributes[:'ExportImagesAsBase64']
398
- end
399
-
400
- if attributes.key?(:'ExportLanguageInformation')
401
- self.export_language_information = attributes[:'ExportLanguageInformation']
402
- end
403
-
404
- if attributes.key?(:'ExportListLabels')
405
- self.export_list_labels = attributes[:'ExportListLabels']
406
- end
407
-
408
- if attributes.key?(:'ExportOriginalUrlForLinkedImages')
409
- self.export_original_url_for_linked_images = attributes[:'ExportOriginalUrlForLinkedImages']
410
- end
411
-
412
- if attributes.key?(:'ExportPageMargins')
413
- self.export_page_margins = attributes[:'ExportPageMargins']
414
- end
415
-
416
- if attributes.key?(:'ExportPageSetup')
417
- self.export_page_setup = attributes[:'ExportPageSetup']
418
- end
419
-
420
- if attributes.key?(:'ExportRelativeFontSize')
421
- self.export_relative_font_size = attributes[:'ExportRelativeFontSize']
422
- end
423
-
424
- if attributes.key?(:'ExportRoundtripInformation')
425
- self.export_roundtrip_information = attributes[:'ExportRoundtripInformation']
426
- end
427
-
428
- if attributes.key?(:'ExportTextBoxAsSvg')
429
- self.export_text_box_as_svg = attributes[:'ExportTextBoxAsSvg']
430
- end
431
-
432
- if attributes.key?(:'ExportTextInputFormFieldAsText')
433
- self.export_text_input_form_field_as_text = attributes[:'ExportTextInputFormFieldAsText']
434
- end
435
-
436
- if attributes.key?(:'ExportTocPageNumbers')
437
- self.export_toc_page_numbers = attributes[:'ExportTocPageNumbers']
438
- end
439
-
440
- if attributes.key?(:'ExportXhtmlTransitional')
441
- self.export_xhtml_transitional = attributes[:'ExportXhtmlTransitional']
442
- end
443
-
444
- if attributes.key?(:'FontResourcesSubsettingSizeThreshold')
445
- self.font_resources_subsetting_size_threshold = attributes[:'FontResourcesSubsettingSizeThreshold']
446
- end
447
-
448
- if attributes.key?(:'FontsFolder')
449
- self.fonts_folder = attributes[:'FontsFolder']
450
- end
451
-
452
- if attributes.key?(:'FontsFolderAlias')
453
- self.fonts_folder_alias = attributes[:'FontsFolderAlias']
454
- end
455
-
456
- if attributes.key?(:'HtmlVersion')
457
- self.html_version = attributes[:'HtmlVersion']
458
- end
459
-
460
- if attributes.key?(:'ImageResolution')
461
- self.image_resolution = attributes[:'ImageResolution']
462
- end
463
-
464
- if attributes.key?(:'ImagesFolder')
465
- self.images_folder = attributes[:'ImagesFolder']
466
- end
467
-
468
- if attributes.key?(:'ImagesFolderAlias')
469
- self.images_folder_alias = attributes[:'ImagesFolderAlias']
470
- end
471
-
472
- if attributes.key?(:'MetafileFormat')
473
- self.metafile_format = attributes[:'MetafileFormat']
474
- end
475
-
476
- if attributes.key?(:'OfficeMathOutputMode')
477
- self.office_math_output_mode = attributes[:'OfficeMathOutputMode']
478
- end
479
-
480
- if attributes.key?(:'PrettyFormat')
481
- self.pretty_format = attributes[:'PrettyFormat']
482
- end
483
-
484
- if attributes.key?(:'ResolveFontNames')
485
- self.resolve_font_names = attributes[:'ResolveFontNames']
486
- end
487
-
488
- if attributes.key?(:'ResourceFolder')
489
- self.resource_folder = attributes[:'ResourceFolder']
490
- end
491
-
492
- if attributes.key?(:'ResourceFolderAlias')
493
- self.resource_folder_alias = attributes[:'ResourceFolderAlias']
494
- end
495
-
496
- if attributes.key?(:'ScaleImageToShapeSize')
497
- self.scale_image_to_shape_size = attributes[:'ScaleImageToShapeSize']
498
- end
499
-
500
- if attributes.key?(:'TableWidthOutputMode')
501
- self.table_width_output_mode = attributes[:'TableWidthOutputMode']
502
- end
503
-
504
- if attributes.key?(:'ExportCidUrlsForMhtmlResources')
505
- self.export_cid_urls_for_mhtml_resources = attributes[:'ExportCidUrlsForMhtmlResources']
506
- end
507
-
508
- end
509
-
510
- # Show invalid properties with the reasons. Usually used together with valid?
511
- # @return Array for valid properies with the reasons
512
- def list_invalid_properties
513
- invalid_properties = []
514
- return invalid_properties
515
- end
516
-
517
- # Check to see if the all the properties in the model are valid
518
- # @return true if the model is valid
519
- def valid?
520
- html_version_validator = EnumAttributeValidator.new('String', ["Xhtml", "Html5"])
521
- return false unless html_version_validator.valid?(@html_version)
522
- metafile_format_validator = EnumAttributeValidator.new('String', ["Png", "Svg", "EmfOrWmf"])
523
- return false unless metafile_format_validator.valid?(@metafile_format)
524
- office_math_output_mode_validator = EnumAttributeValidator.new('String', ["Image", "MathML", "Text"])
525
- return false unless office_math_output_mode_validator.valid?(@office_math_output_mode)
526
- return true
527
- end
528
-
529
- # Custom attribute writer method checking allowed values (enum).
530
- # @param [Object] html_version Object to be assigned
531
- def html_version=(html_version)
532
- validator = EnumAttributeValidator.new('String', ["Xhtml", "Html5"])
533
- if html_version.to_i == 0
534
- unless validator.valid?(html_version)
535
- raise ArgumentError, "invalid value for 'html_version', must be one of #{validator.allowable_values}."
536
- end
537
- @html_version = html_version
538
- else
539
- @html_version = validator.allowable_values[html_version.to_i]
540
- end
541
- end
542
-
543
- # Custom attribute writer method checking allowed values (enum).
544
- # @param [Object] metafile_format Object to be assigned
545
- def metafile_format=(metafile_format)
546
- validator = EnumAttributeValidator.new('String', ["Png", "Svg", "EmfOrWmf"])
547
- if metafile_format.to_i == 0
548
- unless validator.valid?(metafile_format)
549
- raise ArgumentError, "invalid value for 'metafile_format', must be one of #{validator.allowable_values}."
550
- end
551
- @metafile_format = metafile_format
552
- else
553
- @metafile_format = validator.allowable_values[metafile_format.to_i]
554
- end
555
- end
556
-
557
- # Custom attribute writer method checking allowed values (enum).
558
- # @param [Object] office_math_output_mode Object to be assigned
559
- def office_math_output_mode=(office_math_output_mode)
560
- validator = EnumAttributeValidator.new('String', ["Image", "MathML", "Text"])
561
- if office_math_output_mode.to_i == 0
562
- unless validator.valid?(office_math_output_mode)
563
- raise ArgumentError, "invalid value for 'office_math_output_mode', must be one of #{validator.allowable_values}."
564
- end
565
- @office_math_output_mode = office_math_output_mode
566
- else
567
- @office_math_output_mode = validator.allowable_values[office_math_output_mode.to_i]
568
- end
569
- end
570
-
571
- # Checks equality by comparing each attribute.
572
- # @param [Object] Object to be compared
573
- def ==(other)
574
- return true if self.equal?(other)
575
- self.class == other.class &&
576
- save_format == other.save_format &&
577
- file_name == other.file_name &&
578
- dml_rendering_mode == other.dml_rendering_mode &&
579
- dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
580
- zip_output == other.zip_output &&
581
- update_last_saved_time_property == other.update_last_saved_time_property &&
582
- update_sdt_content == other.update_sdt_content &&
583
- update_fields == other.update_fields &&
584
- allow_negative_indent == other.allow_negative_indent &&
585
- css_class_name_prefix == other.css_class_name_prefix &&
586
- css_style_sheet_file_name == other.css_style_sheet_file_name &&
587
- css_style_sheet_type == other.css_style_sheet_type &&
588
- document_split_criteria == other.document_split_criteria &&
589
- document_split_heading_level == other.document_split_heading_level &&
590
- encoding == other.encoding &&
591
- export_document_properties == other.export_document_properties &&
592
- export_drop_down_form_field_as_text == other.export_drop_down_form_field_as_text &&
593
- export_font_resources == other.export_font_resources &&
594
- export_fonts_as_base64 == other.export_fonts_as_base64 &&
595
- export_headers_footers_mode == other.export_headers_footers_mode &&
596
- export_images_as_base64 == other.export_images_as_base64 &&
597
- export_language_information == other.export_language_information &&
598
- export_list_labels == other.export_list_labels &&
599
- export_original_url_for_linked_images == other.export_original_url_for_linked_images &&
600
- export_page_margins == other.export_page_margins &&
601
- export_page_setup == other.export_page_setup &&
602
- export_relative_font_size == other.export_relative_font_size &&
603
- export_roundtrip_information == other.export_roundtrip_information &&
604
- export_text_box_as_svg == other.export_text_box_as_svg &&
605
- export_text_input_form_field_as_text == other.export_text_input_form_field_as_text &&
606
- export_toc_page_numbers == other.export_toc_page_numbers &&
607
- export_xhtml_transitional == other.export_xhtml_transitional &&
608
- font_resources_subsetting_size_threshold == other.font_resources_subsetting_size_threshold &&
609
- fonts_folder == other.fonts_folder &&
610
- fonts_folder_alias == other.fonts_folder_alias &&
611
- html_version == other.html_version &&
612
- image_resolution == other.image_resolution &&
613
- images_folder == other.images_folder &&
614
- images_folder_alias == other.images_folder_alias &&
615
- metafile_format == other.metafile_format &&
616
- office_math_output_mode == other.office_math_output_mode &&
617
- pretty_format == other.pretty_format &&
618
- resolve_font_names == other.resolve_font_names &&
619
- resource_folder == other.resource_folder &&
620
- resource_folder_alias == other.resource_folder_alias &&
621
- scale_image_to_shape_size == other.scale_image_to_shape_size &&
622
- table_width_output_mode == other.table_width_output_mode &&
623
- export_cid_urls_for_mhtml_resources == other.export_cid_urls_for_mhtml_resources
624
- end
625
-
626
- # @see the `==` method
627
- # @param [Object] Object to be compared
628
- def eql?(other)
629
- self == other
630
- end
631
-
632
- # Calculates hash code according to all attributes.
633
- # @return [Fixnum] Hash code
634
- def hash
635
- [save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, export_cid_urls_for_mhtml_resources].hash
636
- end
637
-
638
- # Builds the object from hash
639
- # @param [Hash] attributes Model attributes in the form of hash
640
- # @return [Object] Returns the model itself
641
- def build_from_hash(attributes)
642
- return nil unless attributes.is_a?(Hash)
643
- self.class.swagger_types.each_pair do |key, type|
644
- if type =~ /\AArray<(.*)>/i
645
- # check to ensure the input is an array given that the the attribute
646
- # is documented as an array but the input is not
647
- if attributes[self.class.attribute_map[key]].is_a?(Array)
648
- self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
649
- end
650
- elsif !attributes[self.class.attribute_map[key]].nil?
651
- self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
652
- end
653
- # or else data not found in attributes(hash), not an issue as the data can be optional
654
- end
655
-
656
- self
657
- end
658
-
659
- # Deserializes the data based on type
660
- # @param string type Data type
661
- # @param string value Value to be deserialized
662
- # @return [Object] Deserialized data
663
- def _deserialize(type, value)
664
- case type.to_sym
665
- when :DateTime
666
- Time.at(/\d/.match(value)[0].to_f).to_datetime
667
- when :Date
668
- Time.at(/\d/.match(value)[0].to_f).to_date
669
- when :String
670
- value.to_s
671
- when :Integer
672
- value.to_i
673
- when :Float
674
- value.to_f
675
- when :BOOLEAN
676
- if value.to_s =~ /\A(true|t|yes|y|1)\z/i
677
- true
678
- else
679
- false
680
- end
681
- when :Object
682
- # generic object (usually a Hash), return directly
683
- value
684
- when /\AArray<(?<inner_type>.+)>\z/
685
- inner_type = Regexp.last_match[:inner_type]
686
- value.map { |v| _deserialize(inner_type, v) }
687
- when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
688
- k_type = Regexp.last_match[:k_type]
689
- v_type = Regexp.last_match[:v_type]
690
- {}.tap do |hash|
691
- value.each do |k, v|
692
- hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
693
- end
694
- end
695
- else
696
- # model
697
- temp_model = AsposeWordsCloud.const_get(type).new
698
- temp_model.build_from_hash(value)
699
- end
700
- end
701
-
702
- # Returns the string representation of the object
703
- # @return [String] String presentation of the object
704
- def to_s
705
- to_hash.to_s
706
- end
707
-
708
- # to_body is an alias to to_hash (backward compatibility)
709
- # @return [Hash] Returns the object in the form of hash
710
- def to_body
711
- to_hash
712
- end
713
-
714
- # Returns the object in the form of hash
715
- # @return [Hash] Returns the object in the form of hash
716
- def to_hash
717
- hash = {}
718
- self.class.attribute_map.each_pair do |attr, param|
719
- value = self.send(attr)
720
- next if value.nil?
721
- hash[param] = _to_hash(value)
722
- end
723
- hash
724
- end
725
-
726
- # Outputs non-array value in the form of hash
727
- # For object, use to_hash. Otherwise, just return the value
728
- # @param [Object] value Any valid value
729
- # @return [Hash] Returns the value in the form of hash
730
- def _to_hash(value)
731
- if value.is_a?(Array)
732
- value.compact.map { |v| _to_hash(v) }
733
- elsif value.is_a?(Hash)
734
- {}.tap do |hash|
735
- value.each { |k, v| hash[k] = _to_hash(v) }
736
- end
737
- elsif value.respond_to? :to_hash
738
- value.to_hash
739
- else
740
- value
741
- end
742
- end
743
-
744
- end
745
-
746
- end
1
+
2
+ require 'date'
3
+
4
+ module AsposeWordsCloud
5
+ #
6
+ # --------------------------------------------------------------------------------------------------------------------
7
+ # <copyright company="Aspose" file="MhtmlSaveOptionsData.rb">
8
+ # Copyright (c) 2019 Aspose.Words for Cloud
9
+ # </copyright>
10
+ # <summary>
11
+ # Permission is hereby granted, free of charge, to any person obtaining a copy
12
+ # of this software and associated documentation files (the "Software"), to deal
13
+ # in the Software without restriction, including without limitation the rights
14
+ # to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15
+ # copies of the Software, and to permit persons to whom the Software is
16
+ # furnished to do so, subject to the following conditions:
17
+ #
18
+ # The above copyright notice and this permission notice shall be included in all
19
+ # copies or substantial portions of the Software.
20
+ #
21
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22
+ # IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23
+ # FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24
+ # AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25
+ # LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26
+ # OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27
+ # SOFTWARE.
28
+ # </summary>
29
+ # --------------------------------------------------------------------------------------------------------------------
30
+ #
31
+
32
+ # Container class for mhtml save options.
33
+ class MhtmlSaveOptionsData
34
+ # Gets or sets specifies whether negative left and right indents of paragraphs are allowed (not normalized).
35
+ attr_accessor :allow_negative_indent
36
+
37
+ # Gets or sets specifies a prefix which is added to all CSS class names. Default value is an empty string and generated CSS class names have no common prefix. If this value is not empty, all CSS classes generated by Aspose.Words will start with the specified prefix.This might be useful, for example, if you add custom CSS to generated documents and want to prevent class name conflicts. If the value is not null or empty, it must be a valid CSS identifier.
38
+ attr_accessor :css_class_name_prefix
39
+
40
+ # Gets or sets specifies the name of the CSS file written when the document is exported to HTML.
41
+ attr_accessor :css_style_sheet_file_name
42
+
43
+ # Gets or sets specifies how CSS styles are exported.
44
+ attr_accessor :css_style_sheet_type
45
+
46
+ # Gets or sets specifies how the document should be split when saving.
47
+ attr_accessor :document_split_criteria
48
+
49
+ # Gets or sets specifies the maximum level of headings at which to split the document.
50
+ attr_accessor :document_split_heading_level
51
+
52
+ # Gets or sets specifies the encoding to use when exporting.
53
+ attr_accessor :encoding
54
+
55
+ # Gets or sets specifies whether to export built-in and custom document properties.
56
+ attr_accessor :export_document_properties
57
+
58
+ # Gets or sets controls how drop-down form fields are saved to HTML. Default value is false.
59
+ attr_accessor :export_drop_down_form_field_as_text
60
+
61
+ # Gets or sets specifies whether font resources should be exported.
62
+ attr_accessor :export_font_resources
63
+
64
+ # Gets or sets specifies whether fonts resources should be embedded to HTML in Base64 encoding. Default is false.
65
+ attr_accessor :export_fonts_as_base64
66
+
67
+ # Gets or sets specifies how headers and footers are output.
68
+ attr_accessor :export_headers_footers_mode
69
+
70
+ # Gets or sets specifies whether images are saved in Base64 format.
71
+ attr_accessor :export_images_as_base64
72
+
73
+ # Gets or sets specifies whether language information is exported.
74
+ attr_accessor :export_language_information
75
+
76
+ # Gets or sets controls how list labels are output.
77
+ attr_accessor :export_list_labels
78
+
79
+ # Gets or sets specifies whether original URL should be used as the URL of the linked images. Default value is false.
80
+ attr_accessor :export_original_url_for_linked_images
81
+
82
+ # Gets or sets specifies whether page margins is exported to HTML, MHTML or EPUB. Default is false.
83
+ attr_accessor :export_page_margins
84
+
85
+ # Gets or sets specifies whether page setup is exported.
86
+ attr_accessor :export_page_setup
87
+
88
+ # Gets or sets specifies whether font sizes should be output in relative units when saving.
89
+ attr_accessor :export_relative_font_size
90
+
91
+ # Gets or sets specifies whether to write the roundtrip information when saving to HTML Default value is true.
92
+ attr_accessor :export_roundtrip_information
93
+
94
+ # Gets or sets controls how textboxes represented by Aspose.Words.Drawing.Shape are saved to HTML, MHTML or EPUB. Default value is false. When set to true, exports textboxes as inline \"svg\" elements. When false, exports as \"image\" elements.
95
+ attr_accessor :export_text_box_as_svg
96
+
97
+ # Gets or sets controls how text input form fields are saved.
98
+ attr_accessor :export_text_input_form_field_as_text
99
+
100
+ # Gets or sets specifies whether to write page numbers to table of contents when saving.
101
+ attr_accessor :export_toc_page_numbers
102
+
103
+ # Gets or sets specifies whether to write the DOCTYPE declaration when saving.
104
+ attr_accessor :export_xhtml_transitional
105
+
106
+ # Gets or sets controls which font resources need subsetting when saving.
107
+ attr_accessor :font_resources_subsetting_size_threshold
108
+
109
+ # Gets or sets specifies the physical folder where fonts are saved when exporting a document.
110
+ attr_accessor :fonts_folder
111
+
112
+ # Gets or sets specifies the name of the folder used to construct font URIs.
113
+ attr_accessor :fonts_folder_alias
114
+
115
+ # Gets or sets specifies version of HTML standard that should be used when saving the document to HTML or MHTML. Default value is Aspose.Words.Saving.HtmlVersion.Xhtml.
116
+ attr_accessor :html_version
117
+
118
+ # Gets or sets specifies the output resolution for images when exporting.
119
+ attr_accessor :image_resolution
120
+
121
+ # Gets or sets specifies the physical folder where images are saved when exporting a document.
122
+ attr_accessor :images_folder
123
+
124
+ # Gets or sets specifies the name of the folder used to construct image URIs.
125
+ attr_accessor :images_folder_alias
126
+
127
+ # Gets or sets specifies in what format metafiles are saved when exporting to HTML, MHTML, or EPUB. Default value is Aspose.Words.Saving.HtmlMetafileFormat.Png, meaning that metafiles are rendered to raster PNG images. Metafiles are not natively displayed by HTML browsers. By default, Aspose.Words converts WMF and EMF images into PNG files when exporting to HTML.Other options are to convert metafiles to SVG images or to export them as is without conversion. Some image transforms, in particular image cropping, will not be applied to metafile images if they are exported to HTML without conversion.
128
+ attr_accessor :metafile_format
129
+
130
+ # Gets or sets controls how OfficeMath objects are exported to HTML, MHTML or EPUB. Default value is HtmlOfficeMathOutputMode.Image.
131
+ attr_accessor :office_math_output_mode
132
+
133
+ # Gets or sets specifies whether or not use pretty formats output.
134
+ attr_accessor :pretty_format
135
+
136
+ # Gets or sets specifies whether font family names used in the document are resolved and substituted according to FontSettings when being written into HTML-based formats. default value is false.
137
+ attr_accessor :resolve_font_names
138
+
139
+ # Gets or sets specifies a physical folder where all resources like images, fonts, and external CSS are saved when a document is exported to HTML. Default is an empty string.
140
+ attr_accessor :resource_folder
141
+
142
+ # Gets or sets specifies the name of the folder used to construct URIs of all resources written into an HTML document. Default is an empty string.
143
+ attr_accessor :resource_folder_alias
144
+
145
+ # Gets or sets specifies whether images are scaled by Aspose.Words to the bounding shape size when exporting.
146
+ attr_accessor :scale_image_to_shape_size
147
+
148
+ # Gets or sets controls how table, row and cell widths are exported.
149
+ attr_accessor :table_width_output_mode
150
+
151
+ # Gets or sets format of save.
152
+ attr_accessor :save_format
153
+
154
+ # Gets or sets name of destination file.
155
+ attr_accessor :file_name
156
+
157
+ # Gets or sets a value determining how DrawingML shapes are rendered. { Fallback | DrawingML }.
158
+ attr_accessor :dml_rendering_mode
159
+
160
+ # Gets or sets a value determining how DrawingML effects are rendered. { Simplified | None | Fine }.
161
+ attr_accessor :dml_effects_rendering_mode
162
+
163
+ # Gets or sets controls zip output or not. Default value is false.
164
+ attr_accessor :zip_output
165
+
166
+ # Gets or sets a value determining whether the Aspose.Words.Properties.BuiltInDocumentProperties.LastSavedTime property is updated before saving.
167
+ attr_accessor :update_last_saved_time_property
168
+
169
+ # Gets or sets value determining whether content of StructuredDocumentTag is updated before saving.
170
+ attr_accessor :update_sdt_content
171
+
172
+ # Gets or sets a value determining if fields should be updated before saving the document to a fixed page format. Default value for this property is. true
173
+ attr_accessor :update_fields
174
+
175
+ # Gets or sets specifies whether to use CID (Content-ID) URLs to reference resources (images, fonts, CSS) included in MHTML documents. Default value is false.
176
+ attr_accessor :export_cid_urls_for_mhtml_resources
177
+
178
+ class EnumAttributeValidator
179
+ attr_reader :datatype
180
+ attr_reader :allowable_values
181
+
182
+ def initialize(datatype, allowable_values)
183
+ @allowable_values = allowable_values.map do |value|
184
+ case datatype.to_s
185
+ when /Integer/i
186
+ value.to_i
187
+ when /Float/i
188
+ value.to_f
189
+ else
190
+ value
191
+ end
192
+ end
193
+ end
194
+
195
+ def valid?(value)
196
+ !value || allowable_values.include?(value)
197
+ end
198
+ end
199
+
200
+ # Attribute mapping from ruby-style variable name to JSON key.
201
+ def self.attribute_map
202
+ {
203
+ :'allow_negative_indent' => :'AllowNegativeIndent',
204
+ :'css_class_name_prefix' => :'CssClassNamePrefix',
205
+ :'css_style_sheet_file_name' => :'CssStyleSheetFileName',
206
+ :'css_style_sheet_type' => :'CssStyleSheetType',
207
+ :'document_split_criteria' => :'DocumentSplitCriteria',
208
+ :'document_split_heading_level' => :'DocumentSplitHeadingLevel',
209
+ :'encoding' => :'Encoding',
210
+ :'export_document_properties' => :'ExportDocumentProperties',
211
+ :'export_drop_down_form_field_as_text' => :'ExportDropDownFormFieldAsText',
212
+ :'export_font_resources' => :'ExportFontResources',
213
+ :'export_fonts_as_base64' => :'ExportFontsAsBase64',
214
+ :'export_headers_footers_mode' => :'ExportHeadersFootersMode',
215
+ :'export_images_as_base64' => :'ExportImagesAsBase64',
216
+ :'export_language_information' => :'ExportLanguageInformation',
217
+ :'export_list_labels' => :'ExportListLabels',
218
+ :'export_original_url_for_linked_images' => :'ExportOriginalUrlForLinkedImages',
219
+ :'export_page_margins' => :'ExportPageMargins',
220
+ :'export_page_setup' => :'ExportPageSetup',
221
+ :'export_relative_font_size' => :'ExportRelativeFontSize',
222
+ :'export_roundtrip_information' => :'ExportRoundtripInformation',
223
+ :'export_text_box_as_svg' => :'ExportTextBoxAsSvg',
224
+ :'export_text_input_form_field_as_text' => :'ExportTextInputFormFieldAsText',
225
+ :'export_toc_page_numbers' => :'ExportTocPageNumbers',
226
+ :'export_xhtml_transitional' => :'ExportXhtmlTransitional',
227
+ :'font_resources_subsetting_size_threshold' => :'FontResourcesSubsettingSizeThreshold',
228
+ :'fonts_folder' => :'FontsFolder',
229
+ :'fonts_folder_alias' => :'FontsFolderAlias',
230
+ :'html_version' => :'HtmlVersion',
231
+ :'image_resolution' => :'ImageResolution',
232
+ :'images_folder' => :'ImagesFolder',
233
+ :'images_folder_alias' => :'ImagesFolderAlias',
234
+ :'metafile_format' => :'MetafileFormat',
235
+ :'office_math_output_mode' => :'OfficeMathOutputMode',
236
+ :'pretty_format' => :'PrettyFormat',
237
+ :'resolve_font_names' => :'ResolveFontNames',
238
+ :'resource_folder' => :'ResourceFolder',
239
+ :'resource_folder_alias' => :'ResourceFolderAlias',
240
+ :'scale_image_to_shape_size' => :'ScaleImageToShapeSize',
241
+ :'table_width_output_mode' => :'TableWidthOutputMode',
242
+ :'save_format' => :'SaveFormat',
243
+ :'file_name' => :'FileName',
244
+ :'dml_rendering_mode' => :'DmlRenderingMode',
245
+ :'dml_effects_rendering_mode' => :'DmlEffectsRenderingMode',
246
+ :'zip_output' => :'ZipOutput',
247
+ :'update_last_saved_time_property' => :'UpdateLastSavedTimeProperty',
248
+ :'update_sdt_content' => :'UpdateSdtContent',
249
+ :'update_fields' => :'UpdateFields',
250
+ :'export_cid_urls_for_mhtml_resources' => :'ExportCidUrlsForMhtmlResources'
251
+ }
252
+ end
253
+
254
+ # Attribute type mapping.
255
+ def self.swagger_types
256
+ {
257
+ :'allow_negative_indent' => :'BOOLEAN',
258
+ :'css_class_name_prefix' => :'String',
259
+ :'css_style_sheet_file_name' => :'String',
260
+ :'css_style_sheet_type' => :'String',
261
+ :'document_split_criteria' => :'String',
262
+ :'document_split_heading_level' => :'Integer',
263
+ :'encoding' => :'String',
264
+ :'export_document_properties' => :'BOOLEAN',
265
+ :'export_drop_down_form_field_as_text' => :'BOOLEAN',
266
+ :'export_font_resources' => :'BOOLEAN',
267
+ :'export_fonts_as_base64' => :'BOOLEAN',
268
+ :'export_headers_footers_mode' => :'String',
269
+ :'export_images_as_base64' => :'BOOLEAN',
270
+ :'export_language_information' => :'BOOLEAN',
271
+ :'export_list_labels' => :'String',
272
+ :'export_original_url_for_linked_images' => :'BOOLEAN',
273
+ :'export_page_margins' => :'BOOLEAN',
274
+ :'export_page_setup' => :'BOOLEAN',
275
+ :'export_relative_font_size' => :'BOOLEAN',
276
+ :'export_roundtrip_information' => :'BOOLEAN',
277
+ :'export_text_box_as_svg' => :'BOOLEAN',
278
+ :'export_text_input_form_field_as_text' => :'BOOLEAN',
279
+ :'export_toc_page_numbers' => :'BOOLEAN',
280
+ :'export_xhtml_transitional' => :'BOOLEAN',
281
+ :'font_resources_subsetting_size_threshold' => :'Integer',
282
+ :'fonts_folder' => :'String',
283
+ :'fonts_folder_alias' => :'String',
284
+ :'html_version' => :'String',
285
+ :'image_resolution' => :'Integer',
286
+ :'images_folder' => :'String',
287
+ :'images_folder_alias' => :'String',
288
+ :'metafile_format' => :'String',
289
+ :'office_math_output_mode' => :'String',
290
+ :'pretty_format' => :'BOOLEAN',
291
+ :'resolve_font_names' => :'BOOLEAN',
292
+ :'resource_folder' => :'String',
293
+ :'resource_folder_alias' => :'String',
294
+ :'scale_image_to_shape_size' => :'BOOLEAN',
295
+ :'table_width_output_mode' => :'String',
296
+ :'save_format' => :'String',
297
+ :'file_name' => :'String',
298
+ :'dml_rendering_mode' => :'String',
299
+ :'dml_effects_rendering_mode' => :'String',
300
+ :'zip_output' => :'BOOLEAN',
301
+ :'update_last_saved_time_property' => :'BOOLEAN',
302
+ :'update_sdt_content' => :'BOOLEAN',
303
+ :'update_fields' => :'BOOLEAN',
304
+ :'export_cid_urls_for_mhtml_resources' => :'BOOLEAN'
305
+ }
306
+ end
307
+
308
+ # Initializes the object
309
+ # @param [Hash] attributes Model attributes in the form of hash
310
+ def initialize(attributes = {})
311
+ return unless attributes.is_a?(Hash)
312
+
313
+ # convert string to symbol for hash key
314
+ attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
315
+
316
+ if attributes.key?(:'AllowNegativeIndent')
317
+ self.allow_negative_indent = attributes[:'AllowNegativeIndent']
318
+ end
319
+
320
+ if attributes.key?(:'CssClassNamePrefix')
321
+ self.css_class_name_prefix = attributes[:'CssClassNamePrefix']
322
+ end
323
+
324
+ if attributes.key?(:'CssStyleSheetFileName')
325
+ self.css_style_sheet_file_name = attributes[:'CssStyleSheetFileName']
326
+ end
327
+
328
+ if attributes.key?(:'CssStyleSheetType')
329
+ self.css_style_sheet_type = attributes[:'CssStyleSheetType']
330
+ end
331
+
332
+ if attributes.key?(:'DocumentSplitCriteria')
333
+ self.document_split_criteria = attributes[:'DocumentSplitCriteria']
334
+ end
335
+
336
+ if attributes.key?(:'DocumentSplitHeadingLevel')
337
+ self.document_split_heading_level = attributes[:'DocumentSplitHeadingLevel']
338
+ end
339
+
340
+ if attributes.key?(:'Encoding')
341
+ self.encoding = attributes[:'Encoding']
342
+ end
343
+
344
+ if attributes.key?(:'ExportDocumentProperties')
345
+ self.export_document_properties = attributes[:'ExportDocumentProperties']
346
+ end
347
+
348
+ if attributes.key?(:'ExportDropDownFormFieldAsText')
349
+ self.export_drop_down_form_field_as_text = attributes[:'ExportDropDownFormFieldAsText']
350
+ end
351
+
352
+ if attributes.key?(:'ExportFontResources')
353
+ self.export_font_resources = attributes[:'ExportFontResources']
354
+ end
355
+
356
+ if attributes.key?(:'ExportFontsAsBase64')
357
+ self.export_fonts_as_base64 = attributes[:'ExportFontsAsBase64']
358
+ end
359
+
360
+ if attributes.key?(:'ExportHeadersFootersMode')
361
+ self.export_headers_footers_mode = attributes[:'ExportHeadersFootersMode']
362
+ end
363
+
364
+ if attributes.key?(:'ExportImagesAsBase64')
365
+ self.export_images_as_base64 = attributes[:'ExportImagesAsBase64']
366
+ end
367
+
368
+ if attributes.key?(:'ExportLanguageInformation')
369
+ self.export_language_information = attributes[:'ExportLanguageInformation']
370
+ end
371
+
372
+ if attributes.key?(:'ExportListLabels')
373
+ self.export_list_labels = attributes[:'ExportListLabels']
374
+ end
375
+
376
+ if attributes.key?(:'ExportOriginalUrlForLinkedImages')
377
+ self.export_original_url_for_linked_images = attributes[:'ExportOriginalUrlForLinkedImages']
378
+ end
379
+
380
+ if attributes.key?(:'ExportPageMargins')
381
+ self.export_page_margins = attributes[:'ExportPageMargins']
382
+ end
383
+
384
+ if attributes.key?(:'ExportPageSetup')
385
+ self.export_page_setup = attributes[:'ExportPageSetup']
386
+ end
387
+
388
+ if attributes.key?(:'ExportRelativeFontSize')
389
+ self.export_relative_font_size = attributes[:'ExportRelativeFontSize']
390
+ end
391
+
392
+ if attributes.key?(:'ExportRoundtripInformation')
393
+ self.export_roundtrip_information = attributes[:'ExportRoundtripInformation']
394
+ end
395
+
396
+ if attributes.key?(:'ExportTextBoxAsSvg')
397
+ self.export_text_box_as_svg = attributes[:'ExportTextBoxAsSvg']
398
+ end
399
+
400
+ if attributes.key?(:'ExportTextInputFormFieldAsText')
401
+ self.export_text_input_form_field_as_text = attributes[:'ExportTextInputFormFieldAsText']
402
+ end
403
+
404
+ if attributes.key?(:'ExportTocPageNumbers')
405
+ self.export_toc_page_numbers = attributes[:'ExportTocPageNumbers']
406
+ end
407
+
408
+ if attributes.key?(:'ExportXhtmlTransitional')
409
+ self.export_xhtml_transitional = attributes[:'ExportXhtmlTransitional']
410
+ end
411
+
412
+ if attributes.key?(:'FontResourcesSubsettingSizeThreshold')
413
+ self.font_resources_subsetting_size_threshold = attributes[:'FontResourcesSubsettingSizeThreshold']
414
+ end
415
+
416
+ if attributes.key?(:'FontsFolder')
417
+ self.fonts_folder = attributes[:'FontsFolder']
418
+ end
419
+
420
+ if attributes.key?(:'FontsFolderAlias')
421
+ self.fonts_folder_alias = attributes[:'FontsFolderAlias']
422
+ end
423
+
424
+ if attributes.key?(:'HtmlVersion')
425
+ self.html_version = attributes[:'HtmlVersion']
426
+ end
427
+
428
+ if attributes.key?(:'ImageResolution')
429
+ self.image_resolution = attributes[:'ImageResolution']
430
+ end
431
+
432
+ if attributes.key?(:'ImagesFolder')
433
+ self.images_folder = attributes[:'ImagesFolder']
434
+ end
435
+
436
+ if attributes.key?(:'ImagesFolderAlias')
437
+ self.images_folder_alias = attributes[:'ImagesFolderAlias']
438
+ end
439
+
440
+ if attributes.key?(:'MetafileFormat')
441
+ self.metafile_format = attributes[:'MetafileFormat']
442
+ end
443
+
444
+ if attributes.key?(:'OfficeMathOutputMode')
445
+ self.office_math_output_mode = attributes[:'OfficeMathOutputMode']
446
+ end
447
+
448
+ if attributes.key?(:'PrettyFormat')
449
+ self.pretty_format = attributes[:'PrettyFormat']
450
+ end
451
+
452
+ if attributes.key?(:'ResolveFontNames')
453
+ self.resolve_font_names = attributes[:'ResolveFontNames']
454
+ end
455
+
456
+ if attributes.key?(:'ResourceFolder')
457
+ self.resource_folder = attributes[:'ResourceFolder']
458
+ end
459
+
460
+ if attributes.key?(:'ResourceFolderAlias')
461
+ self.resource_folder_alias = attributes[:'ResourceFolderAlias']
462
+ end
463
+
464
+ if attributes.key?(:'ScaleImageToShapeSize')
465
+ self.scale_image_to_shape_size = attributes[:'ScaleImageToShapeSize']
466
+ end
467
+
468
+ if attributes.key?(:'TableWidthOutputMode')
469
+ self.table_width_output_mode = attributes[:'TableWidthOutputMode']
470
+ end
471
+
472
+ if attributes.key?(:'SaveFormat')
473
+ self.save_format = attributes[:'SaveFormat']
474
+ end
475
+
476
+ if attributes.key?(:'FileName')
477
+ self.file_name = attributes[:'FileName']
478
+ end
479
+
480
+ if attributes.key?(:'DmlRenderingMode')
481
+ self.dml_rendering_mode = attributes[:'DmlRenderingMode']
482
+ end
483
+
484
+ if attributes.key?(:'DmlEffectsRenderingMode')
485
+ self.dml_effects_rendering_mode = attributes[:'DmlEffectsRenderingMode']
486
+ end
487
+
488
+ if attributes.key?(:'ZipOutput')
489
+ self.zip_output = attributes[:'ZipOutput']
490
+ end
491
+
492
+ if attributes.key?(:'UpdateLastSavedTimeProperty')
493
+ self.update_last_saved_time_property = attributes[:'UpdateLastSavedTimeProperty']
494
+ end
495
+
496
+ if attributes.key?(:'UpdateSdtContent')
497
+ self.update_sdt_content = attributes[:'UpdateSdtContent']
498
+ end
499
+
500
+ if attributes.key?(:'UpdateFields')
501
+ self.update_fields = attributes[:'UpdateFields']
502
+ end
503
+
504
+ if attributes.key?(:'ExportCidUrlsForMhtmlResources')
505
+ self.export_cid_urls_for_mhtml_resources = attributes[:'ExportCidUrlsForMhtmlResources']
506
+ end
507
+
508
+ end
509
+
510
+ # Show invalid properties with the reasons. Usually used together with valid?
511
+ # @return Array for valid properies with the reasons
512
+ def list_invalid_properties
513
+ invalid_properties = []
514
+ return invalid_properties
515
+ end
516
+
517
+ # Check to see if the all the properties in the model are valid
518
+ # @return true if the model is valid
519
+ def valid?
520
+ html_version_validator = EnumAttributeValidator.new('String', ["Xhtml", "Html5"])
521
+ return false unless html_version_validator.valid?(@html_version)
522
+ metafile_format_validator = EnumAttributeValidator.new('String', ["Png", "Svg", "EmfOrWmf"])
523
+ return false unless metafile_format_validator.valid?(@metafile_format)
524
+ office_math_output_mode_validator = EnumAttributeValidator.new('String', ["Image", "MathML", "Text"])
525
+ return false unless office_math_output_mode_validator.valid?(@office_math_output_mode)
526
+ return true
527
+ end
528
+
529
+ # Custom attribute writer method checking allowed values (enum).
530
+ # @param [Object] html_version Object to be assigned
531
+ def html_version=(html_version)
532
+ validator = EnumAttributeValidator.new('String', ["Xhtml", "Html5"])
533
+ if html_version.to_i == 0
534
+ unless validator.valid?(html_version)
535
+ raise ArgumentError, "invalid value for 'html_version', must be one of #{validator.allowable_values}."
536
+ end
537
+ @html_version = html_version
538
+ else
539
+ @html_version = validator.allowable_values[html_version.to_i]
540
+ end
541
+ end
542
+
543
+ # Custom attribute writer method checking allowed values (enum).
544
+ # @param [Object] metafile_format Object to be assigned
545
+ def metafile_format=(metafile_format)
546
+ validator = EnumAttributeValidator.new('String', ["Png", "Svg", "EmfOrWmf"])
547
+ if metafile_format.to_i == 0
548
+ unless validator.valid?(metafile_format)
549
+ raise ArgumentError, "invalid value for 'metafile_format', must be one of #{validator.allowable_values}."
550
+ end
551
+ @metafile_format = metafile_format
552
+ else
553
+ @metafile_format = validator.allowable_values[metafile_format.to_i]
554
+ end
555
+ end
556
+
557
+ # Custom attribute writer method checking allowed values (enum).
558
+ # @param [Object] office_math_output_mode Object to be assigned
559
+ def office_math_output_mode=(office_math_output_mode)
560
+ validator = EnumAttributeValidator.new('String', ["Image", "MathML", "Text"])
561
+ if office_math_output_mode.to_i == 0
562
+ unless validator.valid?(office_math_output_mode)
563
+ raise ArgumentError, "invalid value for 'office_math_output_mode', must be one of #{validator.allowable_values}."
564
+ end
565
+ @office_math_output_mode = office_math_output_mode
566
+ else
567
+ @office_math_output_mode = validator.allowable_values[office_math_output_mode.to_i]
568
+ end
569
+ end
570
+
571
+ # Checks equality by comparing each attribute.
572
+ # @param [Object] Object to be compared
573
+ def ==(other)
574
+ return true if self.equal?(other)
575
+ self.class == other.class &&
576
+ allow_negative_indent == other.allow_negative_indent &&
577
+ css_class_name_prefix == other.css_class_name_prefix &&
578
+ css_style_sheet_file_name == other.css_style_sheet_file_name &&
579
+ css_style_sheet_type == other.css_style_sheet_type &&
580
+ document_split_criteria == other.document_split_criteria &&
581
+ document_split_heading_level == other.document_split_heading_level &&
582
+ encoding == other.encoding &&
583
+ export_document_properties == other.export_document_properties &&
584
+ export_drop_down_form_field_as_text == other.export_drop_down_form_field_as_text &&
585
+ export_font_resources == other.export_font_resources &&
586
+ export_fonts_as_base64 == other.export_fonts_as_base64 &&
587
+ export_headers_footers_mode == other.export_headers_footers_mode &&
588
+ export_images_as_base64 == other.export_images_as_base64 &&
589
+ export_language_information == other.export_language_information &&
590
+ export_list_labels == other.export_list_labels &&
591
+ export_original_url_for_linked_images == other.export_original_url_for_linked_images &&
592
+ export_page_margins == other.export_page_margins &&
593
+ export_page_setup == other.export_page_setup &&
594
+ export_relative_font_size == other.export_relative_font_size &&
595
+ export_roundtrip_information == other.export_roundtrip_information &&
596
+ export_text_box_as_svg == other.export_text_box_as_svg &&
597
+ export_text_input_form_field_as_text == other.export_text_input_form_field_as_text &&
598
+ export_toc_page_numbers == other.export_toc_page_numbers &&
599
+ export_xhtml_transitional == other.export_xhtml_transitional &&
600
+ font_resources_subsetting_size_threshold == other.font_resources_subsetting_size_threshold &&
601
+ fonts_folder == other.fonts_folder &&
602
+ fonts_folder_alias == other.fonts_folder_alias &&
603
+ html_version == other.html_version &&
604
+ image_resolution == other.image_resolution &&
605
+ images_folder == other.images_folder &&
606
+ images_folder_alias == other.images_folder_alias &&
607
+ metafile_format == other.metafile_format &&
608
+ office_math_output_mode == other.office_math_output_mode &&
609
+ pretty_format == other.pretty_format &&
610
+ resolve_font_names == other.resolve_font_names &&
611
+ resource_folder == other.resource_folder &&
612
+ resource_folder_alias == other.resource_folder_alias &&
613
+ scale_image_to_shape_size == other.scale_image_to_shape_size &&
614
+ table_width_output_mode == other.table_width_output_mode &&
615
+ save_format == other.save_format &&
616
+ file_name == other.file_name &&
617
+ dml_rendering_mode == other.dml_rendering_mode &&
618
+ dml_effects_rendering_mode == other.dml_effects_rendering_mode &&
619
+ zip_output == other.zip_output &&
620
+ update_last_saved_time_property == other.update_last_saved_time_property &&
621
+ update_sdt_content == other.update_sdt_content &&
622
+ update_fields == other.update_fields &&
623
+ export_cid_urls_for_mhtml_resources == other.export_cid_urls_for_mhtml_resources
624
+ end
625
+
626
+ # @see the `==` method
627
+ # @param [Object] Object to be compared
628
+ def eql?(other)
629
+ self == other
630
+ end
631
+
632
+ # Calculates hash code according to all attributes.
633
+ # @return [Fixnum] Hash code
634
+ def hash
635
+ [allow_negative_indent, css_class_name_prefix, css_style_sheet_file_name, css_style_sheet_type, document_split_criteria, document_split_heading_level, encoding, export_document_properties, export_drop_down_form_field_as_text, export_font_resources, export_fonts_as_base64, export_headers_footers_mode, export_images_as_base64, export_language_information, export_list_labels, export_original_url_for_linked_images, export_page_margins, export_page_setup, export_relative_font_size, export_roundtrip_information, export_text_box_as_svg, export_text_input_form_field_as_text, export_toc_page_numbers, export_xhtml_transitional, font_resources_subsetting_size_threshold, fonts_folder, fonts_folder_alias, html_version, image_resolution, images_folder, images_folder_alias, metafile_format, office_math_output_mode, pretty_format, resolve_font_names, resource_folder, resource_folder_alias, scale_image_to_shape_size, table_width_output_mode, save_format, file_name, dml_rendering_mode, dml_effects_rendering_mode, zip_output, update_last_saved_time_property, update_sdt_content, update_fields, export_cid_urls_for_mhtml_resources].hash
636
+ end
637
+
638
+ # Builds the object from hash
639
+ # @param [Hash] attributes Model attributes in the form of hash
640
+ # @return [Object] Returns the model itself
641
+ def build_from_hash(attributes)
642
+ return nil unless attributes.is_a?(Hash)
643
+ self.class.swagger_types.each_pair do |key, type|
644
+ if type =~ /\AArray<(.*)>/i
645
+ # check to ensure the input is an array given that the the attribute
646
+ # is documented as an array but the input is not
647
+ if attributes[self.class.attribute_map[key]].is_a?(Array)
648
+ self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
649
+ end
650
+ elsif !attributes[self.class.attribute_map[key]].nil?
651
+ self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
652
+ end
653
+ # or else data not found in attributes(hash), not an issue as the data can be optional
654
+ end
655
+
656
+ self
657
+ end
658
+
659
+ # Deserializes the data based on type
660
+ # @param string type Data type
661
+ # @param string value Value to be deserialized
662
+ # @return [Object] Deserialized data
663
+ def _deserialize(type, value)
664
+ case type.to_sym
665
+ when :DateTime
666
+ Time.at(/\d/.match(value)[0].to_f).to_datetime
667
+ when :Date
668
+ Time.at(/\d/.match(value)[0].to_f).to_date
669
+ when :String
670
+ value.to_s
671
+ when :Integer
672
+ value.to_i
673
+ when :Float
674
+ value.to_f
675
+ when :BOOLEAN
676
+ if value.to_s =~ /\A(true|t|yes|y|1)\z/i
677
+ true
678
+ else
679
+ false
680
+ end
681
+ when :Object
682
+ # generic object (usually a Hash), return directly
683
+ value
684
+ when /\AArray<(?<inner_type>.+)>\z/
685
+ inner_type = Regexp.last_match[:inner_type]
686
+ value.map { |v| _deserialize(inner_type, v) }
687
+ when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
688
+ k_type = Regexp.last_match[:k_type]
689
+ v_type = Regexp.last_match[:v_type]
690
+ {}.tap do |hash|
691
+ value.each do |k, v|
692
+ hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
693
+ end
694
+ end
695
+ else
696
+ # model
697
+ temp_model = AsposeWordsCloud.const_get(type).new
698
+ temp_model.build_from_hash(value)
699
+ end
700
+ end
701
+
702
+ # Returns the string representation of the object
703
+ # @return [String] String presentation of the object
704
+ def to_s
705
+ to_hash.to_s
706
+ end
707
+
708
+ # to_body is an alias to to_hash (backward compatibility)
709
+ # @return [Hash] Returns the object in the form of hash
710
+ def to_body
711
+ to_hash
712
+ end
713
+
714
+ # Returns the object in the form of hash
715
+ # @return [Hash] Returns the object in the form of hash
716
+ def to_hash
717
+ hash = {}
718
+ self.class.attribute_map.each_pair do |attr, param|
719
+ value = self.send(attr)
720
+ next if value.nil?
721
+ hash[param] = _to_hash(value)
722
+ end
723
+ hash
724
+ end
725
+
726
+ # Outputs non-array value in the form of hash
727
+ # For object, use to_hash. Otherwise, just return the value
728
+ # @param [Object] value Any valid value
729
+ # @return [Hash] Returns the value in the form of hash
730
+ def _to_hash(value)
731
+ if value.is_a?(Array)
732
+ value.compact.map { |v| _to_hash(v) }
733
+ elsif value.is_a?(Hash)
734
+ {}.tap do |hash|
735
+ value.each { |k, v| hash[k] = _to_hash(v) }
736
+ end
737
+ elsif value.respond_to? :to_hash
738
+ value.to_hash
739
+ else
740
+ value
741
+ end
742
+ end
743
+
744
+ end
745
+
746
+ end