Home
last modified time | relevance | path

Searched refs:pAnnot (Results 1 – 25 of 52) sorted by relevance

123

/external/pdfium/fpdfsdk/
Dfsdk_baseform_embeddertest.cpp49 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 …]
Dcpdfsdk_annothandlermgr.cpp43 CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot() argument
46 return GetAnnotHandler(pAnnot->GetSubtype())->NewAnnot(pAnnot, pPageView); in NewAnnot()
50 CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(CXFA_FFWidget* pAnnot, in NewAnnot() argument
52 ASSERT(pAnnot); in NewAnnot()
56 ->NewAnnot(pAnnot, pPageView); in NewAnnot()
60 void CPDFSDK_AnnotHandlerMgr::ReleaseAnnot(CPDFSDK_Annot* pAnnot) { in ReleaseAnnot() argument
61 IPDFSDK_AnnotHandler* pAnnotHandler = GetAnnotHandler(pAnnot); in ReleaseAnnot()
62 pAnnotHandler->ReleaseAnnot(pAnnot); in ReleaseAnnot()
65 void CPDFSDK_AnnotHandlerMgr::Annot_OnCreate(CPDFSDK_Annot* pAnnot) { in Annot_OnCreate() argument
66 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); in Annot_OnCreate()
[all …]
Dcpdfsdk_xfawidgethandler.cpp32 bool CPDFSDK_XFAWidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { in CanAnswer() argument
33 return !!pAnnot->GetXFAWidget(); in CanAnswer()
36 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot() argument
41 CPDFSDK_Annot* CPDFSDK_XFAWidgetHandler::NewAnnot(CXFA_FFWidget* pAnnot, in NewAnnot() argument
44 CPDFSDK_XFAWidget* pWidget = new CPDFSDK_XFAWidget(pAnnot, pPage, pInterForm); in NewAnnot()
45 pInterForm->AddXFAMap(pAnnot, pWidget); in NewAnnot()
50 CPDFSDK_Annot* pAnnot, in OnDraw() argument
55 ASSERT(pAnnot); in OnDraw()
61 if (pPageView->GetFormFillEnv()->GetFocusAnnot() != pAnnot) in OnDraw()
64 GetXFAWidgetHandler(pAnnot)->RenderWidget(pAnnot->GetXFAWidget(), &gs, mt, in OnDraw()
[all …]
Dcpdfsdk_widgethandler.cpp33 bool CPDFSDK_WidgetHandler::CanAnswer(CPDFSDK_Annot* pAnnot) { in CanAnswer() argument
34 ASSERT(pAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::WIDGET); in CanAnswer()
35 if (pAnnot->IsSignatureWidget()) in CanAnswer()
38 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 …]
Dcpdfsdk_baannothandler.cpp45 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 …]
Dcpdfsdk_pageview.cpp64 for (CPDFSDK_Annot* pAnnot : m_SDKAnnotArray) in ~CPDFSDK_PageView()
65 pAnnotHandlerMgr->ReleaseAnnot(pAnnot); in ~CPDFSDK_PageView()
174 bool CPDFSDK_PageView::DeleteAnnot(CPDFSDK_Annot* pAnnot) { argument
175 if (!pAnnot)
178 CPDFXFA_Page* pPage = pAnnot->GetPDFXFAPage();
182 CPDFSDK_Annot::ObservedPtr pObserved(pAnnot);
183 if (GetFocusAnnot() == pAnnot)
193 auto it = std::find(m_SDKAnnotArray.begin(), m_SDKAnnotArray.end(), pAnnot);
196 if (m_pCaptureWidget.Get() == pAnnot)
223 for (CPDFSDK_Annot* pAnnot : m_SDKAnnotArray) {
[all …]
Dcpdfsdk_xfawidgethandler.h28 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;
35 WideString GetSelectedText(CPDFSDK_Annot* pAnnot) override;
36 void ReplaceSelection(CPDFSDK_Annot* pAnnot, const WideString& text) override;
38 CPDFSDK_Annot* pAnnot,
41 CPDFSDK_Annot* pAnnot,
45 void OnLoad(CPDFSDK_Annot* pAnnot) override;
[all …]
Dcpdfsdk_annothandlermgr.h36 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 WideString Annot_GetSelectedText(CPDFSDK_Annot* pAnnot);
46 void Annot_ReplaceSelection(CPDFSDK_Annot* pAnnot, const WideString& text);
48 IPDFSDK_AnnotHandler* GetAnnotHandler(CPDFSDK_Annot* pAnnot) const;
50 CPDFSDK_Annot* pAnnot,
56 CPDFSDK_Annot::ObservedPtr* pAnnot,
[all …]
Dipdfsdk_annothandler.h26 virtual bool CanAnswer(CPDFSDK_Annot* pAnnot) = 0;
27 virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot,
35 virtual void ReleaseAnnot(CPDFSDK_Annot* pAnnot) = 0;
37 CPDFSDK_Annot* pAnnot) = 0;
38 virtual WideString GetSelectedText(CPDFSDK_Annot* pAnnot) = 0;
39 virtual void ReplaceSelection(CPDFSDK_Annot* pAnnot,
42 CPDFSDK_Annot* pAnnot,
45 CPDFSDK_Annot* pAnnot,
49 virtual void OnLoad(CPDFSDK_Annot* pAnnot) = 0;
52 CPDFSDK_Annot::ObservedPtr* pAnnot,
[all …]
Dcpdfsdk_baannothandler.h30 bool CanAnswer(CPDFSDK_Annot* pAnnot) override;
31 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPage) override;
36 void ReleaseAnnot(CPDFSDK_Annot* pAnnot) override;
38 CPDFSDK_Annot* pAnnot) override;
39 WideString GetSelectedText(CPDFSDK_Annot* pAnnot) override;
40 void ReplaceSelection(CPDFSDK_Annot* pAnnot, const WideString& text) override;
42 CPDFSDK_Annot* pAnnot,
45 CPDFSDK_Annot* pAnnot,
49 void OnLoad(CPDFSDK_Annot* pAnnot) override;
52 CPDFSDK_Annot::ObservedPtr* pAnnot,
[all …]
Dcpdfsdk_widgethandler.h31 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;
40 WideString GetSelectedText(CPDFSDK_Annot* pAnnot) override;
41 void ReplaceSelection(CPDFSDK_Annot* pAnnot, const WideString& text) override;
43 CPDFSDK_Annot* pAnnot,
46 CPDFSDK_Annot* pAnnot,
50 void OnLoad(CPDFSDK_Annot* pAnnot) override;
53 CPDFSDK_Annot::ObservedPtr* pAnnot,
[all …]
Dfpdfannot.cpp259 CPDF_AnnotContext* pAnnot = CPDFAnnotContextFromFPDFAnnotation(annot); in FPDFPage_GetAnnotIndex() local
260 if (!pPage || !pPage->m_pFormDict || !pAnnot || !pAnnot->GetAnnotDict()) in FPDFPage_GetAnnotIndex()
267 CPDF_Dictionary* pDict = pAnnot->GetAnnotDict(); in FPDFPage_GetAnnotIndex()
320 CPDF_AnnotContext* pAnnot = CPDFAnnotContextFromFPDFAnnotation(annot); in FPDFAnnot_UpdateObject() local
322 if (!pAnnot || !pAnnot->GetAnnotDict() || !pAnnot->HasForm() || !pObj) in FPDFAnnot_UpdateObject()
331 CPDF_Stream* pStream = FPDFDOC_GetAnnotAP(pAnnot->GetAnnotDict(), in FPDFAnnot_UpdateObject()
337 CPDF_Form* pForm = pAnnot->GetForm(); in FPDFAnnot_UpdateObject()
354 CPDF_AnnotContext* pAnnot = CPDFAnnotContextFromFPDFAnnotation(annot); in FPDFAnnot_AppendObject() local
356 if (!pAnnot || !pObj) in FPDFAnnot_AppendObject()
359 CPDF_Dictionary* pAnnotDict = pAnnot->GetAnnotDict(); in FPDFAnnot_AppendObject()
[all …]
Dcba_annotiterator.cpp17 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/
Dcffl_interactiveformfiller.cpp35 CPDFSDK_Annot* pAnnot, in Annot_HitTest() argument
37 return pAnnot->GetRect().Contains(point); in Annot_HitTest()
41 CPDFSDK_Annot* pAnnot) { in GetViewBBox() argument
42 if (CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false)) in GetViewBBox()
43 return pFormFiller->GetViewBBox(pPageView, pAnnot); in GetViewBBox()
47 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); in GetViewBBox()
57 CPDFSDK_Annot* pAnnot, in OnDraw() argument
61 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnDraw()
65 CFFL_FormFiller* pFormFiller = GetFormFiller(pAnnot, false); in OnDraw()
67 pFormFiller->OnDraw(pPageView, pAnnot, pDevice, *pUser2Device); in OnDraw()
[all …]
Dcffl_interactiveformfiller.h31 CPDFSDK_Annot* pAnnot,
33 FX_RECT GetViewBBox(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot);
35 CPDFSDK_Annot* pAnnot,
39 void OnDelete(CPDFSDK_Annot* pAnnot);
42 CPDFSDK_Annot::ObservedPtr* pAnnot,
45 CPDFSDK_Annot::ObservedPtr* pAnnot,
48 CPDFSDK_Annot::ObservedPtr* pAnnot,
52 CPDFSDK_Annot::ObservedPtr* pAnnot,
56 CPDFSDK_Annot::ObservedPtr* pAnnot,
60 CPDFSDK_Annot::ObservedPtr* pAnnot,
[all …]
Dcffl_button.cpp16 CPDFSDK_Annot* pAnnot) { in OnMouseEnter() argument
18 InvalidateRect(GetViewBBox(pPageView, pAnnot)); in OnMouseEnter()
22 CPDFSDK_Annot* pAnnot) { in OnMouseExit() argument
24 InvalidateRect(GetViewBBox(pPageView, pAnnot)); in OnMouseExit()
30 CPDFSDK_Annot* pAnnot, in OnLButtonDown() argument
33 if (!pAnnot->GetRect().Contains(point)) in OnLButtonDown()
38 InvalidateRect(GetViewBBox(pPageView, pAnnot)); in OnLButtonDown()
43 CPDFSDK_Annot* pAnnot, in OnLButtonUp() argument
46 if (!pAnnot->GetRect().Contains(point)) in OnLButtonUp()
51 InvalidateRect(GetViewBBox(pPageView, pAnnot)); in OnLButtonUp()
[all …]
Dcffl_formfiller.h30 CPDFSDK_Annot* pAnnot);
32 CPDFSDK_Annot* pAnnot,
36 CPDFSDK_Annot* pAnnot,
40 virtual void OnMouseEnter(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot);
41 virtual void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot);
44 CPDFSDK_Annot* pAnnot,
48 CPDFSDK_Annot* pAnnot,
52 CPDFSDK_Annot* pAnnot,
56 CPDFSDK_Annot* pAnnot,
60 CPDFSDK_Annot* pAnnot,
[all …]
Dcffl_formfiller.cpp50 CPDFSDK_Annot* pAnnot) { in GetViewBBox() argument
52 ASSERT(pAnnot); in GetViewBBox()
71 CPDFSDK_Annot* pAnnot, in OnDraw() argument
74 ASSERT(pAnnot->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnDraw()
83 CPDFSDK_Widget* pWidget = CPDFSDKAnnotToWidget(pAnnot); in OnDraw()
91 CPDFSDK_Annot* pAnnot, in OnDrawDeactive() argument
94 CPDFSDKAnnotToWidget(pAnnot)->DrawAppearance(pDevice, mtUser2Device, in OnDrawDeactive()
99 CPDFSDK_Annot* pAnnot) {} in OnMouseEnter() argument
102 CPDFSDK_Annot* pAnnot) { in OnMouseExit() argument
108 CPDFSDK_Annot* pAnnot, in OnLButtonDown() argument
[all …]
Dcffl_checkbox.cpp28 bool CFFL_CheckBox::OnKeyDown(CPDFSDK_Annot* pAnnot, in OnKeyDown() argument
36 return CFFL_FormFiller::OnKeyDown(pAnnot, nKeyCode, nFlags); in OnKeyDown()
39 bool CFFL_CheckBox::OnChar(CPDFSDK_Annot* pAnnot, in OnChar() argument
45 CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); in OnChar()
60 CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar()
64 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnChar()
71 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar()
76 CPDFSDK_Annot* pAnnot, in OnLButtonUp() argument
79 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point); in OnLButtonUp()
86 CPDFSDK_Widget* pWidget = static_cast<CPDFSDK_Widget*>(pAnnot); in OnLButtonUp()
Dcffl_button.h28 CPDFSDK_Annot* pAnnot) override;
29 void OnMouseExit(CPDFSDK_PageView* pPageView, CPDFSDK_Annot* pAnnot) override;
31 CPDFSDK_Annot* pAnnot,
35 CPDFSDK_Annot* pAnnot,
39 CPDFSDK_Annot* pAnnot,
43 CPDFSDK_Annot* pAnnot,
47 CPDFSDK_Annot* pAnnot,
Dcffl_radiobutton.cpp28 bool CFFL_RadioButton::OnKeyDown(CPDFSDK_Annot* pAnnot, in OnKeyDown() argument
36 return CFFL_FormFiller::OnKeyDown(pAnnot, nKeyCode, nFlags); in OnKeyDown()
40 bool CFFL_RadioButton::OnChar(CPDFSDK_Annot* pAnnot, in OnChar() argument
46 CPDFSDK_PageView* pPageView = pAnnot->GetPageView(); in OnChar()
56 CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar()
63 return CFFL_FormFiller::OnChar(pAnnot, nChar, nFlags); in OnChar()
68 CPDFSDK_Annot* pAnnot, in OnLButtonUp() argument
71 CFFL_Button::OnLButtonUp(pPageView, pAnnot, nFlags, point); in OnLButtonUp()
Dcffl_checkbox.h21 bool OnKeyDown(CPDFSDK_Annot* pAnnot,
24 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override;
26 CPDFSDK_Annot* pAnnot,
Dcffl_radiobutton.h21 bool OnKeyDown(CPDFSDK_Annot* pAnnot,
24 bool OnChar(CPDFSDK_Annot* pAnnot, uint32_t nChar, uint32_t nFlags) override;
26 CPDFSDK_Annot* pAnnot,
/external/pdfium/core/fpdfdoc/
Dcpdf_linklist.cpp41 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()
Dcpdf_annotlist.cpp30 std::unique_ptr<CPDF_Annot> CreatePopupAnnot(CPDF_Annot* pAnnot, in CreatePopupAnnot() argument
33 CPDF_Dictionary* pParentDict = pAnnot->GetAnnotDict(); in CreatePopupAnnot()
74 pAnnot->SetPopupAnnot(pPopupAnnot.get()); in CreatePopupAnnot()
170 for (const auto& pAnnot : m_AnnotList) { in DisplayPass() local
171 bool bWidget = pAnnot->GetSubtype() == CPDF_Annot::Subtype::WIDGET; in DisplayPass()
175 uint32_t annot_flags = pAnnot->GetFlags(); in DisplayPass()
186 CPDF_Dictionary* pAnnotDict = pAnnot->GetAnnotDict(); in DisplayPass()
197 matrix.TransformRect(pAnnot->GetRect()).GetOuterRect(); in DisplayPass()
203 pAnnot->DrawInContext(pPage, pContext, &matrix, CPDF_Annot::Normal); in DisplayPass()
204 } else if (!pAnnot->DrawAppearance(pPage, pDevice, matrix, in DisplayPass()
[all …]

123