This commit is contained in:
@@ -14,6 +14,7 @@ module Ezdoc
|
||||
zipfile.get_output_stream("_rels/.rels") { |f| f.write(relationships_xml) }
|
||||
zipfile.get_output_stream("word/_rels/document.xml.rels") { |f| f.write(document_relationships_xml) }
|
||||
zipfile.get_output_stream("word/document.xml") { |f| f.write(document_xml) }
|
||||
zipfile.get_output_stream("word/styles.xml") { |f| f.write(styles_xml) }
|
||||
|
||||
zipfile.get_output_stream("word/numbering.xml") { |f| f.write(numbering_xml) } if lists?
|
||||
|
||||
@@ -36,7 +37,7 @@ module Ezdoc
|
||||
end
|
||||
|
||||
def content_types_xml
|
||||
Xml::ContentTypes.new(has_numbering: lists?, images: images).to_xml
|
||||
Xml::ContentTypes.new(has_numbering: lists?, images: images, has_styles: true).to_xml
|
||||
end
|
||||
|
||||
def relationships_xml
|
||||
@@ -44,13 +45,17 @@ module Ezdoc
|
||||
end
|
||||
|
||||
def document_relationships_xml
|
||||
Xml::DocumentRelationships.new(has_numbering: lists?, images: images).to_xml
|
||||
Xml::DocumentRelationships.new(has_numbering: lists?, images: images, has_styles: true).to_xml
|
||||
end
|
||||
|
||||
def document_xml
|
||||
Xml::DocumentXml.new(@document.nodes).to_xml
|
||||
end
|
||||
|
||||
def styles_xml
|
||||
Xml::StylesXml.new(@document.styles).to_xml
|
||||
end
|
||||
|
||||
def numbering_xml
|
||||
Xml::Numbering.new(@document.lists).to_xml
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user