Home
last modified time | relevance | path

Searched refs:pStyle (Results 1 – 9 of 9) sorted by relevance

/external/pdfium/xfa/fxfa/app/
Dcxfa_textparser.cpp108 auto pStyle = m_pSelector->CreateComputedStyle(nullptr); in CreateRootStyle() local
116 pStyle->SetTextIndent(indent); in CreateRootStyle()
132 pStyle->SetTextAlign(hAlign); in CreateRootStyle()
138 pStyle->SetMarginWidth(rtMarginWidth); in CreateRootStyle()
142 pStyle->SetColor(font.GetColor()); in CreateRootStyle()
143 pStyle->SetFontStyle(font.IsItalic() ? FDE_CSSFontStyle::Italic in CreateRootStyle()
145 pStyle->SetFontWeight(font.IsBold() ? FXFONT_FW_BOLD : FXFONT_FW_NORMAL); in CreateRootStyle()
146 pStyle->SetNumberVerticalAlign(-font.GetBaselineShift()); in CreateRootStyle()
150 pStyle->SetLetterSpacing(letterSpacing); in CreateRootStyle()
159 pStyle->SetTextDecoration(dwDecoration); in CreateRootStyle()
[all …]
Dcxfa_textparser.h46 FX_FLOAT GetTabInterval(CFDE_CSSComputedStyle* pStyle) const;
47 int32_t CountTabs(CFDE_CSSComputedStyle* pStyle) const;
49 bool IsSpaceRun(CFDE_CSSComputedStyle* pStyle) const;
50 bool GetTabstops(CFDE_CSSComputedStyle* pStyle,
54 CFDE_CSSComputedStyle* pStyle) const;
56 CFDE_CSSComputedStyle* pStyle) const;
59 CFDE_CSSComputedStyle* pStyle,
62 CFDE_CSSComputedStyle* pStyle) const;
65 CFDE_CSSComputedStyle* pStyle,
69 CFDE_CSSComputedStyle* pStyle,
[all …]
Dcxfa_textuserdata.cpp15 const CFX_RetainPtr<CFDE_CSSComputedStyle>& pStyle) in CXFA_TextUserData() argument
16 : m_pStyle(pStyle) {} in CXFA_TextUserData()
19 const CFX_RetainPtr<CFDE_CSSComputedStyle>& pStyle, in CXFA_TextUserData() argument
21 : m_pStyle(pStyle), m_pLinkData(pLinkData) {} in CXFA_TextUserData()
Dcxfa_textlayout.cpp157 void CXFA_TextLayout::InitBreak(CFDE_CSSComputedStyle* pStyle, in InitBreak() argument
162 if (!pStyle) { in InitBreak()
170 switch (pStyle->GetTextAlign()) { in InitBreak()
189 const FDE_CSSRect* pRect = pStyle->GetMarginWidth(); in InitBreak()
190 const FDE_CSSRect* pPaddingRect = pStyle->GetPaddingWidth(); in InitBreak()
214 pStyle->SetMarginWidth(pNewRect); in InitBreak()
218 FX_FLOAT fIndent = pStyle->GetTextIndent().GetValue(); in InitBreak()
223 m_pBreak->SetTabWidth(m_textParser.GetTabInterval(pStyle)); in InitBreak()
226 m_textParser.GetTabstops(pStyle, m_pTabstopContext.get()); in InitBreak()
233 FX_FLOAT fFontSize = m_textParser.GetFontSize(m_pTextProvider, pStyle); in InitBreak()
[all …]
Dcxfa_textuserdata.h26 const CFX_RetainPtr<CFDE_CSSComputedStyle>& pStyle);
27 CXFA_TextUserData(const CFX_RetainPtr<CFDE_CSSComputedStyle>& pStyle,
Dcxfa_textlayout.h70 void InitBreak(CFDE_CSSComputedStyle* pStyle,
119 void DoTabstops(CFDE_CSSComputedStyle* pStyle, CXFA_PieceLine* pPieceLine);
/external/pdfium/core/fxge/ge/
Dcfx_fontmapper.cpp226 CFX_ByteString ParseStyle(const FX_CHAR* pStyle, int iLen, int iIndex) { in ParseStyle() argument
231 if (pStyle[iIndex] == ',') in ParseStyle()
233 buf.AppendChar(pStyle[iIndex]); in ParseStyle()
244 const FX_FontStyle* pStyle = nullptr; in GetStyleType() local
246 pStyle = g_FontStyles + i; in GetStyleType()
247 if (!pStyle || pStyle->len > iLen) in GetStyleType()
251 if (bsStyle.Right(pStyle->len).Compare(pStyle->style) == 0) in GetStyleType()
254 if (bsStyle.Left(pStyle->len).Compare(pStyle->style) == 0) in GetStyleType()
508 const FX_CHAR* pStyle = style.c_str(); in FindSubstFont() local
513 buf = ParseStyle(pStyle, nLen, i); in FindSubstFont()
/external/pdfium/xfa/fde/css/
Dcfde_cssdeclaration.cpp504 CFX_RetainPtr<CFDE_CSSValue> pStyle; in ParseFontProperty() local
539 if (!pStyle) in ParseFontProperty()
540 pStyle = pdfium::MakeRetain<CFDE_CSSEnumValue>(pValue->eName); in ParseFontProperty()
547 if (!pStyle) in ParseFontProperty()
548 pStyle = pdfium::MakeRetain<CFDE_CSSEnumValue>(pValue->eName); in ParseFontProperty()
605 if (!pStyle) { in ParseFontProperty()
606 pStyle = in ParseFontProperty()
626 AddPropertyHolder(FDE_CSSProperty::FontStyle, pStyle, bImportant); in ParseFontProperty()
Dcfde_cssstyleselector.cpp37 auto pStyle = pdfium::MakeRetain<CFDE_CSSComputedStyle>(); in CreateComputedStyle() local
39 pStyle->m_InheritedData = pParentStyle->m_InheritedData; in CreateComputedStyle()
40 return pStyle; in CreateComputedStyle()