COMMENT @----------------------------------------------------------------------

	Copyright (c) GeoWorks 1990 -- All Rights Reserved

PROJECT:	PC GEOS
MODULE:		Import
FILE:		import.def

REVISION HISTORY:
	Name	Date		Description
	----	----		-----------
	Tony	2/90		Initial version
	mav	3/90		changed for importer

DESCRIPTION:
	This file contains the description of ...

	$Id: import.def,v 1.1 97/04/04 14:24:26 newdeal Exp $

------------------------------------------------------------------------------@

StartLibrary	import

ImporterClass	class	GenInteractionClass, master

;-----------------------------------------------------------------------------
;		How importing works
;-----------------------------------------------------------------------------

; MSG_IMPORTER_INITIATE_IMPORT initiates the user interface to importing.  
; This is normally sent from an "Import" trigger, which could be in the file 
; menu.  When the user selects import, the application will be sent the 
; message set as the busyMethod (if any) with data so that the application can 
; set the busy cursor during the conversion.  When the file is imported,
; successfully or not, the method is sent again to change the cursor back from
; the busy cursor.  If completed successfully, the method set in 
; importerMethod is set to the application so that the application can query
; the transfer file and them read in the bitmap.  The importer interaction
; is removed as well.  For an example of using the importer, see the GeoDraw
; application and the grobj library.
; 


;-----------------------------------------------------------------------------
;		Methods
;-----------------------------------------------------------------------------

MSG_IMPORTER_INITIATE_IMPORT	message
;
; Initiate importing.  This normally causes a dialog box to come up.
;
; Pass:
;	none
; Return:
;	none

MSG_IMPORTER_SET_OUTPUT	message
;
; Sets the OD for the Importer
;
; Pass:
;	none
; Return:
;	cx:dx - Output Descriptor

MSG_IMPORTER_GET_OUTPUT	message
;
; Returns the OD for the Importer
;
; Pass:
;	none
; Return:
;	cx:dx - Output Descriptor

;-----------------------------------------------------------------------------
;	These are just used internally by the importer.  You shouldn't be
;	sending them -- unless you have a very good reason to...
;

MSG_IMPORTER_BEGIN_IMPORT	message
;
; begin importing
;
; Pass:
;	none
; Return:
;	none

MSG_IMPORTER_VIEW_BITMAP	message
;
; view the bitmap
;
; Pass:
;	none
; Return:
;	none

MSG_IMPORTER_SET_IMPORT_TYPE	message
;
; change type of bitmap to import
;
; Pass:
;	none
; Return:
;	none
;------------
MSG_IMPORTER_FILE_SELECTED	message
;
; Used so the importer can import when user double clicks
;
; Pass:
;	bp - GenFileSelectorEntryFlags
; Return:
;	none
;------------

;-----------------------------------------------------------------------------
;		Constants & Structures
;-----------------------------------------------------------------------------

;-----------------------------------------------------------------------------
;		Instance Data
;-----------------------------------------------------------------------------

    II_local		lptr
    ; Ptr to chunk of instance data local to this library  (whether or not this
    ; is saved to the state file is left up to the whim of the library)

    II_localRevNum	word
    ; Revision # of library having stored info above and/or created generic
    ; objects currently linked into app tree.  Will be useful in allowing
    ; the upgrading of the import lib without having to up the major 
    ; protocol #, thereby requiring apps to be remade

    II_importMethod	word		;method to send to import
    II_busyMethod	word		;method sent to signal busy time
    II_output		optr		;destination for methods sent out

ImporterClass	endc

EndLibrary	import
