| 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 "fpdfsdk/include/fsdk_baseform.h" | 7 #include "fpdfsdk/include/fsdk_baseform.h" |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 CPDFSDK_Document* pSDKDoc = m_pPageView->GetSDKDocument(); | 49 CPDFSDK_Document* pSDKDoc = m_pPageView->GetSDKDocument(); |
| 50 CPDFXFA_Document* pDoc = pSDKDoc->GetXFADocument(); | 50 CPDFXFA_Document* pDoc = pSDKDoc->GetXFADocument(); |
| 51 if (pDoc->GetDocType() == DOCTYPE_STATIC_XFA) { | 51 if (pDoc->GetDocType() == DOCTYPE_STATIC_XFA) { |
| 52 if (!m_hMixXFAWidget) { | 52 if (!m_hMixXFAWidget) { |
| 53 if (IXFA_DocView* pDocView = pDoc->GetXFADocView()) { | 53 if (IXFA_DocView* pDocView = pDoc->GetXFADocView()) { |
| 54 CFX_WideString sName; | 54 CFX_WideString sName; |
| 55 if (GetFieldType() == FIELDTYPE_RADIOBUTTON) { | 55 if (GetFieldType() == FIELDTYPE_RADIOBUTTON) { |
| 56 sName = GetAnnotName(); | 56 sName = GetAnnotName(); |
| 57 if (sName.IsEmpty()) | 57 if (sName.IsEmpty()) |
| 58 sName = GetName(); | 58 sName = GetName(); |
| 59 } else | 59 } else { |
| 60 sName = GetName(); | 60 sName = GetName(); |
| 61 } |
| 61 | 62 |
| 62 if (!sName.IsEmpty()) | 63 if (!sName.IsEmpty()) |
| 63 m_hMixXFAWidget = pDocView->GetWidgetByName(sName); | 64 m_hMixXFAWidget = pDocView->GetWidgetByName(sName); |
| 64 } | 65 } |
| 65 } | 66 } |
| 66 return m_hMixXFAWidget; | 67 return m_hMixXFAWidget; |
| 67 } | 68 } |
| 68 | 69 |
| 69 return NULL; | 70 return NULL; |
| 70 } | 71 } |
| (...skipping 2786 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2857 break; | 2858 break; |
| 2858 } | 2859 } |
| 2859 } | 2860 } |
| 2860 } | 2861 } |
| 2861 | 2862 |
| 2862 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { | 2863 CFX_FloatRect CBA_AnnotIterator::GetAnnotRect(const CPDFSDK_Annot* pAnnot) { |
| 2863 CFX_FloatRect rcAnnot; | 2864 CFX_FloatRect rcAnnot; |
| 2864 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); | 2865 pAnnot->GetPDFAnnot()->GetRect(rcAnnot); |
| 2865 return rcAnnot; | 2866 return rcAnnot; |
| 2866 } | 2867 } |
| OLD | NEW |