Updated gui for user facility settings (#1327)
[openemr.git] / vendor / phpoffice / phpexcel / license.md
blob57b74d4c746091163d9a1a067d4dc5eed1cce126
1 GNU LESSER GENERAL PUBLIC LICENSE
3    TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
5   0. This License Agreement applies to any software library or other
6 program which contains a notice placed by the copyright holder or
7 other authorized party saying it may be distributed under the terms of
8 this Lesser General Public License (also called "this License").
9 Each licensee is addressed as "you".
11   A "library" means a collection of software functions and/or data
12 prepared so as to be conveniently linked with application programs
13 (which use some of those functions and data) to form executables.
15   The "Library", below, refers to any such software library or work
16 which has been distributed under these terms.  A "work based on the
17 Library" means either the Library or any derivative work under
18 copyright law: that is to say, a work containing the Library or a
19 portion of it, either verbatim or with modifications and/or translated
20 straightforwardly into another language.  (Hereinafter, translation is
21 included without limitation in the term "modification".)
23   "Source code" for a work means the preferred form of the work for
24 making modifications to it.  For a library, complete source code means
25 all the source code for all modules it contains, plus any associated
26 interface definition files, plus the scripts used to control compilation
27 and installation of the library.
29   Activities other than copying, distribution and modification are not
30 covered by this License; they are outside its scope.  The act of
31 running a program using the Library is not restricted, and output from
32 such a program is covered only if its contents constitute a work based
33 on the Library (independent of the use of the Library in a tool for
34 writing it).  Whether that is true depends on what the Library does
35 and what the program that uses the Library does.
36   
37   1. You may copy and distribute verbatim copies of the Library's
38 complete source code as you receive it, in any medium, provided that
39 you conspicuously and appropriately publish on each copy an
40 appropriate copyright notice and disclaimer of warranty; keep intact
41 all the notices that refer to this License and to the absence of any
42 warranty; and distribute a copy of this License along with the
43 Library.
45   You may charge a fee for the physical act of transferring a copy,
46 and you may at your option offer warranty protection in exchange for a
47 fee.
49   2. You may modify your copy or copies of the Library or any portion
50 of it, thus forming a work based on the Library, and copy and
51 distribute such modifications or work under the terms of Section 1
52 above, provided that you also meet all of these conditions:
54     a) The modified work must itself be a software library.
56     b) You must cause the files modified to carry prominent notices
57     stating that you changed the files and the date of any change.
59     c) You must cause the whole of the work to be licensed at no
60     charge to all third parties under the terms of this License.
62     d) If a facility in the modified Library refers to a function or a
63     table of data to be supplied by an application program that uses
64     the facility, other than as an argument passed when the facility
65     is invoked, then you must make a good faith effort to ensure that,
66     in the event an application does not supply such function or
67     table, the facility still operates, and performs whatever part of
68     its purpose remains meaningful.
70     (For example, a function in a library to compute square roots has
71     a purpose that is entirely well-defined independent of the
72     application.  Therefore, Subsection 2d requires that any
73     application-supplied function or table used by this function must
74     be optional: if the application does not supply it, the square
75     root function must still compute square roots.)
77 These requirements apply to the modified work as a whole.  If
78 identifiable sections of that work are not derived from the Library,
79 and can be reasonably considered independent and separate works in
80 themselves, then this License, and its terms, do not apply to those
81 sections when you distribute them as separate works.  But when you
82 distribute the same sections as part of a whole which is a work based
83 on the Library, the distribution of the whole must be on the terms of
84 this License, whose permissions for other licensees extend to the
85 entire whole, and thus to each and every part regardless of who wrote
86 it.
88 Thus, it is not the intent of this section to claim rights or contest
89 your rights to work written entirely by you; rather, the intent is to
90 exercise the right to control the distribution of derivative or
91 collective works based on the Library.
93 In addition, mere aggregation of another work not based on the Library
94 with the Library (or with a work based on the Library) on a volume of
95 a storage or distribution medium does not bring the other work under
96 the scope of this License.
98   3. You may opt to apply the terms of the ordinary GNU General Public
99 License instead of this License to a given copy of the Library.  To do
100 this, you must alter all the notices that refer to this License, so
101 that they refer to the ordinary GNU General Public License, version 2,
102 instead of to this License.  (If a newer version than version 2 of the
103 ordinary GNU General Public License has appeared, then you can specify
104 that version instead if you wish.)  Do not make any other change in
105 these notices.
107   Once this change is made in a given copy, it is irreversible for
108 that copy, so the ordinary GNU General Public License applies to all
109 subsequent copies and derivative works made from that copy.
111   This option is useful when you wish to copy part of the code of
112 the Library into a program that is not a library.
114   4. You may copy and distribute the Library (or a portion or
115 derivative of it, under Section 2) in object code or executable form
116 under the terms of Sections 1 and 2 above provided that you accompany
117 it with the complete corresponding machine-readable source code, which
118 must be distributed under the terms of Sections 1 and 2 above on a
119 medium customarily used for software interchange.
121   If distribution of object code is made by offering access to copy
122 from a designated place, then offering equivalent access to copy the
123 source code from the same place satisfies the requirement to
124 distribute the source code, even though third parties are not
125 compelled to copy the source along with the object code.
127   5. A program that contains no derivative of any portion of the
128 Library, but is designed to work with the Library by being compiled or
129 linked with it, is called a "work that uses the Library".  Such a
130 work, in isolation, is not a derivative work of the Library, and
131 therefore falls outside the scope of this License.
133   However, linking a "work that uses the Library" with the Library
134 creates an executable that is a derivative of the Library (because it
135 contains portions of the Library), rather than a "work that uses the
136 library".  The executable is therefore covered by this License.
137 Section 6 states terms for distribution of such executables.
139   When a "work that uses the Library" uses material from a header file
140 that is part of the Library, the object code for the work may be a
141 derivative work of the Library even though the source code is not.
142 Whether this is true is especially significant if the work can be
143 linked without the Library, or if the work is itself a library.  The
144 threshold for this to be true is not precisely defined by law.
146   If such an object file uses only numerical parameters, data
147 structure layouts and accessors, and small macros and small inline
148 functions (ten lines or less in length), then the use of the object
149 file is unrestricted, regardless of whether it is legally a derivative
150 work.  (Executables containing this object code plus portions of the
151 Library will still fall under Section 6.)
153   Otherwise, if the work is a derivative of the Library, you may
154 distribute the object code for the work under the terms of Section 6.
155 Any executables containing that work also fall under Section 6,
156 whether or not they are linked directly with the Library itself.
158   6. As an exception to the Sections above, you may also combine or
159 link a "work that uses the Library" with the Library to produce a
160 work containing portions of the Library, and distribute that work
161 under terms of your choice, provided that the terms permit
162 modification of the work for the customer's own use and reverse
163 engineering for debugging such modifications.
165   You must give prominent notice with each copy of the work that the
166 Library is used in it and that the Library and its use are covered by
167 this License.  You must supply a copy of this License.  If the work
168 during execution displays copyright notices, you must include the
169 copyright notice for the Library among them, as well as a reference
170 directing the user to the copy of this License.  Also, you must do one
171 of these things:
173     a) Accompany the work with the complete corresponding
174     machine-readable source code for the Library including whatever
175     changes were used in the work (which must be distributed under
176     Sections 1 and 2 above); and, if the work is an executable linked
177     with the Library, with the complete machine-readable "work that
178     uses the Library", as object code and/or source code, so that the
179     user can modify the Library and then relink to produce a modified
180     executable containing the modified Library.  (It is understood
181     that the user who changes the contents of definitions files in the
182     Library will not necessarily be able to recompile the application
183     to use the modified definitions.)
185     b) Use a suitable shared library mechanism for linking with the
186     Library.  A suitable mechanism is one that (1) uses at run time a
187     copy of the library already present on the user's computer system,
188     rather than copying library functions into the executable, and (2)
189     will operate properly with a modified version of the library, if
190     the user installs one, as long as the modified version is
191     interface-compatible with the version that the work was made with.
193     c) Accompany the work with a written offer, valid for at
194     least three years, to give the same user the materials
195     specified in Subsection 6a, above, for a charge no more
196     than the cost of performing this distribution.
198     d) If distribution of the work is made by offering access to copy
199     from a designated place, offer equivalent access to copy the above
200     specified materials from the same place.
202     e) Verify that the user has already received a copy of these
203     materials or that you have already sent this user a copy.
205   For an executable, the required form of the "work that uses the
206 Library" must include any data and utility programs needed for
207 reproducing the executable from it.  However, as a special exception,
208 the materials to be distributed need not include anything that is
209 normally distributed (in either source or binary form) with the major
210 components (compiler, kernel, and so on) of the operating system on
211 which the executable runs, unless that component itself accompanies
212 the executable.
214   It may happen that this requirement contradicts the license
215 restrictions of other proprietary libraries that do not normally
216 accompany the operating system.  Such a contradiction means you cannot
217 use both them and the Library together in an executable that you
218 distribute.
220   7. You may place library facilities that are a work based on the
221 Library side-by-side in a single library together with other library
222 facilities not covered by this License, and distribute such a combined
223 library, provided that the separate distribution of the work based on
224 the Library and of the other library facilities is otherwise
225 permitted, and provided that you do these two things:
227     a) Accompany the combined library with a copy of the same work
228     based on the Library, uncombined with any other library
229     facilities.  This must be distributed under the terms of the
230     Sections above.
232     b) Give prominent notice with the combined library of the fact
233     that part of it is a work based on the Library, and explaining
234     where to find the accompanying uncombined form of the same work.
236   8. You may not copy, modify, sublicense, link with, or distribute
237 the Library except as expressly provided under this License.  Any
238 attempt otherwise to copy, modify, sublicense, link with, or
239 distribute the Library is void, and will automatically terminate your
240 rights under this License.  However, parties who have received copies,
241 or rights, from you under this License will not have their licenses
242 terminated so long as such parties remain in full compliance.
244   9. You are not required to accept this License, since you have not
245 signed it.  However, nothing else grants you permission to modify or
246 distribute the Library or its derivative works.  These actions are
247 prohibited by law if you do not accept this License.  Therefore, by
248 modifying or distributing the Library (or any work based on the
249 Library), you indicate your acceptance of this License to do so, and
250 all its terms and conditions for copying, distributing or modifying
251 the Library or works based on it.
253   10. Each time you redistribute the Library (or any work based on the
254 Library), the recipient automatically receives a license from the
255 original licensor to copy, distribute, link with or modify the Library
256 subject to these terms and conditions.  You may not impose any further
257 restrictions on the recipients' exercise of the rights granted herein.
258 You are not responsible for enforcing compliance by third parties with
259 this License.
261   11. If, as a consequence of a court judgment or allegation of patent
262 infringement or for any other reason (not limited to patent issues),
263 conditions are imposed on you (whether by court order, agreement or
264 otherwise) that contradict the conditions of this License, they do not
265 excuse you from the conditions of this License.  If you cannot
266 distribute so as to satisfy simultaneously your obligations under this
267 License and any other pertinent obligations, then as a consequence you
268 may not distribute the Library at all.  For example, if a patent
269 license would not permit royalty-free redistribution of the Library by
270 all those who receive copies directly or indirectly through you, then
271 the only way you could satisfy both it and this License would be to
272 refrain entirely from distribution of the Library.
274 If any portion of this section is held invalid or unenforceable under any
275 particular circumstance, the balance of the section is intended to apply,
276 and the section as a whole is intended to apply in other circumstances.
278 It is not the purpose of this section to induce you to infringe any
279 patents or other property right claims or to contest validity of any
280 such claims; this section has the sole purpose of protecting the
281 integrity of the free software distribution system which is
282 implemented by public license practices.  Many people have made
283 generous contributions to the wide range of software distributed
284 through that system in reliance on consistent application of that
285 system; it is up to the author/donor to decide if he or she is willing
286 to distribute software through any other system and a licensee cannot
287 impose that choice.
289 This section is intended to make thoroughly clear what is believed to
290 be a consequence of the rest of this License.
292   12. If the distribution and/or use of the Library is restricted in
293 certain countries either by patents or by copyrighted interfaces, the
294 original copyright holder who places the Library under this License may add
295 an explicit geographical distribution limitation excluding those countries,
296 so that distribution is permitted only in or among countries not thus
297 excluded.  In such case, this License incorporates the limitation as if
298 written in the body of this License.
300   13. The Free Software Foundation may publish revised and/or new
301 versions of the Lesser General Public License from time to time.
302 Such new versions will be similar in spirit to the present version,
303 but may differ in detail to address new problems or concerns.
305 Each version is given a distinguishing version number.  If the Library
306 specifies a version number of this License which applies to it and
307 "any later version", you have the option of following the terms and
308 conditions either of that version or of any later version published by
309 the Free Software Foundation.  If the Library does not specify a
310 license version number, you may choose any version ever published by
311 the Free Software Foundation.
313   14. If you wish to incorporate parts of the Library into other free
314 programs whose distribution conditions are incompatible with these,
315 write to the author to ask for permission.  For software which is
316 copyrighted by the Free Software Foundation, write to the Free
317 Software Foundation; we sometimes make exceptions for this.  Our
318 decision will be guided by the two goals of preserving the free status
319 of all derivatives of our free software and of promoting the sharing
320 and reuse of software generally.
322 NO WARRANTY
324   15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
325 WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
326 EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
327 OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
328 KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
329 IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
330 PURPOSE.  THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
331 LIBRARY IS WITH YOU.  SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
332 THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
334   16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
335 WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
336 AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
337 FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
338 CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
339 LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
340 RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
341 FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
342 SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
343 DAMAGES.
345 END OF TERMS AND CONDITIONS