/* Copyright (C) 1989, 1990 Free Software Foundation, Inc.
Written by James Clark (jjc@jclark.uucp)
This file is part of groff.
groff 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 1, or (at your option) any later
groff 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
You should have received a copy of the GNU General Public License along
with groff; see the file LICENSE. If not, write to the Free Software
Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
virtual void debug_print() = 0;
virtual int compute_metrics(int);
virtual void compute_subscript_kern();
virtual void compute_skew();
virtual list_box
*to_list_box();
virtual int left_is_italic();
virtual int right_is_italic();
virtual void handle_char_type(int, int);
enum { FOUND_NOTHING
= 0, FOUND_MARK
= 1, FOUND_LINEUP
= 2 };
void set_spacing_type(char *type
);
virtual void hint(unsigned);
virtual void check_tabs(int);
void list_check_tabs(int);
void list_debug_print(const char *sep
);
class list_box
: public box
{
int compute_metrics(int);
void compute_subscript_kern();
void handle_char_type(int, int);
void compute_sublist_width(int n
);
friend box
*make_script_box(box
*, box
*, box
*);
friend box
*make_mark_box(box
*);
friend box
*make_lineup_box(box
*);
enum alignment
{ LEFT_ALIGN
, RIGHT_ALIGN
, CENTER_ALIGN
};
class column
: public box_list
{
void set_alignment(alignment
);
void debug_print(const char *);
class pile_box
: public box
{
int compute_metrics(int);
void set_alignment(alignment a
) { col
.set_alignment(a
); }
void set_space(int n
) { col
.set_space(n
); }
void append(box
*p
) { col
.append(p
); }
class matrix_box
: public box
{
int compute_metrics(int);
class pointer_box
: public box
{
int compute_metrics(int);
void compute_subscript_kern();
class vcenter_box
: public pointer_box
{
int compute_metrics(int);
class simple_box
: public box
{
int compute_metrics(int);
void compute_subscript_kern();
class quoted_text_box
: public simple_box
{
class half_space_box
: public simple_box
{
class space_box
: public simple_box
{
class tab_box
: public box
{
class size_box
: public pointer_box
{
int compute_metrics(int);
class font_box
: public pointer_box
{
int compute_metrics(int);
class fat_box
: public pointer_box
{
int compute_metrics(int);
class vmotion_box
: public pointer_box
{
int compute_metrics(int);
class hmotion_box
: public pointer_box
{
int compute_metrics(int);
box
*make_script_box(box
*, box
*, box
*);
box
*make_mark_box(box
*);
box
*make_lineup_box(box
*);
box
*make_delim_box(char *, box
*, char *);
box
*make_sqrt_box(box
*);
box
*make_prime_box(box
*);
box
*make_over_box(box
*, box
*);
box
*make_small_over_box(box
*, box
*);
box
*make_limit_box(box
*, box
*, box
*);
box
*make_accent_box(box
*, box
*);
box
*make_uaccent_box(box
*, box
*);
box
*make_overline_box(box
*);
box
*make_underline_box(box
*);
void set_gfont(const char *);
void set_grfont(const char *);
void set_gbfont(const char *);
const char *get_grfont();
const char *get_gbfont();
void do_text(const char *);
void restore_compatibility();
void set_script_reduction(int n
);
void set_minimum_size(int n
);
void set_param(const char *name
, int value
);
void set_char_type(const char *type
, char *ch
);
void define_extensible(const char *name
, const char *ext
, const char *top
= 0,
const char *mid
= 0, const char *bot
= 0);