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
CPDF_LinkExtract Class Reference

#include <cpdf_linkextract.h>

Inheritance diagram for CPDF_LinkExtract:
Collaboration diagram for CPDF_LinkExtract:

Classes

struct  Range

Public Member Functions

 CPDF_LinkExtract (const CPDF_TextPage *pTextPage)
 ~CPDF_LinkExtract ()
void ExtractLinks ()
size_t CountLinks () const
WideString GetURL (size_t index) const
std::vector< CFX_FloatRectGetRects (size_t index) const
std::optional< RangeGetTextRange (size_t index) const

Protected Member Functions

std::optional< LinkCheckWebLink (const WideString &str)
bool CheckMailLink (WideString *str)

Protected Attributes

UnownedPtr< const CPDF_TextPage > const m_pTextPage
std::vector< Linkm_LinkArray

Detailed Description

Definition at line 22 of file cpdf_linkextract.h.

Constructor & Destructor Documentation

◆ CPDF_LinkExtract()

CPDF_LinkExtract::CPDF_LinkExtract ( const CPDF_TextPage * pTextPage)
explicit

Definition at line 110 of file cpdf_linkextract.cpp.

References CPDF_LinkExtract().

Referenced by CPDF_LinkExtract(), and CPDF_TestLinkExtract::CPDF_TestLinkExtract().

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

◆ ~CPDF_LinkExtract()

CPDF_LinkExtract::~CPDF_LinkExtract ( )
default

Member Function Documentation

◆ CheckMailLink()

bool CPDF_LinkExtract::CheckMailLink ( WideString * str)
protected

Definition at line 235 of file cpdf_linkextract.cpp.

References FXSYS_iswalnum(), fxcrt::operator+(), and fxcrt::WideString::operator=().

Referenced by ExtractLinks(), and TEST().

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

◆ CheckWebLink()

std::optional< CPDF_LinkExtract::Link > CPDF_LinkExtract::CheckWebLink ( const WideString & str)
protected

Definition at line 181 of file cpdf_linkextract.cpp.

References fxcrt::WideString::MakeLower().

Referenced by ExtractLinks(), and TEST().

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

◆ CountLinks()

size_t CPDF_LinkExtract::CountLinks ( ) const
inline

Definition at line 33 of file cpdf_linkextract.h.

◆ ExtractLinks()

void CPDF_LinkExtract::ExtractLinks ( )

Definition at line 115 of file cpdf_linkextract.cpp.

References CheckMailLink(), CheckWebLink(), CPDF_TextPage::kGenerated, CPDF_TextPage::kHyphen, CPDF_TextPage::kNormal, CPDF_TextPage::CharInfo::m_CharType, and CPDF_TextPage::CharInfo::m_Unicode.

Here is the call graph for this function:

◆ GetRects()

std::vector< CFX_FloatRect > CPDF_LinkExtract::GetRects ( size_t index) const

Definition at line 308 of file cpdf_linkextract.cpp.

◆ GetTextRange()

std::optional< CPDF_LinkExtract::Range > CPDF_LinkExtract::GetTextRange ( size_t index) const

Definition at line 316 of file cpdf_linkextract.cpp.

◆ GetURL()

WideString CPDF_LinkExtract::GetURL ( size_t index) const

Definition at line 303 of file cpdf_linkextract.cpp.

Member Data Documentation

◆ m_LinkArray

std::vector<Link> CPDF_LinkExtract::m_LinkArray
protected

Definition at line 47 of file cpdf_linkextract.h.

◆ m_pTextPage

UnownedPtr<const CPDF_TextPage> const CPDF_LinkExtract::m_pTextPage
protected

Definition at line 46 of file cpdf_linkextract.h.


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