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 929 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
940 | 940 |
941 FX_BOOL Field::currentValueIndices(IJS_Context* cc, | 941 FX_BOOL Field::currentValueIndices(IJS_Context* cc, |
942 CJS_PropValue& vp, | 942 CJS_PropValue& vp, |
943 CFX_WideString& sError) { | 943 CFX_WideString& sError) { |
944 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); | 944 CJS_Runtime* pRuntime = CJS_Runtime::FromContext(cc); |
945 | 945 |
946 if (vp.IsSetting()) { | 946 if (vp.IsSetting()) { |
947 if (!m_bCanSet) | 947 if (!m_bCanSet) |
948 return FALSE; | 948 return FALSE; |
949 | 949 |
950 CFX_ArrayTemplate<FX_DWORD> array; | 950 CFX_ArrayTemplate<uint32_t> array; |
951 | 951 |
952 if (vp.GetType() == CJS_Value::VT_number) { | 952 if (vp.GetType() == CJS_Value::VT_number) { |
953 int iSelecting = 0; | 953 int iSelecting = 0; |
954 vp >> iSelecting; | 954 vp >> iSelecting; |
955 array.Add(iSelecting); | 955 array.Add(iSelecting); |
956 } else if (vp.IsArrayObject()) { | 956 } else if (vp.IsArrayObject()) { |
957 CJS_Array SelArray(pRuntime); | 957 CJS_Array SelArray(pRuntime); |
958 CJS_Value SelValue(pRuntime); | 958 CJS_Value SelValue(pRuntime); |
959 int iSelecting; | 959 int iSelecting; |
960 vp >> SelArray; | 960 vp >> SelArray; |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
995 vp << -1; | 995 vp << -1; |
996 } | 996 } |
997 } | 997 } |
998 | 998 |
999 return TRUE; | 999 return TRUE; |
1000 } | 1000 } |
1001 | 1001 |
1002 void Field::SetCurrentValueIndices(CPDFSDK_Document* pDocument, | 1002 void Field::SetCurrentValueIndices(CPDFSDK_Document* pDocument, |
1003 const CFX_WideString& swFieldName, | 1003 const CFX_WideString& swFieldName, |
1004 int nControlIndex, | 1004 int nControlIndex, |
1005 const CFX_ArrayTemplate<FX_DWORD>& array) { | 1005 const CFX_ArrayTemplate<uint32_t>& array) { |
1006 ASSERT(pDocument); | 1006 ASSERT(pDocument); |
1007 | 1007 |
1008 std::vector<CPDF_FormField*> FieldArray = | 1008 std::vector<CPDF_FormField*> FieldArray = |
1009 GetFormFields(pDocument, swFieldName); | 1009 GetFormFields(pDocument, swFieldName); |
1010 for (CPDF_FormField* pFormField : FieldArray) { | 1010 for (CPDF_FormField* pFormField : FieldArray) { |
1011 int nFieldType = pFormField->GetFieldType(); | 1011 int nFieldType = pFormField->GetFieldType(); |
1012 if (nFieldType == FIELDTYPE_COMBOBOX || nFieldType == FIELDTYPE_LISTBOX) { | 1012 if (nFieldType == FIELDTYPE_COMBOBOX || nFieldType == FIELDTYPE_LISTBOX) { |
1013 FX_DWORD dwFieldFlags = pFormField->GetFieldFlags(); | 1013 uint32_t dwFieldFlags = pFormField->GetFieldFlags(); |
1014 pFormField->ClearSelection(TRUE); | 1014 pFormField->ClearSelection(TRUE); |
1015 | 1015 |
1016 for (int i = 0, sz = array.GetSize(); i < sz; i++) { | 1016 for (int i = 0, sz = array.GetSize(); i < sz; i++) { |
1017 if (i > 0 && !(dwFieldFlags & (1 << 21))) { | 1017 if (i > 0 && !(dwFieldFlags & (1 << 21))) { |
1018 break; | 1018 break; |
1019 } | 1019 } |
1020 | 1020 |
1021 int iSelecting = (int32_t)array.GetAt(i); | 1021 int iSelecting = (int32_t)array.GetAt(i); |
1022 if (iSelecting < pFormField->CountOptions() && | 1022 if (iSelecting < pFormField->CountOptions() && |
1023 !pFormField->IsItemSelected(iSelecting)) | 1023 !pFormField->IsItemSelected(iSelecting)) |
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1202 | 1202 |
1203 CPDF_FormField* pFormField = FieldArray[0]; | 1203 CPDF_FormField* pFormField = FieldArray[0]; |
1204 ASSERT(pFormField); | 1204 ASSERT(pFormField); |
1205 CPDFSDK_InterForm* pInterForm = | 1205 CPDFSDK_InterForm* pInterForm = |
1206 (CPDFSDK_InterForm*)m_pDocument->GetInterForm(); | 1206 (CPDFSDK_InterForm*)m_pDocument->GetInterForm(); |
1207 CPDFSDK_Widget* pWidget = | 1207 CPDFSDK_Widget* pWidget = |
1208 pInterForm->GetWidget(GetSmartFieldControl(pFormField)); | 1208 pInterForm->GetWidget(GetSmartFieldControl(pFormField)); |
1209 if (!pWidget) | 1209 if (!pWidget) |
1210 return FALSE; | 1210 return FALSE; |
1211 | 1211 |
1212 FX_DWORD dwFlag = pWidget->GetFlags(); | 1212 uint32_t dwFlag = pWidget->GetFlags(); |
1213 | 1213 |
1214 if (ANNOTFLAG_INVISIBLE & dwFlag || ANNOTFLAG_HIDDEN & dwFlag) { | 1214 if (ANNOTFLAG_INVISIBLE & dwFlag || ANNOTFLAG_HIDDEN & dwFlag) { |
1215 vp << (int32_t)1; | 1215 vp << (int32_t)1; |
1216 } else { | 1216 } else { |
1217 if (ANNOTFLAG_PRINT & dwFlag) { | 1217 if (ANNOTFLAG_PRINT & dwFlag) { |
1218 if (ANNOTFLAG_NOVIEW & dwFlag) { | 1218 if (ANNOTFLAG_NOVIEW & dwFlag) { |
1219 vp << (int32_t)3; | 1219 vp << (int32_t)3; |
1220 } else { | 1220 } else { |
1221 vp << (int32_t)0; | 1221 vp << (int32_t)0; |
1222 } | 1222 } |
(...skipping 14 matching lines...) Expand all Loading... |
1237 std::vector<CPDF_FormField*> FieldArray = | 1237 std::vector<CPDF_FormField*> FieldArray = |
1238 GetFormFields(pDocument, swFieldName); | 1238 GetFormFields(pDocument, swFieldName); |
1239 for (CPDF_FormField* pFormField : FieldArray) { | 1239 for (CPDF_FormField* pFormField : FieldArray) { |
1240 if (nControlIndex < 0) { | 1240 if (nControlIndex < 0) { |
1241 FX_BOOL bSet = FALSE; | 1241 FX_BOOL bSet = FALSE; |
1242 for (int i = 0, sz = pFormField->CountControls(); i < sz; ++i) { | 1242 for (int i = 0, sz = pFormField->CountControls(); i < sz; ++i) { |
1243 CPDF_FormControl* pFormControl = pFormField->GetControl(i); | 1243 CPDF_FormControl* pFormControl = pFormField->GetControl(i); |
1244 ASSERT(pFormControl); | 1244 ASSERT(pFormControl); |
1245 | 1245 |
1246 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { | 1246 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { |
1247 FX_DWORD dwFlag = pWidget->GetFlags(); | 1247 uint32_t dwFlag = pWidget->GetFlags(); |
1248 switch (number) { | 1248 switch (number) { |
1249 case 0: | 1249 case 0: |
1250 dwFlag &= (~ANNOTFLAG_INVISIBLE); | 1250 dwFlag &= (~ANNOTFLAG_INVISIBLE); |
1251 dwFlag &= (~ANNOTFLAG_HIDDEN); | 1251 dwFlag &= (~ANNOTFLAG_HIDDEN); |
1252 dwFlag &= (~ANNOTFLAG_NOVIEW); | 1252 dwFlag &= (~ANNOTFLAG_NOVIEW); |
1253 dwFlag |= ANNOTFLAG_PRINT; | 1253 dwFlag |= ANNOTFLAG_PRINT; |
1254 break; | 1254 break; |
1255 case 1: | 1255 case 1: |
1256 dwFlag &= (~ANNOTFLAG_INVISIBLE); | 1256 dwFlag &= (~ANNOTFLAG_INVISIBLE); |
1257 dwFlag &= (~ANNOTFLAG_NOVIEW); | 1257 dwFlag &= (~ANNOTFLAG_NOVIEW); |
(...skipping 20 matching lines...) Expand all Loading... |
1278 } | 1278 } |
1279 | 1279 |
1280 if (bSet) | 1280 if (bSet) |
1281 UpdateFormField(pDocument, pFormField, TRUE, FALSE, TRUE); | 1281 UpdateFormField(pDocument, pFormField, TRUE, FALSE, TRUE); |
1282 } else { | 1282 } else { |
1283 if (nControlIndex >= pFormField->CountControls()) | 1283 if (nControlIndex >= pFormField->CountControls()) |
1284 return; | 1284 return; |
1285 if (CPDF_FormControl* pFormControl = | 1285 if (CPDF_FormControl* pFormControl = |
1286 pFormField->GetControl(nControlIndex)) { | 1286 pFormField->GetControl(nControlIndex)) { |
1287 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { | 1287 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { |
1288 FX_DWORD dwFlag = pWidget->GetFlags(); | 1288 uint32_t dwFlag = pWidget->GetFlags(); |
1289 switch (number) { | 1289 switch (number) { |
1290 case 0: | 1290 case 0: |
1291 dwFlag &= (~ANNOTFLAG_INVISIBLE); | 1291 dwFlag &= (~ANNOTFLAG_INVISIBLE); |
1292 dwFlag &= (~ANNOTFLAG_HIDDEN); | 1292 dwFlag &= (~ANNOTFLAG_HIDDEN); |
1293 dwFlag &= (~ANNOTFLAG_NOVIEW); | 1293 dwFlag &= (~ANNOTFLAG_NOVIEW); |
1294 dwFlag |= ANNOTFLAG_PRINT; | 1294 dwFlag |= ANNOTFLAG_PRINT; |
1295 break; | 1295 break; |
1296 case 1: | 1296 case 1: |
1297 dwFlag &= (~ANNOTFLAG_INVISIBLE); | 1297 dwFlag &= (~ANNOTFLAG_INVISIBLE); |
1298 dwFlag &= (~ANNOTFLAG_NOVIEW); | 1298 dwFlag &= (~ANNOTFLAG_NOVIEW); |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1518 | 1518 |
1519 CPDF_FormField* pFormField = FieldArray[0]; | 1519 CPDF_FormField* pFormField = FieldArray[0]; |
1520 ASSERT(pFormField); | 1520 ASSERT(pFormField); |
1521 CPDFSDK_InterForm* pInterForm = | 1521 CPDFSDK_InterForm* pInterForm = |
1522 (CPDFSDK_InterForm*)m_pDocument->GetInterForm(); | 1522 (CPDFSDK_InterForm*)m_pDocument->GetInterForm(); |
1523 CPDFSDK_Widget* pWidget = | 1523 CPDFSDK_Widget* pWidget = |
1524 pInterForm->GetWidget(GetSmartFieldControl(pFormField)); | 1524 pInterForm->GetWidget(GetSmartFieldControl(pFormField)); |
1525 if (!pWidget) | 1525 if (!pWidget) |
1526 return FALSE; | 1526 return FALSE; |
1527 | 1527 |
1528 FX_DWORD dwFlags = pWidget->GetFlags(); | 1528 uint32_t dwFlags = pWidget->GetFlags(); |
1529 | 1529 |
1530 if (ANNOTFLAG_INVISIBLE & dwFlags || ANNOTFLAG_HIDDEN & dwFlags) | 1530 if (ANNOTFLAG_INVISIBLE & dwFlags || ANNOTFLAG_HIDDEN & dwFlags) |
1531 vp << true; | 1531 vp << true; |
1532 else | 1532 else |
1533 vp << false; | 1533 vp << false; |
1534 } | 1534 } |
1535 | 1535 |
1536 return TRUE; | 1536 return TRUE; |
1537 } | 1537 } |
1538 | 1538 |
1539 void Field::SetHidden(CPDFSDK_Document* pDocument, | 1539 void Field::SetHidden(CPDFSDK_Document* pDocument, |
1540 const CFX_WideString& swFieldName, | 1540 const CFX_WideString& swFieldName, |
1541 int nControlIndex, | 1541 int nControlIndex, |
1542 bool b) { | 1542 bool b) { |
1543 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)pDocument->GetInterForm(); | 1543 CPDFSDK_InterForm* pInterForm = (CPDFSDK_InterForm*)pDocument->GetInterForm(); |
1544 std::vector<CPDF_FormField*> FieldArray = | 1544 std::vector<CPDF_FormField*> FieldArray = |
1545 GetFormFields(pDocument, swFieldName); | 1545 GetFormFields(pDocument, swFieldName); |
1546 for (CPDF_FormField* pFormField : FieldArray) { | 1546 for (CPDF_FormField* pFormField : FieldArray) { |
1547 if (nControlIndex < 0) { | 1547 if (nControlIndex < 0) { |
1548 FX_BOOL bSet = FALSE; | 1548 FX_BOOL bSet = FALSE; |
1549 for (int i = 0, sz = pFormField->CountControls(); i < sz; ++i) { | 1549 for (int i = 0, sz = pFormField->CountControls(); i < sz; ++i) { |
1550 if (CPDFSDK_Widget* pWidget = | 1550 if (CPDFSDK_Widget* pWidget = |
1551 pInterForm->GetWidget(pFormField->GetControl(i))) { | 1551 pInterForm->GetWidget(pFormField->GetControl(i))) { |
1552 FX_DWORD dwFlags = pWidget->GetFlags(); | 1552 uint32_t dwFlags = pWidget->GetFlags(); |
1553 | 1553 |
1554 if (b) { | 1554 if (b) { |
1555 dwFlags &= (~ANNOTFLAG_INVISIBLE); | 1555 dwFlags &= (~ANNOTFLAG_INVISIBLE); |
1556 dwFlags &= (~ANNOTFLAG_NOVIEW); | 1556 dwFlags &= (~ANNOTFLAG_NOVIEW); |
1557 dwFlags |= (ANNOTFLAG_HIDDEN | ANNOTFLAG_PRINT); | 1557 dwFlags |= (ANNOTFLAG_HIDDEN | ANNOTFLAG_PRINT); |
1558 } else { | 1558 } else { |
1559 dwFlags &= (~ANNOTFLAG_INVISIBLE); | 1559 dwFlags &= (~ANNOTFLAG_INVISIBLE); |
1560 dwFlags &= (~ANNOTFLAG_HIDDEN); | 1560 dwFlags &= (~ANNOTFLAG_HIDDEN); |
1561 dwFlags &= (~ANNOTFLAG_NOVIEW); | 1561 dwFlags &= (~ANNOTFLAG_NOVIEW); |
1562 dwFlags |= ANNOTFLAG_PRINT; | 1562 dwFlags |= ANNOTFLAG_PRINT; |
1563 } | 1563 } |
1564 | 1564 |
1565 if (dwFlags != pWidget->GetFlags()) { | 1565 if (dwFlags != pWidget->GetFlags()) { |
1566 pWidget->SetFlags(dwFlags); | 1566 pWidget->SetFlags(dwFlags); |
1567 bSet = TRUE; | 1567 bSet = TRUE; |
1568 } | 1568 } |
1569 } | 1569 } |
1570 } | 1570 } |
1571 | 1571 |
1572 if (bSet) | 1572 if (bSet) |
1573 UpdateFormField(pDocument, pFormField, TRUE, FALSE, TRUE); | 1573 UpdateFormField(pDocument, pFormField, TRUE, FALSE, TRUE); |
1574 } else { | 1574 } else { |
1575 if (nControlIndex >= pFormField->CountControls()) | 1575 if (nControlIndex >= pFormField->CountControls()) |
1576 return; | 1576 return; |
1577 if (CPDF_FormControl* pFormControl = | 1577 if (CPDF_FormControl* pFormControl = |
1578 pFormField->GetControl(nControlIndex)) { | 1578 pFormField->GetControl(nControlIndex)) { |
1579 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { | 1579 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { |
1580 FX_DWORD dwFlags = pWidget->GetFlags(); | 1580 uint32_t dwFlags = pWidget->GetFlags(); |
1581 | 1581 |
1582 if (b) { | 1582 if (b) { |
1583 dwFlags &= (~ANNOTFLAG_INVISIBLE); | 1583 dwFlags &= (~ANNOTFLAG_INVISIBLE); |
1584 dwFlags &= (~ANNOTFLAG_NOVIEW); | 1584 dwFlags &= (~ANNOTFLAG_NOVIEW); |
1585 dwFlags |= (ANNOTFLAG_HIDDEN | ANNOTFLAG_PRINT); | 1585 dwFlags |= (ANNOTFLAG_HIDDEN | ANNOTFLAG_PRINT); |
1586 } else { | 1586 } else { |
1587 dwFlags &= (~ANNOTFLAG_INVISIBLE); | 1587 dwFlags &= (~ANNOTFLAG_INVISIBLE); |
1588 dwFlags &= (~ANNOTFLAG_HIDDEN); | 1588 dwFlags &= (~ANNOTFLAG_HIDDEN); |
1589 dwFlags &= (~ANNOTFLAG_NOVIEW); | 1589 dwFlags &= (~ANNOTFLAG_NOVIEW); |
1590 dwFlags |= ANNOTFLAG_PRINT; | 1590 dwFlags |= ANNOTFLAG_PRINT; |
(...skipping 366 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1957 | 1957 |
1958 bool bVP; | 1958 bool bVP; |
1959 vp >> bVP; | 1959 vp >> bVP; |
1960 | 1960 |
1961 for (CPDF_FormField* pFormField : FieldArray) { | 1961 for (CPDF_FormField* pFormField : FieldArray) { |
1962 if (m_nFormControlIndex < 0) { | 1962 if (m_nFormControlIndex < 0) { |
1963 FX_BOOL bSet = FALSE; | 1963 FX_BOOL bSet = FALSE; |
1964 for (int i = 0, sz = pFormField->CountControls(); i < sz; ++i) { | 1964 for (int i = 0, sz = pFormField->CountControls(); i < sz; ++i) { |
1965 if (CPDFSDK_Widget* pWidget = | 1965 if (CPDFSDK_Widget* pWidget = |
1966 pInterForm->GetWidget(pFormField->GetControl(i))) { | 1966 pInterForm->GetWidget(pFormField->GetControl(i))) { |
1967 FX_DWORD dwFlags = pWidget->GetFlags(); | 1967 uint32_t dwFlags = pWidget->GetFlags(); |
1968 if (bVP) | 1968 if (bVP) |
1969 dwFlags |= ANNOTFLAG_PRINT; | 1969 dwFlags |= ANNOTFLAG_PRINT; |
1970 else | 1970 else |
1971 dwFlags &= ~ANNOTFLAG_PRINT; | 1971 dwFlags &= ~ANNOTFLAG_PRINT; |
1972 | 1972 |
1973 if (dwFlags != pWidget->GetFlags()) { | 1973 if (dwFlags != pWidget->GetFlags()) { |
1974 pWidget->SetFlags(dwFlags); | 1974 pWidget->SetFlags(dwFlags); |
1975 bSet = TRUE; | 1975 bSet = TRUE; |
1976 } | 1976 } |
1977 } | 1977 } |
1978 } | 1978 } |
1979 | 1979 |
1980 if (bSet) | 1980 if (bSet) |
1981 UpdateFormField(m_pDocument, pFormField, TRUE, FALSE, TRUE); | 1981 UpdateFormField(m_pDocument, pFormField, TRUE, FALSE, TRUE); |
1982 } else { | 1982 } else { |
1983 if (m_nFormControlIndex >= pFormField->CountControls()) | 1983 if (m_nFormControlIndex >= pFormField->CountControls()) |
1984 return FALSE; | 1984 return FALSE; |
1985 if (CPDF_FormControl* pFormControl = | 1985 if (CPDF_FormControl* pFormControl = |
1986 pFormField->GetControl(m_nFormControlIndex)) { | 1986 pFormField->GetControl(m_nFormControlIndex)) { |
1987 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { | 1987 if (CPDFSDK_Widget* pWidget = pInterForm->GetWidget(pFormControl)) { |
1988 FX_DWORD dwFlags = pWidget->GetFlags(); | 1988 uint32_t dwFlags = pWidget->GetFlags(); |
1989 if (bVP) | 1989 if (bVP) |
1990 dwFlags |= ANNOTFLAG_PRINT; | 1990 dwFlags |= ANNOTFLAG_PRINT; |
1991 else | 1991 else |
1992 dwFlags &= ~ANNOTFLAG_PRINT; | 1992 dwFlags &= ~ANNOTFLAG_PRINT; |
1993 | 1993 |
1994 if (dwFlags != pWidget->GetFlags()) { | 1994 if (dwFlags != pWidget->GetFlags()) { |
1995 pWidget->SetFlags(dwFlags); | 1995 pWidget->SetFlags(dwFlags); |
1996 UpdateFormControl(m_pDocument, | 1996 UpdateFormControl(m_pDocument, |
1997 pFormField->GetControl(m_nFormControlIndex), | 1997 pFormField->GetControl(m_nFormControlIndex), |
1998 TRUE, FALSE, TRUE); | 1998 TRUE, FALSE, TRUE); |
(...skipping 1422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3421 CJS_DelayData* pNewData = new CJS_DelayData; | 3421 CJS_DelayData* pNewData = new CJS_DelayData; |
3422 pNewData->sFieldName = m_FieldName; | 3422 pNewData->sFieldName = m_FieldName; |
3423 pNewData->nControlIndex = m_nFormControlIndex; | 3423 pNewData->nControlIndex = m_nFormControlIndex; |
3424 pNewData->eProp = prop; | 3424 pNewData->eProp = prop; |
3425 pNewData->color = color; | 3425 pNewData->color = color; |
3426 | 3426 |
3427 m_pJSDoc->AddDelayData(pNewData); | 3427 m_pJSDoc->AddDelayData(pNewData); |
3428 } | 3428 } |
3429 | 3429 |
3430 void Field::AddDelay_WordArray(enum FIELD_PROP prop, | 3430 void Field::AddDelay_WordArray(enum FIELD_PROP prop, |
3431 const CFX_ArrayTemplate<FX_DWORD>& array) { | 3431 const CFX_ArrayTemplate<uint32_t>& array) { |
3432 CJS_DelayData* pNewData = new CJS_DelayData; | 3432 CJS_DelayData* pNewData = new CJS_DelayData; |
3433 pNewData->sFieldName = m_FieldName; | 3433 pNewData->sFieldName = m_FieldName; |
3434 pNewData->nControlIndex = m_nFormControlIndex; | 3434 pNewData->nControlIndex = m_nFormControlIndex; |
3435 pNewData->eProp = prop; | 3435 pNewData->eProp = prop; |
3436 | 3436 |
3437 for (int i = 0, sz = array.GetSize(); i < sz; i++) | 3437 for (int i = 0, sz = array.GetSize(); i < sz; i++) |
3438 pNewData->wordarray.Add(array.GetAt(i)); | 3438 pNewData->wordarray.Add(array.GetAt(i)); |
3439 | 3439 |
3440 m_pJSDoc->AddDelayData(pNewData); | 3440 m_pJSDoc->AddDelayData(pNewData); |
3441 } | 3441 } |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3593 } | 3593 } |
3594 } | 3594 } |
3595 | 3595 |
3596 void Field::AddField(CPDFSDK_Document* pDocument, | 3596 void Field::AddField(CPDFSDK_Document* pDocument, |
3597 int nPageIndex, | 3597 int nPageIndex, |
3598 int nFieldType, | 3598 int nFieldType, |
3599 const CFX_WideString& sName, | 3599 const CFX_WideString& sName, |
3600 const CFX_FloatRect& rcCoords) { | 3600 const CFX_FloatRect& rcCoords) { |
3601 // Not supported. | 3601 // Not supported. |
3602 } | 3602 } |
OLD | NEW |