Commit Graph

56 Commits

Author SHA1 Message Date
Chris Young f15f19f788 Convert to UTF-8 before doing length calculations (untested) 2013-01-09 18:41:53 +00:00
Chris Young 7ae27476a7 Re-implement reading the clipboard using CollectionChunk; this removes the need for an initial UTF8 chunk scan and allows the chunks to be collated before sending back to the core. Untested and length calculations ignore charset conversion. 2013-01-08 23:44:13 +00:00
Chris Young 5aae2c3ed0 Fix drag selection 2013-01-08 23:01:57 +00:00
Chris Young d1dabbb0e2 remove gui_copy_to_clipbaord call - this needs fixing 2013-01-08 20:21:16 +00:00
Chris Young 78f3f53622 re-enable ami_drag_selection 2013-01-08 20:15:27 +00:00
Chris Young 5a43a5a1a9 fix typo 2013-01-08 20:07:46 +00:00
Chris Young e408c9ea43 Update copy to new API (untested), pasting needs work, ami_drag_selection needs thought. 2013-01-08 19:58:44 +00:00
Chris Young 41ed8e3da3 Pass UTF-8 text length for conversion 2012-11-10 16:05:48 +00:00
Michael Drake 45736594a1 Get presence of text input cleanly. 2012-08-20 22:03:59 +01:00
Michael Drake 4d6ada8c9a Use selection_get_copy instead of selection_traverse. Note: untested. 2012-08-13 17:42:23 +01:00
Michael Drake d106091d6e Pass font plot style out to front end clipboard append function. 2012-08-13 14:43:04 +01:00
Chris Young 2694a98f81 Remove any forcing of UTF-8 in the clipboard, as internally NetSurf will use the UTF8 chunks now. 2012-08-03 21:04:38 +01:00
Chris Young 3a00eca535 Clear the StopChunks before scanning for the UTF8 chunk, otherwise we risk thinking a CHRS chunk is a UTF8 chunk. 2012-08-03 21:02:29 +01:00
Chris Young 0b0c6a4f6a Support pasting the UTF8 chunk of clipboard IFF FTXT when present, instead of CHRS 2012-08-03 19:19:04 +01:00
Chris Young c4a4126041 Also write a (duplicate) UTF8 chunk, irregardless of the "UTF-8 clipboard" option. We don't support pasting UTF8 chunks yet. 2012-08-03 18:33:49 +01:00
Chris Young ca6be72dff Remove extraneous functionage 2012-08-03 18:28:07 +01:00
Chris Young cc3b9435ea Use core clipboard copy function. ami_selection_to_text() will need fixing as it still needs selection_traverse() 2012-08-03 18:19:54 +01:00
Chris Young 18db6826f1 Move Push- and PopChunk out of the selection_traversal function 2012-08-03 18:15:16 +01:00
Chris Young 307df869c3 fix build
svn path=/trunk/netsurf/; revision=13729
2012-03-26 20:25:10 +00:00
Vincent Sanders 1490b52a6b NetSurf options rework (a=vince r=daniels,jmb)
svn path=/trunk/netsurf/; revision=13548
2012-03-22 09:34:34 +00:00
Chris Young 0410b0d640 Don't break the clipboard when copying 'nothing'.
Don't touch clipboard contents when copying 'nothing'.

svn path=/trunk/netsurf/; revision=13442
2012-02-12 17:56:25 +00:00
Chris Young f3e0dd578e 8*4=32, NOT 24. Copied UTF-8 text will now paste correctly into RA-OWB.
svn path=/trunk/netsurf/; revision=13405
2012-01-15 16:37:36 +00:00
Chris Young 676cb962ce Accept codeset 1 (undefined) as 106 (UTF-8) when pasting from the
clipboard.  This should allow us to at least paste from broken ports of
MorphOS apps.

svn path=/trunk/netsurf/; revision=13404
2012-01-15 15:58:26 +00:00
John Mark Bell f2993e6ed0 content_get_url -> hlcache_handle_get_url, content__get_url -> content_get_url
svn path=/trunk/netsurf/; revision=13236
2011-12-04 14:55:23 +00:00
Chris Young ce37fdb128 Support dragging from global history to hotlist
svn path=/trunk/netsurf/; revision=13219
2011-12-02 13:24:40 +00:00
Michael Drake e52aaecd7a Fix up for nsurl changes. Untested.
svn path=/trunk/netsurf/; revision=12928
2011-10-03 16:41:55 +00:00
Michael Drake ffeb8bc389 Delete some dead frames stuff.
svn path=/trunk/netsurf/; revision=12723
2011-09-05 09:53:54 +00:00
Chris Young 39e5c04da7 Fix warnings
svn path=/trunk/netsurf/; revision=12616
2011-07-23 14:06:13 +00:00
Michael Drake 3651831963 Fix up Amiga front end.
svn path=/trunk/netsurf/; revision=12601
2011-07-13 13:38:38 +00:00
Chris Young dd99b8a461 avoid crash
svn path=/trunk/netsurf/; revision=12481
2011-06-15 17:40:12 +00:00
John Mark Bell e71691bae8 Merge branches/jmb/content-factory to trunk
svn path=/trunk/netsurf/; revision=12283
2011-05-06 20:40:09 +00:00
Chris Young 003f3537c6 Ensure selection drags to NetSurf text boxes are always UTF-8
svn path=/trunk/netsurf/; revision=12263
2011-04-30 11:21:14 +00:00
Chris Young 9f9436bf40 Ensure drags to string gadgets are in local charset
svn path=/trunk/netsurf/; revision=12262
2011-04-30 11:11:34 +00:00
Chris Young ebd0145eaf Convert _from_ UTF-8 and translate the converted string, not the original
svn path=/trunk/netsurf/; revision=12261
2011-04-30 11:05:47 +00:00
Chris Young 7fd6597468 Avoid crash if conversion to local charset fails.
Attempt to convert nbsp to normal spaces when converting to local charset for
clipboard

svn path=/trunk/netsurf/; revision=12260
2011-04-30 10:54:02 +00:00
Chris Young 1518543c22 Fix DSI when drag saving
Allow selection drags to URL and search gadgets

svn path=/trunk/netsurf/; revision=12259
2011-04-29 18:15:20 +00:00
John Mark Bell de688b59e1 Fix text selection
svn path=/trunk/netsurf/; revision=11927
2011-03-06 18:04:13 +00:00
John Mark Bell 86c2948eb4 Fix copying text/plain to clipboard
svn path=/trunk/netsurf/; revision=11636
2011-02-09 20:31:34 +00:00
Chris Young 2d54d7f798 Pass space down to ami_add_to_clipboard
svn path=/trunk/netsurf/; revision=11116
2010-12-20 19:06:57 +00:00
Chris Young 078ff2fd51 Move drag icon stuff to own file; fix warnings
svn path=/trunk/netsurf/; revision=10922
2010-10-30 11:20:53 +00:00
Chris Young 00434615ed Selection drags now use clipboard unit 1 instead of 0. This stops the user's
clipboard being unexpectedly changed.

svn path=/trunk/netsurf/; revision=10905
2010-10-24 18:07:11 +00:00
Chris Young c46e0e6015 Ensure kiosk_mode and frame windows are (a) handled the same wrt menus and (b) not
trying to manipulate non-existant menus

svn path=/trunk/netsurf/; revision=10855
2010-09-28 18:03:03 +00:00
Chris Young acf46e01a8 Allow text selection dragging across (NetSurf) windows. DisplayBeep if it is dropped
somewhere invalid.

svn path=/trunk/netsurf/; revision=10665
2010-07-27 21:41:21 +00:00
Chris Young da25adcdfb ami_easy_clipboard just got easier, and a buffer overrun/memory leak got fixed
svn path=/trunk/netsurf/; revision=10662
2010-07-24 20:18:56 +00:00
Chris Young f7e3254798 Fix menu disable on tab switch and Cut
svn path=/trunk/netsurf/; revision=10661
2010-07-24 19:57:27 +00:00
Chris Young 004aee8281 Amiga: Add "cut" option; make cut/copy/paste menus context sensitive; allow dragging
selections within NetSurf window to text fields (does not work across windows).

todo: switching tabs will reset cut/copy/paste menus to initial state; cut option is
putting something on the clipboard which causes a crash when pasting it back

svn path=/trunk/netsurf/; revision=10660
2010-07-24 16:39:37 +00:00
Chris Young 77aa68dde5 Purge parserutils
svn path=/trunk/netsurf/; revision=10547
2010-05-03 20:49:15 +00:00
Chris Young 5bb5cedec5 Changes required for new-cache
svn path=/trunk/netsurf/; revision=10186
2010-03-28 15:51:05 +00:00
Chris Young 1f90347f9b Missing WITH_NS_SVG #ifdef
svn path=/trunk/netsurf/; revision=7524
2009-05-19 07:30:00 +00:00
Chris Young 6f120338ed Add ability to copy SVGs to the clipboard and save in IFF DR2D format.
svn path=/trunk/netsurf/; revision=7523
2009-05-19 07:23:56 +00:00