1 /* Dia -- an diagram creation/manipulation program
2 * Copyright (C) 1998 Alexander Larsson
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
26 gchar
*name
; /* name of the paper */
27 gfloat tmargin
, bmargin
, lmargin
, rmargin
; /* margin widths in centimeters */
28 gboolean is_portrait
; /* page is in portrait orientation? */
29 gfloat scaling
; /* scaling factor for image on page */
30 gboolean fitto
; /* if we want to use the fitto mode for scaling */
31 gint fitwidth
, fitheight
; /* how many pages in each direction */
33 gfloat width
, height
; /* usable width/height -- calculated from paper type,
34 * margin widths and paper orientation; the real paper
35 * size is width*scaling, height*scaling */
38 /* DiagramData uses PaperInfo as a non-pointer, so we need to know the size */
39 #include <diagramdata.h>
41 int find_paper(const gchar
* name
);
42 int get_default_paper(void);
43 void get_paper_info(PaperInfo
*paper
, int i
, NewDiagramData
*data
);
45 GList
*get_paper_name_list(void);
46 const gchar
*get_paper_name(int i
);
47 gdouble
get_paper_psheight(int i
);
48 gdouble
get_paper_pswidth(int i
);
49 gdouble
get_paper_lmargin(int i
);
50 gdouble
get_paper_rmargin(int i
);
51 gdouble
get_paper_bmargin(int i
);
52 gdouble
get_paper_tmargin(int i
);