Commit Graph

45 Commits

Author SHA1 Message Date
John Mark Bell 2565a37a52 Refactor text plotter and other font functions to remove dependency on CSS.
svn path=/trunk/netsurf/; revision=8641
2009-07-21 10:59:53 +00:00
Vincent Sanders 86232d72a6 next round of plotter refactor
svn path=/trunk/netsurf/; revision=8512
2009-07-14 10:03:58 +00:00
Vincent Sanders 680298e61c plotters line refactor
svn path=/trunk/netsurf/; revision=8446
2009-07-10 18:36:49 +00:00
Vincent Sanders f9ecd56f62 ploter refactor of rectangle handling
svn path=/trunk/netsurf/; revision=8399
2009-07-08 22:04:40 +00:00
Vincent Sanders 0ade453958 Refactor fill plotter to take a style
svn path=/trunk/netsurf/; revision=8332
2009-07-05 20:10:17 +00:00
Vincent Sanders 1165edf662 remove redundant clg call
svn path=/trunk/netsurf/; revision=8240
2009-07-01 13:53:06 +00:00
Vincent Sanders aa26843411 Improve bitmap plotter API
svn path=/trunk/netsurf/; revision=8195
2009-06-30 13:02:23 +00:00
John Mark Bell 851da107c9 Purge WITH_PRINT
svn path=/trunk/netsurf/; revision=6601
2009-02-22 15:16:04 +00:00
John Tytgat fbf6d4cd41 - Constify parameters of struct plotter_table::polygon and struct plotter_table::path
- riscos/save_draw.c(ro_save_draw_plotters): Make it static.
- desktop/save_pdf/pdf_plotters.c(pdf_plot_path): fix broken implementation (coordinates path were wrong, no clip/text mode update, transformation matrix was overwritten); only update fill and/or 
stroke color when fill and/or stroke is done.
  (pdf_begin): disable compression when PDF_DEBUG is set

svn path=/trunk/netsurf/; revision=6361
2009-02-03 01:27:54 +00:00
John Tytgat 48070139d8 Prefix all RISC OS print global variables and functions with "ro_" in order to avoid the print_cleanup function name clash in desktop/print.c and
riscos/print.c.

svn path=/trunk/netsurf/; revision=4867
2008-08-02 20:07:44 +00:00
John Tytgat 5685170036 Make the knockout plotter calling behaviour optional by added a new entry
'option_knockout' to 'struct plotter_table' which basically is a request
from that plotter backend for the content redraw routine to get called in
such a way that overlapping render areas are avoided as much as possible.

It is up to the content redraw code to actually implement this
option if it is reasonably profitable.  This was and is currently done
explicitly by the html content redraw code.  On top of that the riscos
plotter code was installing the knockout plotter itself for all content
types except plaintext and SVG and this is no longer being done in this
patch.

In more detail:

- desktop/plotters.h: added struct plotter_table::option_knockout
- render/html_redraw.c(html_redraw): if the plotter backend wants the
knockout calling behaviour, install the knockout plotter which will then
call the real backend.  Also check on the return values of clg and clip
plotter calls.
- Plotter backend changes:
  -> no longer plotting in knockout mode:
     - gtk/gtk_print.c: Also removed a 2nd instance of
       "struct plotter_table plot".
     - riscos/save_draw.c
     - riscos/print.c: Also the path plotter function pointer wasn't
       filled in and this is now fixed.
     - pdf/pdf_plotters.c: Removed the flush function as this is
       optional and we only had a dummy implementation there.
  -> remaining to request knockout mode if it makes sense based on the
     content type:
     - gtk/gtk_plotters.c
     - riscos/plotters.c
     - desktop/knockout.c
- riscos/window.c: Removed what's believed an obsolete test on the
  content type which determined to additionally install the
  knockout plotter in front of the real plotter code.

svn path=/trunk/netsurf/; revision=4823
2008-07-30 19:17:27 +00:00
John Tytgat 203b3289b8 - Include utils/config.h before each WITH_* test entiry enabling/disabling the object file.
- Add same test in corresponding header file (if there is one)
- riscos/uri.c: include riscos/uri.h and have function definitions matching the declarations.
- Disable PDF debug logging.

svn path=/trunk/netsurf/; revision=4769
2008-07-26 23:42:24 +00:00
John Tytgat 5f6c2cbff7 - Compiler warning squash
- Changed a lineending \n\r -> \n for a couple of files.
- More code style conformance.

svn path=/trunk/netsurf/; revision=4762
2008-07-26 22:29:15 +00:00
Rob Kendrick 59641def82 const fixes in plotters and history core
svn path=/trunk/netsurf/; revision=4083
2008-04-07 11:15:09 +00:00
Adrian Lees 2fd567590c Added missing initialiser
svn path=/trunk/netsurf/; revision=4041
2008-03-23 06:05:40 +00:00
Vincent Sanders 2f864eeecc Update all source code file headers to reflect GPL version 2 only and contain appropriate licence text
svn path=/trunk/netsurf/; revision=3486
2007-08-08 16:16:03 +00:00
Daniel Silverstone 6807b4208a Remove the netsurf/ from the include paths and rationalise use of <> vs "" in includes
NetSurf includes are now done with ""s and other system includes with <>s as C intended.
The scandeps tool has been updated to only look for ""ed includes, and to verify that the
files exist in the tree before adding them to the dependency lines. The depend rule has
therefore been augmented to make sure the autogenerated files are built before it is run.

This is untested under self-hosted RISC OS builds. All else tested and works.


svn path=/trunk/netsurf/; revision=3307
2007-05-30 22:39:54 +00:00
Richard Wilson a674848f29 Fix invalid window initialisation
svn path=/trunk/netsurf/; revision=3083
2006-12-01 14:37:21 +00:00
Michael Drake ba23e4b693 Update project URL.
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
Adrian Lees 7aaa33d2e5 Fix for knockout rendering of native formats
svn path=/trunk/netsurf/; revision=2869
2006-08-19 19:31:07 +00:00
Adrian Lees 4b03028b51 [project @ 2006-03-24 03:44:33 by adrianl]
Use thumbnails for iconised windows

svn path=/import/netsurf/; revision=2157
2006-03-24 03:44:37 +00:00
Rob Kendrick 1562dd03cb [project @ 2006-03-19 19:03:07 by rjek]
Implemented unfilled disc plotting and GTK disc plotting

svn path=/import/netsurf/; revision=2136
2006-03-19 19:03:07 +00:00
James Bursa 0eebadfa40 [project @ 2006-03-05 12:24:18 by bursa]
Implement declaring fonts for printing (PostScript).

svn path=/import/netsurf/; revision=2110
2006-03-05 12:24:18 +00:00
James Bursa fc4317b926 [project @ 2006-01-02 13:19:34 by bursa]
Fix comment typo.

svn path=/import/netsurf/; revision=1948
2006-01-02 13:20:01 +00:00
Richard Wilson 62f5ce138a [project @ 2006-01-02 00:37:10 by rjw]
Move print dialog icon definitions.

svn path=/import/netsurf/; revision=1935
2006-01-02 00:37:10 +00:00
Richard Wilson b1fda49441 [project @ 2006-01-02 00:09:11 by rjw]
Fix print dialog

svn path=/import/netsurf/; revision=1933
2006-01-02 00:09:11 +00:00
Richard Wilson d1094d1238 [project @ 2005-12-31 04:40:48 by rjw]
Use new wimp_event system.

svn path=/import/netsurf/; revision=1916
2005-12-31 04:40:49 +00:00
James Bursa 9b78daf135 [project @ 2005-07-02 18:17:51 by bursa]
Rewrite calculation of box minimum and maximum widths to improve layout of many pages. Move calculation of column types and border collapsing to box tree normalising stage, since they are layout independent. Add window height parameter to layout and make <html> and <body> at least window height.

svn path=/import/netsurf/; revision=1777
2005-07-02 18:17:51 +00:00
Adrian Lees 89993a5bf2 [project @ 2005-04-15 05:54:44 by adrianl]
Text selection, page drag scrolling, drag-saving images and a few SaveAs improvements

svn path=/import/netsurf/; revision=1640
2005-04-15 05:54:44 +00:00
James Bursa 2920bca14a [project @ 2005-04-09 09:47:36 by bursa]
Move HTML contents almost fully over to talloc(), simplifying code. Improvements to title attributes, broken forms, cellpadding. Reorder functions in box_construct.c.

svn path=/import/netsurf/; revision=1608
2005-04-09 09:47:37 +00:00
Richard Wilson 610fca368b [project @ 2005-04-07 20:46:22 by rjw]
Update to the way menus are handled. Various GUI bug fixes.

svn path=/import/netsurf/; revision=1603
2005-04-07 20:46:22 +00:00
James Bursa 6ff76b4c3f [project @ 2005-03-08 00:04:57 by bursa]
Temporarily disable declaring fonts. Printing may now work on RO3-4 non-PS only.

svn path=/import/netsurf/; revision=1529
2005-03-08 00:04:57 +00:00
James Bursa 65b5ae0f8f [project @ 2005-02-20 13:19:19 by bursa]
Font rewrite, part 3. Note that Draw export and printing are broken by these changes.

svn path=/import/netsurf/; revision=1519
2005-02-20 13:19:19 +00:00
John Mark Bell 15b83b6cf1 [project @ 2004-11-04 21:13:36 by jmb]
Lose nasty hard-coded strings

svn path=/import/netsurf/; revision=1346
2004-11-04 21:13:36 +00:00
James Bursa 5fd222bd53 [project @ 2004-11-03 23:27:15 by bursa]
Fix printing and improve error handling during printing.

svn path=/import/netsurf/; revision=1341
2004-11-03 23:27:15 +00:00
James Bursa 511d66331f [project @ 2004-10-17 21:16:00 by bursa]
Move to use plotters. Replace html.layout->children with html.layout.

svn path=/import/netsurf/; revision=1318
2004-10-17 21:16:00 +00:00
John Mark Bell b74184c247 [project @ 2004-09-13 23:59:30 by jmb]
Add some #defines

svn path=/import/netsurf/; revision=1276
2004-09-13 23:59:30 +00:00
John Mark Bell 5611d2c739 [project @ 2004-08-19 01:01:31 by jmb]
Add option to force text colour to black when printing

svn path=/import/netsurf/; revision=1245
2004-08-19 01:01:31 +00:00
John Mark Bell 006344401c [project @ 2004-08-15 19:06:23 by jmb]
Rationalise image redraw.
Supply background colour when redrawing contents
Reenable printing of background images
Require Tinct 0.07

svn path=/import/netsurf/; revision=1234
2004-08-15 19:06:24 +00:00
John Tytgat 7d3a242132 [project @ 2004-08-14 12:57:00 by joty]
Using more stddef.h types.

svn path=/import/netsurf/; revision=1230
2004-08-14 12:57:02 +00:00
John Mark Bell 45b241906e [project @ 2004-08-11 21:36:30 by jmb]
Make message handling more robust

svn path=/import/netsurf/; revision=1212
2004-08-11 21:36:30 +00:00
James Bursa bc727dda1c [project @ 2004-08-11 19:02:32 by bursa]
Start work on removing instances and making content types non-shareable. Clean up some #includes.

svn path=/import/netsurf/; revision=1211
2004-08-11 19:02:32 +00:00
John Mark Bell 912d09b1cb [project @ 2004-08-11 16:26:13 by jmb]
Make content_redraw return a bool
Printing of foreground images now uses OS_SpriteOp
Printing of background images disabled
Mega-paranoid SWI result checking in htmlredraw.c
Rearranged GIF data structure slightly - updates to reflect this.
Other stuff I've probably forgotten

svn path=/import/netsurf/; revision=1208
2004-08-11 16:26:13 +00:00
John Mark Bell c682f9a5ea [project @ 2004-08-09 17:04:32 by jmb]
Fix rectangle positioning bug which resulted in garbage printouts.
Break out hard-coded scale factor
Protect against invalid memory access.

svn path=/import/netsurf/; revision=1207
2004-08-09 17:04:32 +00:00
John Mark Bell c992f6252c [project @ 2004-08-09 06:28:56 by jmb]
Printing support.
Some issues remain - see the todo list at the top of print.c for more details

svn path=/import/netsurf/; revision=1199
2004-08-09 06:28:57 +00:00