Module: OoxmlParser::DocxParagraphHelper
- Included in:
- DocxParagraph
- Defined in:
- lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_helper.rb
Overview
Stuff for help working with paragraph
Instance Method Summary collapse
-
#background_color ⇒ OoxmlParser::Color
Temp method to return background color Need to be compatible with older versions.
-
#comment_extend_data ⇒ Nil, CommentExtended
Extended data for this comment.
Instance Method Details
#background_color ⇒ OoxmlParser::Color
Temp method to return background color Need to be compatible with older versions
16 17 18 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_helper.rb', line 16 def background_color paragraph_properties.shade.to_background_color end |
#comment_extend_data ⇒ Nil, CommentExtended
Returns extended data for this comment.
7 8 9 10 11 |
# File 'lib/ooxml_parser/docx_parser/document_structure/docx_paragraph/docx_paragraph_helper.rb', line 7 def comment_extend_data return if @paragraph_id.nil? root_object.comments_extended.by_id(@paragraph_id) end |