InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPathSelection.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 __IPATHSELECTION__
25 #define __IPATHSELECTION__
26 
27 #include "IPMUnknown.h"
28 
29 #include "LayoutUIID.h"
30 #include "PathSelectionList.h"
31 #include "PMRect.h"
32 
33 class IGraphicsContext ;
34 
41 class IPathSelection : public IPMUnknown
42 {
43 public:
44  enum { kDefaultIID = IID_IPATHSELECTION } ;
45 
47  virtual void ActivatePathSelection_( bool16 isPathSelection ) = 0 ;
49  virtual bool16 IsPathSelectionActive_() const = 0 ;
50 
52  virtual ErrorCode SelectPathPoints_( const PathSelectionList& list) = 0;
54  virtual ErrorCode SelectEntirePageItem_( const UIDList& itemList) = 0;
55 
57  virtual ErrorCode ReplacePathSelection_( const PathSelectionList& add) = 0;
59  virtual ErrorCode Replace__( const UIDList& itemList) = 0;
60 
62  virtual ErrorCode DeselectPageItemPathPoint_( const UIDRef& item, const PointSelector& handle) = 0;
64  virtual ErrorCode DeselectPageItemPathPoints_( const UIDRef& item, const PointSelectorList& pts) = 0;
66  virtual ErrorCode DeselectPathPoints_( const PathSelectionList& list) = 0;
68  virtual ErrorCode DeselectEntirePageItem_( const UIDList& itemList) = 0;
70  virtual ErrorCode DeselectAllPaths_() = 0 ;
71 
73  virtual bool16 IsPathSelectionEmpty_() const = 0 ;
75  virtual bool16 IsAnyPageItemPathPointSelected_( const UIDRef& item ) const = 0 ;
77  virtual bool16 IsPageItemPathPointSelected_( const UIDRef& item, const PointSelector& handle ) const = 0 ;
78 
80  virtual int32 CountPathSelectedPageItems_() const = 0 ;
82  virtual UIDList GetPathSelectedPageItems_() const = 0 ;
83 
85  virtual int32 CountPathSelectors_( const UIDRef& item ) const = 0 ;
87  virtual void GetSelectorList_( const UIDRef& item, PointSelectorList& ptsOut ) const = 0 ;
88 
90  virtual const PathSelectionList& GetPathSelection_() const = 0 ;
91 
93  virtual bool16 IsEntirePageItemSelected_( const UIDRef& item ) const = 0 ;
95  virtual bool16 IsEntirePathSelected_( const UIDRef& item, int32 pathIndex ) const = 0 ;
96 
98  virtual bool16 IsSinglePoint( UIDRef* theItem = nil, PointSelector* thePoint = nil ) const = 0 ;
100  virtual bool16 IsSingleSegment( UIDRef* theItem = nil, PointSelector* theSegment = nil ) const = 0 ;
102  virtual bool16 IsTwoContiguousSegs( UIDRef* theItem = nil, PointSelector* thePoint = nil ) const = 0 ;
103 
105  virtual bool16 IsFullySelected( const UIDRef& item ) const = 0;
106 } ;
107 
108 #endif // __IPATHSELECTION__