You've already forked lazarus-ccr
initial commit of rtfview component
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@54 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
481
components/rtfview/COPYING.LGPL
Normal file
481
components/rtfview/COPYING.LGPL
Normal file
@ -0,0 +1,481 @@
|
|||||||
|
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1991 Free Software Foundation, Inc.
|
||||||
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
[This is the first released version of the library GPL. It is
|
||||||
|
numbered 2 because it goes with version 2 of the ordinary GPL.]
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
Licenses are intended to guarantee your freedom to share and change
|
||||||
|
free software--to make sure the software is free for all its users.
|
||||||
|
|
||||||
|
This license, the Library General Public License, applies to some
|
||||||
|
specially designated Free Software Foundation software, and to any
|
||||||
|
other libraries whose authors decide to use it. You can use it for
|
||||||
|
your libraries, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if
|
||||||
|
you distribute copies of the library, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of the library, whether gratis
|
||||||
|
or for a fee, you must give the recipients all the rights that we gave
|
||||||
|
you. You must make sure that they, too, receive or can get the source
|
||||||
|
code. If you link a program with the library, you must provide
|
||||||
|
complete object files to the recipients so that they can relink them
|
||||||
|
with the library, after making changes to the library and recompiling
|
||||||
|
it. And you must show them these terms so they know their rights.
|
||||||
|
|
||||||
|
Our method of protecting your rights has two steps: (1) copyright
|
||||||
|
the library, and (2) offer you this license which gives you legal
|
||||||
|
permission to copy, distribute and/or modify the library.
|
||||||
|
|
||||||
|
Also, for each distributor's protection, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
library. If the library is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original
|
||||||
|
version, so that any problems introduced by others will not reflect on
|
||||||
|
the original authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that companies distributing free
|
||||||
|
software will individually obtain patent licenses, thus in effect
|
||||||
|
transforming the program into proprietary software. To prevent this,
|
||||||
|
we have made it clear that any patent must be licensed for everyone's
|
||||||
|
free use or not licensed at all.
|
||||||
|
|
||||||
|
Most GNU software, including some libraries, is covered by the ordinary
|
||||||
|
GNU General Public License, which was designed for utility programs. This
|
||||||
|
license, the GNU Library General Public License, applies to certain
|
||||||
|
designated libraries. This license is quite different from the ordinary
|
||||||
|
one; be sure to read it in full, and don't assume that anything in it is
|
||||||
|
the same as in the ordinary license.
|
||||||
|
|
||||||
|
The reason we have a separate public license for some libraries is that
|
||||||
|
they blur the distinction we usually make between modifying or adding to a
|
||||||
|
program and simply using it. Linking a program with a library, without
|
||||||
|
changing the library, is in some sense simply using the library, and is
|
||||||
|
analogous to running a utility program or application program. However, in
|
||||||
|
a textual and legal sense, the linked executable is a combined work, a
|
||||||
|
derivative of the original library, and the ordinary General Public License
|
||||||
|
treats it as such.
|
||||||
|
|
||||||
|
Because of this blurred distinction, using the ordinary General
|
||||||
|
Public License for libraries did not effectively promote software
|
||||||
|
sharing, because most developers did not use the libraries. We
|
||||||
|
concluded that weaker conditions might promote sharing better.
|
||||||
|
|
||||||
|
However, unrestricted linking of non-free programs would deprive the
|
||||||
|
users of those programs of all benefit from the free status of the
|
||||||
|
libraries themselves. This Library General Public License is intended to
|
||||||
|
permit developers of non-free programs to use free libraries, while
|
||||||
|
preserving your freedom as a user of such programs to change the free
|
||||||
|
libraries that are incorporated in them. (We have not seen how to achieve
|
||||||
|
this as regards changes in header files, but we have achieved it as regards
|
||||||
|
changes in the actual functions of the Library.) The hope is that this
|
||||||
|
will lead to faster development of free libraries.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow. Pay close attention to the difference between a
|
||||||
|
"work based on the library" and a "work that uses the library". The
|
||||||
|
former contains code derived from the library, while the latter only
|
||||||
|
works together with the library.
|
||||||
|
|
||||||
|
Note that it is possible for a library to be covered by the ordinary
|
||||||
|
General Public License rather than by this special one.
|
||||||
|
|
||||||
|
GNU LIBRARY GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License Agreement applies to any software library which
|
||||||
|
contains a notice placed by the copyright holder or other authorized
|
||||||
|
party saying it may be distributed under the terms of this Library
|
||||||
|
General Public License (also called "this License"). Each licensee is
|
||||||
|
addressed as "you".
|
||||||
|
|
||||||
|
A "library" means a collection of software functions and/or data
|
||||||
|
prepared so as to be conveniently linked with application programs
|
||||||
|
(which use some of those functions and data) to form executables.
|
||||||
|
|
||||||
|
The "Library", below, refers to any such software library or work
|
||||||
|
which has been distributed under these terms. A "work based on the
|
||||||
|
Library" means either the Library or any derivative work under
|
||||||
|
copyright law: that is to say, a work containing the Library or a
|
||||||
|
portion of it, either verbatim or with modifications and/or translated
|
||||||
|
straightforwardly into another language. (Hereinafter, translation is
|
||||||
|
included without limitation in the term "modification".)
|
||||||
|
|
||||||
|
"Source code" for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For a library, complete source code means
|
||||||
|
all the source code for all modules it contains, plus any associated
|
||||||
|
interface definition files, plus the scripts used to control compilation
|
||||||
|
and installation of the library.
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running a program using the Library is not restricted, and output from
|
||||||
|
such a program is covered only if its contents constitute a work based
|
||||||
|
on the Library (independent of the use of the Library in a tool for
|
||||||
|
writing it). Whether that is true depends on what the Library does
|
||||||
|
and what the program that uses the Library does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Library's
|
||||||
|
complete source code as you receive it, in any medium, provided that
|
||||||
|
you conspicuously and appropriately publish on each copy an
|
||||||
|
appropriate copyright notice and disclaimer of warranty; keep intact
|
||||||
|
all the notices that refer to this License and to the absence of any
|
||||||
|
warranty; and distribute a copy of this License along with the
|
||||||
|
Library.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy,
|
||||||
|
and you may at your option offer warranty protection in exchange for a
|
||||||
|
fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Library or any portion
|
||||||
|
of it, thus forming a work based on the Library, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) The modified work must itself be a software library.
|
||||||
|
|
||||||
|
b) You must cause the files modified to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
c) You must cause the whole of the work to be licensed at no
|
||||||
|
charge to all third parties under the terms of this License.
|
||||||
|
|
||||||
|
d) If a facility in the modified Library refers to a function or a
|
||||||
|
table of data to be supplied by an application program that uses
|
||||||
|
the facility, other than as an argument passed when the facility
|
||||||
|
is invoked, then you must make a good faith effort to ensure that,
|
||||||
|
in the event an application does not supply such function or
|
||||||
|
table, the facility still operates, and performs whatever part of
|
||||||
|
its purpose remains meaningful.
|
||||||
|
|
||||||
|
(For example, a function in a library to compute square roots has
|
||||||
|
a purpose that is entirely well-defined independent of the
|
||||||
|
application. Therefore, Subsection 2d requires that any
|
||||||
|
application-supplied function or table used by this function must
|
||||||
|
be optional: if the application does not supply it, the square
|
||||||
|
root function must still compute square roots.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Library,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Library, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote
|
||||||
|
it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Library.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Library
|
||||||
|
with the Library (or with a work based on the Library) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may opt to apply the terms of the ordinary GNU General Public
|
||||||
|
License instead of this License to a given copy of the Library. To do
|
||||||
|
this, you must alter all the notices that refer to this License, so
|
||||||
|
that they refer to the ordinary GNU General Public License, version 2,
|
||||||
|
instead of to this License. (If a newer version than version 2 of the
|
||||||
|
ordinary GNU General Public License has appeared, then you can specify
|
||||||
|
that version instead if you wish.) Do not make any other change in
|
||||||
|
these notices.
|
||||||
|
|
||||||
|
Once this change is made in a given copy, it is irreversible for
|
||||||
|
that copy, so the ordinary GNU General Public License applies to all
|
||||||
|
subsequent copies and derivative works made from that copy.
|
||||||
|
|
||||||
|
This option is useful when you wish to copy part of the code of
|
||||||
|
the Library into a program that is not a library.
|
||||||
|
|
||||||
|
4. You may copy and distribute the Library (or a portion or
|
||||||
|
derivative of it, under Section 2) in object code or executable form
|
||||||
|
under the terms of Sections 1 and 2 above provided that you accompany
|
||||||
|
it with the complete corresponding machine-readable source code, which
|
||||||
|
must be distributed under the terms of Sections 1 and 2 above on a
|
||||||
|
medium customarily used for software interchange.
|
||||||
|
|
||||||
|
If distribution of object code is made by offering access to copy
|
||||||
|
from a designated place, then offering equivalent access to copy the
|
||||||
|
source code from the same place satisfies the requirement to
|
||||||
|
distribute the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
5. A program that contains no derivative of any portion of the
|
||||||
|
Library, but is designed to work with the Library by being compiled or
|
||||||
|
linked with it, is called a "work that uses the Library". Such a
|
||||||
|
work, in isolation, is not a derivative work of the Library, and
|
||||||
|
therefore falls outside the scope of this License.
|
||||||
|
|
||||||
|
However, linking a "work that uses the Library" with the Library
|
||||||
|
creates an executable that is a derivative of the Library (because it
|
||||||
|
contains portions of the Library), rather than a "work that uses the
|
||||||
|
library". The executable is therefore covered by this License.
|
||||||
|
Section 6 states terms for distribution of such executables.
|
||||||
|
|
||||||
|
When a "work that uses the Library" uses material from a header file
|
||||||
|
that is part of the Library, the object code for the work may be a
|
||||||
|
derivative work of the Library even though the source code is not.
|
||||||
|
Whether this is true is especially significant if the work can be
|
||||||
|
linked without the Library, or if the work is itself a library. The
|
||||||
|
threshold for this to be true is not precisely defined by law.
|
||||||
|
|
||||||
|
If such an object file uses only numerical parameters, data
|
||||||
|
structure layouts and accessors, and small macros and small inline
|
||||||
|
functions (ten lines or less in length), then the use of the object
|
||||||
|
file is unrestricted, regardless of whether it is legally a derivative
|
||||||
|
work. (Executables containing this object code plus portions of the
|
||||||
|
Library will still fall under Section 6.)
|
||||||
|
|
||||||
|
Otherwise, if the work is a derivative of the Library, you may
|
||||||
|
distribute the object code for the work under the terms of Section 6.
|
||||||
|
Any executables containing that work also fall under Section 6,
|
||||||
|
whether or not they are linked directly with the Library itself.
|
||||||
|
|
||||||
|
6. As an exception to the Sections above, you may also compile or
|
||||||
|
link a "work that uses the Library" with the Library to produce a
|
||||||
|
work containing portions of the Library, and distribute that work
|
||||||
|
under terms of your choice, provided that the terms permit
|
||||||
|
modification of the work for the customer's own use and reverse
|
||||||
|
engineering for debugging such modifications.
|
||||||
|
|
||||||
|
You must give prominent notice with each copy of the work that the
|
||||||
|
Library is used in it and that the Library and its use are covered by
|
||||||
|
this License. You must supply a copy of this License. If the work
|
||||||
|
during execution displays copyright notices, you must include the
|
||||||
|
copyright notice for the Library among them, as well as a reference
|
||||||
|
directing the user to the copy of this License. Also, you must do one
|
||||||
|
of these things:
|
||||||
|
|
||||||
|
a) Accompany the work with the complete corresponding
|
||||||
|
machine-readable source code for the Library including whatever
|
||||||
|
changes were used in the work (which must be distributed under
|
||||||
|
Sections 1 and 2 above); and, if the work is an executable linked
|
||||||
|
with the Library, with the complete machine-readable "work that
|
||||||
|
uses the Library", as object code and/or source code, so that the
|
||||||
|
user can modify the Library and then relink to produce a modified
|
||||||
|
executable containing the modified Library. (It is understood
|
||||||
|
that the user who changes the contents of definitions files in the
|
||||||
|
Library will not necessarily be able to recompile the application
|
||||||
|
to use the modified definitions.)
|
||||||
|
|
||||||
|
b) Accompany the work with a written offer, valid for at
|
||||||
|
least three years, to give the same user the materials
|
||||||
|
specified in Subsection 6a, above, for a charge no more
|
||||||
|
than the cost of performing this distribution.
|
||||||
|
|
||||||
|
c) If distribution of the work is made by offering access to copy
|
||||||
|
from a designated place, offer equivalent access to copy the above
|
||||||
|
specified materials from the same place.
|
||||||
|
|
||||||
|
d) Verify that the user has already received a copy of these
|
||||||
|
materials or that you have already sent this user a copy.
|
||||||
|
|
||||||
|
For an executable, the required form of the "work that uses the
|
||||||
|
Library" must include any data and utility programs needed for
|
||||||
|
reproducing the executable from it. However, as a special exception,
|
||||||
|
the source code distributed need not include anything that is normally
|
||||||
|
distributed (in either source or binary form) with the major
|
||||||
|
components (compiler, kernel, and so on) of the operating system on
|
||||||
|
which the executable runs, unless that component itself accompanies
|
||||||
|
the executable.
|
||||||
|
|
||||||
|
It may happen that this requirement contradicts the license
|
||||||
|
restrictions of other proprietary libraries that do not normally
|
||||||
|
accompany the operating system. Such a contradiction means you cannot
|
||||||
|
use both them and the Library together in an executable that you
|
||||||
|
distribute.
|
||||||
|
|
||||||
|
7. You may place library facilities that are a work based on the
|
||||||
|
Library side-by-side in a single library together with other library
|
||||||
|
facilities not covered by this License, and distribute such a combined
|
||||||
|
library, provided that the separate distribution of the work based on
|
||||||
|
the Library and of the other library facilities is otherwise
|
||||||
|
permitted, and provided that you do these two things:
|
||||||
|
|
||||||
|
a) Accompany the combined library with a copy of the same work
|
||||||
|
based on the Library, uncombined with any other library
|
||||||
|
facilities. This must be distributed under the terms of the
|
||||||
|
Sections above.
|
||||||
|
|
||||||
|
b) Give prominent notice with the combined library of the fact
|
||||||
|
that part of it is a work based on the Library, and explaining
|
||||||
|
where to find the accompanying uncombined form of the same work.
|
||||||
|
|
||||||
|
8. You may not copy, modify, sublicense, link with, or distribute
|
||||||
|
the Library except as expressly provided under this License. Any
|
||||||
|
attempt otherwise to copy, modify, sublicense, link with, or
|
||||||
|
distribute the Library is void, and will automatically terminate your
|
||||||
|
rights under this License. However, parties who have received copies,
|
||||||
|
or rights, from you under this License will not have their licenses
|
||||||
|
terminated so long as such parties remain in full compliance.
|
||||||
|
|
||||||
|
9. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Library or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Library (or any work based on the
|
||||||
|
Library), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Library or works based on it.
|
||||||
|
|
||||||
|
10. Each time you redistribute the Library (or any work based on the
|
||||||
|
Library), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute, link with or modify the Library
|
||||||
|
subject to these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
11. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Library at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Library by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Library.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under any
|
||||||
|
particular circumstance, the balance of the section is intended to apply,
|
||||||
|
and the section as a whole is intended to apply in other circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
12. If the distribution and/or use of the Library is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Library under this License may add
|
||||||
|
an explicit geographical distribution limitation excluding those countries,
|
||||||
|
so that distribution is permitted only in or among countries not thus
|
||||||
|
excluded. In such case, this License incorporates the limitation as if
|
||||||
|
written in the body of this License.
|
||||||
|
|
||||||
|
13. The Free Software Foundation may publish revised and/or new
|
||||||
|
versions of the Library General Public License from time to time.
|
||||||
|
Such new versions will be similar in spirit to the present version,
|
||||||
|
but may differ in detail to address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Library
|
||||||
|
specifies a version number of this License which applies to it and
|
||||||
|
"any later version", you have the option of following the terms and
|
||||||
|
conditions either of that version or of any later version published by
|
||||||
|
the Free Software Foundation. If the Library does not specify a
|
||||||
|
license version number, you may choose any version ever published by
|
||||||
|
the Free Software Foundation.
|
||||||
|
|
||||||
|
14. If you wish to incorporate parts of the Library into other free
|
||||||
|
programs whose distribution conditions are incompatible with these,
|
||||||
|
write to the author to ask for permission. For software which is
|
||||||
|
copyrighted by the Free Software Foundation, write to the Free
|
||||||
|
Software Foundation; we sometimes make exceptions for this. Our
|
||||||
|
decision will be guided by the two goals of preserving the free status
|
||||||
|
of all derivatives of our free software and of promoting the sharing
|
||||||
|
and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
|
||||||
|
WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
|
||||||
|
EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
|
||||||
|
OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
|
||||||
|
KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
|
||||||
|
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||||
|
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
|
||||||
|
LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
|
||||||
|
THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
|
||||||
|
WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
|
||||||
|
AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
|
||||||
|
FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
|
||||||
|
CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
|
||||||
|
LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
|
||||||
|
RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
|
||||||
|
FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
|
||||||
|
SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
|
||||||
|
DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Libraries
|
||||||
|
|
||||||
|
If you develop a new library, and you want it to be of the greatest
|
||||||
|
possible use to the public, we recommend making it free software that
|
||||||
|
everyone can redistribute and change. You can do so by permitting
|
||||||
|
redistribution under these terms (or, alternatively, under the terms of the
|
||||||
|
ordinary General Public License).
|
||||||
|
|
||||||
|
To apply these terms, attach the following notices to the library. It is
|
||||||
|
safest to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least the
|
||||||
|
"copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the library's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This library is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU Library General Public
|
||||||
|
License as published by the Free Software Foundation; either
|
||||||
|
version 2 of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This library is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
Library General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU Library General Public
|
||||||
|
License along with this library; if not, write to the Free
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the library, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the
|
||||||
|
library `Frob' (a library for tweaking knobs) written by James Random Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1990
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
That's all there is to it!
|
26
components/rtfview/COPYING.modifiedLGPL
Normal file
26
components/rtfview/COPYING.modifiedLGPL
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
This is the file COPYING.modifiedLGPL, it applies to several units in the
|
||||||
|
Lazarus sources distributed by members of the Lazarus Development Team.
|
||||||
|
All files contains headers showing the appropriate license. See there if this
|
||||||
|
modification can be applied.
|
||||||
|
|
||||||
|
These files are distributed under the Library GNU General Public License
|
||||||
|
(see the file COPYING.LGPL) with the following modification:
|
||||||
|
|
||||||
|
As a special exception, the copyright holders of this library give you
|
||||||
|
permission to link this library with independent modules to produce an
|
||||||
|
executable, regardless of the license terms of these independent modules,
|
||||||
|
and to copy and distribute the resulting executable under terms of your choice,
|
||||||
|
provided that you also meet, for each linked independent module, the terms
|
||||||
|
and conditions of the license of that module. An independent module is a
|
||||||
|
module which is not derived from or based on this library. If you modify this
|
||||||
|
library, you may extend this exception to your version of the library, but
|
||||||
|
you are not obligated to do so. If you do not wish to do so, delete this
|
||||||
|
exception statement from your version.
|
||||||
|
|
||||||
|
|
||||||
|
If you didn't receive a copy of the file COPYING.LGPL, contact:
|
||||||
|
Free Software Foundation, Inc.,
|
||||||
|
675 Mass Ave
|
||||||
|
Cambridge, MA 02139
|
||||||
|
USA
|
||||||
|
|
768
components/rtfview/rtfdata.inc
Normal file
768
components/rtfview/rtfdata.inc
Normal file
@ -0,0 +1,768 @@
|
|||||||
|
{
|
||||||
|
This file is part of the Free Pascal run time library.
|
||||||
|
Copyright (c) 1999-2000 by Michael Van Canneyt, member of the
|
||||||
|
Free Pascal development team
|
||||||
|
|
||||||
|
All major and minor RTF class definitions.
|
||||||
|
|
||||||
|
See the file COPYING.FPC, included in this distribution,
|
||||||
|
for details about the copyright.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||||
|
|
||||||
|
**********************************************************************}
|
||||||
|
|
||||||
|
{ ---------------------------------------------------------------------
|
||||||
|
Twentieths of a point (twips) per inch (Many RTF measurements
|
||||||
|
are in twips per inch (tpi) units). Assumes 72 points/inch.
|
||||||
|
---------------------------------------------------------------------}
|
||||||
|
|
||||||
|
Const
|
||||||
|
rtfTpi = 1440;
|
||||||
|
rtfBufSiz = 255; { buffer size}
|
||||||
|
|
||||||
|
{ ---------------------------------------------------------------------
|
||||||
|
Tokens are associated with up to three classification numbers:
|
||||||
|
|
||||||
|
Class number: Broadest (least detailed) breakdown. For programs
|
||||||
|
that only care about gross token distinctions.
|
||||||
|
Major/minor numbers: Within their class, tokens have a major
|
||||||
|
number, and may also have a minor number to further
|
||||||
|
distinquish tokens with the same major number.
|
||||||
|
|
||||||
|
*** Class, major and minor token numbers are all >= 0 ***
|
||||||
|
|
||||||
|
Tokens that can't be classified are put in the "unknown" class.
|
||||||
|
For such, the major and minor numbers are meaningless, although
|
||||||
|
rtfTextBuf may be of interest then.
|
||||||
|
|
||||||
|
Text tokens are a single character, and the major number indicates
|
||||||
|
the character value (note: can be non-ascii, i.e., greater than 127).
|
||||||
|
There is no minor number.
|
||||||
|
|
||||||
|
Control symbols may have a parameter value, which will be found in
|
||||||
|
rtfParam. If no parameter was given, rtfParam = rtfNoParam.
|
||||||
|
|
||||||
|
RTFGetToken() return value is the class number, but it sets all the
|
||||||
|
global token vars.
|
||||||
|
|
||||||
|
rtfEOF is a fake token used by the reader; the writer never sees
|
||||||
|
it (except in the token reader hook, if it installs one).
|
||||||
|
|
||||||
|
Information pertaining to last token read by RTFToken. The
|
||||||
|
text is exactly as it occurs in the input file, e.g.,
|
||||||
|
will be found in rtfTextBuf as, even though it means .
|
||||||
|
|
||||||
|
These variables are also set when styles are reprocessed.
|
||||||
|
----------------------------------------------------------------------}
|
||||||
|
rtfNoParam = (-1000000);
|
||||||
|
|
||||||
|
{ Token classes (zero-based and sequential) }
|
||||||
|
rtfUnknown = 0;
|
||||||
|
rtfGroup = 1;
|
||||||
|
rtfText = 2;
|
||||||
|
rtfControl = 3;
|
||||||
|
rtfEOF = 4;
|
||||||
|
rtfMaxClass = 5 { highest class + 1 };
|
||||||
|
|
||||||
|
{ Group class major numbers }
|
||||||
|
rtfBeginGroup = 0;
|
||||||
|
rtfEndGroup = 1;
|
||||||
|
{ Control class major and minor numbers.}
|
||||||
|
rtfVersion = 0;
|
||||||
|
|
||||||
|
rtfDefFont = 1;
|
||||||
|
|
||||||
|
rtfCharSet = 2;
|
||||||
|
rtfAnsiCharSet = 0;
|
||||||
|
rtfMacCharSet = 1;
|
||||||
|
rtfPcCharSet = 2;
|
||||||
|
rtfPcaCharSet = 3;
|
||||||
|
{ destination minor numbers should be zero-based, sequential }
|
||||||
|
rtfDestination = 3;
|
||||||
|
rtfPict = 0;
|
||||||
|
rtfNeXTGraphic = 1;
|
||||||
|
rtfFootnote = 2;
|
||||||
|
rtfHeader = 3;
|
||||||
|
rtfHeaderLeft = 4;
|
||||||
|
rtfHeaderRight = 5;
|
||||||
|
rtfHeaderFirst = 6;
|
||||||
|
rtfFooter = 7;
|
||||||
|
rtfFooterLeft = 8;
|
||||||
|
rtfFooterRight = 9;
|
||||||
|
rtfFooterFirst = 10;
|
||||||
|
rtfFNSep = 11;
|
||||||
|
rtfFNContSep = 12;
|
||||||
|
rtfFNContNotice = 13;
|
||||||
|
rtfInfo = 14;
|
||||||
|
rtfStyleSheet = 15;
|
||||||
|
rtfFontTbl = 16;
|
||||||
|
rtfColorTbl = 17;
|
||||||
|
rtfField = 18;
|
||||||
|
rtfFieldInst = 19;
|
||||||
|
rtfFieldResult = 20;
|
||||||
|
rtfIndex = 21;
|
||||||
|
rtfIndexBold = 22;
|
||||||
|
rtfIndexItalic = 23;
|
||||||
|
rtfIndexText = 24;
|
||||||
|
rtfIndexRange = 25;
|
||||||
|
rtfTOC = 26;
|
||||||
|
rtfBookmarkStart = 27;
|
||||||
|
rtfBookmarkEnd = 28;
|
||||||
|
rtfITitle = 29;
|
||||||
|
rtfISubject = 30;
|
||||||
|
rtfIAuthor = 31;
|
||||||
|
rtfIOperator = 32;
|
||||||
|
rtfIKeywords = 33;
|
||||||
|
rtfIComment = 34;
|
||||||
|
rtfIVersion = 35;
|
||||||
|
rtfIDoccomm = 36;
|
||||||
|
rtfMaxDestination = 37 { highest dest + 1 };
|
||||||
|
|
||||||
|
rtfFontFamily = 4;
|
||||||
|
rtfFFNil = 0;
|
||||||
|
rtfFFRoman = 1;
|
||||||
|
rtfFFSwiss = 2;
|
||||||
|
rtfFFModern = 3;
|
||||||
|
rtfFFScript = 4;
|
||||||
|
rtfFFDecor = 5;
|
||||||
|
rtfFFTech = 6;
|
||||||
|
|
||||||
|
rtfColorName = 5;
|
||||||
|
rtfRed = 0;
|
||||||
|
rtfGreen = 1;
|
||||||
|
rtfBlue = 2;
|
||||||
|
|
||||||
|
rtfSpecialChar = 6;
|
||||||
|
rtfCurHeadPage = 0;
|
||||||
|
rtfCurFNote = 1;
|
||||||
|
rtfCurHeadPict = 2 { valid? };
|
||||||
|
rtfCurHeadDate = 3;
|
||||||
|
rtfCurHeadTime = 4;
|
||||||
|
rtfFormula = 5;
|
||||||
|
rtfNoBrkSpace = 6;
|
||||||
|
rtfNoReqHyphen = 7;
|
||||||
|
rtfNoBrkHyphen = 8;
|
||||||
|
rtfPage = 9;
|
||||||
|
rtfLine = 10;
|
||||||
|
rtfPar = 11;
|
||||||
|
rtfSect = 12;
|
||||||
|
rtfTab = 13;
|
||||||
|
rtfCell = 14;
|
||||||
|
rtfRow = 15;
|
||||||
|
rtfCurAnnot = 16;
|
||||||
|
rtfAnnotation = 17;
|
||||||
|
rtfAnnotID = 18;
|
||||||
|
rtfCurAnnotRef = 19;
|
||||||
|
rtfFNoteSep = 20;
|
||||||
|
rtfFNoteCont = 21;
|
||||||
|
rtfColumn = 22;
|
||||||
|
rtfOptDest = 23;
|
||||||
|
rtfIIntVersion = 24;
|
||||||
|
rtfICreateTime = 25;
|
||||||
|
rtfIRevisionTime = 26;
|
||||||
|
rtfIPrintTime = 27;
|
||||||
|
rtfIBackupTime = 28;
|
||||||
|
rtfIEditTime = 29;
|
||||||
|
rtfIYear = 30;
|
||||||
|
rtfIMonth = 31;
|
||||||
|
rtfIDay = 32;
|
||||||
|
rtfIHour = 33;
|
||||||
|
rtfIMinute = 34;
|
||||||
|
rtfINPages = 35;
|
||||||
|
rtfINWords = 36;
|
||||||
|
rtfINChars = 37;
|
||||||
|
rtfIIntID = 38;
|
||||||
|
|
||||||
|
rtfStyleAttr = 7;
|
||||||
|
rtfBasedOn = 0;
|
||||||
|
rtfNext = 1;
|
||||||
|
|
||||||
|
rtfDocAttr = 8;
|
||||||
|
rtfPaperWidth = 0;
|
||||||
|
rtfPaperHeight = 1;
|
||||||
|
rtfLeftMargin = 2;
|
||||||
|
rtfRightMargin = 3;
|
||||||
|
rtfTopMargin = 4;
|
||||||
|
rtfBottomMargin = 5;
|
||||||
|
rtfFacingPage = 6;
|
||||||
|
rtfGutterWid = 7;
|
||||||
|
rtfDefTab = 8;
|
||||||
|
rtfWidowCtrl = 9;
|
||||||
|
rtfHyphHotZone = 10;
|
||||||
|
rtfFNoteEndSect = 11;
|
||||||
|
rtfFNoteEndDoc = 12;
|
||||||
|
rtfFNoteText = 13;
|
||||||
|
rtfFNoteBottom = 14;
|
||||||
|
rtfFNoteStart = 15;
|
||||||
|
rtfFNoteRestart = 16;
|
||||||
|
rtfPageStart = 17;
|
||||||
|
rtfLineStart = 18;
|
||||||
|
rtfLandscape = 19;
|
||||||
|
rtfFracWidth = 20;
|
||||||
|
rtfNextFile = 21;
|
||||||
|
rtfTemplate = 22;
|
||||||
|
rtfMakeBackup = 23;
|
||||||
|
rtfRTFDefault = 24;
|
||||||
|
rtfRevisions = 25;
|
||||||
|
rtfMirrorMargin = 26;
|
||||||
|
rtfRevDisplay = 27;
|
||||||
|
rtfRevBar = 28;
|
||||||
|
|
||||||
|
rtfSectAttr = 9;
|
||||||
|
rtfSectDef = 0;
|
||||||
|
rtfNoBreak = 1;
|
||||||
|
rtfColBreak = 2;
|
||||||
|
rtfPageBreak = 3;
|
||||||
|
rtfEvenBreak = 4;
|
||||||
|
rtfOddBreak = 5;
|
||||||
|
rtfPageStarts = 6;
|
||||||
|
rtfPageCont = 7;
|
||||||
|
rtfPageRestart = 8;
|
||||||
|
rtfPageDecimal = 9;
|
||||||
|
rtfPageURoman = 10;
|
||||||
|
rtfPageLRoman = 11;
|
||||||
|
rtfPageULetter = 12;
|
||||||
|
rtfPageLLetter = 13;
|
||||||
|
rtfPageNumLeft = 14;
|
||||||
|
rtfPageNumTop = 15;
|
||||||
|
rtfHeaderY = 16;
|
||||||
|
rtfFooterY = 17;
|
||||||
|
rtfLineModulus = 18;
|
||||||
|
rtfLineDist = 19;
|
||||||
|
rtfLineStarts = 20;
|
||||||
|
rtfLineRestart = 21;
|
||||||
|
rtfLineRestartPg = 22;
|
||||||
|
rtfLineCont = 23;
|
||||||
|
rtfTopVAlign = 24;
|
||||||
|
rtfBottomVAlign = 25;
|
||||||
|
rtfCenterVAlign = 26;
|
||||||
|
rtfJustVAlign = 27;
|
||||||
|
rtfColumns = 28;
|
||||||
|
rtfColumnSpace = 29;
|
||||||
|
rtfColumnLine = 30;
|
||||||
|
rtfENoteHere = 31;
|
||||||
|
rtfTitleSpecial = 32;
|
||||||
|
|
||||||
|
rtfTblAttr = 10;
|
||||||
|
rtfCellBordBottom = 0;
|
||||||
|
rtfCellBordTop = 1;
|
||||||
|
rtfCellBordLeft = 2;
|
||||||
|
rtfCellBordRight = 3;
|
||||||
|
rtfRowDef = 4;
|
||||||
|
rtfRowLeft = 5;
|
||||||
|
rtfRowRight = 6;
|
||||||
|
rtfRowCenter = 7;
|
||||||
|
rtfRowGapH = 8;
|
||||||
|
rtfRowHt = 9;
|
||||||
|
rtfRowLeftEdge = 10;
|
||||||
|
rtfCellPos = 11;
|
||||||
|
rtfMergeRngFirst = 12;
|
||||||
|
rtfMergePrevious = 13;
|
||||||
|
|
||||||
|
rtfParAttr = 11;
|
||||||
|
rtfParDef = 0;
|
||||||
|
rtfStyleNum = 1;
|
||||||
|
rtfQuadLeft = 2;
|
||||||
|
rtfQuadRight = 3;
|
||||||
|
rtfQuadJust = 4;
|
||||||
|
rtfQuadCenter = 5;
|
||||||
|
rtfFirstIndent = 6;
|
||||||
|
rtfLeftIndent = 7;
|
||||||
|
rtfRightIndent = 8;
|
||||||
|
rtfSpaceBefore = 9;
|
||||||
|
rtfSpaceAfter = 10;
|
||||||
|
rtfSpaceBetween = 11;
|
||||||
|
rtfInTable = 12;
|
||||||
|
rtfKeep = 13;
|
||||||
|
rtfKeepNext = 14;
|
||||||
|
rtfSideBySide = 15;
|
||||||
|
rtfPBBefore = 16;
|
||||||
|
rtfNoLineNum = 17;
|
||||||
|
rtfTabPos = 18;
|
||||||
|
rtfTabRight = 19;
|
||||||
|
rtfTabCenter = 20;
|
||||||
|
rtfTabDecimal = 21;
|
||||||
|
rtfTabBar = 22;
|
||||||
|
rtfBorderTop = 23;
|
||||||
|
rtfBorderBottom = 24;
|
||||||
|
rtfBorderLeft = 25;
|
||||||
|
rtfBorderRight = 26;
|
||||||
|
rtfBorderBox = 27;
|
||||||
|
rtfBorderBar = 28;
|
||||||
|
rtfBorderBetween = 29;
|
||||||
|
rtfBorderSingle = 30;
|
||||||
|
rtfBorderThick = 31;
|
||||||
|
rtfBorderShadow = 32;
|
||||||
|
rtfBorderDouble = 33;
|
||||||
|
rtfBorderDot = 34;
|
||||||
|
rtfBorderHair = 35;
|
||||||
|
rtfBorderSpace = 36;
|
||||||
|
rtfLeaderDot = 37;
|
||||||
|
rtfLeaderHyphen = 38;
|
||||||
|
rtfLeaderUnder = 39;
|
||||||
|
rtfLeaderThick = 40;
|
||||||
|
|
||||||
|
rtfCharAttr = 12;
|
||||||
|
rtfPlain = 0;
|
||||||
|
rtfBold = 1;
|
||||||
|
rtfItalic = 2;
|
||||||
|
rtfStrikeThru = 3;
|
||||||
|
rtfOutline = 4;
|
||||||
|
rtfShadow = 5;
|
||||||
|
rtfSmallCaps = 6;
|
||||||
|
rtfAllCaps = 7;
|
||||||
|
rtfInvisible = 8;
|
||||||
|
rtfFontNum = 9;
|
||||||
|
rtfFontSize = 10;
|
||||||
|
rtfExpand = 11;
|
||||||
|
rtfUnderline = 12;
|
||||||
|
rtfWUnderline = 13;
|
||||||
|
rtfDUnderline = 14;
|
||||||
|
rtfDbUnderline = 15;
|
||||||
|
rtfNoUnderline = 16;
|
||||||
|
rtfSuperScript = 17;
|
||||||
|
rtfSubScript = 18;
|
||||||
|
rtfRevised = 19;
|
||||||
|
rtfForeColor = 20;
|
||||||
|
rtfBackColor = 21;
|
||||||
|
rtfGray = 22;
|
||||||
|
|
||||||
|
rtfPictAttr = 13;
|
||||||
|
rtfMacQD = 0;
|
||||||
|
rtfWinMetafile = 1;
|
||||||
|
rtfWinBitmap = 2;
|
||||||
|
rtfPicWid = 3;
|
||||||
|
rtfPicHt = 4;
|
||||||
|
rtfPicGoalWid = 5;
|
||||||
|
rtfPicGoalHt = 6;
|
||||||
|
rtfPicScaleX = 7;
|
||||||
|
rtfPicScaleY = 8;
|
||||||
|
rtfPicScaled = 9;
|
||||||
|
rtfPicCropTop = 10;
|
||||||
|
rtfPicCropBottom = 11;
|
||||||
|
rtfPicCropLeft = 12;
|
||||||
|
rtfPicCropRight = 13;
|
||||||
|
rtfPixelBits = 14;
|
||||||
|
rtfBitmapPlanes = 15;
|
||||||
|
rtfBitmapWid = 16;
|
||||||
|
rtfPicBinary = 17;
|
||||||
|
|
||||||
|
rtfNeXTGrAttr = 14;
|
||||||
|
rtfNeXTGWidth = 0;
|
||||||
|
rtfNeXTGHeight = 1;
|
||||||
|
|
||||||
|
rtfFieldAttr = 15;
|
||||||
|
rtfFieldDirty = 0;
|
||||||
|
rtfFieldEdited = 1;
|
||||||
|
rtfFieldLocked = 2;
|
||||||
|
rtfFieldPrivate = 3;
|
||||||
|
|
||||||
|
rtfTOCAttr = 16;
|
||||||
|
rtfTOCType = 0;
|
||||||
|
rtfTOCLevel = 1;
|
||||||
|
|
||||||
|
rtfPosAttr = 17;
|
||||||
|
rtfPosX = 0;
|
||||||
|
rtfPosXCenter = 1;
|
||||||
|
rtfPosXInside = 2;
|
||||||
|
rtfPosXLeft = 3;
|
||||||
|
rtfPosXOutSide = 4;
|
||||||
|
rtfPosXRight = 5;
|
||||||
|
rtfPosY = 6;
|
||||||
|
rtfPosYInline = 7;
|
||||||
|
rtfPosYTop = 8;
|
||||||
|
rtfPosYCenter = 9;
|
||||||
|
rtfPosYBottom = 10;
|
||||||
|
rtfAbsWid = 11;
|
||||||
|
rtfTextDist = 12;
|
||||||
|
rtfRPosMargV = 13;
|
||||||
|
rtfRPosPageV = 14;
|
||||||
|
rtfRPosMargH = 15;
|
||||||
|
rtfRPosPageH = 16;
|
||||||
|
rtfRPosColH = 17;
|
||||||
|
|
||||||
|
rtfBasedOnNone = 222; { "no based-on style" }
|
||||||
|
|
||||||
|
|
||||||
|
Type
|
||||||
|
|
||||||
|
{ ---------------------------------------------------------------------
|
||||||
|
Callback Types
|
||||||
|
---------------------------------------------------------------------}
|
||||||
|
|
||||||
|
TRTFFunc = Procedure of object;
|
||||||
|
TRTFFuncPtr = procedure of object;
|
||||||
|
|
||||||
|
{ ---------------------------------------------------------------------
|
||||||
|
RTF font, color and style structures. Used for font table,
|
||||||
|
color table, and stylesheet processing.
|
||||||
|
---------------------------------------------------------------------}
|
||||||
|
|
||||||
|
PRTFFONT = ^TRTFFONT;
|
||||||
|
TRTFFont = Record
|
||||||
|
rtfFName : string; { font name }
|
||||||
|
rtfFNum : integer; { font number }
|
||||||
|
rtfFFamily : integer; { font family }
|
||||||
|
rtfNextFont : PRTFFONT; { next font in list }
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
{ ----------------------------------------------------------------------
|
||||||
|
Color values are -1 if the default color for the the color
|
||||||
|
number should be used. The default color is writer-dependent.
|
||||||
|
----------------------------------------------------------------------}
|
||||||
|
|
||||||
|
PRTFColor = ^TRTFColor;
|
||||||
|
TRTFColor = Record
|
||||||
|
rtfCNum : integer; { color number }
|
||||||
|
rtfCRed : INteger; { red value }
|
||||||
|
rtfCGreen : INteger; { green value }
|
||||||
|
rtfCBlue : integer; { blue value }
|
||||||
|
rtfNextColor : PRTFColor; { next color in list }
|
||||||
|
end;
|
||||||
|
|
||||||
|
PRTFStyleElt = ^TRTFStyleElt;
|
||||||
|
TRTFStyleElt = record
|
||||||
|
rtfSEClass, { token class }
|
||||||
|
rtfSEMajor, { token major number }
|
||||||
|
rtfSEMinor, { token minor number }
|
||||||
|
rtfSEParam : Integer; { control symbol parameter }
|
||||||
|
rtfSEText : String; { text of symbol }
|
||||||
|
rtfNextSE : PRTFStyleElt; { next element in style }
|
||||||
|
end;
|
||||||
|
|
||||||
|
PRTFSTyle = ^TRTFStyle;
|
||||||
|
TRTFStyle = record
|
||||||
|
rtfSName : string; { style name }
|
||||||
|
rtfSNum, { style number }
|
||||||
|
rtfSBasedOn, { style this one's based on }
|
||||||
|
rtfSNextPar : integer; { style next paragraph style }
|
||||||
|
rtfSSEList : PRTFStyleElt; { list of style words }
|
||||||
|
rtfExpanding : Integer; { non-zero = being expanded }
|
||||||
|
rtfNextStyle : PRTFStyle; { next style in style list }
|
||||||
|
end;
|
||||||
|
|
||||||
|
{ ---------------------------------------------------------------------
|
||||||
|
Control symbol lookup routines
|
||||||
|
---------------------------------------------------------------------}
|
||||||
|
|
||||||
|
|
||||||
|
Type
|
||||||
|
TRTFKey = record
|
||||||
|
rtfKMajor : Integer; { major number }
|
||||||
|
rtfKMinor : Integer; { minor number }
|
||||||
|
rtfKStr : string[20]; { symbol name }
|
||||||
|
rtfKHash : Integer; { symbol name hash value }
|
||||||
|
End;
|
||||||
|
|
||||||
|
{ ---------------------------------------------------------------------
|
||||||
|
A minor number of -1 means the token has no minor number
|
||||||
|
(all valid minor numbers are >= 0).
|
||||||
|
---------------------------------------------------------------------}
|
||||||
|
|
||||||
|
Const rtfKey : Array [0..281] of TRTFKey =
|
||||||
|
(
|
||||||
|
( rtfKMajor: RTFSPECIALCHAR; rtfKMinor : rtfCURHEADPICT; rtfKStr : 'chpict'; rtfKhash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfCurHeadDate; rtfKstr : 'chdate'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfCurHeadTime; rtfKstr : 'chtime'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfCurHeadPage; rtfKstr : 'chpgn'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfCurFNote; rtfKstr : 'chftn'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfCurAnnotRef; rtfKstr : 'chatn'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfFNoteSep; rtfKstr : 'chftnsep'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfFNoteCont; rtfKstr : 'chftnsepc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfFormula; rtfKstr : '|'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfNoBrkSpace; rtfKstr : '~'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfNoReqHyphen; rtfKstr : '-'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfNoBrkHyphen; rtfKstr : '_'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfCell; rtfKstr : 'cell'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfRow; rtfKstr : 'row'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfPar; rtfKstr : 'par'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfPar; rtfKstr : #10; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfPar; rtfKstr : #13; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfSect; rtfKstr : 'sect'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfPage; rtfKstr : 'page'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfColumn; rtfKstr : 'column'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfLine; rtfKstr : 'line'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfTab; rtfKstr : 'tab'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfOptDest; rtfKstr : '*'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIIntVersion; rtfKstr : 'vern'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfICreateTime; rtfKstr : 'creatim'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIRevisionTime; rtfKstr : 'revtim'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIPrintTime; rtfKstr : 'printim'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIBackupTime; rtfKstr : 'buptim'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIEditTime; rtfKstr : 'edmins'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIYear; rtfKstr : 'yr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIMonth; rtfKstr : 'mo'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIDay; rtfKstr : 'dy'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIHour; rtfKstr : 'hr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIMinute; rtfKstr : 'min'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfINPages; rtfKstr : 'nofpages'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfINWords; rtfKstr : 'nofwords'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfINChars; rtfKstr : 'nofchars'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSpecialChar; rtfKMinor: rtfIIntID; rtfKstr : 'id'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfPlain; rtfKstr : 'plain'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfBold; rtfKstr : 'b'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfItalic; rtfKstr : 'i'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfStrikeThru; rtfKstr : 'strike'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfOutline; rtfKstr : 'outl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfShadow; rtfKstr : 'shad'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfSmallCaps; rtfKstr : 'scaps'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfAllCaps; rtfKstr : 'caps'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfInvisible; rtfKstr : 'v'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfFontNum; rtfKstr : 'f'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfFontSize; rtfKstr : 'fs'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfExpand; rtfKstr : 'expnd'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfUnderline; rtfKstr : 'ul'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfWUnderline; rtfKstr : 'ulw'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfDUnderline; rtfKstr : 'uld'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfDbUnderline; rtfKstr : 'uldb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfNoUnderline; rtfKstr : 'ulnone'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfSuperScript; rtfKstr : 'up'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfSubScript; rtfKstr : 'dn'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfRevised; rtfKstr : 'revised'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfForeColor; rtfKstr : 'cf'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfBackColor; rtfKstr : 'cb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharAttr; rtfKMinor: rtfGray; rtfKstr : 'gray'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfParDef; rtfKstr : 'pard'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfStyleNum; rtfKstr : 's'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfQuadLeft; rtfKstr : 'ql'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfQuadRight; rtfKstr : 'qr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfQuadJust; rtfKstr : 'qj'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfQuadCenter; rtfKstr : 'qc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfFirstIndent; rtfKstr : 'fi'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfLeftIndent; rtfKstr : 'li'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfRightIndent; rtfKstr : 'ri'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfSpaceBefore; rtfKstr : 'sb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfSpaceAfter; rtfKstr : 'sa'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfSpaceBetween; rtfKstr : 'sl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfInTable; rtfKstr : 'intbl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfKeep; rtfKstr : 'keep'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfKeepNext; rtfKstr : 'keepn'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfSideBySide; rtfKstr : 'sbys'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfPBBefore; rtfKstr : 'pagebb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfNoLineNum; rtfKstr : 'noline'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfTabPos; rtfKstr : 'tx'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfTabRight; rtfKstr : 'tqr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfTabCenter; rtfKstr : 'tqc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfTabDecimal; rtfKstr : 'tqdec'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfTabBar; rtfKstr : 'tb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderTop; rtfKstr : 'brdrt'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderBottom; rtfKstr : 'brdrb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderLeft; rtfKstr : 'brdrl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderRight; rtfKstr : 'brdrr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderBar; rtfKstr : 'bar'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderBox; rtfKstr : 'box'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderBetween; rtfKstr : 'brdrbtw'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderSingle; rtfKstr : 'brdrs'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderThick; rtfKstr : 'brdrth'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderShadow; rtfKstr : 'brdrsh'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderDouble; rtfKstr : 'brdrdb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderDot; rtfKstr : 'brdrdot'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderHair; rtfKstr : 'brdrhair'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfLeaderDot; rtfKstr : 'tldot'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfLeaderHyphen; rtfKstr : 'tlhyph'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfLeaderUnder; rtfKstr : 'tlul'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfLeaderThick; rtfKstr : 'tlth'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfParAttr; rtfKMinor: rtfBorderSpace; rtfKstr : 'brsp'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfSectDef; rtfKstr : 'sectd'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfNoBreak; rtfKstr : 'sbknone'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfColBreak; rtfKstr : 'sbkcol'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageBreak; rtfKstr : 'sbkpage'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfEvenBreak; rtfKstr : 'sbkeven'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfOddBreak; rtfKstr : 'sbkodd'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageCont; rtfKstr : 'pgncont'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageStarts; rtfKstr : 'pgnstarts'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageRestart; rtfKstr : 'pgnrestart'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageDecimal; rtfKstr : 'pgndec'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageURoman; rtfKstr : 'pgnucrm'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageLRoman; rtfKstr : 'pgnlcrm'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageULetter; rtfKstr : 'pgnucltr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageLLetter; rtfKstr : 'pgnlcltr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageNumLeft; rtfKstr : 'pgnx'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfPageNumTop; rtfKstr : 'pgny'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfHeaderY; rtfKstr : 'headery'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfFooterY; rtfKstr : 'footery'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfLineModulus; rtfKstr : 'linemod'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfLineDist; rtfKstr : 'linex'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfLineStarts; rtfKstr : 'linestarts'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfLineRestart; rtfKstr : 'linerestart'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfLineRestartPg; rtfKstr : 'lineppage'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfLineCont; rtfKstr : 'linecont'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfTopVAlign; rtfKstr : 'vertalt'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfBottomVAlign; rtfKstr : 'vertal'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfCenterVAlign; rtfKstr : 'vertalc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfJustVAlign; rtfKstr : 'vertalj'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfColumns; rtfKstr : 'cols'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfColumnSpace; rtfKstr : 'colsx'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfColumnLine; rtfKstr : 'linebetcol'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfENoteHere; rtfKstr : 'endnhere'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfSectAttr; rtfKMinor: rtfTitleSpecial; rtfKstr : 'titlepg'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfPaperWidth; rtfKstr : 'paperw'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfPaperHeight; rtfKstr : 'paperh'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfLeftMargin; rtfKstr : 'margl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfRightMargin; rtfKstr : 'margr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfTopMargin; rtfKstr : 'margt'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfBottomMargin; rtfKstr : 'margb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFacingPage; rtfKstr : 'facingp'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfGutterWid; rtfKstr : 'gutter'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfDefTab; rtfKstr : 'deftab'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfWidowCtrl; rtfKstr : 'widowctrl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfHyphHotZone; rtfKstr : 'hyphhotz'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFNoteEndSect; rtfKstr : 'endnotes'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFNoteEndDoc; rtfKstr : 'enddoc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFNoteBottom; rtfKstr : 'ftnbj'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFNoteText; rtfKstr : 'ftntj'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFNoteStart; rtfKstr : 'ftnstart'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFNoteRestart; rtfKstr : 'ftnrestart'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfPageStart; rtfKstr : 'pgnstart'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfLineStart; rtfKstr : 'linestart'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfLandscape; rtfKstr : 'landscape'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfFracWidth; rtfKstr : 'fracwidth'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfNextFile; rtfKstr : 'nextfile'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfTemplate; rtfKstr : 'template'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfMakeBackup; rtfKstr : 'makeback'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfRTFDefault; rtfKstr : 'defformat'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfRevisions; rtfKstr : 'revisions'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfMirrorMargin; rtfKstr : 'margmirror'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfRevDisplay; rtfKstr : 'revprop'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDocAttr; rtfKMinor: rtfRevBar; rtfKstr : 'revbar'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfStyleAttr; rtfKMinor: rtfBasedOn; rtfKstr : 'sbasedon'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfStyleAttr; rtfKMinor: rtfNext; rtfKstr : 'snext'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfMacQD; rtfKstr : 'macpict'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfWinMetafile; rtfKstr : 'wmetafile'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfWinBitmap; rtfKstr : 'wbitmap'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicWid; rtfKstr : 'picw'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicHt; rtfKstr : 'pich'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicGoalWid; rtfKstr : 'picwgoal'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicGoalWid; rtfKstr : 'picwGoal'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicGoalHt; rtfKstr : 'pichgoal'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicGoalHt; rtfKstr : 'pichGoal'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicScaleX; rtfKstr : 'picscalex'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicScaleY; rtfKstr : 'picscaley'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicScaled; rtfKstr : 'picscaled'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicCropTop; rtfKstr : 'piccropt'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicCropBottom; rtfKstr : 'piccropb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicCropLeft; rtfKstr : 'piccropl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicCropRight; rtfKstr : 'piccropr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPixelBits; rtfKstr : 'wbmbitspixel'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfBitmapPlanes; rtfKstr : 'wbmplanes'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfBitmapWid; rtfKstr : 'wbmwidthbytes'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPictAttr; rtfKMinor: rtfPicBinary; rtfKstr : 'bin'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfNeXTGrAttr; rtfKMinor: rtfNeXTGWidth; rtfKstr : 'width'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfNeXTGrAttr; rtfKMinor: rtfNeXTGHeight; rtfKstr : 'height'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfPict; rtfKstr : 'pict'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfNeXTGraphic; rtfKstr : 'NeXTGraphic'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFootnote; rtfKstr : 'footnote'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfHeader; rtfKstr : 'header'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfHeaderLeft; rtfKstr : 'headerl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfHeaderRight; rtfKstr : 'headerr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfHeaderFirst; rtfKstr : 'headerf'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFooter; rtfKstr : 'footer'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFooterLeft; rtfKstr : 'footerl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFooterRight; rtfKstr : 'footerr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFooterFirst; rtfKstr : 'footerf'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFNSep; rtfKstr : 'ftnsep'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFNContSep; rtfKstr : 'ftnsepc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFNContNotice; rtfKstr : 'ftncn'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfInfo; rtfKstr : 'info'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfStyleSheet; rtfKstr : 'stylesheet'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFontTbl; rtfKstr : 'fonttbl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfColorTbl; rtfKstr : 'colortbl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfAnnotation; rtfKstr : 'annotation'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfAnnotID; rtfKstr : 'atnid'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfField; rtfKstr : 'field'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFieldInst; rtfKstr : 'fldinst'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfFieldResult; rtfKstr : 'fldrslt'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIndex; rtfKstr : 'xe'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIndexBold; rtfKstr : 'bxe'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIndexItalic; rtfKstr : 'ixe'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIndexText; rtfKstr : 'txe'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIndexRange; rtfKstr : 'rxe'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfTOC; rtfKstr : 'tc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfBookmarkStart; rtfKstr : 'bkmkstart'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfBookmarkEnd; rtfKstr : 'bkmkend'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfITitle; rtfKstr : 'title'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfISubject; rtfKstr : 'subject'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIAuthor; rtfKstr : 'author'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIOperator; rtfKstr : 'operator'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIKeywords; rtfKstr : 'keywords'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIComment; rtfKstr : 'comment'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIVersion; rtfKstr : 'version'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDestination; rtfKMinor: rtfIDoccomm; rtfKstr : 'doccomm'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfTOCAttr; rtfKMinor: rtfTOCType; rtfKstr : 'tcf'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTOCAttr; rtfKMinor: rtfTOCLevel; rtfKstr : 'tcl'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfFontFamily; rtfKMinor: rtfFFNil; rtfKstr : 'fnil'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFontFamily; rtfKMinor: rtfFFRoman; rtfKstr : 'froman'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFontFamily; rtfKMinor: rtfFFSwiss; rtfKstr : 'fswiss'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFontFamily; rtfKMinor: rtfFFModern; rtfKstr : 'fmodern'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFontFamily; rtfKMinor: rtfFFScript; rtfKstr : 'fscript'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFontFamily; rtfKMinor: rtfFFDecor; rtfKstr : 'fdecor'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFontFamily; rtfKMinor: rtfFFTech; rtfKstr : 'ftech'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfColorName; rtfKMinor: rtfRed; rtfKstr : 'red'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfColorName; rtfKMinor: rtfGreen; rtfKstr : 'green'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfColorName; rtfKMinor: rtfBlue; rtfKstr : 'blue'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfCharSet; rtfKMinor: rtfMacCharSet; rtfKstr : 'mac'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharSet; rtfKMinor: rtfAnsiCharSet; rtfKstr : 'ansi'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharSet; rtfKMinor: rtfPcCharSet; rtfKstr : 'pc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfCharSet; rtfKMinor: rtfPcaCharSet; rtfKstr : 'pca'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfCellBordBottom; rtfKstr : 'clbrdrb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfCellBordTop; rtfKstr : 'clbrdrt'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfCellBordLeft; rtfKstr : 'clbrdrl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfCellBordRight; rtfKstr : 'clbrdrr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfRowDef; rtfKstr : 'trowd'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfRowLeft; rtfKstr : 'trql'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfRowRight; rtfKstr : 'trqr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfRowCenter; rtfKstr : 'trqc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfRowGapH; rtfKstr : 'trgaph'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfRowHt; rtfKstr : 'trrh'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfRowLeftEdge; rtfKstr : 'trleft'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfCellPos; rtfKstr : 'cellx'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfMergeRngFirst; rtfKstr : 'clmgf'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfTblAttr; rtfKMinor: rtfMergePrevious; rtfKstr : 'clmrg'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfFieldAttr; rtfKMinor: rtfFieldDirty; rtfKstr : 'flddirty'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFieldAttr; rtfKMinor: rtfFieldEdited; rtfKstr : 'fldedit'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFieldAttr; rtfKMinor: rtfFieldLocked; rtfKstr : 'fldlock'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfFieldAttr; rtfKMinor: rtfFieldPrivate; rtfKstr : 'fldpriv'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosX; rtfKstr : 'posx'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosXCenter; rtfKstr : 'posxc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosXInside; rtfKstr : 'posxi'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosXLeft; rtfKstr : 'posxl'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosXOutSide; rtfKstr : 'posxo'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosXRight; rtfKstr : 'posxr'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosY; rtfKstr : 'posy'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosYInline; rtfKstr : 'posyil'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosYTop; rtfKstr : 'posyt'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosYCenter; rtfKstr : 'posyc'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfPosYBottom; rtfKstr : 'posyb'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfAbsWid; rtfKstr : 'absw'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfTextDist; rtfKstr : 'dxfrtext'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfRPosMargV; rtfKstr : 'pvmrg'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfRPosPageV; rtfKstr : 'pvpg'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfRPosMargH; rtfKstr : 'phmrg'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfRPosPageH; rtfKstr : 'phpg'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfPosAttr; rtfKMinor: rtfRPosColH; rtfKstr : 'phcol'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: rtfVersion; rtfKMinor: -1; rtfKstr : 'rtf'; rtfkHash : 0),
|
||||||
|
( rtfKMajor: rtfDefFont; rtfKMinor: -1; rtfKstr : 'deff'; rtfkHash : 0),
|
||||||
|
|
||||||
|
( rtfKMajor: 0; rtfKMinor: -1; rtfKstr : ''; rtfkHash : 0)
|
||||||
|
);
|
||||||
|
|
1087
components/rtfview/rtfparspre211.pp
Normal file
1087
components/rtfview/rtfparspre211.pp
Normal file
File diff suppressed because it is too large
Load Diff
15
components/rtfview/rtfview.lrs
Normal file
15
components/rtfview/rtfview.lrs
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
LazarusResources.Add('TRTFVIEW','XPM',[
|
||||||
|
'/* XPM */'#10'static char *graphic[] = {'#10'"24 24 5 1",'#10'". c None",'#10
|
||||||
|
+'", c #000000",'#10'"- c #FFFFFF",'#10'"* c #FFFF00",'#10'"a c #FF0000",'#10
|
||||||
|
+'"........................",'#10'"........................",'#10'"..,,,,,,,,'
|
||||||
|
+',,,,,,,,,,....",'#10'"..,----------------,....",'#10'"..,---,,-,,,,,,,,,-,.'
|
||||||
|
+'...",'#10'"..,---,,-,*******,-,....",'#10'"..,--,-,-,*aaaaa*,-,....",'#10'"'
|
||||||
|
+'..,--,,,-,*aaaaa*,-,....",'#10'"..,-,--,-,*******,-,....",'#10'"..,-,--,-,,'
|
||||||
|
+',,,,,,,-,....",'#10'"..,-----------,a,--,....",'#10'"..,-a-,,,,,,,-,a,--,..'
|
||||||
|
+'..",'#10'"..,-----------,a,--,....",'#10'"..,-a-,,,,,,,-,a,,,,,...",'#10'".'
|
||||||
|
+'.,-----------,a,a,a,,..",'#10'"..,-a-,,,,,--,,a,a,a,,..",'#10'"..,---------'
|
||||||
|
+',a,aaaaaa,..",'#10'"..,-a-,,,,,-,a,aaaaaa,..",'#10'"..,---------,a,aaaaaa,.'
|
||||||
|
+'.",'#10'"..,----------,aaaaaaa,..",'#10'"..,,,,,,,,,,,,,aaaaa,,..",'#10'"..'
|
||||||
|
+'.............,aaaa,...",'#10'"................,,,,....",'#10'".............'
|
||||||
|
+'..........."}'#10
|
||||||
|
]);
|
1180
components/rtfview/rtfview.pas
Normal file
1180
components/rtfview/rtfview.pas
Normal file
File diff suppressed because it is too large
Load Diff
50
components/rtfview/rtfviewpkg.lpk
Normal file
50
components/rtfview/rtfviewpkg.lpk
Normal file
@ -0,0 +1,50 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<CONFIG>
|
||||||
|
<Package Version="2">
|
||||||
|
<Name Value="rtfviewpkg"/>
|
||||||
|
<Author Value="Jesus Reyes Aguilar"/>
|
||||||
|
<CompilerOptions>
|
||||||
|
<Version Value="5"/>
|
||||||
|
<SearchPaths>
|
||||||
|
<UnitOutputDirectory Value="lib/$(TargetCPU)-$(TargetOS)"/>
|
||||||
|
</SearchPaths>
|
||||||
|
<CodeGeneration>
|
||||||
|
<Generate Value="Faster"/>
|
||||||
|
</CodeGeneration>
|
||||||
|
<Other>
|
||||||
|
<CustomOptions Value="-dUsePre211RTFPars"/>
|
||||||
|
<CompilerPath Value="$(CompPath)"/>
|
||||||
|
</Other>
|
||||||
|
</CompilerOptions>
|
||||||
|
<Description Value="TRichView a component to view text in RTF format.
|
||||||
|
"/>
|
||||||
|
<License Value="Lazarus LCL license (Modified LGPL, see rtfview.pas)
|
||||||
|
"/>
|
||||||
|
<Version Minor="5" Release="1"/>
|
||||||
|
<Files Count="1">
|
||||||
|
<Item1>
|
||||||
|
<Filename Value="rtfview.pas"/>
|
||||||
|
<HasRegisterProc Value="True"/>
|
||||||
|
<UnitName Value="RTFView"/>
|
||||||
|
</Item1>
|
||||||
|
</Files>
|
||||||
|
<Type Value="RunAndDesignTime"/>
|
||||||
|
<RequiredPkgs Count="2">
|
||||||
|
<Item1>
|
||||||
|
<PackageName Value="lazrichview"/>
|
||||||
|
<MinVersion Minor="5" Release="2" Build="2" Valid="True"/>
|
||||||
|
</Item1>
|
||||||
|
<Item2>
|
||||||
|
<PackageName Value="FCL"/>
|
||||||
|
<MinVersion Major="1" Valid="True"/>
|
||||||
|
</Item2>
|
||||||
|
</RequiredPkgs>
|
||||||
|
<UsageOptions>
|
||||||
|
<UnitPath Value="$(PkgOutDir)/"/>
|
||||||
|
</UsageOptions>
|
||||||
|
<PublishOptions>
|
||||||
|
<Version Value="2"/>
|
||||||
|
<IgnoreBinaries Value="False"/>
|
||||||
|
</PublishOptions>
|
||||||
|
</Package>
|
||||||
|
</CONFIG>
|
21
components/rtfview/rtfviewpkg.pas
Normal file
21
components/rtfview/rtfviewpkg.pas
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
{ This file was automatically created by Lazarus. Do not edit!
|
||||||
|
This source is only used to compile and install the package.
|
||||||
|
}
|
||||||
|
|
||||||
|
unit rtfviewpkg;
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
RTFView, LazarusPackageIntf;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
procedure Register;
|
||||||
|
begin
|
||||||
|
RegisterUnit('RTFView', @RTFView.Register);
|
||||||
|
end;
|
||||||
|
|
||||||
|
initialization
|
||||||
|
RegisterPackage('rtfviewpkg', @Register);
|
||||||
|
end.
|
BIN
components/rtfview/sample/overview.rtf
Normal file
BIN
components/rtfview/sample/overview.rtf
Normal file
Binary file not shown.
99
components/rtfview/sample/project1.lpi
Normal file
99
components/rtfview/sample/project1.lpi
Normal file
@ -0,0 +1,99 @@
|
|||||||
|
<?xml version="1.0"?>
|
||||||
|
<CONFIG>
|
||||||
|
<ProjectOptions>
|
||||||
|
<PathDelim Value="/"/>
|
||||||
|
<Version Value="5"/>
|
||||||
|
<General>
|
||||||
|
<Flags>
|
||||||
|
<SaveClosedFiles Value="False"/>
|
||||||
|
<SaveOnlyProjectUnits Value="True"/>
|
||||||
|
</Flags>
|
||||||
|
<MainUnit Value="0"/>
|
||||||
|
<IconPath Value="./"/>
|
||||||
|
<TargetFileExt Value=".exe"/>
|
||||||
|
<ActiveEditorIndexAtStart Value="0"/>
|
||||||
|
</General>
|
||||||
|
<VersionInfo>
|
||||||
|
<ProjectVersion Value=""/>
|
||||||
|
</VersionInfo>
|
||||||
|
<PublishOptions>
|
||||||
|
<Version Value="2"/>
|
||||||
|
<IgnoreBinaries Value="False"/>
|
||||||
|
<IncludeFileFilter Value="*.(pas|pp|inc|lfm|lpr|lrs|lpi|lpk|sh|xml)"/>
|
||||||
|
<ExcludeFileFilter Value="*.(bak|ppu|ppw|o|so);*~;backup"/>
|
||||||
|
</PublishOptions>
|
||||||
|
<RunParams>
|
||||||
|
<local>
|
||||||
|
<FormatVersion Value="1"/>
|
||||||
|
<LaunchingApplication PathPlusParams="/usr/X11R6/bin/xterm -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine)"/>
|
||||||
|
</local>
|
||||||
|
</RunParams>
|
||||||
|
<RequiredPackages Count="3">
|
||||||
|
<Item1>
|
||||||
|
<PackageName Value="rtfviewpkg"/>
|
||||||
|
<MinVersion Minor="5" Release="1" Valid="True"/>
|
||||||
|
</Item1>
|
||||||
|
<Item2>
|
||||||
|
<PackageName Value="LCL"/>
|
||||||
|
</Item2>
|
||||||
|
<Item3>
|
||||||
|
<PackageName Value="lazrichview"/>
|
||||||
|
</Item3>
|
||||||
|
</RequiredPackages>
|
||||||
|
<Units Count="2">
|
||||||
|
<Unit0>
|
||||||
|
<Filename Value="project1.lpr"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<UnitName Value="project1"/>
|
||||||
|
<UsageCount Value="37"/>
|
||||||
|
</Unit0>
|
||||||
|
<Unit1>
|
||||||
|
<Filename Value="unit1.pas"/>
|
||||||
|
<ComponentName Value="Form1"/>
|
||||||
|
<IsPartOfProject Value="True"/>
|
||||||
|
<ResourceFilename Value="unit1.lrs"/>
|
||||||
|
<UnitName Value="Unit1"/>
|
||||||
|
<CursorPos X="55" Y="19"/>
|
||||||
|
<TopLine Value="7"/>
|
||||||
|
<EditorIndex Value="0"/>
|
||||||
|
<UsageCount Value="37"/>
|
||||||
|
<Loaded Value="True"/>
|
||||||
|
</Unit1>
|
||||||
|
</Units>
|
||||||
|
</ProjectOptions>
|
||||||
|
<CompilerOptions>
|
||||||
|
<Version Value="5"/>
|
||||||
|
<SearchPaths>
|
||||||
|
<SrcPath Value="$(LazarusDir)/lcl/;$(LazarusDir)/lcl/interfaces/$(LCLWidgetType)/"/>
|
||||||
|
</SearchPaths>
|
||||||
|
<CodeGeneration>
|
||||||
|
<Generate Value="Faster"/>
|
||||||
|
</CodeGeneration>
|
||||||
|
<Other>
|
||||||
|
<CompilerPath Value="$(CompPath)"/>
|
||||||
|
</Other>
|
||||||
|
</CompilerOptions>
|
||||||
|
<Debugging>
|
||||||
|
<Watches Count="5">
|
||||||
|
<Item1>
|
||||||
|
<Expression Value="FieldDef.FDataType"/>
|
||||||
|
<Enabled Value="False"/>
|
||||||
|
</Item1>
|
||||||
|
<Item2>
|
||||||
|
<Expression Value="FieldDef.FSize"/>
|
||||||
|
<Enabled Value="False"/>
|
||||||
|
</Item2>
|
||||||
|
<Item3>
|
||||||
|
<Expression Value="IsSeq"/>
|
||||||
|
<Enabled Value="False"/>
|
||||||
|
</Item3>
|
||||||
|
<Item4>
|
||||||
|
<Expression Value="TIBCURSOR(CURSOR).SQLDA^"/>
|
||||||
|
<Enabled Value="False"/>
|
||||||
|
</Item4>
|
||||||
|
<Item5>
|
||||||
|
<Expression Value="x"/>
|
||||||
|
</Item5>
|
||||||
|
</Watches>
|
||||||
|
</Debugging>
|
||||||
|
</CONFIG>
|
18
components/rtfview/sample/project1.lpr
Normal file
18
components/rtfview/sample/project1.lpr
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
program project1;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
uses
|
||||||
|
{$IFDEF UNIX}{$IFDEF UseCThreads}
|
||||||
|
cthreads,
|
||||||
|
{$ENDIF}{$ENDIF}
|
||||||
|
Interfaces, // this includes the LCL widgetset
|
||||||
|
Forms
|
||||||
|
{ add your units here }, Unit1, rtfviewpkg, lazrichview;
|
||||||
|
|
||||||
|
begin
|
||||||
|
Application.Initialize;
|
||||||
|
Application.CreateForm(TForm1, Form1);
|
||||||
|
Application.Run;
|
||||||
|
end.
|
||||||
|
|
35
components/rtfview/sample/unit1.lfm
Normal file
35
components/rtfview/sample/unit1.lfm
Normal file
@ -0,0 +1,35 @@
|
|||||||
|
object Form1: TForm1
|
||||||
|
Left = 301
|
||||||
|
Height = 401
|
||||||
|
Top = 102
|
||||||
|
Width = 463
|
||||||
|
HorzScrollBar.Page = 462
|
||||||
|
VertScrollBar.Page = 400
|
||||||
|
Caption = 'Form1'
|
||||||
|
object Button2: TButton
|
||||||
|
Left = 10
|
||||||
|
Height = 21
|
||||||
|
Top = 360
|
||||||
|
Width = 75
|
||||||
|
Anchors = [akLeft, akBottom]
|
||||||
|
BorderSpacing.InnerBorder = 4
|
||||||
|
Caption = 'Overview'
|
||||||
|
OnClick = Button2Click
|
||||||
|
TabOrder = 0
|
||||||
|
end
|
||||||
|
object View: TRTFView
|
||||||
|
Left = 10
|
||||||
|
Height = 336
|
||||||
|
Top = 10
|
||||||
|
Width = 443
|
||||||
|
AllowSelection = True
|
||||||
|
Anchors = [akTop, akLeft, akRight, akBottom]
|
||||||
|
DefaultBackColor = clWindow
|
||||||
|
LeftMargin = 5
|
||||||
|
RightMargin = 5
|
||||||
|
TabOrder = 1
|
||||||
|
TabStop = True
|
||||||
|
Tracking = True
|
||||||
|
VScrollVisible = True
|
||||||
|
end
|
||||||
|
end
|
14
components/rtfview/sample/unit1.lrs
Normal file
14
components/rtfview/sample/unit1.lrs
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
{ This is an automatically generated lazarus resource file }
|
||||||
|
|
||||||
|
LazarusResources.Add('TForm1','FORMDATA',[
|
||||||
|
'TPF0'#6'TForm1'#5'Form1'#4'Left'#3'-'#1#6'Height'#3#145#1#3'Top'#2'f'#5'Widt'
|
||||||
|
+'h'#3#207#1#18'HorzScrollBar.Page'#3#206#1#18'VertScrollBar.Page'#3#144#1#7
|
||||||
|
+'Caption'#6#5'Form1'#0#7'TButton'#7'Button2'#4'Left'#2#10#6'Height'#2#21#3'T'
|
||||||
|
+'op'#3'h'#1#5'Width'#2'K'#7'Anchors'#11#6'akLeft'#8'akBottom'#0#25'BorderSpa'
|
||||||
|
+'cing.InnerBorder'#2#4#7'Caption'#6#8'Overview'#7'OnClick'#7#12'Button2Click'
|
||||||
|
+#8'TabOrder'#2#0#0#0#8'TRTFView'#4'View'#4'Left'#2#10#6'Height'#3'P'#1#3'Top'
|
||||||
|
+#2#10#5'Width'#3#187#1#14'AllowSelection'#9#7'Anchors'#11#5'akTop'#6'akLeft'
|
||||||
|
+#7'akRight'#8'akBottom'#0#16'DefaultBackColor'#7#8'clWindow'#10'LeftMargin'#2
|
||||||
|
+#5#11'RightMargin'#2#5#8'TabOrder'#2#1#7'TabStop'#9#8'Tracking'#9#14'VScroll'
|
||||||
|
+'Visible'#9#0#0#0
|
||||||
|
]);
|
40
components/rtfview/sample/unit1.pas
Normal file
40
components/rtfview/sample/unit1.pas
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
unit Unit1;
|
||||||
|
|
||||||
|
{$mode objfpc}{$H+}
|
||||||
|
|
||||||
|
interface
|
||||||
|
|
||||||
|
uses
|
||||||
|
Classes, SysUtils, LResources, Forms, Controls, Graphics, Dialogs, RTFView,
|
||||||
|
Buttons;
|
||||||
|
|
||||||
|
type
|
||||||
|
{ TForm1 }
|
||||||
|
|
||||||
|
TForm1 = class(TForm)
|
||||||
|
Button2: TButton;
|
||||||
|
View: TRTFView;
|
||||||
|
procedure Button2Click(Sender: TObject);
|
||||||
|
private
|
||||||
|
{ private declarations }
|
||||||
|
public
|
||||||
|
{ public declarations }
|
||||||
|
end;
|
||||||
|
|
||||||
|
var
|
||||||
|
Form1: TForm1;
|
||||||
|
|
||||||
|
implementation
|
||||||
|
|
||||||
|
{ TForm1 }
|
||||||
|
|
||||||
|
procedure TForm1.Button2Click(Sender: TObject);
|
||||||
|
begin
|
||||||
|
View.LoadFromFile('overview.rtf');
|
||||||
|
end;
|
||||||
|
|
||||||
|
initialization
|
||||||
|
{$I unit1.lrs}
|
||||||
|
|
||||||
|
end.
|
||||||
|
|
32
components/rtfview/trtfview.xpm
Normal file
32
components/rtfview/trtfview.xpm
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
/* XPM */
|
||||||
|
static char *graphic[] = {
|
||||||
|
"24 24 5 1",
|
||||||
|
". c None",
|
||||||
|
", c #000000",
|
||||||
|
"- c #FFFFFF",
|
||||||
|
"* c #FFFF00",
|
||||||
|
"a c #FF0000",
|
||||||
|
"........................",
|
||||||
|
"........................",
|
||||||
|
"..,,,,,,,,,,,,,,,,,,....",
|
||||||
|
"..,----------------,....",
|
||||||
|
"..,---,,-,,,,,,,,,-,....",
|
||||||
|
"..,---,,-,*******,-,....",
|
||||||
|
"..,--,-,-,*aaaaa*,-,....",
|
||||||
|
"..,--,,,-,*aaaaa*,-,....",
|
||||||
|
"..,-,--,-,*******,-,....",
|
||||||
|
"..,-,--,-,,,,,,,,,-,....",
|
||||||
|
"..,-----------,a,--,....",
|
||||||
|
"..,-a-,,,,,,,-,a,--,....",
|
||||||
|
"..,-----------,a,--,....",
|
||||||
|
"..,-a-,,,,,,,-,a,,,,,...",
|
||||||
|
"..,-----------,a,a,a,,..",
|
||||||
|
"..,-a-,,,,,--,,a,a,a,,..",
|
||||||
|
"..,---------,a,aaaaaa,..",
|
||||||
|
"..,-a-,,,,,-,a,aaaaaa,..",
|
||||||
|
"..,---------,a,aaaaaa,..",
|
||||||
|
"..,----------,aaaaaaa,..",
|
||||||
|
"..,,,,,,,,,,,,,aaaaa,,..",
|
||||||
|
"...............,aaaa,...",
|
||||||
|
"................,,,,....",
|
||||||
|
"........................"}
|
Reference in New Issue
Block a user