/* This file is part of tooldemo, a sample Tool plugin for Adobe Illustrator Copyright (C) 2002-5 Toby Thain, toby@telegraphics.com.au This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ #include "common.h" #include "aipluginmain.h" #include "version.h" AIErr plugin_startup ( SPInterfaceMessage *im ) { AIErr e; if(!(e = acquire_suites(&im->d))) e = addTool(im); return e; } /* AIErr unload( SPInterfaceMessage *im ) { m->globals = g; return kNoErr; } AIErr reload( SPInterfaceMessage *im ) { g = m->globals; return kNoErr; } */ AIErr plugin_shutdown( SPInterfaceMessage *im ) { return kNoErr; } AIErr plugin_about( SPInterfaceMessage *im ) { SPMessageData *m = &im->d; AIErr e; if( !(e = acquire_suites(m)) ){ char s[0x100]; sprintf(s,"Tool Demo version %s\nCopyright © 2002-5 Toby Thain \nhttp://www.telegraphics.com.au",VERSION_STR); sADMBasic->MessageAlert(s); release_suites(m); } return e; }