| 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 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" | 9 #include "core/fpdfapi/fpdf_parser/include/cpdf_array.h" |
| 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" | 10 #include "core/fpdfapi/fpdf_parser/include/cpdf_document.h" |
| (...skipping 808 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 819 | 819 |
| 820 if (pStreamDict) { | 820 if (pStreamDict) { |
| 821 pStreamDict->SetAtMatrix("Matrix", matrix); | 821 pStreamDict->SetAtMatrix("Matrix", matrix); |
| 822 pStreamDict->SetAtRect("BBox", rcBBox); | 822 pStreamDict->SetAtRect("BBox", rcBBox); |
| 823 } | 823 } |
| 824 | 824 |
| 825 pStream->SetData((uint8_t*)sContents.c_str(), sContents.GetLength(), FALSE, | 825 pStream->SetData((uint8_t*)sContents.c_str(), sContents.GetLength(), FALSE, |
| 826 FALSE); | 826 FALSE); |
| 827 } | 827 } |
| 828 | 828 |
| 829 FX_BOOL CPDFSDK_BAAnnot::CreateFormFiller() { | |
| 830 return TRUE; | |
| 831 } | |
| 832 FX_BOOL CPDFSDK_BAAnnot::IsVisible() const { | 829 FX_BOOL CPDFSDK_BAAnnot::IsVisible() const { |
| 833 uint32_t nFlags = GetFlags(); | 830 uint32_t nFlags = GetFlags(); |
| 834 return !((nFlags & ANNOTFLAG_INVISIBLE) || (nFlags & ANNOTFLAG_HIDDEN) || | 831 return !((nFlags & ANNOTFLAG_INVISIBLE) || (nFlags & ANNOTFLAG_HIDDEN) || |
| 835 (nFlags & ANNOTFLAG_NOVIEW)); | 832 (nFlags & ANNOTFLAG_NOVIEW)); |
| 836 } | 833 } |
| 837 | 834 |
| 838 CPDF_Action CPDFSDK_BAAnnot::GetAction() const { | 835 CPDF_Action CPDFSDK_BAAnnot::GetAction() const { |
| 839 return CPDF_Action(m_pAnnot->GetAnnotDict()->GetDictBy("A")); | 836 return CPDF_Action(m_pAnnot->GetAnnotDict()->GetDictBy("A")); |
| 840 } | 837 } |
| 841 | 838 |
| (...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 900 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; | 897 return m_pPageView ? m_pPageView->GetPDFPage() : nullptr; |
| 901 } | 898 } |
| 902 | 899 |
| 903 #ifdef PDF_ENABLE_XFA | 900 #ifdef PDF_ENABLE_XFA |
| 904 | 901 |
| 905 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() { | 902 CPDFXFA_Page* CPDFSDK_Annot::GetPDFXFAPage() { |
| 906 return m_pPageView ? m_pPageView->GetPDFXFAPage() : nullptr; | 903 return m_pPageView ? m_pPageView->GetPDFXFAPage() : nullptr; |
| 907 } | 904 } |
| 908 | 905 |
| 909 #endif // PDF_ENABLE_XFA | 906 #endif // PDF_ENABLE_XFA |
| OLD | NEW |