Home
last modified time | relevance | path

Searched refs:m_pDocument (Results 1 – 25 of 80) sorted by relevance

1234

/external/pdfium/core/fpdfdoc/
Dcpdf_docjsactions.cpp11 CPDF_DocJSActions::CPDF_DocJSActions(CPDF_Document* pDoc) : m_pDocument(pDoc) {} in CPDF_DocJSActions()
16 ASSERT(m_pDocument); in CountJSActions()
17 CPDF_NameTree name_tree(m_pDocument.Get(), "JavaScript"); in CountJSActions()
23 ASSERT(m_pDocument); in GetJSActionAndName()
24 CPDF_NameTree name_tree(m_pDocument.Get(), "JavaScript"); in GetJSActionAndName()
29 ASSERT(m_pDocument); in GetJSAction()
30 CPDF_NameTree name_tree(m_pDocument.Get(), "JavaScript"); in GetJSAction()
35 ASSERT(m_pDocument); in FindJSAction()
36 CPDF_NameTree name_tree(m_pDocument.Get(), "JavaScript"); in FindJSAction()
Dcpdf_pagelabel.cpp77 : m_pDocument(pDocument) {} in CPDF_PageLabel()
82 if (!m_pDocument) in GetLabel()
85 if (nPage < 0 || nPage >= m_pDocument->GetPageCount()) in GetLabel()
88 const CPDF_Dictionary* pPDFRoot = m_pDocument->GetRoot(); in GetLabel()
125 if (!m_pDocument) in GetPageByLabel()
128 const CPDF_Dictionary* pPDFRoot = m_pDocument->GetRoot(); in GetPageByLabel()
132 int nPages = m_pDocument->GetPageCount(); in GetPageByLabel()
Dcpdf_annotlist.cpp122 : m_pDocument(pPage->m_pDocument.Get()) { in CPDF_AnnotList()
130 const CPDF_Dictionary* pRoot = m_pDocument->GetRoot(); in CPDF_AnnotList()
143 pAnnots->ConvertToIndirectObjectAt(i, m_pDocument); in CPDF_AnnotList()
144 m_AnnotList.push_back(pdfium::MakeUnique<CPDF_Annot>(pDict, m_pDocument)); in CPDF_AnnotList()
147 GenerateAP(m_pDocument, pDict); in CPDF_AnnotList()
154 CreatePopupAnnot(m_AnnotList[i].get(), m_pDocument, pPage)); in CPDF_AnnotList()
Dcpvt_fontmap.cpp21 : m_pDocument(pDoc), in CPVT_FontMap()
53 m_pSysFont = GetAnnotSysPDFFont(m_pDocument.Get(), m_pResDict.Get(), in GetPDFFont()
68 m_pSysFont = GetAnnotSysPDFFont(m_pDocument.Get(), m_pResDict.Get(), in GetPDFFontAlias()
Dcpdf_bookmarktree.h22 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
25 UnownedPtr<CPDF_Document> const m_pDocument;
Dcpdf_docjsactions.h25 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
28 UnownedPtr<CPDF_Document> const m_pDocument;
Dcpdf_bookmarktree.cpp11 CPDF_BookmarkTree::CPDF_BookmarkTree(CPDF_Document* pDoc) : m_pDocument(pDoc) {} in CPDF_BookmarkTree()
21 const CPDF_Dictionary* pRoot = m_pDocument->GetRoot(); in GetFirstChild()
/external/pdfium/core/fpdfapi/parser/
Dcpdf_data_avail.cpp214 pParser = m_pDocument ? m_pDocument->GetParser() : &m_parser; in GetObject()
279 const CPDF_Dictionary* pRoot = m_pDocument->GetRoot(); in PreparePageItem()
288 m_pCurrentParser = m_pDocument->GetParser(); in PreparePageItem()
677 if (iPage == iCount && m_pDocument) in CheckPageNode()
678 m_pDocument->SetPageObjNum(iPage, pNode->m_dwPageNo); in CheckPageNode()
700 if (m_pDocument->GetPageCount() <= iPage || in LoadDocPage()
701 m_pDocument->IsPageLoaded(iPage)) { in LoadDocPage()
756 m_pDocument->LoadPages(); in LoadPages()
764 if (!m_pLinearized->GetMainXRefTableFirstEntryOffset() || !m_pDocument || in CheckLinearizedData()
765 !m_pDocument->GetParser() || !m_pDocument->GetParser()->GetTrailer()) { in CheckLinearizedData()
[all …]
Dcpdf_parser.cpp244 m_pDocument = pDocument; in StartParseInternal()
269 m_pDocument->LoadDoc(); in StartParseInternal()
270 if (!m_pDocument->GetRoot() || m_pDocument->GetPageCount() == 0) { in StartParseInternal()
282 m_pDocument->LoadDoc(); in StartParseInternal()
283 if (!m_pDocument->GetRoot()) in StartParseInternal()
297 ToReference(m_pDocument->GetRoot()->GetObjectFor("Metadata")); in StartParseInternal()
337 pEncryptObj = m_pDocument->GetOrParseIndirectObject(pRef->GetRefObjNum()); in SetEncryptHandler()
830 ParseIndirectObjectAtByStrict(m_pDocument.Get(), obj_pos, in RebuildCrossRef()
888 m_pSyntax->GetObjectBody(m_pDocument.Get()); in RebuildCrossRef()
909 key, m_pDocument.Get(), dwObjNum); in RebuildCrossRef()
[all …]
/external/pdfium/fpdfsdk/formfiller/
Dcba_fontmap.cpp25 m_pDocument(nullptr), in CBA_FontMap()
31 m_pDocument = pPage->m_pDocument.Get(); in CBA_FontMap()
108 return m_pDocument.Get(); in GetDocument()
168 pStream = m_pDocument->NewIndirect<CPDF_Stream>(); in AddFontToAnnotDict()
169 pAPDict->SetNewFor<CPDF_Reference>(m_sAPType, m_pDocument.Get(), in AddFontToAnnotDict()
176 pdfium::MakeUnique<CPDF_Dictionary>(m_pDocument->GetByteStringPool()); in AddFontToAnnotDict()
186 pStreamResFontList = m_pDocument->NewIndirect<CPDF_Dictionary>(); in AddFontToAnnotDict()
187 pStreamResList->SetNewFor<CPDF_Reference>("Font", m_pDocument.Get(), in AddFontToAnnotDict()
192 sAlias, m_pDocument.Get(), pFont->GetFontDict()->GetObjNum()); in AddFontToAnnotDict()
200 const CPDF_Dictionary* pRootDict = m_pDocument->GetRoot(); in GetAnnotDefaultFont()
[all …]
/external/pdfium/xfa/fxfa/parser/
Dcxfa_document_parser.cpp23 m_pDocument.reset(); in StartParse()
28 m_pDocument = pdfium::MakeUnique<CXFA_Document>(this); in StartParse()
29 m_nodeParser.SetFactory(m_pDocument.get()); in StartParse()
37 ASSERT(m_pDocument); in DoParse()
38 m_pDocument->SetRoot(m_nodeParser.GetRootNode()); in DoParse()
52 return m_pDocument.get(); in GetDocument()
Dcxfa_dataimporter.cpp21 : m_pDocument(pDocument) { in CXFA_DataImporter()
22 ASSERT(m_pDocument); in CXFA_DataImporter()
30 pdfium::MakeUnique<CXFA_SimpleParser>(m_pDocument.Get()); in ImportData()
43 ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Datasets)); in ImportData()
47 CXFA_Node* pDataNode = ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Data)); in ImportData()
63 m_pDocument->DoDataRemerge(false); in ImportData()
Dcxfa_dataexporter.cpp19 : m_pDocument(pDocument) { in CXFA_DataExporter()
20 ASSERT(m_pDocument); in CXFA_DataExporter()
26 return Export(pWrite, m_pDocument->GetRoot(), 0, nullptr); in Export()
47 CFX_XMLDoc* pXMLDoc = m_pDocument->GetXMLDoc(); in Export()
Dcxfa_layoutprocessor.cpp24 : m_pDocument(pDocument), m_nProgressCounter(0), m_bNeedLayout(true) {} in CXFA_LayoutProcessor()
29 return m_pDocument.Get(); in GetDocument()
39 ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Form)); in StartLayout()
Dcxfa_node.cpp197 ASSERT(m_pDocument); in CXFA_Node()
233 CXFA_Node* pClone = m_pDocument->CreateNode(m_ePacket, m_elementType); in Clone()
447 CXFA_Node* pNewNode = m_pDocument->CreateNode(GetPacketType(), *property); in GetNodeList()
457 CXFA_Node* pNode = m_pDocument->CreateNode(m_ePacket, eType); in CreateSamePacketNode()
465 m_pDocument->CreateNode(XFA_PacketType::Form, m_elementType); in CloneTemplateToForm()
674 m_pDocument->GetCurVersionMode() < XFA_VERSION_208) { in GetIntact()
726 XFA_VERSION version = m_pDocument->GetCurVersionMode(); in GetIntact()
756 return m_pDocument->GetRoot(); in GetModelNode()
758 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Config)); in GetModelNode()
760 return ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Template)); in GetModelNode()
[all …]
Dcxfa_object.cpp26 m_pDocument(pDocument), in CXFA_Object()
36 CFXJSE_Engine* pScriptContext = m_pDocument->GetScriptContext(); in GetSOMExpression()
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp34 CPDF_Image::CPDF_Image(CPDF_Document* pDoc) : m_pDocument(pDoc) {} in CPDF_Image()
39 m_pDocument(pDoc), in CPDF_Image()
48 : m_pDocument(pDoc), in CPDF_Image()
72 m_pDocument->AddIndirectObject(m_pStream.Release()); in ConvertStreamToIndirectObject()
92 pdfium::MakeUnique<CPDF_Dictionary>(m_pDocument->GetByteStringPool()); in InitJPEG()
172 pdfium::MakeUnique<CPDF_Dictionary>(m_pDocument->GetByteStringPool()); in SetImage()
224 CPDF_Array* pCS = m_pDocument->NewIndirect<CPDF_Array>(); in SetImage()
239 pdfium::MakeUnique<CPDF_Dictionary>(m_pDocument->GetByteStringPool()); in SetImage()
240 CPDF_Stream* pCTS = m_pDocument->NewIndirect<CPDF_Stream>( in SetImage()
242 pCS->AddNew<CPDF_Reference>(m_pDocument.Get(), pCTS->GetObjNum()); in SetImage()
[all …]
Dcpdf_textstate.cpp94 m_pDocument(nullptr), in TextData()
107 m_pDocument(that.m_pDocument), in TextData()
118 if (m_pDocument && m_pFont) in TextData()
119 m_pFont = m_pDocument->GetPageData()->GetFont(m_pFont->GetFontDict()); in TextData()
128 m_pDocument = pFont ? pFont->GetDocument() : nullptr; in SetFont()
149 if (!m_pDocument || !m_pFont) in ReleaseFont()
152 CPDF_DocPageData* pPageData = m_pDocument->GetPageData(); in ReleaseFont()
Dcpdf_pattern.h30 CPDF_Document* document() const { return m_pDocument.Get(); } in document()
43 UnownedPtr<CPDF_Document> const m_pDocument;
Dcpdf_patterncs.cpp20 if (pCS && m_pDocument) { in ~CPDF_PatternCS()
21 auto* pPageData = m_pDocument->GetPageData(); in ~CPDF_PatternCS()
Dcpdf_streamcontentparser.cpp249 : m_pDocument(pDocument), in CPDF_StreamContentParser()
314 m_pDocument->GetByteStringPool(), PDF_NameDecode(bsName)); in AddNameParam()
374 m_pDocument->GetByteStringPool(), in GetObject()
608 pdfium::MakeUnique<CPDF_Dictionary>(m_pDocument->GetByteStringPool()); in Handle_BeginImage()
626 pDict->SetNewFor<CPDF_Reference>(key, m_pDocument.Get(), dwObjNum); in Handle_BeginImage()
646 m_pSyntax->ReadInlineStream(m_pDocument.Get(), std::move(pDict), pCSObj); in Handle_BeginImage()
774 m_pDocument.Get(), m_pPageResources.Get(), pStream, m_pResources.Get()); in AddForm()
797 pdfium::MakeRetain<CPDF_Image>(m_pDocument.Get(), std::move(pStream))); in AddImage()
803 pImageObj->SetImage(m_pDocument->LoadImageFromPageData(streamObjNum)); in AddImage()
814 m_pDocument->GetPageData()->GetImage(pImage->GetStream()->GetObjNum())); in AddImage()
[all …]
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp54 : m_pObjHolder(pObjHolder), m_pDocument(pObjHolder->m_pDocument.Get()) { in CPDF_PageContentGenerator()
66 CPDF_Document* pDoc = m_pDocument.Get(); in GenerateContent()
96 pPageDict->SetNewFor<CPDF_Reference>("Contents", m_pDocument.Get(), in GenerateContent()
102 pPageDict->SetNewFor<CPDF_Reference>("Contents", m_pDocument.Get(), in GenerateContent()
120 pPageDict->SetNewFor<CPDF_Reference>("Contents", m_pDocument.Get(), in GenerateContent()
129 m_pObjHolder->m_pResources = m_pDocument->NewIndirect<CPDF_Dictionary>(); in RealizeResource()
131 "Resources", m_pDocument.Get(), in RealizeResource()
147 pResList->SetNewFor<CPDF_Reference>(name, m_pDocument.Get(), in RealizeResource()
193 pImageObj->SetImage(m_pDocument->GetPageData()->GetImage(dwObjNum)); in ProcessImage()
315 CPDF_Object* pDict = m_pDocument->AddIndirectObject(std::move(gsDict)); in ProcessGraphics()
[all …]
Dcpdf_creator.cpp143 : m_pDocument(pDoc), in CPDF_Creator()
150 m_dwLastObjNum(m_pDocument->GetLastObjNum()), in CPDF_Creator()
323 bool bExistInMap = !!m_pDocument->GetIndirectObject(objnum); in WriteOldIndirectObject()
324 CPDF_Object* pObj = m_pDocument->GetOrParseIndirectObject(objnum); in WriteOldIndirectObject()
332 m_pDocument->DeleteIndirectObject(objnum); in WriteOldIndirectObject()
351 CPDF_Object* pObj = m_pDocument->GetIndirectObject(objnum); in WriteNewObjs()
384 for (const auto& pair : *m_pDocument) { in InitNewObjNumOffsets()
408 const CPDF_Dictionary* pDict = m_pDocument->GetRoot(); in WriteDoc_Stage1()
617 if (!m_Archive->WriteDWord(m_pDocument->GetLastObjNum() + 1) || in WriteDoc_Stage4()
649 !m_Archive->WriteDWord(m_pDocument->GetRoot()->GetObjNum()) || in WriteDoc_Stage4()
[all …]
/external/pdfium/core/fpdfapi/render/
Dcpdf_rendercontext.cpp24 : m_pDocument(pPage->m_pDocument.Get()), in CPDF_RenderContext()
30 : m_pDocument(pDoc), m_pPageResources(nullptr), m_pPageCache(pPageCache) {} in CPDF_RenderContext()
Dcpdf_rendercontext.h63 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
68 UnownedPtr<CPDF_Document> const m_pDocument;

1234