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

Instance Method Details

#background_colorOoxmlParser::Color

Temp method to return background color Need to be compatible with older versions

Returns:



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_dataNil, CommentExtended

Returns extended data for this comment.

Returns:



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