Commit graph

58 commits

Author SHA1 Message Date
David Chisnall
b4e3915c33 Turn release messages sent to autorelease pools into drain messages. No
functionality change in non-GC mode, in GC mode it invokes a quick GC pass to
try to delete the short-lived objects.

Also deleted some [pool release] lines just before exit() or return-from-main
statements.  These cause objects to be swapped in and destructors to be run to
no benefit (the OS will reclaim this memory without requiring stuff to be
swapped in when the process exits).



git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33146 72102866-910b-0410-8b05-ffd578937521
2011-05-27 12:42:37 +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
9f861c89a5 Extend and modify RTF grammar to handle \NeXTHelpLink and \NeXTHelpMarker
commands possibly used in old documents generated on NeXTstep/OpenStep.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31826 72102866-910b-0410-8b05-ffd578937521
2011-01-03 08:50:17 +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
Fred Kiefer
f2c582b9c3 Fix extra space for Umlaut characters in RTF introduced with last
change.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30277 72102866-910b-0410-8b05-ffd578937521
2010-05-02 09:47:56 +00:00
Fred Kiefer
5359aa0a77 Avoid unneeded space characters in RTF data.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30273 72102866-910b-0410-8b05-ffd578937521
2010-05-01 16:31:03 +00:00
Wolfgang Lux
756db465e4 Fix bug #29633.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@30266 72102866-910b-0410-8b05-ffd578937521
2010-05-01 08:26:01 +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
Riccardo Mottola
9f047d7b8c Always create RTFD as a directory, even in the simple file case.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27679 72102866-910b-0410-8b05-ffd578937521
2009-01-25 10:37:45 +00:00
Nicola Pero
041abd2cdd Removed GNUSTEP_CORE_SOFTWARE=YES from makefiles and instead set PACKAGE_NAME=gnustep-gui
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27347 72102866-910b-0410-8b05-ffd578937521
2008-12-19 13:00:47 +00:00
Nicola Pero
8326c8fb5e Set GNUSTEP_CORE_SOFTWARE to YES so that gnustep-gui is installed by default in SYSTEM if gnustep-make has been configured with --disable-packages
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@27334 72102866-910b-0410-8b05-ffd578937521
2008-12-18 18:45:01 +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
Adam Fedor
3f70810790 * TextConverters/RTF/GNUmakefile.preamble: Add BUNDLE_LIBS.
* Source/NSImage.m: Move documentation from here.
* Header/AppKit/NSImage.h: To here.
* Headers/AppKit/NSImageRep.h, : Add documentation. (patch #5714).


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@24495 72102866-910b-0410-8b05-ffd578937521
2007-02-10 03:45:22 +00:00
Nicolas Roard
f529b9121c Fixed the RTFD generation when the attachments do not have filenames. It is now possible to write RTFD documents with pasted images.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22921 72102866-910b-0410-8b05-ffd578937521
2006-05-12 21:21:41 +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
12989e49e5 fixed writing rtfd documents
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@22907 72102866-910b-0410-8b05-ffd578937521
2006-05-11 23:47:20 +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
b6642a182a Signal hat we don't output an ANSI representation for Unicode characters in RTF.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20565 72102866-910b-0410-8b05-ffd578937521
2005-01-16 15:54:04 +00:00
Alexander Malmberg
bde5299f6d Only add attachmentFileWrapper to the attachments array if it isn't nil.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@19807 72102866-910b-0410-8b05-ffd578937521
2004-08-01 12:33:40 +00:00
David Ayers
b18f1c4ac4 Header reorganization - Please refer to ChangeLog
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17408 72102866-910b-0410-8b05-ffd578937521
2003-07-31 23:52:10 +00:00
Fred Kiefer
3515b8f585 Regenerated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17235 72102866-910b-0410-8b05-ffd578937521
2003-07-16 10:52:47 +00:00
Fred Kiefer
307fb69c5c Free the name for RTFOtherStatement.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17234 72102866-910b-0410-8b05-ffd578937521
2003-07-16 10:52:24 +00:00
Fred Kiefer
ac4bfae392 Regenerated.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17227 72102866-910b-0410-8b05-ffd578937521
2003-07-15 22:19:34 +00:00
Fred Kiefer
79aa58d543 Added rule to read unicode character from RTF input.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17226 72102866-910b-0410-8b05-ffd578937521
2003-07-15 22:18:49 +00:00
Fred Kiefer
e341ca462a Define RTFunichar token.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17225 72102866-910b-0410-8b05-ffd578937521
2003-07-15 22:18:26 +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
Fred Kiefer
2e33809a42 Added function GSRTFunicode().
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@17223 72102866-910b-0410-8b05-ffd578937521
2003-07-15 22:17:37 +00:00
Fred Kiefer
9b1e4f84e1 New implemtation by Axel "Mikesch" Katerbau (axel@objectpark.org)
with small changes from me. RTF output now support much more
attributes and even Unicode characters.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16614 72102866-910b-0410-8b05-ffd578937521
2003-05-02 18:59:38 +00:00
Adam Fedor
0de7e778fe Updates for filesystem change.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16566 72102866-910b-0410-8b05-ffd578937521
2003-04-28 02:33:10 +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
6d62ef1541 [colorTable] corrected the output of the colour table, by using a
C array instead of an NSMutableArray.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@16000 72102866-910b-0410-8b05-ffd578937521
2003-02-18 18:59:29 +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
ce95f8d9c5 Redefined GSRTFlex() without location parameter. Some cleanup
against compiler warnings.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15070 72102866-910b-0410-8b05-ffd578937521
2002-11-24 01:07:31 +00:00
Fred Kiefer
d1526f7497 Regenerated with bision 1.35 and corrected yyparse declaration.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15069 72102866-910b-0410-8b05-ffd578937521
2002-11-24 01:07:08 +00:00
Fred Kiefer
514ee3f927 Regenerated with bision 1.35
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15068 72102866-910b-0410-8b05-ffd578937521
2002-11-24 01:06:46 +00:00
Fred Kiefer
c2846a5d07 Documented how to compile with recent bision releases.
Removed one conflict and an unneeded terminal.
Allow for additional blocks in font definition.


git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@15067 72102866-910b-0410-8b05-ffd578937521
2002-11-24 01:06:26 +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