InDesign SDK  20.5
 All Classes Namespaces Functions Variables Typedefs Enumerations Enumerator Friends Groups Pages
IMediaReadFormat.h
1 //========================================================================================
2 //
3 // $File$
4 //
5 // Owner: wtislar
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 __IMediaReadFormat__
25 #define __IMediaReadFormat__
26 
27 
28 #include "IPMUnknown.h"
29 #include "MediaID.h"
30 #include "MediaLocation.h"
31 
32 class IMediaContentData;
33 class IPMStream;
34 class MediaLocation;
35 class PMRect;
36 
42 {
43 public:
44  enum { kDefaultIID = IID_IMEDIAREADFORMAT };
45 
54  virtual bool16 CanAccessMedia() = 0;
55 
62  virtual bool16 CanRead( const MediaLocation & loc ) = 0;
63 
70  virtual bool16 CanRead( IPMStream* iPMStream ) = 0;
71 
78  virtual ErrorCode Close() = 0;
79 
84  virtual IPMStream * CreateContentStreamRead( const MediaLocation & loc ) = 0;
85 
93  virtual ErrorCode GetAttributes( IMediaContentData * contentData ) = 0;
94 
102  virtual ErrorCode GetLastError() = 0;
103 
112  virtual IPMStream * GetPosterStream() = 0;
113 
117  virtual bool16 IsOpen() = 0;
118 
123  virtual ErrorCode Open( IPMStream* iPMStream ) = 0;
124 
131  virtual ErrorCode Open( const MediaLocation & loc ) = 0;
132 
133 }; // end IMediaReadFormat interface class
134 
135 
136 #endif