Home
last modified time | relevance | path

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

12

/external/pdfium/core/fpdfapi/parser/
Dcpdf_name.cpp13 CPDF_Name::CPDF_Name(WeakPtr<ByteStringPool> pPool, const ByteString& str) 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 ByteString CPDF_Name::GetString() const { in GetString()
33 void CPDF_Name::SetString(const 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(WeakPtr<ByteStringPool> pPool, const ByteString& str);
19 ~CPDF_Name() override;
28 CPDF_Name* AsName() override;
29 const CPDF_Name* AsName() const override;
36 inline CPDF_Name* ToName(CPDF_Object* obj) { in ToName()
40 inline const CPDF_Name* ToName(const CPDF_Object* obj) { in ToName()
Dcpdf_document.cpp310 pBaseDict->SetNewFor<CPDF_Name>("Subtype", "TrueType"); in ProcessNonbCJK()
311 pBaseDict->SetNewFor<CPDF_Name>("BaseFont", basefont); in ProcessNonbCJK()
328 pFontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in CalculateFontDesc()
329 pFontDesc->SetNewFor<CPDF_Name>("FontName", basefont); in CalculateFontDesc()
660 m_pRootDict->SetNewFor<CPDF_Name>("Type", "Catalog"); in CreateNewDoc()
663 pPages->SetNewFor<CPDF_Name>("Type", "Pages"); in CreateNewDoc()
672 pDict->SetNewFor<CPDF_Name>("Type", "Page"); in CreateNewPage()
790 pEncodingDict->SetNewFor<CPDF_Name>("BaseEncoding", "WinAnsiEncoding"); in CalculateEncodingDict()
798 pArray->AddNew<CPDF_Name>(name.IsEmpty() ? ".notdef" : name); in CalculateEncodingDict()
854 pBaseDict->SetNewFor<CPDF_Name>("Subtype", "Type0"); in ProcessbCJK()
[all …]
Dcpdf_object.h20 class CPDF_Name; variable
84 virtual CPDF_Name* AsName();
85 virtual const CPDF_Name* AsName() const;
124 std::is_same<T, CPDF_Name>::value ||
Dcpdf_object.cpp126 CPDF_Name* CPDF_Object::AsName() { in AsName()
130 const CPDF_Name* CPDF_Object::AsName() const { in AsName()
Dcpdf_object_unittest.cpp58 CPDF_Name* name_obj = new CPDF_Name(nullptr, "space"); in SetUp()
62 m_ArrayObj->InsertNewAt<CPDF_Name>(1, "address"); in SetUp()
495 name_array->InsertNewAt<CPDF_Name>(i, vals[i]); in TEST()
623 arr->InsertNewAt<CPDF_Name>(8, "NAME"); in TEST()
624 arr->InsertNewAt<CPDF_Name>(9, "test"); in TEST()
707 name_array->AddNew<CPDF_Name>(vals[i]); in TEST()
724 CPDF_Name* name_obj = new CPDF_Name(nullptr, "Title:"); in TEST()
/external/pdfium/core/fpdfapi/page/
Dcpdf_image.cpp93 pDict->SetNewFor<CPDF_Name>("Type", "XObject"); in InitJPEG()
94 pDict->SetNewFor<CPDF_Name>("Subtype", "Image"); in InitJPEG()
110 pDict->SetNewFor<CPDF_Name>("ColorSpace", csname); in InitJPEG()
112 pDict->SetNewFor<CPDF_Name>("Filter", "DCTDecode"); in InitJPEG()
173 pDict->SetNewFor<CPDF_Name>("Type", "XObject"); in SetImage()
174 pDict->SetNewFor<CPDF_Name>("Subtype", "Image"); in SetImage()
205 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
206 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
225 pCS->AddNew<CPDF_Name>("Indexed"); in SetImage()
226 pCS->AddNew<CPDF_Name>("DeviceRGB"); in SetImage()
[all …]
Dcpdf_docpagedata.cpp174 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in GetStandardFont()
175 pDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GetStandardFont()
176 pDict->SetNewFor<CPDF_Name>("BaseFont", fontName); in GetStandardFont()
/external/pdfium/fpdfsdk/
Dfpdfedittext.cpp37 fontDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in LoadFontDesc()
38 fontDesc->SetNewFor<CPDF_Name>("FontName", font_name); in LoadFontDesc()
247 fontDict->SetNewFor<CPDF_Name>("Type", "Font"); in LoadSimpleFont()
248 fontDict->SetNewFor<CPDF_Name>( in LoadSimpleFont()
253 fontDict->SetNewFor<CPDF_Name>("BaseFont", name); in LoadSimpleFont()
290 fontDict->SetNewFor<CPDF_Name>("Type", "Font"); in LoadCompositeFont()
291 fontDict->SetNewFor<CPDF_Name>("Subtype", "Type0"); in LoadCompositeFont()
294 fontDict->SetNewFor<CPDF_Name>("Encoding", encoding); in LoadCompositeFont()
298 fontDict->SetNewFor<CPDF_Name>( in LoadCompositeFont()
302 pCIDFont->SetNewFor<CPDF_Name>("Type", "Font"); in LoadCompositeFont()
[all …]
Dcpdfsdk_baannot.cpp206 pBSDict->SetNewFor<CPDF_Name>("S", "S"); in SetBorderStyle()
209 pBSDict->SetNewFor<CPDF_Name>("S", "D"); in SetBorderStyle()
212 pBSDict->SetNewFor<CPDF_Name>("S", "B"); in SetBorderStyle()
215 pBSDict->SetNewFor<CPDF_Name>("S", "I"); in SetBorderStyle()
218 pBSDict->SetNewFor<CPDF_Name>("S", "U"); in SetBorderStyle()
Dfpdfdoc_unittest.cpp130 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
173 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
214 bookmarks[0].obj->SetNewFor<CPDF_Name>("Type", "Outlines"); in TEST_F()
238 array->AddNew<CPDF_Name>("XYZ"); in TEST_F()
Dfpdf_flatten.cpp321 pNewOXbjectDic->SetNewFor<CPDF_Name>("Type", "XObject"); in FPDFPage_Flatten()
322 pNewOXbjectDic->SetNewFor<CPDF_Name>("Subtype", "Form"); in FPDFPage_Flatten()
384 pObjDic->SetNewFor<CPDF_Name>("Type", "XObject"); in FPDFPage_Flatten()
385 pObjDic->SetNewFor<CPDF_Name>("Subtype", "Form"); in FPDFPage_Flatten()
/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_filespec_unittest.cpp120 auto name_obj = pdfium::MakeUnique<CPDF_Name>(nullptr, "test.pdf"); in TEST()
162 auto name_obj = pdfium::MakeUnique<CPDF_Name>(nullptr, "test.pdf"); in TEST()
221 auto name_obj = pdfium::MakeUnique<CPDF_Name>(nullptr, "test.pdf"); in TEST()
Dcpdf_annotlist.cpp45 pAnnotDict->SetNewFor<CPDF_Name>("Type", "Annot"); in CreatePopupAnnot()
46 pAnnotDict->SetNewFor<CPDF_Name>("Subtype", "Popup"); in CreatePopupAnnot()
Dcpdf_viewerpreferences.cpp49 const CPDF_Name* pName = ToName(pDict->GetObjectFor(bsKey)); in GenericName()
Dcpvt_generateap.cpp397 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateResourceFontDict()
398 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GenerateResourceFontDict()
399 pFontDict->SetNewFor<CPDF_Name>("BaseFont", "Helvetica"); in GenerateResourceFontDict()
400 pFontDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GenerateResourceFontDict()
925 pFontDict->SetNewFor<CPDF_Name>("Type", "Font"); in GenerateFormAP()
926 pFontDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GenerateFormAP()
927 pFontDict->SetNewFor<CPDF_Name>("BaseFont", "Helvetica"); in GenerateFormAP()
928 pFontDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GenerateFormAP()
Dcpdf_formcontrol.cpp67 m_pWidgetDict->SetNewFor<CPDF_Name>("AS", csValue); in SetOnStateName()
159 m_pWidgetDict->SetNewFor<CPDF_Name>("AS", csAS); in CheckControl()
Dcpdf_dest_unittest.cpp25 array->AddNew<CPDF_Name>("XYZ"); in TEST()
Dcpdf_dest.cpp106 const CPDF_Name* xyz = ToName(pArray->GetDirectObjectAt(1)); in GetXYZ()
/external/pdfium/core/fpdfapi/font/
Dcpdf_fontencoding.cpp1694 return pdfium::MakeUnique<CPDF_Name>(pPool, "WinAnsiEncoding"); in Realize()
1696 return pdfium::MakeUnique<CPDF_Name>(pPool, "MacRomanEncoding"); in Realize()
1698 return pdfium::MakeUnique<CPDF_Name>(pPool, "MacExpertEncoding"); in Realize()
1710 pDiff->AddNew<CPDF_Name>(PDF_AdobeNameFromUnicode(m_Unicodes[i])); in Realize()
1714 pDict->SetNewFor<CPDF_Name>("BaseEncoding", "WinAnsiEncoding"); in Realize()
Dcpdf_font.cpp313 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in GetStockFont()
314 pDict->SetNewFor<CPDF_Name>("Subtype", "Type1"); in GetStockFont()
315 pDict->SetNewFor<CPDF_Name>("BaseFont", fontname); in GetStockFont()
316 pDict->SetNewFor<CPDF_Name>("Encoding", "WinAnsiEncoding"); in GetStockFont()
416 if (CPDF_Name* pName = pElement->AsName()) { in LoadPDFEncoding()
/external/pdfium/core/fpdfapi/edit/
Dcpdf_pagecontentgenerator.cpp312 gsDict->SetNewFor<CPDF_Name>("BM", in ProcessGraphics()
340 gsDict->SetNewFor<CPDF_Name>("BM", "Normal"); in ProcessDefaultGraphics()
379 fontDict->SetNewFor<CPDF_Name>("Type", "Font"); in ProcessText()
380 fontDict->SetNewFor<CPDF_Name>("Subtype", fontD.type); in ProcessText()
381 fontDict->SetNewFor<CPDF_Name>("BaseFont", fontD.baseFont); in ProcessText()
Dcpdf_pagecontentgenerator_unittest.cpp241 pDict->SetNewFor<CPDF_Name>("Type", "Font"); in TEST_F()
242 pDict->SetNewFor<CPDF_Name>("Subtype", "TrueType"); in TEST_F()
244 pDict->SetNewFor<CPDF_Name>("BaseFont", pFont->GetBaseFont()); in TEST_F()
247 pDesc->SetNewFor<CPDF_Name>("Type", "FontDescriptor"); in TEST_F()
248 pDesc->SetNewFor<CPDF_Name>("FontName", pFont->GetBaseFont()); in TEST_F()
Dcpdf_flateencoder.cpp44 m_pDict->SetNewFor<CPDF_Name>("Filter", "FlateDecode"); in CPDF_FlateEncoder()

12