2 * boot.c : Installation and bootstraping routines to
3 * register the psiconv plugin.
5 * Copyright (C) 2000 Frodo Looijaard (frodol@hdds.nl)
7 * This program is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU General Public License as
9 * published by the Free Software Foundation; either version 2 of the
10 * License, or (at your option) any later version.
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU General Public License for more details.
17 * You should have received a copy of the GNU General Public License
18 * along with this program; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301
22 #include <gnumeric-config.h>
24 #include <goffice/goffice.h>
25 #include <gnm-plugin.h>
26 #include "psiconv-plugin.h"
27 #include <workbook-view.h>
32 GNM_PLUGIN_MODULE_HEADER
;
34 gboolean
psiconv_file_probe (GOFileOpener
const *fo
, GsfInput
*input
,
36 void psiconv_file_open (GOFileOpener
const *fo
, GOIOContext
*io_context
,
37 WorkbookView
*wb_view
, GsfInput
*input
);
41 psiconv_file_probe (GOFileOpener
const *fo
, GsfInput
*input
, GOFileProbeLevel pl
)
43 return psiconv_read_header (input
);
47 psiconv_file_open (GOFileOpener
const *fo
, GOIOContext
*io_context
,
48 WorkbookView
*wb_view
, GsfInput
*input
)
50 psiconv_read (io_context
, wb_view_get_workbook(wb_view
), input
);