Home
last modified time | relevance | path

Searched refs:CPDF_Number (Results 1 – 25 of 42) sorted by relevance

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_number.cpp11 CPDF_Number::CPDF_Number() : m_bInteger(true), m_Integer(0) {} in CPDF_Number() function in CPDF_Number
13 CPDF_Number::CPDF_Number(int value) : m_bInteger(true), m_Integer(value) {} in CPDF_Number() function in CPDF_Number
15 CPDF_Number::CPDF_Number(float value) : m_bInteger(false), m_Float(value) {} in CPDF_Number() function in CPDF_Number
17 CPDF_Number::CPDF_Number(const ByteStringView& str) in CPDF_Number() function in CPDF_Number
20 CPDF_Number::~CPDF_Number() {} in ~CPDF_Number()
22 CPDF_Object::Type CPDF_Number::GetType() const { in GetType()
26 std::unique_ptr<CPDF_Object> CPDF_Number::Clone() const { in Clone()
27 return m_bInteger ? pdfium::MakeUnique<CPDF_Number>(m_Integer) in Clone()
28 : pdfium::MakeUnique<CPDF_Number>(m_Float); in Clone()
31 float CPDF_Number::GetNumber() const { in GetNumber()
[all …]
Dcpdf_number.h16 class CPDF_Number : public CPDF_Object {
18 CPDF_Number();
19 explicit CPDF_Number(int value);
20 explicit CPDF_Number(float value);
21 explicit CPDF_Number(const ByteStringView& str);
22 ~CPDF_Number() override;
32 CPDF_Number* AsNumber() override;
33 const CPDF_Number* AsNumber() const override;
46 inline CPDF_Number* ToNumber(CPDF_Object* obj) { in ToNumber()
50 inline const CPDF_Number* ToNumber(const CPDF_Object* obj) { in ToNumber()
Dcpdf_document.cpp202 pWidthArray->AddNew<CPDF_Number>(first + size - 1); in InsertWidthArrayImpl()
203 pWidthArray->AddNew<CPDF_Number>(*widths); in InsertWidthArrayImpl()
207 pWidthArray1->AddNew<CPDF_Number>(widths[i]); in InsertWidthArrayImpl()
271 pPages->SetNewFor<CPDF_Number>("Count", count); in CountPages()
312 pBaseDict->SetNewFor<CPDF_Number>("FirstChar", 32); in ProcessNonbCJK()
313 pBaseDict->SetNewFor<CPDF_Number>("LastChar", 255); in ProcessNonbCJK()
330 pFontDesc->SetNewFor<CPDF_Number>("Flags", flags); in CalculateFontDesc()
332 pFontDesc->SetNewFor<CPDF_Number>("ItalicAngle", italicangle); in CalculateFontDesc()
333 pFontDesc->SetNewFor<CPDF_Number>("Ascent", ascend); in CalculateFontDesc()
334 pFontDesc->SetNewFor<CPDF_Number>("Descent", descend); in CalculateFontDesc()
[all …]
Dcpdf_array_unittest.cpp20 arr->AddNew<CPDF_Number>(elems[i]); in TEST()
39 arr->AddNew<CPDF_Number>(elems[i]); in TEST()
50 arr->AddNew<CPDF_Number>(elems[i]); in TEST()
61 arr->InsertNewAt<CPDF_Number>(i, elems[i]); in TEST()
65 arr->InsertNewAt<CPDF_Number>(3, 33); in TEST()
66 arr->InsertNewAt<CPDF_Number>(6, 55); in TEST()
67 arr->InsertNewAt<CPDF_Number>(12, 12); in TEST()
80 arr->InsertNewAt<CPDF_Number>(i, elems[i]); in TEST()
81 arr->InsertNewAt<CPDF_Number>(10, 10); in TEST()
97 arr->InsertNewAt<CPDF_Number>(i, elems[i]); in TEST()
[all …]
Dcpdf_dictionary.cpp224 pArray->AddNew<CPDF_Number>(rect.left); in SetRectFor()
225 pArray->AddNew<CPDF_Number>(rect.bottom); in SetRectFor()
226 pArray->AddNew<CPDF_Number>(rect.right); in SetRectFor()
227 pArray->AddNew<CPDF_Number>(rect.top); in SetRectFor()
233 pArray->AddNew<CPDF_Number>(matrix.a); in SetMatrixFor()
234 pArray->AddNew<CPDF_Number>(matrix.b); in SetMatrixFor()
235 pArray->AddNew<CPDF_Number>(matrix.c); in SetMatrixFor()
236 pArray->AddNew<CPDF_Number>(matrix.d); in SetMatrixFor()
237 pArray->AddNew<CPDF_Number>(matrix.e); in SetMatrixFor()
238 pArray->AddNew<CPDF_Number>(matrix.f); in SetMatrixFor()
Dcpdf_object_unittest.cpp52 CPDF_Number* number_int_obj = new CPDF_Number(1245); in SetUp()
53 CPDF_Number* number_float_obj = new CPDF_Number(9.00345f); in SetUp()
61 m_ArrayObj->InsertNewAt<CPDF_Number>(0, 8902); in SetUp()
66 m_DictObj->SetNewFor<CPDF_Number>("num", 0.23f); in SetUp()
75 m_StreamDictObj->SetNewFor<CPDF_Number>("key2", -1); in SetUp()
402 arr->AddNew<CPDF_Number>(elems[i][j]); in TEST()
422 arr->AddNew<CPDF_Number>(elems[i][j]); in TEST()
454 arr->InsertNewAt<CPDF_Number>(i, vals[i]); in TEST()
475 arr->InsertNewAt<CPDF_Number>(i, vals[i]); in TEST()
540 vals[i]->InsertNewAt<CPDF_Number>(i, value); in TEST()
[all …]
Dcpdf_object.h22 class CPDF_Number; variable
86 virtual CPDF_Number* AsNumber();
87 virtual const CPDF_Number* AsNumber() const;
Dcpdf_document_unittest.cpp35 pageNode->SetNewFor<CPDF_Number>("Count", count); in CreatePageTreeNode()
46 page->SetNewFor<CPDF_Number>("PageNumbering", static_cast<int>(number)); in CreateNumberedPage()
98 m_pOwnedRootDict->SetNewFor<CPDF_Number>("Count", size); in SetTreeSize()
144 pagesDict->SetNewFor<CPDF_Number>("Count", 3); in CPDF_TestDocPagesWithoutKids()
231 dict->SetNewFor<CPDF_Number>("N", page_count); in TEST_F()
Dcpdf_object.cpp134 CPDF_Number* CPDF_Object::AsNumber() { in AsNumber()
138 const CPDF_Number* CPDF_Object::AsNumber() const { in AsNumber()
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp52 fontDesc->SetNewFor<CPDF_Number>("Flags", flags); in LoadFontDesc()
56 pBBox->AddNew<CPDF_Number>(bbox.left); in LoadFontDesc()
57 pBBox->AddNew<CPDF_Number>(bbox.top); in LoadFontDesc()
58 pBBox->AddNew<CPDF_Number>(bbox.right); in LoadFontDesc()
59 pBBox->AddNew<CPDF_Number>(bbox.bottom); in LoadFontDesc()
63 fontDesc->SetNewFor<CPDF_Number>("ItalicAngle", pFont->IsItalic() ? -12 : 0); in LoadFontDesc()
65 fontDesc->SetNewFor<CPDF_Number>("Ascent", pFont->GetAscent()); in LoadFontDesc()
66 fontDesc->SetNewFor<CPDF_Number>("Descent", pFont->GetDescent()); in LoadFontDesc()
69 fontDesc->SetNewFor<CPDF_Number>("CapHeight", pFont->GetAscent()); in LoadFontDesc()
70 fontDesc->SetNewFor<CPDF_Number>("StemV", pFont->IsBold() ? 120 : 70); in LoadFontDesc()
[all …]
Dfpdfeditpage.cpp146 pMediaBoxArray->AddNew<CPDF_Number>(0); in FPDFPage_New()
147 pMediaBoxArray->AddNew<CPDF_Number>(0); in FPDFPage_New()
148 pMediaBoxArray->AddNew<CPDF_Number>(static_cast<float>(width)); in FPDFPage_New()
149 pMediaBoxArray->AddNew<CPDF_Number>(static_cast<float>(height)); in FPDFPage_New()
150 pPageDict->SetNewFor<CPDF_Number>("Rotate", 0); in FPDFPage_New()
317 pRectArray->AddNew<CPDF_Number>(rect.left); in FPDFPage_TransformAnnots()
318 pRectArray->AddNew<CPDF_Number>(rect.bottom); in FPDFPage_TransformAnnots()
319 pRectArray->AddNew<CPDF_Number>(rect.right); in FPDFPage_TransformAnnots()
320 pRectArray->AddNew<CPDF_Number>(rect.top); in FPDFPage_TransformAnnots()
333 pPage->m_pFormDict->SetNewFor<CPDF_Number>("Rotate", rotate * 90); in FPDFPage_SetRotation()
Dfpdfdoc_unittest.cpp131 bookmarks[0].obj->SetNewFor<CPDF_Number>("Count", 2); in TEST_F()
174 bookmarks[0].obj->SetNewFor<CPDF_Number>("Count", 2); in TEST_F()
215 bookmarks[0].obj->SetNewFor<CPDF_Number>("Count", 2); in TEST_F()
237 array->AddNew<CPDF_Number>(0); // Page Index. in TEST_F()
239 array->AddNew<CPDF_Number>(4); // X in TEST_F()
240 array->AddNew<CPDF_Number>(5); // Y in TEST_F()
241 array->AddNew<CPDF_Number>(6); // Zoom. in TEST_F()
Dcpdfsdk_baannot.cpp148 m_pAnnot->GetAnnotDict()->SetNewFor<CPDF_Number>("F", in SetFlags()
168 m_pAnnot->GetAnnotDict()->SetNewFor<CPDF_Number>("StructParent", key); in SetStructParent()
179 pBorder->SetNewAt<CPDF_Number>(2, nWidth); in SetBorderWidth()
185 pBSDict->SetNewFor<CPDF_Number>("W", nWidth); in SetBorderWidth()
255 pArray->AddNew<CPDF_Number>(static_cast<float>(FXSYS_GetRValue(color)) / in SetColor()
257 pArray->AddNew<CPDF_Number>(static_cast<float>(FXSYS_GetGValue(color)) / in SetColor()
259 pArray->AddNew<CPDF_Number>(static_cast<float>(FXSYS_GetBValue(color)) / in SetColor()
Dfpdf_flatten.cpp274 pMediaBox->AddNew<CPDF_Number>(rcOriginalMB.left); in FPDFPage_Flatten()
275 pMediaBox->AddNew<CPDF_Number>(rcOriginalMB.bottom); in FPDFPage_Flatten()
276 pMediaBox->AddNew<CPDF_Number>(rcOriginalMB.right); in FPDFPage_Flatten()
277 pMediaBox->AddNew<CPDF_Number>(rcOriginalMB.top); in FPDFPage_Flatten()
282 pCropBox->AddNew<CPDF_Number>(rcOriginalCB.left); in FPDFPage_Flatten()
283 pCropBox->AddNew<CPDF_Number>(rcOriginalCB.bottom); in FPDFPage_Flatten()
284 pCropBox->AddNew<CPDF_Number>(rcOriginalCB.right); in FPDFPage_Flatten()
285 pCropBox->AddNew<CPDF_Number>(rcOriginalCB.top); in FPDFPage_Flatten()
323 pNewOXbjectDic->SetNewFor<CPDF_Number>("FormType", 1); in FPDFPage_Flatten()
Dfpdfannot.cpp488 pAnnotDict->SetNewFor<CPDF_Number>("CA", A / 255.f); in FPDFAnnot_SetColor()
498 pColor->AddNew<CPDF_Number>(R / 255.f); in FPDFAnnot_SetColor()
499 pColor->AddNew<CPDF_Number>(G / 255.f); in FPDFAnnot_SetColor()
500 pColor->AddNew<CPDF_Number>(B / 255.f); in FPDFAnnot_SetColor()
600 pQuadPoints->AddNew<CPDF_Number>(quadPoints->x1); in FPDFAnnot_SetAttachmentPoints()
601 pQuadPoints->AddNew<CPDF_Number>(quadPoints->y1); in FPDFAnnot_SetAttachmentPoints()
602 pQuadPoints->AddNew<CPDF_Number>(quadPoints->x2); in FPDFAnnot_SetAttachmentPoints()
603 pQuadPoints->AddNew<CPDF_Number>(quadPoints->y2); in FPDFAnnot_SetAttachmentPoints()
604 pQuadPoints->AddNew<CPDF_Number>(quadPoints->x3); in FPDFAnnot_SetAttachmentPoints()
605 pQuadPoints->AddNew<CPDF_Number>(quadPoints->y3); in FPDFAnnot_SetAttachmentPoints()
[all …]
Dfpdfppo.cpp185 pNewPages->SetNewFor<CPDF_Number>("Count", 0); in PDFDocInit()
228 pArray->AddNew<CPDF_Number>(0); in ExportPage()
229 pArray->AddNew<CPDF_Number>(0); in ExportPage()
230 pArray->AddNew<CPDF_Number>(612); in ExportPage()
231 pArray->AddNew<CPDF_Number>(792); in ExportPage()
Dfpdfcatalog_unittest.cpp89 markInfoDict->SetNewFor<CPDF_Number>("Marked", 0); in TEST_F()
93 markInfoDict->SetNewFor<CPDF_Number>("Marked", 1); in TEST_F()
Dfpdf_transformpage.cpp34 pBoundingBoxArray->AddNew<CPDF_Number>(left); in SetBoundingBox()
35 pBoundingBoxArray->AddNew<CPDF_Number>(bottom); in SetBoundingBox()
36 pBoundingBoxArray->AddNew<CPDF_Number>(right); in SetBoundingBox()
37 pBoundingBoxArray->AddNew<CPDF_Number>(top); in SetBoundingBox()
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp95 pDict->SetNewFor<CPDF_Number>("Width", width); in InitJPEG()
96 pDict->SetNewFor<CPDF_Number>("Height", height); in InitJPEG()
106 pDecode->AddNew<CPDF_Number>(1); in InitJPEG()
107 pDecode->AddNew<CPDF_Number>(0); in InitJPEG()
111 pDict->SetNewFor<CPDF_Number>("BitsPerComponent", bits); in InitJPEG()
115 pParms->SetNewFor<CPDF_Number>("ColorTransform", 0); in InitJPEG()
175 pDict->SetNewFor<CPDF_Number>("Width", BitmapWidth); in SetImage()
176 pDict->SetNewFor<CPDF_Number>("Height", BitmapHeight); in SetImage()
200 pArray->AddNew<CPDF_Number>(1); in SetImage()
201 pArray->AddNew<CPDF_Number>(0); in SetImage()
[all …]
/external/pdfium/testing/libfuzzer/
Dpdf_hint_table_fuzzer.cc68 linearized_dict->SetNewFor<CPDF_Number>("E", GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
70 linearized_dict->SetNewFor<CPDF_Number>("N", GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
72 linearized_dict->SetNewFor<CPDF_Number>("O", GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
74 linearized_dict->SetNewFor<CPDF_Number>("P", GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
78 hint_info->AddNew<CPDF_Number>(GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
80 hint_info->AddNew<CPDF_Number>(GetData(&data32, &data, &size)); in LLVMFuzzerTestOneInput()
/external/pdfium/core/fpdfdoc/
Dcpdf_nametree_unittest.cpp16 pNames->AddNew<CPDF_Number>(value); in AddNameKeyValue()
88 pNames->AddNew<CPDF_Number>(100); in TEST()
115 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(111), L"2.txt")); in TEST()
119 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(111), L"1.txt")); in TEST()
123 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(555), L"5.txt")); in TEST()
127 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(999), L"9.txt")); in TEST()
145 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(444), L"9.txt")); in TEST()
149 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(444), L"4.txt")); in TEST()
155 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(666), L"6.txt")); in TEST()
161 nameTree.AddValueAndName(pdfium::MakeUnique<CPDF_Number>(99), L"99.txt")); in TEST()
[all …]
Dcpdf_dest_unittest.cpp24 array->AddNew<CPDF_Number>(0); // Page Index. in TEST()
26 array->AddNew<CPDF_Number>(4); // X in TEST()
36 array->AddNew<CPDF_Number>(5); // Y in TEST()
37 array->AddNew<CPDF_Number>(6); // Zoom. in TEST()
49 array->SetNewAt<CPDF_Number>(4, 0); in TEST()
Dcpdf_dest.cpp110 const CPDF_Number* numX = ToNumber(pArray->GetDirectObjectAt(2)); in GetXYZ()
111 const CPDF_Number* numY = ToNumber(pArray->GetDirectObjectAt(3)); in GetXYZ()
112 const CPDF_Number* numZoom = ToNumber(pArray->GetDirectObjectAt(4)); in GetXYZ()
/external/pdfium/core/fxge/dib/
Dcstretchengine_unittest.cpp23 dict_obj->SetNewFor<CPDF_Number>("Width", 71000); in TEST()
24 dict_obj->SetNewFor<CPDF_Number>("Height", 12500); in TEST()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp305 gsDict->SetNewFor<CPDF_Number>("ca", graphD.fillAlpha); in ProcessGraphics()
308 gsDict->SetNewFor<CPDF_Number>("CA", graphD.strokeAlpha); in ProcessGraphics()
338 gsDict->SetNewFor<CPDF_Number>("ca", defaultGraphics.fillAlpha); in ProcessDefaultGraphics()
339 gsDict->SetNewFor<CPDF_Number>("CA", defaultGraphics.strokeAlpha); in ProcessDefaultGraphics()

12