/external/pdfium/core/fpdfapi/parser/ |
D | cpdf_dictionary.cpp | 25 CPDF_Dictionary::CPDF_Dictionary() in CPDF_Dictionary() function in CPDF_Dictionary 26 : CPDF_Dictionary(WeakPtr<ByteStringPool>()) {} in CPDF_Dictionary() 28 CPDF_Dictionary::CPDF_Dictionary(const WeakPtr<ByteStringPool>& pPool) in CPDF_Dictionary() function in CPDF_Dictionary 31 CPDF_Dictionary::~CPDF_Dictionary() { in ~CPDF_Dictionary() 41 CPDF_Object::Type CPDF_Dictionary::GetType() const { in GetType() 45 CPDF_Dictionary* CPDF_Dictionary::AsMutableDictionary() { in AsMutableDictionary() 49 RetainPtr<CPDF_Object> CPDF_Dictionary::Clone() const { in Clone() 53 RetainPtr<CPDF_Object> CPDF_Dictionary::CloneNonCyclic( in CloneNonCyclic() 57 auto pCopy = pdfium::MakeRetain<CPDF_Dictionary>(m_pPool); in CloneNonCyclic() 70 const CPDF_Object* CPDF_Dictionary::GetObjectForInternal( in GetObjectForInternal() [all …]
|
D | cpdf_document.cpp | 37 RetainPtr<CPDF_Dictionary> pPages, in CountPages() 38 std::set<RetainPtr<CPDF_Dictionary>>* visited_pages) { in CountPages() 47 RetainPtr<CPDF_Dictionary> pKid = pKidList->GetMutableDictAt(i); in CountPages() 52 ScopedSetInsertion<RetainPtr<CPDF_Dictionary>> local_add(visited_pages, in CountPages() 72 int FindPageIndex(const CPDF_Dictionary* pNode, in FindPageIndex() 112 RetainPtr<const CPDF_Dictionary> pKid = pKidList->GetDictAt(i); in FindPageIndex() 206 RetainPtr<CPDF_Dictionary> CPDF_Document::TraversePDFPages(int iPage, in TraversePDFPages() 212 RetainPtr<CPDF_Dictionary> pPages = m_pTreeTraversal[level].first; in TraversePDFPages() 226 RetainPtr<CPDF_Dictionary> page; in TraversePDFPages() 231 RetainPtr<CPDF_Dictionary> pKid = pKidList->GetMutableDictAt(i); in TraversePDFPages() [all …]
|
D | cpdf_document_unittest.cpp | 28 RetainPtr<CPDF_Dictionary> CreatePageTreeNode(RetainPtr<CPDF_Array> kids, in CreatePageTreeNode() 32 auto pageNode = pDoc->NewIndirect<CPDF_Dictionary>(); in CreatePageTreeNode() 43 RetainPtr<CPDF_Dictionary> CreateNumberedPage(size_t number) { in CreateNumberedPage() 44 auto page = pdfium::MakeRetain<CPDF_Dictionary>(); in CreateNumberedPage() 61 RetainPtr<CPDF_Dictionary> branch1 = in CPDF_TestDocumentForPages() 68 RetainPtr<CPDF_Dictionary> branch2 = in CPDF_TestDocumentForPages() 76 RetainPtr<CPDF_Dictionary> branch3 = in CPDF_TestDocumentForPages() 82 RetainPtr<CPDF_Dictionary> branch4 = in CPDF_TestDocumentForPages() 89 RetainPtr<CPDF_Dictionary> pagesDict = in CPDF_TestDocumentForPages() 92 SetRootForTesting(NewIndirect<CPDF_Dictionary>()); in CPDF_TestDocumentForPages() [all …]
|
D | cpdf_dictionary.h | 28 class CPDF_Dictionary final : public CPDF_Object { 38 CPDF_Dictionary* AsMutableDictionary() override; 68 RetainPtr<const CPDF_Dictionary> GetDictFor(const ByteString& key) const; 69 RetainPtr<CPDF_Dictionary> GetMutableDictFor(const ByteString& key); 70 RetainPtr<CPDF_Dictionary> GetOrCreateDictFor(const ByteString& key); 125 CPDF_Dictionary(); 126 explicit CPDF_Dictionary(const WeakPtr<ByteStringPool>& pPool); 127 ~CPDF_Dictionary() override; 133 const CPDF_Dictionary* GetDictForInternal(const ByteString& key) const; 141 const CPDF_Dictionary* GetDictInternal() const override; [all …]
|
D | cpdf_document.h | 97 const CPDF_Dictionary* GetRoot() const { return m_pRootDict.Get(); } in GetRoot() 98 RetainPtr<CPDF_Dictionary> GetMutableRoot() { return m_pRootDict; } in GetMutableRoot() 99 RetainPtr<CPDF_Dictionary> GetInfo(); 105 RetainPtr<const CPDF_Dictionary> GetPageDictionary(int iPage); 106 RetainPtr<CPDF_Dictionary> GetMutablePageDictionary(int iPage); 148 RetainPtr<CPDF_Dictionary> CreateNewPage(int iPage); 156 void SetRootForTesting(RetainPtr<CPDF_Dictionary> root); 175 RetainPtr<CPDF_Dictionary> TraversePDFPages(int iPage, 179 RetainPtr<const CPDF_Dictionary> GetPagesDict() const; 180 RetainPtr<CPDF_Dictionary> GetMutablePagesDict(); [all …]
|
D | cpdf_security_handler.h | 20 class CPDF_Dictionary; variable 26 bool OnInit(const CPDF_Dictionary* pEncryptDict, 29 void OnCreate(CPDF_Dictionary* pEncryptDict, 33 void OnCreate(CPDF_Dictionary* pEncryptDict, 59 bool LoadDict(const CPDF_Dictionary* pEncryptDict); 60 bool LoadDict(const CPDF_Dictionary* pEncryptDict, 70 void AES256_SetPassword(CPDF_Dictionary* pEncryptDict, 73 void AES256_SetPerms(CPDF_Dictionary* pEncryptDict); 74 void OnCreateInternal(CPDF_Dictionary* pEncryptDict, 91 RetainPtr<const CPDF_Dictionary> m_pEncryptDict;
|
/external/pdfium/fpdfsdk/ |
D | fpdf_signature.cpp | 20 std::vector<RetainPtr<const CPDF_Dictionary>> CollectSignatures( in CollectSignatures() 22 std::vector<RetainPtr<const CPDF_Dictionary>> signatures; in CollectSignatures() 23 const CPDF_Dictionary* root = doc->GetRoot(); in CollectSignatures() 27 RetainPtr<const CPDF_Dictionary> acro_form = root->GetDictFor("AcroForm"); in CollectSignatures() 37 RetainPtr<const CPDF_Dictionary> field_dict = field->GetDict(); in CollectSignatures() 62 std::vector<RetainPtr<const CPDF_Dictionary>> signatures = in FPDF_GetSignatureObject() 74 const CPDF_Dictionary* signature_dict = in FPDFSignatureObj_GetContents() 79 RetainPtr<const CPDF_Dictionary> value_dict = in FPDFSignatureObj_GetContents() 97 const CPDF_Dictionary* signature_dict = in FPDFSignatureObj_GetByteRange() 102 RetainPtr<const CPDF_Dictionary> value_dict = in FPDFSignatureObj_GetByteRange() [all …]
|
D | cpdfsdk_helpers.h | 53 inline FPDF_ACTION FPDFActionFromCPDFDictionary(const CPDF_Dictionary* action) { in FPDFActionFromCPDFDictionary() 54 return reinterpret_cast<FPDF_ACTION>(const_cast<CPDF_Dictionary*>(action)); in FPDFActionFromCPDFDictionary() 56 inline CPDF_Dictionary* CPDFDictionaryFromFPDFAction(FPDF_ACTION action) { in CPDFDictionaryFromFPDFAction() 57 return reinterpret_cast<CPDF_Dictionary*>(action); in CPDFDictionaryFromFPDFAction() 84 const CPDF_Dictionary* bookmark) { in FPDFBookmarkFromCPDFDictionary() 86 const_cast<CPDF_Dictionary*>(bookmark)); in FPDFBookmarkFromCPDFDictionary() 88 inline CPDF_Dictionary* CPDFDictionaryFromFPDFBookmark(FPDF_BOOKMARK bookmark) { in CPDFDictionaryFromFPDFBookmark() 89 return reinterpret_cast<CPDF_Dictionary*>(bookmark); in CPDFDictionaryFromFPDFBookmark() 122 inline FPDF_LINK FPDFLinkFromCPDFDictionary(CPDF_Dictionary* link) { in FPDFLinkFromCPDFDictionary() 125 inline CPDF_Dictionary* CPDFDictionaryFromFPDFLink(FPDF_LINK link) { in CPDFDictionaryFromFPDFLink() [all …]
|
D | fpdf_flatten.cpp | 57 RetainPtr<CPDF_Dictionary> pDict, in GetContentsRect() 69 void ParserStream(const CPDF_Dictionary* pPageDic, in ParserStream() 70 CPDF_Dictionary* pStream, in ParserStream() 72 std::vector<CPDF_Dictionary*>* pObjectArray) { in ParserStream() 88 RetainPtr<CPDF_Dictionary> pPageDic, in ParserAnnots() 90 std::vector<CPDF_Dictionary*>* pObjectArray, in ParserAnnots() 102 RetainPtr<CPDF_Dictionary> pAnnotDict = in ParserAnnots() 187 pDocument->NewIndirect<CPDF_Stream>(pDocument->New<CPDF_Dictionary>()); in NewIndirectContentsStreamReference() 193 CPDF_Dictionary* pPage, in SetPageContents() 259 RetainPtr<CPDF_Dictionary> pPageDict = pPage->GetMutableDict(); in FPDFPage_Flatten() [all …]
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_occontext.cpp | 17 bool HasIntent(const CPDF_Dictionary* pDict, in HasIntent() 37 RetainPtr<const CPDF_Dictionary> GetConfig(CPDF_Document* pDoc, in GetConfig() 38 const CPDF_Dictionary* pOCGDict) { in GetConfig() 40 RetainPtr<const CPDF_Dictionary> pOCProperties = in GetConfig() 52 RetainPtr<const CPDF_Dictionary> pConfig = pOCProperties->GetDictFor("D"); in GetConfig() 59 RetainPtr<const CPDF_Dictionary> pFind = pConfigArray->GetDictAt(i); in GetConfig() 96 const CPDF_Dictionary* pOCGDict) const { in LoadOCGStateFromConfig() 97 RetainPtr<const CPDF_Dictionary> pConfig = GetConfig(m_pDocument, pOCGDict); in LoadOCGStateFromConfig() 116 RetainPtr<const CPDF_Dictionary> pUsage = pArray->GetDictAt(i); in LoadOCGStateFromConfig() 130 RetainPtr<const CPDF_Dictionary> pState = pUsage->GetDictFor(csConfig); in LoadOCGStateFromConfig() [all …]
|
D | cpdf_pageobjectholder.h | 60 RetainPtr<CPDF_Dictionary> pDict, 61 RetainPtr<CPDF_Dictionary> pPageResources, 62 RetainPtr<CPDF_Dictionary> pResources); 72 RetainPtr<const CPDF_Dictionary> GetDict() const { return m_pDict; } in GetDict() 73 RetainPtr<CPDF_Dictionary> GetMutableDict() { return m_pDict; } in GetMutableDict() 74 RetainPtr<const CPDF_Dictionary> GetResources() const { return m_pResources; } in GetResources() 75 RetainPtr<CPDF_Dictionary> GetMutableResources() { return m_pResources; } in GetMutableResources() 76 void SetResources(RetainPtr<CPDF_Dictionary> pDict) { in SetResources() 79 RetainPtr<const CPDF_Dictionary> GetPageResources() const { in GetPageResources() 82 RetainPtr<CPDF_Dictionary> GetMutablePageResources() { in GetMutablePageResources() [all …]
|
D | cpdf_form.h | 19 class CPDF_Dictionary; variable 28 static CPDF_Dictionary* ChooseResourcesDict(CPDF_Dictionary* pResources, 29 CPDF_Dictionary* pParentResources, 30 CPDF_Dictionary* pPageResources); 33 RetainPtr<CPDF_Dictionary> pPageResources, 36 RetainPtr<CPDF_Dictionary> pPageResources, 38 CPDF_Dictionary* pParentResources);
|
D | cpdf_contentmarkitem.h | 13 class CPDF_Dictionary; variable 24 RetainPtr<const CPDF_Dictionary> GetParam() const; 25 RetainPtr<CPDF_Dictionary> GetParam(); 28 void SetDirectDict(RetainPtr<CPDF_Dictionary> pDict); 29 void SetPropertiesHolder(RetainPtr<CPDF_Dictionary> pHolder, 36 RetainPtr<CPDF_Dictionary> m_pPropertiesHolder; 37 RetainPtr<CPDF_Dictionary> m_pDirectDict;
|
D | cpdf_occontext.h | 18 class CPDF_Dictionary; variable 28 bool CheckOCGDictVisible(const CPDF_Dictionary* pOCGDict) const; 36 const CPDF_Dictionary* pOCGDict) const; 37 bool LoadOCGState(const CPDF_Dictionary* pOCGDict) const; 38 bool GetOCGVisible(const CPDF_Dictionary* pOCGDict) const; 40 bool LoadOCMDState(const CPDF_Dictionary* pOCMDDict) const; 44 mutable std::map<RetainPtr<const CPDF_Dictionary>, bool, std::less<>>
|
D | cpdf_docpagedata.h | 24 class CPDF_Dictionary; variable 52 RetainPtr<CPDF_Dictionary> pPageResources, 59 RetainPtr<CPDF_Font> GetFont(RetainPtr<CPDF_Dictionary> pFontDict); 70 const CPDF_Dictionary* pResources); 77 const CPDF_Dictionary* pResources, 98 const CPDF_Dictionary* pResources, 102 size_t CalculateEncodingDict(FX_Charset charset, CPDF_Dictionary* pBaseDict); 103 RetainPtr<CPDF_Dictionary> ProcessbCJK( 104 RetainPtr<CPDF_Dictionary> pBaseDict, 122 std::map<RetainPtr<const CPDF_Dictionary>, ObservedPtr<CPDF_Font>> m_FontMap;
|
D | cpdf_image.h | 20 class CPDF_Dictionary; variable 36 RetainPtr<const CPDF_Dictionary> GetDict() const; 38 RetainPtr<const CPDF_Dictionary> GetOC() const; 58 bool StartLoadDIBBase(const CPDF_Dictionary* pFormResource, 59 const CPDF_Dictionary* pPageResource, 78 RetainPtr<CPDF_Dictionary> InitJPEG(pdfium::span<uint8_t> src_span); 79 RetainPtr<CPDF_Dictionary> CreateXObjectImageDict(int width, int height); 91 RetainPtr<const CPDF_Dictionary> m_pOC;
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_nametree_unittest.cpp | 29 void AddLimitsArray(CPDF_Dictionary* node, in AddLimitsArray() 37 void CheckLimitsArray(const CPDF_Dictionary* node, in CheckLimitsArray() 71 void FillNameTreeDict(CPDF_Dictionary* pRootDict) { in FillNameTreeDict() 73 auto pKid1 = pRootKids->AppendNew<CPDF_Dictionary>(); in FillNameTreeDict() 78 auto pGrandKid2 = pKids1Kids->AppendNew<CPDF_Dictionary>(); in FillNameTreeDict() 79 auto pGrandKid3 = pKids1Kids->AppendNew<CPDF_Dictionary>(); in FillNameTreeDict() 83 auto pGreatGrandKid4 = pGrandKid2Kids->AppendNew<CPDF_Dictionary>(); in FillNameTreeDict() 84 auto pGreatGrandKid5 = pGrandKid2Kids->AppendNew<CPDF_Dictionary>(); in FillNameTreeDict() 106 auto pRootDict = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() 130 auto pRootDict = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() [all …]
|
D | cpdf_filespec_unittest.cpp | 106 auto dict_obj = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() 127 auto dict_obj = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() 147 auto dict_obj = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() 153 auto dict_obj = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() 154 dict_obj->SetNewFor<CPDF_Dictionary>("EF"); in TEST() 160 auto dict_obj = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() 161 dict_obj->SetNewFor<CPDF_Dictionary>("EF"); in TEST() 168 RetainPtr<CPDF_Dictionary> file_dict = dict_obj->GetMutableDictFor("EF"); in TEST() 176 auto pDict = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() 204 auto dict_obj = pdfium::MakeRetain<CPDF_Dictionary>(); in TEST() [all …]
|
D | cpdf_structtree.h | 26 RetainPtr<const CPDF_Dictionary> pPageDict); 37 using StructElementMap = std::map<RetainPtr<const CPDF_Dictionary>, 41 void LoadPageTree(RetainPtr<const CPDF_Dictionary> pPageDict); 43 RetainPtr<const CPDF_Dictionary> pDict, 46 bool AddTopLevelNode(const CPDF_Dictionary* pDict, 49 RetainPtr<const CPDF_Dictionary> const m_pTreeRoot; 50 RetainPtr<const CPDF_Dictionary> const m_pRoleMap; 51 RetainPtr<const CPDF_Dictionary> m_pPage;
|
D | cpdf_viewerpreferences.cpp | 20 RetainPtr<const CPDF_Dictionary> pDict = GetViewerPreferences(); in IsDirectionR2L() 25 RetainPtr<const CPDF_Dictionary> pDict = GetViewerPreferences(); in PrintScaling() 30 RetainPtr<const CPDF_Dictionary> pDict = GetViewerPreferences(); in NumCopies() 35 RetainPtr<const CPDF_Dictionary> pDict = GetViewerPreferences(); in PrintPageRange() 40 RetainPtr<const CPDF_Dictionary> pDict = GetViewerPreferences(); in Duplex() 46 RetainPtr<const CPDF_Dictionary> pDict = GetViewerPreferences(); in GenericName() 57 RetainPtr<const CPDF_Dictionary> CPDF_ViewerPreferences::GetViewerPreferences() in GetViewerPreferences() 59 const CPDF_Dictionary* pDict = m_pDoc->GetRoot(); in GetViewerPreferences()
|
D | cpdf_bafontmap.cpp | 69 RetainPtr<CPDF_Dictionary> pAnnotDict, in CPDF_BAFontMap() 179 const CPDF_Dictionary* pRootDict = m_pDocument->GetRoot(); in FindFontSameCharset() 183 RetainPtr<const CPDF_Dictionary> pAcroFormDict = in FindFontSameCharset() 188 RetainPtr<const CPDF_Dictionary> pDRDict = pAcroFormDict->GetDictFor("DR"); in FindFontSameCharset() 196 const CPDF_Dictionary* pResDict, in FindResFontSameCharset() 202 RetainPtr<const CPDF_Dictionary> pFonts = pResDict->GetDictFor("Font"); in FindResFontSameCharset() 210 RetainPtr<CPDF_Dictionary> pElement = in FindResFontSameCharset() 230 RetainPtr<CPDF_Dictionary> pAcroFormDict; in GetAnnotDefaultFont() 234 RetainPtr<CPDF_Dictionary> pRootDict = m_pDocument->GetMutableRoot(); in GetAnnotDefaultFont() 259 RetainPtr<CPDF_Dictionary> pFontDict; in GetAnnotDefaultFont() [all …]
|
D | cpdf_action_unittest.cpp | 15 RetainPtr<CPDF_Dictionary> CreateActionDictWithType( in CreateActionDictWithType() 17 auto dict = pdfium::MakeRetain<CPDF_Dictionary>(); in CreateActionDictWithType() 23 RetainPtr<CPDF_Dictionary> CreateActionDictWithoutType( in CreateActionDictWithoutType() 25 auto dict = pdfium::MakeRetain<CPDF_Dictionary>(); in CreateActionDictWithoutType() 30 RetainPtr<CPDF_Dictionary> CreateActionDictWithInvalidType( in CreateActionDictWithInvalidType() 32 auto dict = pdfium::MakeRetain<CPDF_Dictionary>(); in CreateActionDictWithInvalidType() 38 RetainPtr<CPDF_Dictionary> CreateInvalidActionDictWithType( in CreateInvalidActionDictWithType() 40 auto dict = pdfium::MakeRetain<CPDF_Dictionary>(); in CreateInvalidActionDictWithType() 46 RetainPtr<CPDF_Dictionary> CreateInvalidActionDictWithoutType( in CreateInvalidActionDictWithoutType() 48 auto dict = pdfium::MakeRetain<CPDF_Dictionary>(); in CreateInvalidActionDictWithoutType()
|
D | cpdf_nametree.cpp | 47 bool GetNodeAncestorsLimitsInternal(const RetainPtr<CPDF_Dictionary>& pNode, in GetNodeAncestorsLimitsInternal() 64 RetainPtr<CPDF_Dictionary> pKid = pKids->GetMutableDictAt(i); in GetNodeAncestorsLimitsInternal() 79 const RetainPtr<CPDF_Dictionary>& pNode, in GetNodeAncestorsLimits() 89 bool UpdateNodesAndLimitsUponDeletion(CPDF_Dictionary* pNode, in UpdateNodesAndLimitsUponDeletion() 133 RetainPtr<CPDF_Dictionary> pKid = pKids->GetMutableDictAt(i); in UpdateNodesAndLimitsUponDeletion() 200 const RetainPtr<CPDF_Dictionary>& pNode, in SearchNameNodeByNameInternal() 264 RetainPtr<CPDF_Dictionary> pKid = pKids->GetMutableDictAt(i); in SearchNameNodeByNameInternal() 279 const RetainPtr<CPDF_Dictionary>& pNode, in SearchNameNodeByName() 303 CPDF_Dictionary* pNode, in SearchNameNodeByIndexInternal() 336 RetainPtr<CPDF_Dictionary> pKid = pKids->GetMutableDictAt(i); in SearchNameNodeByIndexInternal() [all …]
|
D | cpdf_annot.h | 26 class CPDF_Dictionary; variable 72 const CPDF_Dictionary* pAnnotDict); 73 static CFX_FloatRect RectFromQuadPoints(const CPDF_Dictionary* pAnnotDict, 77 CPDF_Annot(RetainPtr<CPDF_Dictionary> pDict, CPDF_Document* pDocument); 83 const CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict.Get(); } in GetAnnotDict() 84 RetainPtr<CPDF_Dictionary> GetMutableAnnotDict() { return m_pAnnotDict; } in GetMutableAnnotDict() 112 RetainPtr<CPDF_Dictionary> const m_pAnnotDict; 127 RetainPtr<CPDF_Stream> GetAnnotAP(CPDF_Dictionary* pAnnotDict, 132 RetainPtr<CPDF_Stream> GetAnnotAPNoFallback(CPDF_Dictionary* pAnnotDict,
|
D | cpdf_interactiveform.cpp | 117 ByteString GenerateNewFontResourceName(const CPDF_Dictionary* pResDict, in GenerateNewFontResourceName() 134 RetainPtr<const CPDF_Dictionary> pDict = pResDict->GetDictFor("Font"); in GenerateNewFontResourceName() 174 bool FindFont(const CPDF_Dictionary* pFormDict, in FindFont() 177 RetainPtr<const CPDF_Dictionary> pDR = pFormDict->GetDictFor("DR"); in FindFont() 181 RetainPtr<const CPDF_Dictionary> pFonts = pDR->GetDictFor("Font"); in FindFont() 189 RetainPtr<const CPDF_Dictionary> pElement = in FindFont() 201 bool FindFontFromDoc(const CPDF_Dictionary* pFormDict, in FindFontFromDoc() 209 RetainPtr<const CPDF_Dictionary> pDR = pFormDict->GetDictFor("DR"); in FindFontFromDoc() 213 RetainPtr<const CPDF_Dictionary> pFonts = pDR->GetDictFor("Font"); in FindFontFromDoc() 221 RetainPtr<CPDF_Dictionary> pElement = in FindFontFromDoc() [all …]
|