Class: Doc2Text::Odt::XmlNodes::Text::List

Inherits:
Node show all
Includes:
Doc2Text::Odt::XmlNodes::Text
Defined in:
lib/doc2text/odt/odt_xml_namespaces.rb

Instance Attribute Summary

Attributes inherited from XmlBasedDocument::XmlNodes::Node

#attrs, #children, #name, #parent, #prefix, #text

Instance Method Summary collapse

Methods included from Doc2Text::Odt::XmlNodes::Text

#fetch_style?, #find_style, #initialize

Methods inherited from Node

create_node, #office_text?

Methods inherited from XmlBasedDocument::XmlNodes::Node

#close, #delete, #eql?, #expand, #generic?, #has_text?, inherited, #initialize, #root?, #to_s, #xml_name

Instance Method Details

#fetch_style(elem_style) ⇒ Object



223
224
225
226
227
228
229
230
231
232
233
234
235
# File 'lib/doc2text/odt/odt_xml_namespaces.rb', line 223

def fetch_style(elem_style)
  if elem_style
    elem_style.children.select { |style_property| style_property.xml_name == 'style:text-properties' }.each { |text_property|
      text_property.attrs.each { |attr|
        if attr.prefix == 'style'
          if attr.localname == 'list-level-style-number' && attr.value == 'Numbering_20_Symbols'
            @enclosing_style << '_'
          end
        end
      }
    }
  end
end

#openObject



219
220
221
# File 'lib/doc2text/odt/odt_xml_namespaces.rb', line 219

def open
  "\n"
end