Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
3584 sourcerer 1
/*
2
 * Copyright 2006 James Bursa 
3
 * Copyright 2006 Adrian Lees 
4
 *
5
 * This file is part of NetSurf, http://www.netsurf-browser.org/
6
 *
7
 * NetSurf is free software; you can redistribute it and/or modify
8
 * it under the terms of the GNU General Public License as published by
9
 * the Free Software Foundation; version 2 of the License.
10
 *
11
 * NetSurf is distributed in the hope that it will be useful,
12
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14
 * GNU General Public License for more details.
15
 *
16
 * You should have received a copy of the GNU General Public License
17
 * along with this program.  If not, see .
18
 */
19
 
20
/** \file
21
 * Content for text/plain (interface).
22
 */
23
 
24
#ifndef _NETSURF_RENDER_TEXTPLAIN_H_
25
#define _NETSURF_RENDER_TEXTPLAIN_H_
26
 
27
#include 
28
#include "desktop/mouse.h"
29
 
30
struct content;
31
struct hlcache_handle;
32
struct http_parameter;
33
struct rect;
34
 
35
nserror textplain_init(void);
36
 
37
/* access to lines for text selection and searching */
38
unsigned long textplain_line_count(struct content *c);
39
size_t textplain_size(struct content *c);
40
 
41
size_t textplain_offset_from_coords(struct content *c, int x, int y, int dir);
42
void textplain_coords_from_range(struct content *c,
43
		unsigned start, unsigned end, struct rect *r);
44
char *textplain_get_line(struct content *c, unsigned lineno,
45
		size_t *poffset, size_t *plen);
46
int textplain_find_line(struct content *c, unsigned offset);
47
char *textplain_get_raw_data(struct content *c,
48
		unsigned start, unsigned end, size_t *plen);
49
struct browser_window *textplain_get_browser_window(struct content *c);
50
void textplain_set_search(struct content *c, struct search_context *s);
51
 
52
#endif