ooxml_parser 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (83) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +17 -1
  3. data/lib/ooxml_parser/common_parser/common_data/alternate_content/alternate_content/chart_style.rb +4 -0
  4. data/lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart.rb +1 -0
  5. data/lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_axis.rb +9 -0
  6. data/lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_axis/scaling.rb +20 -0
  7. data/lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/drawing_properties/ooxml_size.rb +1 -1
  8. data/lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/picture/docx_blip/file_reference.rb +3 -2
  9. data/lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_body_properties/ooxml_shape_body_properties.rb +8 -0
  10. data/lib/ooxml_parser/common_parser/common_data/alternate_content/drawing/graphic/shape/shape_properties/docx_shape_properties/text_box.rb +1 -1
  11. data/lib/ooxml_parser/common_parser/common_data/borders_properties.rb +2 -2
  12. data/lib/ooxml_parser/common_parser/common_data/color.rb +11 -20
  13. data/lib/ooxml_parser/common_parser/common_data/color/color_helper.rb +1 -1
  14. data/lib/ooxml_parser/common_parser/common_data/color/ooxml_color.rb +57 -0
  15. data/lib/ooxml_parser/common_parser/common_data/colors/theme_colors.rb +3 -6
  16. data/lib/ooxml_parser/common_parser/common_data/coordinates.rb +17 -1
  17. data/lib/ooxml_parser/common_parser/common_data/hyperlink.rb +12 -1
  18. data/lib/ooxml_parser/common_parser/common_data/ooxml_document_object.rb +4 -4
  19. data/lib/ooxml_parser/common_parser/common_data/ooxml_document_object/ooxml_document_object_helper.rb +30 -1
  20. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_properties.rb +5 -2
  21. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run.rb +9 -1
  22. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties.rb +1 -1
  23. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/text.rb +23 -0
  24. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/paragraph_borders.rb +2 -2
  25. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/spacing.rb +0 -1
  26. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tabs.rb +2 -2
  27. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/{tab_list/presentation_tab.rb → tabs/tab.rb} +17 -4
  28. data/lib/ooxml_parser/common_parser/common_data/table.rb +1 -1
  29. data/lib/ooxml_parser/common_parser/common_data/table/margins/table_margins.rb +1 -3
  30. data/lib/ooxml_parser/common_parser/common_data/table/properties/table_style.rb +31 -37
  31. data/lib/ooxml_parser/common_parser/common_data/table/properties/table_style_properties.rb +4 -0
  32. data/lib/ooxml_parser/common_parser/common_data/table/properties/table_style_properties/table_style_properties_helper.rb +2 -2
  33. data/lib/ooxml_parser/common_parser/common_data/table/row/cell/cell.rb +4 -4
  34. data/lib/ooxml_parser/common_parser/common_data/table/row/cell/properties/border.rb +1 -1
  35. data/lib/ooxml_parser/common_parser/common_data/table/table_properties.rb +1 -16
  36. data/lib/ooxml_parser/docx_parser/docx_data/document_structure.rb +14 -7
  37. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/comment.rb +2 -2
  38. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/comments_extended.rb +39 -0
  39. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/comments_extended/comment_extended.rb +24 -0
  40. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/document_background.rb +9 -12
  41. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/document_style.rb +1 -1
  42. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph.rb +51 -73
  43. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/delimeter.rb +2 -2
  44. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_helper.rb +8 -0
  45. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run.rb +8 -56
  46. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/docx_paragraph_run_helpers.rb +2 -12
  47. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/inserted.rb +15 -1
  48. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/sdt/sdt_content.rb +30 -0
  49. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/sdt/sdt_properties.rb +28 -0
  50. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/structured_document_tag.rb +26 -0
  51. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/header_footer.rb +1 -1
  52. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/page_properties/note.rb +10 -10
  53. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/page_properties/page_margins.rb +9 -16
  54. data/lib/ooxml_parser/docx_parser/docx_data/document_structure/page_properties/page_properties.rb +11 -9
  55. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation.rb +5 -2
  56. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/presentation_theme/theme_color.rb +1 -3
  57. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide.rb +35 -24
  58. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/common_slide_data.rb +26 -0
  59. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/common_slide_data/shape_tree.rb +33 -0
  60. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/connection_shape.rb +5 -0
  61. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/graphic_frame/graphic_frame.rb +2 -0
  62. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/presentation_notes.rb +21 -0
  63. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/shapes_grouping.rb +2 -0
  64. data/lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide_helper.rb +3 -3
  65. data/lib/ooxml_parser/version.rb +1 -1
  66. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook.rb +1 -1
  67. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/style_sheet/fills/fill.rb +20 -0
  68. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/style_sheet/fills/fill/pattern_fill.rb +2 -2
  69. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/style_sheet/fonts/font.rb +5 -1
  70. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet.rb +10 -1
  71. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/ole_objects.rb +18 -0
  72. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view.rb +1 -1
  73. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part.rb +7 -1
  74. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/autofilter.rb +34 -0
  75. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/autofilter/filter_column.rb +28 -0
  76. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension.rb +5 -0
  77. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension/sparkline_groups.rb +31 -0
  78. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension/sparkline_groups/sparkline_group.rb +113 -0
  79. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/table_style_info.rb +41 -0
  80. data/lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/xlsx_drawing.rb +5 -11
  81. metadata +31 -14
  82. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tab_list.rb +0 -36
  83. data/lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tabs/paragraph_tab.rb +0 -26
@@ -0,0 +1,41 @@
1
+ module OoxmlParser
2
+ # Class for `tableStyleInfo` data
3
+ # https://msdn.microsoft.com/en-us/library/documentformat.openxml.spreadsheet.tablestyleinfo.aspx
4
+ class TableStyleInfo < OOXMLDocumentObject
5
+ # @return [String] A string representing the name of the table style to use with this table.
6
+ # If the style name does not correspond to the name of a table style then the spreadsheet
7
+ # application should use default style.
8
+ # The possible values for this attribute are defined by the ST_Xstring simple type (22.9.2.19).
9
+ attr_accessor :name
10
+
11
+ # @return [True, False] A Boolean indicating whether the first column in the table should have the style applied.
12
+ attr_accessor :show_first_column
13
+ # @return [True, False] A Boolean indicating whether column stripe formatting is applied.
14
+ attr_accessor :show_column_stripes
15
+ # @return [True, False] A Boolean indicating whether the last column in the table should have the style applied.
16
+ attr_accessor :show_last_column
17
+ # @return [True, False] A Boolean indicating whether row stripe formatting is applied.
18
+ attr_accessor :show_row_stripes
19
+
20
+ # Parse TableStyleInfo data
21
+ # @param [Nokogiri::XML:Element] node with TableStyleInfo data
22
+ # @return [TableStyleInfo] value of TableStyleInfo data
23
+ def parse(node)
24
+ node.attributes.each do |key, value|
25
+ case key
26
+ when 'name'
27
+ @name = value.value.to_s
28
+ when 'showColumnStripes'
29
+ @show_column_stripes = attribute_enabled?(value)
30
+ when 'showFirstColumn'
31
+ @show_first_column = attribute_enabled?(value)
32
+ when 'showLastColumn'
33
+ @show_last_column = attribute_enabled?(value)
34
+ when 'showRowStripes'
35
+ @show_row_stripes = attribute_enabled?(value)
36
+ end
37
+ end
38
+ self
39
+ end
40
+ end
41
+ end
@@ -6,6 +6,8 @@ module OoxmlParser
6
6
  attr_accessor :from
7
7
  # @return [XlsxDrawingPositionParameters] position to
8
8
  attr_accessor :to
9
+ # @return [GraphicFrame] graphic frame
10
+ attr_accessor :graphic_frame
9
11
 
10
12
  # Parse XlsxDrawing object
11
13
  # @param node [Nokogiri::XML:Element] node to parse
@@ -24,17 +26,9 @@ module OoxmlParser
24
26
  when 'pic'
25
27
  @picture = DocxPicture.new(parent: self).parse(child_node)
26
28
  when 'graphicFrame'
27
- @picture = DocxPicture.new
28
- graphic_data_node = child_node.xpath('a:graphic/a:graphicData', 'xmlns:a' => 'http://schemas.openxmlformats.org/drawingml/2006/main')
29
- graphic_data_node.xpath('*').each do |graphic_data_node_child|
30
- case graphic_data_node_child.name
31
- when 'chart'
32
- path_to_chart_xml = OOXMLDocumentObject.get_link_from_rels(graphic_data_node_child.attribute('id').value)
33
- OOXMLDocumentObject.add_to_xmls_stack(path_to_chart_xml)
34
- @picture.chart = Chart.parse
35
- OOXMLDocumentObject.xmls_stack.pop
36
- end
37
- end
29
+ @graphic_frame = GraphicFrame.new(parent: self).parse(child_node)
30
+ when 'cxnSp'
31
+ @shape = ConnectionShape.new(parent: self).parse(child_node)
38
32
  end
39
33
  end
40
34
  self
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ooxml_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Lobashov
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2017-03-25 00:00:00.000000000 Z
12
+ date: 2018-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
@@ -26,33 +26,33 @@ dependencies:
26
26
  - !ruby/object:Gem::Version
27
27
  version: '1.6'
28
28
  - !ruby/object:Gem::Dependency
29
- name: rubyzip
29
+ name: ruby-filemagic
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - "~>"
33
33
  - !ruby/object:Gem::Version
34
- version: '1.1'
34
+ version: '0.1'
35
35
  type: :runtime
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
39
  - - "~>"
40
40
  - !ruby/object:Gem::Version
41
- version: '1.1'
41
+ version: '0.1'
42
42
  - !ruby/object:Gem::Dependency
43
- name: ruby-filemagic
43
+ name: rubyzip
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
- - - ">="
46
+ - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: '0'
48
+ version: '1.1'
49
49
  type: :runtime
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
- - - ">="
53
+ - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: '0'
55
+ version: '1.1'
56
56
  description: Parse OOXML files (docx, xlsx, pptx)
57
57
  email:
58
58
  - shockwavenn@gmail.com
@@ -81,6 +81,7 @@ files:
81
81
  - lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/series/series_text/string_reference/string_cache/point_count.rb
82
82
  - lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart/view_3d.rb
83
83
  - lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_axis.rb
84
+ - lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_axis/scaling.rb
84
85
  - lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_axis_title.rb
85
86
  - lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_cells_range.rb
86
87
  - lib/ooxml_parser/common_parser/common_data/alternate_content/chart/chart_legend.rb
@@ -137,6 +138,7 @@ files:
137
138
  - lib/ooxml_parser/common_parser/common_data/borders_properties.rb
138
139
  - lib/ooxml_parser/common_parser/common_data/color.rb
139
140
  - lib/ooxml_parser/common_parser/common_data/color/color_helper.rb
141
+ - lib/ooxml_parser/common_parser/common_data/color/ooxml_color.rb
140
142
  - lib/ooxml_parser/common_parser/common_data/colors/color_alpha_channel.rb
141
143
  - lib/ooxml_parser/common_parser/common_data/colors/color_properties.rb
142
144
  - lib/ooxml_parser/common_parser/common_data/colors/hsl_color.rb
@@ -166,14 +168,13 @@ files:
166
168
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/run_style.rb
167
169
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/shade.rb
168
170
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/run_properties/size.rb
171
+ - lib/ooxml_parser/common_parser/common_data/paragraph/paragraph_run/text.rb
169
172
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/numbering_properties.rb
170
173
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/paragraph_borders.rb
171
174
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/paragraph_spacing.rb
172
175
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/spacing.rb
173
- - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tab_list.rb
174
- - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tab_list/presentation_tab.rb
175
176
  - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tabs.rb
176
- - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tabs/paragraph_tab.rb
177
+ - lib/ooxml_parser/common_parser/common_data/paragraph/paragrpah_properties/tabs/tab.rb
177
178
  - lib/ooxml_parser/common_parser/common_data/paragraph/text_field.rb
178
179
  - lib/ooxml_parser/common_parser/common_data/relationships.rb
179
180
  - lib/ooxml_parser/common_parser/common_data/relationships/relationship.rb
@@ -211,6 +212,8 @@ files:
211
212
  - lib/ooxml_parser/configuration.rb
212
213
  - lib/ooxml_parser/docx_parser/docx_data/document_structure.rb
213
214
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/comment.rb
215
+ - lib/ooxml_parser/docx_parser/docx_data/document_structure/comments_extended.rb
216
+ - lib/ooxml_parser/docx_parser/docx_data/document_structure/comments_extended/comment_extended.rb
214
217
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/document_background.rb
215
218
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/document_properties.rb
216
219
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/document_settings.rb
@@ -241,6 +244,7 @@ files:
241
244
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/nary/nary_properties/nary_limit_location.rb
242
245
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/pre_sub_superscript.rb
243
246
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_formula/radical.rb
247
+ - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_helper.rb
244
248
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run.rb
245
249
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/docx_paragraph_run_helpers.rb
246
250
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/docx_paragraph_run/object.rb
@@ -255,6 +259,9 @@ files:
255
259
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/frame_properties.rb
256
260
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/indents.rb
257
261
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/inserted.rb
262
+ - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/sdt/sdt_content.rb
263
+ - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/sdt/sdt_properties.rb
264
+ - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/structured_document_tag.rb
258
265
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/docx_paragraph/style_parametres.rb
259
266
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/header_footer.rb
260
267
  - lib/ooxml_parser/docx_parser/docx_data/document_structure/numbering.rb
@@ -292,8 +299,12 @@ files:
292
299
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/background.rb
293
300
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/background/background_properties.rb
294
301
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/background/background_properties/stretch.rb
302
+ - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/common_slide_data.rb
303
+ - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/common_slide_data/shape_tree.rb
304
+ - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/connection_shape.rb
295
305
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/graphic_frame/graphic_frame.rb
296
306
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/presentation_alternate_content.rb
307
+ - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/presentation_notes.rb
297
308
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/shape/non_visual_shape_properties/hyperlinks/hyperlink_for_hover.rb
298
309
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/shapes_grouping.rb
299
310
  - lib/ooxml_parser/pptx_parser/pptx_data/presentation/slide/slide/timing.rb
@@ -326,13 +337,19 @@ files:
326
337
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet.rb
327
338
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/excel_comments.rb
328
339
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/excel_comments/excel_comment.rb
340
+ - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/ole_objects.rb
329
341
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_format_properties.rb
330
342
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view.rb
331
343
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/sheet_view/pane.rb
332
344
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part.rb
345
+ - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/autofilter.rb
346
+ - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/autofilter/filter_column.rb
333
347
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list.rb
334
348
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension.rb
349
+ - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension/sparkline_groups.rb
350
+ - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension/sparkline_groups/sparkline_group.rb
335
351
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/extension_list/extension/x14_table.rb
352
+ - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/table_part/table_style_info.rb
336
353
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/xlsx_column_properties.rb
337
354
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/xlsx_drawing.rb
338
355
  - lib/ooxml_parser/xlsx_parser/xlsx_data/view_model/workbook/worksheet/xlsx_drawing/xlsx_drawing_position_parameters.rb
@@ -361,7 +378,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
361
378
  version: '0'
362
379
  requirements: []
363
380
  rubyforge_project:
364
- rubygems_version: 2.4.8
381
+ rubygems_version: 2.7.3
365
382
  signing_key:
366
383
  specification_version: 4
367
384
  summary: OoxmlParser Gem
@@ -1,36 +0,0 @@
1
- require_relative 'tab_list/presentation_tab'
2
- module OoxmlParser
3
- # Class for working with `a:tabLst`
4
- class TabList < OOXMLDocumentObject
5
- # @return [Array, ParagraphTabs]
6
- attr_accessor :tabs_array
7
-
8
- def initialize(parent: nil)
9
- @tabs_array = []
10
- @parent = parent
11
- end
12
-
13
- # @return [Array, Column] accessor
14
- def [](key)
15
- @tabs_array[key]
16
- end
17
-
18
- # @return [True, False] if empty
19
- def empty?
20
- @tabs_array.empty?
21
- end
22
-
23
- # Parse Tabs data
24
- # @param [Nokogiri::XML:Element] node with Tabs data
25
- # @return [Tabs] value of Columns data
26
- def parse(node)
27
- node.xpath('*').each do |node_child|
28
- case node_child.name
29
- when 'tab'
30
- @tabs_array << PresentationTab.new(parent: self).parse(node_child)
31
- end
32
- end
33
- self
34
- end
35
- end
36
- end
@@ -1,26 +0,0 @@
1
- module OoxmlParser
2
- # Class for storing `w:tab` data
3
- class ParagraphTab < OOXMLDocumentObject
4
- # @return [Symbol] Specifies the style of the tab.
5
- attr_accessor :value
6
- # @return [OOxmlSize] Specifies the position of the tab stop.
7
- attr_accessor :position
8
-
9
- alias align value
10
-
11
- # Parse ParagraphTab object
12
- # @param node [Nokogiri::XML:Element] node to parse
13
- # @return [ParagraphTab] result of parsing
14
- def parse(node)
15
- node.attributes.each do |key, value|
16
- case key
17
- when 'val'
18
- @value = value.value.to_sym
19
- when 'pos'
20
- @position = OoxmlSize.new(value.value.to_f)
21
- end
22
- end
23
- self
24
- end
25
- end
26
- end