InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
ILinkResourceFactory.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: Michael Easter
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 // Description:
24 // Factory class interface used to provide a list of schemes supported by a link
25 // resource handler, and to create instances of a link resource handler.
26 //
27 //========================================================================================
28 
29 #ifndef __ILinkResourceFactory__
30 #define __ILinkResourceFactory__
31 
32 // ----- Includes -----
33 #include "IPMUnknown.h"
34 #include "LinksID.h"
35 #include "K2Vector.h"
36 
37 class IDataBase;
40 class URI;
41 
42 
53 {
54 public:
55  enum { kDefaultIID = IID_ILINKRESOURCEFACTORY };
56 
61  virtual void GetSchemes(K2Vector<WideString>& schemes) const = 0;
62 
72  virtual ILinkResourceHandler* QueryHandler(const URI& uri, IDataBase* db) const = 0;
73 
83  virtual ILinkResourceStateUpdater* QueryStateUpdater(const URI& uri, IDataBase* db) const = 0;
84 };
85 
86 #endif // __ILinkResourceFactory__