summaryrefslogtreecommitdiff
path: root/core/fxcrt/include/fx_basic.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-05-18 06:09:33 -0700
committerCommit bot <commit-bot@chromium.org>2016-05-18 06:09:33 -0700
commitbe9b8947d0090e20116822fe7caf5e7973d6b20a (patch)
treeb88d67f0ed52956ad5d918110f449ecffa2f2a87 /core/fxcrt/include/fx_basic.h
parent56286b311543331d02fee90b832d66389a307961 (diff)
downloadpdfium-be9b8947d0090e20116822fe7caf5e7973d6b20a.tar.xz
Pass objects instead of strings for undo/redo records.
Currently the Undo/Redo records are serialized as byte strings and stored into a CFX_ByteStringArray. They are deserialized when used. This CL removes the serialization and stores the objects in a deque of unique pointers. Review-Url: https://codereview.chromium.org/1980293004
Diffstat (limited to 'core/fxcrt/include/fx_basic.h')
-rw-r--r--core/fxcrt/include/fx_basic.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/core/fxcrt/include/fx_basic.h b/core/fxcrt/include/fx_basic.h
index 59d72b8f5a..1835d9e0a6 100644
--- a/core/fxcrt/include/fx_basic.h
+++ b/core/fxcrt/include/fx_basic.h
@@ -108,71 +108,6 @@ class CFX_WideTextBuf : public CFX_BinaryBuf {
CFX_WideTextBuf& operator<<(const CFX_WideTextBuf& buf);
};
-#ifdef PDF_ENABLE_XFA
-class CFX_ArchiveSaver {
- public:
- CFX_ArchiveSaver() : m_pStream(NULL) {}
-
- CFX_ArchiveSaver& operator<<(uint8_t i);
-
- CFX_ArchiveSaver& operator<<(int i);
-
- CFX_ArchiveSaver& operator<<(uint32_t i);
-
- CFX_ArchiveSaver& operator<<(FX_FLOAT i);
-
- CFX_ArchiveSaver& operator<<(double i);
-
- CFX_ArchiveSaver& operator<<(const CFX_ByteStringC& bstr);
-
- CFX_ArchiveSaver& operator<<(const FX_WCHAR* bstr);
-
- CFX_ArchiveSaver& operator<<(const CFX_WideString& wstr);
-
- void Write(const void* pData, FX_STRSIZE dwSize);
-
- intptr_t GetLength() { return m_SavingBuf.GetSize(); }
-
- const uint8_t* GetBuffer() { return m_SavingBuf.GetBuffer(); }
-
- void SetStream(IFX_FileStream* pStream) { m_pStream = pStream; }
-
- protected:
- CFX_BinaryBuf m_SavingBuf;
-
- IFX_FileStream* m_pStream;
-};
-class CFX_ArchiveLoader {
- public:
- CFX_ArchiveLoader(const uint8_t* pData, uint32_t dwSize);
-
- CFX_ArchiveLoader& operator>>(uint8_t& i);
-
- CFX_ArchiveLoader& operator>>(int& i);
-
- CFX_ArchiveLoader& operator>>(uint32_t& i);
-
- CFX_ArchiveLoader& operator>>(FX_FLOAT& i);
-
- CFX_ArchiveLoader& operator>>(double& i);
-
- CFX_ArchiveLoader& operator>>(CFX_ByteString& bstr);
-
- CFX_ArchiveLoader& operator>>(CFX_WideString& wstr);
-
- FX_BOOL IsEOF();
-
- FX_BOOL Read(void* pBuf, uint32_t dwSize);
-
- protected:
- uint32_t m_LoadingPos;
-
- const uint8_t* m_pLoadingBuf;
-
- uint32_t m_LoadingSize;
-};
-#endif // PDF_ENABLE_XFA
-
class CFX_FileBufferArchive {
public:
CFX_FileBufferArchive();