/* 
Copyright (c) 1991-2000 UserLand Software, Inc. 

Permission is hereby granted, free of charge, to any person obtaining a 
copy of this software and associated documentation files (the 
"Software"), to deal in the Software without restriction, including 
without limitation the rights to use, copy, modify, merge, publish, 
distribute, sublicense, and/or sell copies of the Software, and to 
permit persons to whom the Software is furnished to do so, subject to the 
following conditions: 

The above copyright notice and this permission notice shall be 
included in all copies or substantial portions of the Software. 

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS 
OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 
*/ 


#define appletcardopsinclude

#ifndef iowaruntimeinclude

	#include <iowaruntime.h>

#endif

#ifndef ioainclude

	#include <ioa.h>

#endif

#ifndef ioaiconinclude

	#include <ioaicon.h>
	
#endif

#ifndef iowaprefsinclude

	#include <iowaprefs.h>
	
#endif


typedef char cardfontstring [33];

	
extern tydialoginfo appdialoginfo [ctdialogs];
	
	
extern hdlcard currentcard;

boolean cardobjectexists (bigstring);

boolean setcardstring (bigstring, void *);

boolean setcardflag (bigstring, boolean);

boolean setcardtmpbit (bigstring, boolean);

boolean setcardappbit (bigstring, short, boolean);

boolean getcardstring (bigstring, void *);

boolean getcardpassword (bigstring, void *);

boolean getcardflag (bigstring, boolean *);

boolean getcardbit (bigstring);

boolean setcardenable (bigstring, boolean);

boolean setcardpopup (bigstring, bigstring, Handle, short);

boolean setcardpopupfrommenu (bigstring, MenuHandle, short);

boolean setcardpopupfromfolder (bigstring, ptrfilespec, bigstring);

boolean setcardpopupcheckeditem (bigstring, short);

short getcardpopup (bigstring);

boolean getcardpopupstring (bigstring, bigstring);

boolean setradiotext (bigstring, Handle);

boolean setcardtextcolor (bigstring, RGBColor *);

boolean emptycardpassword (bigstring);

boolean setcardpassword (bigstring, void *);

boolean setcardicon (bigstring, short, short, Handle, tyiconclickcallback);

boolean getcardcolorpopup (bigstring, RGBColor *);

boolean setcardcolorpopup (bigstring, RGBColor *);

boolean setcardnumber (bigstring, long);

boolean getcardshort (bigstring, short *);

boolean getcardnumber (bigstring, long *);

short getfontsizepopup (bigstring);

void setfontsizepopup (bigstring, short);

void setfontpopup (bigstring, cardfontstring);

void getfontpopup (bigstring, cardfontstring);

boolean getcardshort (bigstring, short *);

boolean getcardrect (bigstring, Rect *);

boolean setcardrect (bigstring, Rect);

boolean setcarddate (bigstring, tydaterecord);

boolean getcarddate (bigstring, tydaterecord *);

boolean getcardtexthandle (bigstring, Handle *);

boolean setcardtexthandle (bigstring, Handle);

boolean replacecardtexthandle (bigstring, Handle *);

boolean enableallcardobjects (boolean);

void updatecard (void);

void appcarddefaulteventhandler (EventRecord *);
	
void appscriptedmodalcardfilter (EventRecord *);

void appopencardresource (short, tycardeventcallback);

void apprunmodalresource (short, tycardeventcallback);

void appsavedialoginfo (short);

void appcardtofront (hdlcard);