JYJ
d096dcc8f4
Change stringbuilder to zstring(this time changing only what needs to be changed)
4 months ago
Kazbek
2854be4836
Refactoring FindAndReplaceTextInParagraph
4 months ago
Marko Lahma
5f73594729
Remove zero-length array allocations and use collection expression
4 months ago
Marko Lahma
aa87073ddf
Make non-public API methods static where applicable
4 months ago
Marko Lahma
122d6cb5e3
Fix analyzer reported issues related to string usage
* add polyfills for older targets
4 months ago
Kazbek
5387f5a1d6
XWPFDocument FindAndReplaceTextInParagraph now replace all occurance of oldValue in paragraph. Modified test to check it.
4 months ago
Kazbek
e1ec1c2a3f
Fix XWPFDocument FindAndReplaceTextInParagraph
4 months ago
Marko Lahma
4c23bca0f6
Replace casts with pattern variable
5 months ago
Marko Lahma
8cb8eced85
Use Array.Empty<T> instead of allocating an empty array
5 months ago
Marko Lahma
d50e141958
Add readonly modifier for suitable fields
5 months ago
Marko Lahma
3329a7d06c
Use TryGetValue instead of ContainsKey and indexing
5 months ago
mysoftlab
0cc5c078fc
Fixes #1472 . Optimize CT_Row.Copy to reduce row cloning time under 1ms
7 months ago
Tony Qu
6765a198b8
fix #1392
10 months ago
Iain McAndrew
f0663a51cb
FindAndReplaceText will now also work for tables within a documents header and footer
1 year ago
daichenjie
836ab9957d
Remove irrelevant comments
1 year ago
daichenjie
6ecd959dc9
Fix #1232
1 year ago
Antony Liu
2015bb71f7
Squashed commit of the following:
commit 815eb29b8d
Merge: efb45c5b
ff7fa873
Author: Tony Qu <tonyqus@gmail.com>
Date: Fri Apr 26 22:37:31 2024 +0800
Merge pull request #1316 from antony-liu/poi/v3.16-patch3
Some patches ported from poi
commit efb45c5b16
Merge: 5cb561d8
b48fe66a
Author: Tony Qu <tonyqus@gmail.com>
Date: Fri Apr 26 21:51:49 2024 +0800
Merge pull request #1284 from superrnovae/bmp_pictures
Opening existing workbook with pictures, adding new ones and saving it should not throw an exception
commit ff7fa8733c
Merge: cc1de9aa
5cb561d8
Author: Antony Liu <sun_apollo@yeah.net>
Date: Fri Apr 26 20:59:25 2024 +0800
Merge branch 'master' into poi/v3.16-patch3
commit 5cb561d8da
Merge: e82fa275
c0378c6b
Author: Tony Qu <tonyqus@gmail.com>
Date: Thu Apr 25 02:05:43 2024 +0800
Merge pull request #1303 from Bykiev/FixCreateCellComment
XLS - Fix adding cell comment
commit e82fa2757c
Merge: 83106c23
989cb6b3
Author: Tony Qu <tonyqus@gmail.com>
Date: Wed Apr 24 19:43:02 2024 +0800
Merge branch 'master' of https://github.com/nissl-lab/npoi
commit 83106c2345
Author: Tony Qu <tonyqus@gmail.com>
Date: Wed Apr 24 19:42:35 2024 +0800
fix #1315 - rollback the change of dt2D and dtr property
commit 989cb6b3a4
Merge: 7fd6e4c5
9fe58edb
Author: Tony Qu <tonyqus@gmail.com>
Date: Wed Apr 24 04:19:14 2024 +0800
Merge pull request #1281 from superrnovae/xssf_formula_results_format
[Bug 67785] Make XSSFExcelExtractor output more like that from XSSFEventBasedExcelExtractor
commit 7fd6e4c5bb
Merge: 976c1f5e
7892c921
Author: Tony Qu <tonyqus@gmail.com>
Date: Wed Apr 24 03:58:13 2024 +0800
Merge pull request #1307 from Bykiev/DocVars
Fix reading document variables
commit 976c1f5e01
Merge: 3412b214
428a170a
Author: Tony Qu <tonyqus@gmail.com>
Date: Wed Apr 24 03:55:07 2024 +0800
Merge pull request #1262 from jake-codes-at-5-am/removedatavalidation-to-upstream
Add RemoveDataValidation method
commit 3412b21423
Merge: 4eb5d0e4
7c65a616
Author: Tony Qu <tonyqus@gmail.com>
Date: Wed Apr 24 03:53:27 2024 +0800
Merge pull request #1314 from antony-liu/fix/github-issue-1070
Avoid NullReference exception when saving workbook with XML Map
commit 4eb5d0e443
Merge: 9e6eef14
44de7248
Author: Tony Qu <tonyqus@gmail.com>
Date: Thu Apr 18 08:13:11 2024 +0800
Merge pull request #1317 from DontFretBrett/update-sixlabors-imagesharp-218
Update SixLabors.ImageSharp to 2.1.8. CVE-2024-32036
commit 44de72489b
Author: Brett Sanders <brett.sanders@lightstream.com>
Date: Wed Apr 17 10:53:37 2024 -0700
Update SixLabors.ImageSharp to 2.1.8. CVE-2024-32036
commit 9e6eef14e8
Merge: 595ed45b
6321d891
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 22:31:48 2024 +0800
Merge branch 'master' of https://github.com/nissl-lab/npoi
commit 595ed45b10
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 22:31:38 2024 +0800
fix TestXWPFRun unit test
commit 6321d891a7
Merge: a8a827f7
1067d7f2
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 09:05:17 2024 +0800
Merge pull request #1313 from Bykiev/SharpZipLib
Update SharpZipLib to v1.4.2
commit a8a827f7cb
Merge: f0b0ea8e
79dfd75e
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 09:04:05 2024 +0800
Merge pull request #1283 from superrnovae/table_cellreferences
[github-164] Fix Bug in XSSFTable.setCellReferences when table is single cell.
commit f0b0ea8e51
Merge: 174fc672
16b283dc
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 09:02:16 2024 +0800
Merge pull request #1309 from antony-liu/poi/v3.16-patch2
Patches about VBAMacroReader from poi
commit 174fc6723f
Merge: d31d5d31
649c5653
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 08:47:24 2024 +0800
Merge branch 'master' of https://github.com/nissl-lab/npoi
commit d31d5d312e
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 08:46:58 2024 +0800
adjust Word openxml serialization
commit 990e86207a
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 08:45:20 2024 +0800
only add xml:space="preserve" when the value starts or ends with whitespace
commit 590b7f71ec
Author: Tony Qu <tonyqus@gmail.com>
Date: Tue Apr 16 08:42:58 2024 +0800
fix #1276 - remove docGrid init code in CT_SectPr constructor
commit 7c65a6168f
Author: Antony Liu <sun_apollo@yeah.net>
Date: Sat Apr 13 15:30:16 2024 +0800
Fix issue #1070 , avoid NullReference exception when saving workbook with XML Map
commit 1067d7f234
Author: ABykiev <bykiev.andrei@mail.ru>
Date: Tue Apr 9 18:51:36 2024 +0300
Update SharpZipLib to v1.4.2
Closes https://github.com/nissl-lab/npoi/issues/1149
commit 16b283dcee
Merge: 8f431832
649c5653
Author: Antony Liu <sun_apollo@yeah.net>
Date: Fri Apr 5 09:58:46 2024 +0800
Merge branch 'master' into poi/v3.16-patch2
commit 649c5653b5
Merge: 17041e59
7c89ee65
Author: Tony Qu <tonyqus@gmail.com>
Date: Fri Apr 5 09:22:04 2024 +0800
Merge pull request #1306 from antony-liu/poi/v3.16-patch1
Some patches ported from poi
commit 17041e598f
Merge: 462f15f8
b89af439
Author: Tony Qu <tonyqus@gmail.com>
Date: Wed Apr 3 07:35:01 2024 +0800
Merge pull request #1291 from jake-codes-at-5-am/fix-ct-formulacell-write
CT_CellFormula.Write: fix writing the si attribute
commit 7892c92130
Author: ABykiev <bykiev.andrei@mail.ru>
Date: Tue Apr 2 21:58:45 2024 +0300
Fix reading document variables
Closes #1199
commit c0378c6b79
Author: ABykiev <bykiev.andrei@mail.ru>
Date: Sun Mar 31 20:31:09 2024 +0300
XLS - Fix adding cell comment
Closes #1240
commit 462f15f80b
Author: Tony Qu <tonyqus@gmail.com>
Date: Thu Mar 28 11:09:26 2024 +0800
Update FUNDING.yml
commit 766e2c5cb5
Author: Tony Qu <tonyqus@gmail.com>
Date: Thu Mar 28 11:07:55 2024 +0800
Create FUNDING.yml
commit 844391feca
Author: Tony Qu <772561+tonyqus@users.noreply.github.com>
Date: Thu Mar 28 11:00:17 2024 +0800
Delete .github/FUNDING.yml
commit b89af43930
Author: Artem Koloskov <artem@ironsoftware.com>
Date: Tue Mar 12 15:27:58 2024 +0700
upstream-fix: in `CT_CellFormula` ensure the `siField` is written into `fField`'s attributes on `Write` even when it has a default value for cases when the type of the formula is Shared formula.
commit b48fe66a6a
Author: suppernovae <vladislavp@pm.me>
Date: Tue Mar 5 13:08:05 2024 +0100
Fix saving existing workbook with pictures after adding new ones
commit 79dfd75e3a
Author: suppernovae <vladislavp@pm.me>
Date: Tue Mar 5 11:43:26 2024 +0100
[github-164] Fix Bug in XSSFTable.setCellReferences when table is single cell
commit 9fe58edb37
Author: suppernovae <vladislavp@pm.me>
Date: Tue Mar 5 10:48:34 2024 +0100
Revert "Use range operator instead of substring method"
This reverts commit 5b838bab08
.
commit 5b838bab08
Author: suppernovae <vladislavp@pm.me>
Date: Tue Mar 5 10:41:42 2024 +0100
Use range operator instead of substring method
commit e5e92aff7d
Author: suppernovae <vladislavp@pm.me>
Date: Mon Mar 4 23:36:35 2024 +0100
Bug 67784: XSSFExcelExtractor does not format formula results like the streaming based extractor
commit 428a170a92
Author: Artem Koloskov <artem@ironsoftware.com>
Date: Fri Feb 9 11:31:06 2024 +0700
Upstream feature: change RemoveValidationData methods to RemoveDataValidation
commit a39833ec3c
Author: Artem Koloskov <artem@ironsoftware.com>
Date: Tue Nov 28 16:45:29 2023 +0700
Upstream feature: add tests for ISheet.RemoveValidationData method
commit fefe574b9c
Author: Artem Koloskov <artem@ironsoftware.com>
Date: Tue Nov 28 16:44:37 2023 +0700
Upstream fix: fix CT_DataValidations.Write method.
It was writing an empty dataValidations node if its dataValidation property was empty, which was breaking the resulting xlsx file
commit 8e4b633c4d
Author: Artem Koloskov <artem@ironsoftware.com>
Date: Tue Nov 28 16:41:54 2023 +0700
Upstream feature: ass ISheet.RemoveValidationData method and implement it in HSSF, XSSF and SXSSF Sheets
commit 73daa01cf1
Author: Artem Koloskov <artem@ironsoftware.com>
Date: Tue Nov 28 16:40:21 2023 +0700
Upstream feature: implement DataValidityTable.RemoveDataValidation method
commit 01c9fa5d77
Author: Artem Koloskov <artem@ironsoftware.com>
Date: Tue Nov 28 16:38:03 2023 +0700
Upstream feature: Implement CT_DataValidation and DVRecord Equals() method overrides.
1 year ago
Tony Qu
595ed45b10
fix TestXWPFRun unit test
1 year ago
Antony Liu
56fdf90d09
poi: 60329: Avoid NPE when styleid is null
1 year ago
Tony Qu
5428cfd366
fix #606
1 year ago
Tony Qu
ab6221c995
fix #1225
2 years ago
Tony Qu
3459f55d85
fix #1222
2 years ago
Mack Stump
0e50f32be1
support finding and replacing text in embedded tables
2 years ago
Tony Qu
08d8caa5cb
fix interface design issue in FindAndReplaceText method
2 years ago
Tony Qu
46c0134220
add new method - XWPFDocument.FindAndReplaceText
fix #1018
2 years ago
k-hara
06bac6ad4b
POI: Per JavaDoc and tallison, XWPFTableCell#getVerticalAlignment() should return null if valign is not set. Patch from prasad-babu. This closes #30 on GitHub.
https://github.com/apache/poi/pull/30#issuecomment-186224438
https://svn.apache.org/viewvc?view=revision&revision=1782130
2 years ago
k-hara
096eccd488
POI: #60331 - Remove deprecated classes (POI 3.16)
- remove orphaned classes immediately, which are quite likely not used anymore
- deprecated the rest
https://svn.apache.org/viewvc?view=revision&revision=1774842
2 years ago
k-hara
9cd9a9b088
Fixes (nonfunctional)
https://svn.apache.org/viewvc?view=revision&revision=1774556
https://svn.apache.org/viewvc?view=revision&revision=1774557
2 years ago
k-hara
16943e8ff0
POI: 60465: Cannot specify interline spacing for a Paragraph in XWPF
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=60465
https://svn.apache.org/viewvc?view=revision&revision=1774551
2 years ago
k-hara
798ab7a55b
POI: 58237: Unable to add image to a word document header using XWPF
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=58237
https://svn.apache.org/viewvc?view=revision&revision=1773729
2 years ago
k-hara
afda65249e
Get remainder changes from #54916
#54916 - POI does not always read all the slides in pptx files
https://svn.apache.org/viewvc?view=revision&revision=1723966
2 years ago
k-hara
277fe57605
POI: [bug-64600] Avoid XWPF NPE when styleid is null. Thanks to Sayi. This closes #186
https://svn.apache.org/viewvc?view=revision&revision=1879859
2 years ago
k-hara
7817743967
POI: 60329: Avoid NPE when styleid is null
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=60329
https://svn.apache.org/viewvc?view=revision&revision=1772138
2 years ago
k-hara
8902b9134a
POI: 60337: XWPFTableRow.isRepeatHeader throws NullPointerException, setRepeatHeader does not overwrite old value
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=60337
https://svn.apache.org/viewvc?view=revision&revision=1768153
2 years ago
k-hara
c478c5719a
POI-60342: handle missing sdtcontentcell in an sdtcell
https://svn.apache.org/viewvc?view=revision&revision=1768054
2 years ago
k-hara
c26ce1ac85
POI-60341: handle missing sdtpr in an sdtbody
https://svn.apache.org/viewvc?view=revision&revision=1768048
POI-60341, add test document (ugh, mea culpa), turn on test.
https://svn.apache.org/viewvc?view=revision&revision=1768505
2 years ago
k-hara
57f55980b4
POI: More unit testing for XWPF list numbering complex cases, and some TODOs on improving it, inspired by users@ discussions
https://svn.apache.org/viewvc?view=revision&revision=1768005
2 years ago
k-hara
416015e720
POI: 57366: XWPFTable to Header / Footer
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=57366
This update contains a breaking change
https://svn.apache.org/viewvc?view=revision&revision=1767175
2 years ago
k-hara
02b0db9eb4
POI: BUG-60286 avoid NPE XWPFRun. Didn't add unit test or document...didn't seem to be worth it.
https://svn.apache.org/viewvc?view=revision&revision=1765863
2 years ago
k-hara
d95a655c5f
POI: 53009: Problem creating header and footer
Task-Url: https://bz.apache.org/bugzilla/show_bug.cgi?id=53009
https://svn.apache.org/viewvc?view=revision&revision=1764563
2 years ago
k-hara
2cc11636c0
POI: Bug 56076 and Bug 56077
Bug 56076 - Add document protection with password support to XWPF
Bug 56077 - Add password hash function to HWPF
https://svn.apache.org/viewvc?view=revision&revision=1570750
2 years ago
k-hara
a7314eb977
Fix failure of TestBug58922()
In Java, CT_RPr.sz.val was BigInteger, so the value -1 * 2 == -2 could be stored successfully, and later
getFontSize() would return CT_RPr.sz.val / 2.0 == -1.
However, storing -2 CT_RPr.sz.val didn't seem appropriate in OOXML spec (the minimum value of ST_HpsMeasure is 2,
see https://learn.microsoft.com/en-us/openspecs/office_standards/ms-oi29500/2d0bf5fa-cdf4-4e5f-9a49-d3b3e0a2a35c ),
So I added *guard if* statement in FontSize setter to fix test failure in NPOI.
2 years ago
Benjamin Michaelis
e5583e51cf
Get hyperlinks in footnotes
2 years ago
Benjamin Michaelis
69e8fbc195
Get hyperlinks from footer
2 years ago
k-hara
5f7f597dee
Add docx comment support
Port XWPFComment / XWPFComments code and related testcases from POI 5.2.3.
3 years ago
k-hara
9b2fd4ba80
Add xmlbeans compatible methods to CT_R
3 years ago
吳軒竹
6ba4635344
Remove AddNewRowBetween because the POI document said it is deprecated.
Ref: https://poi.apache.org/apidocs/4.1/org/apache/poi/xwpf/usermodel/XWPFTable.html#addNewRowBetween-int-int-
3 years ago
Tony Qu
8b0ffebff6
add Dispose method to XWPFDocument
3 years ago
Benjamin Michaelis
c3c387de10
Expose out list of styles for use.
3 years ago
Tony Qu
88a5e97381
use Uri.OriginalString instead
fix #851
3 years ago