Class: OoxmlParser::TableRowProperties
- Inherits:
-
OOXMLDocumentObject
- Object
- OOXMLDocumentObject
- OoxmlParser::TableRowProperties
- Defined in:
- lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties.rb
Overview
Class for describing Table Row Properties
Instance Attribute Summary collapse
-
#cells_spacing ⇒ OoxmlSize
Table cell spacing.
-
#height ⇒ TableRowHeight
Table Row Height.
-
#table_header ⇒ True, False
Specifies that the current row should be repeated at the top each new page on which the table is displayed.
Attributes inherited from OOXMLDocumentObject
Instance Method Summary collapse
-
#parse(node) ⇒ TableRowProperties
Parse Columns data.
Methods inherited from OOXMLDocumentObject
#==, add_to_xmls_stack, copy_file_and_rename_to_zip, current_xml, dir, encrypted_file?, get_link_from_rels, #initialize, unzip_file, #with_data?
Methods included from OoxmlDocumentObjectHelper
Constructor Details
This class inherits a constructor from OoxmlParser::OOXMLDocumentObject
Instance Attribute Details
#cells_spacing ⇒ OoxmlSize
Returns Table cell spacing.
8 9 10 |
# File 'lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties.rb', line 8 def cells_spacing @cells_spacing end |
#height ⇒ TableRowHeight
Returns Table Row Height.
6 7 8 |
# File 'lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties.rb', line 6 def height @height end |
#table_header ⇒ True, False
Specifies that the current row should be repeated at the top each new page on which the table is displayed. >ECMA-376, 3rd Edition (June, 2011), Fundamentals and Markup Language Reference 17.4.50
13 14 15 |
# File 'lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties.rb', line 13 def table_header @table_header end |
Instance Method Details
#parse(node) ⇒ TableRowProperties
Parse Columns data
18 19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/ooxml_parser/common_parser/common_data/table/row/row/table_row_properties.rb', line 18 def parse(node) node.xpath('*').each do |node_child| case node_child.name when 'trHeight' @height = TableRowHeight.new(parent: self).parse(node_child) when 'tblCellSpacing' @cells_spacing = OoxmlSize.new.parse(node_child) when 'tblHeader' @table_header = option_enabled?(node_child) end end self end |