/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::GetDict() const { in GetDict() 48 return const_cast<CPDF_Dictionary*>(this); in GetDict() 51 bool CPDF_Dictionary::IsDictionary() const { in IsDictionary() 55 CPDF_Dictionary* CPDF_Dictionary::AsDictionary() { in AsDictionary() 59 const CPDF_Dictionary* CPDF_Dictionary::AsDictionary() const { in AsDictionary() [all …]
|
D | cpdf_document.h | 48 const CPDF_Dictionary* GetRoot() const { return m_pRootDict; } in GetRoot() 49 CPDF_Dictionary* GetRoot() { return m_pRootDict; } in GetRoot() 50 const CPDF_Dictionary* GetInfo() const { return m_pInfoDict.Get(); } in GetInfo() 51 CPDF_Dictionary* GetInfo() { return m_pInfoDict.Get(); } in GetInfo() 56 CPDF_Dictionary* GetPage(int iPage); 73 CPDF_Font* LoadFont(CPDF_Dictionary* pFontDict); 75 CPDF_Dictionary* pResources = nullptr); 91 CPDF_Dictionary* CreateNewPage(int iPage); 108 CPDF_Dictionary* TraversePDFPages(int iPage, int* nPagesToGo, size_t level); 109 int FindPageIndex(CPDF_Dictionary* pNode, [all …]
|
D | cpdf_document_unittest.cpp | 28 CPDF_Dictionary* CreatePageTreeNode(std::unique_ptr<CPDF_Array> kids, in CreatePageTreeNode() 32 CPDF_Dictionary* pageNode = pDoc->NewIndirect<CPDF_Dictionary>(); in CreatePageTreeNode() 43 std::unique_ptr<CPDF_Dictionary> CreateNumberedPage(size_t number) { in CreateNumberedPage() 44 auto page = pdfium::MakeUnique<CPDF_Dictionary>(); in CreateNumberedPage() 61 CPDF_Dictionary* branch1 = in CPDF_TestDocumentForPages() 68 CPDF_Dictionary* branch2 = in CPDF_TestDocumentForPages() 76 CPDF_Dictionary* branch3 = CreatePageTreeNode(std::move(fourFive), this, 2); in CPDF_TestDocumentForPages() 81 CPDF_Dictionary* branch4 = CreatePageTreeNode(std::move(justSix), this, 1); in CPDF_TestDocumentForPages() 87 CPDF_Dictionary* pagesDict = in CPDF_TestDocumentForPages() 90 m_pOwnedRootDict = pdfium::MakeUnique<CPDF_Dictionary>(); in CPDF_TestDocumentForPages() [all …]
|
D | cpdf_document.cpp | 248 int CountPages(CPDF_Dictionary* pPages, in CountPages() 249 std::set<CPDF_Dictionary*>* visited_pages) { in CountPages() 258 CPDF_Dictionary* pKid = pKidList->GetDictAt(i); in CountPages() 263 pdfium::ScopedSetInsertion<CPDF_Dictionary*> local_add(visited_pages, in CountPages() 299 void ProcessNonbCJK(CPDF_Dictionary* pBaseDict, in ProcessNonbCJK() 317 std::unique_ptr<CPDF_Dictionary> CalculateFontDesc( in CalculateFontDesc() 327 pdfium::MakeUnique<CPDF_Dictionary>(pDoc->GetByteStringPool()); in CalculateFontDesc() 406 CPDF_Dictionary* CPDF_Document::TraversePDFPages(int iPage, in TraversePDFPages() 412 CPDF_Dictionary* pPages = m_pTreeTraversal[level].first; in TraversePDFPages() 426 CPDF_Dictionary* page = nullptr; in TraversePDFPages() [all …]
|
D | cpdf_security_handler.h | 22 class CPDF_Dictionary; variable 30 bool OnInit(const CPDF_Dictionary* pEncryptDict, 33 void OnCreate(CPDF_Dictionary* pEncryptDict, 37 void OnCreate(CPDF_Dictionary* pEncryptDict, 56 bool LoadDict(const CPDF_Dictionary* pEncryptDict); 57 bool LoadDict(const CPDF_Dictionary* pEncryptDict, 72 void AES256_SetPassword(CPDF_Dictionary* pEncryptDict, 76 void AES256_SetPerms(CPDF_Dictionary* pEncryptDict, 80 void OnCreateInternal(CPDF_Dictionary* pEncryptDict, 91 UnownedPtr<const CPDF_Dictionary> m_pEncryptDict;
|
D | cpdf_dictionary.h | 24 class CPDF_Dictionary : public CPDF_Object { 29 CPDF_Dictionary(); 30 explicit CPDF_Dictionary(const WeakPtr<ByteStringPool>& pPool); 31 ~CPDF_Dictionary() override; 36 CPDF_Dictionary* GetDict() const override; 38 CPDF_Dictionary* AsDictionary() override; 39 const CPDF_Dictionary* AsDictionary() const override; 53 CPDF_Dictionary* GetDictFor(const ByteString& key) const; 112 inline CPDF_Dictionary* ToDictionary(CPDF_Object* obj) { in ToDictionary() 116 inline const CPDF_Dictionary* ToDictionary(const CPDF_Object* obj) { in ToDictionary() [all …]
|
/external/pdfium/fpdfsdk/formfiller/ |
D | cba_fontmap.cpp | 92 const CPDF_Dictionary* pRootDict = pDocument->GetRoot(); in FindFontSameCharset() 96 CPDF_Dictionary* pAcroFormDict = pRootDict->GetDictFor("AcroForm"); in FindFontSameCharset() 100 CPDF_Dictionary* pDRDict = pAcroFormDict->GetDictFor("DR"); in FindFontSameCharset() 111 CPDF_Font* CBA_FontMap::FindResFontSameCharset(CPDF_Dictionary* pResDict, in FindResFontSameCharset() 117 CPDF_Dictionary* pFonts = pResDict->GetDictFor("Font"); in FindResFontSameCharset() 128 CPDF_Dictionary* pElement = ToDictionary(it.second->GetDirect()); in FindResFontSameCharset() 157 CPDF_Dictionary* pAPDict = m_pAnnotDict->GetDictFor("AP"); in AddFontToAnnotDict() 159 pAPDict = m_pAnnotDict->SetNewFor<CPDF_Dictionary>("AP"); in AddFontToAnnotDict() 173 CPDF_Dictionary* pStreamDict = pStream->GetDict(); in AddFontToAnnotDict() 176 pdfium::MakeUnique<CPDF_Dictionary>(m_pDocument->GetByteStringPool()); in AddFontToAnnotDict() [all …]
|
/external/pdfium/core/fpdfdoc/ |
D | cpdf_structtree.h | 17 class CPDF_Dictionary; variable 25 const CPDF_Dictionary* pPageDict); 32 const CPDF_Dictionary* GetRoleMap() const { return m_pRoleMap.Get(); } in GetRoleMap() 33 const CPDF_Dictionary* GetPage() const { return m_pPage.Get(); } in GetPage() 34 const CPDF_Dictionary* GetTreeRoot() const { return m_pTreeRoot.Get(); } in GetTreeRoot() 37 void LoadPageTree(const CPDF_Dictionary* pPageDict); 39 CPDF_Dictionary* pElement, 40 std::map<CPDF_Dictionary*, RetainPtr<CPDF_StructElement>>* map, 42 bool AddTopLevelNode(CPDF_Dictionary* pDict, 45 UnownedPtr<const CPDF_Dictionary> const m_pTreeRoot; [all …]
|
D | cpdf_nametree_unittest.cpp | 27 void AddLimitsArray(CPDF_Dictionary* pNode, in AddLimitsArray() 35 void CheckLimitsArray(CPDF_Dictionary* pNode, in CheckLimitsArray() 44 void FillNameTreeDict(CPDF_Dictionary* pRootDict) { in FillNameTreeDict() 46 CPDF_Dictionary* pKid1 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict() 51 CPDF_Dictionary* pKid2 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict() 52 CPDF_Dictionary* pKid3 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict() 56 CPDF_Dictionary* pKid4 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict() 57 CPDF_Dictionary* pKid5 = pKids->AddNew<CPDF_Dictionary>(); in FillNameTreeDict() 79 auto pRootDict = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() 105 auto pRootDict = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() [all …]
|
D | cpdf_occontext.cpp | 15 int32_t FindGroup(const CPDF_Array* pArray, const CPDF_Dictionary* pGroupDict) { in FindGroup() 26 bool HasIntent(const CPDF_Dictionary* pDict, in HasIntent() 46 CPDF_Dictionary* GetConfig(CPDF_Document* pDoc, in GetConfig() 47 const CPDF_Dictionary* pOCGDict) { in GetConfig() 49 CPDF_Dictionary* pOCProperties = pDoc->GetRoot()->GetDictFor("OCProperties"); in GetConfig() 60 CPDF_Dictionary* pConfig = pOCProperties->GetDictFor("D"); in GetConfig() 66 CPDF_Dictionary* pFind = pConfigs->GetDictAt(i); in GetConfig() 103 const CPDF_Dictionary* pOCGDict) const { in LoadOCGStateFromConfig() 104 CPDF_Dictionary* pConfig = GetConfig(m_pDocument.Get(), pOCGDict); in LoadOCGStateFromConfig() 125 CPDF_Dictionary* pUsage = pArray->GetDictAt(i); in LoadOCGStateFromConfig() [all …]
|
D | cpdf_interform.h | 23 class CPDF_Dictionary; variable 31 CPDF_Font* AddNativeInterFormFont(CPDF_Dictionary*& pFormDict, 42 static ByteString GenerateNewResourceName(const CPDF_Dictionary* pResDict, 55 CPDF_FormField* GetFieldByDict(CPDF_Dictionary* pFieldDict) const; 60 CPDF_FormControl* GetControlByDict(const CPDF_Dictionary* pWidgetDict) const; 94 CPDF_Dictionary* GetFormDict() const { return m_pFormDict.Get(); } in GetFormDict() 97 void LoadField(CPDF_Dictionary* pFieldDict, int nLevel); 98 void AddTerminalField(CPDF_Dictionary* pFieldDict); 100 CPDF_Dictionary* pWidgetDict); 101 void FDF_ImportField(CPDF_Dictionary* pField, [all …]
|
D | cpdf_viewerpreferences.cpp | 18 CPDF_Dictionary* pDict = GetViewerPreferences(); in IsDirectionR2L() 23 CPDF_Dictionary* pDict = GetViewerPreferences(); in PrintScaling() 28 CPDF_Dictionary* pDict = GetViewerPreferences(); in NumCopies() 33 CPDF_Dictionary* pDict = GetViewerPreferences(); in PrintPageRange() 38 CPDF_Dictionary* pDict = GetViewerPreferences(); in Duplex() 45 CPDF_Dictionary* pDict = GetViewerPreferences(); in GenericName() 57 CPDF_Dictionary* CPDF_ViewerPreferences::GetViewerPreferences() const { in GetViewerPreferences() 58 const CPDF_Dictionary* pDict = m_pDoc->GetRoot(); in GetViewerPreferences()
|
D | cpdf_interform.cpp | 43 WideString GetFieldValue(const CPDF_Dictionary& pFieldDict, in GetFieldValue() 57 void AddFont(CPDF_Dictionary*& pFormDict, 62 void InitDict(CPDF_Dictionary*& pFormDict, CPDF_Document* pDocument) { in InitDict() 67 pFormDict = pDocument->NewIndirect<CPDF_Dictionary>(); in InitDict() 101 CPDF_Font* GetFont(CPDF_Dictionary* pFormDict, in GetFont() 108 CPDF_Dictionary* pDR = pFormDict->GetDictFor("DR"); in GetFont() 112 CPDF_Dictionary* pFonts = pDR->GetDictFor("Font"); in GetFont() 116 CPDF_Dictionary* pElement = pFonts->GetDictFor(csAlias); in GetFont() 125 CPDF_Font* GetNativeFont(CPDF_Dictionary* pFormDict, in GetNativeFont() 132 CPDF_Dictionary* pDR = pFormDict->GetDictFor("DR"); in GetNativeFont() [all …]
|
D | cpdf_structtree.cpp | 19 const CPDF_Dictionary* pCatalog = pDoc->GetRoot(); in IsTagged() 20 const CPDF_Dictionary* pMarkInfo = pCatalog->GetDictFor("MarkInfo"); in IsTagged() 29 const CPDF_Dictionary* pPageDict) { in LoadPage() 45 void CPDF_StructTree::LoadPageTree(const CPDF_Dictionary* pPageDict) { in LoadPageTree() 64 CPDF_Dictionary* pParentTree = m_pTreeRoot->GetDictFor("ParentTree"); in LoadPageTree() 77 std::map<CPDF_Dictionary*, RetainPtr<CPDF_StructElement>> element_map; in LoadPageTree() 79 if (CPDF_Dictionary* pParent = pParentArray->GetDictAt(i)) in LoadPageTree() 85 CPDF_Dictionary* pDict, in AddPageNode() 86 std::map<CPDF_Dictionary*, RetainPtr<CPDF_StructElement>>* map, in AddPageNode() argument 98 CPDF_Dictionary* pParent = pDict->GetDictFor("P"); in AddPageNode() [all …]
|
D | cpdf_filespec_unittest.cpp | 105 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() 149 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() 168 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() 174 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() 175 dict_obj->SetNewFor<CPDF_Dictionary>("EF"); in TEST() 181 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() 182 dict_obj->SetNewFor<CPDF_Dictionary>("EF"); in TEST() 189 CPDF_Dictionary* file_dict = in TEST() 198 auto pDict = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() 227 auto dict_obj = pdfium::MakeUnique<CPDF_Dictionary>(); in TEST() [all …]
|
D | cpdf_formfield_unittest.cpp | 17 CPDF_Dictionary* root = obj_holder.NewIndirect<CPDF_Dictionary>(); in TEST() 22 CPDF_Dictionary* dict1 = obj_holder.NewIndirect<CPDF_Dictionary>(); in TEST() 28 CPDF_Dictionary* dict2 = dict1->SetNewFor<CPDF_Dictionary>("Parent"); in TEST() 32 CPDF_Dictionary* dict3 = obj_holder.NewIndirect<CPDF_Dictionary>(); in TEST()
|
D | cpdf_occontext.h | 16 class CPDF_Dictionary; variable 27 bool CheckOCGVisible(const CPDF_Dictionary* pOCGDict); 35 const CPDF_Dictionary* pOCGDict) const; 36 bool LoadOCGState(const CPDF_Dictionary* pOCGDict) const; 37 bool GetOCGVisible(const CPDF_Dictionary* pOCGDict); 39 bool LoadOCMDState(const CPDF_Dictionary* pOCMDDict); 43 std::map<const CPDF_Dictionary*, bool> m_OCGStates;
|
D | cpdf_annot.h | 19 class CPDF_Dictionary; variable 66 static bool IsAnnotationHidden(CPDF_Dictionary* pAnnotDict); 69 static CFX_FloatRect RectFromQuadPoints(CPDF_Dictionary* pAnnotDict); 72 CPDF_Annot(std::unique_ptr<CPDF_Dictionary> pDict, CPDF_Document* pDocument); 73 CPDF_Annot(CPDF_Dictionary* pDict, CPDF_Document* pDocument); 80 CPDF_Dictionary* GetAnnotDict() const { return m_pAnnotDict.Get(); } in GetAnnotDict() 108 MaybeOwned<CPDF_Dictionary> m_pAnnotDict; 124 CPDF_Stream* FPDFDOC_GetAnnotAP(const CPDF_Dictionary* pAnnotDict, 129 CPDF_Stream* FPDFDOC_GetAnnotAPNoFallback(const CPDF_Dictionary* pAnnotDict,
|
D | cpvt_generateap.cpp | 312 float GetBorderWidth(const CPDF_Dictionary& pAnnotDict) { in GetBorderWidth() 313 if (CPDF_Dictionary* pBorderStyleDict = pAnnotDict.GetDictFor("BS")) { in GetBorderWidth() 326 CPDF_Array* GetDashArray(const CPDF_Dictionary& pAnnotDict) { in GetDashArray() 327 if (CPDF_Dictionary* pBorderStyleDict = pAnnotDict.GetDictFor("BS")) { in GetDashArray() 340 ByteString GetDashPatternString(const CPDF_Dictionary& pAnnotDict) { in GetDashPatternString() 358 const CPDF_Dictionary& pAnnotDict, in GetPopupContentsString() 393 std::unique_ptr<CPDF_Dictionary> GenerateResourceFontDict( in GenerateResourceFontDict() 396 CPDF_Dictionary* pFontDict = pDoc->NewIndirect<CPDF_Dictionary>(); in GenerateResourceFontDict() 403 pdfium::MakeUnique<CPDF_Dictionary>(pDoc->GetByteStringPool()); in GenerateResourceFontDict() 465 std::unique_ptr<CPDF_Dictionary> GenerateExtGStateDict( in GenerateExtGStateDict() [all …]
|
D | cpdf_nametree.cpp | 39 bool GetNodeAncestorsLimits(const CPDF_Dictionary* pNode, in GetNodeAncestorsLimits() 56 CPDF_Dictionary* pKid = pKids->GetDictAt(i); in GetNodeAncestorsLimits() 71 bool UpdateNodesAndLimitsUponDeletion(CPDF_Dictionary* pNode, in UpdateNodesAndLimitsUponDeletion() 115 CPDF_Dictionary* pKid = pKids->GetDictAt(i); in UpdateNodesAndLimitsUponDeletion() 156 CPDF_Object* SearchNameNodeByName(const CPDF_Dictionary* pNode, in SearchNameNodeByName() 215 CPDF_Dictionary* pKid = pKids->GetDictAt(i); in SearchNameNodeByName() 231 CPDF_Object* SearchNameNodeByIndex(const CPDF_Dictionary* pNode, in SearchNameNodeByIndex() 262 CPDF_Dictionary* pKid = pKids->GetDictAt(i); in SearchNameNodeByIndex() 274 size_t CountNamesInternal(CPDF_Dictionary* pNode, int nLevel) { in CountNamesInternal() 288 CPDF_Dictionary* pKid = pKids->GetDictAt(i); in CountNamesInternal() [all …]
|
/external/pdfium/fpdfsdk/ |
D | fpdf_flatten.cpp | 48 CPDF_Dictionary* pDict, in GetContentsRect() 64 void ParserStream(CPDF_Dictionary* pPageDic, in ParserStream() 65 CPDF_Dictionary* pStream, in ParserStream() 67 std::vector<CPDF_Dictionary*>* pObjectArray) { in ParserStream() 83 CPDF_Dictionary* pPageDic, in ParserAnnots() 85 std::vector<CPDF_Dictionary*>* pObjectArray, in ParserAnnots() 96 CPDF_Dictionary* pAnnotDic = ToDictionary(pAnnot->GetDirect()); in ParserAnnots() 175 pdfium::MakeUnique<CPDF_Dictionary>(pDocument->GetByteStringPool())); in NewIndirectContentsStream() 183 CPDF_Dictionary* pPage, in SetPageContents() 243 CPDF_Dictionary* pPageDict = pPage->m_pFormDict.Get(); in FPDFPage_Flatten() [all …]
|
D | fpdfattachment.cpp | 66 CPDF_Dictionary* pRoot = pDoc->GetRoot(); in FPDFDoc_AddAttachment() 71 CPDF_Dictionary* pNames = pRoot->GetDictFor("Names"); in FPDFDoc_AddAttachment() 73 pNames = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment() 79 CPDF_Dictionary* pFiles = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment() 86 CPDF_Dictionary* pFile = pDoc->NewIndirect<CPDF_Dictionary>(); in FPDFDoc_AddAttachment() 147 CPDF_Dictionary* pParamsDict = CPDF_FileSpec(pFile).GetParamsDict(); in FPDFAttachment_HasKey() 169 CPDF_Dictionary* pParamsDict = CPDF_FileSpec(pFile).GetParamsDict(); in FPDFAttachment_SetStringValue() 192 CPDF_Dictionary* pParamsDict = CPDF_FileSpec(pFile).GetParamsDict(); in FPDFAttachment_GetStringValue() 224 auto pFileStreamDict = pdfium::MakeUnique<CPDF_Dictionary>(); in FPDFAttachment_SetFile() 225 CPDF_Dictionary* pParamsDict = in FPDFAttachment_SetFile() [all …]
|
D | fpdfppo.cpp | 27 CPDF_Object* PageDictGetInheritableTag(CPDF_Dictionary* pDict, in PageDictGetInheritableTag() 40 CPDF_Dictionary* pp = in PageDictGetInheritableTag() 58 bool CopyInheritable(CPDF_Dictionary* pCurPageDict, in CopyInheritable() 59 CPDF_Dictionary* pSrcPageDict, in CopyInheritable() 157 CPDF_Dictionary* pNewRoot = m_pDestPDFDoc->GetRoot(); in PDFDocInit() 161 CPDF_Dictionary* pDocInfoDict = m_pDestPDFDoc->GetInfo(); in PDFDocInit() 172 CPDF_Dictionary* pNewPages = in PDFDocInit() 175 pNewPages = m_pDestPDFDoc->NewIndirect<CPDF_Dictionary>(); in PDFDocInit() 199 CPDF_Dictionary* pCurPageDict = m_pDestPDFDoc->CreateNewPage(curpage); in ExportPage() 200 CPDF_Dictionary* pSrcPageDict = m_pSrcPDFDoc->GetPage(pageNums[i] - 1); in ExportPage() [all …]
|
/external/pdfium/core/fpdfapi/page/ |
D | cpdf_image.h | 32 CPDF_Dictionary* GetInlineDict() const { return m_pDict.Get(); } in GetInlineDict() 34 CPDF_Dictionary* GetDict() const; 35 CPDF_Dictionary* GetOC() const { return m_pOC.Get(); } in GetOC() 52 bool StartLoadDIBSource(CPDF_Dictionary* pFormResource, 53 CPDF_Dictionary* pPageResource, 72 std::unique_ptr<CPDF_Dictionary> InitJPEG(uint8_t* pData, uint32_t size); 81 MaybeOwned<CPDF_Dictionary> m_pDict; 82 UnownedPtr<CPDF_Dictionary> m_pOC;
|
D | cpdf_contentmarkitem.h | 17 class CPDF_Dictionary; variable 31 CPDF_Dictionary* GetParam() const; 35 void SetDirectDict(std::unique_ptr<CPDF_Dictionary> pDict); 36 void SetPropertiesDict(CPDF_Dictionary* pDict); 41 UnownedPtr<CPDF_Dictionary> m_pPropertiesDict; 42 std::unique_ptr<CPDF_Dictionary> m_pDirectDict;
|