Re: Braille plug-in

From: Dom Lachowicz (
Date: Tue Jan 20 2004 - 14:26:19 EST

  • Next message: Hubert Figuiere: "Commit (HEAD): XAP Feature + XOR fix"

    Hi Miguel,

    You probably don't want to use FV_View at all.
    Instead, you'll want to create an exporter subclass
    (IE_Exp), and an importer subclass if you want to
    re-import these files.

    Filetypes (ieft) are just integer numbers. They are
    assigned to IE_Imp and IE_Exp classes when those
    classes register themselves. They are usually used
    like this:

    IEFileType ieft = IE_Exp::fileTypeForSuffix(".txt");


    IEFileType ieft = IE_Imp::fileTypeForContents(buffer,
    pView->load(filename, ieft);

    The special case is:
    (IEFileType)-1 == "unknown file type"

    I have quite a bit of experience with the Imp/Exp
    architecture as well as AbiWord plugins. If you have
    questions or want help, email me or stop bye

    Best wishes,

    --- Miguel Canteras <> wrote:
    > Hi,
    > I want to make a plug-in for AbiWord to convert text
    > files to Braille
    > language. It's the first time I'm playing with the
    > AbiWord code.
    > I have try to make the conversion in FV_View, but is
    > too slow. Now I'm
    > trying to save first the file to a txt file, and do
    > all the
    > transformations directly in the file. After that,
    > you can reload the new
    > file in AbiWord. But I have a problem. Anybody can
    > tell me where are
    > defined the file types that the cmdSaveAs function
    > use as second
    > parameter (int ieft)? And how exactly works the
    > function?
    > And if anybody knows a better place to make that,
    > all ideas are welcome.

    Do you Yahoo!?
    Yahoo! Hotjobs: Enter the "Signing Bonus" Sweepstakes

    This archive was generated by hypermail 2.1.4 : Tue Jan 20 2004 - 14:27:06 EST