Re: paradox support: help needed



On Mon, Oct 20, 2003 at 11:17:01AM -0400, Jody Goldberg wrote:
On Mon, Oct 20, 2003 at 04:12:40PM +0200, Uwe Steinmann wrote:
Hi,

I have written a C library to read and write (still experimental)
paradox files. I thought about writing a plugin for gnumeric but
but stuck. The other plugins helped to get an understanding on how
a plugin must be programmed but have been to different to make me
succeed.

If somebody with more gnumeric experience could assists I will
start a second try. I thought about providing a skeleton or something.

Sure.  I can walk you though it.  Lets do it on the list (if you
don't mind) so that the conversation is available for others.

The xbase plugin is probably your best bet.  Its fairly old, so the
structure is a bit baroque, but it should cover the broad issues of
importing a database file.
Ok, I guess I set up everything to start. I already created a new
plugin directory 'paradox' and copied the files from xbase into it.
Makefile.am, and plugin.xml.in is modified. 

It looks like in the first step I must implement a function
paradox_file_open (GnmFileOpener const *fo, IOContext *io_context,
                 WorkbookView *wb_view, GsfInput *input)

xbase uses gsf to read the file. My library requires an open file
pointer. First problem: how do get a file pointer from the GsfInput
struct?

  Uwe

PS: Do I have to develop the plugin within the gnumeric cvs tree? Or
    is there a way to build it outside the tree?
-- 
  MMK GmbH, Universitaetsstr. 11, 58097 Hagen
  Uwe Steinmann mmk-hagen de
  Tel: +2331 840446    Fax: +2331 843920

Attachment: signature.asc
Description: Digital signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]