Commit Graph

45 Commits (238d2bc3fec368fee4c892da1894d56ece8b252b)

Author SHA1 Message Date
Igor Strebz 238d2bc3fe
Implement streaming writers (#765)
* Make XMLBuilder generic

* Reduce allocations at XmlData display impl

* Implement streaming writers

- Extend BuildXML trait, add the streaming method
- Remove impls for Box<Ty>, as they can be implemented on the trait level
- Rewrite build() methods in chaining style, backed by apply_* helpers
- Remove quite a few allocations, though numbers still produce them
- Add spaces between children nodes, fix tests

* Add rustfmt.toml and format code

* Fix clippy warnings

* Expose the BuildXML trait without displaying its methods in hints
2024-11-05 11:22:32 +09:00
bokuweb 6b38d4fbbc
Add snap to grid (#744)
* fix: snapToGrid

* fix:

* fix

* fix

* fix
2024-07-18 19:11:11 +09:00
bokuweb bf385f752d
faet: Support snap to grid (#742) 2024-07-17 16:28:29 +09:00
bokuweb e182f0e2d3
feat: Support adjust_right_ind (#691)
* feat: Support adjust_right_ind

* beta6

* fix: update spec

* fix
2024-03-18 23:27:28 +09:00
bokuweb 13b8d9bc44
feat: Support w:textAlignment (#690) 2024-03-18 21:29:16 +09:00
bokuweb 6955cd0e65
Support frame pr (#687)
* feat: define framePr

* fix: read frame pr

* fix: page num writer

* fix: page num writer

* feat: add page num for writer

* fix: add page_num for footer

* spec: update snaps

* fix: clippy

* 0.4.12-beta3

* fix: add frameProperty

* fix
2024-03-18 17:28:52 +09:00
bokuweb 921b0f1057
[https://github.com/bokuweb/docx-rs/issues/655] fix: tabs (#656)
* fix: tabs

* fix: spec
2023-10-10 16:00:15 +09:00
Griklit 86786eaa7b
add Paragraph borders (#642)
* fix widow_control xml

* add character_spacing_control

* snapshot
fix - character_spacing_values, snack to camelCase

* wasm snapshot

* snapshot

* paragraph_borders

* Update docx-core/src/documents/elements/paragraph_property.rs

Co-authored-by: bokuweb <bokuweb12@gmail.com>

---------

Co-authored-by: gwq <guowanqi@tianchuangsec.com>
Co-authored-by: bokuweb <bokuweb12@gmail.com>
2023-07-27 21:43:15 +09:00
bokuweb 637c2a86f4
Support char spacing (#637)
* fix: spacing

* fix: spacing

* fix

* fix

* fix: snaps
2023-06-23 19:09:27 +09:00
Griklit 2897f0823c
fix widow_control xml, add character_spacing_control (#633)
* fix widow_control xml

* add character_spacing_control

* snapshot
fix - character_spacing_values, snack to camelCase

* wasm snapshot

* snapshot

---------

Co-authored-by: gwq <guowanqi@tianchuangsec.com>
2023-06-23 00:20:27 +09:00
bokuweb 44a236e6c0
fix: expose outline level (#590)
* fix: expose outline level

* fix: js method for style

* fix

* fix
2022-12-13 23:05:37 +09:00
bokuweb 726d0958c5
Read section props in paragraph (#533)
* feat: support section property in ppr

* spec: Add snao

* fix

* fix
2022-09-09 11:52:53 +09:00
bokuweb 87b0439ac8
Re fix numpr (#407)
* fix: numpr reader

* fix

* fix

* fix
2022-01-14 15:03:53 +09:00
bokuweb f51735babf
feat: Support pprchange (#402) 2022-01-08 01:28:34 +09:00
bokuweb c89783e8d8
Improve toc writer2 (#389)
* fix: tab for toc

* fix:

* feat: Add paragraph.raw_text

* fix: improve toc item

* fix: toc item builder

* fix:

* fix

* feat: impl page ref for toc

* fix

* fix

* feat: Suppport hyperlink

* feat: Support alias

* feat: disable auto items

* feat: Add toc styles

* fix: clippy

* fix: test

* fix
2022-01-03 02:18:04 +09:00
bokuweb a22abb3b4a
Support strike (#390)
* fix: spec

* fix: spec

* fix: strike
2021-12-21 11:54:27 +09:00
bokuweb c6a555aa75
Improve spacing (#367)
* fix: line spacing interfaces

* fix: js interface

* fix: js if

* fix: reader and testing
2021-11-25 19:42:06 +09:00
bokuweb 00e01479e6
fix: outline lvl (#356)
* fix: outline lvl

* refactor

* fix test
2021-10-20 16:37:51 +09:00
Łukasz Kądalski 241a08dd42
Support for Paragraph's Line Spacing (#346)
* Support for Line Spacing

Signed-off-by: lkadalski <kadalski.lukasz@gmail.com>

* Fixing clippy and yarn test

Signed-off-by: lkadalski <kadalski.lukasz@gmail.com>
2021-09-29 09:03:39 +09:00
14sxlin ff86d6fa67
add paragraph propertie outlineLvl support (#335)
* add support for outlineLvl of ParagraphPropertiy

* add outline_lvl method to Paragraph

* add outlineLvl example

* update test case about  json serializer output
2021-09-10 09:42:08 +09:00
bokuweb 5bb2d7d761
Support vertalign (#302)
* feat: Support vert_align

* 0.0.197

* fix: fixtures
2021-06-08 00:10:44 +09:00
bokuweb d0cec601bc
Read ins del inrpr (#301)
* feat: Support del in rPr

* update snaps

* fix: support del/ins in run property

* 0.0.196
2021-06-07 19:30:05 +09:00
bokuweb 5402fe2190
Update ppr (#276)
* fix: writer

* fix: reader

* fix: spec

* fix: js

* 0.0.190
2021-04-14 12:01:38 +09:00
bokuweb b0a7de6b69
spec: update snaps (#272)
* spec: update snaps

* fix: lint

* 0.0.184

* fix: snaps

* fix: Add id

* 0.0.186

* fix: Add divid

* 0.0.187

* fix: divsChild

* 0.0.188

* 0.0.189

* fix: add fixtures
2021-04-09 11:30:50 +09:00
bokuweb 153429a086
Read hanging chars (#273)
* fix: reading hanging chars

* update snaps

* 0.0.183
2021-04-08 16:53:21 +09:00
bokuweb 6f6a399597
Support text border (#257)
* feat: Add text_border

* feat: Add reader

* feat: Add js if and test

* 0.0.171

* update test
2021-03-21 00:16:43 +09:00
bokuweb 454556606b
Spacing (#169)
* feat: Add spacing

* rename

* feat: Add run spacing

* spec: update snaps

* fix: lint error
2020-10-14 10:16:13 +09:00
bokuweb e143a80216
Support min section3 (#126)
* feat: Add section elements

* feat: Add selection type

* update snaps
2020-09-02 15:54:43 +09:00
bokuweb 00aecc91e0
Support font and paragraph prop (#81)
* feat: Add run fonts

* feat: Fix run property in pPr

* feat: Add js interface

* fix: lint error
2020-06-08 13:41:13 +09:00
bokuweb 7556154bd5
fix: change pStyle dfefault to null (#72) 2020-05-27 20:43:25 +09:00
bokuweb edb8843b52
Fix reader error2 (#55)
* fix: numproperty

* update

* fix: lint error
2020-03-13 17:01:25 +09:00
bokuweb 6f54e5e493
Support start chars (#51)
* feat: suport start char for writer

* support start char and add option to indent start

* fix:lint error

* fix: lint
2020-03-10 11:56:12 +09:00
bokuweb 4378de2ecc
Fix read error (#49)
* fix: use i32 instead of usize for indent

* update

* fix:insert json type

* fix: insert and delete child

* update
2020-02-28 19:52:41 +09:00
bokuweb 5fe4e4d646
Add reader (#33)
* feat: Add contenttypes and rel deserializer

* feat: Add reader fundation

* feat: Add run reader

* feat: Add run reader

* feat: Add paragraph reader foundation

* fix:test

* feat: Add book mark

* fix:bookmark id

* feat: Add bookmark reader

* feat: Add paragraph json fondation

* fix:fix reader

* feat: Add table reader foundation

* feat: Add table reader foundation

* feat: Add table cell prop serializer

* chore: rename content to children

* feat: Add row serializer

* feat: Add table property serializer

* fix: lint error

* feat: Add table reader

* feat: reader
2020-02-11 17:01:39 +09:00
bokuweb 73001dc720
Use string for wasm (#1)
* feat: Add numberings

* feat: Use String for wasm

This is because wasm-bindgen does not support 'static for function
Pleaase see https://github.com/rustwasm/wasm-bindgen/issues/1187
2019-12-09 04:14:27 +09:00
bokuweb 182f82e9a0 feat: Support custom numbering 2019-12-07 02:15:21 +09:00
bokuweb 61cc95f6ba feat: Add numberings 2019-12-07 00:20:33 +09:00
bokuweb 23b422c25f feat: Add cell 2019-11-12 18:57:16 +09:00
bokuweb b28c482c75 feat: Support indent 2019-11-11 17:16:27 +09:00
bokuweb b167bd7f8d feat: Support size 2019-11-11 15:36:26 +09:00
bokuweb d92d111aa6 feat: Add p style 2019-11-11 14:45:01 +09:00
bokuweb 879189da3c feat: Support alignment 2019-11-11 13:05:07 +09:00
bokuweb 9e2c2c2951 feat: try wasm build 2019-11-08 00:02:27 +09:00
bokuweb f5f089c54e feat: Add styles 2019-11-07 13:57:58 +09:00
bokuweb 16ecf4ec8c feat: Add style props 2019-11-06 19:23:55 +09:00