OLD | NEW |
1 // Copyright 2014 PDFium Authors. All rights reserved. | 1 // Copyright 2014 PDFium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com | 5 // Original code copyright 2014 Foxit Software Inc. http://www.foxitsoftware.com |
6 | 6 |
7 #ifndef CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 8 #define CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
9 | 9 |
10 #include <map> | 10 #include <map> |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
127 | 127 |
128 FX_BOOL CheckOCGVisible(const CPDF_Dictionary* pOCGDict); | 128 FX_BOOL CheckOCGVisible(const CPDF_Dictionary* pOCGDict); |
129 FX_BOOL CheckObjectVisible(const CPDF_PageObject* pObj); | 129 FX_BOOL CheckObjectVisible(const CPDF_PageObject* pObj); |
130 | 130 |
131 CPDF_Document* GetDocument() const { return m_pDocument; } | 131 CPDF_Document* GetDocument() const { return m_pDocument; } |
132 UsageType GetUsageType() const { return m_eUsageType; } | 132 UsageType GetUsageType() const { return m_eUsageType; } |
133 | 133 |
134 void ResetOCContext(); | 134 void ResetOCContext(); |
135 | 135 |
136 protected: | 136 protected: |
137 FX_BOOL LoadOCGStateFromConfig(const CFX_ByteStringC& csConfig, | 137 FX_BOOL LoadOCGStateFromConfig(const CFX_ByteString& csConfig, |
138 const CPDF_Dictionary* pOCGDict, | 138 const CPDF_Dictionary* pOCGDict, |
139 FX_BOOL& bValidConfig) const; | 139 FX_BOOL& bValidConfig) const; |
140 FX_BOOL LoadOCGState(const CPDF_Dictionary* pOCGDict) const; | 140 FX_BOOL LoadOCGState(const CPDF_Dictionary* pOCGDict) const; |
141 FX_BOOL GetOCGVisible(const CPDF_Dictionary* pOCGDict); | 141 FX_BOOL GetOCGVisible(const CPDF_Dictionary* pOCGDict); |
142 FX_BOOL GetOCGVE(CPDF_Array* pExpression, | 142 FX_BOOL GetOCGVE(CPDF_Array* pExpression, |
143 FX_BOOL bFromConfig, | 143 FX_BOOL bFromConfig, |
144 int nLevel = 0); | 144 int nLevel = 0); |
145 FX_BOOL LoadOCMDState(const CPDF_Dictionary* pOCMDDict, FX_BOOL bFromConfig); | 145 FX_BOOL LoadOCMDState(const CPDF_Dictionary* pOCMDDict, FX_BOOL bFromConfig); |
146 | 146 |
147 CPDF_Document* m_pDocument; | 147 CPDF_Document* m_pDocument; |
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1015 FX_FLOAT fc[4], | 1015 FX_FLOAT fc[4], |
1016 const CFX_ByteString& csEntry) const; | 1016 const CFX_ByteString& csEntry) const; |
1017 | 1017 |
1018 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const; | 1018 CFX_WideString GetCaption(const CFX_ByteString& csEntry) const; |
1019 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const; | 1019 CPDF_Stream* GetIcon(const CFX_ByteString& csEntry) const; |
1020 | 1020 |
1021 CPDF_Dictionary* const m_pDict; | 1021 CPDF_Dictionary* const m_pDict; |
1022 }; | 1022 }; |
1023 | 1023 |
1024 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ | 1024 #endif // CORE_FPDFDOC_INCLUDE_FPDF_DOC_H_ |
OLD | NEW |