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 #include "fpdfsdk/include/cpdfsdk_annot.h" | 7 #include "fpdfsdk/include/cpdfsdk_annot.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 | 10 |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 } | 51 } |
52 | 52 |
53 int CPDFSDK_Annot::GetLayoutOrder() const { | 53 int CPDFSDK_Annot::GetLayoutOrder() const { |
54 return 5; | 54 return 5; |
55 } | 55 } |
56 | 56 |
57 CPDF_Annot* CPDFSDK_Annot::GetPDFAnnot() const { | 57 CPDF_Annot* CPDFSDK_Annot::GetPDFAnnot() const { |
58 return nullptr; | 58 return nullptr; |
59 } | 59 } |
60 | 60 |
61 CFX_ByteString CPDFSDK_Annot::GetAnnotSubtype() const { | 61 CPDF_Annot::Subtype CPDFSDK_Annot::GetAnnotSubtype() const { |
62 return ""; | 62 return CPDF_Annot::Subtype::UNKNOWN; |
63 } | 63 } |
64 | 64 |
65 bool CPDFSDK_Annot::IsSignatureWidget() const { | 65 bool CPDFSDK_Annot::IsSignatureWidget() const { |
66 return false; | 66 return false; |
67 } | 67 } |
68 | 68 |
69 void CPDFSDK_Annot::SetRect(const CFX_FloatRect& rect) {} | 69 void CPDFSDK_Annot::SetRect(const CFX_FloatRect& rect) {} |
70 | 70 |
71 CFX_FloatRect CPDFSDK_Annot::GetRect() const { | 71 CFX_FloatRect CPDFSDK_Annot::GetRect() const { |
72 return CFX_FloatRect(); | 72 return CFX_FloatRect(); |
(...skipping 15 matching lines...) Expand all Loading... |
88 #ifdef PDF_ENABLE_XFA | 88 #ifdef PDF_ENABLE_XFA |
89 return GetPDFXFAPage(); | 89 return GetPDFXFAPage(); |
90 #else // PDF_ENABLE_XFA | 90 #else // PDF_ENABLE_XFA |
91 return GetPDFPage(); | 91 return GetPDFPage(); |
92 #endif // PDF_ENABLE_XFA | 92 #endif // PDF_ENABLE_XFA |
93 } | 93 } |
94 | 94 |
95 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { | 95 CPDF_Page* CPDFSDK_Annot::GetPDFPage() { |
96 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; | 96 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; |
97 } | 97 } |
OLD | NEW |