Home | History | Annotate | Download | only in fpdfdoc

Lines Matching defs:pDict

122 CPDF_StructElementImpl* CPDF_StructTreeImpl::AddPageNode(CPDF_Dictionary* pDict, CFX_MapPtrToPtr& map, int nLevel)
128 if (map.Lookup(pDict, (FX_LPVOID&)pElement)) {
131 pElement = new CPDF_StructElementImpl(this, NULL, pDict);
132 map.SetAt(pDict, pElement);
133 CPDF_Dictionary* pParent = pDict->GetDict(FX_BSTRC("P"));
135 if (!AddTopLevelNode(pDict, pElement)) {
137 map.RemoveKey(pDict);
146 if (pParentElement->m_Kids[i].m_Element.m_pDict != pDict) {
154 map.RemoveKey(pDict);
159 FX_BOOL CPDF_StructTreeImpl::AddTopLevelNode(CPDF_Dictionary* pDict, CPDF_StructElementImpl* pElement)
166 if (pObj->GetObjNum() == pDict->GetObjNum()) {
184 if (((CPDF_Reference*) pKidRef)->GetRefObjNum() != pDict->GetObjNum()) {
199 CPDF_StructElementImpl::CPDF_StructElementImpl(CPDF_StructTreeImpl* pTree, CPDF_StructElementImpl* pParent, CPDF_Dictionary* pDict)
203 m_pDict = pDict;
204 m_Type = pDict->GetString(FX_BSTRC("S"));
212 LoadKids(pDict);
233 void CPDF_StructElementImpl::LoadKids(CPDF_Dictionary* pDict)
235 CPDF_Object* pObj = pDict->GetElement(FX_BSTRC("Pg"));
240 CPDF_Object* pKids = pDict->GetElementValue(FX_BSTRC("K"));
323 CPDF_Dictionary* pDict = NULL;
325 pDict = (CPDF_Dictionary*)pAttrs;
327 pDict = ((CPDF_Stream*)pAttrs)->GetDict();
332 pDict = FindAttrDict(pElement, owner, nLevel + 1);
333 if (pDict) {
334 return pDict;
338 if (pDict && pDict->GetString(FX_BSTRC("O")) == owner) {
339 return pDict;