InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IDirlist.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Steve Flenniken
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 // IDirList.h
24 //
25 // This file defines an interface for maintaining a list of links.
26 // Whenever a user manually finds a missing link, that link is added
27 // to this list. All the directories of these links are looked in
28 // to finding missing links. This list is maintained for the duration
29 // of the session. A pointer to IDirList can be obtained by querying
30 // the session object.
31 //
32 //========================================================================================
33 
34 #ifndef __DIRLIST__
35 #define __DIRLIST__
36 
37 class NameInfo;
38 
39 #include "LinksID.h"
40 
50 class IDirList : public IPMUnknown
51 {
52 public:
53  enum { kDefaultIID = IID_IDIRLIST };
54 
59  virtual uint32 GetCount() = 0;
60 
69  virtual int32 AddDir(const IDFile &dir) = 0;
70 
79  virtual bool GetDir(uint32 index, IDFile& dir) = 0;
80 
89  virtual int32 GetDir(uint32 index, NameInfo *ni) = 0;
90 
94  virtual void Empty() = 0;
95 };
96 
97 #endif // __DIRLIST__