OLD | NEW |
1 // Copyright 2016 PDFium Authors. All rights reserved. | 1 // Copyright 2016 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_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_ |
8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_ |
9 | 9 |
10 #include "core/fpdfapi/fpdf_page/cpdf_contentmarkdata.h" | 10 #include "core/fpdfapi/fpdf_page/cpdf_contentmarkdata.h" |
11 #include "core/include/fxcrt/fx_basic.h" | 11 #include "core/fxcrt/include/fx_basic.h" |
12 | 12 |
13 class CPDF_ContentMark : public CFX_CountRef<CPDF_ContentMarkData> { | 13 class CPDF_ContentMark : public CFX_CountRef<CPDF_ContentMarkData> { |
14 public: | 14 public: |
15 int GetMCID() const { return m_pObject ? m_pObject->GetMCID() : -1; } | 15 int GetMCID() const { return m_pObject ? m_pObject->GetMCID() : -1; } |
16 | 16 |
17 FX_BOOL HasMark(const CFX_ByteStringC& mark) const; | 17 FX_BOOL HasMark(const CFX_ByteStringC& mark) const; |
18 | 18 |
19 FX_BOOL LookupMark(const CFX_ByteStringC& mark, | 19 FX_BOOL LookupMark(const CFX_ByteStringC& mark, |
20 CPDF_Dictionary*& pDict) const; | 20 CPDF_Dictionary*& pDict) const; |
21 }; | 21 }; |
22 | 22 |
23 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_ | 23 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARK_H_ |
OLD | NEW |