Home
last modified time | relevance | path

Searched refs:pWidget (Results 1 – 25 of 68) sorted by relevance

123

/external/pdfium/xfa/fxfa/
Dcxfa_ffnotify.cpp63 CXFA_FFWidget* pWidget = m_pDoc->GetDocView()->GetWidgetForNode(pSender); in OnWidgetListItemAdded() local
64 for (; pWidget; pWidget = pWidget->GetNextFFWidget()) { in OnWidgetListItemAdded()
65 if (pWidget->IsLoaded()) in OnWidgetListItemAdded()
66 ToDropDown(ToField(pWidget))->InsertItem(wsLabel, iIndex); in OnWidgetListItemAdded()
75 CXFA_FFWidget* pWidget = m_pDoc->GetDocView()->GetWidgetForNode(pSender); in OnWidgetListItemRemoved() local
76 for (; pWidget; pWidget = pWidget->GetNextFFWidget()) { in OnWidgetListItemRemoved()
77 if (pWidget->IsLoaded()) in OnWidgetListItemRemoved()
78 ToDropDown(ToField(pWidget))->DeleteItem(iIndex); in OnWidgetListItemRemoved()
101 std::unique_ptr<CXFA_FFWidget> pWidget; in OnCreateContentLayoutItem() local
108 pWidget = pdfium::MakeUnique<CXFA_FFBarcode>( in OnCreateContentLayoutItem()
[all …]
Dcxfa_fwltheme.cpp40 CXFA_FFWidget* XFA_ThemeGetOuterWidget(CFWL_Widget* pWidget) { in XFA_ThemeGetOuterWidget() argument
41 CFWL_Widget* pOuter = pWidget ? pWidget->GetOutmost() : nullptr; in XFA_ThemeGetOuterWidget()
96 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pParams.m_pWidget); in DrawText() local
97 if (!pWidget) in DrawText()
126 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pParams.m_pWidget); in DrawText() local
127 if (!pWidget) in DrawText()
130 CXFA_Node* pNode = pWidget->GetNode(); in DrawText()
135 m_pTextOut->SetFont(pNode->GetFDEFont(pWidget->GetDoc())); in DrawText()
149 CXFA_FFWidget* pWidget = XFA_ThemeGetOuterWidget(pThemePart.m_pWidget); in GetUIMargin() local
150 if (!pWidget) in GetUIMargin()
[all …]
Dcxfa_ffpasswordedit.cpp28 CFWL_Edit* pWidget = pNewEdit.get(); in LoadWidget() local
30 pWidget->SetAdapterIface(this); in LoadWidget()
32 CFWL_NoteDriver* pNoteDriver = pWidget->GetOwnerApp()->GetNoteDriver(); in LoadWidget()
33 pNoteDriver->RegisterEventTarget(pWidget, pWidget); in LoadWidget()
34 m_pOldDelegate = pWidget->GetDelegate(); in LoadWidget()
35 pWidget->SetDelegate(this); in LoadWidget()
38 CFWL_Widget::ScopedUpdateLock update_lock(pWidget); in LoadWidget()
39 pWidget->SetText(m_pNode->GetValue(XFA_VALUEPICTURE_Display)); in LoadWidget()
47 CFWL_Edit* pWidget = static_cast<CFWL_Edit*>(GetNormalWidget()); in UpdateWidgetProperty() local
48 if (!pWidget) in UpdateWidgetProperty()
[all …]
Dcxfa_ffnumericedit.cpp29 CFWL_Edit* pWidget = pNewEdit.get(); in LoadWidget() local
31 pWidget->SetAdapterIface(this); in LoadWidget()
33 CFWL_NoteDriver* pNoteDriver = pWidget->GetOwnerApp()->GetNoteDriver(); in LoadWidget()
34 pNoteDriver->RegisterEventTarget(pWidget, pWidget); in LoadWidget()
35 m_pOldDelegate = pWidget->GetDelegate(); in LoadWidget()
36 pWidget->SetDelegate(this); in LoadWidget()
39 CFWL_Widget::ScopedUpdateLock update_lock(pWidget); in LoadWidget()
40 pWidget->SetText(m_pNode->GetValue(XFA_VALUEPICTURE_Display)); in LoadWidget()
48 CFWL_Edit* pWidget = static_cast<CFWL_Edit*>(GetNormalWidget()); in UpdateWidgetProperty() local
49 if (!pWidget) in UpdateWidgetProperty()
[all …]
Dcxfa_ffpageview.cpp71 bool PageWidgetFilter(CXFA_FFWidget* pWidget, in PageWidgetFilter() argument
75 CXFA_Node* pNode = pWidget->GetNode(); in PageWidgetFilter()
82 CXFA_ContentLayoutItem* pItem = pWidget->GetLayoutItem(); in PageWidgetFilter()
200 bool CXFA_FFPageWidgetIterator::SetCurrentWidget(CXFA_FFWidget* pWidget) { in SetCurrentWidget() argument
201 return pWidget && m_sIterator.SetCurrent(pWidget->GetLayoutItem()); in SetCurrentWidget()
206 CXFA_FFWidget* pWidget = XFA_GetWidgetFromLayoutItem(pLayoutItem); in GetWidget() local
207 if (!pWidget) in GetWidget()
210 if (!PageWidgetFilter(pWidget, m_dwFilter, false, m_bIgnoreRelevant)) in GetWidget()
213 if (!pWidget->IsLoaded() && in GetWidget()
214 pWidget->GetLayoutItem()->TestStatusBits(XFA_WidgetStatus_Visible)) { in GetWidget()
[all …]
Dcxfa_fwladapterwidgetmgr.cpp16 void CXFA_FWLAdapterWidgetMgr::RepaintWidget(CFWL_Widget* pWidget) { in RepaintWidget() argument
17 if (!pWidget) in RepaintWidget()
20 auto* pFFWidget = static_cast<CXFA_FFWidget*>(pWidget->GetAdapterIface()); in RepaintWidget()
27 bool CXFA_FWLAdapterWidgetMgr::GetPopupPos(CFWL_Widget* pWidget, in GetPopupPos() argument
32 auto* pFFWidget = static_cast<CXFA_FFWidget*>(pWidget->GetAdapterIface()); in GetPopupPos()
Dcxfa_ffdatetimeedit.cpp47 CFWL_DateTimePicker* pWidget = pNewPicker.get(); in LoadWidget() local
49 pWidget->SetAdapterIface(this); in LoadWidget()
51 CFWL_NoteDriver* pNoteDriver = pWidget->GetOwnerApp()->GetNoteDriver(); in LoadWidget()
52 pNoteDriver->RegisterEventTarget(pWidget, pWidget); in LoadWidget()
53 m_pOldDelegate = pWidget->GetDelegate(); in LoadWidget()
54 pWidget->SetDelegate(this); in LoadWidget()
57 CFWL_Widget::ScopedUpdateLock update_lock(pWidget); in LoadWidget()
59 pWidget->SetEditText(wsText); in LoadWidget()
69 pWidget->SetCurSel(date.GetYear(), date.GetMonth(), in LoadWidget()
185 void CXFA_FFDateTimeEdit::OnSelectChanged(CFWL_Widget* pWidget, in OnSelectChanged() argument
Dcxfa_ffpushbutton.cpp204 auto* pWidget = GetNormalWidget(); in OnDrawWidget() local
205 if (pWidget->GetStylesEx() & XFA_FWL_PSBSTYLEEXT_HiliteInverted) { in OnDrawWidget()
206 if ((pWidget->GetStates() & FWL_STATE_PSB_Pressed) && in OnDrawWidget()
207 (pWidget->GetStates() & FWL_STATE_PSB_Hovered)) { in OnDrawWidget()
208 CFX_RectF rtFill(0, 0, pWidget->GetWidgetRect().Size()); in OnDrawWidget()
219 if (pWidget->GetStylesEx() & XFA_FWL_PSBSTYLEEXT_HiliteOutLine) { in OnDrawWidget()
220 if ((pWidget->GetStates() & FWL_STATE_PSB_Pressed) && in OnDrawWidget()
221 (pWidget->GetStates() & FWL_STATE_PSB_Hovered)) { in OnDrawWidget()
227 CFX_RectF rect = pWidget->GetWidgetRect(); in OnDrawWidget()
Dcxfa_ffcombobox.h59 void OnTextChanged(CFWL_Widget* pWidget, const WideString& wsChanged);
60 void OnSelectChanged(CFWL_Widget* pWidget, bool bLButtonUp);
61 void OnPreOpen(CFWL_Widget* pWidget);
62 void OnPostOpen(CFWL_Widget* pWidget);
Dcxfa_fftextedit.cpp68 CFWL_Edit* pWidget = ToEdit(GetNormalWidget()); in UpdateWidgetProperty() local
69 if (!pWidget) in UpdateWidgetProperty()
98 pWidget->SetLimit(iMaxChars); in UpdateWidgetProperty()
101 pWidget->SetLimit(iMaxChars > 0 ? iMaxChars : 1); in UpdateWidgetProperty()
104 pWidget->SetLimit(*numCells); in UpdateWidgetProperty()
326 void CXFA_FFTextEdit::OnTextWillChange(CFWL_Widget* pWidget, in OnTextWillChange() argument
348 void CXFA_FFTextEdit::OnTextFull(CFWL_Widget* pWidget) { in OnTextFull() argument
Dcxfa_fwladapterwidgetmgr.h21 void RepaintWidget(CFWL_Widget* pWidget) override;
22 bool GetPopupPos(CFWL_Widget* pWidget,
Dcxfa_ffdocview.cpp197 CXFA_FFWidget* pWidget = GetWidgetForNode(pNode); in UpdateUIDisplay() local
199 for (; pWidget; pWidget = pNext) { in UpdateUIDisplay()
200 pNext = pWidget->GetNextFFWidget(); in UpdateUIDisplay()
201 if (pWidget == pExcept || !pWidget->IsLoaded() || in UpdateUIDisplay()
203 pWidget->IsFocused())) { in UpdateUIDisplay()
206 ObservedPtr<CXFA_FFWidget> pWatched(pWidget); in UpdateUIDisplay()
344 void CXFA_FFDocView::DeleteLayoutItem(CXFA_FFWidget* pWidget) { in DeleteLayoutItem() argument
345 if (m_pFocusNode != pWidget->GetNode()) in DeleteLayoutItem()
/external/pdfium/fpdfsdk/formfiller/
Dcffl_interactiveformfiller.cpp63 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot); in OnDraw() local
64 if (!IsVisible(pWidget)) in OnDraw()
102 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, in OnDraw()
106 if (!IsReadOnly(pWidget) && IsFillingAllowed(pWidget)) in OnDraw()
107 pWidget->DrawShadow(pDevice, pPageView); in OnDraw()
120 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot->Get()); in OnMouseEnter() local
121 if (pWidget->GetAAction(CPDF_AAction::kCursorEnter).GetDict()) { in OnMouseEnter()
124 uint32_t nValueAge = pWidget->GetValueAge(); in OnMouseEnter()
125 pWidget->ClearAppModified(); in OnMouseEnter()
131 pWidget->OnAAction(CPDF_AAction::kCursorEnter, &fa, pPageView); in OnMouseEnter()
[all …]
Dcffl_button.cpp12 CPDFSDK_Widget* pWidget) in CFFL_Button() argument
13 : CFFL_FormFiller(pFormFillEnv, pWidget), in CFFL_Button()
68 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot); in OnDraw() local
69 CPDF_FormControl* pCtrl = pWidget->GetFormControl(); in OnDraw()
71 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, in OnDraw()
76 if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Down)) { in OnDraw()
77 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Down, in OnDraw()
80 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, in OnDraw()
86 if (pWidget->IsWidgetAppearanceValid(CPDF_Annot::Rollover)) { in OnDraw()
87 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Rollover, in OnDraw()
[all …]
Dcffl_checkbox.cpp20 CPDFSDK_Widget* pWidget) in CFFL_CheckBox() argument
21 : CFFL_Button(pApp, pWidget) {} in CFFL_CheckBox()
68 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot); in OnChar() local
69 pWnd->SetCheck(!pWidget->IsChecked()); in OnChar()
90 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot); in OnLButtonUp() local
91 pWnd->SetCheck(!pWidget->IsChecked()); in OnLButtonUp()
Dcffl_interactiveformfiller.h98 static bool IsVisible(CPDFSDK_Widget* pWidget);
99 static bool IsReadOnly(CPDFSDK_Widget* pWidget);
148 void SetFocusAnnotTab(CPDFSDK_Annot* pWidget, bool bSameField, bool bNext);
163 bool IsFillingAllowed(CPDFSDK_Widget* pWidget) const;
182 CPDFSDK_Widget* GetWidget() const { return pWidget.Get(); } in GetWidget()
184 ObservedPtr<CPDFSDK_Widget> pWidget; variable
Dcffl_pushbutton.cpp16 CPDFSDK_Widget* pWidget) in CFFL_PushButton() argument
17 : CFFL_Button(pApp, pWidget) {} in CFFL_PushButton()
/external/pdfium/xfa/fwl/
Dcfwl_widgetmgr.cpp38 CFWL_Widget* CFWL_WidgetMgr::GetParentWidget(const CFWL_Widget* pWidget) const { in GetParentWidget()
39 Item* pItem = GetWidgetMgrItem(pWidget); in GetParentWidget()
40 return pItem && pItem->pParent ? pItem->pParent->pWidget : nullptr; in GetParentWidget()
43 CFWL_Widget* CFWL_WidgetMgr::GetOwnerWidget(const CFWL_Widget* pWidget) const { in GetOwnerWidget()
44 Item* pItem = GetWidgetMgrItem(pWidget); in GetOwnerWidget()
45 return pItem && pItem->pOwner ? pItem->pOwner->pWidget : nullptr; in GetOwnerWidget()
48 CFWL_Widget* CFWL_WidgetMgr::GetFirstSiblingWidget(CFWL_Widget* pWidget) const { in GetFirstSiblingWidget()
49 Item* pItem = GetWidgetMgrItem(pWidget); in GetFirstSiblingWidget()
56 return pItem ? pItem->pWidget : nullptr; in GetFirstSiblingWidget()
59 CFWL_Widget* CFWL_WidgetMgr::GetPriorSiblingWidget(CFWL_Widget* pWidget) const { in GetPriorSiblingWidget()
[all …]
Dcfwl_widgetmgr.h27 virtual void RepaintWidget(CFWL_Widget* pWidget) = 0;
28 virtual bool GetPopupPos(CFWL_Widget* pWidget,
41 void OnDrawWidget(CFWL_Widget* pWidget,
45 CFWL_Widget* GetParentWidget(const CFWL_Widget* pWidget) const;
46 CFWL_Widget* GetOwnerWidget(const CFWL_Widget* pWidget) const;
47 CFWL_Widget* GetNextSiblingWidget(CFWL_Widget* pWidget) const;
48 CFWL_Widget* GetFirstChildWidget(CFWL_Widget* pWidget) const;
49 CFWL_Widget* GetSystemFormWidget(CFWL_Widget* pWidget) const;
51 void RepaintWidget(CFWL_Widget* pWidget, const CFX_RectF& pRect);
54 void RemoveWidget(CFWL_Widget* pWidget);
[all …]
Dcfwl_message.h26 void SetSrcTarget(CFWL_Widget* pWidget) { m_pSrcTarget.Reset(pWidget); } in SetSrcTarget() argument
27 void SetDstTarget(CFWL_Widget* pWidget) { m_pDstTarget.Reset(pWidget); } in SetDstTarget() argument
Dcfwl_widget.cpp146 CFX_PointF CFWL_Widget::TransformTo(CFWL_Widget* pWidget, in TransformTo() argument
149 if (IsParent(pWidget)) { in TransformTo()
150 szOffset = GetOffsetFromParent(pWidget); in TransformTo()
152 szOffset = pWidget->GetOffsetFromParent(this); in TransformTo()
373 CFWL_Widget* pWidget = pMessage->GetDstTarget(); in OnProcessMessage() local
374 if (!pWidget) in OnProcessMessage()
380 CFWL_EventMouse evt(pWidget, pWidget); in OnProcessMessage()
382 pWidget->DispatchEvent(&evt); in OnProcessMessage()
Dcfwl_messagekillfocus.h21 bool IsFocusedOnWidget(const CFWL_Widget* pWidget) const { in IsFocusedOnWidget() argument
22 return pWidget == m_pSetFocus; in IsFocusedOnWidget()
/external/pdfium/fpdfsdk/
Dcpdfsdk_widgethandler.cpp34 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pAnnot); in CanAnswer() local
35 if (pWidget->IsSignatureWidget()) in CanAnswer()
38 if (!pWidget->IsVisible()) in CanAnswer()
41 int nFieldFlags = pWidget->GetFieldFlags(); in CanAnswer()
45 if (pWidget->GetFieldType() == FormFieldType::kPushButton) in CanAnswer()
48 CPDF_Page* pPage = pWidget->GetPDFPage(); in CanAnswer()
62 CPDFSDK_Widget* pWidget = new CPDFSDK_Widget(pAnnot, pPage, pForm); in NewAnnot() local
63 pForm->AddMap(pCtrl, pWidget); in NewAnnot()
65 pWidget->ResetAppearance(pdfium::nullopt, false); in NewAnnot()
66 return pWidget; in NewAnnot()
[all …]
Dcpdfsdk_interactiveform.cpp129 CPDFSDK_Widget* pWidget = nullptr; in GetWidget() local
132 pWidget = it->second; in GetWidget()
133 if (pWidget) in GetWidget()
134 return pWidget; in GetWidget()
172 CPDFSDK_Widget* pWidget = GetWidget(pFormCtrl); in GetWidgets() local
173 if (pWidget) in GetWidgets()
174 widgets->emplace_back(pWidget); in GetWidgets()
199 CPDFSDK_Widget* pWidget) { in AddMap() argument
200 m_Map[pControl] = pWidget; in AddMap()
234 if (CPDFSDK_Widget* pWidget = GetWidget(pFormCtrl)) in SynchronizeField() local
[all …]
/external/pdfium/fxjs/
Dcjs_field.cpp87 CPDFSDK_Widget* pWidget = ToCPDFSDKWidget(pObserved.Get()); in UpdateFormField() local
88 pWidget->GetInteractiveForm()->GetFormFillEnv()->UpdateAllViews( in UpdateFormField()
89 nullptr, pWidget); in UpdateFormField()
106 CPDFSDK_Widget* pWidget = pForm->GetWidget(pFormControl); in UpdateFormControl() local
108 if (pWidget) { in UpdateFormControl()
109 ObservedPtr<CPDFSDK_Widget> observed_widget(pWidget); in UpdateFormControl()
111 FormFieldType fieldType = pWidget->GetFieldType(); in UpdateFormControl()
114 Optional<WideString> sValue = pWidget->OnFormat(); in UpdateFormControl()
117 pWidget->ResetAppearance(sValue, false); in UpdateFormControl()
119 pWidget->ResetAppearance({}, false); in UpdateFormControl()
[all …]

123