diff options
author | dsinclair <dsinclair@chromium.org> | 2016-04-06 12:09:37 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-04-06 12:09:37 -0700 |
commit | e530fb7976922c4934812f8721e7550ced17786b (patch) | |
tree | 8d1f4ca3dbaa4426acadb037555618021b52e791 /core/include/fpdfdoc/fpdf_tagged.h | |
parent | 4e20094dbb2ea942734b8986fa9a60d2f3ccbb1b (diff) | |
download | pdfium-e530fb7976922c4934812f8721e7550ced17786b.tar.xz |
Move remaining fpdfdoc files
This CL moves the last two fpdfdoc files from core/include/fpdfdoc to
core/fpdfdoc/include.
Review URL: https://codereview.chromium.org/1864163002
Diffstat (limited to 'core/include/fpdfdoc/fpdf_tagged.h')
-rw-r--r-- | core/include/fpdfdoc/fpdf_tagged.h | 104 |
1 files changed, 0 insertions, 104 deletions
diff --git a/core/include/fpdfdoc/fpdf_tagged.h b/core/include/fpdfdoc/fpdf_tagged.h deleted file mode 100644 index 46d9fe2137..0000000000 --- a/core/include/fpdfdoc/fpdf_tagged.h +++ /dev/null @@ -1,104 +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 CORE_INCLUDE_FPDFDOC_FPDF_TAGGED_H_ -#define CORE_INCLUDE_FPDFDOC_FPDF_TAGGED_H_ - -#include "core/fxge/include/fx_dib.h" - -class CPDF_Document; -class CPDF_StructElement; -class CPDF_StructTree; -struct CPDF_StructKid; - -class CPDF_StructTree { - public: - static CPDF_StructTree* LoadDoc(const CPDF_Document* pDoc); - - static CPDF_StructTree* LoadPage(const CPDF_Document* pDoc, - const CPDF_Dictionary* pPageDict); - - virtual ~CPDF_StructTree() {} - - virtual int CountTopElements() const = 0; - - virtual CPDF_StructElement* GetTopElement(int i) const = 0; -}; -struct CPDF_StructKid { - enum { Invalid, Element, PageContent, StreamContent, Object } m_Type; - - union { - struct { - CPDF_StructElement* m_pElement; - - CPDF_Dictionary* m_pDict; - } m_Element; - struct { - uint32_t m_PageObjNum; - - uint32_t m_ContentId; - } m_PageContent; - struct { - uint32_t m_PageObjNum; - - uint32_t m_ContentId; - - uint32_t m_RefObjNum; - } m_StreamContent; - struct { - uint32_t m_PageObjNum; - - uint32_t m_RefObjNum; - } m_Object; - }; -}; -class CPDF_StructElement { - public: - virtual ~CPDF_StructElement() {} - - virtual CPDF_StructTree* GetTree() const = 0; - - virtual const CFX_ByteString& GetType() const = 0; - - virtual CPDF_StructElement* GetParent() const = 0; - - virtual CPDF_Dictionary* GetDict() const = 0; - - virtual int CountKids() const = 0; - - virtual const CPDF_StructKid& GetKid(int index) const = 0; - - virtual CPDF_Object* GetAttr(const CFX_ByteStringC& owner, - const CFX_ByteStringC& name, - FX_BOOL bInheritable = FALSE, - FX_FLOAT fLevel = 0.0F) = 0; - - virtual CFX_ByteString GetName(const CFX_ByteStringC& owner, - const CFX_ByteStringC& name, - const CFX_ByteStringC& default_value, - FX_BOOL bInheritable = FALSE, - int subindex = -1) = 0; - - virtual FX_ARGB GetColor(const CFX_ByteStringC& owner, - const CFX_ByteStringC& name, - FX_ARGB default_value, - FX_BOOL bInheritable = FALSE, - int subindex = -1) = 0; - - virtual FX_FLOAT GetNumber(const CFX_ByteStringC& owner, - const CFX_ByteStringC& name, - FX_FLOAT default_value, - FX_BOOL bInheritable = FALSE, - int subindex = -1) = 0; - - virtual int GetInteger(const CFX_ByteStringC& owner, - const CFX_ByteStringC& name, - int default_value, - FX_BOOL bInheritable = FALSE, - int subindex = -1) = 0; -}; - -#endif // CORE_INCLUDE_FPDFDOC_FPDF_TAGGED_H_ |