/*
 *	aegis - project change supervisor
 *	Copyright (C) 2003 Peter Miller;
 *	All rights reserved.
 *
 *	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., 59 Temple Place, Suite 330, Boston, MA 02111, USA.
 *
 * MANIFEST: interface definition for common/page.c
 */

#ifndef COMMON_PAGE_H
#define COMMON_PAGE_H

#include <main.h>

/*
 * These error values are returned by the page_width_set and
 * page_length_set functions.
 */
#define PAGE_SET_ERROR_NONE 0
#define PAGE_SET_ERROR_DUPLICATE -1
#define PAGE_SET_ERROR_RANGE -2

#define DEFAULT_PRINTER_WIDTH 132
#define DEFAULT_PRINTER_LENGTH 66

#define MAX_PAGE_WIDTH 5000

int page_width_set(int columns);
int page_width_get(int);
int page_length_set(int rows);
int page_length_get(int);

#endif /* COMMON_PAGE_H */
