/external/pdfium/fpdfsdk/ |
D | fsdk_baseform_embeddertest.cpp | 49 CPDFSDK_Annot* pAnnot = iter.GetFirstAnnot(); in TEST_F() local 50 CheckRect(pAnnot->GetRect(), RightTop); in TEST_F() 51 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F() 52 CheckRect(pAnnot->GetRect(), LeftTop); in TEST_F() 53 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F() 54 CheckRect(pAnnot->GetRect(), RightBottom); in TEST_F() 55 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F() 56 CheckRect(pAnnot->GetRect(), LeftBottom); in TEST_F() 57 pAnnot = iter.GetNextAnnot(pAnnot); in TEST_F() 58 EXPECT_EQ(iter.GetFirstAnnot(), pAnnot); in TEST_F() [all …]
|
D | cpdfsdk_annothandlermgr.cpp | 41 CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot() argument 44 return GetAnnotHandler(pAnnot->GetSubtype())->NewAnnot(pAnnot, pPageView); in NewAnnot() 48 CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(CXFA_FFWidget* pAnnot, in NewAnnot() argument 50 ASSERT(pAnnot); in NewAnnot() 54 ->NewAnnot(pAnnot, pPageView); in NewAnnot() 58 void CPDFSDK_AnnotHandlerMgr::ReleaseAnnot(CPDFSDK_Annot* pAnnot) { in ReleaseAnnot() argument 59 IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot); in ReleaseAnnot() 60 pAnnotHandler->ReleaseAnnot(pAnnot); in ReleaseAnnot() 63 void CPDFSDK_AnnotHandlerMgr::Annot_OnCreate(CPDFSDK_Annot* pAnnot) { in Annot_OnCreate() argument 64 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); in Annot_OnCreate() [all …]
|
D | cpdfsdk_xfawidgethandler.cpp | 31 bool CPDFSDK_XFAWidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { in CanAnswer() argument 32 return !!pAnnot->GetXFAWidget(); in CanAnswer() 35 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot() argument 40 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CXFA_FFWidget* pAnnot, in NewAnnot() argument 43 CPDFSDK_XFAWidget* pWidget = new CPDFSDK_XFAWidget(pAnnot, pPage, pInterForm); in NewAnnot() 44 pInterForm->AddXFAMap(pAnnot, pWidget); in NewAnnot() 49 CPDFSDK_Annot* pAnnot, in OnDraw() argument 54 ASSERT(pAnnot); in OnDraw() 60 if (pPageView->GetFormFillEnv()->GetFocusAnnot() != pAnnot) in OnDraw() 63 GetXFAWidgetHandler(pAnnot)->RenderWidget(pAnnot->GetXFAWidget(), &gs, &mt, in OnDraw() [all …]
|
D | cpdfsdk_widgethandler.cpp | 32 bool CPDFSDK_WidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { in CanAnswer() argument 33 ASSERT(pAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::WIDGET); in CanAnswer() 34 if (pAnnot->IsSignatureWidget()) in CanAnswer() 37 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in CanAnswer() 55 CPDFSDK_Annot* CPDFSDK_WidgetHandler::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot() argument 59 pInterForm->GetInterForm(), pAnnot->GetAnnotDict()); in NewAnnot() 63 CPDFSDK_Widget* pWidget = new CPDFSDK_Widget(pAnnot, pPage, pInterForm); in NewAnnot() 79 void CPDFSDK_WidgetHandler::ReleaseAnnot(CPDFSDK_Annot* pAnnot) { in ReleaseAnnot() argument 80 ASSERT(pAnnot); in ReleaseAnnot() 83 m_pFormFiller->OnDelete(pAnnot); in ReleaseAnnot() [all …]
|
D | cpdfsdk_baannothandler.cpp | 45 bool CPDFSDK_BAAnnotHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { in CanAnswer() argument 49 CPDFSDK_Annot* CPDFSDK_BAAnnotHandler::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot() argument 51 return new CPDFSDK_BAAnnot(pAnnot, pPage); in NewAnnot() 61 void CPDFSDK_BAAnnotHandler::ReleaseAnnot(CPDFSDK_Annot* pAnnot) { in ReleaseAnnot() argument 62 delete pAnnot; in ReleaseAnnot() 66 CPDFSDK_Annot* pAnnot, in OnDraw() argument 71 if (pAnnot->IsXFAField()) in OnDraw() 74 if (bDrawAnnots && pAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::POPUP) { in OnDraw() 75 static_cast<CPDFSDK_BAAnnot*>(pAnnot)->DrawAppearance( in OnDraw() 81 CPDFSDK_Annot::ObservedPtr* pAnnot, in OnMouseEnter() argument [all …]
|
D | cpdfsdk_xfawidgethandler.h | 28 bool CanAnswer(CPDFSDK_Annot* pAnnot) override; 29 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; 30 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, 32 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; 34 CPDFSDK_Annot* pAnnot) override; 36 CPDFSDK_Annot* pAnnot, 39 CPDFSDK_Annot* pAnnot, 43 void OnLoad(CPDFSDK_Annot* pAnnot) override; 45 CPDFSDK_Annot::ObservedPtr* pAnnot, 48 CPDFSDK_Annot::ObservedPtr* pAnnot, [all …]
|
D | cpdfsdk_annothandlermgr.h | 36 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView); 38 CPDFSDK_Annot* NewAnnot(CXFA_FFWidget* pAnnot, CPDFSDK_PageView* pPageView); 40 void ReleaseAnnot(CPDFSDK_Annot* pAnnot); 42 void Annot_OnCreate(CPDFSDK_Annot* pAnnot); 43 void Annot_OnLoad(CPDFSDK_Annot* pAnnot); 45 IPDFSDK_AnnotHandler* GetAnnotHandler(CPDFSDK_Annot* pAnnot) const; 47 CPDFSDK_Annot* pAnnot, 53 CPDFSDK_Annot::ObservedPtr* pAnnot, 56 CPDFSDK_Annot::ObservedPtr* pAnnot, 59 CPDFSDK_Annot::ObservedPtr* pAnnot, [all …]
|
D | ipdfsdk_annothandler.h | 27 virtual bool CanAnswer(CPDFSDK_Annot* pAnnot) = 0; 28 virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, 36 virtual void ReleaseAnnot(CPDFSDK_Annot* pAnnot) = 0; 38 CPDFSDK_Annot* pAnnot) = 0; 40 CPDFSDK_Annot* pAnnot, 43 CPDFSDK_Annot* pAnnot, 47 virtual void OnLoad(CPDFSDK_Annot* pAnnot) = 0; 50 CPDFSDK_Annot::ObservedPtr* pAnnot, 53 CPDFSDK_Annot::ObservedPtr* pAnnot, 56 CPDFSDK_Annot::ObservedPtr* pAnnot, [all …]
|
D | cpdfsdk_baannothandler.h | 31 bool CanAnswer(CPDFSDK_Annot* pAnnot) override; 32 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; 37 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; 39 CPDFSDK_Annot* pAnnot) override; 41 CPDFSDK_Annot* pAnnot, 44 CPDFSDK_Annot* pAnnot, 48 void OnLoad(CPDFSDK_Annot* pAnnot) override; 51 CPDFSDK_Annot::ObservedPtr* pAnnot, 54 CPDFSDK_Annot::ObservedPtr* pAnnot, 57 CPDFSDK_Annot::ObservedPtr* pAnnot, [all …]
|
D | cpdfsdk_widgethandler.h | 31 bool CanAnswer(CPDFSDK_Annot* pAnnot) override; 32 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override; 37 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override; 39 CPDFSDK_Annot* pAnnot) override; 41 CPDFSDK_Annot* pAnnot, 44 CPDFSDK_Annot* pAnnot, 48 void OnLoad(CPDFSDK_Annot* pAnnot) override; 51 CPDFSDK_Annot::ObservedPtr* pAnnot, 54 CPDFSDK_Annot::ObservedPtr* pAnnot, 57 CPDFSDK_Annot::ObservedPtr* pAnnot, [all …]
|
D | cpdfsdk_pageview.cpp | 70 for (CPDFSDK_Annot* pAnnot : m_SDKAnnotArray) in ~CPDFSDK_PageView() 71 pAnnotHandlerMgr->ReleaseAnnot(pAnnot); in ~CPDFSDK_PageView() 181 bool CPDFSDK_PageView::DeleteAnnot(CPDFSDK_Annot* pAnnot) { argument 182 if (!pAnnot) 184 CPDFXFA_Page* pPage = pAnnot->GetPDFXFAPage(); 189 if (GetFocusAnnot() == pAnnot) 193 pAnnotHandler->ReleaseAnnot(pAnnot); 195 auto it = std::find(m_SDKAnnotArray.begin(), m_SDKAnnotArray.end(), pAnnot); 198 if (m_pCaptureWidget.Get() == pAnnot) 225 for (CPDFSDK_Annot* pAnnot : m_SDKAnnotArray) { [all …]
|
D | cba_annotiterator.cpp | 17 CFX_FloatRect GetAnnotRect(const CPDFSDK_Annot* pAnnot) { in GetAnnotRect() argument 18 return pAnnot->GetPDFAnnot()->GetRect(); in GetAnnotRect() 56 CPDFSDK_Annot* CBA_AnnotIterator::GetNextAnnot(CPDFSDK_Annot* pAnnot) { in GetNextAnnot() argument 57 auto iter = std::find(m_Annots.begin(), m_Annots.end(), pAnnot); in GetNextAnnot() 66 CPDFSDK_Annot* CBA_AnnotIterator::GetPrevAnnot(CPDFSDK_Annot* pAnnot) { in GetPrevAnnot() argument 67 auto iter = std::find(m_Annots.begin(), m_Annots.end(), pAnnot); in GetPrevAnnot() 76 for (auto pAnnot : m_pPageView->GetAnnotList()) { in CollectAnnots() local 77 if (pAnnot->GetAnnotSubtype() == m_nAnnotSubtype && in CollectAnnots() 78 !pAnnot->IsSignatureWidget()) { in CollectAnnots() 79 pArray->push_back(pAnnot); in CollectAnnots()
|
/external/pdfium/fpdfsdk/formfiller/ |
D | cffl_interactiveformfiller.cpp | 36 CPDFSDK_Annot* pAnnot, in Annot_HitTest() argument 38 return pAnnot->GetRect().Contains(point); in Annot_HitTest() 42 CPDFSDK_Annot* pAnnot) { in GetViewBBox() argument 43 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false)) in GetViewBBox() 44 return pFormFiller->GetViewBBox(pPageView, pAnnot); in GetViewBBox() 48 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); in GetViewBBox() 54 CPDFSDK_Annot* pAnnot, in OnDraw() argument 58 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; in OnDraw() 63 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false)) { in OnDraw() 65 pFormFiller->OnDraw(pPageView, pAnnot, pDevice, pUser2Device); in OnDraw() [all …]
|
D | cffl_interactiveformfiller.h | 29 CPDFSDK_Annot* pAnnot, 31 FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); 33 CPDFSDK_Annot* pAnnot, 37 void OnDelete(CPDFSDK_Annot* pAnnot); 40 CPDFSDK_Annot::ObservedPtr* pAnnot, 43 CPDFSDK_Annot::ObservedPtr* pAnnot, 46 CPDFSDK_Annot::ObservedPtr* pAnnot, 50 CPDFSDK_Annot::ObservedPtr* pAnnot, 54 CPDFSDK_Annot::ObservedPtr* pAnnot, 58 CPDFSDK_Annot::ObservedPtr* pAnnot, [all …]
|
D | cffl_formfiller.h | 24 CPDFSDK_Annot* pAnnot); 28 CPDFSDK_Annot* pAnnot); 30 CPDFSDK_Annot* pAnnot, 34 CPDFSDK_Annot* pAnnot, 38 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); 39 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot); 42 CPDFSDK_Annot* pAnnot, 46 CPDFSDK_Annot* pAnnot, 50 CPDFSDK_Annot* pAnnot, 54 CPDFSDK_Annot* pAnnot, [all …]
|
D | cffl_formfiller.cpp | 25 CPDFSDK_Annot* pAnnot) in CFFL_FormFiller() argument 26 : m_pFormFillEnv(pFormFillEnv), m_pAnnot(pAnnot), m_bValid(false) { in CFFL_FormFiller() 27 m_pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in CFFL_FormFiller() 62 CPDFSDK_Annot* pAnnot) { in GetViewBBox() argument 64 ASSERT(pAnnot); in GetViewBBox() 85 CPDFSDK_Annot* pAnnot, in OnDraw() argument 88 ASSERT(pAnnot->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnDraw() 95 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; in OnDraw() 103 CPDFSDK_Annot* pAnnot, in OnDrawDeactive() argument 106 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; in OnDrawDeactive() [all …]
|
D | cffl_checkbox.cpp | 29 bool CFFL_CheckBox::OnKeyDown(CPDFSDK_Annot* pAnnot, in OnKeyDown() argument 37 return CFFL_FormFiller::OnKeyDown(pAnnot, nKeyCode, nFlags); in OnKeyDown() 40 bool CFFL_CheckBox::OnChar(CPDFSDK_Annot* pAnnot, in OnChar() argument 46 CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); in OnChar() 61 CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar() 69 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar() 74 CPDFSDK_Annot* pAnnot, in OnLButtonUp() argument 77 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point); in OnLButtonUp() 81 CPDFSDK_Widget* pWidget = (CPDFSDK_Widget*)pAnnot; in OnLButtonUp()
|
D | cffl_pushbutton.cpp | 13 CPDFSDK_Annot* pAnnot) in CFFL_PushButton() argument 14 : CFFL_Button(pApp, pAnnot) {} in CFFL_PushButton() 26 bool CFFL_PushButton::OnChar(CPDFSDK_Annot* pAnnot, in OnChar() argument 29 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar() 33 CPDFSDK_Annot* pAnnot, in OnDraw() argument 36 CFFL_Button::OnDraw(pPageView, pAnnot, pDevice, pUser2Device); in OnDraw()
|
D | cffl_radiobutton.cpp | 31 bool CFFL_RadioButton::OnKeyDown(CPDFSDK_Annot* pAnnot, in OnKeyDown() argument 39 return CFFL_FormFiller::OnKeyDown(pAnnot, nKeyCode, nFlags); in OnKeyDown() 43 bool CFFL_RadioButton::OnChar(CPDFSDK_Annot* pAnnot, in OnChar() argument 49 CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); in OnChar() 60 CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar() 68 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar() 73 CPDFSDK_Annot* pAnnot, in OnLButtonUp() argument 76 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point); in OnLButtonUp()
|
D | cffl_radiobutton.h | 14 CFFL_RadioButton(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Annot* pAnnot); 20 bool OnKeyDown(CPDFSDK_Annot* pAnnot, 23 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; 25 CPDFSDK_Annot* pAnnot,
|
D | cffl_pushbutton.h | 14 CFFL_PushButton(CPDFSDK_FormFillEnvironment* pApp, CPDFSDK_Annot* pAnnot); 20 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; 22 CPDFSDK_Annot* pAnnot,
|
D | cffl_checkbox.h | 20 bool OnKeyDown(CPDFSDK_Annot* pAnnot, 23 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override; 25 CPDFSDK_Annot* pAnnot,
|
D | cffl_textfield.cpp | 16 CPDFSDK_Annot* pAnnot) in CFFL_TextField() argument 17 : CFFL_FormFiller(pApp, pAnnot) {} in CFFL_TextField() 108 bool CFFL_TextField::OnChar(CPDFSDK_Annot* pAnnot, in OnChar() argument 117 m_pFormFillEnv->Invalidate(pAnnot->GetUnderlyingPage(), in OnChar() 118 pAnnot->GetRect().ToFxRect()); in OnChar() 140 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar()
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_annotlist.cpp | 28 std::unique_ptr<CPDF_Annot> CreatePopupAnnot(CPDF_Annot* pAnnot, in CreatePopupAnnot() argument 30 CPDF_Dictionary* pParentDict = pAnnot->GetAnnotDict(); in CreatePopupAnnot() 58 pAnnot->SetPopupAnnot(pPopupAnnot.get()); in CreatePopupAnnot() 113 for (const auto& pAnnot : m_AnnotList) { in DisplayPass() local 114 bool bWidget = pAnnot->GetSubtype() == CPDF_Annot::Subtype::WIDGET; in DisplayPass() 118 uint32_t annot_flags = pAnnot->GetFlags(); in DisplayPass() 130 CPDF_Dictionary* pAnnotDict = pAnnot->GetAnnotDict(); in DisplayPass() 136 CFX_FloatRect annot_rect_f = pAnnot->GetRect(); in DisplayPass() 147 pAnnot->DrawInContext(pPage, pContext, &matrix, CPDF_Annot::Normal); in DisplayPass() 148 } else if (!pAnnot->DrawAppearance(pPage, pDevice, &matrix, in DisplayPass() [all …]
|
D | cpdf_linklist.cpp | 41 CPDF_Dictionary* pAnnot = (*pPageLinkList)[annot_index]; in GetLinkAtPoint() local 42 if (!pAnnot) in GetLinkAtPoint() 45 CPDF_Link link(pAnnot); in GetLinkAtPoint() 63 CPDF_Dictionary* pAnnot = pAnnotList->GetDictAt(i); in LoadPageLinks() local 64 bool add_link = (pAnnot && pAnnot->GetStringFor("Subtype") == "Link"); in LoadPageLinks() 66 pList->push_back(add_link ? pAnnot : nullptr); in LoadPageLinks()
|