Home
last modified time | relevance | path

Searched refs:CPDF_Name (Results 1 – 25 of 43) sorted by relevance

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_name.cpp14 CPDF_Name::CPDF_Name(WeakPtr<ByteStringPool> pPool, const ByteString& str) in CPDF_Name() function in CPDF_Name
20 CPDF_Name::~CPDF_Name() {} in ~CPDF_Name()
22 CPDF_Object::Type CPDF_Name::GetType() const { in GetType()
26 RetainPtr<CPDF_Object> CPDF_Name::Clone() const { in Clone()
27 return pdfium::MakeRetain<CPDF_Name>(nullptr, m_Name); in Clone()
30 ByteString CPDF_Name::GetString() const { in GetString()
34 void CPDF_Name::SetString(const ByteString& str) { in SetString()
38 bool CPDF_Name::IsName() const { in IsName()
42 CPDF_Name* CPDF_Name::AsName() { in AsName()
46 const CPDF_Name* CPDF_Name::AsName() const { in AsName()
[all …]
Dfpdf_parser_decode_unittest.cpp23 decoders->AddNew<CPDF_Name>("FlateEncode"); in TEST()
29 decoders->AddNew<CPDF_Name>("FooBar"); in TEST()
35 decoders->AddNew<CPDF_Name>("AHx"); in TEST()
36 decoders->AddNew<CPDF_Name>("LZWDecode"); in TEST()
42 decoders->AddNew<CPDF_Name>("ASCII85Decode"); in TEST()
43 decoders->AddNew<CPDF_Name>("ASCII85Decode"); in TEST()
49 decoders->AddNew<CPDF_Name>("ASCII85Decode"); in TEST()
50 decoders->AddNew<CPDF_Name>("A85"); in TEST()
51 decoders->AddNew<CPDF_Name>("RunLengthDecode"); in TEST()
52 decoders->AddNew<CPDF_Name>("FlateDecode"); in TEST()
[all …]
Dcpdf_name.h16 class CPDF_Name final : public CPDF_Object {
28 CPDF_Name* AsName() override;
29 const CPDF_Name* AsName() const override;
34 CPDF_Name(WeakPtr<ByteStringPool> pPool, const ByteString& str);
35 ~CPDF_Name() override;
40 inline CPDF_Name* ToName(CPDF_Object* obj) { in ToName()
44 inline const CPDF_Name* ToName(const CPDF_Object* obj) { in ToName()
Dfpdf_parser_utility_unittest.cpp49 dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
71 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
73 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
80 new_dict->SetNewFor<CPDF_Name>("Type", "bar"); in TEST()
85 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
100 new_dict->SetNewFor<CPDF_Name>("Type", "foo"); in TEST()
Dcpdf_object.h22 class CPDF_Name; variable
86 virtual CPDF_Name* AsName();
87 virtual const CPDF_Name* AsName() const;
130 std::is_same<T, CPDF_Name>::value ||
Dcpdf_object.cpp133 CPDF_Name* CPDF_Object::AsName() { in AsName()
137 const CPDF_Name* CPDF_Object::AsName() const { in AsName()
Dcpdf_flateencoder.cpp52 m_pClonedDict->SetNewFor<CPDF_Name>("Filter", "FlateDecode"); in CPDF_FlateEncoder()
Dcpdf_document.cpp352 m_pRootDict->SetNewFor<CPDF_Name>("Type", "Catalog"); in CreateNewDoc()
355 pPages->SetNewFor<CPDF_Name>("Type", "Pages"); in CreateNewDoc()
364 pDict->SetNewFor<CPDF_Name>("Type", "Page"); in CreateNewPage()
Dcpdf_object_unittest.cpp62 auto name_obj = pdfium::MakeRetain<CPDF_Name>(nullptr, "space"); in SetUp()
66 m_ArrayObj->InsertNewAt<CPDF_Name>(1, "address"); in SetUp()
514 name_array->InsertNewAt<CPDF_Name>(i, vals[i]); in TEST()
642 arr->InsertNewAt<CPDF_Name>(8, "NAME"); in TEST()
643 arr->InsertNewAt<CPDF_Name>(9, "test"); in TEST()
725 name_array->AddNew<CPDF_Name>(val); in TEST()
742 auto name_obj = pdfium::MakeRetain<CPDF_Name>(nullptr, "Title:"); in TEST()
/external/pdfium/core/fpdfapi/page/
Dcpdf_docpagedata.cpp130 pBaseDict->SetNewFor<CPDF_Name>("Subtype", "TrueType"); in ProcessNonbCJK()
131 pBaseDict->SetNewFor<CPDF_Name>("BaseFont", basefont); in ProcessNonbCJK()
146 pFontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in CalculateFontDesc()
147 pFontDesc->SetNewFor<CPDF_Name>("FontName", basefont); in CalculateFontDesc()
221 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in GetStandardFont()
222 pDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GetStandardFont()
223 pDict->SetNewFor<CPDF_Name>("BaseFont", fontName); in GetStandardFont()
468 pBaseDict->SetNewFor<CPDF_Name>("Type", "Font"); in AddFont()
480 pBaseDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in AddFont()
579 pBaseDict->SetNewFor<CPDF_Name>("Type", "Font"); in AddWindowsFont()
[all …]
Dcpdf_image.cpp112 pDict->SetNewFor<CPDF_Name>("ColorSpace", csname); in InitJPEG()
114 pDict->SetNewFor<CPDF_Name>("Filter", "DCTDecode"); in InitJPEG()
202 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
203 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
226 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
227 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
246 pDict->SetNewFor<CPDF_Name>("ColorSpace", "DeviceGray"); in SetImage()
251 pDict->SetNewFor<CPDF_Name>("ColorSpace", "DeviceRGB"); in SetImage()
268 pMaskDict->SetNewFor<CPDF_Name>("ColorSpace", "DeviceGray"); in SetImage()
395 dict->SetNewFor<CPDF_Name>("Type", "XObject"); in CreateXObjectImageDict()
[all …]
/external/pdfium/core/fpdfdoc/
Dcpdf_formfield_unittest.cpp19 root->SetNewFor<CPDF_Name>("T", "foo"); in TEST()
25 dict1->SetNewFor<CPDF_Name>("T", "bar"); in TEST()
36 dict3->SetNewFor<CPDF_Name>("T", "qux"); in TEST()
Dcpdf_filespec_unittest.cpp122 auto name_obj = pdfium::MakeRetain<CPDF_Name>(nullptr, "test.pdf"); in TEST()
131 dict_obj->SetNewFor<CPDF_Name>(key, "http://evil.org"); in TEST()
175 auto name_obj = pdfium::MakeRetain<CPDF_Name>(nullptr, "test.pdf"); in TEST()
234 auto name_obj = pdfium::MakeRetain<CPDF_Name>(nullptr, "test.pdf"); in TEST()
Dcpvt_generateap.cpp409 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateResourceFontDict()
410 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GenerateResourceFontDict()
411 pFontDict->SetNewFor<CPDF_Name>("BaseFont", CFX_Font::kDefaultAnsiFontName); in GenerateResourceFontDict()
412 pFontDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GenerateResourceFontDict()
482 pGSDict->SetNewFor<CPDF_Name>("Type", "ExtGState"); in GenerateExtGStateDict()
489 pGSDict->SetNewFor<CPDF_Name>("BM", sBlendMode); in GenerateExtGStateDict()
525 pStreamDict->SetNewFor<CPDF_Name>("Type", "XObject"); in GenerateAndSetAPDict()
526 pStreamDict->SetNewFor<CPDF_Name>("Subtype", "Form"); in GenerateAndSetAPDict()
956 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateFormAP()
957 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GenerateFormAP()
[all …]
Dcpdf_viewerpreferences.cpp49 const CPDF_Name* pName = ToName(pDict->GetObjectFor(bsKey)); in GenericName()
Dcpdf_dest_unittest.cpp25 array->AddNew<CPDF_Name>("XYZ"); in TEST()
/external/pdfium/fpdfsdk/
Dfpdf_edittext.cpp73 pFontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in LoadFontDesc()
74 pFontDesc->SetNewFor<CPDF_Name>("FontName", font_name); in LoadFontDesc()
275 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in LoadSimpleFont()
276 pFontDict->SetNewFor<CPDF_Name>( in LoadSimpleFont()
281 pFontDict->SetNewFor<CPDF_Name>("BaseFont", name); in LoadSimpleFont()
323 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in LoadCompositeFont()
324 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type0"); in LoadCompositeFont()
327 pFontDict->SetNewFor<CPDF_Name>("Encoding", encoding); in LoadCompositeFont()
331 pFontDict->SetNewFor<CPDF_Name>( in LoadCompositeFont()
335 pCIDFont->SetNewFor<CPDF_Name>("Type", "Font"); in LoadCompositeFont()
[all …]
Dfpdf_doc_unittest.cpp112 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
156 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
197 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
221 array->AddNew<CPDF_Name>("XYZ"); in TEST_F()
Dfpdf_flatten.cpp325 pNewOXbjectDic->SetNewFor<CPDF_Name>("Type", "XObject"); in FPDFPage_Flatten()
326 pNewOXbjectDic->SetNewFor<CPDF_Name>("Subtype", "Form"); in FPDFPage_Flatten()
389 pObjDict->SetNewFor<CPDF_Name>("Type", "XObject"); in FPDFPage_Flatten()
390 pObjDict->SetNewFor<CPDF_Name>("Subtype", "Form"); in FPDFPage_Flatten()
Dfpdf_annot.cpp229 pGSDict->SetNewFor<CPDF_Name>("Type", "ExtGState"); in SetExtGStateInResourceDict()
247 pGSDict->SetNewFor<CPDF_Name>("BM", sBlendMode); in SetExtGStateInResourceDict()
292 pDict->SetNewFor<CPDF_Name>(pdfium::annotation::kType, "Annot"); in FPDFPage_CreateAnnot()
293 pDict->SetNewFor<CPDF_Name>(pdfium::annotation::kSubtype, in FPDFPage_CreateAnnot()
846 pStreamDict->SetNewFor<CPDF_Name>(pdfium::annotation::kType, "XObject"); in FPDFAnnot_SetAP()
847 pStreamDict->SetNewFor<CPDF_Name>(pdfium::annotation::kSubtype, "Form"); in FPDFAnnot_SetAP()
/external/pdfium/core/fpdfapi/font/
Dcpdf_cidfont_unittest.cpp28 font_dict->SetNewFor<CPDF_Name>("Encoding", "Identity−H"); in TEST_F()
34 descendant_font->SetNewFor<CPDF_Name>("BaseFont", "CourierStd"); in TEST_F()
Dcpdf_font.cpp302 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in GetStockFont()
303 pDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GetStockFont()
304 pDict->SetNewFor<CPDF_Name>("BaseFont", fontname); in GetStockFont()
305 pDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GetStockFont()
Dcpdf_fontencoding.cpp1709 return pdfium::MakeRetain<CPDF_Name>(pPool, pName); in Realize()
1719 pDiff->AddNew<CPDF_Name>(PDF_AdobeNameFromUnicode(m_Unicodes[i])); in Realize()
1723 pDict->SetNewFor<CPDF_Name>("BaseEncoding", "WinAnsiEncoding"); in Realize()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp447 gsDict->SetNewFor<CPDF_Name>("BM", in ProcessGraphics()
481 gsDict->SetNewFor<CPDF_Name>("BM", "Normal"); in GetOrCreateDefaultGraphics()
523 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in ProcessText()
524 pFontDict->SetNewFor<CPDF_Name>("Subtype", data.type); in ProcessText()
525 pFontDict->SetNewFor<CPDF_Name>("BaseFont", data.baseFont); in ProcessText()
Dcpdf_pagecontentgenerator_unittest.cpp325 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in TEST_F()
326 pDict->SetNewFor<CPDF_Name>("Subtype", "TrueType"); in TEST_F()
329 pDict->SetNewFor<CPDF_Name>("BaseFont", pFont->GetBaseFontName()); in TEST_F()
332 pDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in TEST_F()
333 pDesc->SetNewFor<CPDF_Name>("FontName", pFont->GetBaseFontName()); in TEST_F()

12