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/javascript/Field.h" | 7 #include "fpdfsdk/javascript/Field.h" |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
594 return FALSE; | 594 return FALSE; |
595 | 595 |
596 CPDF_FormField* pFormField = FieldArray[0]; | 596 CPDF_FormField* pFormField = FieldArray[0]; |
597 if (pFormField->GetFieldType() != FIELDTYPE_PUSHBUTTON) | 597 if (pFormField->GetFieldType() != FIELDTYPE_PUSHBUTTON) |
598 return FALSE; | 598 return FALSE; |
599 | 599 |
600 CPDF_FormControl* pFormControl = GetSmartFieldControl(pFormField); | 600 CPDF_FormControl* pFormControl = GetSmartFieldControl(pFormField); |
601 if (!pFormControl) | 601 if (!pFormControl) |
602 return FALSE; | 602 return FALSE; |
603 | 603 |
604 CPDF_IconFit IconFit = pFormControl->GetIconFit(); | 604 vp << pFormControl->GetIconFit().GetFittingBounds(); |
605 vp << IconFit.GetFittingBounds(); | |
606 } | 605 } |
607 | 606 |
608 return TRUE; | 607 return TRUE; |
609 } | 608 } |
610 | 609 |
611 void Field::SetButtonFitBounds(CPDFSDK_Document* pDocument, | 610 void Field::SetButtonFitBounds(CPDFSDK_Document* pDocument, |
612 const CFX_WideString& swFieldName, | 611 const CFX_WideString& swFieldName, |
613 int nControlIndex, | 612 int nControlIndex, |
614 bool b) { | 613 bool b) { |
615 // Not supported. | 614 // Not supported. |
(...skipping 2932 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3548 } | 3547 } |
3549 } | 3548 } |
3550 | 3549 |
3551 void Field::AddField(CPDFSDK_Document* pDocument, | 3550 void Field::AddField(CPDFSDK_Document* pDocument, |
3552 int nPageIndex, | 3551 int nPageIndex, |
3553 int nFieldType, | 3552 int nFieldType, |
3554 const CFX_WideString& sName, | 3553 const CFX_WideString& sName, |
3555 const CFX_FloatRect& rcCoords) { | 3554 const CFX_FloatRect& rcCoords) { |
3556 // Not supported. | 3555 // Not supported. |
3557 } | 3556 } |
OLD | NEW |