Class: AsposeCellsCloud::WorkbookSettings
- Inherits:
-
Object
- Object
- AsposeCellsCloud::WorkbookSettings
- Defined in:
- lib/aspose_cells_cloud/models/workbook_settings.rb
Instance Attribute Summary collapse
-
#auto_compress_pictures ⇒ Object
Returns the value of attribute auto_compress_pictures.
-
#auto_recover ⇒ Object
Returns the value of attribute auto_recover.
-
#build_version ⇒ Object
Specifies the incremental public release of the application.
-
#calc_mode ⇒ Object
It specifies whether to calculate formulas manually, automatically or automatically except for multiple table operations.
-
#calc_stack_size ⇒ Object
Specifies the stack size for calculating cells recursively.
-
#calculation_id ⇒ Object
Specifies the version of the calculation engine used to calculate values in the workbook.
-
#check_comptiliblity ⇒ Object
Indicates whether check comptiliblity when saving workbook.
-
#check_excel_restriction ⇒ Object
Whether check restriction of excel file when user modify cells related objects.
-
#crash_save ⇒ Object
Returns the value of attribute crash_save.
-
#create_calc_chain ⇒ Object
Indicates whether create calculated formulas chain.
-
#data_extract_load ⇒ Object
Returns the value of attribute data_extract_load.
-
#date1904 ⇒ Object
Gets or sets a value which represents if the workbook uses the 1904 date system.
-
#display_drawing_objects ⇒ Object
Indicates whether and how to show objects in the workbook.
-
#enable_macros ⇒ Object
Returns the value of attribute enable_macros.
-
#first_visible_tab ⇒ Object
Gets or sets the first visible worksheet tab.
-
#hide_pivot_field_list ⇒ Object
Returns the value of attribute hide_pivot_field_list.
-
#is_default_encrypted ⇒ Object
Returns the value of attribute is_default_encrypted.
-
#is_h_scroll_bar_visible ⇒ Object
Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar.
-
#is_hidden ⇒ Object
Indicates whether this workbook is hidden.
-
#is_minimized ⇒ Object
Represents whether the generated spreadsheet will be opened Minimized.
-
#is_v_scroll_bar_visible ⇒ Object
Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar.
-
#iteration ⇒ Object
Indicates if Aspose.Cells will use iteration to resolve circular references.
-
#language_code ⇒ Object
Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
-
#max_change ⇒ Object
Returns or sets the maximum number of change that Microsoft Excel can use to resolve a circular reference.
-
#max_iteration ⇒ Object
Returns or sets the maximum number of iterations that Aspose.Cells can use to resolve a circular reference.
-
#memory_setting ⇒ Object
Returns the value of attribute memory_setting.
-
#number_decimal_separator ⇒ Object
Returns the value of attribute number_decimal_separator.
-
#number_group_separator ⇒ Object
Returns the value of attribute number_group_separator.
-
#parsing_formula_on_open ⇒ Object
Indicates whether parsing the formula when reading the file.
-
#precision_as_displayed ⇒ Object
True if calculations in this workbook will be done using only the precision of the numbers as they’re displayed.
-
#re_calculate_on_open ⇒ Object
Indicates whether re-calculate all formulas on opening file.
-
#recalculate_before_save ⇒ Object
Indicates whether to recalculate before saving the document.
-
#recommend_read_only ⇒ Object
Indicates if the Read Only Recommended option is selected.
-
#region ⇒ Object
Gets or sets the system regional settings based on CountryCode at the time the file was saved.
-
#remove_personal_information ⇒ Object
Returns the value of attribute remove_personal_information.
-
#repair_load ⇒ Object
Returns the value of attribute repair_load.
-
#shared ⇒ Object
Gets or sets a value that indicates whether the Workbook is shared.
-
#sheet_tab_bar_width ⇒ Object
Width of worksheet tab bar (in 1/1000 of window width).
-
#show_tabs ⇒ Object
Get or sets a value whether the Workbook tabs are displayed.
-
#update_adjacent_cells_border ⇒ Object
Indicates whether update adjacent cells’ border.
-
#update_links_type ⇒ Object
Returns the value of attribute update_links_type.
-
#window_height ⇒ Object
The height of the window, in unit of point.
-
#window_left ⇒ Object
The distance from the left edge of the client area to the left edge of the window, in unit of point.
-
#window_top ⇒ Object
The distance from the top edge of the client area to the top edge of the window, in unit of point.
-
#window_width ⇒ Object
The width of the window, in unit of point.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(o) ⇒ Object
Checks equality by comparing each attribute.
-
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type.
-
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(o) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ WorkbookSettings
constructor
Initializes the object.
-
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons.
-
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility).
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
-
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid.
Constructor Details
#initialize(attributes = {}) ⇒ WorkbookSettings
Initializes the object
255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 255 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}){|(k,v), h| h[k.to_sym] = v} if attributes.has_key?(:'NumberGroupSeparator') self.number_group_separator = attributes[:'NumberGroupSeparator'] end if attributes.has_key?(:'HidePivotFieldList') self.hide_pivot_field_list = attributes[:'HidePivotFieldList'] end if attributes.has_key?(:'IsMinimized') self.is_minimized = attributes[:'IsMinimized'] end if attributes.has_key?(:'CalculationId') self.calculation_id = attributes[:'CalculationId'] end if attributes.has_key?(:'ReCalculateOnOpen') self.re_calculate_on_open = attributes[:'ReCalculateOnOpen'] end if attributes.has_key?(:'CheckExcelRestriction') self.check_excel_restriction = attributes[:'CheckExcelRestriction'] end if attributes.has_key?(:'IsHScrollBarVisible') self. = attributes[:'IsHScrollBarVisible'] end if attributes.has_key?(:'WindowHeight') self.window_height = attributes[:'WindowHeight'] end if attributes.has_key?(:'WindowLeft') self.window_left = attributes[:'WindowLeft'] end if attributes.has_key?(:'CalcStackSize') self.calc_stack_size = attributes[:'CalcStackSize'] end if attributes.has_key?(:'Shared') self.shared = attributes[:'Shared'] end if attributes.has_key?(:'RemovePersonalInformation') self.remove_personal_information = attributes[:'RemovePersonalInformation'] end if attributes.has_key?(:'LanguageCode') self.language_code = attributes[:'LanguageCode'] end if attributes.has_key?(:'EnableMacros') self.enable_macros = attributes[:'EnableMacros'] end if attributes.has_key?(:'IsDefaultEncrypted') self.is_default_encrypted = attributes[:'IsDefaultEncrypted'] end if attributes.has_key?(:'RecalculateBeforeSave') self.recalculate_before_save = attributes[:'RecalculateBeforeSave'] end if attributes.has_key?(:'ParsingFormulaOnOpen') self.parsing_formula_on_open = attributes[:'ParsingFormulaOnOpen'] end if attributes.has_key?(:'WindowTop') self.window_top = attributes[:'WindowTop'] end if attributes.has_key?(:'Region') self.region = attributes[:'Region'] end if attributes.has_key?(:'MemorySetting') self.memory_setting = attributes[:'MemorySetting'] end if attributes.has_key?(:'UpdateAdjacentCellsBorder') self.update_adjacent_cells_border = attributes[:'UpdateAdjacentCellsBorder'] end if attributes.has_key?(:'CrashSave') self.crash_save = attributes[:'CrashSave'] end if attributes.has_key?(:'ShowTabs') self.show_tabs = attributes[:'ShowTabs'] end if attributes.has_key?(:'PrecisionAsDisplayed') self.precision_as_displayed = attributes[:'PrecisionAsDisplayed'] end if attributes.has_key?(:'CalcMode') self.calc_mode = attributes[:'CalcMode'] end if attributes.has_key?(:'AutoCompressPictures') self.auto_compress_pictures = attributes[:'AutoCompressPictures'] end if attributes.has_key?(:'Date1904') self.date1904 = attributes[:'Date1904'] end if attributes.has_key?(:'NumberDecimalSeparator') self.number_decimal_separator = attributes[:'NumberDecimalSeparator'] end if attributes.has_key?(:'Iteration') self.iteration = attributes[:'Iteration'] end if attributes.has_key?(:'CheckComptiliblity') self.check_comptiliblity = attributes[:'CheckComptiliblity'] end if attributes.has_key?(:'AutoRecover') self.auto_recover = attributes[:'AutoRecover'] end if attributes.has_key?(:'MaxChange') self.max_change = attributes[:'MaxChange'] end if attributes.has_key?(:'DataExtractLoad') self.data_extract_load = attributes[:'DataExtractLoad'] end if attributes.has_key?(:'FirstVisibleTab') self.first_visible_tab = attributes[:'FirstVisibleTab'] end if attributes.has_key?(:'IsHidden') self.is_hidden = attributes[:'IsHidden'] end if attributes.has_key?(:'RecommendReadOnly') self.recommend_read_only = attributes[:'RecommendReadOnly'] end if attributes.has_key?(:'DisplayDrawingObjects') self.display_drawing_objects = attributes[:'DisplayDrawingObjects'] end if attributes.has_key?(:'BuildVersion') self.build_version = attributes[:'BuildVersion'] end if attributes.has_key?(:'IsVScrollBarVisible') self. = attributes[:'IsVScrollBarVisible'] end if attributes.has_key?(:'WindowWidth') self.window_width = attributes[:'WindowWidth'] end if attributes.has_key?(:'CreateCalcChain') self.create_calc_chain = attributes[:'CreateCalcChain'] end if attributes.has_key?(:'MaxIteration') self.max_iteration = attributes[:'MaxIteration'] end if attributes.has_key?(:'RepairLoad') self.repair_load = attributes[:'RepairLoad'] end if attributes.has_key?(:'UpdateLinksType') self.update_links_type = attributes[:'UpdateLinksType'] end if attributes.has_key?(:'SheetTabBarWidth') self. = attributes[:'SheetTabBarWidth'] end end |
Instance Attribute Details
#auto_compress_pictures ⇒ Object
Returns the value of attribute auto_compress_pictures.
96 97 98 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 96 def auto_compress_pictures @auto_compress_pictures end |
#auto_recover ⇒ Object
Returns the value of attribute auto_recover.
109 110 111 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 109 def auto_recover @auto_recover end |
#build_version ⇒ Object
Specifies the incremental public release of the application.
129 130 131 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 129 def build_version @build_version end |
#calc_mode ⇒ Object
It specifies whether to calculate formulas manually, automatically or automatically except for multiple table operations.
94 95 96 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 94 def calc_mode @calc_mode end |
#calc_stack_size ⇒ Object
Specifies the stack size for calculating cells recursively. The large value for this size will give better performance when there are lots of cells need to be calculated recursively. On the other hand, larger value will raise the stakes of StackOverflowException. If use gets StackOverflowException when calculating formulas, this value should be decreased.
54 55 56 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 54 def calc_stack_size @calc_stack_size end |
#calculation_id ⇒ Object
Specifies the version of the calculation engine used to calculate values in the workbook.
36 37 38 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 36 def calculation_id @calculation_id end |
#check_comptiliblity ⇒ Object
Indicates whether check comptiliblity when saving workbook. Remarks: The default value is true.
107 108 109 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 107 def check_comptiliblity @check_comptiliblity end |
#check_excel_restriction ⇒ Object
Whether check restriction of excel file when user modify cells related objects. For example, excel does not allow inputting string value longer than 32K. When you input a value longer than 32K such as by Cell.PutValue(string), if this property is true, you will get an Exception. If this property is false, we will accept your input string value as the cell’s value so that later you can output the complete string value for other file formats such as CSV. However, if you have set such kind of value that is invalid for excel file format, you should not save the workbook as excel file format later. Otherwise there may be unexpected error for the generated excel file.
42 43 44 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 42 def check_excel_restriction @check_excel_restriction end |
#crash_save ⇒ Object
Returns the value of attribute crash_save.
85 86 87 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 85 def crash_save @crash_save end |
#create_calc_chain ⇒ Object
Indicates whether create calculated formulas chain.
138 139 140 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 138 def create_calc_chain @create_calc_chain end |
#data_extract_load ⇒ Object
Returns the value of attribute data_extract_load.
114 115 116 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 114 def data_extract_load @data_extract_load end |
#date1904 ⇒ Object
Gets or sets a value which represents if the workbook uses the 1904 date system.
99 100 101 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 99 def date1904 @date1904 end |
#display_drawing_objects ⇒ Object
Indicates whether and how to show objects in the workbook.
126 127 128 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 126 def display_drawing_objects @display_drawing_objects end |
#enable_macros ⇒ Object
Returns the value of attribute enable_macros.
64 65 66 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 64 def enable_macros @enable_macros end |
#first_visible_tab ⇒ Object
Gets or sets the first visible worksheet tab.
117 118 119 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 117 def first_visible_tab @first_visible_tab end |
#hide_pivot_field_list ⇒ Object
Returns the value of attribute hide_pivot_field_list.
30 31 32 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 30 def hide_pivot_field_list @hide_pivot_field_list end |
#is_default_encrypted ⇒ Object
Returns the value of attribute is_default_encrypted.
66 67 68 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 66 def is_default_encrypted @is_default_encrypted end |
#is_h_scroll_bar_visible ⇒ Object
Gets or sets a value indicating whether the generated spreadsheet will contain a horizontal scroll bar. Remarks: The default value is true.
45 46 47 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 45 def end |
#is_hidden ⇒ Object
Indicates whether this workbook is hidden.
120 121 122 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 120 def is_hidden @is_hidden end |
#is_minimized ⇒ Object
Represents whether the generated spreadsheet will be opened Minimized.
33 34 35 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 33 def is_minimized @is_minimized end |
#is_v_scroll_bar_visible ⇒ Object
Gets or sets a value indicating whether the generated spreadsheet will contain a vertical scroll bar. Remarks: The default value is true.
132 133 134 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 132 def end |
#iteration ⇒ Object
Indicates if Aspose.Cells will use iteration to resolve circular references.
104 105 106 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 104 def iteration @iteration end |
#language_code ⇒ Object
Gets or sets the user interface language of the Workbook version based on CountryCode that has saved the file.
62 63 64 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 62 def language_code @language_code end |
#max_change ⇒ Object
Returns or sets the maximum number of change that Microsoft Excel can use to resolve a circular reference.
112 113 114 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 112 def max_change @max_change end |
#max_iteration ⇒ Object
Returns or sets the maximum number of iterations that Aspose.Cells can use to resolve a circular reference.
141 142 143 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 141 def max_iteration @max_iteration end |
#memory_setting ⇒ Object
Returns the value of attribute memory_setting.
80 81 82 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 80 def memory_setting @memory_setting end |
#number_decimal_separator ⇒ Object
Returns the value of attribute number_decimal_separator.
101 102 103 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 101 def number_decimal_separator @number_decimal_separator end |
#number_group_separator ⇒ Object
Returns the value of attribute number_group_separator.
28 29 30 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 28 def number_group_separator @number_group_separator end |
#parsing_formula_on_open ⇒ Object
Indicates whether parsing the formula when reading the file. Remarks: Only applies for Excel Xlsx,Xltx, Xltm,Xlsm file because the formulas in the files are stored with a string formula.
72 73 74 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 72 def parsing_formula_on_open @parsing_formula_on_open end |
#precision_as_displayed ⇒ Object
True if calculations in this workbook will be done using only the precision of the numbers as they’re displayed
91 92 93 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 91 def precision_as_displayed @precision_as_displayed end |
#re_calculate_on_open ⇒ Object
Indicates whether re-calculate all formulas on opening file.
39 40 41 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 39 def re_calculate_on_open @re_calculate_on_open end |
#recalculate_before_save ⇒ Object
Indicates whether to recalculate before saving the document.
69 70 71 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 69 def recalculate_before_save @recalculate_before_save end |
#recommend_read_only ⇒ Object
Indicates if the Read Only Recommended option is selected.
123 124 125 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 123 def recommend_read_only @recommend_read_only end |
#region ⇒ Object
Gets or sets the system regional settings based on CountryCode at the time the file was saved. Remarks: If you do not want to use the region saved in the file, please reset it after reading the file.
78 79 80 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 78 def region @region end |
#remove_personal_information ⇒ Object
Returns the value of attribute remove_personal_information.
59 60 61 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 59 def remove_personal_information @remove_personal_information end |
#repair_load ⇒ Object
Returns the value of attribute repair_load.
143 144 145 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 143 def repair_load @repair_load end |
#shared ⇒ Object
Gets or sets a value that indicates whether the Workbook is shared. Remarks: The default value is false.
57 58 59 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 57 def shared @shared end |
#sheet_tab_bar_width ⇒ Object
Width of worksheet tab bar (in 1/1000 of window width).
148 149 150 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 148 def end |
#show_tabs ⇒ Object
Get or sets a value whether the Workbook tabs are displayed. Remarks: The default value is true.
88 89 90 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 88 def show_tabs @show_tabs end |
#update_adjacent_cells_border ⇒ Object
Indicates whether update adjacent cells’ border. Remarks: The default value is true. For example: the bottom border of the cell A1 is update, the top border of the cell A2 should be changed too.
83 84 85 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 83 def update_adjacent_cells_border @update_adjacent_cells_border end |
#update_links_type ⇒ Object
Returns the value of attribute update_links_type.
145 146 147 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 145 def update_links_type @update_links_type end |
#window_height ⇒ Object
The height of the window, in unit of point.
48 49 50 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 48 def window_height @window_height end |
#window_left ⇒ Object
The distance from the left edge of the client area to the left edge of the window, in unit of point.
51 52 53 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 51 def window_left @window_left end |
#window_top ⇒ Object
The distance from the top edge of the client area to the top edge of the window, in unit of point.
75 76 77 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 75 def window_top @window_top end |
#window_width ⇒ Object
The width of the window, in unit of point.
135 136 137 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 135 def window_width @window_width end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 152 def self.attribute_map { :'number_group_separator' => :'NumberGroupSeparator', :'hide_pivot_field_list' => :'HidePivotFieldList', :'is_minimized' => :'IsMinimized', :'calculation_id' => :'CalculationId', :'re_calculate_on_open' => :'ReCalculateOnOpen', :'check_excel_restriction' => :'CheckExcelRestriction', :'is_h_scroll_bar_visible' => :'IsHScrollBarVisible', :'window_height' => :'WindowHeight', :'window_left' => :'WindowLeft', :'calc_stack_size' => :'CalcStackSize', :'shared' => :'Shared', :'remove_personal_information' => :'RemovePersonalInformation', :'language_code' => :'LanguageCode', :'enable_macros' => :'EnableMacros', :'is_default_encrypted' => :'IsDefaultEncrypted', :'recalculate_before_save' => :'RecalculateBeforeSave', :'parsing_formula_on_open' => :'ParsingFormulaOnOpen', :'window_top' => :'WindowTop', :'region' => :'Region', :'memory_setting' => :'MemorySetting', :'update_adjacent_cells_border' => :'UpdateAdjacentCellsBorder', :'crash_save' => :'CrashSave', :'show_tabs' => :'ShowTabs', :'precision_as_displayed' => :'PrecisionAsDisplayed', :'calc_mode' => :'CalcMode', :'auto_compress_pictures' => :'AutoCompressPictures', :'date1904' => :'Date1904', :'number_decimal_separator' => :'NumberDecimalSeparator', :'iteration' => :'Iteration', :'check_comptiliblity' => :'CheckComptiliblity', :'auto_recover' => :'AutoRecover', :'max_change' => :'MaxChange', :'data_extract_load' => :'DataExtractLoad', :'first_visible_tab' => :'FirstVisibleTab', :'is_hidden' => :'IsHidden', :'recommend_read_only' => :'RecommendReadOnly', :'display_drawing_objects' => :'DisplayDrawingObjects', :'build_version' => :'BuildVersion', :'is_v_scroll_bar_visible' => :'IsVScrollBarVisible', :'window_width' => :'WindowWidth', :'create_calc_chain' => :'CreateCalcChain', :'max_iteration' => :'MaxIteration', :'repair_load' => :'RepairLoad', :'update_links_type' => :'UpdateLinksType', :'sheet_tab_bar_width' => :'SheetTabBarWidth' } end |
.swagger_types ⇒ Object
Attribute type mapping.
203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 203 def self.swagger_types { :'number_group_separator' => :'String', :'hide_pivot_field_list' => :'BOOLEAN', :'is_minimized' => :'BOOLEAN', :'calculation_id' => :'String', :'re_calculate_on_open' => :'BOOLEAN', :'check_excel_restriction' => :'BOOLEAN', :'is_h_scroll_bar_visible' => :'BOOLEAN', :'window_height' => :'Float', :'window_left' => :'Float', :'calc_stack_size' => :'Integer', :'shared' => :'BOOLEAN', :'remove_personal_information' => :'BOOLEAN', :'language_code' => :'String', :'enable_macros' => :'BOOLEAN', :'is_default_encrypted' => :'BOOLEAN', :'recalculate_before_save' => :'BOOLEAN', :'parsing_formula_on_open' => :'BOOLEAN', :'window_top' => :'Float', :'region' => :'String', :'memory_setting' => :'String', :'update_adjacent_cells_border' => :'BOOLEAN', :'crash_save' => :'BOOLEAN', :'show_tabs' => :'BOOLEAN', :'precision_as_displayed' => :'BOOLEAN', :'calc_mode' => :'String', :'auto_compress_pictures' => :'BOOLEAN', :'date1904' => :'BOOLEAN', :'number_decimal_separator' => :'String', :'iteration' => :'BOOLEAN', :'check_comptiliblity' => :'BOOLEAN', :'auto_recover' => :'BOOLEAN', :'max_change' => :'Float', :'data_extract_load' => :'BOOLEAN', :'first_visible_tab' => :'Integer', :'is_hidden' => :'BOOLEAN', :'recommend_read_only' => :'BOOLEAN', :'display_drawing_objects' => :'String', :'build_version' => :'String', :'is_v_scroll_bar_visible' => :'BOOLEAN', :'window_width' => :'Float', :'create_calc_chain' => :'BOOLEAN', :'max_iteration' => :'Integer', :'repair_load' => :'BOOLEAN', :'update_links_type' => :'String', :'sheet_tab_bar_width' => :'Integer' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 458 def ==(o) return true if self.equal?(o) self.class == o.class && number_group_separator == o.number_group_separator && hide_pivot_field_list == o.hide_pivot_field_list && is_minimized == o.is_minimized && calculation_id == o.calculation_id && re_calculate_on_open == o.re_calculate_on_open && check_excel_restriction == o.check_excel_restriction && == o. && window_height == o.window_height && window_left == o.window_left && calc_stack_size == o.calc_stack_size && shared == o.shared && remove_personal_information == o.remove_personal_information && language_code == o.language_code && enable_macros == o.enable_macros && is_default_encrypted == o.is_default_encrypted && recalculate_before_save == o.recalculate_before_save && parsing_formula_on_open == o.parsing_formula_on_open && window_top == o.window_top && region == o.region && memory_setting == o.memory_setting && update_adjacent_cells_border == o.update_adjacent_cells_border && crash_save == o.crash_save && show_tabs == o.show_tabs && precision_as_displayed == o.precision_as_displayed && calc_mode == o.calc_mode && auto_compress_pictures == o.auto_compress_pictures && date1904 == o.date1904 && number_decimal_separator == o.number_decimal_separator && iteration == o.iteration && check_comptiliblity == o.check_comptiliblity && auto_recover == o.auto_recover && max_change == o.max_change && data_extract_load == o.data_extract_load && first_visible_tab == o.first_visible_tab && is_hidden == o.is_hidden && recommend_read_only == o.recommend_read_only && display_drawing_objects == o.display_drawing_objects && build_version == o.build_version && == o. && window_width == o.window_width && create_calc_chain == o.create_calc_chain && max_iteration == o.max_iteration && repair_load == o.repair_load && update_links_type == o.update_links_type && == o. end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 544 def _deserialize(type, value) case type.to_sym when :DateTime DateTime.parse(value) when :Date Date.parse(value) when :String value.to_s when :Integer value.to_i when :Float value.to_f when :BOOLEAN if value.to_s =~ /\A(true|t|yes|y|1)\z/i true else false end when :Object # generic object (usually a Hash), return directly value when /\AArray<(?<inner_type>.+)>\z/ inner_type = Regexp.last_match[:inner_type] value.map { |v| _deserialize(inner_type, v) } when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/ k_type = Regexp.last_match[:k_type] v_type = Regexp.last_match[:v_type] {}.tap do |hash| value.each do |k, v| hash[_deserialize(k_type, k)] = _deserialize(v_type, v) end end else # model temp_model = AsposeCellsCloud.const_get(type).new temp_model.build_from_hash(value) end end |
#_to_hash(value) ⇒ Hash
Outputs non-array value in the form of hash For object, use to_hash. Otherwise, just return the value
610 611 612 613 614 615 616 617 618 619 620 621 622 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 610 def _to_hash(value) if value.is_a?(Array) value.compact.map{ |v| _to_hash(v) } elsif value.is_a?(Hash) {}.tap do |hash| value.each { |k, v| hash[k] = _to_hash(v) } end elsif value.respond_to? :to_hash value.to_hash else value end end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 523 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /\AArray<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) self.send("#{key}=", attributes[self.class.attribute_map[key]].map{ |v| _deserialize($1, v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]])) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(o) ⇒ Boolean
510 511 512 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 510 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
516 517 518 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 516 def hash [number_group_separator, hide_pivot_field_list, is_minimized, calculation_id, re_calculate_on_open, check_excel_restriction, , window_height, window_left, calc_stack_size, shared, remove_personal_information, language_code, enable_macros, is_default_encrypted, recalculate_before_save, parsing_formula_on_open, window_top, region, memory_setting, update_adjacent_cells_border, crash_save, show_tabs, precision_as_displayed, calc_mode, auto_compress_pictures, date1904, number_decimal_separator, iteration, check_comptiliblity, auto_recover, max_change, data_extract_load, first_visible_tab, is_hidden, recommend_read_only, display_drawing_objects, build_version, , window_width, create_calc_chain, max_iteration, repair_load, update_links_type, ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
445 446 447 448 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 445 def list_invalid_properties invalid_properties = Array.new return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
590 591 592 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 590 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
596 597 598 599 600 601 602 603 604 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 596 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = self.send(attr) next if value.nil? hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
584 585 586 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 584 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
452 453 454 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 452 def valid? return true end |