Class: Odf::Element::TextListItem
Constant Summary
collapse
- VALID_OPTIONS =
{
start_value: 'text:start-value',
style_override: 'text:style-override',
style_name: 'text:style-name'
}
- XML_TAG =
'text:list-item'.freeze
Instance Attribute Summary
Attributes inherited from Abstract
#parent, #root
Class Method Summary
collapse
Instance Method Summary
collapse
Methods inherited from Abstract
#document, #initialize, #valid_options, #xml_tag
Class Method Details
.build(parent, options = {}) ⇒ Object
12
13
14
|
# File 'lib/odf/element/text_list_item.rb', line 12
def self.build(parent, options = {})
new(parent, options)
end
|
Instance Method Details
#add_heading(text, options = {}) ⇒ Object
16
17
18
|
# File 'lib/odf/element/text_list_item.rb', line 16
def add_heading(text, options = {})
Odf::Element::Heading.build(self, text, options)
end
|
#add_paragraph(text, options = {}) ⇒ Object
20
21
22
|
# File 'lib/odf/element/text_list_item.rb', line 20
def add_paragraph(text, options = {})
Odf::Element::Paragraph.build(self, text, options)
end
|
#add_text_list(options = {}) ⇒ Object
24
25
26
|
# File 'lib/odf/element/text_list_item.rb', line 24
def add_text_list(options = {})
Odf::Element::TextList.build(self, options)
end
|