Home
last modified time | relevance | path

Searched refs:pDoc (Results 1 – 25 of 115) sorted by relevance

12345

/external/pdfium/fpdfsdk/
Dfpdf_doc.cpp57 CPDF_Document* pDoc = page->GetDocument(); in GetLinkList() local
58 auto* pList = static_cast<CPDF_LinkList*>(pDoc->GetLinksContext()); in GetLinkList()
64 pDoc->SetLinksContext(std::move(pNewList)); in GetLinkList()
72 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFBookmark_GetFirstChild() local
73 if (!pDoc) in FPDFBookmark_GetFirstChild()
75 CPDF_BookmarkTree tree(pDoc); in FPDFBookmark_GetFirstChild()
83 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFBookmark_GetNextSibling() local
84 if (!pDoc) in FPDFBookmark_GetNextSibling()
90 CPDF_BookmarkTree tree(pDoc); in FPDFBookmark_GetNextSibling()
109 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFBookmark_Find() local
[all …]
Dfpdf_attachment.cpp54 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFDoc_GetAttachmentCount() local
55 if (!pDoc) in FPDFDoc_GetAttachmentCount()
58 return CPDF_NameTree(pDoc, "EmbeddedFiles").GetCount(); in FPDFDoc_GetAttachmentCount()
63 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFDoc_AddAttachment() local
64 if (!pDoc) in FPDFDoc_AddAttachment()
67 CPDF_Dictionary* pRoot = pDoc->GetRoot(); in FPDFDoc_AddAttachment()
78 pNames = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment()
79 pRoot->SetNewFor<CPDF_Reference>("Names", pDoc, pNames->GetObjNum()); in FPDFDoc_AddAttachment()
84 CPDF_Dictionary* pFiles = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment()
86 pNames->SetNewFor<CPDF_Reference>("EmbeddedFiles", pDoc, in FPDFDoc_AddAttachment()
[all …]
Dfpdf_edittext.cpp67 CPDF_Dictionary* LoadFontDesc(CPDF_Document* pDoc, in LoadFontDesc() argument
72 CPDF_Dictionary* pFontDesc = pDoc->NewIndirect<CPDF_Dictionary>(); in LoadFontDesc()
103 CPDF_Stream* pStream = pDoc->NewIndirect<CPDF_Stream>(); in LoadFontDesc()
111 pFontDesc->SetNewFor<CPDF_Reference>(fontFile, pDoc, pStream->GetObjNum()); in LoadFontDesc()
161 CPDF_Stream* LoadUnicode(CPDF_Document* pDoc, in LoadUnicode() argument
265 CPDF_Stream* stream = pDoc->NewIndirect<CPDF_Stream>(); in LoadUnicode()
270 RetainPtr<CPDF_Font> LoadSimpleFont(CPDF_Document* pDoc, in LoadSimpleFont() argument
274 CPDF_Dictionary* pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in LoadSimpleFont()
291 CPDF_Array* widthsArray = pDoc->NewIndirect<CPDF_Array>(); in LoadSimpleFont()
308 pFontDict->SetNewFor<CPDF_Reference>("Widths", pDoc, in LoadSimpleFont()
[all …]
Dfpdf_view.cpp177 const CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_GetFormType() local
178 if (!pDoc) in FPDF_GetFormType()
181 const CPDF_Dictionary* pRoot = pDoc->GetRoot(); in FPDF_GetFormType()
199 auto* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_LoadXFA() local
200 if (!pDoc) in FPDF_LoadXFA()
203 auto* pContext = static_cast<CPDFXFA_Context*>(pDoc->GetExtension()); in FPDF_LoadXFA()
233 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(doc); in FPDF_GetFileVersion() local
234 if (!pDoc) in FPDF_GetFileVersion()
237 const CPDF_Parser* pParser = pDoc->GetParser(); in FPDF_GetFileVersion()
247 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDF_DocumentHasValidCrossReferenceTable() local
[all …]
Dfpdf_transformpage.cpp215 CPDF_Document* pDoc = pPage->GetDocument(); in FPDFPage_TransFormWithClip() local
216 if (!pDoc) in FPDFPage_TransFormWithClip()
237 pDoc->NewIndirect<CPDF_Stream>(nullptr, 0, pDoc->New<CPDF_Dictionary>()); in FPDFPage_TransFormWithClip()
241 pDoc->NewIndirect<CPDF_Stream>(nullptr, 0, pDoc->New<CPDF_Dictionary>()); in FPDFPage_TransFormWithClip()
245 pContentArray->InsertNewAt<CPDF_Reference>(0, pDoc, pStream->GetObjNum()); in FPDFPage_TransFormWithClip()
246 pContentArray->AddNew<CPDF_Reference>(pDoc, pEndStream->GetObjNum()); in FPDFPage_TransFormWithClip()
248 pContentArray = pDoc->NewIndirect<CPDF_Array>(); in FPDFPage_TransFormWithClip()
249 pContentArray->AddNew<CPDF_Reference>(pDoc, pStream->GetObjNum()); in FPDFPage_TransFormWithClip()
250 pContentArray->AddNew<CPDF_Reference>(pDoc, pContentObj->GetObjNum()); in FPDFPage_TransFormWithClip()
251 pContentArray->AddNew<CPDF_Reference>(pDoc, pEndStream->GetObjNum()); in FPDFPage_TransFormWithClip()
[all …]
Dfpdf_editpage.cpp111 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in GetOrCreateMarkParamsDict() local
112 if (!pDoc) in GetOrCreateMarkParamsDict()
124 auto new_dict = pDoc->New<CPDF_Dictionary>(); in GetOrCreateMarkParamsDict()
153 auto pDoc = pdfium::MakeUnique<CPDF_Document>( in FPDF_CreateNewDocument() local
156 pDoc->CreateNewDoc(); in FPDF_CreateNewDocument()
171 CPDF_Dictionary* pInfoDict = pDoc->GetInfo(); in FPDF_CreateNewDocument()
179 pDoc->SetExtension(pdfium::MakeUnique<CPDFXFA_Context>(pDoc.get())); in FPDF_CreateNewDocument()
183 return FPDFDocumentFromCPDFDocument(pDoc.release()); in FPDF_CreateNewDocument()
188 auto* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFPage_Delete() local
189 if (!pDoc) in FPDFPage_Delete()
[all …]
Dfpdf_catalog.cpp13 CPDF_Document* pDoc = CPDFDocumentFromFPDFDocument(document); in FPDFCatalog_IsTagged() local
14 if (!pDoc) in FPDFCatalog_IsTagged()
17 const CPDF_Dictionary* pCatalog = pDoc->GetRoot(); in FPDFCatalog_IsTagged()
/external/pdfium/core/fpdfapi/parser/
Dcfdf_document.cpp25 auto pDoc = pdfium::MakeUnique<CFDF_Document>(); in CreateNewDoc() local
26 pDoc->m_pRootDict.Reset(pDoc->NewIndirect<CPDF_Dictionary>()); in CreateNewDoc()
27 pDoc->m_pRootDict->SetNewFor<CPDF_Dictionary>("FDF"); in CreateNewDoc()
28 return pDoc; in CreateNewDoc()
33 auto pDoc = pdfium::MakeUnique<CFDF_Document>(); in ParseMemory() local
34 pDoc->ParseStream(pdfium::MakeRetain<CFX_ReadOnlyMemoryStream>(span)); in ParseMemory()
35 return pDoc->m_pRootDict ? std::move(pDoc) : nullptr; in ParseMemory()
Dcpdf_document_unittest.cpp30 CPDF_Document* pDoc, in CreatePageTreeNode() argument
32 CPDF_Array* pUnowned = pDoc->AddIndirectObject(std::move(kids))->AsArray(); in CreatePageTreeNode()
33 CPDF_Dictionary* pageNode = pDoc->NewIndirect<CPDF_Dictionary>(); in CreatePageTreeNode()
35 pageNode->SetNewFor<CPDF_Reference>("Kids", pDoc, pUnowned->GetObjNum()); in CreatePageTreeNode()
38 pUnowned->GetDictAt(i)->SetNewFor<CPDF_Reference>("Parent", pDoc, in CreatePageTreeNode()
270 auto pDoc = pdfium::MakeUnique<CPDF_TestDocPagesWithoutKids>(); in TEST_F() local
271 EXPECT_TRUE(pDoc->GetPageDictionary(0)); in TEST_F()
274 EXPECT_FALSE(pDoc->GetPageDictionary(i)); in TEST_F()
276 EXPECT_TRUE(pDoc->GetPageDictionary(0)); in TEST_F()
Dcpdf_reference.cpp14 CPDF_Reference::CPDF_Reference(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) in CPDF_Reference() argument
15 : m_pObjList(pDoc), m_RefObjNum(objnum) {} in CPDF_Reference()
87 void CPDF_Reference::SetRef(CPDF_IndirectObjectHolder* pDoc, uint32_t objnum) { in SetRef() argument
88 m_pObjList = pDoc; in SetRef()
/external/pdfium/core/fpdfapi/page/
Dcpdf_colorspace.cpp117 uint32_t v_Load(CPDF_Document* pDoc,
130 explicit CPDF_CalGray(CPDF_Document* pDoc);
152 uint32_t v_Load(CPDF_Document* pDoc,
160 explicit CPDF_CalRGB(CPDF_Document* pDoc);
189 uint32_t v_Load(CPDF_Document* pDoc,
196 explicit CPDF_LabCS(CPDF_Document* pDoc);
220 uint32_t v_Load(CPDF_Document* pDoc,
225 explicit CPDF_ICCBasedCS(CPDF_Document* pDoc);
228 bool FindAlternateProfile(CPDF_Document* pDoc,
253 uint32_t v_Load(CPDF_Document* pDoc,
[all …]
Dcpdf_patterncs.cpp13 CPDF_PatternCS::CPDF_PatternCS(CPDF_Document* pDoc) in CPDF_PatternCS() argument
14 : CPDF_ColorSpace(pDoc, PDFCS_PATTERN) {} in CPDF_PatternCS()
22 uint32_t CPDF_PatternCS::v_Load(CPDF_Document* pDoc, in v_Load() argument
29 auto* pDocPageData = CPDF_DocPageData::FromDocument(pDoc); in v_Load()
Dcpdf_form.cpp30 CPDF_Form::CPDF_Form(CPDF_Document* pDoc, in CPDF_Form() argument
33 : CPDF_Form(pDoc, pPageResources, pFormStream, nullptr) {} in CPDF_Form()
35 CPDF_Form::CPDF_Form(CPDF_Document* pDoc, in CPDF_Form() argument
40 pDoc, in CPDF_Form()
Dcpdf_colorspace.h68 static RetainPtr<CPDF_ColorSpace> Load(CPDF_Document* pDoc,
71 CPDF_Document* pDoc,
119 CPDF_ColorSpace(CPDF_Document* pDoc, int family);
123 virtual uint32_t v_Load(CPDF_Document* pDoc,
/external/pdfium/core/fpdfdoc/
Dcpvt_generateap.cpp369 ByteString GetPopupContentsString(CPDF_Document* pDoc, in GetPopupContentsString() argument
376 CPVT_FontMap map(pDoc, nullptr, pDefFont, sFontName); in GetPopupContentsString()
406 CPDF_Document* pDoc, in GenerateResourceFontDict() argument
408 CPDF_Dictionary* pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in GenerateResourceFontDict()
414 auto pResourceFontDict = pDoc->New<CPDF_Dictionary>(); in GenerateResourceFontDict()
415 pResourceFontDict->SetNewFor<CPDF_Reference>(sFontDictName, pDoc, in GenerateResourceFontDict()
498 CPDF_Document* pDoc, in GenerateResourceDict() argument
501 auto pResourceDict = pDoc->New<CPDF_Dictionary>(); in GenerateResourceDict()
509 void GenerateAndSetAPDict(CPDF_Document* pDoc, in GenerateAndSetAPDict() argument
514 CPDF_Stream* pNormalStream = pDoc->NewIndirect<CPDF_Stream>(); in GenerateAndSetAPDict()
[all …]
Dcpvt_fontmap.cpp18 CPVT_FontMap::CPVT_FontMap(CPDF_Document* pDoc, in CPVT_FontMap() argument
22 : m_pDocument(pDoc), in CPVT_FontMap()
31 CPDF_Document* pDoc, in GetAnnotSysPDFFont() argument
34 if (!pDoc || !pResDict) in GetAnnotSysPDFFont()
37 CPDF_Dictionary* pFormDict = pDoc->GetRoot()->GetDictFor("AcroForm"); in GetAnnotSysPDFFont()
39 AddNativeInteractiveFormFont(pFormDict, pDoc, sSysFontAlias); in GetAnnotSysPDFFont()
46 pFontList->SetNewFor<CPDF_Reference>(*sSysFontAlias, pDoc, in GetAnnotSysPDFFont()
Dcpdf_structtree.cpp20 bool IsTagged(const CPDF_Document* pDoc) { in IsTagged() argument
21 const CPDF_Dictionary* pCatalog = pDoc->GetRoot(); in IsTagged()
30 const CPDF_Document* pDoc, in LoadPage() argument
32 if (!IsTagged(pDoc)) in LoadPage()
35 auto pTree = pdfium::MakeUnique<CPDF_StructTree>(pDoc); in LoadPage()
40 CPDF_StructTree::CPDF_StructTree(const CPDF_Document* pDoc) in CPDF_StructTree() argument
41 : m_pTreeRoot(pDoc->GetRoot()->GetDictFor("StructTreeRoot")), in CPDF_StructTree()
Dcpvt_generateap.h20 static void GenerateFormAP(CPDF_Document* pDoc,
24 static void GenerateEmptyAP(CPDF_Document* pDoc, CPDF_Dictionary* pAnnotDict);
26 static bool GenerateAnnotAP(CPDF_Document* pDoc,
Dcpdf_link.cpp25 CPDF_Dest CPDF_Link::GetDest(CPDF_Document* pDoc) { in GetDest() argument
31 CPDF_NameTree name_tree(pDoc, "Dests"); in GetDest()
32 return CPDF_Dest(name_tree.LookupNamedDest(pDoc, pDest->GetUnicodeText())); in GetDest()
Dcpdf_action.cpp56 CPDF_Dest CPDF_Action::GetDest(CPDF_Document* pDoc) const { in GetDest()
65 CPDF_NameTree name_tree(pDoc, "Dests"); in GetDest()
66 return CPDF_Dest(name_tree.LookupNamedDest(pDoc, pDest->GetUnicodeText())); in GetDest()
96 ByteString CPDF_Action::GetURI(const CPDF_Document* pDoc) const { in GetURI()
102 const CPDF_Dictionary* pRoot = pDoc->GetRoot(); in GetURI()
/external/pdfium/core/fpdfapi/font/
Dcpdf_fontglobals.cpp58 CPDF_Document* pDoc, in Find() argument
60 auto it = m_StockMap.find(pDoc); in Find()
67 void CPDF_FontGlobals::Set(CPDF_Document* pDoc, in Set() argument
70 if (!pdfium::ContainsKey(m_StockMap, pDoc)) in Set()
71 m_StockMap[pDoc] = pdfium::MakeUnique<CFX_StockFontArray>(); in Set()
72 m_StockMap[pDoc]->SetFont(index, pFont); in Set()
75 void CPDF_FontGlobals::Clear(CPDF_Document* pDoc) { in Clear() argument
76 m_StockMap.erase(pDoc); in Clear()
Dcpdf_font.cpp288 RetainPtr<CPDF_Font> CPDF_Font::GetStockFont(CPDF_Document* pDoc, in GetStockFont() argument
297 RetainPtr<CPDF_Font> pFont = pFontGlobals->Find(pDoc, font_id.value()); in GetStockFont()
301 auto pDict = pDoc->New<CPDF_Dictionary>(); in GetStockFont()
307 pFontGlobals->Set(pDoc, font_id.value(), pFont); in GetStockFont()
312 RetainPtr<CPDF_Font> CPDF_Font::Create(CPDF_Document* pDoc, in Create() argument
324 pFont = pdfium::MakeRetain<CPDF_CIDFont>(pDoc, pFontDict); in Create()
329 pFont = pdfium::MakeRetain<CPDF_TrueTypeFont>(pDoc, pFontDict); in Create()
331 pFont = pdfium::MakeRetain<CPDF_Type3Font>(pDoc, pFontDict, pFactory); in Create()
333 pFont = pdfium::MakeRetain<CPDF_CIDFont>(pDoc, pFontDict); in Create()
335 pFont = pdfium::MakeRetain<CPDF_Type1Font>(pDoc, pFontDict); in Create()
Dcpdf_fontglobals.h31 void Clear(CPDF_Document* pDoc);
32 RetainPtr<CPDF_Font> Find(CPDF_Document* pDoc,
34 void Set(CPDF_Document* pDoc,
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator_unittest.cpp200 auto pDoc = pdfium::MakeUnique<CPDF_Document>( in TEST_F() local
204 pDoc->CreateNewDoc(); in TEST_F()
205 CPDF_Dictionary* pPageDict = pDoc->CreateNewPage(0); in TEST_F()
206 auto pTestPage = pdfium::MakeRetain<CPDF_Page>(pDoc.get(), pPageDict); in TEST_F()
243 auto pDoc = pdfium::MakeUnique<CPDF_Document>( in TEST_F() local
247 pDoc->CreateNewDoc(); in TEST_F()
248 CPDF_Dictionary* pPageDict = pDoc->CreateNewPage(0); in TEST_F()
249 auto pTestPage = pdfium::MakeRetain<CPDF_Page>(pDoc.get(), pPageDict); in TEST_F()
253 CPDF_Font::GetStockFont(pDoc.get(), "Times-Roman"); in TEST_F()
311 auto pDoc = pdfium::MakeUnique<CPDF_Document>( in TEST_F() local
[all …]
/external/parameter-framework/upstream/xmlserializer/
DXmlDocSource.cpp44 CXmlDocSource::CXmlDocSource(_xmlDoc *pDoc, bool bValidateWithSchema, _xmlNode *pRootNode) in CXmlDocSource() argument
45 : _pDoc(pDoc), _pRootNode(pRootNode), _strRootElementType(""), _strRootElementName(""), in CXmlDocSource()
50 CXmlDocSource::CXmlDocSource(_xmlDoc *pDoc, bool bValidateWithSchema, in CXmlDocSource() argument
53 : _pDoc(pDoc), _pRootNode(xmlDocGetRootElement(pDoc)), _strRootElementType(strRootElementType), in CXmlDocSource()

12345