Index: core/include/fxcrt/fx_stream.h |
diff --git a/core/include/fxcrt/fx_stream.h b/core/include/fxcrt/fx_stream.h |
index 7856dcbb1205ae00574094a483f0e17c7868c926..3edbf2bcf3dae1f58dc3a2467c00230e0bf01a8c 100644 |
--- a/core/include/fxcrt/fx_stream.h |
+++ b/core/include/fxcrt/fx_stream.h |
@@ -60,7 +60,9 @@ class IFX_StreamWrite { |
public: |
virtual ~IFX_StreamWrite() {} |
virtual void Release() = 0; |
+#ifndef PDF_ENABLE_XFA |
Lei Zhang
2015/10/30 06:15:30
empty block
|
+#endif |
virtual FX_BOOL WriteBlock(const void* pData, size_t size) = 0; |
}; |
class IFX_FileWrite : public IFX_StreamWrite { |
@@ -133,6 +135,17 @@ class IFX_FileStream : public IFX_FileRead, public IFX_FileWrite { |
}; |
IFX_FileStream* FX_CreateFileStream(const FX_CHAR* filename, FX_DWORD dwModes); |
IFX_FileStream* FX_CreateFileStream(const FX_WCHAR* filename, FX_DWORD dwModes); |
+#ifdef PDF_ENABLE_XFA |
+class IFX_FileAccess { |
+ public: |
+ virtual ~IFX_FileAccess() {} |
+ virtual void Release() = 0; |
+ virtual IFX_FileAccess* Retain() = 0; |
+ virtual void GetPath(CFX_WideString& wsPath) = 0; |
+ virtual IFX_FileStream* CreateFileStream(FX_DWORD dwModes) = 0; |
+}; |
+IFX_FileAccess* FX_CreateDefaultFileAccess(const CFX_WideStringC& wsPath); |
+#endif |
class IFX_MemoryStream : public IFX_FileStream { |
public: |
virtual FX_BOOL IsConsecutive() const = 0; |