Commit graph

645 commits

Author SHA1 Message Date
John McNamara
5c4d02a433 Fix for broken tests compilation. 2019-11-17 13:35:56 +00:00
John McNamara
d87fbddd72 Refactored the chart pattern struct.
Refactored the chart pattern struct to remove hidden fields.

See #252
2019-11-17 13:09:45 +00:00
John McNamara
3d7aff58f0 Minor doc update for lxw_row_col_options. 2019-11-17 12:58:16 +00:00
John McNamara
4b1ab45f8d Refactored the worksheet protection struct.
Refactored the worksheet protection struct to remove hidden fields.

See #252
2019-11-17 12:51:10 +00:00
John McNamara
aacdd525a5 Refactored the data validation struct.
Refactored the data validation struct to remove hidden fields.

See #252
2019-11-17 11:27:56 +00:00
John McNamara
3e3ce69aab Made deprection of new_workbook() function explicit.
Made the deprecation of new_workbook() funtion more explicit
and removed instances from the examples and test code. The
workbook_new() function should be used instead.

See #252
2019-11-16 20:32:37 +00:00
John McNamara
a1e7e54808 Documented hidden field in lxw_doc_properties.
Documented optional file creation datetime in lxw_doc_properties.

See #252
2019-11-16 17:45:30 +00:00
John McNamara
d840235a02 Refactored the chart fonts struct.
Refactored the chart fonts struct to document or remove hidden
fields.

See #252
2019-11-16 16:33:31 +00:00
John McNamara
035a3c6fdf Refactored the insert image and chart APIs.
See #252
2019-11-11 20:56:00 +00:00
John McNamara
695fc684b0 Added sponsorhip details. 2019-10-30 09:12:13 +00:00
John McNamara
239f5afbd4 Allow user defined image descriptions
Allow user defined/override of the image description used by
worksheet_insert_image(), which defaults to the filename.

Issue #238
2019-10-12 05:14:48 +01:00
John McNamara
15b2511406 Add Windows portable version of fopen to handle utf8 filenames.
Issue #238
2019-10-11 21:05:47 +01:00
myd7349
f5ba33c0f6 CMake: Add /utf-8 MSVC compiler option for non-UTF-8 locales
CMake: Remove unknown option /O0
2019-09-16 22:48:56 +01:00
Alex Huszagh
153785ba83 Patch for issue #243, by specifying the new policy for <PackageName>_ROOT. 2019-09-08 19:46:11 +01:00
John McNamara
4e1ee88760 Add support for East Asian vertical chart fonts. 2019-08-31 17:32:54 +01:00
John Colvin
07fa7c59ac quote pdb paths 2019-08-30 13:19:44 +01:00
John McNamara
8ff6465f51 Add option to set chart font rotation as stacked.
Added the option to allow chart fonts to be rotation to 270 deg
to give a stacked orientation.
2019-08-24 09:55:47 +01:00
Taylor Holberton
d2c101cc5d CMake: Removed debug statement 2019-08-01 23:49:28 +01:00
John McNamara
1a731651e3 Fix for missing strings.h in Windows build. 2019-06-25 20:59:48 +01:00
John McNamara
4df6e8716e Prep for release 0.8.7. 2019-06-21 00:07:52 +01:00
John McNamara
48a312e949 Added docs on using vcpkg for MSVC. 2019-06-20 23:32:53 +01:00
Sijmen J. Mulder
11c07a4575 Fix fwrite() compilation warnings on CentOS 6. 2019-06-20 20:56:42 +01:00
John McNamara
32658fef2f Add docs and an example for add_vba_project.
Issue #29
2019-06-19 00:21:04 +01:00
John McNamara
cb87c73a95 Initial support for adding macros to workbooks.
Initial support for adding macros extracted from existing xlsm
files to new xlsm files.

Issue #29 add_vba_project()
2019-06-16 15:46:09 +01:00
John McNamara
7d372b91c7 Fix for handling > 65k image files.
Issue #225
2019-06-12 01:06:18 +01:00
John McNamara
bda5235bb5 Add check on image buffer tmpfile.
Issue #233
2019-06-11 21:11:56 +01:00
John McNamara
b8a2a33294 Fix for handling > 65k image files.
Issue #225
2019-06-11 20:55:25 +01:00
John McNamara
6c096b98e6 Minor doc fix.
Closes #232
2019-06-09 16:03:51 +01:00
John McNamara
ebab9831b3 Refactor use_zip64 into the constructor.
Issue #228
2019-06-08 16:40:17 +01:00
John McNamara
024f25704e Fix error handling/reporting to propogate zip.c errors.
Issue #227
2019-06-08 15:05:24 +01:00
John McNamara
a0931c58b7 Added support for ZIP64 files.
Closes #228
2019-06-08 00:24:40 +01:00
John McNamara
34290c1cab Add case insensitive worksheet name check.
Add case insensitive worksheet name check, in add_worksheet() and
in workbook_validate_sheet_name(). Ignores UTF-8 chars which may
contain upper/lowercase duplicates.

Closes #230
2019-06-07 21:28:08 +01:00
John McNamara
267a09a242 Added check for reserved worksheet name.
The worksheet name "History" is reserved by Excel.
2019-06-07 20:09:54 +01:00
John McNamara
ee18f0c4c0 Add error code for worksheet name with apostrophe.
Issue #223
2019-06-07 16:58:19 +01:00
Evan Miller
39a66bef23 Remove FindZLIB.cmake
This module has been included with CMake since at least 2.8, which
is already required by libxlsxwriter.

See related discussion at #207
2019-06-07 00:08:31 +01:00
John McNamara
f34673a92f Fix for sheet names that start or end with an apostrophe.
Excel doesn't allow worksheet names to start or end with
and apostrophe.

Closes #223.
2019-06-07 00:01:15 +01:00
John McNamara
8abc4ecd19 Removed Tea-CI and AppVeyor files since the builds are inconsistent. 2019-06-06 23:29:49 +01:00
Sijmen J. Mulder
d266cd25b8 Respect LDFLAGS when linking.
Respect LDFLAGS when linking so the lib directory and such can be 
overridden in/by the build environment.
2019-05-07 13:33:24 +01:00
John McNamara
339c300cd6 Prep for release 0.8.6. 2019-04-07 16:56:23 +01:00
John McNamara
c00ebe866e Minor doc fix.
Issue #219
2019-04-07 14:30:15 +01:00
John McNamara
e51eadae87 Fix issue with images in hidden cells.
Fix issue where images that started in hidden rows/cols weren't
placed correctly in the worksheet.
2019-04-07 14:25:35 +01:00
John McNamara
f00ab0c4fa Fix the mime-type reported by file(1)
The mime-type reported by "file --mime-type"/magic was incorrect
since it expects the [Content_types] to be the first file in the
zip container, followed by 3 others.
2019-03-29 18:10:20 +00:00
John McNamara
268d633039 Fix some lgtm static code analysis warnings. 2019-03-23 14:35:56 +00:00
John McNamara
a9a5ca0405 Minor doc fix. 2019-02-11 09:42:33 +00:00
John McNamara
af07916f72 Prep for release 0.8.5. 2019-02-10 22:50:49 +00:00
John McNamara
72c9b219cb Updated copyright year. 2019-02-10 21:11:46 +00:00
John McNamara
ee941133ea Additional formatting tests. 2019-02-10 21:06:49 +00:00
Evan Miller
ebba115435 Fix compile-time warnings with strict prototypes enabled.
The C standard and -Wstrict-prototypes requires that functions which
take no arguments be declared as foobar(void) instead of foobar().

Fixes #208
2019-01-30 14:00:00 +00:00
Sijmen J. Mulder
2bdfae296c Make py.test name configurable
This came up whilst packaging for pkgsrc which adds a Python version
suffix to binaries.
2018-12-11 14:38:34 +00:00
John McNamara
fb5c43b8fc Prep for release 0.8.4. 2018-11-10 15:27:33 +00:00