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 automaticallyexcept 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 valuesin 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 datesystem.
-
#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 containa 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 containa 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 onCountryCode that has saved the file.
-
#max_change ⇒ Object
Returns or sets the maximum number of change that Microsoft Excel can useto resolve a circular reference.
-
#max_iteration ⇒ Object
Returns or sets the maximum number of iterations that Aspose.Cells can useto 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 precisionof 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 timethe 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 thewindow, in unit of point.
-
#window_top ⇒ Object
The distance from the top edge of the client area to the top edge of thewindow, 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
229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 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 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 229 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?(:'AutoCompressPictures') self.auto_compress_pictures = attributes[:'AutoCompressPictures'] end if attributes.has_key?(:'AutoRecover') self.auto_recover = attributes[:'AutoRecover'] end if attributes.has_key?(:'BuildVersion') self.build_version = attributes[:'BuildVersion'] end if attributes.has_key?(:'CalcMode') self.calc_mode = attributes[:'CalcMode'] end if attributes.has_key?(:'CalcStackSize') self.calc_stack_size = attributes[:'CalcStackSize'] end if attributes.has_key?(:'CalculationId') self.calculation_id = attributes[:'CalculationId'] end if attributes.has_key?(:'CheckComptiliblity') self.check_comptiliblity = attributes[:'CheckComptiliblity'] end if attributes.has_key?(:'CheckExcelRestriction') self.check_excel_restriction = attributes[:'CheckExcelRestriction'] end if attributes.has_key?(:'CrashSave') self.crash_save = attributes[:'CrashSave'] end if attributes.has_key?(:'CreateCalcChain') self.create_calc_chain = attributes[:'CreateCalcChain'] end if attributes.has_key?(:'DataExtractLoad') self.data_extract_load = attributes[:'DataExtractLoad'] end if attributes.has_key?(:'Date1904') self.date1904 = attributes[:'Date1904'] end if attributes.has_key?(:'DisplayDrawingObjects') self.display_drawing_objects = attributes[:'DisplayDrawingObjects'] end if attributes.has_key?(:'EnableMacros') self.enable_macros = attributes[:'EnableMacros'] end if attributes.has_key?(:'FirstVisibleTab') self.first_visible_tab = attributes[:'FirstVisibleTab'] end if attributes.has_key?(:'HidePivotFieldList') self.hide_pivot_field_list = attributes[:'HidePivotFieldList'] end if attributes.has_key?(:'IsDefaultEncrypted') self.is_default_encrypted = attributes[:'IsDefaultEncrypted'] end if attributes.has_key?(:'IsHidden') self.is_hidden = attributes[:'IsHidden'] end if attributes.has_key?(:'IsHScrollBarVisible') self. = attributes[:'IsHScrollBarVisible'] end if attributes.has_key?(:'IsMinimized') self.is_minimized = attributes[:'IsMinimized'] end if attributes.has_key?(:'IsVScrollBarVisible') self. = attributes[:'IsVScrollBarVisible'] end if attributes.has_key?(:'Iteration') self.iteration = attributes[:'Iteration'] end if attributes.has_key?(:'LanguageCode') self.language_code = attributes[:'LanguageCode'] end if attributes.has_key?(:'MaxChange') self.max_change = attributes[:'MaxChange'] end if attributes.has_key?(:'MaxIteration') self.max_iteration = attributes[:'MaxIteration'] end if attributes.has_key?(:'MemorySetting') self.memory_setting = attributes[:'MemorySetting'] end if attributes.has_key?(:'NumberDecimalSeparator') self.number_decimal_separator = attributes[:'NumberDecimalSeparator'] end if attributes.has_key?(:'NumberGroupSeparator') self.number_group_separator = attributes[:'NumberGroupSeparator'] end if attributes.has_key?(:'ParsingFormulaOnOpen') self.parsing_formula_on_open = attributes[:'ParsingFormulaOnOpen'] end if attributes.has_key?(:'PrecisionAsDisplayed') self.precision_as_displayed = attributes[:'PrecisionAsDisplayed'] end if attributes.has_key?(:'RecalculateBeforeSave') self.recalculate_before_save = attributes[:'RecalculateBeforeSave'] end if attributes.has_key?(:'ReCalculateOnOpen') self.re_calculate_on_open = attributes[:'ReCalculateOnOpen'] end if attributes.has_key?(:'RecommendReadOnly') self.recommend_read_only = attributes[:'RecommendReadOnly'] end if attributes.has_key?(:'Region') self.region = attributes[:'Region'] end if attributes.has_key?(:'RemovePersonalInformation') self.remove_personal_information = attributes[:'RemovePersonalInformation'] end if attributes.has_key?(:'RepairLoad') self.repair_load = attributes[:'RepairLoad'] end if attributes.has_key?(:'Shared') self.shared = attributes[:'Shared'] end if attributes.has_key?(:'SheetTabBarWidth') self. = attributes[:'SheetTabBarWidth'] end if attributes.has_key?(:'ShowTabs') self.show_tabs = attributes[:'ShowTabs'] end if attributes.has_key?(:'UpdateAdjacentCellsBorder') self.update_adjacent_cells_border = attributes[:'UpdateAdjacentCellsBorder'] end if attributes.has_key?(:'UpdateLinksType') self.update_links_type = attributes[:'UpdateLinksType'] 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?(:'WindowTop') self.window_top = attributes[:'WindowTop'] end if attributes.has_key?(:'WindowWidth') self.window_width = attributes[:'WindowWidth'] end end |
Instance Attribute Details
#auto_compress_pictures ⇒ Object
Returns the value of attribute auto_compress_pictures.
35 36 37 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 35 def auto_compress_pictures @auto_compress_pictures end |
#auto_recover ⇒ Object
Returns the value of attribute auto_recover.
37 38 39 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 37 def auto_recover @auto_recover end |
#build_version ⇒ Object
Specifies the incremental public release of the application.
39 40 41 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 39 def build_version @build_version end |
#calc_mode ⇒ Object
It specifies whether to calculate formulas manually, automatically or automaticallyexcept for multiple table operations.
41 42 43 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 41 def calc_mode @calc_mode end |
#calc_stack_size ⇒ Object
Specifies the stack size for calculating cells recursively. The large valuefor this size will give better performance when there are lots of cells needto be calculated recursively. On the other hand, larger value will raisethe stakes of StackOverflowException. If use gets StackOverflowExceptionwhen calculating formulas, this value should be decreased.
43 44 45 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 43 def calc_stack_size @calc_stack_size end |
#calculation_id ⇒ Object
Specifies the version of the calculation engine used to calculate valuesin the workbook.
45 46 47 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 45 def calculation_id @calculation_id end |
#check_comptiliblity ⇒ Object
Indicates whether check comptiliblity when saving workbook. Remarks: The default value is true.
47 48 49 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 47 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 isfalse, we will accept your input string value as the cell’s value so thatlater you can output the complete string value for other file formats suchas CSV. However, if you have set such kind of value that is invalid forexcel file format, you should not save the workbook as excel file formatlater. Otherwise there may be unexpected error for the generated excel file.
49 50 51 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 49 def check_excel_restriction @check_excel_restriction end |
#crash_save ⇒ Object
Returns the value of attribute crash_save.
51 52 53 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 51 def crash_save @crash_save end |
#create_calc_chain ⇒ Object
Indicates whether create calculated formulas chain.
53 54 55 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 53 def create_calc_chain @create_calc_chain end |
#data_extract_load ⇒ Object
Returns the value of attribute data_extract_load.
55 56 57 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 55 def data_extract_load @data_extract_load end |
#date1904 ⇒ Object
Gets or sets a value which represents if the workbook uses the 1904 datesystem.
57 58 59 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 57 def date1904 @date1904 end |
#display_drawing_objects ⇒ Object
Indicates whether and how to show objects in the workbook.
59 60 61 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 59 def display_drawing_objects @display_drawing_objects end |
#enable_macros ⇒ Object
Returns the value of attribute enable_macros.
61 62 63 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 61 def enable_macros @enable_macros end |
#first_visible_tab ⇒ Object
Gets or sets the first visible worksheet tab.
63 64 65 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 63 def first_visible_tab @first_visible_tab end |
#hide_pivot_field_list ⇒ Object
Returns the value of attribute hide_pivot_field_list.
65 66 67 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 65 def hide_pivot_field_list @hide_pivot_field_list end |
#is_default_encrypted ⇒ Object
Returns the value of attribute is_default_encrypted.
67 68 69 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 67 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 containa horizontal scroll bar. Remarks:The default value is true.
71 72 73 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 71 def @is_h_scroll_bar_visible end |
#is_hidden ⇒ Object
Indicates whether this workbook is hidden.
69 70 71 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 69 def is_hidden @is_hidden end |
#is_minimized ⇒ Object
Represents whether the generated spreadsheet will be opened Minimized.
73 74 75 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 73 def is_minimized @is_minimized end |
#is_v_scroll_bar_visible ⇒ Object
Gets or sets a value indicating whether the generated spreadsheet will containa vertical scroll bar. Remarks:The default value is true.
75 76 77 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 75 def @is_v_scroll_bar_visible end |
#iteration ⇒ Object
Indicates if Aspose.Cells will use iteration to resolve circular references.
77 78 79 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 77 def iteration @iteration end |
#language_code ⇒ Object
Gets or sets the user interface language of the Workbook version based onCountryCode that has saved the file.
79 80 81 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 79 def language_code @language_code end |
#max_change ⇒ Object
Returns or sets the maximum number of change that Microsoft Excel can useto resolve a circular reference.
81 82 83 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 81 def max_change @max_change end |
#max_iteration ⇒ Object
Returns or sets the maximum number of iterations that Aspose.Cells can useto resolve a circular reference.
83 84 85 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 83 def max_iteration @max_iteration end |
#memory_setting ⇒ Object
Returns the value of attribute memory_setting.
85 86 87 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 85 def memory_setting @memory_setting end |
#number_decimal_separator ⇒ Object
Returns the value of attribute number_decimal_separator.
87 88 89 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 87 def number_decimal_separator @number_decimal_separator end |
#number_group_separator ⇒ Object
Returns the value of attribute number_group_separator.
89 90 91 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 89 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 inthe files are stored with a string formula.
91 92 93 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 91 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 precisionof the numbers as they’re displayed
93 94 95 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 93 def precision_as_displayed @precision_as_displayed end |
#re_calculate_on_open ⇒ Object
Indicates whether re-calculate all formulas on opening file.
97 98 99 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 97 def re_calculate_on_open @re_calculate_on_open end |
#recalculate_before_save ⇒ Object
Indicates whether to recalculate before saving the document.
95 96 97 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 95 def recalculate_before_save @recalculate_before_save end |
#recommend_read_only ⇒ Object
Indicates if the Read Only Recommended option is selected.
99 100 101 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 99 def recommend_read_only @recommend_read_only end |
#region ⇒ Object
Gets or sets the system regional settings based on CountryCode at the timethe file was saved. Remarks:If you do not want to use the region saved in the file, please reset it afterreading the file.
101 102 103 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 101 def region @region end |
#remove_personal_information ⇒ Object
Returns the value of attribute remove_personal_information.
103 104 105 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 103 def remove_personal_information @remove_personal_information end |
#repair_load ⇒ Object
Returns the value of attribute repair_load.
105 106 107 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 105 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.
107 108 109 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 107 def shared @shared end |
#sheet_tab_bar_width ⇒ Object
Width of worksheet tab bar (in 1/1000 of window width).
109 110 111 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 109 def @sheet_tab_bar_width end |
#show_tabs ⇒ Object
Get or sets a value whether the Workbook tabs are displayed. Remarks:The default value is true.
111 112 113 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 111 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 A1is update, the top border of the cell A2 should be changed too.
113 114 115 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 113 def update_adjacent_cells_border @update_adjacent_cells_border end |
#update_links_type ⇒ Object
Returns the value of attribute update_links_type.
115 116 117 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 115 def update_links_type @update_links_type end |
#window_height ⇒ Object
The height of the window, in unit of point.
117 118 119 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 117 def window_height @window_height end |
#window_left ⇒ Object
The distance from the left edge of the client area to the left edge of thewindow, in unit of point.
119 120 121 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 119 def window_left @window_left end |
#window_top ⇒ Object
The distance from the top edge of the client area to the top edge of thewindow, in unit of point.
121 122 123 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 121 def window_top @window_top end |
#window_width ⇒ Object
The width of the window, in unit of point.
123 124 125 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 123 def window_width @window_width end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 126 def self.attribute_map { :'auto_compress_pictures' => :'AutoCompressPictures', :'auto_recover' => :'AutoRecover', :'build_version' => :'BuildVersion', :'calc_mode' => :'CalcMode', :'calc_stack_size' => :'CalcStackSize', :'calculation_id' => :'CalculationId', :'check_comptiliblity' => :'CheckComptiliblity', :'check_excel_restriction' => :'CheckExcelRestriction', :'crash_save' => :'CrashSave', :'create_calc_chain' => :'CreateCalcChain', :'data_extract_load' => :'DataExtractLoad', :'date1904' => :'Date1904', :'display_drawing_objects' => :'DisplayDrawingObjects', :'enable_macros' => :'EnableMacros', :'first_visible_tab' => :'FirstVisibleTab', :'hide_pivot_field_list' => :'HidePivotFieldList', :'is_default_encrypted' => :'IsDefaultEncrypted', :'is_hidden' => :'IsHidden', :'is_h_scroll_bar_visible' => :'IsHScrollBarVisible', :'is_minimized' => :'IsMinimized', :'is_v_scroll_bar_visible' => :'IsVScrollBarVisible', :'iteration' => :'Iteration', :'language_code' => :'LanguageCode', :'max_change' => :'MaxChange', :'max_iteration' => :'MaxIteration', :'memory_setting' => :'MemorySetting', :'number_decimal_separator' => :'NumberDecimalSeparator', :'number_group_separator' => :'NumberGroupSeparator', :'parsing_formula_on_open' => :'ParsingFormulaOnOpen', :'precision_as_displayed' => :'PrecisionAsDisplayed', :'recalculate_before_save' => :'RecalculateBeforeSave', :'re_calculate_on_open' => :'ReCalculateOnOpen', :'recommend_read_only' => :'RecommendReadOnly', :'region' => :'Region', :'remove_personal_information' => :'RemovePersonalInformation', :'repair_load' => :'RepairLoad', :'shared' => :'Shared', :'sheet_tab_bar_width' => :'SheetTabBarWidth', :'show_tabs' => :'ShowTabs', :'update_adjacent_cells_border' => :'UpdateAdjacentCellsBorder', :'update_links_type' => :'UpdateLinksType', :'window_height' => :'WindowHeight', :'window_left' => :'WindowLeft', :'window_top' => :'WindowTop', :'window_width' => :'WindowWidth' } end |
.swagger_types ⇒ Object
Attribute type mapping.
177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 177 def self.swagger_types { :'auto_compress_pictures' => :'BOOLEAN', :'auto_recover' => :'BOOLEAN', :'build_version' => :'String', :'calc_mode' => :'String', :'calc_stack_size' => :'Integer', :'calculation_id' => :'String', :'check_comptiliblity' => :'BOOLEAN', :'check_excel_restriction' => :'BOOLEAN', :'crash_save' => :'BOOLEAN', :'create_calc_chain' => :'BOOLEAN', :'data_extract_load' => :'BOOLEAN', :'date1904' => :'BOOLEAN', :'display_drawing_objects' => :'String', :'enable_macros' => :'BOOLEAN', :'first_visible_tab' => :'Integer', :'hide_pivot_field_list' => :'BOOLEAN', :'is_default_encrypted' => :'BOOLEAN', :'is_hidden' => :'BOOLEAN', :'is_h_scroll_bar_visible' => :'BOOLEAN', :'is_minimized' => :'BOOLEAN', :'is_v_scroll_bar_visible' => :'BOOLEAN', :'iteration' => :'BOOLEAN', :'language_code' => :'String', :'max_change' => :'Float', :'max_iteration' => :'Integer', :'memory_setting' => :'String', :'number_decimal_separator' => :'String', :'number_group_separator' => :'String', :'parsing_formula_on_open' => :'BOOLEAN', :'precision_as_displayed' => :'BOOLEAN', :'recalculate_before_save' => :'BOOLEAN', :'re_calculate_on_open' => :'BOOLEAN', :'recommend_read_only' => :'BOOLEAN', :'region' => :'String', :'remove_personal_information' => :'BOOLEAN', :'repair_load' => :'BOOLEAN', :'shared' => :'BOOLEAN', :'sheet_tab_bar_width' => :'Integer', :'show_tabs' => :'BOOLEAN', :'update_adjacent_cells_border' => :'BOOLEAN', :'update_links_type' => :'String', :'window_height' => :'Float', :'window_left' => :'Float', :'window_top' => :'Float', :'window_width' => :'Float' } end |
Instance Method Details
#==(o) ⇒ Object
Checks equality by comparing each attribute.
569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 569 def ==(o) return true if self.equal?(o) self.class == o.class && auto_compress_pictures == o.auto_compress_pictures && auto_recover == o.auto_recover && build_version == o.build_version && calc_mode == o.calc_mode && calc_stack_size == o.calc_stack_size && calculation_id == o.calculation_id && check_comptiliblity == o.check_comptiliblity && check_excel_restriction == o.check_excel_restriction && crash_save == o.crash_save && create_calc_chain == o.create_calc_chain && data_extract_load == o.data_extract_load && date1904 == o.date1904 && display_drawing_objects == o.display_drawing_objects && enable_macros == o.enable_macros && first_visible_tab == o.first_visible_tab && hide_pivot_field_list == o.hide_pivot_field_list && is_default_encrypted == o.is_default_encrypted && is_hidden == o.is_hidden && == o. && is_minimized == o.is_minimized && == o. && iteration == o.iteration && language_code == o.language_code && max_change == o.max_change && max_iteration == o.max_iteration && memory_setting == o.memory_setting && number_decimal_separator == o.number_decimal_separator && number_group_separator == o.number_group_separator && parsing_formula_on_open == o.parsing_formula_on_open && precision_as_displayed == o.precision_as_displayed && recalculate_before_save == o.recalculate_before_save && re_calculate_on_open == o.re_calculate_on_open && recommend_read_only == o.recommend_read_only && region == o.region && remove_personal_information == o.remove_personal_information && repair_load == o.repair_load && shared == o.shared && == o. && show_tabs == o.show_tabs && update_adjacent_cells_border == o.update_adjacent_cells_border && update_links_type == o.update_links_type && window_height == o.window_height && window_left == o.window_left && window_top == o.window_top && window_width == o.window_width std_dev == o.std_dev end |
#_deserialize(type, value) ⇒ Object
Deserializes the data based on type
656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 656 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
722 723 724 725 726 727 728 729 730 731 732 733 734 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 722 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
635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 635 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
622 623 624 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 622 def eql?(o) self == o end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
628 629 630 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 628 def hash [ auto_compress_pictures , auto_recover , build_version , calc_mode , calc_stack_size , calculation_id , check_comptiliblity , check_excel_restriction , crash_save , create_calc_chain , data_extract_load , date1904 , display_drawing_objects , enable_macros , first_visible_tab , hide_pivot_field_list , is_default_encrypted , is_hidden , , is_minimized , , iteration , language_code , max_change , max_iteration , memory_setting , number_decimal_separator , number_group_separator , parsing_formula_on_open , precision_as_displayed , recalculate_before_save , re_calculate_on_open , recommend_read_only , region , remove_personal_information , repair_load , shared , , show_tabs , update_adjacent_cells_border , update_links_type , window_height , window_left , window_top , window_width ].hash end |
#list_invalid_properties ⇒ Object
Show invalid properties with the reasons. Usually used together with valid?
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 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 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 507 508 509 510 511 512 513 514 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 375 def list_invalid_properties invalid_properties = Array.new if @auto_compress_pictures.nil? invalid_properties.push("invalid value for 'auto_compress_pictures', auto_compress_pictures cannot be nil.") end if @auto_recover.nil? invalid_properties.push("invalid value for 'auto_recover', auto_recover cannot be nil.") end if @build_version.nil? invalid_properties.push("invalid value for 'build_version', build_version cannot be nil.") end if @calc_mode.nil? invalid_properties.push("invalid value for 'calc_mode', calc_mode cannot be nil.") end if @calc_stack_size.nil? invalid_properties.push("invalid value for 'calc_stack_size', calc_stack_size cannot be nil.") end if @calculation_id.nil? invalid_properties.push("invalid value for 'calculation_id', calculation_id cannot be nil.") end if @check_comptiliblity.nil? invalid_properties.push("invalid value for 'check_comptiliblity', check_comptiliblity cannot be nil.") end if @check_excel_restriction.nil? invalid_properties.push("invalid value for 'check_excel_restriction', check_excel_restriction cannot be nil.") end if @crash_save.nil? invalid_properties.push("invalid value for 'crash_save', crash_save cannot be nil.") end if @create_calc_chain.nil? invalid_properties.push("invalid value for 'create_calc_chain', create_calc_chain cannot be nil.") end if @data_extract_load.nil? invalid_properties.push("invalid value for 'data_extract_load', data_extract_load cannot be nil.") end if @date1904.nil? invalid_properties.push("invalid value for 'date1904', date1904 cannot be nil.") end if @display_drawing_objects.nil? invalid_properties.push("invalid value for 'display_drawing_objects', display_drawing_objects cannot be nil.") end if @enable_macros.nil? invalid_properties.push("invalid value for 'enable_macros', enable_macros cannot be nil.") end if @first_visible_tab.nil? invalid_properties.push("invalid value for 'first_visible_tab', first_visible_tab cannot be nil.") end if @hide_pivot_field_list.nil? invalid_properties.push("invalid value for 'hide_pivot_field_list', hide_pivot_field_list cannot be nil.") end if @is_default_encrypted.nil? invalid_properties.push("invalid value for 'is_default_encrypted', is_default_encrypted cannot be nil.") end if @is_hidden.nil? invalid_properties.push("invalid value for 'is_hidden', is_hidden cannot be nil.") end if @is_h_scroll_bar_visible.nil? invalid_properties.push("invalid value for 'is_h_scroll_bar_visible', is_h_scroll_bar_visible cannot be nil.") end if @is_minimized.nil? invalid_properties.push("invalid value for 'is_minimized', is_minimized cannot be nil.") end if @is_v_scroll_bar_visible.nil? invalid_properties.push("invalid value for 'is_v_scroll_bar_visible', is_v_scroll_bar_visible cannot be nil.") end if @iteration.nil? invalid_properties.push("invalid value for 'iteration', iteration cannot be nil.") end if @language_code.nil? invalid_properties.push("invalid value for 'language_code', language_code cannot be nil.") end if @max_change.nil? invalid_properties.push("invalid value for 'max_change', max_change cannot be nil.") end if @max_iteration.nil? invalid_properties.push("invalid value for 'max_iteration', max_iteration cannot be nil.") end if @memory_setting.nil? invalid_properties.push("invalid value for 'memory_setting', memory_setting cannot be nil.") end if @number_decimal_separator.nil? invalid_properties.push("invalid value for 'number_decimal_separator', number_decimal_separator cannot be nil.") end if @number_group_separator.nil? invalid_properties.push("invalid value for 'number_group_separator', number_group_separator cannot be nil.") end if @parsing_formula_on_open.nil? invalid_properties.push("invalid value for 'parsing_formula_on_open', parsing_formula_on_open cannot be nil.") end if @precision_as_displayed.nil? invalid_properties.push("invalid value for 'precision_as_displayed', precision_as_displayed cannot be nil.") end if @recalculate_before_save.nil? invalid_properties.push("invalid value for 'recalculate_before_save', recalculate_before_save cannot be nil.") end if @re_calculate_on_open.nil? invalid_properties.push("invalid value for 're_calculate_on_open', re_calculate_on_open cannot be nil.") end if @recommend_read_only.nil? invalid_properties.push("invalid value for 'recommend_read_only', recommend_read_only cannot be nil.") end if @region.nil? invalid_properties.push("invalid value for 'region', region cannot be nil.") end if @remove_personal_information.nil? invalid_properties.push("invalid value for 'remove_personal_information', remove_personal_information cannot be nil.") end if @repair_load.nil? invalid_properties.push("invalid value for 'repair_load', repair_load cannot be nil.") end if @shared.nil? invalid_properties.push("invalid value for 'shared', shared cannot be nil.") end if @sheet_tab_bar_width.nil? invalid_properties.push("invalid value for 'sheet_tab_bar_width', sheet_tab_bar_width cannot be nil.") end if @show_tabs.nil? invalid_properties.push("invalid value for 'show_tabs', show_tabs cannot be nil.") end if @update_adjacent_cells_border.nil? invalid_properties.push("invalid value for 'update_adjacent_cells_border', update_adjacent_cells_border cannot be nil.") end if @update_links_type.nil? invalid_properties.push("invalid value for 'update_links_type', update_links_type cannot be nil.") end if @window_height.nil? invalid_properties.push("invalid value for 'window_height', window_height cannot be nil.") end if @window_left.nil? invalid_properties.push("invalid value for 'window_left', window_left cannot be nil.") end if @window_top.nil? invalid_properties.push("invalid value for 'window_top', window_top cannot be nil.") end if @window_width.nil? invalid_properties.push("invalid value for 'window_width', window_width cannot be nil.") end return invalid_properties end |
#to_body ⇒ Hash
to_body is an alias to to_hash (backward compatibility)
702 703 704 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 702 def to_body to_hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
708 709 710 711 712 713 714 715 716 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 708 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
696 697 698 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 696 def to_s to_hash.to_s end |
#valid? ⇒ Boolean
Check to see if the all the properties in the model are valid
518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 |
# File 'lib/aspose_cells_cloud/models/workbook_settings.rb', line 518 def valid? return false if @auto_compress_pictures.nil? return false if @auto_recover.nil? return false if @build_version.nil? return false if @calc_mode.nil? return false if @calc_stack_size.nil? return false if @calculation_id.nil? return false if @check_comptiliblity.nil? return false if @check_excel_restriction.nil? return false if @crash_save.nil? return false if @create_calc_chain.nil? return false if @data_extract_load.nil? return false if @date1904.nil? return false if @display_drawing_objects.nil? return false if @enable_macros.nil? return false if @first_visible_tab.nil? return false if @hide_pivot_field_list.nil? return false if @is_default_encrypted.nil? return false if @is_hidden.nil? return false if @is_h_scroll_bar_visible.nil? return false if @is_minimized.nil? return false if @is_v_scroll_bar_visible.nil? return false if @iteration.nil? return false if @language_code.nil? return false if @max_change.nil? return false if @max_iteration.nil? return false if @memory_setting.nil? return false if @number_decimal_separator.nil? return false if @number_group_separator.nil? return false if @parsing_formula_on_open.nil? return false if @precision_as_displayed.nil? return false if @recalculate_before_save.nil? return false if @re_calculate_on_open.nil? return false if @recommend_read_only.nil? return false if @region.nil? return false if @remove_personal_information.nil? return false if @repair_load.nil? return false if @shared.nil? return false if @sheet_tab_bar_width.nil? return false if @show_tabs.nil? return false if @update_adjacent_cells_border.nil? return false if @update_links_type.nil? return false if @window_height.nil? return false if @window_left.nil? return false if @window_top.nil? return false if @window_width.nil? return true end |