Commit Graph

1685 Commits

Author SHA1 Message Date
Thomas Fussell
bf92dd7640 implement shared and array formulas 2022-08-13 13:20:25 -05:00
Thomas Fussell
69a20f3627
Merge pull request #646 from tfussell/fix-unhandled-values-in-switch
Fix unhandled enumeration values in switch statement
2022-08-13 09:15:17 -05:00
Thomas Fussell
5c2fdff70f fix unhandled enumeration values in switch statement 2022-08-13 08:52:32 -05:00
Thomas Fussell
538f80794c
Merge pull request #635 from Blakjak88/master
fix writing of missing showGridLines attribute to xlsx file
2022-08-07 14:12:15 -05:00
Blakjak88
6b5755af30
Update xlsx_producer.cpp
show_grid_lines() is default enabled in Excel so attribute should only be written when it is set to false. 

Added 'if-statement' to check for 'false' before writing attribute.
2022-08-07 11:11:15 +08:00
Thomas Fussell
f3bbaa3eeb
Merge pull request #628 from softvise/softvise/patches
Fix format::number_format
2022-08-06 13:53:08 -05:00
Thomas Fussell
ef4dec6ebc
Merge pull request #617 from beached/patch-1
Missing include in number_formatter.cpp
2022-08-06 12:13:04 -05:00
Thomas Fussell
80cdf8ff46
Merge branch 'master' into patch-1 2022-08-06 12:11:05 -05:00
Thomas Fussell
8b0cd6a935
Merge pull request #618 from tfussell/dependabot/npm_and_yarn/minimist-1.2.6
Bump minimist from 1.2.5 to 1.2.6
2022-08-06 12:10:16 -05:00
Thomas Fussell
c70abb76d3
Merge branch 'master' into dependabot/npm_and_yarn/minimist-1.2.6 2022-08-06 12:10:07 -05:00
Thomas Fussell
93a46a867d
Merge pull request #634 from tfussell/dependabot/npm_and_yarn/node-fetch-2.6.7
Bump node-fetch from 2.6.1 to 2.6.7
2022-08-06 12:09:56 -05:00
dependabot[bot]
772cd8e9d2
Bump minimist from 1.2.5 to 1.2.6
Bumps [minimist](https://github.com/substack/minimist) from 1.2.5 to 1.2.6.
- [Release notes](https://github.com/substack/minimist/releases)
- [Commits](https://github.com/substack/minimist/compare/1.2.5...1.2.6)

---
updated-dependencies:
- dependency-name: minimist
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 17:05:20 +00:00
dependabot[bot]
baa41b9722
Bump node-fetch from 2.6.1 to 2.6.7
Bumps [node-fetch](https://github.com/node-fetch/node-fetch) from 2.6.1 to 2.6.7.
- [Release notes](https://github.com/node-fetch/node-fetch/releases)
- [Commits](https://github.com/node-fetch/node-fetch/compare/v2.6.1...v2.6.7)

---
updated-dependencies:
- dependency-name: node-fetch
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 17:05:19 +00:00
Thomas Fussell
fea07a81d3
Merge pull request #645 from tfussell/dependabot/npm_and_yarn/ansi-regex-4.1.1
Bump ansi-regex from 4.1.0 to 4.1.1
2022-08-06 12:04:31 -05:00
dependabot[bot]
d35868d70f
Bump ansi-regex from 4.1.0 to 4.1.1
Bumps [ansi-regex](https://github.com/chalk/ansi-regex) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/chalk/ansi-regex/releases)
- [Commits](https://github.com/chalk/ansi-regex/compare/v4.1.0...v4.1.1)

---
updated-dependencies:
- dependency-name: ansi-regex
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-08-06 16:39:27 +00:00
Thomas Fussell
1d542f0d8b
Merge pull request #636 from tfussell/dependabot/npm_and_yarn/parse-url-6.0.2
Bump parse-url from 6.0.0 to 6.0.2
2022-08-06 11:39:05 -05:00
dependabot[bot]
bf0018899d
Bump parse-url from 6.0.0 to 6.0.2
Bumps [parse-url](https://github.com/IonicaBizau/parse-url) from 6.0.0 to 6.0.2.
- [Release notes](https://github.com/IonicaBizau/parse-url/releases)
- [Commits](https://github.com/IonicaBizau/parse-url/commits)

---
updated-dependencies:
- dependency-name: parse-url
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2022-07-05 23:42:50 +00:00
Blakjak88
dbfed051c8
Update xlsx_producer.cpp 2022-07-05 12:53:47 +08:00
Markus Färber
cef67bdc45 Fix format::number_format
In case number_format() is called on a format that does not have
format ID set, number_format() dereferences
d_->parent->number_formats.end() causing a crash.
This might happen when calling cell::is_date() on a cell that has type
'number' without a number format but some other styling set.
This might never occur in spreadsheet files created by commercial
applications but xlnt certainly allows to create such a file.
We therefore fix number_format here by returning the general number
format as a fallback.
2022-05-10 14:50:20 +02:00
Darrell Wright
4da810eaef
Missing include in number_formatter.cpp
Limits isn't being transitively included on gcc 11.2.0/ubuntu.  Added as it produces an error
2022-03-18 18:46:27 -04:00
Thomas Fussell
d88c901faa
Merge pull request #608 from imgspc/iter_has_value
Add has_value to cell_iterator
2022-01-09 17:42:00 -05:00
Thomas Fussell
0246c7bece
Merge pull request #607 from doomlaur/bugfix/windows_utf16_paths
Paths on Windows are now correctly converted from UTF-8 to UTF-16
2022-01-09 17:41:18 -05:00
Thomas Fussell
69f651e3a1
Merge pull request #601 from doomlaur/bugfix/system_default_date_time
Added support for the System Default locale for the Time and Long Date types
2022-01-09 17:39:04 -05:00
Thomas Fussell
09dd4797b4
Merge pull request #600 from doomlaur/bugfix/streaming_reader_clean_cell_state
The streaming cell now always begins with a clean state when using the xlnt::streaming_workbook_reader
2022-01-09 17:37:18 -05:00
Thomas Fussell
0193ae7b37
Merge pull request #584 from wuganhao/feature/print-settings
Fix - Print Settings (Page Size, margins, etc) not saved when loading a file and save it.
2022-01-09 17:35:32 -05:00
Thomas Fussell
7e90dad59c
Merge branch 'master' into feature/print-settings 2022-01-09 16:43:16 -05:00
Félix Bourbonnais
5ff980854a
Merge branch 'master' into iter_has_value 2021-12-09 14:13:21 -05:00
Laurențiu Leahu-Vlăducu
732cbe05b5
Merge branch 'master' into bugfix/windows_utf16_paths 2021-12-09 16:49:46 +01:00
Laurențiu Leahu-Vlăducu
8c584321a5
Paths on Windows are now correctly converted from UTF-8 to UTF-16 instead of UCS-2. This fixes issues with file paths that use 2 wchar_t characters / 4 bytes, also called surrogate pairs. Modified the unit tests to test this case. 2021-12-09 16:42:18 +01:00
Félix Bourbonnais
28f7e6fa69 Add has_value to cell_iterator
When iterating over a range that doesn't ignore null rows/columns,
the operator*() throws when dereferencing an iterator to a null cell.
Add has_value() to cell_iterator to be able to make a check without
relying on exceptions.
And add a test case.
2021-12-08 15:49:14 -05:00
Thomas Fussell
0cc90971b0
Merge pull request #604 from daixtrose/patch-1
add c++ code syntax highlighting
2021-12-06 16:18:26 -06:00
Markus Werle
919d341fb9
add c++ code rendering to markdwon text 2021-12-06 21:30:07 +01:00
Laurențiu Leahu-Vlăducu
2f2e0a37a4
Adapted the format_locale enum to include the System Default locale for the Date and Time types. 2021-12-01 23:34:20 +01:00
Laurențiu Leahu-Vlăducu
147307c90b
Added support for the System Default locale for the Time and Long Date types in Excel, as explained here: https://bz.apache.org/ooo/show_bug.cgi?id=70003
This fixes issues with some locales where "system default" is the default setting for times and dates. This happens, for example, when using German (Austria) as a locale in Windows, or when setting it manually in Excel.
2021-12-01 19:58:25 +01:00
Laurențiu Leahu-Vlăducu
f6f4adca7d
Fixed a bug when using the xlnt::streaming_workbook_reader where a streaming cell could still contain information from the previously streamed cell. This could happen if the new cell did not contain information that could override the information of the previous cell, e.g. when the cell in XML only contained something like <c r="H4"/>, so the streamed cell still contained the type and the string/value of the previously streamed cell. 2021-12-01 14:09:37 +01:00
Wu, Ganhao
c9d896c816 Fix character set error when compiling under non-English Windows. 2021-09-04 02:15:55 +08:00
Wu, Ganhao
b81d76a223 Fix test case - page size now optional. 2021-09-04 02:15:19 +08:00
Wu, Ganhao
1be73c40f8 Fix character set error when compiling under non-English Windows. 2021-09-04 01:18:38 +08:00
Wu, Ganhao
5946eec32e Fix - Print Settings (Page Size, margins, etc) not saved when loading a file and save it. 2021-08-29 02:56:57 +08:00
Thomas Fussell
3a279fcaab
Merge pull request #580 from pomer/master
LibreOffice color names support
2021-08-22 09:04:11 -04:00
Thomas Fussell
94d784f68e
Merge pull request #575 from LorenDB/patch-1
Add shell description of AUR package
2021-08-22 09:03:06 -04:00
Thomas Fussell
a736834902
Merge branch 'master' into patch-1 2021-08-22 09:01:00 -04:00
Thomas Fussell
10ff20c943 Merge branch 'imgspc-Issue484/fix-calculate-dimension-when-not-skipping-nulls' 2021-08-22 08:59:57 -04:00
Thomas Fussell
50a792a01a Merge branch 'Issue484/fix-calculate-dimension-when-not-skipping-nulls' of https://github.com/imgspc/xlnt into imgspc-Issue484/fix-calculate-dimension-when-not-skipping-nulls 2021-08-22 08:59:05 -04:00
Thomas Fussell
bb7bc8c01d
Merge pull request #539 from sphawk/master
Minimum support for xlsm
2021-08-22 08:49:33 -04:00
Thomas Fussell
04b6b97577
Merge branch 'master' into master 2021-08-22 08:41:01 -04:00
Thomas Fussell
febb4c6043
Merge pull request #582 from tfussell/maintenance
General maintenance
2021-08-22 08:36:50 -04:00
Thomas Fussell
04ebd7ef9d fix warnings, bump copyright, fix typo, update npm libs 2021-08-22 08:23:18 -04:00
Vladimir S. Yakovlev
99372e3f11 LibreOffice color names support 2021-08-17 00:46:39 +03:00
Loren Burkholder
5d89cf32c9
Add shell description of AUR package
Seems like this should at least be documented...
2021-07-19 16:52:34 -04:00