58 Commits

Author SHA1 Message Date
Vyacheslav Zgordan
a0f7c7c3b1
paragraph and run properties (#391)
* paragraph and run properties

* comments are added, font size in points

* VertAlign renamed to VerticalAlignment

* Color renamed to HexColor

* RStyle comments

* Color and comments
2020-05-12 13:01:04 +00:00
Vyacheslav Zgordan
183bd3c21b
Playground (#381)
* 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
2020-04-24 12:01:19 +00:00
Casey Kuhlman
5f9c94bf84
add the ability to utilize footnotes and endnotes in documents (#374)
* add ability to handle footnotes and endnotes
* address review comments to make code much cleaner
* add license headers and simple example
2020-03-13 09:53:51 +00:00
Vyacheslav Zgordan
dd7713e1e3 Functions2 (#348)
* MATCH, IFS, MAXA, MINA
* OFFSET fixed
* ISBLANK, ISERR, ISERROR, ISEVEN ,ISFORMULA, ISNONTEXT, ISNUMBER, ISODD, ISTEXT
* ISLEAPYEAR, ISLOGICAL, ISNA, ISREF
* FIND, FINDB
* SEARCH, SEARCHB
* CONCAT, CONCATENATE
* YEAR, YEARFRAC
* CONCAT is fixed, now TRUE and FALSE are concatenated instead of 1 and 0 in case of boolean results
* NOW, TODAY, TIME, TIMEVALUE
* DATE
* DATEDIF
2019-11-20 23:21:00 +00:00
Vyacheslav Zgordan
d1ac9ebe5b Optional custom.xml (#340)
* Optional custom.xml
2019-10-23 19:06:11 +00:00
Vyacheslav Zgordan
ae4e2e35b9 #315, #323, #329 (#330)
* #315, #323, #329

* New testfile
2019-10-01 07:11:17 +00:00
Vyacheslav Zgordan
26d9caa6f8 Support custom metadata in document properties (#309)
* https://github.com/unidoc/unioffice/issues/302
2019-08-04 18:52:05 +00:00
Vyacheslav Zgordan
f7abdfa23d issue with paragraph containing several form fields #305 fix (#311) 2019-08-03 12:40:05 +00:00
Vyacheslav Zgordan
d351975af1 Baliance replaced for FoxyUtils ehf in License information (#312) 2019-07-25 16:43:46 +00:00
Marc Coury
c6ab0e98df Add images from bytes for presentation and workbook (#295) 2019-07-02 14:54:55 +00:00
Alfred Hall
2e7943e809 New license based on the unidoc model (#294)
* Style fixes.  Fixes for tests. Should not fail with version updates in the future.
2019-06-09 11:56:06 +00:00
Nikita Kryuchkov
06b1c96f8f Add tables loop to document's Paragraphs func (#280) 2019-05-11 16:06:59 +00:00
Gunnsteinn Hall
270664ca01
Rename package name to unioffice (#274) 2019-05-04 13:54:29 +00:00
Nikita Kryuchkov
e8bf6a3bb9 Move repository https://github.com/baliance/gooxml to https://github.com/unidoc/unioffice (#273) 2019-05-04 08:18:06 +00:00
Nikita Kryuchkov
e65ced8888 Add purl.oclc.org namespace support (#265)
* Regenerate code to handle purl.oclc.org docs correctly
* Make purl.oclc.org docs be opened just as the openxml ones
* Modify opening routine to change strict docs to non-strict
- `CustomXMLType` and `CustomXMLTypeStrict` were added to properly replace
these in strict docs
- `Decode` of `zippkg` was modified to replace the namespace in
relationships
- `TestOpenStrict` was modified to open the strict file, save it as
non-strict, reopen non-strict and validate its correctness
2019-04-29 15:32:26 +00:00
Jeff Stiles
32d0f79893 Included nested tables in document.Tables() output (#257)
* included nested tables in document.Tables() output

* add test case for getting tables

remove comments

* cleanups
2019-04-03 16:56:05 +00:00
Jeff Stiles
167fc12abe Support fetching bookmarks within tables, including recursively (#255)
* support fetching bookmarks withing tables, including recursively

* change to pointer receiver
2019-04-03 10:02:32 +00:00
Tom Weber
b746aceced Image from data (#251)
* ability to create image from in-memory data

* gitignore: vim swap files
2019-03-29 16:26:51 +00:00
Todd
d8887513e0 document: fix jpg image support
The earlier fix was not correct, it fixed filenames in the
package, but not the relationship reference.

Fixes #188
2018-09-14 14:48:38 -05:00
Evgeniy Kulikov
1f94b99711 document: add footer image support
Add support for adding images to footers.
2018-07-16 16:35:15 -05:00
Todd
7f7bedb858 document: fix non-PNG image support
Fixes #188
2018-07-08 18:15:14 -05:00
jjjabc
4293d9cb58 document: support inserting table before/after paragraph 2018-05-25 15:51:48 -05:00
jjjabc
e44d93ec4d document: support inserting table anywhere 2018-05-25 15:51:48 -05:00
Todd
efd47ee66a document: support for iterating over tables
Thanks to lishuu for the issue and fix.

Fixes #162
2018-03-13 08:46:03 -04:00
Todd
fd26e4bbcf document: support for embedding images in headers
Fixes #150
2018-01-24 20:05:00 -05:00
Todd
2e895a8dad document: when adding an image, ensure content-types exist for it
Fixes #142
2017-12-27 16:48:14 -06:00
Todd
5b7fbecc4e document: support for enumerating bookmarks
- enumerate bookmarks
- validate that bookmark names are unique
2017-12-03 11:27:00 -06:00
Todd
f5a8df0deb presentation: initial work for presentations 2017-11-18 11:52:13 -06:00
Todd
baff4fdfcd document: support editing headers/footers
- adds a Paragraphs() method on Header/Footer
- reworks remove paragraph logic for document to be consistent

Fixes #116
2017-10-10 18:04:34 -04:00
Todd
6884ee78c3 document: support adding hyperlinks to a document
Fixes #113
2017-10-10 12:58:20 -05:00
Todd
c887342ed1 document: add validation for table row/cell contents
OSX Word is very opinionated about the contents.
2017-10-03 08:19:10 -05:00
Todd
5bfa034ef9 gooxml: add and use a Log function
This allows redirecting or discarding any
logs produced by the library.
2017-09-30 07:09:26 -05:00
Todd
6cf6944f09 document: support inserting runs mid-paragraph 2017-09-28 19:21:07 -05:00
Todd
1b53d772ee document: support inserting paragraphs within a document 2017-09-28 18:20:56 -05:00
Todd
89b1416b8f gooxml: rework how filenames are calculated
This is needed for pivot tables, split out from that branch
so any further changes to filename handling will be easier in
master.
2017-09-28 18:20:56 -05:00
Todd
11edbae6be document: fix rewriting of images within document names
I have a better fix for filenames in the pivot table branch
that I intend to break out later.
2017-09-28 16:56:22 -05:00
Todd
82f22691b2 document: support removing runs/paragraphs 2017-09-26 19:34:13 -05:00
Todd
427f7b1e45 schema: rename officeDocument to ofc 2017-09-23 10:01:17 -04:00
Todd
599631208a schema: rename drawingml to dml 2017-09-23 10:01:17 -04:00
Todd
e880adfc5b schema: rename package to pkg 2017-09-23 10:01:17 -04:00
Todd
ca6c54dc60 schema: rename wordprocessingml to wml 2017-09-23 10:01:17 -04:00
Todd
09825ac816 schema: rework schema namespaces to work around Windows issues
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
2017-09-23 10:01:17 -04:00
Todd
558e5ee274 spreadsheet: add image support and example 2017-09-11 20:17:06 -05:00
Todd
c863154dc0 common: move images to doc base 2017-09-11 20:17:06 -05:00
Todd
3bc4675cf6 spreadsheet: add comment support
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...
2017-09-10 11:25:29 -05:00
Todd
41e2d6eaec document: add support for rewriting document filenames
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.
2017-09-08 18:30:40 -04:00
wangguoliang
6541491518 misspelling 2017-09-07 22:05:29 -04:00
Todd
f07c57cae7 gooxml: move content types to base package 2017-09-04 11:08:29 -05:00
Todd
6164089457 zippkg: start breaking out decoding
Decoding was getting fairly complicated, it seems cleaner
to have something handle the relationships file and traversal
and the document just be notified via callback when new
files have been found.
2017-09-04 11:08:29 -05:00
Todd
a06fea99f7 spreadsheet: add saving/loading of themes 2017-09-02 17:50:38 -05:00