Chromium Code Reviews| 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_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ | 7 #ifndef CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ |
| 8 #define CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ | 8 #define CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 19 matching lines...) Expand all Loading... | |
| 30 #define ANNOTFLAG_NOROTATE 0x0010 | 30 #define ANNOTFLAG_NOROTATE 0x0010 |
| 31 #define ANNOTFLAG_NOVIEW 0x0020 | 31 #define ANNOTFLAG_NOVIEW 0x0020 |
| 32 #define ANNOTFLAG_READONLY 0x0040 | 32 #define ANNOTFLAG_READONLY 0x0040 |
| 33 #define ANNOTFLAG_LOCKED 0x0080 | 33 #define ANNOTFLAG_LOCKED 0x0080 |
| 34 #define ANNOTFLAG_TOGGLENOVIEW 0x0100 | 34 #define ANNOTFLAG_TOGGLENOVIEW 0x0100 |
| 35 | 35 |
| 36 class CPDF_Annot { | 36 class CPDF_Annot { |
| 37 public: | 37 public: |
| 38 enum AppearanceMode { Normal, Rollover, Down }; | 38 enum AppearanceMode { Normal, Rollover, Down }; |
| 39 | 39 |
| 40 static FX_BOOL IsAnnotationHidden(CPDF_Dictionary* pAnnotDict); | |
|
Lei Zhang
2016/08/15 18:39:39
bool
tonikitoo
2016/08/15 18:59:31
Done.
| |
| 41 | |
| 40 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument); | 42 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument); |
| 41 ~CPDF_Annot(); | 43 ~CPDF_Annot(); |
| 42 | 44 |
| 43 CFX_ByteString GetSubType() const; | 45 CFX_ByteString GetSubType() const; |
| 44 uint32_t GetFlags() const; | 46 uint32_t GetFlags() const; |
| 45 void GetRect(CFX_FloatRect& rect) const; | 47 void GetRect(CFX_FloatRect& rect) const; |
| 46 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } | 48 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict; } |
| 47 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } | 49 CPDF_Dictionary* GetAnnotDict() { return m_pAnnotDict; } |
| 48 FX_BOOL DrawAppearance(CPDF_Page* pPage, | 50 FX_BOOL DrawAppearance(CPDF_Page* pPage, |
| 49 CFX_RenderDevice* pDevice, | 51 CFX_RenderDevice* pDevice, |
| (...skipping 14 matching lines...) Expand all Loading... | |
| 64 CPDF_Dictionary* const m_pAnnotDict; | 66 CPDF_Dictionary* const m_pAnnotDict; |
| 65 CPDF_Document* const m_pDocument; | 67 CPDF_Document* const m_pDocument; |
| 66 const CFX_ByteString m_sSubtype; | 68 const CFX_ByteString m_sSubtype; |
| 67 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; | 69 std::map<CPDF_Stream*, std::unique_ptr<CPDF_Form>> m_APMap; |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, | 72 CPDF_Stream* FPDFDOC_GetAnnotAP(CPDF_Dictionary* pAnnotDict, |
| 71 CPDF_Annot::AppearanceMode mode); | 73 CPDF_Annot::AppearanceMode mode); |
| 72 | 74 |
| 73 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ | 75 #endif // CORE_FPDFDOC_INCLUDE_CPDF_ANNOT_H_ |
| OLD | NEW |