Tables 2.62 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
/* Copyright 1997 Acorn Computers Ltd
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
/***************************************************/
16 17 18 19
/* File   : Tables.h                               */
/*                                                 */
/* Purpose: Table handling functions.              */
/*                                                 */
20
/* Author : T.Cheal, adapted by A.D.Hodgkinson     */
21
/*                                                 */
22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41
/* History: 18-Mar-97: Datestamp on code received  */
/*                     from T.Cheal.               */
/*          17-Apr-97: Split up; HTMLLib specific  */
/*                     bits are now an exported    */
/*                     header file (tablestruc.h)  */
/*                     for HTMLLib, browser bits   */
/*                     are included here.          */
/***************************************************/

/* Table-related definitions */

#define TABLES_DEFAULT_CELLPADDING 0

/* Function prototypes */

void tables_count_table    (browser_data * b, table_stream * p);
void tables_position_table (browser_data * b, table_stream * p);

void tables_init_table     (browser_data * b, table_stream * table, reformat_cell * cellarray);

42
int  tables_width_table    (int toplevel, browser_data * b, table_stream * p, int ColWidth, reformat_cell * cellarray, unsigned int flags);
43 44 45 46 47 48 49 50
int  tables_width_cell     (int toplevel, browser_data * b, HStream * streambase, table_stream * table, reformat_cell * cellarray, int ColWidth, int Row, int Column);
int  tables_height_table   (int toplevel, browser_data * b, table_stream * p, reformat_cell * cellarray);
int  tables_height_cell    (int toplevel, browser_data * b, HStream * streambase, table_stream * table, reformat_cell * cellarray, int ColWidth, int Row, int Column);

void tables_fix_table      (browser_data * b, table_stream * p, reformat_cell * cellarray);
void tables_fix_cell       (browser_data * b, HStream * streambase, table_stream * table, reformat_cell * cellarray, int x, int y, int Width, int Height, int Row, int Column);

void tables_free_memory    (int toplevel, browser_data * b, reformat_cell * cell, int line);