Commit graph

35 commits

Author SHA1 Message Date
Gregory John Casamento
f5e6960ecb Update error message to make it more comprensible 2021-09-29 10:56:39 -04:00
Gregory John Casamento
ba6666a760 Temporary fix for issue with RTF parsing crash. Issue #107 2021-06-27 02:43:46 -04:00
fredkiefer
d9134d657f Add code to handle code page 10000 in RTF. 2020-05-29 15:18:37 +02:00
fredkiefer
eae3f9e991 Add proper handling of code pages in RTF parsing. 2020-01-22 16:54:25 +01:00
Sebastian Reitenbach
8b6d21351b Missed in last commit of format string fixes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38570 72102866-910b-0410-8b05-ffd578937521
2015-05-26 17:17:16 +00:00
Fred Kiefer
ef6d4ff0dc * TextConverters/RTF/RTFConsumer.m: Add empty appendImage:
method for RTFConsumer.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@38142 72102866-910b-0410-8b05-ffd578937521
2014-10-31 14:24:16 +00:00
Fred Kiefer
c973c719b5 Rewrite parsing RTF link fields.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37947 72102866-910b-0410-8b05-ffd578937521
2014-06-17 21:06:11 +00:00
Fred Kiefer
b48b73ee82 Add support to parse link fields in RTF. This enables copying of links
in NSTextView.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@37946 72102866-910b-0410-8b05-ffd578937521
2014-06-15 21:38:40 +00:00
Eric Wasylishen
afff99e2b3 * TextConverters/RTF/RTFConsumer.m: Set NSDocumentTypeDocumentAttribute
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@34986 72102866-910b-0410-8b05-ffd578937521
2012-03-23 02:54:54 +00:00
Fred Kiefer
782af1ee89 Fix memory leaks found by static analyser.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32529 72102866-910b-0410-8b05-ffd578937521
2011-03-10 23:03:01 +00:00
Eric Wasylishen
d33f0c0c6a RTF: add support for read/wite of underline and strikethrough attributes
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@32305 72102866-910b-0410-8b05-ffd578937521
2011-02-22 20:59:10 +00:00
Wolfgang Lux
da2407140a Add some support for help links and markers in RTF documents. These
end up as dedicated attachments in attributed strings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31828 72102866-910b-0410-8b05-ffd578937521
2011-01-03 11:48:57 +00:00
Wolfgang Lux
3831a1ef4e Update RTF parser to compile with more recent bison versions.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31825 72102866-910b-0410-8b05-ffd578937521
2011-01-03 08:25:42 +00:00
Wolfgang Lux
9d425f4eea Improve compatibility when reading RTF documents created on other
systems and when writing RTF documents.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29680 72102866-910b-0410-8b05-ffd578937521
2010-02-19 23:53:54 +00:00
Fred Kiefer
4195bb1f3d Better handling of text attachtment. Fixes bug #28464
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29260 72102866-910b-0410-8b05-ffd578937521
2010-01-11 12:32:27 +00:00
Fred Kiefer
8d53fe7507 Set the icon of the file wrapper to the image.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29223 72102866-910b-0410-8b05-ffd578937521
2010-01-06 21:37:47 +00:00
Fred Kiefer
212696a5f8 Try to determine the encoding of the RTF data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@29211 72102866-910b-0410-8b05-ffd578937521
2010-01-05 13:19:24 +00:00
Fred Kiefer
3b51ebf3fe Unify the text converter handling. Plus added a bit of implementation
for the new test block methods.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@28713 72102866-910b-0410-8b05-ffd578937521
2009-09-19 14:55:57 +00:00
Adam Fedor
7afdd32ac1 Revert library license version to 2 until applications can be converted
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@26619 72102866-910b-0410-8b05-ffd578937521
2008-06-10 04:01:49 +00:00
Fred Kiefer
193e31e678 Change all files to use GPL 3 and LGPL 3.
Prepare for next release.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@25536 72102866-910b-0410-8b05-ffd578937521
2007-10-29 21:16:17 +00:00
Nicolas Roard
ac24912641 Reorganized -appendImage: in RTFDConsumer to compile on gcc 2.95
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22916 72102866-910b-0410-8b05-ffd578937521
2006-05-12 15:31:04 +00:00
Nicolas Roard
4306661eda removed unnecessary NSLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22906 72102866-910b-0410-8b05-ffd578937521
2006-05-11 21:14:02 +00:00
Nicolas Roard
2775136fd9 Added RTFD read support
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22905 72102866-910b-0410-8b05-ffd578937521
2006-05-11 21:03:21 +00:00
Adam Fedor
303dd1baf9 Update FSF Address.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@21259 72102866-910b-0410-8b05-ffd578937521
2005-05-26 02:52:46 +00:00
Fred Kiefer
76debd3f89 Added method [RTFConsumer appendString:] with code coming from
GSRTFmangleText(). Use this in GSRTFmangleText() and new function
GSRTFunicode(). Corrected GSRTFmangleText() to convert the input
from NSISOLatin1StringEncoding, as this is what our current RTF
exporter produces.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17224 72102866-910b-0410-8b05-ffd578937521
2003-07-15 22:18:01 +00:00
Alexander Malmberg
e021f7500a Add error recovery. Make more memory-efficient by avoiding autoreleased objects.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16385 72102866-910b-0410-8b05-ffd578937521
2003-04-07 10:02:47 +00:00
Fred Kiefer
0022e44bdd GSRTFcolorfg(), GSRTFcolorbg(), GSRTFlineSpace(),
GSRTFspaceAbove() set the state of the context to changed, so that
new attributes get used.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15999 72102866-910b-0410-8b05-ffd578937521
2003-02-18 18:59:03 +00:00
Alexander Malmberg
e729e8815b Misc. minor rtf-parsing fixes.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15951 72102866-910b-0410-8b05-ffd578937521
2003-02-13 00:16:12 +00:00
Nicola Pero
40de25588a Removed a couple of private methods which were not used anywhere
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15782 72102866-910b-0410-8b05-ffd578937521
2003-01-30 15:36:15 +00:00
Fred Kiefer
541252bb16 In [copyWithZone:] use mutable copy of prargraph style.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15754 72102866-910b-0410-8b05-ffd578937521
2003-01-28 22:39:56 +00:00
Fred Kiefer
3d8be39fa2 GSRTFregisterFont() handle fontnames with and without trailing ';'.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15066 72102866-910b-0410-8b05-ffd578937521
2002-11-24 01:05:58 +00:00
Nicola Pero
37f8a31ba9 If a font can't be found in the usual ways, try as a composite name font
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@14712 72102866-910b-0410-8b05-ffd578937521
2002-10-10 23:52:09 +00:00
Nicola Pero
904597d9d5 Allow the caller to require the generated attributed string to be of a
specific class/subclass


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13839 72102866-910b-0410-8b05-ffd578937521
2002-06-11 14:58:31 +00:00
Nicola Pero
1b24cafa50 Indented
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@13837 72102866-910b-0410-8b05-ffd578937521
2002-06-11 13:57:38 +00:00
Adam Fedor
30d3fd1bc0 Moved text conversion classes to separate bundle
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10755 72102866-910b-0410-8b05-ffd578937521
2001-08-21 14:52:00 +00:00
Renamed from Source/Parsers/attributedStringConsumer.m (Browse further)