summaryrefslogtreecommitdiff
path: root/xfa/fxfa/parser/xfa_basic_imp.h
diff options
context:
space:
mode:
authordsinclair <dsinclair@chromium.org>2016-07-21 12:01:39 -0700
committerCommit bot <commit-bot@chromium.org>2016-07-21 12:01:39 -0700
commit9eb0db1d7f6273de7eb28b0e1490eaf893e3bfb5 (patch)
tree545c467efb1d21ce95e0bba7ad40a5e27eed7ef9 /xfa/fxfa/parser/xfa_basic_imp.h
parente283e47aa3e6786dad94392db292e08ce18ccd5e (diff)
downloadpdfium-9eb0db1d7f6273de7eb28b0e1490eaf893e3bfb5.tar.xz
Move xfa_basic_imp to cxfa_widetextread.
This Cl splits out the CXFA_WideTextRead class into it's own file. The helper methods have been moved into xfa_utils.cpp and their pre-declarations into xfa_utils.h. Review-Url: https://codereview.chromium.org/2165993002
Diffstat (limited to 'xfa/fxfa/parser/xfa_basic_imp.h')
-rw-r--r--xfa/fxfa/parser/xfa_basic_imp.h62
1 files changed, 0 insertions, 62 deletions
diff --git a/xfa/fxfa/parser/xfa_basic_imp.h b/xfa/fxfa/parser/xfa_basic_imp.h
deleted file mode 100644
index 8ca153b90f..0000000000
--- a/xfa/fxfa/parser/xfa_basic_imp.h
+++ /dev/null
@@ -1,62 +0,0 @@
-// Copyright 2014 PDFium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-// Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com
-
-#ifndef XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
-#define XFA_FXFA_PARSER_XFA_BASIC_IMP_H_
-
-#include "xfa/fgas/crt/fgas_stream.h"
-#include "xfa/fxfa/include/fxfa_basic.h"
-
-struct XFA_NOTSUREATTRIBUTE {
- XFA_Element eElement;
- XFA_ATTRIBUTE eAttribute;
- XFA_ATTRIBUTETYPE eType;
- void* pValue;
-};
-const XFA_NOTSUREATTRIBUTE* XFA_GetNotsureAttribute(
- XFA_Element eElement,
- XFA_ATTRIBUTE eAttribute,
- XFA_ATTRIBUTETYPE eType = XFA_ATTRIBUTETYPE_NOTSURE);
-
-class CXFA_WideTextRead : public IFX_Stream {
- public:
- CXFA_WideTextRead(const CFX_WideString& wsBuffer);
-
- // IFX_Stream
- void Release() override;
- IFX_Stream* Retain() override;
- uint32_t GetAccessModes() const override;
- int32_t GetLength() const override;
- int32_t Seek(FX_STREAMSEEK eSeek, int32_t iOffset) override;
- int32_t GetPosition() override;
- FX_BOOL IsEOF() const override;
- int32_t ReadData(uint8_t* pBuffer, int32_t iBufferSize) override;
- int32_t ReadString(FX_WCHAR* pStr,
- int32_t iMaxLength,
- FX_BOOL& bEOS) override;
- int32_t WriteData(const uint8_t* pBuffer, int32_t iBufferSize) override;
- int32_t WriteString(const FX_WCHAR* pStr, int32_t iLength) override;
- void Flush() override {}
- FX_BOOL SetLength(int32_t iLength) override;
- int32_t GetBOM(uint8_t bom[4]) const override;
- uint16_t GetCodePage() const override;
- uint16_t SetCodePage(uint16_t wCodePage) override;
- IFX_Stream* CreateSharedStream(uint32_t dwAccess,
- int32_t iOffset,
- int32_t iLength) override;
-
- virtual void Lock();
- virtual void Unlock();
-
- CFX_WideString GetSrcText() const;
-
- protected:
- CFX_WideString m_wsBuffer;
- int32_t m_iPosition;
- int32_t m_iRefCount;
-};
-
-#endif // XFA_FXFA_PARSER_XFA_BASIC_IMP_H_