| 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_CONTENTMARKDATA_H_ | 7 #ifndef CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKDATA_H_ |
| 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKDATA_H_ | 8 #define CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKDATA_H_ |
| 9 | 9 |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h" | 12 #include "core/fpdfapi/fpdf_page/cpdf_contentmarkitem.h" |
| 13 #include "core/fxcrt/include/fx_system.h" | 13 #include "core/fxcrt/include/fx_system.h" |
| 14 | 14 |
| 15 class CPDF_Dictionary; | 15 class CPDF_Dictionary; |
| 16 | 16 |
| 17 class CPDF_ContentMarkData { | 17 class CPDF_ContentMarkData { |
| 18 public: | 18 public: |
| 19 CPDF_ContentMarkData() {} | 19 CPDF_ContentMarkData(); |
| 20 CPDF_ContentMarkData(const CPDF_ContentMarkData& src); | 20 CPDF_ContentMarkData(const CPDF_ContentMarkData& src); |
| 21 ~CPDF_ContentMarkData(); |
| 21 | 22 |
| 22 int CountItems() const; | 23 int CountItems() const; |
| 23 CPDF_ContentMarkItem& GetItem(int index) { return m_Marks[index]; } | 24 CPDF_ContentMarkItem& GetItem(int index); |
| 24 const CPDF_ContentMarkItem& GetItem(int index) const { | 25 const CPDF_ContentMarkItem& GetItem(int index) const; |
| 25 return m_Marks[index]; | |
| 26 } | |
| 27 | 26 |
| 28 int GetMCID() const; | 27 int GetMCID() const; |
| 29 void AddMark(const CFX_ByteString& name, | 28 void AddMark(const CFX_ByteString& name, |
| 30 CPDF_Dictionary* pDict, | 29 CPDF_Dictionary* pDict, |
| 31 FX_BOOL bDictNeedClone); | 30 FX_BOOL bDictNeedClone); |
| 32 void DeleteLastMark(); | 31 void DeleteLastMark(); |
| 33 | 32 |
| 34 private: | 33 private: |
| 35 std::vector<CPDF_ContentMarkItem> m_Marks; | 34 std::vector<CPDF_ContentMarkItem> m_Marks; |
| 36 }; | 35 }; |
| 37 | 36 |
| 38 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKDATA_H_ | 37 #endif // CORE_FPDFAPI_FPDF_PAGE_CPDF_CONTENTMARKDATA_H_ |
| OLD | NEW |