~ubuntu-branches/ubuntu/feisty/elinks/feisty-updates

« back to all changes in this revision

Viewing changes to src/document/html/frames.h

  • Committer: Bazaar Package Importer
  • Author(s): Peter Gervai
  • Date: 2004-01-21 22:13:45 UTC
  • Revision ID: james.westby@ubuntu.com-20040121221345-ju33hai1yhhqt6kn
Tags: upstream-0.9.1
ImportĀ upstreamĀ versionĀ 0.9.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* $Id: frames.h,v 1.35 2003/12/01 14:40:08 pasky Exp $ */
 
2
 
 
3
#ifndef EL__DOCUMENT_HTML_FRAMES_H
 
4
#define EL__DOCUMENT_HTML_FRAMES_H
 
5
 
 
6
struct document_options;
 
7
struct session;
 
8
 
 
9
struct frameset_desc;
 
10
 
 
11
struct frame_desc {
 
12
        struct frameset_desc *subframe;
 
13
 
 
14
        unsigned char *name;
 
15
        unsigned char *url;
 
16
 
 
17
        int line;
 
18
        int width, height;
 
19
};
 
20
 
 
21
struct frameset_desc {
 
22
        int n;
 
23
        int x, y;
 
24
        int width, height;
 
25
 
 
26
        struct frame_desc frame_desc[1]; /* must be last of struct. --Zas */
 
27
};
 
28
 
 
29
struct frameset_param {
 
30
        struct frameset_desc *parent;
 
31
        int x, y;
 
32
        int *width, *height;
 
33
};
 
34
 
 
35
struct frameset_desc *create_frameset(struct frameset_param *fp);
 
36
 
 
37
/* Adds a frame to the @parent frameset. @subframe may be NULL. */
 
38
void
 
39
add_frameset_entry(struct frameset_desc *parent,
 
40
                   struct frameset_desc *subframe,
 
41
                   unsigned char *name, unsigned char *url);
 
42
 
 
43
void format_frames(struct session *ses, struct frameset_desc *fsd, struct document_options *op, int depth);
 
44
 
 
45
#endif