/external/pdfium/fpdfsdk/formfiller/ |
D | cffl_interactiveformfiller.cpp | 61 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnDraw() local 62 if (!IsVisible(pWidget)) in OnDraw() 103 pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, in OnDraw() 107 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget)) in OnDraw() 108 pWidget->DrawShadow(pDevice, pPageView); in OnDraw() 121 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot->Get()); in OnMouseEnter() local 122 if (pWidget->GetAAction(CPDF_AAction::CursorEnter).GetDict()) { in OnMouseEnter() 125 uint32_t nValueAge = pWidget->GetValueAge(); in OnMouseEnter() 126 pWidget->ClearAppModified(); in OnMouseEnter() 132 pWidget->OnAAction(CPDF_AAction::CursorEnter, fa, pPageView); in OnMouseEnter() [all …]
|
D | cffl_button.cpp | 10 CPDFSDK_Widget* pWidget) in CFFL_Button() argument 11 : CFFL_FormFiller(pApp, pWidget), m_bMouseIn(false), m_bMouseDown(false) {} in CFFL_Button() 67 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnDraw() local 68 CPDF_FormControl* pCtrl = pWidget->GetFormControl(); in OnDraw() 70 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, in OnDraw() 75 if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Down)) { in OnDraw() 76 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Down, in OnDraw() 79 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, in OnDraw() 85 if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Rollover)) { in OnDraw() 86 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Rollover, in OnDraw() [all …]
|
D | cffl_checkbox.cpp | 16 CPDFSDK_Widget* pWidget) in CFFL_CheckBox() argument 17 : CFFL_Button(pApp, pWidget) {} in CFFL_CheckBox() 64 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnChar() local 65 pWnd->SetCheck(!pWidget->IsChecked()); in OnChar() 86 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnLButtonUp() local 87 pWnd->SetCheck(!pWidget->IsChecked()); in OnLButtonUp()
|
D | cffl_interactiveformfiller.h | 88 static bool IsVisible(CPDFSDK_Widget* pWidget); 89 static bool IsReadOnly(CPDFSDK_Widget* pWidget); 90 static bool IsFillingAllowed(CPDFSDK_Widget* pWidget); 93 bool OnKeyStrokeCommit(CPDFSDK_Annot::ObservedPtr* pWidget, 146 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, bool bSameField, bool bNext); 157 CPDFSDK_Widget* pWidget;
|
D | cffl_pushbutton.cpp | 13 CPDFSDK_Widget* pWidget) in CFFL_PushButton() argument 14 : CFFL_Button(pApp, pWidget) {} in CFFL_PushButton()
|
D | cffl_formfiller.cpp | 28 CPDFSDK_Widget* pWidget) in CFFL_FormFiller() argument 29 : m_pFormFillEnv(pFormFillEnv), m_pWidget(pWidget), m_bValid(false) { in CFFL_FormFiller() 83 CPDFSDK_Widget* pWidget = CPDFSDKAnnotToWidget(pAnnot); in OnDraw() local 84 if (!CFFL_InteractiveFormFiller::IsVisible(pWidget)) in OnDraw() 87 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, nullptr); in OnDraw() 249 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; in SetFocusForAnnot() local 250 UnderlyingPageType* pPage = pWidget->GetUnderlyingPage(); in SetFocusForAnnot() 348 pPrivateData->pWidget = m_pWidget.Get(); in GetPDFWindow()
|
D | cffl_textobject.cpp | 24 CPDFSDK_Widget* pWidget) in CFFL_TextObject() argument 25 : CFFL_FormFiller(pApp, pWidget) {} in CFFL_TextObject()
|
/external/pdfium/xfa/fxfa/ |
D | cxfa_ffnotify.cpp | 73 CXFA_FFWidget* pWidget = in OnWidgetListItemAdded() local 75 for (; pWidget; pWidget = pSender->GetNextWidget(pWidget)) { in OnWidgetListItemAdded() 76 if (pWidget->IsLoaded()) { in OnWidgetListItemAdded() 78 ToListBox(pWidget)->InsertItem(pLabel, iIndex); in OnWidgetListItemAdded() 80 ToComboBox(pWidget)->InsertItem(pLabel, iIndex); in OnWidgetListItemAdded() 90 CXFA_FFWidget* pWidget = in OnWidgetListItemRemoved() local 92 for (; pWidget; pWidget = pSender->GetNextWidget(pWidget)) { in OnWidgetListItemRemoved() 93 if (pWidget->IsLoaded()) { in OnWidgetListItemRemoved() 95 ToListBox(pWidget)->DeleteItem(iIndex); in OnWidgetListItemRemoved() 97 ToComboBox(pWidget)->DeleteItem(iIndex); in OnWidgetListItemRemoved() [all …]
|
D | cxfa_fwltheme.cpp | 40 CXFA_FFWidget* XFA_ThemeGetOuterWidget(CFWL_Widget* pWidget) { in XFA_ThemeGetOuterWidget() argument 41 CFWL_Widget* pOuter = pWidget; in XFA_ThemeGetOuterWidget() 91 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pParams->m_pWidget); in DrawText() local 92 if (!pWidget) in DrawText() 124 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pParams->m_pWidget); in DrawText() local 125 if (!pWidget) in DrawText() 128 CXFA_Node* pNode = pWidget->GetNode(); in DrawText() 136 m_pTextOut->SetFont(pNode->GetWidgetAcc()->GetFDEFont(pWidget->GetDoc())); in DrawText() 151 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pThemePart->m_pWidget); in GetUIMargin() local 152 if (!pWidget) in GetUIMargin() [all …]
|
D | cxfa_ffpageview.cpp | 70 bool PageWidgetFilter(CXFA_FFWidget* pWidget, in PageWidgetFilter() argument 74 CXFA_Node* pNode = pWidget->GetNode(); in PageWidgetFilter() 81 uint32_t dwStatus = pWidget->GetStatus(); in PageWidgetFilter() 205 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem); in GetWidget() local 206 if (!pWidget) in GetWidget() 209 if (!PageWidgetFilter(pWidget, m_dwFilter, false, m_bIgnorerelevant)) in GetWidget() 212 if (!pWidget->IsLoaded() && in GetWidget() 213 !!(pWidget->GetStatus() & XFA_WidgetStatus_Visible)) { in GetWidget() 214 if (!pWidget->LoadWidget()) in GetWidget() 217 return pWidget; in GetWidget() [all …]
|
D | cxfa_fwladapterwidgetmgr.cpp | 16 void CXFA_FWLAdapterWidgetMgr::RepaintWidget(CFWL_Widget* pWidget) { in RepaintWidget() argument 17 if (!pWidget) in RepaintWidget() 20 CXFA_FFWidget* pFFWidget = pWidget->GetLayoutItem(); in RepaintWidget() 27 bool CXFA_FWLAdapterWidgetMgr::GetPopupPos(CFWL_Widget* pWidget, in GetPopupPos() argument 32 CXFA_FFWidget* pFFWidget = pWidget->GetLayoutItem(); in GetPopupPos()
|
D | cxfa_ffnumericedit.cpp | 27 CFWL_Edit* pWidget = pNewEdit.get(); in LoadWidget() local 39 pWidget->SetText(m_pNode->GetWidgetAcc()->GetValue(XFA_VALUEPICTURE_Display)); in LoadWidget() 46 CFWL_Edit* pWidget = static_cast<CFWL_Edit*>(m_pNormalWidget.get()); in UpdateWidgetProperty() local 47 if (!pWidget) in UpdateWidgetProperty() 60 pWidget->SetLimit(*numCells); in UpdateWidgetProperty() 78 bool CXFA_FFNumericEdit::OnValidate(CFWL_Widget* pWidget, WideString& wsText) { in OnValidate() argument
|
D | cxfa_ffpasswordedit.cpp | 24 CFWL_Edit* pWidget = pNewEdit.get(); in LoadWidget() local 36 pWidget->SetText(m_pNode->GetWidgetAcc()->GetValue(XFA_VALUEPICTURE_Display)); in LoadWidget() 43 CFWL_Edit* pWidget = static_cast<CFWL_Edit*>(m_pNormalWidget.get()); in UpdateWidgetProperty() local 44 if (!pWidget) in UpdateWidgetProperty() 54 pWidget->SetAliasChar(password[0]); in UpdateWidgetProperty()
|
D | cxfa_ffdatetimeedit.cpp | 40 CFWL_DateTimePicker* pWidget = pNewPicker.get(); in LoadWidget() local 54 pWidget->SetEditText(wsText); in LoadWidget() 64 pWidget->SetCurSel(date.GetYear(), date.GetMonth(), date.GetDay()); in LoadWidget() 77 CFWL_DateTimePicker* pWidget = in UpdateWidgetProperty() local 79 if (!pWidget) in UpdateWidgetProperty() 91 pWidget->SetEditLimit(*numCells); in UpdateWidgetProperty() 98 pWidget->ModifyEditStylesEx(dwEditStyles, 0xFFFFFFFF); in UpdateWidgetProperty() 182 void CXFA_FFDateTimeEdit::OnSelectChanged(CFWL_Widget* pWidget, in OnSelectChanged() argument
|
D | cxfa_ffcombobox.h | 48 void OnTextChanged(CFWL_Widget* pWidget, const WideString& wsChanged); 49 void OnSelectChanged(CFWL_Widget* pWidget, bool bLButtonUp); 50 void OnPreOpen(CFWL_Widget* pWidget); 51 void OnPostOpen(CFWL_Widget* pWidget);
|
D | cxfa_fftextedit.cpp | 67 CFWL_Edit* pWidget = static_cast<CFWL_Edit*>(m_pNormalWidget.get()); in UpdateWidgetProperty() local 68 if (!pWidget) in UpdateWidgetProperty() 97 pWidget->SetLimit(iMaxChars); in UpdateWidgetProperty() 100 pWidget->SetLimit(iMaxChars > 0 ? iMaxChars : 1); in UpdateWidgetProperty() 103 pWidget->SetLimit(*numCells); in UpdateWidgetProperty() 295 void CXFA_FFTextEdit::OnTextChanged(CFWL_Widget* pWidget, in OnTextChanged() argument 321 void CXFA_FFTextEdit::OnTextFull(CFWL_Widget* pWidget) { in OnTextFull() argument
|
D | cxfa_fwladapterwidgetmgr.h | 20 void RepaintWidget(CFWL_Widget* pWidget); 21 bool GetPopupPos(CFWL_Widget* pWidget,
|
/external/pdfium/xfa/fwl/ |
D | cfwl_widgetmgr.cpp | 43 CFWL_Widget* CFWL_WidgetMgr::GetParentWidget(CFWL_Widget* pWidget) const { in GetParentWidget() 44 Item* pItem = GetWidgetMgrItem(pWidget); in GetParentWidget() 45 return pItem && pItem->pParent ? pItem->pParent->pWidget : nullptr; in GetParentWidget() 48 CFWL_Widget* CFWL_WidgetMgr::GetOwnerWidget(CFWL_Widget* pWidget) const { in GetOwnerWidget() 49 Item* pItem = GetWidgetMgrItem(pWidget); in GetOwnerWidget() 50 return pItem && pItem->pOwner ? pItem->pOwner->pWidget : nullptr; in GetOwnerWidget() 53 CFWL_Widget* CFWL_WidgetMgr::GetFirstSiblingWidget(CFWL_Widget* pWidget) const { in GetFirstSiblingWidget() 54 Item* pItem = GetWidgetMgrItem(pWidget); in GetFirstSiblingWidget() 61 return pItem ? pItem->pWidget : nullptr; in GetFirstSiblingWidget() 64 CFWL_Widget* CFWL_WidgetMgr::GetPriorSiblingWidget(CFWL_Widget* pWidget) const { in GetPriorSiblingWidget() [all …]
|
D | cfwl_widgetmgr.h | 32 void OnDrawWidget(CFWL_Widget* pWidget, 36 CFWL_Widget* GetParentWidget(CFWL_Widget* pWidget) const; 37 CFWL_Widget* GetOwnerWidget(CFWL_Widget* pWidget) const; 38 CFWL_Widget* GetNextSiblingWidget(CFWL_Widget* pWidget) const; 39 CFWL_Widget* GetFirstChildWidget(CFWL_Widget* pWidget) const; 40 CFWL_Widget* GetSystemFormWidget(CFWL_Widget* pWidget) const; 42 void RepaintWidget(CFWL_Widget* pWidget, const CFX_RectF& pRect); 45 void RemoveWidget(CFWL_Widget* pWidget); 57 void AddRedrawCounts(CFWL_Widget* pWidget); 63 void GetAdapterPopupPos(CFWL_Widget* pWidget, [all …]
|
D | cfwl_widget.cpp | 162 CFX_PointF CFWL_Widget::TransformTo(CFWL_Widget* pWidget, in TransformTo() argument 166 if (IsParent(pWidget)) { in TransformTo() 167 szOffset = GetOffsetFromParent(pWidget); in TransformTo() 169 szOffset = pWidget->GetOffsetFromParent(this); in TransformTo() 185 if (!pWidget) in TransformTo() 188 CFWL_Widget* form2 = m_pWidgetMgr->GetSystemFormWidget(pWidget); in TransformTo() 196 parent = pWidget->GetParent(); in TransformTo() 200 return pWidget->GetMatrix().GetInverse().Transform(ret) - in TransformTo() 201 pWidget->GetWidgetRect().TopLeft(); in TransformTo() 598 CFWL_Widget* pWidget = pMessage->m_pDstTarget; in OnProcessMessage() local [all …]
|
D | cfwl_notedriver.cpp | 94 CFWL_Widget* pWidget = in SetFocus() local 96 CFWL_Form* pForm = static_cast<CFWL_Form*>(pWidget); in SetFocus() 138 for (CFWL_Widget* pWidget : m_Forms) { in NotifyTargetDestroy() 139 CFWL_Form* pForm = static_cast<CFWL_Form*>(pWidget); in NotifyTargetDestroy() 248 CFWL_Widget* pWidget = pMessage->m_pDstTarget; in DoSetFocus() local 249 if (!pWidget) in DoSetFocus() 252 CFWL_Form* pForm = static_cast<CFWL_Form*>(pWidget); in DoSetFocus() 413 for (CFWL_Widget* pWidget : m_Forms) { in IsValidMessage() 414 CFWL_Form* pForm = static_cast<CFWL_Form*>(pWidget); in IsValidMessage()
|
/external/pdfium/fpdfsdk/ |
D | cpdfsdk_widgethandler.cpp | 38 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in CanAnswer() local 39 if (!pWidget->IsVisible()) in CanAnswer() 42 int nFieldFlags = pWidget->GetFieldFlags(); in CanAnswer() 46 if (pWidget->GetFieldType() == FormFieldType::kPushButton) in CanAnswer() 49 CPDF_Page* pPage = pWidget->GetPDFPage(); in CanAnswer() 63 CPDFSDK_Widget* pWidget = new CPDFSDK_Widget(pAnnot, pPage, pInterForm); in NewAnnot() local 64 pInterForm->AddMap(pCtrl, pWidget); in NewAnnot() 67 pWidget->ResetAppearance(nullptr, false); in NewAnnot() 69 return pWidget; in NewAnnot() 85 std::unique_ptr<CPDFSDK_Widget> pWidget(static_cast<CPDFSDK_Widget*>(pAnnot)); in ReleaseAnnot() local [all …]
|
D | cpdfsdk_interform.cpp | 105 CPDFSDK_Widget* CPDFSDK_InterForm::GetSibling(CPDFSDK_Widget* pWidget, in GetSibling() argument 108 pWidget->GetPageView(), CPDF_Annot::Subtype::WIDGET); in GetSibling() 111 return static_cast<CPDFSDK_Widget*>(pIterator->GetNextAnnot(pWidget)); in GetSibling() 113 return static_cast<CPDFSDK_Widget*>(pIterator->GetPrevAnnot(pWidget)); in GetSibling() 120 CPDFSDK_Widget* pWidget = nullptr; in GetWidget() local 123 pWidget = it->second; in GetWidget() 124 if (pWidget) in GetWidget() 125 return pWidget; in GetWidget() 165 CPDFSDK_Widget* pWidget = GetWidget(pFormCtrl); in GetWidgets() local 166 if (pWidget) in GetWidgets() [all …]
|
D | cpdfsdk_xfawidgethandler.cpp | 44 CPDFSDK_XFAWidget* pWidget = new CPDFSDK_XFAWidget(pAnnot, pPage, pInterForm); in NewAnnot() local 45 pInterForm->AddXFAMap(pAnnot, pWidget); in NewAnnot() 46 return pWidget; in NewAnnot() 73 CPDFSDK_XFAWidget* pWidget = reinterpret_cast<CPDFSDK_XFAWidget*>(pAnnot); in ReleaseAnnot() local 74 CPDFSDK_InterForm* pInterForm = pWidget->GetInterForm(); in ReleaseAnnot() 75 pInterForm->RemoveXFAMap(pWidget->GetXFAWidget()); in ReleaseAnnot() 77 delete pWidget; in ReleaseAnnot()
|
/external/pdfium/fxjs/ |
D | cjs_field.cpp | 26 bool SetWidgetDisplayStatus(CPDFSDK_Widget* pWidget, int value) { in SetWidgetDisplayStatus() argument 27 if (!pWidget) in SetWidgetDisplayStatus() 30 uint32_t dwFlag = pWidget->GetFlags(); in SetWidgetDisplayStatus() 56 if (dwFlag != pWidget->GetFlags()) { in SetWidgetDisplayStatus() 57 pWidget->SetFlags(dwFlag); in SetWidgetDisplayStatus() 307 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pObserved.Get()); in UpdateFormField() local 308 pWidget->GetInterForm()->GetFormFillEnv()->UpdateAllViews(nullptr, in UpdateFormField() 309 pWidget); in UpdateFormField() 326 CPDFSDK_Widget* pWidget = pForm->GetWidget(pFormControl); in UpdateFormControl() local 328 if (pWidget) { in UpdateFormControl() [all …]
|