Home
last modified time | relevance | path

Searched refs:CPDF_Reference (Results 1 – 25 of 38) sorted by relevance

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_reference.cpp14 CPDF_Reference::CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) in CPDF_Reference() function in CPDF_Reference
17 CPDF_Reference::~CPDF_Reference() {} in ~CPDF_Reference()
19 CPDF_Object::Type CPDF_Reference::GetType() const { in GetType()
23 ByteString CPDF_Reference::GetString() const { in GetString()
28 float CPDF_Reference::GetNumber() const { in GetNumber()
33 int CPDF_Reference::GetInteger() const { in GetInteger()
38 CPDF_Dictionary* CPDF_Reference::GetDict() const { in GetDict()
43 bool CPDF_Reference::IsReference() const { in IsReference()
47 CPDF_Reference* CPDF_Reference::AsReference() { in AsReference()
51 const CPDF_Reference* CPDF_Reference::AsReference() const { in AsReference()
[all …]
Dcpdf_document_unittest.cpp34 pageNode->SetNewFor<CPDF_Reference>("Kids", pDoc, pUnowned->GetObjNum()); in CreatePageTreeNode()
37 pUnowned->GetDictAt(i)->SetNewFor<CPDF_Reference>("Parent", pDoc, in CreatePageTreeNode()
55 zeroToTwo->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
57 zeroToTwo->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
59 zeroToTwo->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
65 zeroToThree->AddNew<CPDF_Reference>(this, branch1->GetObjNum()); in CPDF_TestDocumentForPages()
66 zeroToThree->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
72 fourFive->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
74 fourFive->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
79 justSix->AddNew<CPDF_Reference>( in CPDF_TestDocumentForPages()
[all …]
Dcpdf_reference.h18 class CPDF_Reference : public CPDF_Object {
20 CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum);
21 ~CPDF_Reference() override;
32 CPDF_Reference* AsReference() override;
33 const CPDF_Reference* AsReference() const override;
50 inline CPDF_Reference* ToReference(CPDF_Object* obj) { in ToReference()
54 inline const CPDF_Reference* ToReference(const CPDF_Object* obj) { in ToReference()
Dcpdf_object_avail_unittest.cpp144 holder.AddObject(1, pdfium::MakeUnique<CPDF_Reference>(&holder, 2), in TEST()
162 holder.AddObject(1, pdfium::MakeUnique<CPDF_Reference>(&holder, 2), in TEST()
164 holder.AddObject(2, pdfium::MakeUnique<CPDF_Reference>(&holder, 3), in TEST()
166 holder.AddObject(3, pdfium::MakeUnique<CPDF_Reference>(&holder, 1), in TEST()
192 holder.GetTestObject(2)->GetDict()->SetNewFor<CPDF_Reference>("Parent", in TEST()
211 holder.GetTestObject(i)->GetDict()->SetNewFor<CPDF_Reference>( in TEST()
238 holder.AddObject(1, pdfium::MakeUnique<CPDF_Reference>(&holder, 2), in TEST()
250 holder.GetTestObject(1)->GetDict()->SetNewFor<CPDF_Reference>("ArrayRef", in TEST()
254 holder.GetTestObject(2)->AsArray()->AddNew<CPDF_Reference>(&holder, 2); in TEST()
269 holder.GetTestObject(1)->GetDict()->SetNewFor<CPDF_Reference>("DictRef", in TEST()
[all …]
Dcpdf_object.h23 class CPDF_Reference; variable
88 virtual CPDF_Reference* AsReference();
89 virtual const CPDF_Reference* AsReference() const;
Dcpdf_page_object_avail_unittest.cpp104 holder.GetTestObject(1)->GetDict()->SetNewFor<CPDF_Reference>("Kids", &holder, in TEST()
108 holder.GetTestObject(2)->AsArray()->AddNew<CPDF_Reference>(&holder, 3); in TEST()
114 holder.GetTestObject(3)->GetDict()->SetNewFor<CPDF_Reference>("OtherPageData", in TEST()
Dcpdf_object.cpp142 CPDF_Reference* CPDF_Object::AsReference() { in AsReference()
146 const CPDF_Reference* CPDF_Object::AsReference() const { in AsReference()
Dcpdf_document.cpp551 CPDF_Reference* pKid = ToReference(pKidList->GetObjectAt(i)); in FindPageIndex()
666 m_pRootDict->SetNewFor<CPDF_Reference>("Pages", this, pPages->GetObjNum()); in CreateNewDoc()
698 pKidList->InsertNewAt<CPDF_Reference>(i, this, pPageDict->GetObjNum()); in InsertDeletePDFPage()
699 pPageDict->SetNewFor<CPDF_Reference>("Parent", this, in InsertDeletePDFPage()
742 pPagesList->AddNew<CPDF_Reference>(this, pPageDict->GetObjNum()); in InsertNewPage()
744 pPageDict->SetNewFor<CPDF_Reference>("Parent", this, pPages->GetObjNum()); in InsertNewPage()
800 pBaseDict->SetNewFor<CPDF_Reference>("Encoding", this, in CalculateEncodingDict()
868 pArray->AddNew<CPDF_Reference>(this, pFontDict->GetObjNum()); in ProcessbCJK()
951 pFontDict->SetNewFor<CPDF_Reference>("FontDescriptor", this, in AddFont()
1047 pFontDict->SetNewFor<CPDF_Reference>( in AddWindowsFont()
Dcpdf_data_avail.cpp266 CPDF_Reference* pRef = ToReference(pDict->GetObjectFor("Pages")); in CheckRoot()
280 CPDF_Reference* pRef = in PreparePageItem()
314 if (CPDF_Reference* pRef = ToReference(pArrayObj.get())) in CheckPage()
366 if (CPDF_Reference* pRef = ToReference(pKidsArray->GetObjectAt(i))) in GetPageKids()
566 CPDF_Reference* pKid = ToReference(pArray->GetObjectAt(i)); in CheckArrayPageNode()
622 CPDF_Reference* pKid = pKids->AsReference(); in CheckUnknownPageNode()
631 CPDF_Reference* pKid = ToReference(pKidsArray->GetObjectAt(i)); in CheckUnknownPageNode()
Dcpdf_object_walker_unittest.cpp64 EXPECT_EQ(Walk(pdfium::MakeUnique<CPDF_Reference>(nullptr, 0).get()), "Ref"); in TEST()
72 array->Add(pdfium::MakeUnique<CPDF_Reference>(nullptr, 0)); in TEST()
Dcpdf_parser.cpp71 result->SetNewFor<CPDF_Reference>("Info", nullptr, GetInfoObjNum()); in GetCombinedTrailer()
74 result->SetNewFor<CPDF_Reference>("Root", nullptr, GetRootObjNum()); in GetCombinedTrailer()
96 const CPDF_Reference* pRef = ToReference( in GetInfoObjNum()
102 const CPDF_Reference* pRef = ToReference( in GetRootObjNum()
296 CPDF_Reference* pMetadata = in StartParseInternal()
336 } else if (CPDF_Reference* pRef = pEncryptObj->AsReference()) { in SetEncryptHandler()
896 CPDF_Reference* pRef = ToReference(pRoot); in RebuildCrossRef()
908 GetTrailer()->SetNewFor<CPDF_Reference>( in RebuildCrossRef()
1402 if (CPDF_Reference* pMetadata = in StartLinearizedParse()
Dcpdf_object_avail.h17 class CPDF_Reference; variable
/external/pdfium/fpdfsdk/
Dfpdfdoc_unittest.cpp119 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
121 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Next", m_pIndirectObjs.Get(), in TEST_F()
125 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
127 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Prev", m_pIndirectObjs.Get(), in TEST_F()
132 bookmarks[0].obj->SetNewFor<CPDF_Reference>("First", m_pIndirectObjs.Get(), in TEST_F()
134 bookmarks[0].obj->SetNewFor<CPDF_Reference>("Last", m_pIndirectObjs.Get(), in TEST_F()
137 m_pRootObj->SetNewFor<CPDF_Reference>("Outlines", m_pIndirectObjs.Get(), in TEST_F()
162 bookmarks[1].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
164 bookmarks[1].obj->SetNewFor<CPDF_Reference>("First", m_pIndirectObjs.Get(), in TEST_F()
168 bookmarks[2].obj->SetNewFor<CPDF_Reference>("Parent", m_pIndirectObjs.Get(), in TEST_F()
[all …]
Dfpdf_transformpage.cpp151 pContentArray->InsertNewAt<CPDF_Reference>(0, pDoc, pStream->GetObjNum()); in FPDFPage_TransFormWithClip()
152 pContentArray->AddNew<CPDF_Reference>(pDoc, pEndStream->GetObjNum()); in FPDFPage_TransFormWithClip()
155 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in FPDFPage_TransFormWithClip()
156 pContentArray->AddNew<CPDF_Reference>(pDoc, pContentObj->GetObjNum()); in FPDFPage_TransFormWithClip()
157 pContentArray->AddNew<CPDF_Reference>(pDoc, pEndStream->GetObjNum()); in FPDFPage_TransFormWithClip()
158 pPageDict->SetNewFor<CPDF_Reference>("Contents", pDoc, in FPDFPage_TransFormWithClip()
301 pArray->InsertNewAt<CPDF_Reference>(0, pDoc, pStream->GetObjNum()); in FPDFPage_InsertClipPath()
304 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in FPDFPage_InsertClipPath()
305 pContentArray->AddNew<CPDF_Reference>(pDoc, pContentObj->GetObjNum()); in FPDFPage_InsertClipPath()
306 pPageDict->SetNewFor<CPDF_Reference>("Contents", pDoc, in FPDFPage_InsertClipPath()
Dfpdfedittext.cpp80 fontDesc->SetNewFor<CPDF_Reference>(fontFile, pDoc, pStream->GetObjNum()); in LoadFontDesc()
273 fontDict->SetNewFor<CPDF_Reference>("Widths", pDoc, widthsArray->GetObjNum()); in LoadSimpleFont()
277 fontDict->SetNewFor<CPDF_Reference>("FontDescriptor", pDoc, in LoadSimpleFont()
314 pCIDFont->SetNewFor<CPDF_Reference>("CIDSystemInfo", pDoc, in LoadCompositeFont()
319 pCIDFont->SetNewFor<CPDF_Reference>("FontDescriptor", pDoc, in LoadCompositeFont()
389 pCIDFont->SetNewFor<CPDF_Reference>("W", pDoc, widthsArray->GetObjNum()); in LoadCompositeFont()
393 pDescendant->AddNew<CPDF_Reference>(pDoc, pCIDFont->GetObjNum()); in LoadCompositeFont()
396 fontDict->SetNewFor<CPDF_Reference>("ToUnicode", pDoc, in LoadCompositeFont()
Dfpdfsave.cpp127 CPDF_Reference* pDataSetsRefObj = (CPDF_Reference*)pDataSetsPDFObj; in SaveXFADocumentData()
160 pArray->InsertNewAt<CPDF_Reference>(iLast + 1, pPDFDocument, in SaveXFADocumentData()
186 pArray->InsertNewAt<CPDF_Reference>(iLast + 1, pPDFDocument, in SaveXFADocumentData()
Dfpdfattachment.cpp74 pRoot->SetNewFor<CPDF_Reference>("Names", pDoc, pNames->GetObjNum()); in FPDFDoc_AddAttachment()
81 pNames->SetNewFor<CPDF_Reference>("EmbeddedFiles", pDoc, in FPDFDoc_AddAttachment()
94 pdfium::MakeUnique<CPDF_Reference>(pDoc, pFile->GetObjNum()), in FPDFDoc_AddAttachment()
254 pEFDict->SetNewFor<CPDF_Reference>("F", pDoc, pFileStream->GetObjNum()); in FPDFAttachment_SetFile()
Dfpdfppo.cpp141 uint32_t GetNewObjId(ObjectNumberMap* pObjNumberMap, CPDF_Reference* pRef);
176 pNewRoot->SetNewFor<CPDF_Reference>("Pages", m_pDestPDFDoc.Get(), in PDFDocInit()
186 pNewPages->SetNewFor<CPDF_Reference>( in PDFDocInit()
261 CPDF_Reference* pReference = pObj->AsReference(); in UpdateReference()
312 CPDF_Reference* pRef) { in GetNewObjId()
Dfpdf_flatten.cpp191 pPage->SetNewFor<CPDF_Reference>( in SetPageContents()
207 pContentsArray->AddNew<CPDF_Reference>(pDocument, in SetPageContents()
209 pPage->SetNewFor<CPDF_Reference>("Contents", pDocument, in SetPageContents()
213 pContentsArray->AddNew<CPDF_Reference>( in SetPageContents()
318 pPageXObject->SetNewFor<CPDF_Reference>(key, pDocument, dwObjNum); in FPDFPage_Flatten()
393 pXObject->SetNewFor<CPDF_Reference>(sFormName, pDocument, in FPDFPage_Flatten()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp91 pArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in GenerateContent()
94 CPDF_Reference* pReference = ToReference(pContent); in GenerateContent()
96 pPageDict->SetNewFor<CPDF_Reference>("Contents", m_pDocument.Get(), in GenerateContent()
102 pPageDict->SetNewFor<CPDF_Reference>("Contents", m_pDocument.Get(), in GenerateContent()
108 pObjArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in GenerateContent()
113 pContentArray->AddNew<CPDF_Reference>(pDoc, pDirectObj->GetObjNum()); in GenerateContent()
114 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in GenerateContent()
115 pPageDict->SetNewFor<CPDF_Reference>("Contents", pDoc, in GenerateContent()
120 pPageDict->SetNewFor<CPDF_Reference>("Contents", m_pDocument.Get(), in GenerateContent()
130 m_pObjHolder->m_pFormDict->SetNewFor<CPDF_Reference>( in RealizeResource()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_structelement.cpp60 if (CPDF_Reference* pRef = ToReference(pObj)) in LoadKids()
101 if (CPDF_Reference* pRef = ToReference(pKidDict->GetObjectFor("Pg"))) in LoadKid()
112 CPDF_Reference* pRef = ToReference(pKidDict->GetObjectFor("Stm")); in LoadKid()
121 CPDF_Reference* pObj = ToReference(pKidDict->GetObjectFor("Obj")); in LoadKid()
Dcpdf_formfield_unittest.cpp23 root->SetNewFor<CPDF_Reference>("Parent", &obj_holder, dict1->GetObjNum()); in TEST()
33 dict2->SetNewFor<CPDF_Reference>("Parent", &obj_holder, dict3->GetObjNum()); in TEST()
39 dict3->SetNewFor<CPDF_Reference>("Parent", &obj_holder, root->GetObjNum()); in TEST()
Dcpvt_fontmap.cpp41 pFontList->SetNewFor<CPDF_Reference>(*sSysFontAlias, pDoc, in GetAnnotSysPDFFont()
/external/pdfium/fpdfsdk/formfiller/
Dcba_fontmap.cpp169 pAPDict->SetNewFor<CPDF_Reference>(m_sAPType, m_pDocument.Get(), in AddFontToAnnotDict()
187 pStreamResList->SetNewFor<CPDF_Reference>("Font", m_pDocument.Get(), in AddFontToAnnotDict()
191 pStreamResFontList->SetNewFor<CPDF_Reference>( in AddFontToAnnotDict()
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp242 pCS->AddNew<CPDF_Reference>(m_pDocument.Get(), pCTS->GetObjNum()); in SetImage()
243 pDict->SetNewFor<CPDF_Reference>("ColorSpace", m_pDocument.Get(), in SetImage()
285 pDict->SetNewFor<CPDF_Reference>("SMask", m_pDocument.Get(), in SetImage()

12