InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IConstrainTracker.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Bernd Paradies
6 //
7 // $Author$
8 //
9 // $DateTime$
10 //
11 // $Revision$
12 //
13 // $Change$
14 //
15 // Copyright 1997-2010 Adobe Systems Incorporated. All rights reserved.
16 //
17 // NOTICE: Adobe permits you to use, modify, and distribute this file in accordance
18 // with the terms of the Adobe license agreement accompanying it. If you have received
19 // this file from a source other than Adobe, then your use, modification, or
20 // distribution of it requires the prior written permission of Adobe.
21 //
22 //========================================================================================
23 
24 #ifndef __IConstrainTracker__
25 #define __IConstrainTracker__
26 
27 #include "IPMUnknown.h"
28 #include "PMPoint.h"
29 
30 class IEvent;
31 class ICommand;
32 
33 //----------------------------------------------------------------------------------------
34 // Interface IConstrainTracker, IID_ICONSTRAINTRACKER
35 //----------------------------------------------------------------------------------------
36 
38 {
39 public:
40  virtual bool16 Init( IEvent* theEvent ) = 0;
41  // usually called by the tracker's BeginTracking(), returns kFalse on error.
42  virtual bool16 Constrain( PBPMPoint *pPoint ) const = 0;
43  // usually called by the tracker's ContinueTracking(), returns kTrue if pPoint has been modified.
44  virtual bool16 ConstrainEvent( IEvent* theEvent ) const = 0;
45  // usually called by the tracker's EndTracking(), returns kTrue if theEvent has been modified.
46  virtual ICommand * ConstrainCommand( ICommand *pCommand ) const = 0;
47  // usually called before executing the command, might return a diffierent command.
48 };
49 
50 #endif