Commit Graph
476 Commits
Author SHA1 Message Date
Alexander Hofstede 615c07649c Merge branch 'master' into custom-column-widths
# Conflicts:
#	src/Spout/Writer/ODS/Manager/WorksheetManager.php
#	src/Spout/Writer/XLSX/Manager/WorksheetManager.php
2021-04-05 11:30:34 +02:00
Antoine Lamirault eb84ec9364 Rename ManagedStyle to PossiblyUpdatedStyle and add documentation 2021-03-30 19:42:21 +02:00
Antoine Lamirault 8a17d6c71f Remove rowStyle reference and replace it by new RegisteredStyle class 2021-03-30 19:42:21 +02:00
Antoine Lamirault c6f596c776 New code review fixs 2021-03-30 19:42:21 +02:00
Antoine Lamirault 11d91e1740 Code review changes 2021-03-30 19:42:21 +02:00
Antoine Lamirault 197fb9987a Register style can be skipped when already registered 2021-03-30 19:42:21 +02:00
Antoine Lamirault a58b340835 Empty style on cell 2021-03-30 19:42:21 +02:00
Antoine Lamirault 57b6e87a65 Begin optimize xlsx write 2021-03-30 19:42:21 +02:00
yiranzai 91f756be0b remove custom headers 2021-03-18 20:05:10 +01:00
yiranzai 03e1ce438a Fixed Code Style 2021-03-18 20:05:10 +01:00
yiranzai df9d96366f Fixed WriterAbstract::openToBrowser meet RFC6266 2021-03-18 20:05:10 +01:00
Andrii Dembitskyi 0f20c99a7f Fix constant usage in example v3.2.0 2021-02-10 10:53:55 +01:00
jmsche 9ab0b10a0f Contributing: added info about code style 2021-02-09 17:39:42 +01:00
jmsche ed9322e309 Shorter (relevant) diff by php-cs-fixer for Travis CI 2021-02-09 13:58:05 +01:00
Oded Arbel 73347517f0 added comment with spec link, as requested 2021-02-09 11:21:25 +01:00
Oded Arbel ad913f0100 write boolean value according to http://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#datatype-boolean instead of just "1" for true or "" for false; 2021-02-09 11:21:25 +01:00
jmsche c29d1877b8 Fixed code style (probably due to recent php-cs-fixer version) 2021-02-08 22:03:03 +01:00
Petr Skoda 816596183f Add full support for PHP 8.0
Unfortunately due to PHPUnit 8.5 dependency
this also drops support for PHP 7.1
2021-02-08 14:31:55 +01:00
Alexander Hofstede 73f2a522c0 Satisfy php-cs-fixer 2020-10-30 07:53:17 +01:00
Alexander Hofstede 557b6fd158 Merge pull request #2 from bizquiz/custom-column-widths
Fix ODS column widths
2020-10-29 22:31:21 +01:00
Martin Wind 9727bec850 Fix ODS column widths 2020-06-13 20:43:55 +02:00
Alexander Hofstede 1eee2ea5db Satisfy php-cs-fixer 2020-05-26 23:12:57 +02:00
Alexander Hofstede d065f95bcc Merge pull request #1 from bizquiz/custom-column-widths
Use options manager for default row height and column width
2020-05-26 13:17:03 +02:00
Martin Wind de3241b57c Delay sheetData and add sheetDataStarted flag to worksheet 2020-03-29 20:32:24 +02:00
Martin Wind 26e5f966fb Use options manager for default row height and column width 2020-03-29 15:10:11 +02:00
Alexander Hofstede 36573eaa8a Satisfy php-cs-fixer 2019-12-20 23:59:27 +01:00
Alexander Hofstede c1757d23bf Merge branch 'master' into custom-column-widths 2019-12-20 23:35:10 +01:00
Alexander Hofstede ffec80422b Attempt to satisfy php-cs-fixer 2019-12-20 23:33:28 +01:00
Alexander Hofstede bb83904083 Remove null phpdoc where typehint is float 2019-12-20 22:47:16 +01:00
madflow ab973cab34 use existing base folder 2019-12-19 23:24:24 +01:00
Alexander Hofstede aa5ec507c2 Set empty array as default for column widths 2019-12-19 23:05:16 +01:00
Alexander Hofstede 49e621b822 Merge remote-tracking branch 'remotes/origin/master' into custom-column-widths
# Conflicts:
#	src/Spout/Writer/XLSX/Manager/WorksheetManager.php
2019-12-19 23:02:47 +01:00
Alexander Hofstede d2dadd4d17 Ignore generated test files in subdirectories 2019-12-19 22:55:23 +01:00
Alexander Hofstede db197de7f9 Add support for custom column widths in ODS exports 2019-12-19 22:35:55 +01:00
Alexander Hofstede ceda150aa3 Rename default column style 2019-12-19 20:31:46 +01:00
Alexander Hofstede 26ad59033c Add support for default cell sizes for ODS files 2019-12-17 22:05:01 +01:00
Alexander Hofstede 6db9871722 Extract common functionality to trait for easier reuse, fix default row height for XLSX 2019-12-17 20:31:26 +01:00
Alexander Hofstede 09a624ef8e Avoid $previousValue if length is < 1 2019-12-16 20:01:48 +01:00
madflow b8eb2bb814 error_reporting set to -1 2019-12-16 13:42:24 +01:00
madflow f54f7a400c add PHP 7.4 2019-12-16 13:42:24 +01:00
Alexander Hofstede 4b9eb5b031 PSR-2 code style 2019-12-13 12:43:36 +01:00
Alexander Hofstede 80487f1ac1 Add support for setting column width by range 2019-12-13 12:38:00 +01:00
Alexander Hofstede 82170a058b Add XLSX support for default column width/row height as well as custom column widths through writer or OptionsManager (and test for it) 2019-12-13 00:12:09 +01:00
Adrien Loison 7964dadc21 Add support for cells in error when writing XLSX and ODS
When appending data to an existing sheet, it was possible to get cells in error when reading (DIV/0 for instance). When trying to write them back, `addRow` would throw because `Cell`s in error were not supported by the writers.
v3.1.0
2019-12-02 22:21:41 +01:00
drowe eb88bb4c3a Automated native_function_invocation fixes 2019-11-18 12:17:27 +01:00
madflow 94b654175c disable no_superfluous_phpdoc_tags 2019-11-18 11:20:20 +01:00
Adrien Loison dbdf5f7f38 [ODS] Add support for whitespaces inside <text:span>
The `<text:p>` node can contain the string value directly or contain child elements. In this case, whitespaces contain in the child elements should be replaced by their XML equivalent:
 - space => `<text:s />`
 - tab => `<text:tab />`
 - line break => `<text:line-break />`

@see https://docs.oasis-open.org/office/v1.2/os/OpenDocument-v1.2-os-part1.html#__RefHeading__1415200_253892949
2019-10-27 20:14:51 +01:00
Adrien Loison 9f4c094fa0 Cell alignment
This PR adds support for cell alignment for XLSX and ODS files.
You can now align the content of the cells this way:
```
use Box\Spout\Common\Entity\Style\CellAlignment;
use Box\Spout\Writer\Common\Creator\Style\StyleBuilder;

$style = (new StyleBuilder())
    ->setCellAlignment(CellAlignment::RIGHT)
    ->build();
...
```

Possible cell alignments are: LEFT, RIGHT, CENTER and JUSTIFY.
2019-10-27 18:58:56 +01:00
Adrien Loison 0a0b1f7196 [docs] Fix site_url - take 2 2019-10-17 13:12:40 +00:00
Adrien Loison db32a7c7db [docs] Fix site_url 2019-10-17 11:15:55 +00:00