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
36 stars 6 forks source link

Separate Footer and Header #41

Closed jferard closed 7 years ago

jferard commented 7 years ago

The FooterHeader class stores both header and footer, but we need to check the type (h or f) at some places. This check could be avoided with two classes. Perhaps a design like this: keep the FooterHeader class but let it store an instance of FooterOrHeader interface that gathers the specific code of each "type".

jferard commented 7 years ago

Current situation:

jferard commented 7 years ago

Some ideas: