Todd
cb28280f74
document: refactor properties
...
Move functions from Run to the Run's properties
2017-10-10 17:03:43 -04:00
Todd
6884ee78c3
document: support adding hyperlinks to a document
...
Fixes #113
2017-10-10 12:58:20 -05:00
Todd
35ff76f0f2
document: allow controlling table cell width
...
Fixes #112
2017-10-10 12:58:20 -05:00
Todd
97606f33f1
document: allow more table control
...
- Table alignment within a page
- Row Height
- Cell vertical alignment
Fixes #109
2017-10-10 07:49:03 -05:00
Todd
51a92c4642
document: add support for controlling table cell shading
2017-10-03 08:19:10 -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
b7c59b4c94
document: support controlling paragraph alignment
2017-10-03 08:19:10 -05:00
Todd
f8b73698a6
gooxml: don't put a 'v' in version number metadata
...
OSX Word requires that this be only numbers, or it will
display an error indicating a corrupted file.
2017-10-03 07:40:50 -05:00
Todd
d0820f1553
gooxml: add release info to metadata in generated files
2017-10-01 11:45:06 -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
50c3c2c990
document/spreadsheet: updates for new schema
2017-09-10 10:33:53 -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
7e0d2edaab
spreadsheet: add support for named cells/rows
2017-09-06 15:20:51 -04:00
Todd
e83404616d
Revert "schema: apply more default values"
...
This caused problems with Libre.
This reverts commit 59b2711e1b87be534c9cd3d155710d13cfe7743b.
2017-09-05 06:33:38 -05:00
Todd
59b2711e1b
schema: apply more default values
...
These are implied values as they are the defaults in the XSD
for optional attributes/elements. However I've noticed that
I keep running into issues where Mac Excel/Word fail to open
a file unless an optional default is provided.
I'll just add them all to hopefully increase compatibility and
save painful file format debugging sessions later.
2017-09-04 17:14:06 -05: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
Todd
8f45ea019b
spreadsheet: add thumbnail support
2017-09-02 17:50:38 -05:00
Todd
a54e7275e4
common: add core properties tests
2017-09-02 14:23:54 -05:00
Todd
a9cf6c7867
schema: cleanup
...
- force qualify spreadsheet drawing elements
- treat EG_RPrBase as singular, meaning we can move it's elements up a level
2017-09-02 11:16:56 -05:00
Todd
90d005a914
document: add more styling support
...
- support character spacing and kerning in run style
- support contextual spacing in paragraph style
- add title style to new documents
- fix en-us -> en-US typo
2017-09-02 10:52:56 -05:00
Todd
09041bcba5
document: fix space preserve on run text content
2017-09-02 10:52:56 -05:00
Todd
10ca06e4c6
document: add Heading1 style to new documents
2017-09-02 10:52:56 -05:00
Todd
0bbb5d2ba5
document: rename RunStyle to RunStyleProperties
2017-09-02 10:52:56 -05:00
Todd
caebe001a8
document: add more documentation and examples
2017-09-01 19:26:26 -05:00
Todd
3820294523
document: fix lint errors and add documentation
2017-09-01 18:12:43 -05:00
Todd
ec7c4ce013
document: add support for extracting/saving document thumbnail
2017-09-01 17:13:33 -05:00
Todd
a17c96a558
example: add a Word form fill example
2017-08-31 22:17:52 -05:00
Todd
7c630b0030
schema: update prefix for http://schemas.openxmlformats.org/officeDocument/2006/docPropsVTypes
...
Use the same prefix that Word uses
2017-08-31 22:17:52 -05:00
Todd
025b88bb31
document: add more paragraph properties control methods
2017-08-31 19:55:05 -05:00
Todd
9dae249a88
document: move paragraph properties to their own type
2017-08-31 19:55:05 -05:00
Todd
eb1b8ef793
examples: add merged cells to table example
2017-08-31 19:55:05 -05:00
Todd
a16a7edaa2
example: add docx2md (.docx to markdown) example
2017-08-31 18:52:40 -05:00
Todd
16cda3ea7a
schema: treat xsd:integer as 64 bit
...
It's arbitrary precision per XSD, so may have to
change again. Treating it as a 64 bit value for now.
2017-08-31 18:12:29 -05:00
Todd
8e630657bf
examples: add Word template example
...
Add an example that shows how to use a Word document
as a template and pull its styles for use in a new document.
2017-08-30 17:25:49 -05:00