Commit Graph

101 Commits (f5fda75a96c90ab0931c7804d2d95a893c4ea2cd)

Author SHA1 Message Date
shenhunluo 50e6eddb08
add font stretch (#813)
Co-authored-by: 张德新 <zhangdexin@sinosoft.com.cn>
2025-05-02 21:32:58 +09:00
bokuweb 6c1d6e89b2
fix: disable bool el (#811) 2025-03-31 17:35:53 +09:00
bokuweb c492b86aba
Support dstrike (#807)
* fix: support dstrike

* fix

* fix: package
2025-03-07 18:14:17 +09:00
Ossama Nasser ef573c6fa5
Bidi Support (#801)
Added a simple bidi support by new paragraph property called bidi
Works as a boolean flag when available MS Word treats the paragraph as RTL, otherwise it's LTR
2025-02-10 22:54:36 +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 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
git-noise 2005b0a382
PositionalTab initial support (#733)
* Initial positional tab support: add PositionalTab types related module

* Initial positional tab support: add PositionalTabAlignmentType

* Initial positional tab support: add PositionalTabRelativeTo

* Initial positional tab support: add PositionalTab related module

* Initial positional tab support: add PositionalTab

* Initial positional tab support: add ptab() for XMLBuilder

* Initial positional tab support: remove optional

* Initial positional tab support: remove optional

* Initial positional tab support: derive Partial Eq, Eq

* Initial positional tab support: add ptab()
2024-06-30 20:13:29 +09:00
git-noise 2c8638dcb0
Support cantSplit for table row (#730)
* Initial cantSplit support: add CantSplit element

* Initial cantSplit support: add cant_split() to XMLBuilder

* Initial cantSplit support: add cant_split() to TableRow element

* Initial cantSplit support: add cant_split() to TableRowProperty element

* Initial cantSplit support: add cant_split module
2024-06-26 00:43:53 +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
Daniel Gallups 0e6ab1b648
fix: add `w:caps` property to to `w:rPr` element (#703)
* fix: add `w:caps` property to to `w:rPr` element

* fix: use `val` xml attr on `w:caps` element
2024-04-12 00:50:23 +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 2bbefbd6da
Support tcmar (#692)
* feat: Support tcMar writer

* feat: read tcMar

* fix: generate table cell border

* beta14

* beta15
2024-03-25 15:37:32 +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 76b2622dc6
Support ppr default (#673)
* fix: ppr change

* fix: spacing

* feat: support pPrDefatul
2024-01-17 22:40:47 +09:00
bokuweb d901842d51
fix: spacing type (#644)
* fix: spacing type

* fix
2023-08-10 18:09:52 +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
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 160fac91b7
feat: Support sym (#625) 2023-05-19 18:32:33 +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 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
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
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 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 be3e5a9860
fix: chaespace type (#498)
Co-authored-by: bokuweb <bokuweb@bokuwebnombp.lan>
2022-06-15 23:43:19 +09:00
bokuweb 886113515b
feat: Support run style (#447)
* feat: Support run style

* update snaps
2022-03-16 12:24:12 +09:00
bokuweb cee207e407
fix: wasm (#423) 2022-01-27 15:16:40 +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 3c9615fc94
Fix font reader (#401)
* fix: snaps

* fix
2022-01-06 19:17: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 26edc02635
feat: Added a hyperlink element (#386)
* feat: Added a hyperlink element

* feat: fix comment collerctor

* feat: Add JS API
2021-12-18 01:03:02 +09:00
bokuweb 54b7a4d20c
feat: Impl dataBinding (#383)
* feat: Impl dataBinding

* fix: snaps
2021-12-09 19:37:54 +09:00
bokuweb 1850ac2018
Add fldchar and instrtext (#381)
* feat: Add fieldCharater

* feat: Add instrText

* feat: Add toc inst

* wip

* feat: impl minimum toc write with rust
2021-12-06 00:28:31 +09:00
bokuweb caa61e9947
feat: impl sdt writer (#380) 2021-12-03 00:56:29 +09:00
bokuweb 8c9bb7b72d
impl first and even header/footer with rust/JS (#374)
* fix: header structure

* fix: footer structure

* fix: Support first and even header / footer with rust

* fix: Support js interface

* fix: test
2021-11-27 19:12:06 +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 025aee280f
Support default footer (#366)
* feat: Support default footer writer with rust

* feat: Support footer for default section with js

* fix: improve footer interface
2021-11-25 01:49:27 +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 6c139144f3
Support custom xml (#316)
* feat: Add CustomXML

* feat: Add custom items

* fix: custom items

* fix: test

* update

* fix: lint error

* fix

* allow empty prefix namespace

* 0.0.204

* fix

* 0.0.205
2021-07-13 18:46:15 +09:00
bokuweb 3f88474f47
Support taskpane settings (#311)
* feat: Add some props

* feat: Add some ext props

* fix: taskpanes

* fix: property

* fix: test

* 0.0.200
2021-06-30 22:37:13 +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 40664493b2
feat: Support level restart reader (#282) 2021-04-27 18:18:44 +09:00