Subversion Repositories filter_foundry

Rev

Rev 193 | Go to most recent revision | Blame | Last modification | View Log | RSS feed

  1. /*
  2.         This file is part of a common library for Adobe(R) Illustrator(R) plugins
  3.     Copyright (C) 2002-6 Toby Thain, toby@telegraphics.com.au
  4.  
  5.     This program is free software; you can redistribute it and/or modify
  6.     it under the terms of the GNU General Public License as published by
  7.     the Free Software Foundation; either version 2 of the License, or
  8.     (at your option) any later version.
  9.  
  10.     This program is distributed in the hope that it will be useful,
  11.     but WITHOUT ANY WARRANTY; without even the implied warranty of
  12.     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  13.     GNU General Public License for more details.
  14.  
  15.     You should have received a copy of the GNU General Public License
  16.     along with this program; if not, write to the Free Software
  17.     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
  18. */
  19.  
  20. #include "entry.h"
  21.  
  22. #if defined(MAC68K_ENV) && defined(__MWERKS__)
  23.         #include <a4stuff.h> // Metrowerks support for A4-based globals
  24. #else
  25.         #define EnterCodeResource()
  26.         #define ExitCodeResource()
  27. #endif
  28.  
  29. #include "ASConfig.h"
  30. #include "AITypes.h"
  31. #include "AIFilter.h"
  32. #include "AITool.h"
  33. #include "AIDocument.h" // need kAIRealMathSuite if it exists, to differentiate pre-8.0 API
  34. #include "SPMData.h"
  35.  
  36. #include "dbg.h"
  37.  
  38. AIErr plugin_startup( SPInterfaceMessage *im );
  39. /*AIErr unload( SPInterfaceMessage *im );
  40. AIErr reload( SPInterfaceMessage *im );*/
  41. AIErr plugin_shutdown( SPInterfaceMessage *im );
  42. AIErr plugin_about( SPInterfaceMessage *im );
  43.  
  44. AIErr filter_go( AIFilterMessage *fm );
  45.  
  46. AIErr toolOptions( AIToolMessage *message );
  47. AIErr toolTrackCursor( AIToolMessage *message );
  48. AIErr toolMouseDown( AIToolMessage *message );
  49. AIErr toolMouseDrag( AIToolMessage *message );
  50. AIErr toolMouseUp( AIToolMessage *message );
  51. AIErr toolSelect( AIToolMessage *message );
  52. AIErr toolDeselect( AIToolMessage *message );
  53. AIErr toolValidate( AIToolMessage *message );
  54.  
  55. DLLEXPORT SPAPI
  56. PLUGINRETURN ENTRYPOINT( char *caller, char *selector, SPMessageData *message );
  57. //FXErr ai6main( char *selector, void *stuff );
  58.  
  59. // the prototype for AcquireSuite() changed at AI8
  60. // allow for both flavours.
  61. #ifdef kPluginInterfaceVersion8001
  62.         typedef const void **ppsuite;
  63. #else
  64.         typedef void **ppsuite;
  65. #endif
  66.  
  67. SPErr acq_suite(SPMessageData *m, char *name, long version, ppsuite suite);
  68.