Skip to content

Commit f6dd78d

Browse files
committed
update doc and changelog
1 parent d4c6427 commit f6dd78d

File tree

2 files changed

+20
-4
lines changed

2 files changed

+20
-4
lines changed

CHANGELOG.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ This is the last version to support PHP 5.3
2222
- Allow to change the line height rule @troosan
2323
- Implement PageBreak for odt writer @cookiekiller #863 #824
2424
- Allow to force an update of all fields on opening a document - @troosan #951
25+
- Allow adding a CheckBox in a TextRun - @irond #727
2526

2627
### Fixed
2728
- Loosen dependency to Zend
@@ -41,7 +42,7 @@ This is the last version to support PHP 5.3
4142
- Fix incorrect image size between windows and mac - @bskrtich #874
4243
- Fix adding HTML table to document - @mogilvie @arivanbastos #324
4344

44-
###Deprecated
45+
### Deprecated
4546
- PhpWord->getProtection(), get it from the settings instead PhpWord->getSettings()->getDocumentProtection();
4647

4748
v0.13.0 (31 July 2016)

docs/elements.rst

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,16 @@ column shows the containers while the rows lists the elements.
3939
+-------+-----------------+-----------+----------+----------+---------+------------+------------+
4040
| 15 | Endnote | v | - | - | v\*\* | v\*\* | - |
4141
+-------+-----------------+-----------+----------+----------+---------+------------+------------+
42-
| 16 | CheckBox | v | v | v | v | - | - |
42+
| 16 | CheckBox | v | v | v | v | v | - |
4343
+-------+-----------------+-----------+----------+----------+---------+------------+------------+
4444
| 17 | TextBox | v | v | v | v | - | - |
4545
+-------+-----------------+-----------+----------+----------+---------+------------+------------+
4646
| 18 | Field | v | v | v | v | v | v |
4747
+-------+-----------------+-----------+----------+----------+---------+------------+------------+
4848
| 19 | Line | v | v | v | v | v | v |
4949
+-------+-----------------+-----------+----------+----------+---------+------------+------------+
50+
| 20 | Chart | v | | | v | | |
51+
+-------+-----------------+-----------+----------+----------+---------+------------+------------+
5052

5153
Legend:
5254

@@ -408,7 +410,7 @@ For instance for the INDEX field, you can do the following (See `Index Field for
408410
$section->addField('INDEX', array(), array('\\e " " \\h "A" \\c "3"'), $fieldText);
409411
410412
Line
411-
------
413+
----
412414

413415
Line elements can be added to sections by using ``addLine``.
414416

@@ -428,8 +430,21 @@ Available line style attributes:
428430
- ``height``. Line-object height in pt.
429431
- ``flip``. Flip the line element: true, false.
430432

433+
Chart
434+
-----
435+
436+
Charts can be added using
437+
438+
.. code-block:: php
439+
440+
$categories = array('A', 'B', 'C', 'D', 'E');
441+
$series = array(1, 3, 2, 5, 4);
442+
$chart = $section->addChart('line', $categories, $series);
443+
444+
check out the Sample_32_Chart.php for more options and styling.
445+
431446
Comments
432-
---------
447+
--------
433448

434449
Comments can be added to a document by using ``addComment``.
435450
The comment can contain formatted text. Once the comment has been added, it can be linked to any element with ``setCommentStart``.

0 commit comments

Comments
 (0)