Home
last modified time | relevance | path

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

123

/external/pdfium/core/fpdfapi/parser/
Dcpdf_data_avail.cpp89 if (m_pDocument) in ~CPDF_DataAvail()
90 m_pDocument->RemoveObserver(this); in ~CPDF_DataAvail()
94 m_pDocument = nullptr; in OnObservableDestroyed()
220 pParser = m_pDocument ? m_pDocument->GetParser() : &m_parser; in GetObject()
277 const CPDF_Dictionary* pRoot = m_pDocument->GetRoot(); in PreparePageItem()
658 if (iPage == iCount && m_pDocument) in CheckPageNode()
659 m_pDocument->SetPageObjNum(iPage, pNode->m_dwPageNo); in CheckPageNode()
681 if (m_pDocument->GetPageCount() <= iPage || in LoadDocPage()
682 m_pDocument->IsPageLoaded(iPage)) { in LoadDocPage()
737 m_pDocument->LoadPages(); in LoadPages()
[all …]
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp45 CPDF_Image::CPDF_Image(CPDF_Document* pDoc) : m_pDocument(pDoc) { in CPDF_Image()
46 ASSERT(m_pDocument); in CPDF_Image()
50 : m_bIsInline(true), m_pDocument(pDoc), m_pStream(std::move(pStream)) { in CPDF_Image()
51 ASSERT(m_pDocument); in CPDF_Image()
56 : m_pDocument(pDoc), in CPDF_Image()
58 ASSERT(m_pDocument); in CPDF_Image()
77 m_pDocument->AddIndirectObject(m_pStream); in ConvertStreamToIndirectObject()
225 CPDF_Array* pCS = m_pDocument->NewIndirect<CPDF_Array>(); in SetImage()
239 auto pNewDict = m_pDocument->New<CPDF_Dictionary>(); in SetImage()
240 CPDF_Stream* pCTS = m_pDocument->NewIndirect<CPDF_Stream>( in SetImage()
[all …]
Dcpdf_textstate.cpp83 m_pDocument(nullptr), in TextData()
96 m_pDocument(that.m_pDocument), in TextData()
107 if (m_pDocument && m_pFont) { in TextData()
108 auto* pPageData = CPDF_DocPageData::FromDocument(m_pDocument.Get()); in TextData()
120 m_pDocument = pFont ? pFont->GetDocument() : nullptr; in SetFont()
Dcpdf_pattern.cpp14 : m_pDocument(pDoc), m_pPatternObj(pObj), m_ParentMatrix(parentMatrix) { in CPDF_Pattern()
15 ASSERT(m_pDocument); in CPDF_Pattern()
Dcpdf_pattern.h32 CPDF_Document* document() const { return m_pDocument.Get(); } in document()
45 UnownedPtr<CPDF_Document> const m_pDocument;
Dcpdf_image.h39 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
89 UnownedPtr<CPDF_Document> const m_pDocument; variable
Dcpdf_streamcontentparser.cpp260 : m_pDocument(pDocument), in CPDF_StreamContentParser()
359 param.m_pObject = m_pDocument->New<CPDF_Name>(param.m_Name); in GetObject()
602 auto pDict = m_pDocument->New<CPDF_Dictionary>(); in Handle_BeginImage()
619 pDict->SetNewFor<CPDF_Reference>(key, m_pDocument.Get(), in Handle_BeginImage()
641 m_pSyntax->ReadInlineStream(m_pDocument.Get(), std::move(pDict), pCSObj); in Handle_BeginImage()
773 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()
805 pImageObj->SetImage(CPDF_DocPageData::FromDocument(m_pDocument.Get()) in AddImage()
818 pImageObj->SetImage(CPDF_DocPageData::FromDocument(m_pDocument.Get()) in AddImage()
1152 return CPDF_Font::GetStockFont(m_pDocument.Get(), in FindFont()
[all …]
Dcpdf_colorspace.h78 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
131 UnownedPtr<CPDF_Document> const m_pDocument; variable
Dcpdf_pageobjectholder.h67 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
114 UnownedPtr<CPDF_Document> m_pDocument; variable
/external/pdfium/fpdfsdk/fpdfxfa/
Dcpdfxfa_page.cpp26 : m_pDocument(pDocument), m_iPageIndex(page_index) { in CPDFXFA_Page()
27 ASSERT(m_pDocument->GetExtension()); in CPDFXFA_Page()
42 return m_pDocument.Get(); in GetDocument()
58 auto* pContext = static_cast<CPDFXFA_Context*>(m_pDocument->GetExtension()); in GetXFAPageView()
64 auto* pContext = static_cast<CPDFXFA_Context*>(m_pDocument->GetExtension()); in LoadPage()
90 auto* pContext = static_cast<CPDFXFA_Context*>(m_pDocument->GetExtension()); in GetPageWidth()
112 auto* pContext = static_cast<CPDFXFA_Context*>(m_pDocument->GetExtension()); in GetPageHeight()
160 auto* pContext = static_cast<CPDFXFA_Context*>(m_pDocument->GetExtension()); in GetDisplayMatrix()
/external/pdfium/core/fpdfdoc/
Dcba_fontmap.cpp76 : m_pDocument(pDocument), m_pAnnotDict(pAnnotDict) { in CBA_FontMap()
202 const CPDF_Dictionary* pRootDict = m_pDocument->GetRoot(); in FindFontSameCharset()
239 auto* pData = CPDF_DocPageData::FromDocument(m_pDocument.Get()); in FindResFontSameCharset()
261 CPDF_Dictionary* pRootDict = m_pDocument->GetRoot(); in GetAnnotDefaultFont()
306 return CPDF_DocPageData::FromDocument(m_pDocument.Get())->GetFont(pFontDict); in GetAnnotDefaultFont()
324 pStream = m_pDocument->NewIndirect<CPDF_Stream>(); in AddFontToAnnotDict()
325 pAPDict->SetNewFor<CPDF_Reference>(m_sAPType, m_pDocument.Get(), in AddFontToAnnotDict()
331 auto pOwnedDict = m_pDocument->New<CPDF_Dictionary>(); in AddFontToAnnotDict()
341 pStreamResFontList = m_pDocument->NewIndirect<CPDF_Dictionary>(); in AddFontToAnnotDict()
342 pStreamResList->SetNewFor<CPDF_Reference>("Font", m_pDocument.Get(), in AddFontToAnnotDict()
[all …]
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()
Dcpvt_fontmap.cpp22 : m_pDocument(pDoc), in CPVT_FontMap()
58 m_pSysFont = GetAnnotSysPDFFont(m_pDocument.Get(), m_pResDict.Get(), in GetPDFFont()
73 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_annotlist.cpp174 : m_pDocument(pPage->GetDocument()) { in CPDF_AnnotList()
179 const CPDF_Dictionary* pRoot = m_pDocument->GetRoot(); in CPDF_AnnotList()
194 pAnnots->ConvertToIndirectObjectAt(i, m_pDocument.Get()); in CPDF_AnnotList()
196 pdfium::MakeUnique<CPDF_Annot>(pDict, m_pDocument.Get())); in CPDF_AnnotList()
200 GenerateAP(m_pDocument.Get(), pDict); in CPDF_AnnotList()
207 CreatePopupAnnot(m_pDocument.Get(), pPage, m_AnnotList[i].get()); in CPDF_AnnotList()
Dcpdf_bookmarktree.cpp12 CPDF_BookmarkTree::CPDF_BookmarkTree(CPDF_Document* pDoc) : m_pDocument(pDoc) {} in CPDF_BookmarkTree()
21 CPDF_Dictionary* pRoot = m_pDocument->GetRoot(); in GetFirstChild()
Dcpdf_annot.h80 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
114 UnownedPtr<CPDF_Document> const m_pDocument; variable
/external/pdfium/xfa/fxfa/
Dcxfa_ffdoc.cpp79 m_pDocument(pdfium::MakeUnique<CXFA_Document>( in CXFA_FFDoc()
88 if (m_pDocument) in ~CXFA_FFDoc()
89 m_pDocument->ClearLayoutData(); in ~CXFA_FFDoc()
91 m_pDocument.reset(); in ~CXFA_FFDoc()
100 CXFA_DocumentParser parser(m_pDocument.get()); in ParseDoc()
111 m_pDocument->SetRoot(parser.GetRootNode()); in ParseDoc()
144 CXFA_Node* pConfig = ToNode(m_pDocument->GetXFAObject(XFA_HASHCODE_Config)); in OpenDoc()
Dcxfa_ffdoc.h60 CXFA_Document* GetXFADoc() const { return m_pDocument.get(); } in GetXFADoc()
85 std::unique_ptr<CXFA_Document> m_pDocument; variable
/external/pdfium/core/fpdfapi/edit/
Dcpdf_creator.cpp145 : m_pDocument(pDoc), in CPDF_Creator()
149 m_dwLastObjNum(m_pDocument->GetLastObjNum()), in CPDF_Creator()
174 bool bExistInMap = !!m_pDocument->GetIndirectObject(objnum); in WriteOldIndirectObject()
175 CPDF_Object* pObj = m_pDocument->GetOrParseIndirectObject(objnum); in WriteOldIndirectObject()
183 m_pDocument->DeleteIndirectObject(objnum); in WriteOldIndirectObject()
202 CPDF_Object* pObj = m_pDocument->GetIndirectObject(objnum); in WriteNewObjs()
214 for (const auto& pair : *m_pDocument) { in InitNewObjNumOffsets()
236 const CPDF_Dictionary* pDict = m_pDocument->GetRoot(); in WriteDoc_Stage1()
441 if (!m_Archive->WriteDWord(m_pDocument->GetLastObjNum() + 1) || in WriteDoc_Stage4()
468 !m_Archive->WriteDWord(m_pDocument->GetRoot()->GetObjNum()) || in WriteDoc_Stage4()
[all …]
Dcpdf_pagecontentgenerator.cpp58 : m_pObjHolder(pObjHolder), m_pDocument(pObjHolder->GetDocument()) { in CPDF_PageContentGenerator()
183 m_pDocument->NewIndirect<CPDF_Dictionary>()); in RealizeResource()
185 "Resources", m_pDocument.Get(), in RealizeResource()
201 pResList->SetNewFor<CPDF_Reference>(name, m_pDocument.Get(), in RealizeResource()
327 auto* pPageData = CPDF_DocPageData::FromDocument(m_pDocument.Get()); in ProcessImage()
450 CPDF_Object* pDict = m_pDocument->AddIndirectObject(gsDict); in ProcessGraphics()
482 CPDF_Object* pDict = m_pDocument->AddIndirectObject(gsDict); in GetOrCreateDefaultGraphics()
498 pFont = CPDF_Font::GetStockFont(m_pDocument.Get(), "Helvetica"); in ProcessText()
528 pEncoding->Realize(m_pDocument->GetByteStringPool())); in ProcessText()
530 pIndirectFont = m_pDocument->AddIndirectObject(pFontDict); in ProcessText()
/external/pdfium/xfa/fxfa/parser/
Dcxfa_document.h59 void SetDocument(CXFA_Document* pDocument) { m_pDocument = pDocument; } in SetDocument()
60 CXFA_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
63 UnownedPtr<CXFA_Document> m_pDocument;
Dcxfa_object.h44 CXFA_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
98 UnownedPtr<CXFA_Document> const m_pDocument; variable
/external/pdfium/core/fpdfapi/render/
Dcpdf_rendercontext.h63 CPDF_Document* GetDocument() const { return m_pDocument.Get(); } in GetDocument()
68 UnownedPtr<CPDF_Document> const m_pDocument;
Dcpdf_imagecacheentry.cpp39 : m_pDocument(pDoc), m_pImage(pImage) {} in CPDF_ImageCacheEntry()
73 m_pDocument.Get(), m_pImage->GetStream(), true, pFormResources, in StartGetCachedBitmap()

123