path: root/render/textplain.c
Commit message (Collapse)AuthorAgeFilesLines
* move html and text content handlers where they belongVincent Sanders2018-05-101-1351/+0
* CSS utils: Handle new units in length conversion routines.Michael Drake2018-01-051-1/+1
| | | | | This causes a ripple effect of all the callsites needing information they didn't have.
* Use coccinelle to change logging macro calls in c filesVincent Sanders2017-09-061-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | for F in $(git ls-files '*.c');do spatch --sp-file foo.cocci --in-place ${F};done @@ expression E; @@ -LOG(E); +NSLOG(netsurf, INFO, E); @@ expression E, E1; @@ -LOG(E, E1); +NSLOG(netsurf, INFO, E, E1); @@ expression E, E1, E2; @@ -LOG(E, E1, E2); +NSLOG(netsurf, INFO, E, E1, E2); @@ expression E, E1, E2, E3; @@ -LOG(E, E1, E2, E3); +NSLOG(netsurf, INFO, E, E1, E2, E3); @@ expression E, E1, E2, E3, E4; @@ -LOG(E, E1, E2, E3, E4); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4); @@ expression E, E1, E2, E3, E4, E5; @@ -LOG(E, E1, E2, E3, E4, E5); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5); @@ expression E, E1, E2, E3, E4, E5, E6; @@ -LOG(E, E1, E2, E3, E4, E5, E6); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6); @@ expression E, E1, E2, E3, E4, E5, E6, E7; @@ -LOG(E, E1, E2, E3, E4, E5, E6, E7); +NSLOG(netsurf, INFO, E, E1, E2, E3, E4, E5, E6, E7);
* Plain text content handler: Convert to using content_broadcast_errorcode().Michael Drake2017-08-281-6/+2
* Content API: Make content_broadcast take pointer to content_msg_data.Michael Drake2017-08-261-4/+4
* clean up doccomments and formatting in texplain content handlerVincent Sanders2017-06-011-477/+441
| | | | | | There is an intention to replace the render interface and it will be helpful to reduce the size of the exposed API as much as possible. This is the first step towards that goal.
* Update all core use of plotters to new APIVincent Sanders2017-02-111-7/+14
* move key press enums and operations to their own headerVincent Sanders2016-07-011-4/+4
* Allow include directories to be added by sub makefilesVincent Sanders2016-06-061-1/+1
* Update content to split public and internal APIVincent Sanders2016-06-061-0/+1
* move plotters header into public APIVincent Sanders2016-05-301-1/+1
* move desktop window header into public APIVincent Sanders2016-05-301-1/+1
* move layout header into public APIVincent Sanders2016-05-301-1/+1
* move the CSS content handlerVincent Sanders2016-05-261-2/+1
* fix plain text render regression introduced in layout table changesVincent Sanders2016-04-281-3/+5
* split out the layout glyph sizing and splitting APIVincent Sanders2016-04-231-12/+29
| | | | | This refactors the core "font" sizing API to be handled through gui function tables similar to every other core/frontend calling API.
* Change LOG() macro to be varadicVincent Sanders2015-05-281-2/+2
| | | | | | | | | | | | This changes the LOG macro to be varadic removing the need for all callsites to have double bracketing and allows for future improvement on how we use the logging macros. The callsites were changed with coccinelle and the changes checked by hand. Compile tested for several frontends but not all. A formatting annotation has also been added which allows the compiler to check the parameters and types passed to the logging.
* To avoid namespace conflicts with ncurses add NetSurf key prefix.Witold Filipczyk2015-03-271-4/+4
| | | | Adds a NetSurf key code prefix of NS_ to all key codes.
* cleanup Doxygen warningsVincent Sanders2014-11-121-16/+17
* Put the font operations table alongside all the other core APIVincent Sanders2014-10-131-7/+8
| | | | | | | | | | | | The netsurf core is driven from numerous operation tables most of which are now set through a common netsurf_register() interface. The font and plotting interfaces are currently separate and unlike all the other operation tables are modified for differing contexts. This change moves the font operations alongside all the other operations table and remove unnecessary interaction with the renderers font internals. Further this also removes the need for css internals to be visible in frontends.
* fix plain text rendering line breaking with mutibyte sequences (fixes bug #2134)Vincent Sanders2014-05-291-6/+24
* move page search gui callbacks to their own operations tableVincent Sanders2014-03-181-5/+3
* clean up desktop/gui.h include usageVincent Sanders2014-01-291-1/+0
* Use corestring.Michael Drake2014-01-251-15/+2
* Update for new lpu API.Michael Drake2013-12-141-3/+2
* move options includeVincent Sanders2013-05-281-1/+1
* Remove search context from browser window, simplify search interface for ↵Michael Drake2013-05-071-31/+82
| | | | | | | | | | | | | | | | | | | | | | front ends. Added content interface for search. Removed bw->cur_search search context. Desktop layer now does nothing except pass search requests from front end onto the bw's current_content via the content interface. Search API reduced to a pair of functions at each level: {desktop|content|html|textplain}_search and {desktop|content|html|textplain}_search_clear Updated front ends to use simplified search API. Only tested GTK and RO builds. These confine the search stuff to render/. However search still uses struct selection. The handling for which is still spread over desktop/ and render/. Also the render/search code itself still fiddles inside html and textplain privates.
* A load of refactoring of how content selection and input work.Michael Drake2013-02-221-3/+46
| | | | | | | | | | | | | Keypresses now go via content interface. Contents don't shove the selection object into browser windows any more. Contents report selection existence by sending message. HTML content keeps track of where selections in it exist. Contents report whether they have input focus via caret setting msg. Caret can be hidden (can still input/paste) or removed. Consolidate textarea selection handling. Make textarea report its selection status changes to client. Various textarea fixes. Changed how we decide when to clear selections, and give focus.
* reduce talloc usage to box tree layout onlyVincent Sanders2012-10-031-16/+25
* Don't pass struct box to content open.Michael Drake2012-08-201-4/+2
* Minor style tweaks.Michael Drake2012-08-191-2/+2
* Use content msg system for status text, and don't pass internal status ↵Michael Drake2012-08-191-11/+3
| | | | message as an explict message.
* Use interface to set drag type. Longer term, it would be better to avoid ↵Michael Drake2012-08-181-3/+4
| | | | using bw altogether.
* Set content handlers now set pointer via content msg.Michael Drake2012-08-171-1/+3
* Don't use GUI_POINTERs in content handlers.Michael Drake2012-08-161-2/+2
* Shut up missing text_redrawDaniel Silverstone2012-03-251-0/+1
| | | | svn path=/trunk/netsurf/; revision=13650
* Remove bogus dependencies on box.hJohn Mark Bell2012-03-241-1/+0
| | | | svn path=/trunk/netsurf/; revision=13607
* NetSurf options rework (a=vince r=daniels,jmb)Vincent Sanders2012-03-221-1/+1
| | | | svn path=/trunk/netsurf/; revision=13548
* Allow drag handlers to inform browser window layer of any pointer range ↵Michael Drake2012-01-101-2/+2
| | | | | | constraints. svn path=/trunk/netsurf/; revision=13394
* Virtualise content handler finalisation calls. Remove pointless implementations.John Mark Bell2011-09-151-0/+2
| | | | svn path=/trunk/netsurf/; revision=12797
* Clean up content_factory_register_handler API -- content handlers no longer ↵John Mark Bell2011-09-151-13/+10
| | | | | | use the mime type, so don't require it to be interned up front svn path=/trunk/netsurf/; revision=12796
* Remove mime_type parameter from content handler content_type callback APIJohn Mark Bell2011-09-031-2/+2
| | | | svn path=/trunk/netsurf/; revision=12704
* Core part of search improvement:Michael Drake2011-08-241-5/+43
| | | | | | | | | | + Split up browser window and content related elements of html & text search. + Associate search contexts with contents, rather than browser windows. + Remove highlighting of search terms dependency on current_redraw_browser. + Fixes issues with search contexts being applied to the wrong content. svn path=/trunk/netsurf/; revision=12646
* Selection is now subordinate to html and text content types, and ↵Michael Drake2011-07-261-54/+57
| | | | | | disassociated from browser windows. Note: search currently uses hlcache_handle_get_content() to go from bw to h to get at c for search highlighting via selection. svn path=/trunk/netsurf/; revision=12626
* Fix selection for non-gui browser windows (iframes).Michael Drake2011-07-131-17/+51
| | | | | | | Selection no longer uses current_redraw_browser. Fix long-standing selection bugs on platforms that use action on release behaviour. svn path=/trunk/netsurf/; revision=12598
* Refactor http utilitiesJohn Mark Bell2011-07-081-17/+36
| | | | svn path=/trunk/netsurf/; revision=12595
* Set bw for textplain selection.Michael Drake2011-07-021-0/+2
| | | | svn path=/trunk/netsurf/; revision=12554
* Set/unset selection context's browser window on content_open/content_close.Michael Drake2011-07-011-2/+19
| | | | svn path=/trunk/netsurf/; revision=12551
* Make text/plain contents aware of the browser window they are opened in.Michael Drake2011-06-301-1/+21
| | | | svn path=/trunk/netsurf/; revision=12546
* Remove plotter table global. Pass a redraw context around redraw functions. ↵Michael Drake2011-06-301-5/+8
| | | | | | Knockout could be handled better. Note: untested on most front ends. svn path=/trunk/netsurf/; revision=12543