/* * $Id: appres.c,v 1.10 2000/08/10 21:02:49 danny Exp $ * * This file is part of Oleo, the GNU spreadsheet. * * Copyright © 1998 by the Free Software Foundation, Inc. * Written by Danny Backx . * * 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., 675 Mass Ave, Cambridge, MA 02139, USA. */ static char rcsid[] = "$Id: appres.c,v 1.10 2000/08/10 21:02:49 danny Exp $"; #include #include #include "appres.h" XtResource resources[] = { { "showVersion", "ShowVersion", XtRInt, sizeof(int), XtOffsetOf(GnuSheetAppres, show_version), XtRImmediate, (XtPointer)3000 }, { "quiet", "Quiet", XtRBoolean, sizeof(Boolean), XtOffsetOf(GnuSheetAppres, quiet), XtRString, False }, { "ignoreInitFile", "IgnoreInitFile", XtRBoolean, sizeof(Boolean), XtOffsetOf(GnuSheetAppres, ignore_init_file), XtRString, False }, { "initFile", "InitFile", XtRString, sizeof(String), XtOffsetOf(GnuSheetAppres, init_file), XtRString, ".oleo" }, { "showUsage", "ShowUsage", XtRBoolean, sizeof(Boolean), XtOffsetOf(GnuSheetAppres, show_usage), XtRString, False }, { "rows", "Rows", XtRInt, sizeof(int), XtOffsetOf(GnuSheetAppres, rows), XtRImmediate, (XtPointer)255 }, { "columns", "Columns", XtRInt, sizeof(int), XtOffsetOf(GnuSheetAppres, columns), XtRImmediate, (XtPointer)255 }, { "columnWidth", "ColumnWidth", XtRInt, sizeof(int), XtOffsetOf(GnuSheetAppres, columnWidth), XtRImmediate, (XtPointer)10 }, { "paper", "Paper", XtRString, sizeof(String), XtOffsetOf(GnuSheetAppres, paper), XtRImmediate, (XtPointer)"a4" }, { "printer", "Printer", XtRString, sizeof(String), XtOffsetOf(GnuSheetAppres, printer), XtRImmediate, (XtPointer)"ps" }, { "program", "Program", XtRString, sizeof(String), XtOffsetOf(GnuSheetAppres, program), XtRImmediate, (XtPointer)"nenscript -2Gr" }, { "defaultPrintTo", "DefaultPrintTo", XtRString, sizeof(String), XtOffsetOf(GnuSheetAppres, defaultPrintTo), XtRImmediate, (XtPointer)"printer" }, }; int num_resources = XtNumber(resources);