* Fixes in CI (#406)
* Create .gitattributes
* Update .travis.yml
* Update .travis.yml
* travis fix
* only errors are printed in travis log
* spreadsheet errors fixed: duplicate ID in non-visual properties and lack of third axis in an example
* set-strict example fix
* build-examples.sh exits with error status in the case of build error
* redundant command deleted from script
* unneeded image relationships removed
* pptx validation errors fixes
* all output to travis
Co-authored-by: Gunnsteinn Hall <gunnsteinn.hall@gmail.com>
* Fixes for being able to compile with playground
* disk storage replaced for in-memory storage
* CustomProperties is added to presentations and workbooks
* custom properties fix
* custom properties removed redundant code
* write to temp storage error fixed
* var names consistency
* storage as interface
* interfaces
* fixes
* fixes 2
* Note is added
* finalizers
* CELL function
* CELL moved to fninformation.go
* CHOOSE function
* CHOOSE function add one test
* COLUMN function
* COLUMNS function
* COUNTIF function
* COUNTIF, COUNTIFS, MINIFS, MAXIFS, SUMIF, SUMIFS, some style fixes
* SUMIF and SUMIFS moved to the right location
* VALUE function
* wildcard is added
* CELL format fix
* Add funcs to remove sheet from workbook
- RemoveSheet added to remove sheet by index
- RemoveSheetByName added to remove sheet by its name
* Add `CopyRelationship` func to `Relationships`
* Add funcs `CopySheet`, `CopySheetByName`
- `CopySheet` copies sheet at the specified index
- `CopySheetByName` copies sheet with the specified name
* Make `CopyRelationship` return copied rel and bool flag
* Add func `CopyOverride` to `ContentTypes`
* Add test for `CopyRelationship`
* Add tests for sheet removing funcs
* Add test for `CopyOverride`
* Add tests for `CopySheet`, `CopySheetByName`
We don't bother keeping all files in memory as there
can be several, and we don't need them all. This just
adds a Close() method that can be used to ensure the
temporary files are removed.
The go command on Windows doesn't like long path name. To
work around this, this is the first in a series of changes to
shorten the schema disk path structure in a few places.
Fixes#89
This is a pretty uncommon feature from what I can tell
and is not fully supported. The example for the MDETERM
function uses an array though, so this will at least add
enough support for the examples to compute correctly.
This adds comment support for sheets. Excel requires a VML drawing with
the comment box shape for each comment to display the comment.
LibreOffice displays comments fine with or without the shape, and
creates the shape for its own comments. For the sake of compatibility,
we create comment shapes as well.
I know of no other use for the legacy VML support other than comment
boxes...
The problem this solves is loading and re-saving a document
that uses an odd file structure (e.g. the main body is
not at word/document.xml). I've seen this occur with spreadsheets
but not with a docx in the wild, however it's fairly simple
to handle in case it occurs.
- Created chart, drawing packages for the chart/drawing stuff common
between document type
- Need to go back and clean up any drawing related document types after
This seems like the better choice, a lot of the logic is shared
between the document types, and it allows generating filenames in
a single place.
The only downside is that you must pass in the document type as
some content types have different typical names depending on the
document type (e.g. an 'office document' is the main document.xml,
workbook.xml and presentation.xml