//	Zinc Application Framework - TEST.CPP
//	COPYRIGHT (C) 1999.  All Rights Reserved.
//	Zinc Software Incorporated.  Pleasant Grove, Utah  USA

#include <zaf.hpp>

extern "C"
{
void zincForceLinkAll(void)
{
  // Reference a few Zinc objects so that they'll get linked in to the VxWorks
  // image.  This function is referenced (if it is referenced) from usrRoot() in 
  // usrConfig.c.  It is referenced if INCLUDE_ZINC is defined in config.h.

	ZafDataPersistence::DataConstructor ZAF_FARDATA dataConstructorTable[] =
	{
		{ ID_ZAF_BIGNUM_DATA, 		ZafBignumData::className, 		ZafBignumData::Read },
		{ ID_ZAF_BITMAP_DATA, 		ZafBitmapData::className, 		ZafBitmapData::Read },
		{ ID_ZAF_CODE_SET_DATA, 	ZafCodeSetData::className, 		ZafCodeSetData::Read },
		{ ID_ZAF_DATE_DATA, 		ZafDateData::className, 		ZafDateData::Read },
		{ ID_ZAF_ICON_DATA, 		ZafIconData::className, 		ZafIconData::Read },
		{ ID_ZAF_INTEGER_DATA, 		ZafIntegerData::className, 		ZafIntegerData::Read },
		{ ID_ZAF_LANGUAGE_DATA, 	ZafLanguageData::className, 	ZafLanguageData::Read },
		{ ID_ZAF_LOCALE_DATA, 		ZafLocaleData::className, 		ZafLocaleData::Read },
		{ ID_ZAF_MOUSE_DATA, 		ZafMouseData::className, 		ZafMouseData::Read },
		{ ID_ZAF_REAL_DATA, 		ZafRealData::className, 		ZafRealData::Read },
		{ ID_ZAF_SCROLL_DATA, 		ZafScrollData::className, 		ZafScrollData::Read },
		{ ID_ZAF_STRING_DATA, 		ZafStringData::className, 		ZafStringData::Read },
		{ ID_ZAF_TIME_DATA, 		ZafTimeData::className, 		ZafTimeData::Read },
		{ ID_ZAF_UTIME_DATA, 		ZafUTimeData::className, 		ZafUTimeData::Read },
		// --- End-of-array ---
		{ ID_END, 0, 0 }
	};

	ZafObjectPersistence::ObjectConstructor ZAF_FARDATA objectConstructorTable[] =
	{
		// --- Window objects ---
		{ ID_ZAF_BIGNUM, 				ZafBignum::className, 			ZafBignum::Read },
		{ ID_ZAF_BITMAP, 				ZafBitmap::className, 			ZafBitmap::Read },
		{ ID_ZAF_BORDER, 				ZafBorder::className, 			ZafBorder::Read },
		{ ID_ZAF_BUTTON, 				ZafButton::className, 			ZafButton::Read },
		{ ID_ZAF_COMBO_BOX,				ZafComboBox::className,			ZafComboBox::Read },
		{ ID_ZAF_DATE,					ZafDate::className,				ZafDate::Read },
		{ ID_ZAF_FORMATTED_STRING,		ZafFormattedString::className,	ZafFormattedString::Read },
		{ ID_ZAF_GROUP, 				ZafGroup::className, 			ZafGroup::Read },
		{ ID_ZAF_HZ_LIST, 				ZafHzList::className, 			ZafHzList::Read },
		{ ID_ZAF_ICON, 					ZafIcon::className, 			ZafIcon::Read },
		{ ID_ZAF_IMAGE, 				ZafImage::className, 			ZafImage::Read },
		{ ID_ZAF_INTEGER, 				ZafInteger::className, 			ZafInteger::Read },
		{ ID_ZAF_MAXIMIZE_BUTTON, 		ZafMaximizeButton::className, 	ZafMaximizeButton::Read },
		{ ID_ZAF_MINIMIZE_BUTTON, 		ZafMinimizeButton::className, 	ZafMinimizeButton::Read },
		{ ID_ZAF_NOTEBOOK, 				ZafNotebook::className, 		ZafNotebook::Read },
		{ ID_ZAF_POP_UP_ITEM, 			ZafPopUpItem::className, 		ZafPopUpItem::Read },
		{ ID_ZAF_POP_UP_MENU, 			ZafPopUpMenu::className, 		ZafPopUpMenu::Read },
		{ ID_ZAF_PROGRESS_BAR, 			ZafProgressBar::className, 		ZafProgressBar::Read },
		{ ID_ZAF_PROMPT, 				ZafPrompt::className, 			ZafPrompt::Read },
		{ ID_ZAF_PULL_DOWN_ITEM, 		ZafPullDownItem::className, 	ZafPullDownItem::Read },
		{ ID_ZAF_PULL_DOWN_MENU, 		ZafPullDownMenu::className, 	ZafPullDownMenu::Read },
		{ ID_ZAF_REAL, 					ZafReal::className, 			ZafReal::Read },
		{ ID_ZAF_SCROLL_BAR, 			ZafScrollBar::className, 		ZafScrollBar::Read },
		{ ID_ZAF_SPIN_CONTROL,			ZafSpinControl::className,		ZafSpinControl::Read },
		{ ID_ZAF_SPLITTER,			ZafSplitter::className,		ZafSplitter::Read },
		{ ID_ZAF_STATUS_BAR, 			ZafStatusBar::className, 		ZafStatusBar::Read },
		{ ID_ZAF_STRING, 				ZafString::className, 			ZafString::Read },
		{ ID_ZAF_SYSTEM_BUTTON, 		ZafSystemButton::className, 	ZafSystemButton::Read },
		{ ID_ZAF_TABLE, 				ZafTable::className, 			ZafTable::Read },
		{ ID_ZAF_TABLE_HEADER, 			ZafTableHeader::className, 		ZafTableHeader::Read },
		{ ID_ZAF_TABLE_RECORD, 			ZafTableRecord::className, 		ZafTableRecord::Read },
		{ ID_ZAF_TEXT, 					ZafText::className, 			ZafText::Read },
		{ ID_ZAF_TREE_ITEM, 			ZafTreeItem::className, 		ZafTreeItem::Read },
		{ ID_ZAF_TREE_LIST, 			ZafTreeList::className, 		ZafTreeList::Read },
		{ ID_ZAF_TIME, 					ZafTime::className, 			ZafTime::Read },
		{ ID_ZAF_TITLE, 				ZafTitle::className, 			ZafTitle::Read },
		{ ID_ZAF_TOOL_BAR, 				ZafToolBar::className, 			ZafToolBar::Read },
		{ ID_ZAF_UTIME, 				ZafUTime::className, 			ZafUTime::Read },
		{ ID_ZAF_VT_LIST, 				ZafVtList::className, 			ZafVtList::Read },
		{ ID_ZAF_WINDOW, 				ZafWindow::className, 			ZafWindow::Read },
		// --- Dialog windows ---
		{ ID_ZAF_DIALOG_WINDOW,			ZafDialogWindow::className,		ZafDialogWindow::Read },
		{ ID_ZAF_MDI_WINDOW, 			ZafMDIWindow::className, 		ZafMDIWindow::Read },
		{ ID_ZAF_MESSAGE_WINDOW, 		ZafMessageWindow::className, 	ZafMessageWindow::Read },
		{ ID_ZAF_SCROLLED_WINDOW, 		ZafScrolledWindow::className, 	ZafScrolledWindow::Read },
		// --- Geometry management ---
		{ ID_ZAF_GEOMETRY_MANAGER,		ZafGeometryManager::className,	ZafGeometryManager::Read },
		{ ID_ZAF_ATTACHMENT,			ZafAttachment::className,		ZafAttachment::Read },
		{ ID_ZAF_DIMENSION_CONSTRAINT, 	ZafDimensionConstraint::className, ZafDimensionConstraint::Read },
		{ ID_ZAF_RELATIVE_CONSTRAINT, 	ZafRelativeConstraint::className, ZafRelativeConstraint::Read },
		// --- End-of-array ---
		{ ID_END, 0, 0 }
	};
/* START BLOCK COMMENT
**	{
**		ZafHzList hlist(0, 0, 10, 1, 10, 1);
**	}
**	{
**		ZafVtList vlist(0, 0, 10, 1);
**	}
**	  ZafApplication *zapp;
**	  ZafDataPersistence *dprst;
**	  ZafObjectPersistence *oprst;
**	  ZafDisplay *disp;
**	  ZafScreenDisplay *sdisp;
**	  ZafPrinter *prnt;
**	  ZafElement *elmt;
**	  ZafConstraint *cstr;
**	  ZafAttachment *attch;
**	  ZafDimensionConstraint *dim;
**	  ZafRelativeConstraint *rel;
**	  ZafData *dat;
**	  ZafDataRecord *rec;
**	  ZafDataManager *dmngr;
**	  ZafLanguageData *langdat;
**	  ZafLanguageManager *langmngr;
**	  ZafFormatData *fmtdat;
**	  ZafBignumData *bnumdat;
**	  ZafIntegerData *intdat;
**	  ZafRealData *realdat;
**	  ZafStringData *strdat;
**	  ZafMessageData *msgdat;
**	  ZafUTimeData *utimdat;
**	  ZafDateData *datedat;
**	  ZafTimeData *timedat;
**	  ZafI18nData *i18ndat;
**	  ZafCodeSetDataStub *codestub;
**	  ZafCodeSetData *codedat;
**	  ZafLocaleData *locdat;
**	  ZafImageData *imgdat;
**	  ZafBitmapData *bmpdat;
**	  ZafIconData *icodat;
**	  ZafMouseData *msedat;
**	  ZafPaletteData *paldat;
**	  ZafScrollData *scrldat;
**	  ZafDevice *dev;
**	  ZafCursor *cur;
**	  ZafHelpTips *htips;
**	  ZafKeyboard *keybrd;
**	  ZafMouse *mse;
**	  ZafTimer *tim;
**	  ZafPathElement *pathel;
**	  ZafQueueElement *qel;
**	  ZafWindowObject *winobj;
**	  ZafBitmap *bmp;
**	  ZafBorder *brdr;
**	  ZafButton *btn;
**	  ZafIcon *ico;
**	  ZafMaximizeButton *maxbtn;
**	  ZafMinimizeButton *minbtn;
**	  ZafPopUpItem *popitm;
**	  ZafPullDownItem *pllitm;
**	  ZafSystemButton *sysbtn;
**	  ZafTitle *ttl;
**	//  ZafChartStub *chrtstub;
**	//  ZafChart *chrt;
**	  ZafGeometryManager *geomngr;
**	  ZafImage *img;
**	  ZafProgressBar *prgrss;
**	  ZafPrompt *prmpt;
**	  ZafSplitter *split;
**	  ZafString *str;
**	  ZafBignum *bnum;
**	  ZafDate *dte;
**	  ZafFormattedString *fstr;
**	  ZafInteger *intgr;
**	  ZafReal *rl;
**	  ZafTime *tm;
**	  ZafUTime *utm;
**	  ZafWindow *win;
**	  ZafComboBox *cbox;
**	  ZafDialogWindow *dlgwin;
**	  ZafFileDialog *fildlg;
**	  ZafMessageWindow *msgwin;
**	  ZafGroup *grp;
**	  ZafHelpSystem *help;
**	  ZafHzList *hlist;
**	  ZafMDIWindow *mdiwin;
**	  ZafNotebook *ntbk;
**	  ZafPopUpMenu *popmenu;
**	  ZafPullDownMenu *pllmenu;
**	  ZafScrollBar *scrlbar;
**	  ZafScrolledWindow *sclwin;
**	  ZafSpinControl *spin;
**	  ZafStatusBar *stat;
**	  ZafTable *tbl;
**	  ZafTableHeader *tblhdr;
**	  ZafTableRecord *tblrec;
**	  ZafText *txt;
**	  ZafToolBar *tbar;
**	  ZafTreeItem *tritm;
**	  ZafTreeList *trlist;
**	  ZafVtList *vlist;
**	  ZafWindowManager *winmgr;
**	  ZafErrorStub *errstub;
**	  ZafErrorSystem *errsys;
**	  ZafEventMap *evmap;
**	  ZafFile *fil;
**	  ZafDiskFile *dskfil;
**	  ZafStorageFile *stgfil;
**	  ZafFileSystem *filsys;
**	  ZafDiskFileSystem *dskfilsys;
**	  ZafStorage *stg;
**	  ZafHelpStub *hlpstub;
**	  ZafHelpSystem *hlpsys;
**	  ZafList *lst;
**	  ZafDataRecord *datrec;
**	  ZafDataManager *datmngr;
**	  ZafEventManager *evmngr;
**	  ZafListBlock *listblk;
**	  ZafQueueBlock *qblk;
**	  ZafPath *pth;
**	  ZafNotification *notif;
**	  ZafPaletteMap *palmap;
**	  ZafScrollData *scldat;
**	  ZafStandardArg *stdargmnt;
END BLOCK COMMENT */
}
}
