Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cxfa_textparser.h>
Classes | |
class | Context |
Public Attributes | |
CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED | |
Protected Member Functions | |
CXFA_TextParser () | |
bool | TagValidate (const WideString &str) const |
Definition at line 35 of file cxfa_textparser.h.
|
virtualdefault |
|
protecteddefault |
RetainPtr< CFX_CSSComputedStyle > CXFA_TextParser::ComputeStyle | ( | const CFX_XMLNode * | pXMLNode, |
RetainPtr< const CFX_CSSComputedStyle > | pParentStyle ) |
Definition at line 196 of file cxfa_textparser.cpp.
References CXFA_TextParser::Context::SetParentStyle().
int32_t CXFA_TextParser::CountTabs | ( | const CFX_CSSComputedStyle * | pStyle | ) | const |
Definition at line 324 of file cxfa_textparser.cpp.
References CFX_CSSComputedStyle::GetCustomStyle(), and fxcrt::WideString::GetInteger().
RetainPtr< CFX_CSSComputedStyle > CXFA_TextParser::CreateRootStyle | ( | CXFA_TextProvider * | pTextProvider | ) |
Definition at line 108 of file cxfa_textparser.cpp.
References CFX_CSSRect::bottom, Center, CXFA_Font::GetBaselineShift(), CXFA_Font::GetColor(), CXFA_TextProvider::GetFontIfExists(), CXFA_Font::GetFontSize(), CXFA_Para::GetHorizontalAlign(), CXFA_Font::GetLetterSpacing(), CXFA_Para::GetLineHeight(), CXFA_Font::GetLineThrough(), CXFA_Para::GetMarginLeft(), CXFA_Para::GetMarginRight(), CXFA_TextProvider::GetParaIfExists(), CXFA_Para::GetSpaceAbove(), CXFA_Para::GetSpaceBelow(), CXFA_Para::GetTextIndent(), CXFA_Font::GetUnderline(), CXFA_Font::IsBold(), CXFA_Font::IsItalic(), Italic, Justify, JustifyAll, kDouble, kLineThrough, kUnderline, Left, CFX_CSSRect::left, Normal, Point, Right, CFX_CSSRect::right, CFX_CSSLength::Set(), and CFX_CSSRect::top.
void CXFA_TextParser::DoParse | ( | const CFX_XMLNode * | pXMLContainer, |
CXFA_TextProvider * | pTextProvider ) |
Definition at line 220 of file cxfa_textparser.cpp.
float CXFA_TextParser::GetBaseline | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 463 of file cxfa_textparser.cpp.
References CXFA_Font::GetBaselineShift(), CXFA_TextProvider::GetFontIfExists(), CFX_CSSComputedStyle::GetNumberVerticalAlign(), CFX_CSSComputedStyle::GetVerticalAlign(), and Number.
FX_ARGB CXFA_TextParser::GetColor | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 454 of file cxfa_textparser.cpp.
References CFX_CSSComputedStyle::GetColor(), CXFA_Font::GetColor(), and CXFA_TextProvider::GetFontIfExists().
absl::optional< WideString > CXFA_TextParser::GetEmbeddedObj | ( | const CXFA_TextProvider * | pTextProvider, |
const CFX_XMLNode * | pXMLNode ) |
Definition at line 502 of file cxfa_textparser.cpp.
References CFX_XMLElement::GetAttribute(), fxcrt::WideString::operator=(), fxcrt::WideString::operator[](), and ToXMLElement().
RetainPtr< CFGAS_GEFont > CXFA_TextParser::GetFont | ( | CXFA_FFDoc * | doc, |
CXFA_TextProvider * | pTextProvider, | ||
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 337 of file cxfa_textparser.cpp.
References CXFA_FFDoc::GetApp(), CXFA_FontMgr::GetFont(), CXFA_TextProvider::GetFontIfExists(), CFX_CSSComputedStyle::GetFontStyle(), CFX_CSSComputedStyle::GetFontWeight(), CXFA_Font::GetTypeface(), CXFA_FFApp::GetXFAFontMgr(), CXFA_Font::IsBold(), CXFA_Font::IsItalic(), Italic, and fxcrt::WideString::operator=().
float CXFA_TextParser::GetFontSize | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 368 of file cxfa_textparser.cpp.
References CXFA_TextProvider::GetFontIfExists(), CFX_CSSComputedStyle::GetFontSize(), and CXFA_Font::GetFontSize().
Referenced by GetLineHeight().
int32_t CXFA_TextParser::GetHorScale | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle, | ||
const CFX_XMLNode * | pXMLNode ) const |
Definition at line 377 of file cxfa_textparser.cpp.
References CFX_CSSComputedStyle::GetCustomStyle(), CXFA_TextProvider::GetFontIfExists(), CXFA_Font::GetHorizontalScale(), and fxcrt::WideString::GetInteger().
float CXFA_TextParser::GetLineHeight | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle, | ||
bool | bFirst, | ||
float | fVerScale ) const |
Definition at line 476 of file cxfa_textparser.cpp.
References GetFontSize(), CFX_CSSComputedStyle::GetLineHeight(), CXFA_Para::GetLineHeight(), and CXFA_TextProvider::GetParaIfExists().
int32_t CXFA_TextParser::GetLinethrough | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 442 of file cxfa_textparser.cpp.
References CXFA_TextProvider::GetFontIfExists(), CXFA_Font::GetLineThrough(), and kLineThrough.
CXFA_TextParser::Context * CXFA_TextParser::GetParseContextFromMap | ( | const CFX_XMLNode * | pXMLNode | ) |
Definition at line 532 of file cxfa_textparser.cpp.
float CXFA_TextParser::GetTabInterval | ( | const CFX_CSSComputedStyle * | pStyle | ) | const |
Definition at line 316 of file cxfa_textparser.cpp.
References CFX_CSSComputedStyle::GetCustomStyle(), Pt, and CXFA_Measurement::ToUnit().
bool CXFA_TextParser::GetTabstops | ( | const CFX_CSSComputedStyle * | pStyle, |
CXFA_TextTabstopsContext * | pTabstopContext ) |
Definition at line 538 of file cxfa_textparser.cpp.
References CXFA_TextTabstopsContext::Append(), fxcrt::WideString::clear(), CFX_CSSComputedStyle::GetCustomStyle(), fxcrt::WideString::IsEmpty(), Pt, and CXFA_Measurement::ToUnit().
int32_t CXFA_TextParser::GetUnderline | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 415 of file cxfa_textparser.cpp.
References CXFA_TextProvider::GetFontIfExists(), CXFA_Font::GetUnderline(), kDouble, and kUnderline.
XFA_AttributeValue CXFA_TextParser::GetUnderlinePeriod | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 430 of file cxfa_textparser.cpp.
References fxcrt::WideString::EqualsASCII(), CFX_CSSComputedStyle::GetCustomStyle(), CXFA_TextProvider::GetFontIfExists(), and CXFA_Font::GetUnderlinePeriod().
XFA_AttributeValue CXFA_TextParser::GetVAlign | ( | CXFA_TextProvider * | pTextProvider | ) | const |
Definition at line 310 of file cxfa_textparser.cpp.
References CXFA_TextProvider::GetParaIfExists(), and CXFA_Para::GetVerticalAlign().
int32_t CXFA_TextParser::GetVerScale | ( | CXFA_TextProvider * | pTextProvider, |
const CFX_CSSComputedStyle * | pStyle ) const |
Definition at line 403 of file cxfa_textparser.cpp.
References CFX_CSSComputedStyle::GetCustomStyle(), CXFA_TextProvider::GetFontIfExists(), fxcrt::WideString::GetInteger(), and CXFA_Font::GetVerticalScale().
|
inline |
Definition at line 76 of file cxfa_textparser.h.
bool CXFA_TextParser::IsSpaceRun | ( | const CFX_CSSComputedStyle * | pStyle | ) | const |
Definition at line 331 of file cxfa_textparser.cpp.
References fxcrt::WideString::EqualsASCIINoCase(), and CFX_CSSComputedStyle::GetCustomStyle().
void CXFA_TextParser::Reset | ( | ) |
Definition at line 64 of file cxfa_textparser.cpp.
|
protected |
Definition at line 268 of file cxfa_textparser.cpp.
|
inline |
Definition at line 64 of file cxfa_textparser.h.
CXFA_TextParser::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED |
Definition at line 61 of file cxfa_textparser.h.