1 /* gEDA - GPL Electronic Design Automation
2 * gattrib -- gEDA component and net attribute manipulation using spreadsheet.
3 * Copyright (C) 2003-2010 Stuart D. Brorson.
5 * This program is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program; if not, write to the Free Software
17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111 USA
21 * \brief Functions for variable setting.
23 * Functions for variable setting.
36 /*------------------------------------------------------------------
37 * Gattrib specific includes. Note that include order is important.
38 *------------------------------------------------------------------*/
39 #include <libgeda/libgeda.h> /* geda library fcns */
40 #include "../include/struct.h" /* typdef and struct declarations */
41 #include "../include/prototype.h" /* function prototypes */
42 #include "../include/globals.h"
44 #include "../include/i_vars.h"
46 #ifdef HAVE_LIBDMALLOC
52 /*------------------------------------------------------------------*/
54 * Define the vars we'll use later
55 *------------------------------------------------------------------*/
56 int default_paper_width
= 11000; /*!< width for letter paper (landscape)
57 * \todo Can this be const? */
58 int default_paper_height
= 85000;/*!< height for letter paper (landscape)
59 * \todo Can this be const? */
62 /*------------------------------------------------------------------*/
63 /*! \brief Initialise variables in pr_current
65 * Initialize the variables in pr_current. In practice, this is only
66 * the paper size for the sheet.
67 * \param pr_current pointer to the TOPLEVEL to set paper size in.
69 void i_vars_set(TOPLEVEL
* pr_current
)
71 i_vars_libgeda_set(pr_current
);
73 pr_current
->paper_width
= default_paper_width
;
74 pr_current
->paper_height
= default_paper_height
;