Skip to content

Commit 36080c1

Browse files
author
Bas-Jan 't Jong
committed
Merge branch 'develop' of https://github.com/PHPOffice/PHPWord.git into develop
2 parents 343f378 + 92c7a24 commit 36080c1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

88 files changed

+2080
-1106
lines changed

CHANGELOG.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,10 @@ This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3; new r
2626
- PDF Writer: Add TCPDF and mPDF as optional PDF renderer library - @ivanlanin
2727
- ODT Writer: Enable title element and custom document properties - @ivanlanin
2828
- ODT Reader: Ability to read standard and custom document properties - @ivanlanin
29+
- Word2007 Writer: Enable the missing custom document properties writer - @ivanlanin
30+
- Image: Enable "image float left" - @ivanlanin GH-244
31+
- RTF Writer: Ability to write document properties - @ivanlanin
32+
- RTF Writer: Ability to write image - @ivanlanin
2933

3034
### Bugfixes
3135

@@ -39,6 +43,7 @@ This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3; new r
3943
- `Writer\Word2007\Part`: `Numbering::writeNumbering()`, `Settings::writeSettings()`, `WebSettings::writeWebSettings()`, `ContentTypes::writeContentTypes()`, `Styles::writeStyles()`, `Document::writeDocument()` all changed into `write()`
4044
- `Writer\Word2007\Part\DocProps`: Split into `Writer\Word2007\Part\DocPropsCore` and `Writer\Word2007\Part\DocPropsApp`
4145
- `Element\Title::getBookmarkId()` replaced by `Element\Title::getRelationId()`
46+
- `Writer\HTML::writeDocument`: Replaced by `Writer\HTML::getContent`
4247

4348
### Miscellaneous
4449

@@ -54,6 +59,12 @@ This release marked the change of PHPWord license from LGPL 2.1 to LGPL 3; new r
5459
- Style: Change behaviour of `set...` function of boolean properties; when none is defined, assumed true - @ivanlanin
5560
- Shared: Unify PHP ZipArchive and PCLZip features into PhpWord ZipArchive - @ivanlanin
5661

62+
## 0.10.1 - 21 May 2014
63+
64+
This is a bugfix release for `php-zip` requirement in Composer.
65+
66+
- Change Composer requirements for php-zip from `require` to `suggest` - @bskrtich GH-246
67+
5768
## 0.10.0 - 4 May 2014
5869

5970
This release marked heavy refactorings on internal code structure with the creation of some abstract classes to reduce code duplication. `Element` subnamespace is introduced in this release to replace `Section`. Word2007 reader capability is greatly enhanced. Endnote is introduced. List numbering is now customizable. Basic HTML and PDF writing support is enabled. Basic ODText reader is introduced.

LICENSE.md renamed to COPYING

Lines changed: 126 additions & 186 deletions
Original file line numberDiff line numberDiff line change
@@ -1,189 +1,74 @@
1-
# PHPWord License
2-
3-
PHPWord, a pure PHP library for reading and writing word processing documents
4-
5-
Copyright (c) 2014 PHPWord
6-
7-
This program is free software: you can redistribute it and/or modify
8-
it under the terms of the GNU Lesser General Public License as published by
9-
the Free Software Foundation, either version 3 of the License, or
10-
(at your option) any later version.
11-
12-
This program is distributed in the hope that it will be useful,
13-
but WITHOUT ANY WARRANTY; without even the implied warranty of
14-
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15-
GNU Lesser General Public License for more details.
16-
17-
You should have received a copy of the GNU Lesser General Public License
18-
along with this program. If not, see <http://www.gnu.org/licenses/>.
19-
20-
## GNU LESSER GENERAL PUBLIC LICENSE
21-
22-
Version 3, 29 June 2007
23-
24-
This version of the GNU Lesser General Public License incorporates
25-
the terms and conditions of version 3 of the GNU General Public
26-
License, supplemented by the additional permissions listed below.
27-
28-
0. Additional Definitions.
29-
30-
As used herein, "this License" refers to version 3 of the GNU Lesser
31-
General Public License, and the "GNU GPL" refers to version 3 of the GNU
32-
General Public License.
33-
34-
"The Library" refers to a covered work governed by this License,
35-
other than an Application or a Combined Work as defined below.
36-
37-
An "Application" is any work that makes use of an interface provided
38-
by the Library, but which is not otherwise based on the Library.
39-
Defining a subclass of a class defined by the Library is deemed a mode
40-
of using an interface provided by the Library.
41-
42-
A "Combined Work" is a work produced by combining or linking an
43-
Application with the Library. The particular version of the Library
44-
with which the Combined Work was made is also called the "Linked
45-
Version".
46-
47-
The "Minimal Corresponding Source" for a Combined Work means the
48-
Corresponding Source for the Combined Work, excluding any source code
49-
for portions of the Combined Work that, considered in isolation, are
50-
based on the Application, and not on the Linked Version.
51-
52-
The "Corresponding Application Code" for a Combined Work means the
53-
object code and/or source code for the Application, including any data
54-
and utility programs needed for reproducing the Combined Work from the
55-
Application, but excluding the System Libraries of the Combined Work.
56-
57-
1. Exception to Section 3 of the GNU GPL.
58-
59-
You may convey a covered work under sections 3 and 4 of this License
60-
without being bound by section 3 of the GNU GPL.
61-
62-
2. Conveying Modified Versions.
63-
64-
If you modify a copy of the Library, and, in your modifications, a
65-
facility refers to a function or data to be supplied by an Application
66-
that uses the facility (other than as an argument passed when the
67-
facility is invoked), then you may convey a copy of the modified
68-
version:
69-
70-
a) under this License, provided that you make a good faith effort to
71-
ensure that, in the event an Application does not supply the
72-
function or data, the facility still operates, and performs
73-
whatever part of its purpose remains meaningful, or
74-
75-
b) under the GNU GPL, with none of the additional permissions of
76-
this License applicable to that copy.
77-
78-
3. Object Code Incorporating Material from Library Header Files.
79-
80-
The object code form of an Application may incorporate material from
81-
a header file that is part of the Library. You may convey such object
82-
code under terms of your choice, provided that, if the incorporated
83-
material is not limited to numerical parameters, data structure
84-
layouts and accessors, or small macros, inline functions and templates
85-
(ten or fewer lines in length), you do both of the following:
86-
87-
a) Give prominent notice with each copy of the object code that the
88-
Library is used in it and that the Library and its use are
89-
covered by this License.
90-
91-
b) Accompany the object code with a copy of the GNU GPL and this license
92-
document.
93-
94-
4. Combined Works.
95-
96-
You may convey a Combined Work under terms of your choice that,
97-
taken together, effectively do not restrict modification of the
98-
portions of the Library contained in the Combined Work and reverse
99-
engineering for debugging such modifications, if you also do each of
100-
the following:
101-
102-
a) Give prominent notice with each copy of the Combined Work that
103-
the Library is used in it and that the Library and its use are
104-
covered by this License.
105-
106-
b) Accompany the Combined Work with a copy of the GNU GPL and this license
107-
document.
108-
109-
c) For a Combined Work that displays copyright notices during
110-
execution, include the copyright notice for the Library among
111-
these notices, as well as a reference directing the user to the
112-
copies of the GNU GPL and this license document.
113-
114-
d) Do one of the following:
115-
116-
0) Convey the Minimal Corresponding Source under the terms of this
117-
License, and the Corresponding Application Code in a form
118-
suitable for, and under terms that permit, the user to
119-
recombine or relink the Application with a modified version of
120-
the Linked Version to produce a modified Combined Work, in the
121-
manner specified by section 6 of the GNU GPL for conveying
122-
Corresponding Source.
123-
124-
1) Use a suitable shared library mechanism for linking with the
125-
Library. A suitable mechanism is one that (a) uses at run time
126-
a copy of the Library already present on the user's computer
127-
system, and (b) will operate properly with a modified version
128-
of the Library that is interface-compatible with the Linked
129-
Version.
130-
131-
e) Provide Installation Information, but only if you would otherwise
132-
be required to provide such information under section 6 of the
133-
GNU GPL, and only to the extent that such information is
134-
necessary to install and execute a modified version of the
135-
Combined Work produced by recombining or relinking the
136-
Application with a modified version of the Linked Version. (If
137-
you use option 4d0, the Installation Information must accompany
138-
the Minimal Corresponding Source and Corresponding Application
139-
Code. If you use option 4d1, you must provide the Installation
140-
Information in the manner specified by section 6 of the GNU GPL
141-
for conveying Corresponding Source.)
142-
143-
5. Combined Libraries.
144-
145-
You may place library facilities that are a work based on the
146-
Library side by side in a single library together with other library
147-
facilities that are not Applications and are not covered by this
148-
License, and convey such a combined library under terms of your
149-
choice, if you do both of the following:
150-
151-
a) Accompany the combined library with a copy of the same work based
152-
on the Library, uncombined with any other library facilities,
153-
conveyed under the terms of this License.
154-
155-
b) Give prominent notice with the combined library that part of it
156-
is a work based on the Library, and explaining where to find the
157-
accompanying uncombined form of the same work.
158-
159-
6. Revised Versions of the GNU Lesser General Public License.
160-
161-
The Free Software Foundation may publish revised and/or new versions
162-
of the GNU Lesser General Public License from time to time. Such new
163-
versions will be similar in spirit to the present version, but may
164-
differ in detail to address new problems or concerns.
165-
166-
Each version is given a distinguishing version number. If the
167-
Library as you received it specifies that a certain numbered version
168-
of the GNU Lesser General Public License "or any later version"
169-
applies to it, you have the option of following the terms and
170-
conditions either of that published version or of any later version
171-
published by the Free Software Foundation. If the Library as you
172-
received it does not specify a version number of the GNU Lesser
173-
General Public License, you may choose any version of the GNU Lesser
174-
General Public License ever published by the Free Software Foundation.
175-
176-
If the Library as you received it specifies that a proxy can decide
177-
whether future versions of the GNU Lesser General Public License shall
178-
apply, that proxy's public statement of acceptance of any version is
179-
permanent authorization for you to choose that version for the
180-
Library.
181-
182-
## GNU GENERAL PUBLIC LICENSE
183-
184-
Version 3, 29 June 2007
185-
186-
TERMS AND CONDITIONS
1+
GNU GENERAL PUBLIC LICENSE
2+
Version 3, 29 June 2007
3+
4+
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
5+
Everyone is permitted to copy and distribute verbatim copies
6+
of this license document, but changing it is not allowed.
7+
8+
Preamble
9+
10+
The GNU General Public License is a free, copyleft license for
11+
software and other kinds of works.
12+
13+
The licenses for most software and other practical works are designed
14+
to take away your freedom to share and change the works. By contrast,
15+
the GNU General Public License is intended to guarantee your freedom to
16+
share and change all versions of a program--to make sure it remains free
17+
software for all its users. We, the Free Software Foundation, use the
18+
GNU General Public License for most of our software; it applies also to
19+
any other work released this way by its authors. You can apply it to
20+
your programs, too.
21+
22+
When we speak of free software, we are referring to freedom, not
23+
price. Our General Public Licenses are designed to make sure that you
24+
have the freedom to distribute copies of free software (and charge for
25+
them if you wish), that you receive source code or can get it if you
26+
want it, that you can change the software or use pieces of it in new
27+
free programs, and that you know you can do these things.
28+
29+
To protect your rights, we need to prevent others from denying you
30+
these rights or asking you to surrender the rights. Therefore, you have
31+
certain responsibilities if you distribute copies of the software, or if
32+
you modify it: responsibilities to respect the freedom of others.
33+
34+
For example, if you distribute copies of such a program, whether
35+
gratis or for a fee, you must pass on to the recipients the same
36+
freedoms that you received. You must make sure that they, too, receive
37+
or can get the source code. And you must show them these terms so they
38+
know their rights.
39+
40+
Developers that use the GNU GPL protect your rights with two steps:
41+
(1) assert copyright on the software, and (2) offer you this License
42+
giving you legal permission to copy, distribute and/or modify it.
43+
44+
For the developers' and authors' protection, the GPL clearly explains
45+
that there is no warranty for this free software. For both users' and
46+
authors' sake, the GPL requires that modified versions be marked as
47+
changed, so that their problems will not be attributed erroneously to
48+
authors of previous versions.
49+
50+
Some devices are designed to deny users access to install or run
51+
modified versions of the software inside them, although the manufacturer
52+
can do so. This is fundamentally incompatible with the aim of
53+
protecting users' freedom to change the software. The systematic
54+
pattern of such abuse occurs in the area of products for individuals to
55+
use, which is precisely where it is most unacceptable. Therefore, we
56+
have designed this version of the GPL to prohibit the practice for those
57+
products. If such problems arise substantially in other domains, we
58+
stand ready to extend this provision to those domains in future versions
59+
of the GPL, as needed to protect the freedom of users.
60+
61+
Finally, every program is threatened constantly by software patents.
62+
States should not allow patents to restrict development and use of
63+
software on general-purpose computers, but in those that do, we wish to
64+
avoid the special danger that patents applied to a free program could
65+
make it effectively proprietary. To prevent this, the GPL assures that
66+
patents cannot be used to render the program non-free.
67+
68+
The precise terms and conditions for copying, distribution and
69+
modification follow.
70+
71+
TERMS AND CONDITIONS
18772

18873
0. Definitions.
18974

@@ -732,3 +617,58 @@ reviewing courts shall apply local law that most closely approximates
732617
an absolute waiver of all civil liability in connection with the
733618
Program, unless a warranty or assumption of liability accompanies a
734619
copy of the Program in return for a fee.
620+
621+
END OF TERMS AND CONDITIONS
622+
623+
How to Apply These Terms to Your New Programs
624+
625+
If you develop a new program, and you want it to be of the greatest
626+
possible use to the public, the best way to achieve this is to make it
627+
free software which everyone can redistribute and change under these terms.
628+
629+
To do so, attach the following notices to the program. It is safest
630+
to attach them to the start of each source file to most effectively
631+
state the exclusion of warranty; and each file should have at least
632+
the "copyright" line and a pointer to where the full notice is found.
633+
634+
<one line to give the program's name and a brief idea of what it does.>
635+
Copyright (C) <year> <name of author>
636+
637+
This program is free software: you can redistribute it and/or modify
638+
it under the terms of the GNU General Public License as published by
639+
the Free Software Foundation, either version 3 of the License, or
640+
(at your option) any later version.
641+
642+
This program is distributed in the hope that it will be useful,
643+
but WITHOUT ANY WARRANTY; without even the implied warranty of
644+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
645+
GNU General Public License for more details.
646+
647+
You should have received a copy of the GNU General Public License
648+
along with this program. If not, see <http://www.gnu.org/licenses/>.
649+
650+
Also add information on how to contact you by electronic and paper mail.
651+
652+
If the program does terminal interaction, make it output a short
653+
notice like this when it starts in an interactive mode:
654+
655+
<program> Copyright (C) <year> <name of author>
656+
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657+
This is free software, and you are welcome to redistribute it
658+
under certain conditions; type `show c' for details.
659+
660+
The hypothetical commands `show w' and `show c' should show the appropriate
661+
parts of the General Public License. Of course, your program's commands
662+
might be different; for a GUI interface, you would use an "about box".
663+
664+
You should also get your employer (if you work as a programmer) or school,
665+
if any, to sign a "copyright disclaimer" for the program, if necessary.
666+
For more information on this, and how to apply and follow the GNU GPL, see
667+
<http://www.gnu.org/licenses/>.
668+
669+
The GNU General Public License does not permit incorporating your program
670+
into proprietary programs. If your program is a subroutine library, you
671+
may consider it more useful to permit linking proprietary applications with
672+
the library. If this is what you want to do, use the GNU Lesser General
673+
Public License instead of this License. But first, please read
674+
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

0 commit comments

Comments
 (0)