aspose_cells_cloud 23.7 → 23.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +10 -4
- data/lib/aspose_cells_cloud/api/cells_api.rb +23 -0
- data/lib/aspose_cells_cloud/models/abstract_calculation_engine.rb +234 -0
- data/lib/aspose_cells_cloud/models/abstract_calculation_monitor.rb +234 -0
- data/lib/aspose_cells_cloud/models/auto_fitter_options.rb +64 -4
- data/lib/aspose_cells_cloud/models/calculation_options.rb +40 -4
- data/lib/aspose_cells_cloud/models/{barcode_response_list.rb → chart_globalization_settings.rb} +2 -2
- data/lib/aspose_cells_cloud/models/digital_signature.rb +294 -0
- data/lib/aspose_cells_cloud/models/formula_settings.rb +330 -0
- data/lib/aspose_cells_cloud/models/globalization_settings.rb +258 -0
- data/lib/aspose_cells_cloud/models/html_save_options.rb +61 -1
- data/lib/aspose_cells_cloud/models/image_or_print_options.rb +498 -0
- data/lib/aspose_cells_cloud/models/list_column.rb +16 -4
- data/lib/aspose_cells_cloud/models/list_object.rb +73 -1
- data/lib/aspose_cells_cloud/models/ooxml_save_options.rb +49 -1
- data/lib/aspose_cells_cloud/models/pdf_save_options.rb +109 -1
- data/lib/aspose_cells_cloud/models/pivot_globalization_settings.rb +198 -0
- data/lib/aspose_cells_cloud/models/protect_workbook_requst.rb +270 -0
- data/lib/aspose_cells_cloud/models/protection.rb +402 -0
- data/lib/aspose_cells_cloud/models/query_table.rb +258 -0
- data/lib/aspose_cells_cloud/models/range_sort_request.rb +222 -0
- data/lib/aspose_cells_cloud/models/{barcode_response.rb → rendering_font.rb} +55 -43
- data/lib/aspose_cells_cloud/models/rendering_watermark.rb +330 -0
- data/lib/aspose_cells_cloud/models/workbook_settings.rb +220 -4
- data/lib/aspose_cells_cloud/models/write_protection.rb +246 -0
- data/lib/aspose_cells_cloud/models/xml_data_binding.rb +210 -0
- data/lib/aspose_cells_cloud/models/xml_map.rb +234 -0
- data/lib/aspose_cells_cloud/requests/post_lock_request.rb +120 -0
- data/lib/aspose_cells_cloud/requests/post_protect_request.rb +13 -8
- data/lib/aspose_cells_cloud/requests/post_worksheet_cells_range_sort_request.rb +138 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_insert_slicer_request.rb +159 -0
- data/lib/aspose_cells_cloud/requests/post_worksheet_list_object_remove_duplicates_request.rb +137 -0
- data/lib/aspose_cells_cloud/version.rb +1 -1
- data/lib/aspose_cells_cloud.rb +21 -2
- data/spec/api/list_objects_controller_spec.rb +35 -0
- data/spec/api/ranges_controller_spec.rb +20 -0
- data/spec/document/light_cells_spec.rb +2 -1
- data/spec/one_case_spec.rb +27 -0
- data/spec/onecase_spec.rb +28 -0
- metadata +29 -8
@@ -31,6 +31,16 @@ require 'date'
|
|
31
31
|
module AsposeCellsCloud
|
32
32
|
|
33
33
|
class HtmlSaveOptions
|
34
|
+
#
|
35
|
+
attr_accessor :export_page_headers
|
36
|
+
#
|
37
|
+
attr_accessor :export_page_footers
|
38
|
+
#
|
39
|
+
attr_accessor :export_row_column_headings
|
40
|
+
#
|
41
|
+
attr_accessor :show_all_sheets
|
42
|
+
#
|
43
|
+
attr_accessor :image_options
|
34
44
|
#
|
35
45
|
attr_accessor :save_as_single_file
|
36
46
|
#
|
@@ -117,6 +127,11 @@ module AsposeCellsCloud
|
|
117
127
|
# Attribute mapping from ruby-style variable name to JSON key.
|
118
128
|
def self.attribute_map
|
119
129
|
{
|
130
|
+
:'export_page_headers' => :'ExportPageHeaders',
|
131
|
+
:'export_page_footers' => :'ExportPageFooters',
|
132
|
+
:'export_row_column_headings' => :'ExportRowColumnHeadings',
|
133
|
+
:'show_all_sheets' => :'ShowAllSheets',
|
134
|
+
:'image_options' => :'ImageOptions',
|
120
135
|
:'save_as_single_file' => :'SaveAsSingleFile',
|
121
136
|
:'export_hidden_worksheet' => :'ExportHiddenWorksheet',
|
122
137
|
:'export_grid_lines' => :'ExportGridLines',
|
@@ -164,6 +179,11 @@ module AsposeCellsCloud
|
|
164
179
|
# Attribute type mapping.
|
165
180
|
def self.swagger_types
|
166
181
|
{
|
182
|
+
:'export_page_headers' => :'BOOLEAN',
|
183
|
+
:'export_page_footers' => :'BOOLEAN',
|
184
|
+
:'export_row_column_headings' => :'BOOLEAN',
|
185
|
+
:'show_all_sheets' => :'BOOLEAN',
|
186
|
+
:'image_options' => :'ImageOrPrintOptions',
|
167
187
|
:'save_as_single_file' => :'BOOLEAN',
|
168
188
|
:'export_hidden_worksheet' => :'BOOLEAN',
|
169
189
|
:'export_grid_lines' => :'BOOLEAN',
|
@@ -216,6 +236,21 @@ module AsposeCellsCloud
|
|
216
236
|
# convert string to symbol for hash key
|
217
237
|
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
218
238
|
|
239
|
+
if attributes.has_key?(:'ExportPageHeaders')
|
240
|
+
self.export_page_headers = attributes[:'ExportPageHeaders']
|
241
|
+
end
|
242
|
+
if attributes.has_key?(:'ExportPageFooters')
|
243
|
+
self.export_page_footers = attributes[:'ExportPageFooters']
|
244
|
+
end
|
245
|
+
if attributes.has_key?(:'ExportRowColumnHeadings')
|
246
|
+
self.export_row_column_headings = attributes[:'ExportRowColumnHeadings']
|
247
|
+
end
|
248
|
+
if attributes.has_key?(:'ShowAllSheets')
|
249
|
+
self.show_all_sheets = attributes[:'ShowAllSheets']
|
250
|
+
end
|
251
|
+
if attributes.has_key?(:'ImageOptions')
|
252
|
+
self.image_options = attributes[:'ImageOptions']
|
253
|
+
end
|
219
254
|
if attributes.has_key?(:'SaveAsSingleFile')
|
220
255
|
self.save_as_single_file = attributes[:'SaveAsSingleFile']
|
221
256
|
end
|
@@ -346,6 +381,21 @@ module AsposeCellsCloud
|
|
346
381
|
# @return Array for valid properies with the reasons
|
347
382
|
def list_invalid_properties
|
348
383
|
invalid_properties = Array.new
|
384
|
+
if @export_page_headers.nil?
|
385
|
+
invalid_properties.push("invalid value for 'export_page_headers', export_page_headers cannot be nil.")
|
386
|
+
end
|
387
|
+
if @export_page_footers.nil?
|
388
|
+
invalid_properties.push("invalid value for 'export_page_footers', export_page_footers cannot be nil.")
|
389
|
+
end
|
390
|
+
if @export_row_column_headings.nil?
|
391
|
+
invalid_properties.push("invalid value for 'export_row_column_headings', export_row_column_headings cannot be nil.")
|
392
|
+
end
|
393
|
+
if @show_all_sheets.nil?
|
394
|
+
invalid_properties.push("invalid value for 'show_all_sheets', show_all_sheets cannot be nil.")
|
395
|
+
end
|
396
|
+
if @image_options.nil?
|
397
|
+
invalid_properties.push("invalid value for 'image_options', image_options cannot be nil.")
|
398
|
+
end
|
349
399
|
if @save_as_single_file.nil?
|
350
400
|
invalid_properties.push("invalid value for 'save_as_single_file', save_as_single_file cannot be nil.")
|
351
401
|
end
|
@@ -476,6 +526,11 @@ module AsposeCellsCloud
|
|
476
526
|
# Check to see if the all the properties in the model are valid
|
477
527
|
# @return true if the model is valid
|
478
528
|
def valid?
|
529
|
+
return false if @export_page_headers.nil?
|
530
|
+
return false if @export_page_footers.nil?
|
531
|
+
return false if @export_row_column_headings.nil?
|
532
|
+
return false if @show_all_sheets.nil?
|
533
|
+
return false if @image_options.nil?
|
479
534
|
return false if @save_as_single_file.nil?
|
480
535
|
return false if @export_hidden_worksheet.nil?
|
481
536
|
return false if @export_grid_lines.nil?
|
@@ -525,6 +580,11 @@ module AsposeCellsCloud
|
|
525
580
|
def ==(o)
|
526
581
|
return true if self.equal?(o)
|
527
582
|
self.class == o.class &&
|
583
|
+
export_page_headers == o.export_page_headers &&
|
584
|
+
export_page_footers == o.export_page_footers &&
|
585
|
+
export_row_column_headings == o.export_row_column_headings &&
|
586
|
+
show_all_sheets == o.show_all_sheets &&
|
587
|
+
image_options == o.image_options &&
|
528
588
|
save_as_single_file == o.save_as_single_file &&
|
529
589
|
export_hidden_worksheet == o.export_hidden_worksheet &&
|
530
590
|
export_grid_lines == o.export_grid_lines &&
|
@@ -578,7 +638,7 @@ module AsposeCellsCloud
|
|
578
638
|
# Calculates hash code according to all attributes.
|
579
639
|
# @return [Fixnum] Hash code
|
580
640
|
def hash
|
581
|
-
[ save_as_single_file , export_hidden_worksheet , export_grid_lines , presentation_preference , cell_css_prefix , table_css_id , is_full_path_link , export_worksheet_css_separately , export_similar_border_style , merge_empty_td_forcely , export_cell_coordinate , export_extra_headings , export_headings , export_formula , add_tooltip_text , export_bogus_row_data , exclude_unused_styles , export_document_properties , export_worksheet_properties , export_workbook_properties , export_frame_scripts_and_properties , attached_files_directory , attached_files_url_prefix , encoding , export_active_worksheet_only , export_chart_image_format , export_images_as_base64 , hidden_col_display_type , hidden_row_display_type , html_cross_string_type , is_exp_image_to_temp_dir , page_title , parse_html_tag_in_cell , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
641
|
+
[ export_page_headers , export_page_footers , export_row_column_headings , show_all_sheets , image_options , save_as_single_file , export_hidden_worksheet , export_grid_lines , presentation_preference , cell_css_prefix , table_css_id , is_full_path_link , export_worksheet_css_separately , export_similar_border_style , merge_empty_td_forcely , export_cell_coordinate , export_extra_headings , export_headings , export_formula , add_tooltip_text , export_bogus_row_data , exclude_unused_styles , export_document_properties , export_worksheet_properties , export_workbook_properties , export_frame_scripts_and_properties , attached_files_directory , attached_files_url_prefix , encoding , export_active_worksheet_only , export_chart_image_format , export_images_as_base64 , hidden_col_display_type , hidden_row_display_type , html_cross_string_type , is_exp_image_to_temp_dir , page_title , parse_html_tag_in_cell , save_format , cached_file_folder , clear_data , create_directory , enable_http_compression , refresh_chart_cache , sort_names , validate_merged_areas ].hash
|
582
642
|
end
|
583
643
|
|
584
644
|
# Builds the object from hash
|
@@ -0,0 +1,498 @@
|
|
1
|
+
=begin
|
2
|
+
--------------------------------------------------------------------------------------------------------------------
|
3
|
+
<copyright company="Aspose" file="ImageOrPrintOptionsrb.cs">
|
4
|
+
Copyright (c) 2023 Aspose.Cells Cloud
|
5
|
+
</copyright>
|
6
|
+
<summary>
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
8
|
+
of this software and associated documentation files (the "Software"), to deal
|
9
|
+
in the Software without restriction, including without limitation the rights
|
10
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
11
|
+
copies of the Software, and to permit persons to whom the Software is
|
12
|
+
furnished to do so, subject to the following conditions:
|
13
|
+
|
14
|
+
The above copyright notice and this permission notice shall be included in all
|
15
|
+
copies or substantial portions of the Software.
|
16
|
+
|
17
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
18
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
19
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
20
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
21
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
22
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
23
|
+
SOFTWARE.
|
24
|
+
</summary>
|
25
|
+
--------------------------------------------------------------------------------------------------------------------
|
26
|
+
=end
|
27
|
+
|
28
|
+
|
29
|
+
require 'date'
|
30
|
+
|
31
|
+
module AsposeCellsCloud
|
32
|
+
|
33
|
+
class ImageOrPrintOptions
|
34
|
+
#
|
35
|
+
attr_accessor :text_cross_type
|
36
|
+
#
|
37
|
+
attr_accessor :gridline_type
|
38
|
+
#
|
39
|
+
attr_accessor :output_blank_page_when_nothing_to_print
|
40
|
+
#
|
41
|
+
attr_accessor :check_workbook_default_font
|
42
|
+
#
|
43
|
+
attr_accessor :default_font
|
44
|
+
#
|
45
|
+
attr_accessor :is_optimized
|
46
|
+
#
|
47
|
+
attr_accessor :page_count
|
48
|
+
#
|
49
|
+
attr_accessor :page_index
|
50
|
+
#
|
51
|
+
attr_accessor :is_font_substitution_char_granularity
|
52
|
+
#
|
53
|
+
attr_accessor :transparent
|
54
|
+
#
|
55
|
+
attr_accessor :only_area
|
56
|
+
#
|
57
|
+
attr_accessor :svg_fit_to_view_port
|
58
|
+
#
|
59
|
+
attr_accessor :embeded_image_name_in_svg
|
60
|
+
#
|
61
|
+
attr_accessor :all_columns_in_one_page_per_sheet
|
62
|
+
#
|
63
|
+
attr_accessor :print_with_status_dialog
|
64
|
+
#
|
65
|
+
attr_accessor :horizontal_resolution
|
66
|
+
#
|
67
|
+
attr_accessor :vertical_resolution
|
68
|
+
#
|
69
|
+
attr_accessor :default_edit_language
|
70
|
+
#
|
71
|
+
attr_accessor :tiff_color_depth
|
72
|
+
#
|
73
|
+
attr_accessor :tiff_compression
|
74
|
+
#
|
75
|
+
attr_accessor :printing_page
|
76
|
+
#
|
77
|
+
attr_accessor :quality
|
78
|
+
#
|
79
|
+
attr_accessor :image_type
|
80
|
+
#
|
81
|
+
attr_accessor :one_page_per_sheet
|
82
|
+
#
|
83
|
+
attr_accessor :tiff_binarization_method
|
84
|
+
|
85
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
86
|
+
def self.attribute_map
|
87
|
+
{
|
88
|
+
:'text_cross_type' => :'TextCrossType',
|
89
|
+
:'gridline_type' => :'GridlineType',
|
90
|
+
:'output_blank_page_when_nothing_to_print' => :'OutputBlankPageWhenNothingToPrint',
|
91
|
+
:'check_workbook_default_font' => :'CheckWorkbookDefaultFont',
|
92
|
+
:'default_font' => :'DefaultFont',
|
93
|
+
:'is_optimized' => :'IsOptimized',
|
94
|
+
:'page_count' => :'PageCount',
|
95
|
+
:'page_index' => :'PageIndex',
|
96
|
+
:'is_font_substitution_char_granularity' => :'IsFontSubstitutionCharGranularity',
|
97
|
+
:'transparent' => :'Transparent',
|
98
|
+
:'only_area' => :'OnlyArea',
|
99
|
+
:'svg_fit_to_view_port' => :'SVGFitToViewPort',
|
100
|
+
:'embeded_image_name_in_svg' => :'EmbededImageNameInSvg',
|
101
|
+
:'all_columns_in_one_page_per_sheet' => :'AllColumnsInOnePagePerSheet',
|
102
|
+
:'print_with_status_dialog' => :'PrintWithStatusDialog',
|
103
|
+
:'horizontal_resolution' => :'HorizontalResolution',
|
104
|
+
:'vertical_resolution' => :'VerticalResolution',
|
105
|
+
:'default_edit_language' => :'DefaultEditLanguage',
|
106
|
+
:'tiff_color_depth' => :'TiffColorDepth',
|
107
|
+
:'tiff_compression' => :'TiffCompression',
|
108
|
+
:'printing_page' => :'PrintingPage',
|
109
|
+
:'quality' => :'Quality',
|
110
|
+
:'image_type' => :'ImageType',
|
111
|
+
:'one_page_per_sheet' => :'OnePagePerSheet',
|
112
|
+
:'tiff_binarization_method' => :'TiffBinarizationMethod'
|
113
|
+
}
|
114
|
+
end
|
115
|
+
|
116
|
+
# Attribute type mapping.
|
117
|
+
def self.swagger_types
|
118
|
+
{
|
119
|
+
:'text_cross_type' => :'String',
|
120
|
+
:'gridline_type' => :'String',
|
121
|
+
:'output_blank_page_when_nothing_to_print' => :'BOOLEAN',
|
122
|
+
:'check_workbook_default_font' => :'BOOLEAN',
|
123
|
+
:'default_font' => :'String',
|
124
|
+
:'is_optimized' => :'BOOLEAN',
|
125
|
+
:'page_count' => :'Integer',
|
126
|
+
:'page_index' => :'Integer',
|
127
|
+
:'is_font_substitution_char_granularity' => :'BOOLEAN',
|
128
|
+
:'transparent' => :'BOOLEAN',
|
129
|
+
:'only_area' => :'BOOLEAN',
|
130
|
+
:'svg_fit_to_view_port' => :'BOOLEAN',
|
131
|
+
:'embeded_image_name_in_svg' => :'String',
|
132
|
+
:'all_columns_in_one_page_per_sheet' => :'BOOLEAN',
|
133
|
+
:'print_with_status_dialog' => :'BOOLEAN',
|
134
|
+
:'horizontal_resolution' => :'Integer',
|
135
|
+
:'vertical_resolution' => :'Integer',
|
136
|
+
:'default_edit_language' => :'String',
|
137
|
+
:'tiff_color_depth' => :'String',
|
138
|
+
:'tiff_compression' => :'String',
|
139
|
+
:'printing_page' => :'String',
|
140
|
+
:'quality' => :'Integer',
|
141
|
+
:'image_type' => :'String',
|
142
|
+
:'one_page_per_sheet' => :'BOOLEAN',
|
143
|
+
:'tiff_binarization_method' => :'String'
|
144
|
+
}
|
145
|
+
end
|
146
|
+
|
147
|
+
# Initializes the object
|
148
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
149
|
+
def initialize(attributes = {})
|
150
|
+
return unless attributes.is_a?(Hash)
|
151
|
+
|
152
|
+
# convert string to symbol for hash key
|
153
|
+
attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v}
|
154
|
+
|
155
|
+
if attributes.has_key?(:'TextCrossType')
|
156
|
+
self.text_cross_type = attributes[:'TextCrossType']
|
157
|
+
end
|
158
|
+
if attributes.has_key?(:'GridlineType')
|
159
|
+
self.gridline_type = attributes[:'GridlineType']
|
160
|
+
end
|
161
|
+
if attributes.has_key?(:'OutputBlankPageWhenNothingToPrint')
|
162
|
+
self.output_blank_page_when_nothing_to_print = attributes[:'OutputBlankPageWhenNothingToPrint']
|
163
|
+
end
|
164
|
+
if attributes.has_key?(:'CheckWorkbookDefaultFont')
|
165
|
+
self.check_workbook_default_font = attributes[:'CheckWorkbookDefaultFont']
|
166
|
+
end
|
167
|
+
if attributes.has_key?(:'DefaultFont')
|
168
|
+
self.default_font = attributes[:'DefaultFont']
|
169
|
+
end
|
170
|
+
if attributes.has_key?(:'IsOptimized')
|
171
|
+
self.is_optimized = attributes[:'IsOptimized']
|
172
|
+
end
|
173
|
+
if attributes.has_key?(:'PageCount')
|
174
|
+
self.page_count = attributes[:'PageCount']
|
175
|
+
end
|
176
|
+
if attributes.has_key?(:'PageIndex')
|
177
|
+
self.page_index = attributes[:'PageIndex']
|
178
|
+
end
|
179
|
+
if attributes.has_key?(:'IsFontSubstitutionCharGranularity')
|
180
|
+
self.is_font_substitution_char_granularity = attributes[:'IsFontSubstitutionCharGranularity']
|
181
|
+
end
|
182
|
+
if attributes.has_key?(:'Transparent')
|
183
|
+
self.transparent = attributes[:'Transparent']
|
184
|
+
end
|
185
|
+
if attributes.has_key?(:'OnlyArea')
|
186
|
+
self.only_area = attributes[:'OnlyArea']
|
187
|
+
end
|
188
|
+
if attributes.has_key?(:'SVGFitToViewPort')
|
189
|
+
self.svg_fit_to_view_port = attributes[:'SVGFitToViewPort']
|
190
|
+
end
|
191
|
+
if attributes.has_key?(:'EmbededImageNameInSvg')
|
192
|
+
self.embeded_image_name_in_svg = attributes[:'EmbededImageNameInSvg']
|
193
|
+
end
|
194
|
+
if attributes.has_key?(:'AllColumnsInOnePagePerSheet')
|
195
|
+
self.all_columns_in_one_page_per_sheet = attributes[:'AllColumnsInOnePagePerSheet']
|
196
|
+
end
|
197
|
+
if attributes.has_key?(:'PrintWithStatusDialog')
|
198
|
+
self.print_with_status_dialog = attributes[:'PrintWithStatusDialog']
|
199
|
+
end
|
200
|
+
if attributes.has_key?(:'HorizontalResolution')
|
201
|
+
self.horizontal_resolution = attributes[:'HorizontalResolution']
|
202
|
+
end
|
203
|
+
if attributes.has_key?(:'VerticalResolution')
|
204
|
+
self.vertical_resolution = attributes[:'VerticalResolution']
|
205
|
+
end
|
206
|
+
if attributes.has_key?(:'DefaultEditLanguage')
|
207
|
+
self.default_edit_language = attributes[:'DefaultEditLanguage']
|
208
|
+
end
|
209
|
+
if attributes.has_key?(:'TiffColorDepth')
|
210
|
+
self.tiff_color_depth = attributes[:'TiffColorDepth']
|
211
|
+
end
|
212
|
+
if attributes.has_key?(:'TiffCompression')
|
213
|
+
self.tiff_compression = attributes[:'TiffCompression']
|
214
|
+
end
|
215
|
+
if attributes.has_key?(:'PrintingPage')
|
216
|
+
self.printing_page = attributes[:'PrintingPage']
|
217
|
+
end
|
218
|
+
if attributes.has_key?(:'Quality')
|
219
|
+
self.quality = attributes[:'Quality']
|
220
|
+
end
|
221
|
+
if attributes.has_key?(:'ImageType')
|
222
|
+
self.image_type = attributes[:'ImageType']
|
223
|
+
end
|
224
|
+
if attributes.has_key?(:'OnePagePerSheet')
|
225
|
+
self.one_page_per_sheet = attributes[:'OnePagePerSheet']
|
226
|
+
end
|
227
|
+
if attributes.has_key?(:'TiffBinarizationMethod')
|
228
|
+
self.tiff_binarization_method = attributes[:'TiffBinarizationMethod']
|
229
|
+
end
|
230
|
+
|
231
|
+
end
|
232
|
+
|
233
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
234
|
+
# @return Array for valid properies with the reasons
|
235
|
+
def list_invalid_properties
|
236
|
+
invalid_properties = Array.new
|
237
|
+
if @text_cross_type.nil?
|
238
|
+
invalid_properties.push("invalid value for 'text_cross_type', text_cross_type cannot be nil.")
|
239
|
+
end
|
240
|
+
if @gridline_type.nil?
|
241
|
+
invalid_properties.push("invalid value for 'gridline_type', gridline_type cannot be nil.")
|
242
|
+
end
|
243
|
+
if @output_blank_page_when_nothing_to_print.nil?
|
244
|
+
invalid_properties.push("invalid value for 'output_blank_page_when_nothing_to_print', output_blank_page_when_nothing_to_print cannot be nil.")
|
245
|
+
end
|
246
|
+
if @check_workbook_default_font.nil?
|
247
|
+
invalid_properties.push("invalid value for 'check_workbook_default_font', check_workbook_default_font cannot be nil.")
|
248
|
+
end
|
249
|
+
if @default_font.nil?
|
250
|
+
invalid_properties.push("invalid value for 'default_font', default_font cannot be nil.")
|
251
|
+
end
|
252
|
+
if @is_optimized.nil?
|
253
|
+
invalid_properties.push("invalid value for 'is_optimized', is_optimized cannot be nil.")
|
254
|
+
end
|
255
|
+
if @page_count.nil?
|
256
|
+
invalid_properties.push("invalid value for 'page_count', page_count cannot be nil.")
|
257
|
+
end
|
258
|
+
if @page_index.nil?
|
259
|
+
invalid_properties.push("invalid value for 'page_index', page_index cannot be nil.")
|
260
|
+
end
|
261
|
+
if @is_font_substitution_char_granularity.nil?
|
262
|
+
invalid_properties.push("invalid value for 'is_font_substitution_char_granularity', is_font_substitution_char_granularity cannot be nil.")
|
263
|
+
end
|
264
|
+
if @transparent.nil?
|
265
|
+
invalid_properties.push("invalid value for 'transparent', transparent cannot be nil.")
|
266
|
+
end
|
267
|
+
if @only_area.nil?
|
268
|
+
invalid_properties.push("invalid value for 'only_area', only_area cannot be nil.")
|
269
|
+
end
|
270
|
+
if @svg_fit_to_view_port.nil?
|
271
|
+
invalid_properties.push("invalid value for 'svg_fit_to_view_port', svg_fit_to_view_port cannot be nil.")
|
272
|
+
end
|
273
|
+
if @embeded_image_name_in_svg.nil?
|
274
|
+
invalid_properties.push("invalid value for 'embeded_image_name_in_svg', embeded_image_name_in_svg cannot be nil.")
|
275
|
+
end
|
276
|
+
if @all_columns_in_one_page_per_sheet.nil?
|
277
|
+
invalid_properties.push("invalid value for 'all_columns_in_one_page_per_sheet', all_columns_in_one_page_per_sheet cannot be nil.")
|
278
|
+
end
|
279
|
+
if @print_with_status_dialog.nil?
|
280
|
+
invalid_properties.push("invalid value for 'print_with_status_dialog', print_with_status_dialog cannot be nil.")
|
281
|
+
end
|
282
|
+
if @horizontal_resolution.nil?
|
283
|
+
invalid_properties.push("invalid value for 'horizontal_resolution', horizontal_resolution cannot be nil.")
|
284
|
+
end
|
285
|
+
if @vertical_resolution.nil?
|
286
|
+
invalid_properties.push("invalid value for 'vertical_resolution', vertical_resolution cannot be nil.")
|
287
|
+
end
|
288
|
+
if @default_edit_language.nil?
|
289
|
+
invalid_properties.push("invalid value for 'default_edit_language', default_edit_language cannot be nil.")
|
290
|
+
end
|
291
|
+
if @tiff_color_depth.nil?
|
292
|
+
invalid_properties.push("invalid value for 'tiff_color_depth', tiff_color_depth cannot be nil.")
|
293
|
+
end
|
294
|
+
if @tiff_compression.nil?
|
295
|
+
invalid_properties.push("invalid value for 'tiff_compression', tiff_compression cannot be nil.")
|
296
|
+
end
|
297
|
+
if @printing_page.nil?
|
298
|
+
invalid_properties.push("invalid value for 'printing_page', printing_page cannot be nil.")
|
299
|
+
end
|
300
|
+
if @quality.nil?
|
301
|
+
invalid_properties.push("invalid value for 'quality', quality cannot be nil.")
|
302
|
+
end
|
303
|
+
if @image_type.nil?
|
304
|
+
invalid_properties.push("invalid value for 'image_type', image_type cannot be nil.")
|
305
|
+
end
|
306
|
+
if @one_page_per_sheet.nil?
|
307
|
+
invalid_properties.push("invalid value for 'one_page_per_sheet', one_page_per_sheet cannot be nil.")
|
308
|
+
end
|
309
|
+
if @tiff_binarization_method.nil?
|
310
|
+
invalid_properties.push("invalid value for 'tiff_binarization_method', tiff_binarization_method cannot be nil.")
|
311
|
+
end
|
312
|
+
|
313
|
+
return invalid_properties
|
314
|
+
end
|
315
|
+
|
316
|
+
# Check to see if the all the properties in the model are valid
|
317
|
+
# @return true if the model is valid
|
318
|
+
def valid?
|
319
|
+
return false if @text_cross_type.nil?
|
320
|
+
return false if @gridline_type.nil?
|
321
|
+
return false if @output_blank_page_when_nothing_to_print.nil?
|
322
|
+
return false if @check_workbook_default_font.nil?
|
323
|
+
return false if @default_font.nil?
|
324
|
+
return false if @is_optimized.nil?
|
325
|
+
return false if @page_count.nil?
|
326
|
+
return false if @page_index.nil?
|
327
|
+
return false if @is_font_substitution_char_granularity.nil?
|
328
|
+
return false if @transparent.nil?
|
329
|
+
return false if @only_area.nil?
|
330
|
+
return false if @svg_fit_to_view_port.nil?
|
331
|
+
return false if @embeded_image_name_in_svg.nil?
|
332
|
+
return false if @all_columns_in_one_page_per_sheet.nil?
|
333
|
+
return false if @print_with_status_dialog.nil?
|
334
|
+
return false if @horizontal_resolution.nil?
|
335
|
+
return false if @vertical_resolution.nil?
|
336
|
+
return false if @default_edit_language.nil?
|
337
|
+
return false if @tiff_color_depth.nil?
|
338
|
+
return false if @tiff_compression.nil?
|
339
|
+
return false if @printing_page.nil?
|
340
|
+
return false if @quality.nil?
|
341
|
+
return false if @image_type.nil?
|
342
|
+
return false if @one_page_per_sheet.nil?
|
343
|
+
return false if @tiff_binarization_method.nil?
|
344
|
+
return true
|
345
|
+
end
|
346
|
+
|
347
|
+
# Checks equality by comparing each attribute.
|
348
|
+
# @param [Object] Object to be compared
|
349
|
+
def ==(o)
|
350
|
+
return true if self.equal?(o)
|
351
|
+
self.class == o.class &&
|
352
|
+
text_cross_type == o.text_cross_type &&
|
353
|
+
gridline_type == o.gridline_type &&
|
354
|
+
output_blank_page_when_nothing_to_print == o.output_blank_page_when_nothing_to_print &&
|
355
|
+
check_workbook_default_font == o.check_workbook_default_font &&
|
356
|
+
default_font == o.default_font &&
|
357
|
+
is_optimized == o.is_optimized &&
|
358
|
+
page_count == o.page_count &&
|
359
|
+
page_index == o.page_index &&
|
360
|
+
is_font_substitution_char_granularity == o.is_font_substitution_char_granularity &&
|
361
|
+
transparent == o.transparent &&
|
362
|
+
only_area == o.only_area &&
|
363
|
+
svg_fit_to_view_port == o.svg_fit_to_view_port &&
|
364
|
+
embeded_image_name_in_svg == o.embeded_image_name_in_svg &&
|
365
|
+
all_columns_in_one_page_per_sheet == o.all_columns_in_one_page_per_sheet &&
|
366
|
+
print_with_status_dialog == o.print_with_status_dialog &&
|
367
|
+
horizontal_resolution == o.horizontal_resolution &&
|
368
|
+
vertical_resolution == o.vertical_resolution &&
|
369
|
+
default_edit_language == o.default_edit_language &&
|
370
|
+
tiff_color_depth == o.tiff_color_depth &&
|
371
|
+
tiff_compression == o.tiff_compression &&
|
372
|
+
printing_page == o.printing_page &&
|
373
|
+
quality == o.quality &&
|
374
|
+
image_type == o.image_type &&
|
375
|
+
one_page_per_sheet == o.one_page_per_sheet &&
|
376
|
+
tiff_binarization_method == o.tiff_binarization_method
|
377
|
+
std_dev == o.std_dev
|
378
|
+
end
|
379
|
+
|
380
|
+
# @see the `==` method
|
381
|
+
# @param [Object] Object to be compared
|
382
|
+
def eql?(o)
|
383
|
+
self == o
|
384
|
+
end
|
385
|
+
|
386
|
+
# Calculates hash code according to all attributes.
|
387
|
+
# @return [Fixnum] Hash code
|
388
|
+
def hash
|
389
|
+
[ text_cross_type , gridline_type , output_blank_page_when_nothing_to_print , check_workbook_default_font , default_font , is_optimized , page_count , page_index , is_font_substitution_char_granularity , transparent , only_area , svg_fit_to_view_port , embeded_image_name_in_svg , all_columns_in_one_page_per_sheet , print_with_status_dialog , horizontal_resolution , vertical_resolution , default_edit_language , tiff_color_depth , tiff_compression , printing_page , quality , image_type , one_page_per_sheet , tiff_binarization_method ].hash
|
390
|
+
end
|
391
|
+
|
392
|
+
# Builds the object from hash
|
393
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
394
|
+
# @return [Object] Returns the model itself
|
395
|
+
def build_from_hash(attributes)
|
396
|
+
return nil unless attributes.is_a?(Hash)
|
397
|
+
self.class.swagger_types.each_pair do |key, type|
|
398
|
+
if type =~ /\AArray<(.*)>/i
|
399
|
+
# check to ensure the input is an array given that the the attribute
|
400
|
+
# is documented as an array but the input is not
|
401
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
402
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } )
|
403
|
+
end
|
404
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
405
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
406
|
+
end # or else data not found in attributes(hash), not an issue as the data can be optional
|
407
|
+
end
|
408
|
+
|
409
|
+
self
|
410
|
+
end
|
411
|
+
|
412
|
+
# Deserializes the data based on type
|
413
|
+
# @param string type Data type
|
414
|
+
# @param string value Value to be deserialized
|
415
|
+
# @return [Object] Deserialized data
|
416
|
+
def _deserialize(type, value)
|
417
|
+
case type.to_sym
|
418
|
+
when :DateTime
|
419
|
+
DateTime.parse(value)
|
420
|
+
when :Date
|
421
|
+
Date.parse(value)
|
422
|
+
when :String
|
423
|
+
value.to_s
|
424
|
+
when :Integer
|
425
|
+
value.to_i
|
426
|
+
when :Float
|
427
|
+
value.to_f
|
428
|
+
when :BOOLEAN
|
429
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
430
|
+
true
|
431
|
+
else
|
432
|
+
false
|
433
|
+
end
|
434
|
+
when :Object
|
435
|
+
# generic object (usually a Hash), return directly
|
436
|
+
value
|
437
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
438
|
+
inner_type = Regexp.last_match[:inner_type]
|
439
|
+
value.map { |v| _deserialize(inner_type, v) }
|
440
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
441
|
+
k_type = Regexp.last_match[:k_type]
|
442
|
+
v_type = Regexp.last_match[:v_type]
|
443
|
+
{}.tap do |hash|
|
444
|
+
value.each do |k, v|
|
445
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
446
|
+
end
|
447
|
+
end
|
448
|
+
else # model
|
449
|
+
temp_model = AsposeCellsCloud.const_get(type).new
|
450
|
+
temp_model.build_from_hash(value)
|
451
|
+
end
|
452
|
+
end
|
453
|
+
|
454
|
+
# Returns the string representation of the object
|
455
|
+
# @return [String] String presentation of the object
|
456
|
+
def to_s
|
457
|
+
to_hash.to_s
|
458
|
+
end
|
459
|
+
|
460
|
+
# to_body is an alias to to_hash (backward compatibility)
|
461
|
+
# @return [Hash] Returns the object in the form of hash
|
462
|
+
def to_body
|
463
|
+
to_hash
|
464
|
+
end
|
465
|
+
|
466
|
+
# Returns the object in the form of hash
|
467
|
+
# @return [Hash] Returns the object in the form of hash
|
468
|
+
def to_hash
|
469
|
+
hash = {}
|
470
|
+
self.class.attribute_map.each_pair do |attr, param|
|
471
|
+
value = self.send(attr)
|
472
|
+
next if value.nil?
|
473
|
+
hash[param] = _to_hash(value)
|
474
|
+
end
|
475
|
+
hash
|
476
|
+
end
|
477
|
+
|
478
|
+
# Outputs non-array value in the form of hash
|
479
|
+
# For object, use to_hash. Otherwise, just return the value
|
480
|
+
# @param [Object] value Any valid value
|
481
|
+
# @return [Hash] Returns the value in the form of hash
|
482
|
+
def _to_hash(value)
|
483
|
+
if value.is_a?(Array)
|
484
|
+
value.compact.map{ |v| _to_hash(v) }
|
485
|
+
elsif value.is_a?(Hash)
|
486
|
+
{}.tap do |hash|
|
487
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
488
|
+
end
|
489
|
+
elsif value.respond_to? :to_hash
|
490
|
+
value.to_hash
|
491
|
+
else
|
492
|
+
value
|
493
|
+
end
|
494
|
+
end
|
495
|
+
|
496
|
+
end
|
497
|
+
|
498
|
+
end
|
@@ -39,6 +39,8 @@ module AsposeCellsCloud
|
|
39
39
|
attr_accessor :totals_calculation
|
40
40
|
#Gets and sets the formula of the list column.
|
41
41
|
attr_accessor :formula
|
42
|
+
#Gets and sets the display labels of total row.
|
43
|
+
attr_accessor :totals_row_label
|
42
44
|
|
43
45
|
# Attribute mapping from ruby-style variable name to JSON key.
|
44
46
|
def self.attribute_map
|
@@ -46,7 +48,8 @@ module AsposeCellsCloud
|
|
46
48
|
:'name' => :'Name',
|
47
49
|
:'range' => :'Range',
|
48
50
|
:'totals_calculation' => :'TotalsCalculation',
|
49
|
-
:'formula' => :'Formula'
|
51
|
+
:'formula' => :'Formula',
|
52
|
+
:'totals_row_label' => :'TotalsRowLabel'
|
50
53
|
}
|
51
54
|
end
|
52
55
|
|
@@ -56,7 +59,8 @@ module AsposeCellsCloud
|
|
56
59
|
:'name' => :'String',
|
57
60
|
:'range' => :'Range',
|
58
61
|
:'totals_calculation' => :'String',
|
59
|
-
:'formula' => :'String'
|
62
|
+
:'formula' => :'String',
|
63
|
+
:'totals_row_label' => :'String'
|
60
64
|
}
|
61
65
|
end
|
62
66
|
|
@@ -80,6 +84,9 @@ module AsposeCellsCloud
|
|
80
84
|
if attributes.has_key?(:'Formula')
|
81
85
|
self.formula = attributes[:'Formula']
|
82
86
|
end
|
87
|
+
if attributes.has_key?(:'TotalsRowLabel')
|
88
|
+
self.totals_row_label = attributes[:'TotalsRowLabel']
|
89
|
+
end
|
83
90
|
|
84
91
|
end
|
85
92
|
|
@@ -99,6 +106,9 @@ module AsposeCellsCloud
|
|
99
106
|
if @formula.nil?
|
100
107
|
invalid_properties.push("invalid value for 'formula', formula cannot be nil.")
|
101
108
|
end
|
109
|
+
if @totals_row_label.nil?
|
110
|
+
invalid_properties.push("invalid value for 'totals_row_label', totals_row_label cannot be nil.")
|
111
|
+
end
|
102
112
|
|
103
113
|
return invalid_properties
|
104
114
|
end
|
@@ -110,6 +120,7 @@ module AsposeCellsCloud
|
|
110
120
|
return false if @range.nil?
|
111
121
|
return false if @totals_calculation.nil?
|
112
122
|
return false if @formula.nil?
|
123
|
+
return false if @totals_row_label.nil?
|
113
124
|
return true
|
114
125
|
end
|
115
126
|
|
@@ -121,7 +132,8 @@ module AsposeCellsCloud
|
|
121
132
|
name == o.name &&
|
122
133
|
range == o.range &&
|
123
134
|
totals_calculation == o.totals_calculation &&
|
124
|
-
formula == o.formula
|
135
|
+
formula == o.formula &&
|
136
|
+
totals_row_label == o.totals_row_label
|
125
137
|
std_dev == o.std_dev
|
126
138
|
end
|
127
139
|
|
@@ -134,7 +146,7 @@ module AsposeCellsCloud
|
|
134
146
|
# Calculates hash code according to all attributes.
|
135
147
|
# @return [Fixnum] Hash code
|
136
148
|
def hash
|
137
|
-
[ name , range , totals_calculation , formula ].hash
|
149
|
+
[ name , range , totals_calculation , formula , totals_row_label ].hash
|
138
150
|
end
|
139
151
|
|
140
152
|
# Builds the object from hash
|