InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPathSelectionSuite.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Paul Sorrick
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 __IPATHSELECTIONSUITE__
25 #define __IPATHSELECTIONSUITE__
26 
27 #include "IPMUnknown.h"
28 
29 #include "LayoutUIID.h"
30 #include "PathSelectionList.h"
31 #include "PMRect.h"
32 
33 class IGraphicsContext ;
34 
46 {
47 public:
48  enum { kDefaultIID = IID_IPATHSELECTION_SUITE } ;
49 
51  virtual void ActivatePathSelection( bool16 isPathSelection ) = 0 ;
53  virtual bool16 IsPathSelectionActive() const = 0 ;
54 
56  virtual ErrorCode SelectPageItemPathPoint( const UIDRef& item, const PointSelector& handleID, bool16 drawit = kFalse ) = 0 ;
58  virtual ErrorCode SelectPageItemPathPoints( const UIDRef& item, const PointSelectorList& pts, bool16 drawit = kFalse ) = 0 ;
60  virtual ErrorCode SelectPathPoints( const PathSelectionList& list, bool16 drawit = kFalse ) = 0 ;
62  virtual ErrorCode SelectEntirePageItem( const UIDList& itemList, bool16 drawit = kFalse ) = 0 ;
63 
65  virtual ErrorCode ReplacePathSelection( const PathSelectionList& add, bool16 drawit = kFalse ) = 0 ;
67  virtual ErrorCode AlterPathSelection( const PathSelectionList& drop, const PathSelectionList& add, bool16 drawit = kFalse ) = 0 ;
69  virtual ErrorCode Replace_( const UIDList& itemList, bool16 drawit = kFalse ) = 0 ;
70 
71 
72 
74  virtual ErrorCode DeselectPageItemPathPoint( const UIDRef& item, const PointSelector& handle, bool16 drawit = kFalse ) = 0 ; //Deselect
76  virtual ErrorCode DeselectPageItemPathPoints( const UIDRef& item, const PointSelectorList& pts, bool16 drawit = kFalse ) = 0 ; //Deselect
78  virtual ErrorCode DeselectPathPoints( const PathSelectionList& list, bool16 drawit = kFalse ) = 0 ; //Deselect
80  virtual ErrorCode DeselectEntirePageItem( const UIDList& itemList, bool16 drawit = kFalse ) = 0 ; //Deselect
82  virtual ErrorCode DeselectAllPaths( bool16 drawit = kFalse ) = 0 ; //DeselectAll
83 
84 
85 
86 
88  virtual bool16 IsPathSelectionEmpty() const = 0 ; //IsEmpty
90  virtual bool16 IsAnyPageItemPathPointSelected( const UIDRef& item ) const = 0 ; //IsSelected
92  virtual bool16 IsPageItemPathPointSelected( const UIDRef& item, const PointSelector& handle ) const = 0 ; //IsSelected
93 
95  virtual int32 CountPathSelectedPageItems() const = 0 ; //Length
97  virtual UIDList GetPathSelectedPageItems() const = 0 ; //GetItemList
98 
100  virtual int32 CountPathSelectors( const UIDRef& item ) const = 0 ; //Length
102  virtual void GetSelectorList( const UIDRef& item, PointSelectorList& ptsOut ) const = 0 ; //GetComponentList
103 
105  virtual const PathSelectionList& GetPathSelection() const = 0 ; //GetSelection
106 
108  virtual bool16 IsEntirePageItemSelected( const UIDRef& item ) const = 0 ; //IsEntireObjectSelected
110  virtual bool16 IsEntirePathSelected( const UIDRef& item, int32 pathIndex ) const = 0 ; //IsEntirePathSelected
111 
112 
114  virtual bool16 IsSinglePoint( UIDRef* theItem = nil, PointSelector* thePoint = nil ) const = 0 ;
116  virtual bool16 IsSingleSegment( UIDRef* theItem = nil, PointSelector* theSegment = nil ) const = 0 ;
118  virtual bool16 IsTwoContiguousSegs( UIDRef* theItem = nil, PointSelector* thePoint = nil ) const = 0 ;
119 } ;
120 
121 #endif // __IPATHSELECTION__