/* 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. */ /***************************************************/ /* File : Tables.h */ /* */ /* Purpose: Table handling functions. */ /* */ /* Author : T.Cheal, adapted by A.D.Hodgkinson */ /* */ /* 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); int tables_width_table (int toplevel, browser_data * b, table_stream * p, int ColWidth, reformat_cell * cellarray, unsigned int flags); 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);