jferard / fastods

A very fast and lightweight (no dependency) library for creating ODS (Open Document Spreadsheet, mainly for Calc) files in Java. It's a Martin Schulz's SimpleODS fork
GNU General Public License v3.0
35 stars 6 forks source link

Default master page style is absent of styles.xml #213

Closed jferard closed 3 years ago

jferard commented 3 years ago

Integration test, file a_hello_world_example.ods:

In content.xml:

<office:automatic-styles>
    <style:style style:name="ta1" style:family="table" style:master-page-name="DefaultMasterPage">
    ...
</office:automatic-styles>

And:

<table:table table:name="hello-world" table:style-name="ta1" table:print="false">

In styles.xml:

<office:automatic-styles>
    <style:page-layout style:name="Mpm1">
        <style:page-layout-properties fo:page-width="21cm" fo:page-height="29.7cm" style:num-format="1" style:writing-mode="lr-tb" style:print-orientation="portrait" fo:margin="1.5cm"/>
        <style:header-style><style:header-footer-properties fo:min-height="0cm" fo:margin="0cm"/></style:header-style>
        <style:footer-style><style:header-footer-properties fo:min-height="0cm" fo:margin="0cm"/></style:footer-style>
    </style:page-layout>
</office:automatic-styles>

And:

<office:master-styles>
    <style:master-page style:name="Mpm1" style:page-layout-name="Mpm1">
    ...
    </style:master-page>
</office:master-styles>

DefaultMasterPage style is not defined.

jferard commented 3 years ago

See 9cff45c4bcdc9f39e7d0a8b497bd3cef9e82dda5