Commit Graph

145 Commits (574180673417cfa343d31a278f7469f0876a73f4)

Author SHA1 Message Date
bokuweb 5bb1c8ed0d
Support f optoin in tc (#797)
* fix: Support id

* rc31
2025-01-22 20:31:07 +09:00
bokuweb 1e6227e4f7
feat: Support tc (#793)
* feat: Support tc

* fix: f option

* rc29

* rc30
2025-01-17 19:21:40 +09:00
bokuweb 11e09de5cd
Add toc ppr (#785)
* feat: add ppr in toc

* feat: add frame property

* fix: add rpr

* fix: add toc paragraphProperty

* support toc paragraph property

* fix: some properties

* 0.4.18-rc20

* fix: toc style

* chore: rc21

* fix

* fix: toc structure

* fix: toc styles
2024-11-22 10:58:49 +09:00
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 60d94921b0
Support ptab in r (#756)
* feat: add ptab

* feat: wasm object

* fix: suppoert ptab

* spec: add read test for ptab

* rc10

* rc11

* rc12
2024-10-15 18:30:05 +09:00
bokuweb 6b38d4fbbc
Add snap to grid (#744)
* fix: snapToGrid

* fix:

* fix

* fix

* fix
2024-07-18 19:11:11 +09:00
hackers267 79147fcce8
Update table_width.rs (#722)
* Update table_width.rs

fix the error when build the xml, the width_type is fixed, not pick from the TableWith

* test:  修改关于width_type的测试用例

* test:  修改关于width_type的测试用例
2024-07-15 08:17:38 +09:00
git-noise 0ef897ed85
Footnotes initial support (#718)
* Initial footnotes support: add content-types dependency

* Initial footnotes support: add relationship

* Initial footnotes support: add footnotes.xml

* Initial footnotes support: add footnote_reference() for XMLBuilder

* Initial footnotes support: add FootnoteReference to RunChild

* Initial footnotes support: add footnotes to XMLDocx

* Initial footnotes support: add footnotes module

* Initial footnotes support: add footnote and footnote_reference modules

* Initial footnotes support: add footnotes handling logic

* Initial footnotes support: add footnotes example

* Initial footnotes support: add footnote element

* Initial footnotes support: add footnote_reference element

* Initial footnotes support: add footnotes document

* Initial footnotes support: add open_footnotes for XMLBuilder

* Initial footnotes support: add test for footnotes reading

* Initial footnotes support: update snapshots for footnotes

* Initial footnotes support: add test docx for footnotes reading

* Initial footnotes support: update features list

* Initial footnotes support: update snapshots for footnotes

* Initial footnotes support: fix clippy lint - redundant-clone

* Initial footnotes support: add automatic footnote ID generation

* Initial footnotes support: add footnote_id module

* Initial footnotes support: switch to automatically generated IDs

* Initial footnotes support: switch to automatically generated IDs
2024-06-24 20:37:27 +09:00
bokuweb 2626b89b83
Support page numbers (#714)
* feat: add num pages

* fix: num pages

* rc1

* fix

* fix

* fix
2024-06-09 09:01:52 +09:00
bokuweb 666c950484
Support tblppr (#693)
* feat: Support table position

* fix: table pr

* fix: wasm for table position

* fix: reader for position property

* fix: snaps

* fix

* fix
2024-03-27 00:09:58 +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 9fbd323ce7
feat: Support pageNumType (#684)
* fix: support page num type writer

* fix: read page num type

* fix: add json type

* fix: add page num type writer

* 0.4.12-beta0

* fix

* fix
2024-03-06 19:13:11 +09:00
bokuweb aefba38e68
Add sdt in header footer (#683)
* fix: read structured data tag in header/footer

* spec: add spec
2024-03-05 11:14:49 +09:00
bokuweb 366ff60b05
Fix even header types (#682)
* fix: header types

* 0.4.9

* fix: title_pg settings

* 0.4.11

* fix: update snaps
2024-03-04 17:51:24 +09:00
bokuweb 72adfa699f
Support image in header footer (#680)
* wip

* wip

* wip

* fix: image in header/footer

* fix: Changelog
2024-02-19 18:11:07 +09:00
bokuweb 76b2622dc6
Support ppr default (#673)
* fix: ppr change

* fix: spacing

* feat: support pPrDefatul
2024-01-17 22:40:47 +09:00
bokuweb dcdb177a7b
fix: https://github.com/bokuweb/docx-rs/issues/665 (#666)
* fix

* spec: update snaps
2023-12-01 01:51: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
bokuweb 64a1b05a22
Fix caps (#645)
* fix: caps

* fix: snaps

* fix
2023-08-09 15:52:30 +09:00
bokuweb 8aec069b83
fix: caps (#643)
* fix: caps

* fix: snaps

* published
2023-07-25 11:31:02 +09:00
bokuweb 637c2a86f4
Support char spacing (#637)
* fix: spacing

* fix: spacing

* fix

* fix

* fix: snaps
2023-06-23 19:09:27 +09:00
bokuweb cfe2887387
fix: character congtrol for js (#634)
* fix: for js

* fix: snaps

* fix
2023-06-23 13:41:36 +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 a2e135d50e
fix: make docGrid optional (#630)
* fix: make docGrid optional

* fix

* fix

* fix

* fix

* fix

* fix
2023-06-16 12:53:47 +09:00
bokuweb 56e46bf77c
fix: escape style name (#612)
* fix: escape style name

* fix: snaps

* fix
2023-03-27 17:35:15 +09:00
bokuweb bffbd468e3
[#587] feat: Support link in style (#596)
* feat: Support link in style

* fix: style

* fix: snaps

* fix

* fix

* chore

Co-authored-by: bokuweb <bokuweb@bokuwebnoair.lan>
2022-12-20 12:01:08 +09:00
bokuweb 838052be0f
Support deleted toc (#595)
* fix: add delete in table of contents

* feat: support deleted toc

* fix
2022-12-20 09:18:48 +09:00
bokuweb 34ebfc5290
fix: after contents in toc (#594)
* fix: after contents in toc

* fix
2022-12-19 17:08:44 +09:00
bokuweb 7f2dace81c
fix: add before/after contents and with_instr_text in toc (#582)
* fix

* refactor js

* fix: add before/after contents in toc

* fix

* fix
2022-12-13 13:33:48 +09:00
hayato-SMZ 8646553d92
Support image align (#564)
* support image align right

* add test case

* add PicAlign Center

* testcase update

* change fmt importing

* lint error update

* align setting move to child
2022-11-04 21:45:53 +09:00
bokuweb 51af3acfaf
Issue554 (#565)
* fix: replace escaped

* fix: #554
2022-11-04 21:44:34 +09:00
bokuweb fe34873259
[#555] feat: Support isLgl (#563)
* feat: Support isLgl

* fix: clippy

* fix: snaps
2022-11-02 22:34:27 +09:00
bokuweb 154a61f3fc
feat: Support specVanish (#559) 2022-11-01 15:10:06 +09:00
bokuweb 698939d728
Fix table row height (#558)
* fix: row height behavior

* rc30
2022-11-01 14:57:27 +09:00
bokuweb 1018e4dd27
Read sdt (#546)
* feat: Add StructuredDataTagJSON

* spec: Add test

* 0.0.276-rc25

* fix: changelog
2022-10-14 18:49:20 +09:00
hayato-SMZ 984c0c2005
Support textdirection (#545)
* add text direction setting

* add text_directionSetting setting function

* snapshots update

* change tex_direction type

* change test snapshots

* change wasm test snap
2022-10-14 14:24:13 +09:00
bokuweb cae632a2f3
feat: support rot (#540) 2022-09-27 13:49:15 +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 2b6344f31b
Add style properties (#530)
* fix: support run style

* fix: table style

* fix: support run style in js

* fix: support paragraph style

* fix

* fix: package

* fix

* rc15

* fix

* fix

* fix

* fix

* fix: test

* fix
2022-09-09 11:10:05 +09:00
bokuweb 5489d03dd0
fix: use instrTextString in reader (#528)
* fix: use instrTextString in reader

* fix: clippy

* fix: snaps

* fix

* fix: instrTextString
2022-08-31 10:59:48 +09:00
bokuweb 333e012e73
0.0.276 rc10 (#527)
* fix: hrule

* fix
2022-08-26 15:40:09 +09:00
bokuweb 69e5654872
0.0.276 rc8 (#524)
* fix: packagejson

* fix: changelog

* fix: js

* fix: table row rule

* fix
2022-08-26 11:14:16 +09:00
bokuweb b4be4bbe9b
Support adjust line height in table (#522)
* fix: support adjust_line_height_in_table in settings

* fix: read adjust in table

* fix
2022-08-25 16:27:55 +09:00
hayato-SMZ 7d026a4ee4
Support multi columns section (#521)
* Add variable space and transfer the role of columns

* Added attribute "w:num" to w:cols

* Update "docx-core" Test and snap updates

* Update "docx-wasm" snap

* Add columns method to Document struct.
2022-08-25 15:30:19 +09:00
bokuweb fec94fd5f5
Read hyperlink instr (#518)
* fix: read hyperlink instr

* fix

* fix

* fix

* rc7
2022-08-10 14:45:27 +09:00
bokuweb 0f5e1d1cdc
0.0.275 (#517)
* 0.0.275

* fix

* fix: hyperlink child types

* read hyperlink rels

* update snaps

* update

* 0.0.275

* fix
2022-08-09 15:32:17 +09:00
bokuweb a346cd1a16
Fix support hyperlink reader (#508)
* fix

* fix: support external link

* wip

* fix

Co-authored-by: bokuweb <bokuweb@bokuwebnombp.lan>
2022-07-06 10:47:15 +09:00
bokuweb f08cefff0a
fix (#496)
* fix

* fix

* fix

* fix

* fix

* fix

* 0.0.271

* fix

* 0.0.272

Co-authored-by: bokuweb <bokuweb@bokuwebnombp.lan>
2022-06-15 23:28:30 +09:00