Home
last modified time | relevance | path

Searched refs:CPDF_Annot (Results 1 – 25 of 42) sorted by relevance

12

/external/pdfium/core/fpdfdoc/
Dcpdf_annot.cpp29 bool IsTextMarkupAnnotation(CPDF_Annot::Subtype type) { in IsTextMarkupAnnotation()
30 return type == CPDF_Annot::Subtype::HIGHLIGHT || in IsTextMarkupAnnotation()
31 type == CPDF_Annot::Subtype::SQUIGGLY || in IsTextMarkupAnnotation()
32 type == CPDF_Annot::Subtype::STRIKEOUT || in IsTextMarkupAnnotation()
33 type == CPDF_Annot::Subtype::UNDERLINE; in IsTextMarkupAnnotation()
43 return !CPDF_Annot::IsAnnotationHidden(pAnnotDict); in ShouldGenerateAPForAnnotation()
47 CPDF_Annot* pAnnot, in AnnotGetMatrix()
48 CPDF_Annot::AppearanceMode mode, in AnnotGetMatrix()
64 CPDF_Annot::AppearanceMode eMode, in FPDFDOC_GetAnnotAPInternal()
71 if (eMode == CPDF_Annot::Down) in FPDFDOC_GetAnnotAPInternal()
[all …]
Dcpdf_annot.h32 class CPDF_Annot {
67 static CPDF_Annot::Subtype StringToAnnotSubtype(const ByteString& sSubtype);
68 static ByteString AnnotSubtypeToString(CPDF_Annot::Subtype nSubtype);
72 CPDF_Annot(std::unique_ptr<CPDF_Dictionary> pDict, CPDF_Document* pDocument);
73 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument);
74 ~CPDF_Annot();
76 CPDF_Annot::Subtype GetSubtype() const;
98 CPDF_Annot* GetPopupAnnot() const { return m_pPopupAnnot; } in GetPopupAnnot()
99 void SetPopupAnnot(CPDF_Annot* pAnnot) { m_pPopupAnnot = pAnnot; } in SetPopupAnnot()
110 CPDF_Annot::Subtype m_nSubtype;
[all …]
Dcpdf_annotlist.cpp30 std::unique_ptr<CPDF_Annot> CreatePopupAnnot(CPDF_Annot* pAnnot, in CreatePopupAnnot()
73 pdfium::MakeUnique<CPDF_Annot>(std::move(pAnnotDict), pDocument); in CreatePopupAnnot()
144 m_AnnotList.push_back(pdfium::MakeUnique<CPDF_Annot>(pDict, m_pDocument)); in CPDF_AnnotList()
153 std::unique_ptr<CPDF_Annot> pPopupAnnot( in CPDF_AnnotList()
171 bool bWidget = pAnnot->GetSubtype() == CPDF_Annot::Subtype::WIDGET; in DisplayPass()
203 pAnnot->DrawInContext(pPage, pContext, &matrix, CPDF_Annot::Normal); in DisplayPass()
205 CPDF_Annot::Normal, pOptions)) { in DisplayPass()
Dcpdf_annotlist.h17 class CPDF_Annot; variable
45 CPDF_Annot* GetAt(size_t index) const { return m_AnnotList[index].get(); } in GetAt()
46 const std::vector<std::unique_ptr<CPDF_Annot>>& All() const { in All()
61 std::vector<std::unique_ptr<CPDF_Annot>> m_AnnotList;
Dcpvt_generateap.cpp519 ? CPDF_Annot::RectFromQuadPoints(pAnnotDict) in GenerateAndSetAPDict()
606 CFX_FloatRect rect = CPDF_Annot::RectFromQuadPoints(pAnnotDict); in GenerateHighlightAP()
708 CFX_FloatRect rect = CPDF_Annot::RectFromQuadPoints(pAnnotDict); in GenerateUnderlineAP()
817 CFX_FloatRect rect = CPDF_Annot::RectFromQuadPoints(pAnnotDict); in GenerateSquigglyAP()
865 CFX_FloatRect rect = CPDF_Annot::RectFromQuadPoints(pAnnotDict); in GenerateStrikeOutAP()
1325 bool CPVT_GenerateAP::GenerateAnnotAP(CPDF_Annot::Subtype subtype, in GenerateAnnotAP()
1329 case CPDF_Annot::Subtype::CIRCLE: in GenerateAnnotAP()
1331 case CPDF_Annot::Subtype::HIGHLIGHT: in GenerateAnnotAP()
1333 case CPDF_Annot::Subtype::INK: in GenerateAnnotAP()
1335 case CPDF_Annot::Subtype::POPUP: in GenerateAnnotAP()
[all …]
/external/pdfium/fpdfsdk/
Dfpdfannot.cpp31 static_assert(static_cast<int>(CPDF_Annot::Subtype::UNKNOWN) ==
34 static_assert(static_cast<int>(CPDF_Annot::Subtype::TEXT) == FPDF_ANNOT_TEXT,
36 static_assert(static_cast<int>(CPDF_Annot::Subtype::LINK) == FPDF_ANNOT_LINK,
38 static_assert(static_cast<int>(CPDF_Annot::Subtype::FREETEXT) ==
41 static_assert(static_cast<int>(CPDF_Annot::Subtype::LINE) == FPDF_ANNOT_LINE,
43 static_assert(static_cast<int>(CPDF_Annot::Subtype::SQUARE) ==
46 static_assert(static_cast<int>(CPDF_Annot::Subtype::CIRCLE) ==
49 static_assert(static_cast<int>(CPDF_Annot::Subtype::POLYGON) ==
52 static_assert(static_cast<int>(CPDF_Annot::Subtype::POLYLINE) ==
55 static_assert(static_cast<int>(CPDF_Annot::Subtype::HIGHLIGHT) ==
[all …]
Dcpdfsdk_baannot.h27 CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView);
31 CPDF_Annot::Subtype GetAnnotSubtype() const override;
34 CPDF_Annot* GetPDFAnnot() const override;
37 CPDF_Annot* GetPDFPopupAnnot() const;
81 virtual bool IsAppearanceValid(CPDF_Annot::AppearanceMode mode);
84 CPDF_Annot::AppearanceMode mode,
98 UnownedPtr<CPDF_Annot> const m_pAnnot;
Dfpdf_ext.cpp49 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot) { in CheckUnSupportAnnot()
50 CPDF_Annot::Subtype nAnnotSubtype = pPDFAnnot->GetSubtype(); in CheckUnSupportAnnot()
51 if (nAnnotSubtype == CPDF_Annot::Subtype::THREED) { in CheckUnSupportAnnot()
53 } else if (nAnnotSubtype == CPDF_Annot::Subtype::SCREEN) { in CheckUnSupportAnnot()
60 } else if (nAnnotSubtype == CPDF_Annot::Subtype::MOVIE) { in CheckUnSupportAnnot()
62 } else if (nAnnotSubtype == CPDF_Annot::Subtype::SOUND) { in CheckUnSupportAnnot()
64 } else if (nAnnotSubtype == CPDF_Annot::Subtype::RICHMEDIA) { in CheckUnSupportAnnot()
66 } else if (nAnnotSubtype == CPDF_Annot::Subtype::FILEATTACHMENT) { in CheckUnSupportAnnot()
68 } else if (nAnnotSubtype == CPDF_Annot::Subtype::WIDGET) { in CheckUnSupportAnnot()
Dcpdfsdk_baannot.cpp23 CPDFSDK_BAAnnot::CPDFSDK_BAAnnot(CPDF_Annot* pAnnot, in CPDFSDK_BAAnnot()
29 CPDF_Annot* CPDFSDK_BAAnnot::GetPDFAnnot() const { in GetPDFAnnot()
33 CPDF_Annot* CPDFSDK_BAAnnot::GetPDFPopupAnnot() const { in GetPDFPopupAnnot()
59 CPDF_Annot::Subtype CPDFSDK_BAAnnot::GetAnnotSubtype() const { in GetAnnotSubtype()
65 CPDF_Annot::AppearanceMode mode, in DrawAppearance()
75 bool CPDFSDK_BAAnnot::IsAppearanceValid(CPDF_Annot::AppearanceMode mode) { in IsAppearanceValid()
82 if (mode == CPDF_Annot::Down) in IsAppearanceValid()
84 else if (mode == CPDF_Annot::Rollover) in IsAppearanceValid()
353 if (CPDF_Annot* pAnnot = m_pAnnot->GetPopupAnnot()) in SetOpenState()
358 if (m_pAnnot->GetSubtype() == CPDF_Annot::Subtype::POPUP) in GetLayoutOrder()
Dcpdfsdk_annothandlermgr.cpp43 CPDFSDK_Annot* CPDFSDK_AnnotHandlerMgr::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot()
55 return GetAnnotHandler(CPDF_Annot::Subtype::XFAWIDGET) in NewAnnot()
66 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); in Annot_OnCreate()
95 CPDF_Annot::Subtype nAnnotSubtype) const { in GetAnnotHandler()
96 if (nAnnotSubtype == CPDF_Annot::Subtype::WIDGET) in GetAnnotHandler()
100 if (nAnnotSubtype == CPDF_Annot::Subtype::XFAWIDGET) in GetAnnotHandler()
261 GetAnnotHandler(CPDF_Annot::Subtype::XFAWIDGET)) in Annot_OnChangeFocus()
318 CBA_AnnotIterator ai(pSDKAnnot->GetPageView(), CPDF_Annot::Subtype::WIDGET); in GetNextAnnot()
Dcpdfsdk_annot.cpp58 CPDF_Annot* CPDFSDK_Annot::GetPDFAnnot() const { in GetPDFAnnot()
62 CPDF_Annot::Subtype CPDFSDK_Annot::GetAnnotSubtype() const { in GetAnnotSubtype()
63 return CPDF_Annot::Subtype::UNKNOWN; in GetAnnotSubtype()
Dcpdfsdk_widget.h23 class CPDF_Annot; variable
63 CPDFSDK_Widget(CPDF_Annot* pAnnot,
136 bool IsWidgetAppearanceValid(CPDF_Annot::AppearanceMode mode);
139 CPDF_Annot::AppearanceMode mode,
Dcpdfsdk_baannothandler.cpp29 if (CPDF_Annot* pPopupAnnot = pBAAnnot->GetPDFPopupAnnot()) in UpdateAnnotRects()
49 CPDFSDK_Annot* CPDFSDK_BAAnnotHandler::NewAnnot(CPDF_Annot* pAnnot, in NewAnnot()
74 if (bDrawAnnots && pAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::POPUP) { in OnDraw()
76 pDevice, *pUser2Device, CPDF_Annot::Normal, nullptr); in OnDraw()
Dcpdfsdk_xfawidget.cpp29 CPDF_Annot::Subtype CPDFSDK_XFAWidget::GetAnnotSubtype() const { in GetAnnotSubtype()
30 return CPDF_Annot::Subtype::XFAWIDGET; in GetAnnotSubtype()
Dcpdfsdk_annot.h38 virtual CPDF_Annot* GetPDFAnnot() const;
39 virtual CPDF_Annot::Subtype GetAnnotSubtype() const;
Dcba_annotiterator.h25 CPDF_Annot::Subtype nAnnotSubtype);
42 CPDF_Annot::Subtype m_nAnnotSubtype;
Dcpdfsdk_pageview.cpp130 if (pSDKAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::POPUP)
142 bool bHitTest = pSDKAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::WIDGET;
145 pSDKAnnot->GetAnnotSubtype() == CPDF_Annot::Subtype::XFAWIDGET;
461 CPDF_Annot* pPDFAnnot = m_pAnnotList->GetAt(i);
500 bool CPDFSDK_PageView::IsValidAnnot(const CPDF_Annot* p) const {
506 [p](const std::unique_ptr<CPDF_Annot>& annot) {
Dfsdk_baseform_embeddertest.cpp48 CPDF_Annot::Subtype::WIDGET); in TEST_F()
74 CPDF_Annot::Subtype::WIDGET); in TEST_F()
100 CPDF_Annot::Subtype::WIDGET); in TEST_F()
Dfsdk_define.h24 class CPDF_Annot; variable
105 void CheckUnSupportAnnot(CPDF_Document* pDoc, const CPDF_Annot* pPDFAnnot);
Dcpdfsdk_widget.cpp56 CPDFSDK_Widget::CPDFSDK_Widget(CPDF_Annot* pAnnot, in CPDFSDK_Widget()
466 bool CPDFSDK_Widget::IsWidgetAppearanceValid(CPDF_Annot::AppearanceMode mode) { in IsWidgetAppearanceValid()
473 if (mode == CPDF_Annot::Down) in IsWidgetAppearanceValid()
475 else if (mode == CPDF_Annot::Rollover) in IsWidgetAppearanceValid()
689 if (!IsWidgetAppearanceValid(CPDF_Annot::Normal))
806 CPDF_Annot::AppearanceMode mode,
812 mode == CPDF_Annot::Normal &&
813 !IsWidgetAppearanceValid(CPDF_Annot::Normal)) {
Dcpdfsdk_annothandlermgr.h36 CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot, CPDFSDK_PageView* pPageView);
109 IPDFSDK_AnnotHandler* GetAnnotHandler(CPDF_Annot::Subtype nSubtype) const;
Dipdfsdk_annothandler.h15 class CPDF_Annot; variable
27 virtual CPDFSDK_Annot* NewAnnot(CPDF_Annot* pAnnot,
/external/pdfium/fpdfsdk/formfiller/
Dcffl_button.cpp70 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()
89 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, in OnDraw()
95 pWidget->DrawAppearance(pDevice, mtUser2Device, CPDF_Annot::Normal, nullptr); in OnDraw()
Dcffl_interactiveformfiller.cpp47 CPDF_Annot* pPDFAnnot = pAnnot->GetPDFAnnot(); in GetViewBBox()
103 pWidget->DrawAppearance(pDevice, *pUser2Device, CPDF_Annot::Normal, in OnDraw()
119 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnMouseEnter()
152 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnMouseExit()
187 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnLButtonDown()
226 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnLButtonUp()
297 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnLButtonDblClk()
307 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnMouseMove()
319 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnMouseWheel()
331 ASSERT((*pAnnot)->GetPDFAnnot()->GetSubtype() == CPDF_Annot::Subtype::WIDGET); in OnRButtonDown()
[all …]
/external/pdfium/fxjs/
Dcjs_annot.cpp50 CPDF_Annot* pPDFAnnot = ToBAAnnot(m_pAnnot.Get())->GetPDFAnnot(); in get_hidden()
52 CPDF_Annot::IsAnnotationHidden(pPDFAnnot->GetAnnotDict()))); in get_hidden()
99 WideString::FromLocal(CPDF_Annot::AnnotSubtypeToString( in get_type()

12