/*
* frame.c
*
* libhtml - HTML->X renderer
*
* Copyright (c) 1995-1997, John Kilburg
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
*/
#include "port_before.h"
#include
#ifdef HAVE_STDLIB_H
#include
#endif
#include "port_after.h"
#include "html.h"
#include "ChimeraStack.h"
#define LASTRESORTSIZE 100
typedef struct HTMLFrameInfoP *HTMLFrameInfo;
typedef struct HTMLFrameSetInfoP *HTMLFrameSetInfo;
typedef struct HTMLFrameSizeP *HTMLFrameSize;
struct HTMLFrameSizeP
{
unsigned int size;
};
struct HTMLFrameInfoP
{
HTMLInfo li;
HTMLBox box;
ChimeraStack cs;
ChimeraRequest *wr;
int x, y;
unsigned int width, height;
char *name;
HTMLFrameSetInfo fset;
};
struct HTMLFrameSetInfoP
{
HTMLInfo li;
bool horiz;
GList sizes;
GList frames;
unsigned int other_size;
HTMLFrameSize current_size;
int x, y;
};
static void SetupIFrame _ArgProto((HTMLInfo, HTMLBox));
static void DestroyIFrame _ArgProto((HTMLInfo, HTMLBox));
static GList GetSizes _ArgProto((HTMLInfo, char *, unsigned int));
/* not used
static void FrameRenderAction _ArgProto((void *, ChimeraRender,
ChimeraRequest *, char *));
static HTMLFrameInfo FindNamedFrame _ArgProto((HTMLInfo, char *));
*/
/*
*
*