Home
last modified time | relevance | path

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

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_name.cpp12 CPDF_Name::CPDF_Name(CFX_WeakPtr<CFX_ByteStringPool> pPool, in CPDF_Name() function in CPDF_Name
19 CPDF_Name::~CPDF_Name() {} in ~CPDF_Name()
21 CPDF_Object::Type CPDF_Name::GetType() const { in GetType()
25 std::unique_ptr<CPDF_Object> CPDF_Name::Clone() const { in Clone()
26 return pdfium::MakeUnique<CPDF_Name>(nullptr, m_Name); in Clone()
29 CFX_ByteString CPDF_Name::GetString() const { in GetString()
33 void CPDF_Name::SetString(const CFX_ByteString& str) { in SetString()
37 bool CPDF_Name::IsName() const { in IsName()
41 CPDF_Name* CPDF_Name::AsName() { in AsName()
45 const CPDF_Name* CPDF_Name::AsName() const { in AsName()
[all …]
Dcpdf_name.h16 class CPDF_Name : public CPDF_Object {
18 CPDF_Name(CFX_WeakPtr<CFX_ByteStringPool> pPool, const CFX_ByteString& str);
19 ~CPDF_Name() override;
28 CPDF_Name* AsName() override;
29 const CPDF_Name* AsName() const override;
35 inline CPDF_Name* ToName(CPDF_Object* obj) { in ToName()
39 inline const CPDF_Name* ToName(const CPDF_Object* obj) { in ToName()
Dcpdf_document.cpp309 pBaseDict->SetNewFor<CPDF_Name>("Subtype", "TrueType"); in ProcessNonbCJK()
310 pBaseDict->SetNewFor<CPDF_Name>("BaseFont", basefont); in ProcessNonbCJK()
327 pFontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in CalculateFontDesc()
328 pFontDesc->SetNewFor<CPDF_Name>("FontName", basefont); in CalculateFontDesc()
657 m_pRootDict->SetNewFor<CPDF_Name>("Type", "Catalog"); in CreateNewDoc()
660 pPages->SetNewFor<CPDF_Name>("Type", "Pages"); in CreateNewDoc()
669 pDict->SetNewFor<CPDF_Name>("Type", "Page"); in CreateNewPage()
787 pEncodingDict->SetNewFor<CPDF_Name>("BaseEncoding", "WinAnsiEncoding"); in CalculateEncodingDict()
795 pArray->AddNew<CPDF_Name>(name.IsEmpty() ? ".notdef" : name); in CalculateEncodingDict()
851 pBaseDict->SetNewFor<CPDF_Name>("Subtype", "Type0"); in ProcessbCJK()
[all …]
Dcpdf_object.h20 class CPDF_Name; variable
80 virtual CPDF_Name* AsName();
81 virtual const CPDF_Name* AsName() const;
124 std::is_same<T, CPDF_Name>::value ||
Dcpdf_object.cpp121 CPDF_Name* CPDF_Object::AsName() { in AsName()
125 const CPDF_Name* CPDF_Object::AsName() const { in AsName()
Dcpdf_object_unittest.cpp60 CPDF_Name* name_obj = new CPDF_Name(nullptr, "space"); in SetUp()
64 m_ArrayObj->InsertNewAt<CPDF_Name>(1, "address"); in SetUp()
491 name_array->InsertNewAt<CPDF_Name>(i, vals[i]); in TEST()
619 arr->InsertNewAt<CPDF_Name>(8, "NAME"); in TEST()
620 arr->InsertNewAt<CPDF_Name>(9, "test"); in TEST()
702 name_array->AddNew<CPDF_Name>(vals[i]); in TEST()
720 CPDF_Name* name_obj = new CPDF_Name(nullptr, "Title:"); in TEST()
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp87 pDict->SetNewFor<CPDF_Name>("Type", "XObject"); in InitJPEG()
88 pDict->SetNewFor<CPDF_Name>("Subtype", "Image"); in InitJPEG()
104 pDict->SetNewFor<CPDF_Name>("ColorSpace", csname); in InitJPEG()
106 pDict->SetNewFor<CPDF_Name>("Filter", "DCTDecode"); in InitJPEG()
168 pDict->SetNewFor<CPDF_Name>("Type", "XObject"); in SetImage()
169 pDict->SetNewFor<CPDF_Name>("Subtype", "Image"); in SetImage()
199 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
200 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
219 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
220 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
[all …]
Dcpdf_docpagedata.cpp182 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in GetStandardFont()
183 pDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GetStandardFont()
184 pDict->SetNewFor<CPDF_Name>("BaseFont", fontName); in GetStandardFont()
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp65 fontDict->SetNewFor<CPDF_Name>("Type", "Font"); in FPDFText_LoadType1Font()
66 fontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in FPDFText_LoadType1Font()
70 fontDict->SetNewFor<CPDF_Name>("BaseFont", name); in FPDFText_LoadType1Font()
90 fontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in FPDFText_LoadType1Font()
91 fontDesc->SetNewFor<CPDF_Name>("FontName", name); in FPDFText_LoadType1Font()
Dcpdfsdk_baannot.cpp199 pBSDict->SetNewFor<CPDF_Name>("S", "S"); in SetBorderStyle()
202 pBSDict->SetNewFor<CPDF_Name>("S", "D"); in SetBorderStyle()
205 pBSDict->SetNewFor<CPDF_Name>("S", "B"); in SetBorderStyle()
208 pBSDict->SetNewFor<CPDF_Name>("S", "I"); in SetBorderStyle()
211 pBSDict->SetNewFor<CPDF_Name>("S", "U"); in SetBorderStyle()
330 pStreamDict->SetNewFor<CPDF_Name>("Type", "XObject"); in WriteAppearance()
331 pStreamDict->SetNewFor<CPDF_Name>("Subtype", "Form"); in WriteAppearance()
Dfpdfdoc_unittest.cpp133 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
176 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
217 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
241 array->AddNew<CPDF_Name>("XYZ"); in TEST_F()
Dfpdf_flatten.cpp327 pNewOXbjectDic->SetNewFor<CPDF_Name>("Type", "XObject"); in FPDFPage_Flatten()
328 pNewOXbjectDic->SetNewFor<CPDF_Name>("Subtype", "Form"); in FPDFPage_Flatten()
330 pNewOXbjectDic->SetNewFor<CPDF_Name>("Name", "FRM"); in FPDFPage_Flatten()
392 pObjDic->SetNewFor<CPDF_Name>("Type", "XObject"); in FPDFPage_Flatten()
393 pObjDic->SetNewFor<CPDF_Name>("Subtype", "Form"); in FPDFPage_Flatten()
Dfpdfppo.cpp166 pNewRoot->SetNewFor<CPDF_Name>("Type", "Catalog"); in PDFDocInit()
179 pNewPages->SetNewFor<CPDF_Name>("Type", "Pages"); in PDFDocInit()
/external/pdfium/core/fpdfdoc/
Dcpdf_formfield_unittest.cpp18 root->SetNewFor<CPDF_Name>("T", "foo"); in TEST()
24 dict1->SetNewFor<CPDF_Name>("T", "bar"); in TEST()
35 dict3->SetNewFor<CPDF_Name>("T", "qux"); in TEST()
Dcpdf_annotlist.cpp42 pAnnotDict->SetNewFor<CPDF_Name>("Type", "Annot"); in CreatePopupAnnot()
43 pAnnotDict->SetNewFor<CPDF_Name>("Subtype", "Popup"); in CreatePopupAnnot()
Dcpdf_viewerpreferences.cpp49 const CPDF_Name* pName = ToName(pDict->GetObjectFor(bsKey)); in GenericName()
Dcpdf_dest_unittest.cpp27 array->AddNew<CPDF_Name>("XYZ"); in TEST()
Dcpvt_generateap.cpp70 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateWidgetAP()
71 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GenerateWidgetAP()
72 pFontDict->SetNewFor<CPDF_Name>("BaseFont", "Helvetica"); in GenerateWidgetAP()
73 pFontDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GenerateWidgetAP()
572 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateResourceFontDict()
573 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GenerateResourceFontDict()
574 pFontDict->SetNewFor<CPDF_Name>("BaseFont", "Helvetica"); in GenerateResourceFontDict()
575 pFontDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GenerateResourceFontDict()
Dcpdf_formcontrol.cpp65 m_pWidgetDict->SetNewFor<CPDF_Name>("AS", csValue); in SetOnStateName()
159 m_pWidgetDict->SetNewFor<CPDF_Name>("AS", csAS); in CheckControl()
Dcpdf_dest.cpp86 const CPDF_Name* xyz = ToName(pArray->GetDirectObjectAt(1)); in GetXYZ()
Dcpdf_filespec.cpp117 m_pObj->AsDictionary()->SetNewFor<CPDF_Name>("Type", "Filespec"); in CPDF_FileSpec()
Dcpdf_filespec_unittest.cpp119 std::unique_ptr<CPDF_Object> name_obj(new CPDF_Name(nullptr, "test.pdf")); in TEST()
/external/pdfium/core/fpdfapi/font/
Dcpdf_fontencoding.cpp1695 return pdfium::MakeUnique<CPDF_Name>(pPool, "WinAnsiEncoding"); in Realize()
1697 return pdfium::MakeUnique<CPDF_Name>(pPool, "MacRomanEncoding"); in Realize()
1699 return pdfium::MakeUnique<CPDF_Name>(pPool, "MacExpertEncoding"); in Realize()
1711 pDiff->AddNew<CPDF_Name>(PDF_AdobeNameFromUnicode(m_Unicodes[i])); in Realize()
1715 pDict->SetNewFor<CPDF_Name>("BaseEncoding", "WinAnsiEncoding"); in Realize()
Dcpdf_font.cpp308 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in GetStockFont()
309 pDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GetStockFont()
310 pDict->SetNewFor<CPDF_Name>("BaseFont", fontname); in GetStockFont()
311 pDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GetStockFont()
412 if (CPDF_Name* pName = pElement->AsName()) { in LoadPDFEncoding()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp259 fontDict->SetNewFor<CPDF_Name>("Type", "Font"); in ProcessText()
260 fontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in ProcessText()
261 fontDict->SetNewFor<CPDF_Name>("BaseFont", fontD.baseFont); in ProcessText()

12