Home
last modified time | relevance | path

Searched refs:CPDF_Object (Results 1 – 25 of 158) sorted by relevance

1234567

/external/pdfium/core/fpdfapi/parser/
Dcpdf_object.cpp20 CPDF_Object::~CPDF_Object() {} in ~CPDF_Object()
22 CPDF_Object* CPDF_Object::GetDirect() { in GetDirect()
26 const CPDF_Object* CPDF_Object::GetDirect() const { in GetDirect()
30 RetainPtr<CPDF_Object> CPDF_Object::CloneObjectNonCyclic(bool bDirect) const { in CloneObjectNonCyclic()
31 std::set<const CPDF_Object*> visited_objs; in CloneObjectNonCyclic()
35 RetainPtr<CPDF_Object> CPDF_Object::CloneDirectObject() const { in CloneDirectObject()
39 RetainPtr<CPDF_Object> CPDF_Object::CloneNonCyclic( in CloneNonCyclic()
41 std::set<const CPDF_Object*>* pVisited) const { in CloneNonCyclic()
45 ByteString CPDF_Object::GetString() const { in GetString()
49 WideString CPDF_Object::GetUnicodeText() const { in GetUnicodeText()
[all …]
Dcpdf_object_walker.h14 class CPDF_Object; variable
25 const CPDF_Object* Increment();
26 const CPDF_Object* object() const { return object_.Get(); } in object()
29 explicit SubobjectIterator(const CPDF_Object* object);
31 virtual const CPDF_Object* IncrementImpl() = 0;
35 RetainPtr<const CPDF_Object> object_;
39 explicit CPDF_ObjectWalker(const CPDF_Object* root);
42 const CPDF_Object* GetNext();
46 const CPDF_Object* GetParent() const { return parent_object_.Get(); } in GetParent()
51 const CPDF_Object* object);
[all …]
Dcpdf_reference.cpp19 CPDF_Object::Type CPDF_Reference::GetType() const { in GetType()
24 const CPDF_Object* obj = SafeGetDirect(); in GetString()
29 const CPDF_Object* obj = SafeGetDirect(); in GetNumber()
34 const CPDF_Object* obj = SafeGetDirect(); in GetInteger()
39 CPDF_Object* obj = SafeGetDirect(); in GetDict()
44 const CPDF_Object* obj = SafeGetDirect(); in GetDict()
60 RetainPtr<CPDF_Object> CPDF_Reference::Clone() const { in Clone()
64 RetainPtr<CPDF_Object> CPDF_Reference::CloneNonCyclic( in CloneNonCyclic()
66 std::set<const CPDF_Object*>* pVisited) const { in CloneNonCyclic()
77 CPDF_Object* CPDF_Reference::SafeGetDirect() { in SafeGetDirect()
[all …]
Dcpdf_array.cpp36 CPDF_Object::Type CPDF_Array::GetType() const { in GetType()
52 RetainPtr<CPDF_Object> CPDF_Array::Clone() const { in Clone()
56 RetainPtr<CPDF_Object> CPDF_Array::CloneNonCyclic( in CloneNonCyclic()
58 std::set<const CPDF_Object*>* pVisited) const { in CloneNonCyclic()
63 std::set<const CPDF_Object*> visited(*pVisited); in CloneNonCyclic()
91 CPDF_Object* CPDF_Array::GetObjectAt(size_t index) { in GetObjectAt()
97 const CPDF_Object* CPDF_Array::GetObjectAt(size_t index) const { in GetObjectAt()
103 CPDF_Object* CPDF_Array::GetDirectObjectAt(size_t index) { in GetDirectObjectAt()
109 const CPDF_Object* CPDF_Array::GetDirectObjectAt(size_t index) const { in GetDirectObjectAt()
130 const CPDF_Object* p = m_Objects[index].Get(); in GetBooleanAt()
[all …]
Dcpdf_dictionary.cpp42 CPDF_Object::Type CPDF_Dictionary::GetType() const { in GetType()
66 RetainPtr<CPDF_Object> CPDF_Dictionary::Clone() const { in Clone()
70 RetainPtr<CPDF_Object> CPDF_Dictionary::CloneNonCyclic( in CloneNonCyclic()
72 std::set<const CPDF_Object*>* pVisited) const { in CloneNonCyclic()
78 std::set<const CPDF_Object*> visited(*pVisited); in CloneNonCyclic()
86 const CPDF_Object* CPDF_Dictionary::GetObjectFor(const ByteString& key) const { in GetObjectFor()
91 CPDF_Object* CPDF_Dictionary::GetObjectFor(const ByteString& key) { in GetObjectFor()
92 return const_cast<CPDF_Object*>( in GetObjectFor()
96 const CPDF_Object* CPDF_Dictionary::GetDirectObjectFor( in GetDirectObjectFor()
98 const CPDF_Object* p = GetObjectFor(key); in GetDirectObjectFor()
[all …]
Dcpdf_indirect_object_holder.cpp19 CPDF_Object* FilterInvalidObjNum(CPDF_Object* obj) { in FilterInvalidObjNum()
20 return obj && obj->GetObjNum() != CPDF_Object::kInvalidObjNum ? obj : nullptr; in FilterInvalidObjNum()
33 CPDF_Object* CPDF_IndirectObjectHolder::GetIndirectObject( in GetIndirectObject()
40 CPDF_Object* CPDF_IndirectObjectHolder::GetOrParseIndirectObject( in GetOrParseIndirectObject()
42 if (objnum == 0 || objnum == CPDF_Object::kInvalidObjNum) in GetOrParseIndirectObject()
50 RetainPtr<CPDF_Object> pNewObj = ParseIndirectObject(objnum); in GetOrParseIndirectObject()
62 RetainPtr<CPDF_Object> CPDF_IndirectObjectHolder::ParseIndirectObject( in ParseIndirectObject()
67 CPDF_Object* CPDF_IndirectObjectHolder::AddIndirectObject( in AddIndirectObject()
68 RetainPtr<CPDF_Object> pObj) { in AddIndirectObject()
79 RetainPtr<CPDF_Object> pObj) { in ReplaceIndirectObjectIfHigherGeneration()
[all …]
Dcpdf_reference.h18 class CPDF_Reference final : public CPDF_Object {
25 RetainPtr<CPDF_Object> Clone() const override;
26 CPDF_Object* GetDirect() override;
27 const CPDF_Object* GetDirect() const override;
38 RetainPtr<CPDF_Object> MakeReference(
49 RetainPtr<CPDF_Object> CloneNonCyclic(
51 std::set<const CPDF_Object*>* pVisited) const override;
52 CPDF_Object* SafeGetDirect();
53 const CPDF_Object* SafeGetDirect() const;
59 inline CPDF_Reference* ToReference(CPDF_Object* obj) { in ToReference()
[all …]
Dcpdf_array.h22 class CPDF_Array final : public CPDF_Object {
24 using const_iterator = std::vector<RetainPtr<CPDF_Object>>::const_iterator;
31 RetainPtr<CPDF_Object> Clone() const override;
40 CPDF_Object* GetObjectAt(size_t index);
41 const CPDF_Object* GetObjectAt(size_t index) const;
42 CPDF_Object* GetDirectObjectAt(size_t index);
43 const CPDF_Object* GetDirectObjectAt(size_t index) const;
105 CPDF_Object* Add(RetainPtr<CPDF_Object> pObj);
106 CPDF_Object* SetAt(size_t index, RetainPtr<CPDF_Object> pObj);
107 CPDF_Object* InsertAt(size_t index, RetainPtr<CPDF_Object> pObj);
[all …]
Dcpdf_object.h30 class CPDF_Object : public Retainable {
53 virtual RetainPtr<CPDF_Object> Clone() const = 0;
57 virtual RetainPtr<CPDF_Object> CloneDirectObject() const;
59 virtual CPDF_Object* GetDirect();
60 virtual const CPDF_Object* GetDirect() const;
106 virtual RetainPtr<CPDF_Object> CloneNonCyclic(
108 std::set<const CPDF_Object*>* pVisited) const;
112 virtual RetainPtr<CPDF_Object> MakeReference(
116 CPDF_Object() = default;
117 CPDF_Object(const CPDF_Object& src) = delete;
[all …]
Dcpdf_dictionary.h27 class CPDF_Dictionary final : public CPDF_Object {
30 std::map<ByteString, RetainPtr<CPDF_Object>>::const_iterator;
37 RetainPtr<CPDF_Object> Clone() const override;
49 const CPDF_Object* GetObjectFor(const ByteString& key) const;
50 CPDF_Object* GetObjectFor(const ByteString& key);
51 const CPDF_Object* GetDirectObjectFor(const ByteString& key) const;
52 CPDF_Object* GetDirectObjectFor(const ByteString& key);
101 CPDF_Object* SetFor(const ByteString& key, RetainPtr<CPDF_Object> pObj);
107 RetainPtr<CPDF_Object> RemoveFor(const ByteString& key);
122 RetainPtr<CPDF_Object> CloneNonCyclic(
[all …]
Dcpdf_object_unittest.cpp85 CPDF_Object* objs[] = { in SetUp()
91 CPDF_Object::kBoolean, CPDF_Object::kBoolean, CPDF_Object::kNumber, in SetUp()
92 CPDF_Object::kNumber, CPDF_Object::kString, CPDF_Object::kString, in SetUp()
93 CPDF_Object::kName, CPDF_Object::kArray, CPDF_Object::kDictionary, in SetUp()
94 CPDF_Object::kStream, CPDF_Object::kNullobj}; in SetUp()
107 for (CPDF_Object* pObj : m_IndirectObjs) { in SetUp()
113 bool Equal(const CPDF_Object* obj1, const CPDF_Object* obj2) { in Equal()
119 case CPDF_Object::kBoolean: in Equal()
121 case CPDF_Object::kNumber: in Equal()
124 case CPDF_Object::kString: in Equal()
[all …]
Dcpdf_object_walker.cpp24 const CPDF_Object* IncrementImpl() override { in IncrementImpl()
47 const CPDF_Object* IncrementImpl() override { in IncrementImpl()
50 const CPDF_Object* result = dict_iterator_->second.Get(); in IncrementImpl()
80 const CPDF_Object* IncrementImpl() override { in IncrementImpl()
83 const CPDF_Object* result = arr_iterator_->Get(); in IncrementImpl()
99 const CPDF_Object* CPDF_ObjectWalker::SubobjectIterator::Increment() { in Increment()
105 const CPDF_Object* result = IncrementImpl(); in Increment()
113 const CPDF_Object* object) in SubobjectIterator()
120 CPDF_ObjectWalker::MakeIterator(const CPDF_Object* object) { in MakeIterator()
130 CPDF_ObjectWalker::CPDF_ObjectWalker(const CPDF_Object* root) in CPDF_ObjectWalker()
[all …]
Dfpdf_parser_utility.cpp191 std::ostream& operator<<(std::ostream& buf, const CPDF_Object* pObj) { in operator <<()
197 case CPDF_Object::kNullobj: in operator <<()
200 case CPDF_Object::kBoolean: in operator <<()
201 case CPDF_Object::kNumber: in operator <<()
204 case CPDF_Object::kString: in operator <<()
207 case CPDF_Object::kName: { in operator <<()
212 case CPDF_Object::kReference: { in operator <<()
216 case CPDF_Object::kArray: { in operator <<()
220 const CPDF_Object* pElement = p->GetObjectAt(i); in operator <<()
230 case CPDF_Object::kDictionary: { in operator <<()
[all …]
Dcpdf_indirect_object_holder.h25 std::map<uint32_t, RetainPtr<CPDF_Object>>::const_iterator;
30 CPDF_Object* GetIndirectObject(uint32_t objnum) const;
31 virtual CPDF_Object* GetOrParseIndirectObject(uint32_t objnum);
60 CPDF_Object* AddIndirectObject(RetainPtr<CPDF_Object> pObj);
64 RetainPtr<CPDF_Object> pObj);
77 virtual RetainPtr<CPDF_Object> ParseIndirectObject(uint32_t objnum);
81 std::map<uint32_t, RetainPtr<CPDF_Object>> m_IndirectObjs;
Dcpdf_stream.h18 class CPDF_Stream final : public CPDF_Object {
27 RetainPtr<CPDF_Object> Clone() const override;
71 RetainPtr<CPDF_Object> CloneNonCyclic(
73 std::set<const CPDF_Object*>* pVisited) const override;
82 inline CPDF_Stream* ToStream(CPDF_Object* obj) { in ToStream()
86 inline const CPDF_Stream* ToStream(const CPDF_Object* obj) { in ToStream()
90 inline RetainPtr<CPDF_Stream> ToStream(RetainPtr<CPDF_Object> obj) { in ToStream()
Dcpdf_object_avail.h15 class CPDF_Object; variable
25 CPDF_Object* root);
34 virtual bool ExcludeObject(const CPDF_Object* object) const;
39 bool AppendObjectSubRefs(const CPDF_Object* object,
46 RetainPtr<CPDF_Object> root_;
Dcpdf_object_stream.h22 static bool IsObjectsStreamObject(const CPDF_Object* object);
32 RetainPtr<CPDF_Object> ParseObject(CPDF_IndirectObjectHolder* pObjList,
42 RetainPtr<CPDF_Object> ParseObjectAtOffset(
46 uint32_t obj_num_ = CPDF_Object::kInvalidObjNum;
47 uint32_t extends_obj_num_ = CPDF_Object::kInvalidObjNum;
Dcpdf_indirect_object_holder_unittest.cpp22 MOCK_METHOD1(ParseIndirectObject, RetainPtr<CPDF_Object>(uint32_t objnum));
33 [&mock_holder](uint32_t objnum) -> RetainPtr<CPDF_Object> { in TEST()
34 const CPDF_Object* same_parse = in TEST()
53 ::testing::Invoke([](uint32_t objnum) -> RetainPtr<CPDF_Object> { in TEST()
71 mock_holder.GetOrParseIndirectObject(CPDF_Object::kInvalidObjNum)); in TEST()
79 CPDF_Object::kInvalidObjNum, pdfium::MakeRetain<CPDF_Null>())); in TEST()
/external/pdfium/core/fpdfapi/page/
Dcpdf_generalstate.h17 class CPDF_Object; variable
41 CPDF_Object* GetSoftMask() const;
42 void SetSoftMask(CPDF_Object* pObject);
44 const CPDF_Object* GetTR() const;
45 void SetTR(CPDF_Object* pObject);
64 void SetBG(CPDF_Object* pObject);
65 void SetUCR(CPDF_Object* pObject);
66 void SetHT(CPDF_Object* pObject);
90 RetainPtr<CPDF_Object> m_pSoftMask;
94 RetainPtr<const CPDF_Object> m_pTR;
[all …]
Dcpdf_function.h15 class CPDF_Object; variable
29 static std::unique_ptr<CPDF_Function> Load(const CPDF_Object* pFuncObj);
56 const CPDF_Object* pFuncObj,
57 std::set<const CPDF_Object*>* pVisited);
58 bool Init(const CPDF_Object* pObj, std::set<const CPDF_Object*>* pVisited);
59 virtual bool v_Init(const CPDF_Object* pObj,
60 std::set<const CPDF_Object*>* pVisited) = 0;
Dcpdf_docpagedata.h28 class CPDF_Object; variable
66 RetainPtr<CPDF_ColorSpace> GetColorSpace(const CPDF_Object* pCSObj,
73 const CPDF_Object* pCSObj,
75 std::set<const CPDF_Object*>* pVisited);
77 RetainPtr<CPDF_Pattern> GetPattern(CPDF_Object* pPatternObj,
93 const CPDF_Object* pCSObj,
95 std::set<const CPDF_Object*>* pVisited,
96 std::set<const CPDF_Object*>* pVisitedInternal);
110 std::map<const CPDF_Object*, ObservedPtr<CPDF_ColorSpace>> m_ColorSpaceMap;
113 std::map<const CPDF_Object*, ObservedPtr<CPDF_Pattern>> m_PatternMap;
/external/pdfium/core/fpdfdoc/
Dcpdf_filespec.h16 class CPDF_Object; variable
21 explicit CPDF_FileSpec(const CPDF_Object* pObj);
22 explicit CPDF_FileSpec(CPDF_Object* pObj);
31 const CPDF_Object* GetObj() const { return m_pObj.Get(); } in GetObj()
32 CPDF_Object* GetObj() { return m_pWritableObj.Get(); } in GetObj()
43 RetainPtr<const CPDF_Object> const m_pObj;
44 RetainPtr<CPDF_Object> const m_pWritableObj;
Dcpdf_action.cpp38 const CPDF_Object* pType = m_pDict->GetObjectFor("Type"); in GetType()
61 const CPDF_Object* pDest = m_pDict->GetDirectObjectFor("D"); in GetDest()
81 const CPDF_Object* pFile = m_pDict->GetDirectObjectFor(pdfium::stream::kF); in GetFilePath()
127 std::vector<const CPDF_Object*> CPDF_Action::GetAllFields() const { in GetAllFields()
128 std::vector<const CPDF_Object*> result; in GetAllFields()
133 const CPDF_Object* pFields = csType == "Hide" in GetAllFields()
143 const CPDF_Object* pObj = pArray->GetDirectObjectAt(i); in GetAllFields()
152 const CPDF_Object* pObject = GetJavaScriptObject(); in MaybeGetJavaScript()
159 const CPDF_Object* pObject = GetJavaScriptObject(); in GetJavaScript()
167 const CPDF_Object* pNext = m_pDict->GetDirectObjectFor("Next"); in GetSubActionsCount()
[all …]
Dcpdf_formfield.cpp35 const CPDF_Object* GetFieldAttrRecursive(const CPDF_Dictionary* pFieldDict, in GetFieldAttrRecursive()
42 const CPDF_Object* pAttr = pFieldDict->GetDirectObjectFor(name); in GetFieldAttrRecursive()
62 const CPDF_Object* CPDF_FormField::GetFieldAttr( in GetFieldAttr()
69 CPDF_Object* CPDF_FormField::GetFieldAttr(CPDF_Dictionary* pFieldDict, in GetFieldAttr()
71 return const_cast<CPDF_Object*>(GetFieldAttrRecursive( in GetFieldAttr()
105 const CPDF_Object* ft_attr = in InitFieldFlags()
182 const CPDF_Object* pDV = GetDefaultValueObject(); in ResetField()
190 const CPDF_Object* pV = GetValueObject(); in ResetField()
204 RetainPtr<CPDF_Object> pClone = pDV->Clone(); in ResetField()
265 CPDF_Object* pObj = GetFieldAttr(m_pDict.Get(), pdfium::form_fields::kAA); in GetAdditionalAction()
[all …]
Dcpdf_formfield.h24 class CPDF_Object; variable
77 static const CPDF_Object* GetFieldAttr(const CPDF_Dictionary* pFieldDict,
79 static CPDF_Object* GetFieldAttr(CPDF_Dictionary* pFieldDict,
144 void SetOpt(RetainPtr<CPDF_Object> pOpt);
167 const CPDF_Object* GetDefaultValueObject() const;
168 const CPDF_Object* GetValueObject() const;
171 const CPDF_Object* GetSelectedIndicesObject() const;
175 const CPDF_Object* GetValueOrSelectedIndicesObject() const;

1234567