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

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

Instance Attribute Summary

Attributes included from Node

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

Instance Method Summary collapse

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

#fetch_style?, #find_style, #initialize

Methods included from Node

#close, create_node, #delete, #eql?, #expand, #generic?, #has_text?, included, #initialize, #not_enclosing?, #office_text?, #root?, titleize, #to_s, #xml_name

Instance Method Details

#fetch_style(elem_style) ⇒ Object



198
199
200
201
202
203
204
205
206
207
208
209
210
# File 'lib/doc2text/odt_xml_namespaces.rb', line 198

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



194
195
196
# File 'lib/doc2text/odt_xml_namespaces.rb', line 194

def open
  "\n"
end