InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IPathSelectionList.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 __IPathSelectionList__
25 #define __IPathSelectionList__
26 
27 #include "PathSelectionList.h"
28 #include "LayoutID.h"
29 
37 {
38 public:
39  enum { kDefaultIID = IID_IPATHSELECTIONLIST };
41 // virtual ErrorCode SetDataBase( IDataBase* db ) = 0 ;
43  virtual IDataBase* GetDataBase() const = 0 ;
44 
46  virtual ErrorCode SetSelection( const PathSelectionList& list ) = 0 ;
48  virtual const PathSelectionList& GetSelection() const = 0 ;
49 
51  virtual ErrorCode Add( const UIDRef& item, const PointSelector& handle ) = 0 ;
53  virtual ErrorCode Add( const UIDRef& item, const PointSelectorList& pts ) = 0 ;
55  virtual ErrorCode Add( const PathSelectionList& list ) = 0 ;
56 
58  virtual ErrorCode Clear() = 0 ;
60  virtual ErrorCode Clear( const UIDRef& item ) = 0 ;
62  virtual ErrorCode Clear( const UIDRef& item, const PointSelector& handle ) = 0 ;
64  virtual ErrorCode Clear( const UIDRef& item, const PointSelectorList& pts ) = 0 ;
66  virtual ErrorCode Clear( const PathSelectionList& list ) = 0 ;
67 
69  virtual bool16 IsEmpty() const = 0 ;
71  virtual bool16 IsSelected( const UIDRef& item ) const = 0 ;
73  virtual bool16 IsSelected( const UIDRef& item, const PointSelector& handle ) const = 0 ;
74 
76  virtual int32 Length() const = 0 ;
78  virtual UIDList GetItemList() const = 0 ;
79 
81  virtual int32 Length( const UIDRef& item ) const = 0 ;
83  virtual void GetComponentList( const UIDRef& item, PointSelectorList& ptsOut ) const = 0 ;
84 } ;
85 
86 #endif