Home | History | Annotate | Download | only in fxfa

Lines Matching defs:pStyle

96   auto pStyle = m_pSelector->CreateComputedStyle(nullptr);
104 pStyle->SetTextIndent(indent);
126 pStyle->SetTextAlign(hAlign);
132 pStyle->SetMarginWidth(rtMarginWidth);
137 pStyle->SetColor(font->GetColor());
138 pStyle->SetFontStyle(font->IsItalic() ? CFX_CSSFontStyle::Italic
140 pStyle->SetFontWeight(font->IsBold() ? FXFONT_FW_BOLD : FXFONT_FW_NORMAL);
141 pStyle->SetNumberVerticalAlign(-font->GetBaselineShift());
145 pStyle->SetLetterSpacing(letterSpacing);
154 pStyle->SetTextDecoration(dwDecoration);
156 pStyle->SetLineHeight(fLineHeight);
157 pStyle->SetFontSize(fFontSize);
158 return pStyle;
199 auto pStyle = CreateStyle(pParentStyle);
202 tagProvider->GetAttribute(L"align"), pStyle.Get());
203 return pStyle;
304 float CXFA_TextParser::GetTabInterval(CFX_CSSComputedStyle* pStyle) const {
306 if (pStyle && pStyle->GetCustomStyle(L"tab-interval", wsValue))
311 int32_t CXFA_TextParser::CountTabs(CFX_CSSComputedStyle* pStyle) const {
313 if (pStyle && pStyle->GetCustomStyle(L"xfa-tab-count", wsValue))
318 bool CXFA_TextParser::IsSpaceRun(CFX_CSSComputedStyle* pStyle) const {
320 if (pStyle && pStyle->GetCustomStyle(L"xfa-spacerun", wsValue)) {
330 CFX_CSSComputedStyle* pStyle) const {
342 if (pStyle) {
343 int32_t iCount = pStyle->CountFontFamilies();
345 wsFamily = pStyle->GetFontFamily(iCount - 1).AsStringView();
348 if (pStyle->GetFontWeight() > FXFONT_FW_NORMAL)
350 if (pStyle->GetFontStyle() == CFX_CSSFontStyle::Italic)
359 CFX_CSSComputedStyle* pStyle) const {
360 if (pStyle)
361 return pStyle->GetFontSize();
368 CFX_CSSComputedStyle* pStyle,
370 if (pStyle) {
372 if (pStyle->GetCustomStyle(L"xfa-font-horizontal-scale", wsValue))
394 CFX_CSSComputedStyle* pStyle) const {
395 if (pStyle) {
397 if (pStyle->GetCustomStyle(L"xfa-font-vertical-scale", wsValue))
406 CFX_CSSComputedStyle* pStyle,
412 if (!pStyle) {
420 uint32_t dwDecoration = pStyle->GetTextDecoration();
427 if (pStyle->GetCustomStyle(L"underlinePeriod", wsValue)) {
436 CFX_CSSComputedStyle* pStyle,
438 if (pStyle) {
439 uint32_t dwDecoration = pStyle->GetTextDecoration();
450 CFX_CSSComputedStyle* pStyle) const {
451 if (pStyle)
452 return pStyle->GetColor();
459 CFX_CSSComputedStyle* pStyle) const {
460 if (pStyle) {
461 if (pStyle->GetVerticalAlign() == CFX_CSSVerticalAlign::Number)
462 return pStyle->GetNumberVerticalAlign();
472 CFX_CSSComputedStyle* pStyle,
476 if (pStyle) {
477 fLineHeight = pStyle->GetLineHeight();
485 float fFontSize = GetFontSize(pTextProvider, pStyle);
491 fLineHeight = GetFontSize(pTextProvider, pStyle) * 1.2f;
544 bool CXFA_TextParser::GetTabstops(CFX_CSSComputedStyle* pStyle,
546 if (!pStyle || !pTabstopContext)
550 if (!pStyle->GetCustomStyle(L"xfa-tab-stops", wsValue) &&
551 !pStyle->GetCustomStyle(L"tab-stops", wsValue)) {