Infenro Home SDK Docs Blah

InfernoConverter

Declared in:/boot/home/devel/Inferno-project/Inferno/SDK/Headers/Plugins/InfernoConverter.h
Author: YNOP
Version:beta
Date: Feb 5 2000
Summary:more...




Hook Functions

SaveState()

InfernoConverter()
InfernoConverter(BMessage *init,InfernoCommon *ICommon,InfernoDocument * frominfo = NULL,const BBitmap * flatimage = NULL)

Creates a Converter. If frominfo is valid (not NULL) then the core is expecting your to preform a Export of frominfo. In this case the flattend image will be stored in flatimage for you convenance.

If frominfo is NULL (and thus flatimage is NULL) then we are expecting you to import to a new document and pass it back via Finalize()


~InfernoConverter()
~InfernoConverter()




SaveState()
void SaveState(BMessage *prefs)

Impiment to save off preferances for this converter to be loaded next time.


Finalize()
void Finalize(InfernoDocument * toinfo = NULL)

Tells the core that your finished with the Import/Export code. This is needed so the core knows when to unload your addon becase Converters are run in a seperate thread. If you pass a NULL info back nothign will happend (tipical exporter behavor) if you pass a info value back a new document window will be create with this as its data (tipical importer behavor)

Exporters can pass a info back if they wish. It sorta creates a Filter like effect but on a Document level. As the original will still exist and the Converted new one will then be created. (Verry flexalbe :)



Infenro Home SDK Docs Blah

Generated on 12/27/2001
Copyright © 1999-2001 Inferno Dev Team. All rights reserved.