362 Commits

Author SHA1 Message Date
Nikita Kryuchkov
a3c3e9ba5b Add tables loop to Paragraphs funcs of Header and Footer (#303)
* Add `Tables` func for `Header`, `Footer`
* Embed tables loop into `Header.Paragraphs`, `Footer.Paragraphs`
2019-06-24 21:37:53 +00:00
Marc Coury
f61dcc30ae Fix runtime panic when making a presentation from a template (#291) 2019-06-21 19:37:04 +00:00
Nikita Kryuchkov
9b742a3505 Fix comment on the AddSheet (#299) 2019-06-17 18:27:10 +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.
v1.2.0
2019-06-09 11:56:06 +00:00
Nikita Kryuchkov
1783b652de Functions to copy and remove sheets (#281)
* 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`
v1.1.0
2019-05-12 12:12:11 +00:00
Nikita Kryuchkov
06b1c96f8f Add tables loop to document's Paragraphs func (#280) 2019-05-11 16:06:59 +00:00
Gunnsteinn Hall
c01764e24e Update README.md (#275) 2019-05-04 16:00:14 +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
Gunnsteinn Hall
5db1a51c57 Update README.md (#271) 2019-04-29 14:52:52 +00:00
Jeff Stiles
001376ca65 include CT_SdtRow entries in table.Rows() (#261) 2019-04-10 23:07:05 +00:00
Jeff Stiles
bd218fda99 include CT_SdtCell entries in row.Cells() (#260) 2019-04-10 22:17:28 +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
Alfred Hall
8b9073797c Update README.md (#242) 2019-02-20 21:59:30 +00:00
Alfred Chou
a2d0a4b5ce Added RGBA constructor. 2018-12-27 20:50:31 -06:00
Todd
29b701ce7b spreadsheet: set custom row height attribute
Set the custom row height attribute which is required
for Excel to use the row height property.

Fixes #232
2018-12-24 09:34:58 -06:00
Todd
15d7d72c01 spreadsheet: support rotated cells
Fixes #226
2018-12-18 19:20:19 -06:00
Todd
08d318b31d document: look for merge fields in tables
Fixes #223
2018-11-29 08:41:12 -05:00
Tom Weber
a4556291f8 Added Run.AddPageBreak() 2018-11-15 07:03:24 -06:00
Tom Weber
0e43c60303 Added ParagraphStyleProperties methods for alignment and indent 2018-11-15 07:03:24 -06:00
Tom Weber
372ab211c7 Added MultiLevelType methods, set level Start to 1 2018-11-15 07:03:24 -06:00
Tom Weber
17957ac779 Added Cell.AddTable() 2018-11-14 07:11:04 -06:00
Todd
4f678e9952 spreadsheet: add a RemoveCalcChain function
This allows removing the cached calculation change which
can contain bad data if rows are inserted/removed.

Fixes #215
2018-10-17 17:11:41 -05:00
Todd
a367a88248 spreadsheet: update merged cell references when inserting rows
Fixes #212
v1.0.1
2018-10-14 18:26:02 -05:00
Todd
e917b8a1e8 schema: unit test for issue #207 2018-09-30 11:51:46 -04:00
Sol Cates
7236b2c061 Added empty struct to avoid nill pointer error 2018-09-30 11:32:05 -04:00
Todd
31484197ea spreadsheet: support inserting rows within a sheet
Fixes #203
v1.0.0 v0.9.2
2018-09-28 05:49:56 -05:00
Todd
ed84939b3b document: fix IsBold check
We used existence to indicate non-boldness, but the element
can exist with a false value which also means bold is disabled.

Fixes #204
2018-09-28 05:49:39 -05:00
Todd
3115a2ad3c document: support controlling table cell margins
Fixes #202
2018-09-26 20:02:06 -05:00
Todd
70dbd44232 common: handle unordered relationships correctly
Continued part of #198 after @JasonFromSpace pointed out
an error with the original fix.
v0.9.1
2018-09-17 17:58:35 -05:00
Todd
0b5e389ad4 meta: add go.mod v0.9.0 v0.9 2018-09-14 15:12:25 -05: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
Todd
781c94bde4 common: generate unique relationship IDs
We were relying on ordered relationship IDs to be generated
by other applications when we open their files, but it's not
required which broke an assumption we made.  Fix this by ensuring
that generated relationship IDs don't occur in the file already.

Fixes #198
2018-09-14 14:48:38 -05:00
Todd
c016b46786 meta: specify 1.11 specifically for travis 2018-09-11 20:28:33 -05:00
Todd
75f877dbab document: Google docs writes out incorrect floating point values
Relax our parsing somewhat so we can read these documents,
truncating at the decimal point back to an integer.

Fixes #196
2018-09-11 20:28:33 -05:00
Todd
e6c056205f meta: fix pdf export ole example 0.8 2018-07-27 16:30:49 -05:00
Todd
b373ef76b4 meta: update version info 2018-07-27 16:30:49 -05:00
Todd
acf3430d9b document: support for adding rows before/after
This makes editing document templates easier as you can insert
rows mid-table.
2018-07-27 16:30:49 -05:00
Todd
3e25a7246b document: support for replacing mail merge fields
Fixes #170
2018-07-27 15:34:01 -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
675d117125 ci: add tip back
gofmt can change, so we shouldn't make it mandatory in CI
2018-07-08 18:15:14 -05:00
Todd
7f7bedb858 document: fix non-PNG image support
Fixes #188
2018-07-08 18:15:14 -05:00
Todd
a78d579d58 examples: add PDF export and TOC generation examples
This only works on Windows as it uses OLE to drive MS Word, but
it allows offloading complex functionality to the actual MS Word
instead of implementing a Word renderer.

Fixes #185
2018-06-04 16:42:51 -05:00
Todd
9471100d92 document: add more fine grained control of line spacing 2018-05-28 07:35:39 -05:00
jjjabc
4293d9cb58 document: support inserting table before/after paragraph v0.7.1 2018-05-25 15:51:48 -05:00
jjjabc
e44d93ec4d document: support inserting table anywhere 2018-05-25 15:51:48 -05:00
Todd
6a24803846 license: be more lenient regarding licensing formatting 2018-05-18 18:35:28 -05:00