Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpdf_textobject.h>
Classes | |
struct | Item |
Additional Inherited Members | |
Public Types inherited from CPDF_PageObject | |
enum class | Type { kText = 1 , kPath , kImage , kShading , kForm } |
Static Public Attributes inherited from CPDF_PageObject | |
static constexpr int32_t | kNoContentStream = -1 |
Protected Member Functions inherited from CPDF_PageObject | |
void | CopyData (const CPDF_PageObject *pSrcObject) |
Definition at line 21 of file cpdf_textobject.h.
|
explicit |
Definition at line 33 of file cpdf_textobject.cpp.
References CPDF_PageObject::CPDF_PageObject().
Referenced by CPDF_TextObject().
CPDF_TextObject::CPDF_TextObject | ( | ) |
Definition at line 36 of file cpdf_textobject.cpp.
References CPDF_TextObject(), and CPDF_PageObject::kNoContentStream.
|
overridedefault |
|
overridevirtual |
Reimplemented from CPDF_PageObject.
Definition at line 176 of file cpdf_textobject.cpp.
|
overridevirtual |
Reimplemented from CPDF_PageObject.
Definition at line 172 of file cpdf_textobject.cpp.
CFX_PointF CPDF_TextObject::CalcPositionData | ( | float | horz_scale | ) |
Definition at line 259 of file cpdf_textobject.cpp.
std::unique_ptr< CPDF_TextObject > CPDF_TextObject::Clone | ( | ) | const |
Definition at line 150 of file cpdf_textobject.cpp.
size_t CPDF_TextObject::CountChars | ( | ) | const |
Definition at line 68 of file cpdf_textobject.cpp.
size_t CPDF_TextObject::CountItems | ( | ) | const |
Definition at line 40 of file cpdf_textobject.cpp.
int CPDF_TextObject::CountWords | ( | ) | const |
Definition at line 101 of file cpdf_textobject.cpp.
uint32_t CPDF_TextObject::GetCharCode | ( | size_t | index | ) | const |
Definition at line 77 of file cpdf_textobject.cpp.
References CPDF_Font::kInvalidCharCode.
|
inline |
Definition at line 67 of file cpdf_textobject.h.
CPDF_TextObject::Item CPDF_TextObject::GetCharInfo | ( | size_t | index | ) | const |
Definition at line 89 of file cpdf_textobject.cpp.
References CPDF_TextObject::Item::Item(), and CPDF_Font::kInvalidCharCode.
|
inline |
Definition at line 68 of file cpdf_textobject.h.
float CPDF_TextObject::GetCharWidth | ( | uint32_t | charcode | ) | const |
Definition at line 231 of file cpdf_textobject.cpp.
References CPDF_CIDFont::CIDFromCharCode(), GetFontSize(), and CPDF_CIDFont::GetVertWidth().
Definition at line 242 of file cpdf_textobject.cpp.
References CPDF_PageObject::text_state().
Referenced by FPDFTextObj_GetFont(), SetText(), and SetTextMatrix().
float CPDF_TextObject::GetFontSize | ( | ) | const |
Definition at line 246 of file cpdf_textobject.cpp.
References CPDF_PageObject::text_state().
Referenced by FPDFTextObj_GetFontSize(), GetCharWidth(), and GetItemInfo().
CPDF_TextObject::Item CPDF_TextObject::GetItemInfo | ( | size_t | index | ) | const |
Definition at line 44 of file cpdf_textobject.cpp.
References CPDF_CIDFont::CIDFromCharCode(), GetFontSize(), CPDF_Font::kInvalidCharCode, and CPDF_TextObject::Item::m_CharCode.
|
inline |
Definition at line 55 of file cpdf_textobject.h.
CFX_Matrix CPDF_TextObject::GetTextMatrix | ( | ) | const |
Definition at line 180 of file cpdf_textobject.cpp.
Referenced by FPDFPageObj_GetMatrix(), FPDFPageObj_GetRotatedBounds(), and Transform().
TextRenderingMode CPDF_TextObject::GetTextRenderMode | ( | ) | const |
Definition at line 250 of file cpdf_textobject.cpp.
References CPDF_PageObject::text_state().
Referenced by FPDFTextObj_GetTextRenderMode().
|
overridevirtual |
Implements CPDF_PageObject.
Definition at line 159 of file cpdf_textobject.cpp.
References CPDF_PageObject::kText.
WideString CPDF_TextObject::GetWordString | ( | int | nWordIndex | ) | const |
Definition at line 125 of file cpdf_textobject.cpp.
|
overridevirtual |
Reimplemented from CPDF_PageObject.
Definition at line 168 of file cpdf_textobject.cpp.
|
inline |
Definition at line 65 of file cpdf_textobject.h.
void CPDF_TextObject::SetSegments | ( | const ByteString * | pStrs, |
const std::vector< float > & | kernings, | ||
size_t | nSegs ) |
Definition at line 196 of file cpdf_textobject.cpp.
void CPDF_TextObject::SetText | ( | const ByteString & | str | ) |
Definition at line 225 of file cpdf_textobject.cpp.
References GetFont(), and CPDF_PageObject::SetDirty().
Referenced by FPDFText_SetCharcodes(), and FPDFText_SetText().
void CPDF_TextObject::SetTextMatrix | ( | const CFX_Matrix & | matrix | ) |
Definition at line 186 of file cpdf_textobject.cpp.
References CFX_Matrix::a, CFX_Matrix::b, CFX_Matrix::c, CFX_Matrix::d, and GetFont().
Referenced by FPDFPageObj_SetMatrix(), and Transform().
void CPDF_TextObject::SetTextRenderMode | ( | TextRenderingMode | mode | ) |
Definition at line 254 of file cpdf_textobject.cpp.
References CPDF_PageObject::mutable_text_state(), and CPDF_PageObject::SetDirty().
Referenced by FPDFTextObj_SetTextRenderMode().
|
overridevirtual |
Implements CPDF_PageObject.
Definition at line 163 of file cpdf_textobject.cpp.
References GetTextMatrix(), CFX_Matrix::operator*(), CPDF_PageObject::SetDirty(), and SetTextMatrix().