Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
Loading...
Searching...
No Matches
CXFA_TextParser Class Reference

#include <cxfa_textparser.h>

+ Inheritance diagram for CXFA_TextParser:
+ Collaboration diagram for CXFA_TextParser:

Classes

class  Context
 

Public Member Functions

virtual ~CXFA_TextParser ()
 
void Trace (cppgc::Visitor *visitor) const
 
void Reset ()
 
void DoParse (const CFX_XMLNode *pXMLContainer, CXFA_TextProvider *pTextProvider)
 
RetainPtr< CFX_CSSComputedStyleCreateRootStyle (CXFA_TextProvider *pTextProvider)
 
RetainPtr< CFX_CSSComputedStyleComputeStyle (const CFX_XMLNode *pXMLNode, RetainPtr< const CFX_CSSComputedStyle > pParentStyle)
 
bool IsParsed () const
 
XFA_AttributeValue GetVAlign (CXFA_TextProvider *pTextProvider) const
 
float GetTabInterval (const CFX_CSSComputedStyle *pStyle) const
 
int32_t CountTabs (const CFX_CSSComputedStyle *pStyle) const
 
bool IsSpaceRun (const CFX_CSSComputedStyle *pStyle) const
 
bool GetTabstops (const CFX_CSSComputedStyle *pStyle, CXFA_TextTabstopsContext *pTabstopContext)
 
RetainPtr< CFGAS_GEFontGetFont (CXFA_FFDoc *doc, CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
float GetFontSize (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
int32_t GetHorScale (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle, const CFX_XMLNode *pXMLNode) const
 
int32_t GetVerScale (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
int32_t GetUnderline (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
XFA_AttributeValue GetUnderlinePeriod (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
int32_t GetLinethrough (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
FX_ARGB GetColor (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
float GetBaseline (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle) const
 
float GetLineHeight (CXFA_TextProvider *pTextProvider, const CFX_CSSComputedStyle *pStyle, bool bFirst, float fVerScale) const
 
absl::optional< WideStringGetEmbeddedObj (const CXFA_TextProvider *pTextProvider, const CFX_XMLNode *pXMLNode)
 
ContextGetParseContextFromMap (const CFX_XMLNode *pXMLNode)
 

Public Attributes

 CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED
 

Protected Member Functions

 CXFA_TextParser ()
 
bool TagValidate (const WideString &str) const
 

Detailed Description

Definition at line 35 of file cxfa_textparser.h.

Constructor & Destructor Documentation

◆ ~CXFA_TextParser()

CXFA_TextParser::~CXFA_TextParser ( )
virtualdefault

◆ CXFA_TextParser()

CXFA_TextParser::CXFA_TextParser ( )
protecteddefault

Member Function Documentation

◆ ComputeStyle()

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().

+ Here is the call graph for this function:

◆ CountTabs()

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().

+ Here is the call graph for this function:

◆ CreateRootStyle()

◆ DoParse()

void CXFA_TextParser::DoParse ( const CFX_XMLNode * pXMLContainer,
CXFA_TextProvider * pTextProvider )

Definition at line 220 of file cxfa_textparser.cpp.

◆ GetBaseline()

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.

+ Here is the call graph for this function:

◆ GetColor()

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().

+ Here is the call graph for this function:

◆ GetEmbeddedObj()

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().

+ Here is the call graph for this function:

◆ GetFont()

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=().

+ Here is the call graph for this function:

◆ GetFontSize()

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().

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

◆ GetHorScale()

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().

+ Here is the call graph for this function:

◆ GetLineHeight()

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().

+ Here is the call graph for this function:

◆ GetLinethrough()

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.

+ Here is the call graph for this function:

◆ GetParseContextFromMap()

CXFA_TextParser::Context * CXFA_TextParser::GetParseContextFromMap ( const CFX_XMLNode * pXMLNode)

Definition at line 532 of file cxfa_textparser.cpp.

◆ GetTabInterval()

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().

+ Here is the call graph for this function:

◆ GetTabstops()

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().

+ Here is the call graph for this function:

◆ GetUnderline()

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.

+ Here is the call graph for this function:

◆ GetUnderlinePeriod()

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().

+ Here is the call graph for this function:

◆ GetVAlign()

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().

+ Here is the call graph for this function:

◆ GetVerScale()

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().

+ Here is the call graph for this function:

◆ IsParsed()

bool CXFA_TextParser::IsParsed ( ) const
inline

Definition at line 76 of file cxfa_textparser.h.

◆ IsSpaceRun()

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().

+ Here is the call graph for this function:

◆ Reset()

void CXFA_TextParser::Reset ( )

Definition at line 64 of file cxfa_textparser.cpp.

◆ TagValidate()

bool CXFA_TextParser::TagValidate ( const WideString & str) const
protected

Definition at line 268 of file cxfa_textparser.cpp.

◆ Trace()

void CXFA_TextParser::Trace ( cppgc::Visitor * visitor) const
inline

Definition at line 64 of file cxfa_textparser.h.

Member Data Documentation

◆ CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

CXFA_TextParser::CONSTRUCT_VIA_MAKE_GARBAGE_COLLECTED

Definition at line 61 of file cxfa_textparser.h.


The documentation for this class was generated from the following files: