Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfgas_rtfbreak.h>
Public Types | |
enum class | LineAlignment : uint8_t { Left = 0 , Center , Right , Justified , Distributed } |
Public Types inherited from CFGAS_Break | |
enum class | LayoutStyle : uint8_t { kNone = 0 , kPagination = 1 << 0 , kExpandTab = 1 << 1 , kSingleLine = 1 << 2 , kCombText = 1 << 3 } |
Additional Inherited Members | |
Protected Member Functions inherited from CFGAS_Break | |
CFGAS_Break (Mask< LayoutStyle > dwLayoutStyles) | |
void | SetBreakStatus () |
bool | HasLine () const |
bool | IsGreaterThanLineWidth (int32_t width) const |
FX_CHARTYPE | GetUnifiedCharType (FX_CHARTYPE dwType) const |
Protected Attributes inherited from CFGAS_Break | |
FX_CHARTYPE | m_eCharType = FX_CHARTYPE::kUnknown |
bool | m_bSingleLine = false |
bool | m_bCombText = false |
Mask< LayoutStyle > | m_dwLayoutStyles = LayoutStyle::kNone |
uint32_t | m_dwIdentity = 0 |
int32_t | m_iLineStart = 0 |
int32_t | m_iLineWidth = 2000000 |
wchar_t | m_wParagraphBreakChar = L'\n' |
int32_t | m_iFontSize = 240 |
int32_t | m_iTabWidth = 720000 |
int32_t | m_iHorizontalScale = 100 |
int32_t | m_iVerticalScale = 100 |
int32_t | m_iTolerance = 0 |
int32_t | m_iCharSpace = 0 |
RetainPtr< CFGAS_GEFont > | m_pFont |
UnownedPtr< CFGAS_BreakLine > | m_pCurLine |
int8_t | m_iReadyLineIndex = -1 |
CFGAS_BreakLine | m_Lines [2] |
Static Protected Attributes inherited from CFGAS_Break | |
static const int | kMinimumTabWidth = 160000 |
static const float | kConversionFactor = 20000.0f |
Definition at line 22 of file cfgas_rtfbreak.h.
|
strong |
Enumerator | |
---|---|
Left | |
Center | |
Right | |
Justified | |
Distributed |
Definition at line 24 of file cfgas_rtfbreak.h.
|
explicit |
Definition at line 26 of file cfgas_rtfbreak.cpp.
References CFGAS_Break::SetBreakStatus().
|
overridedefault |
void CFGAS_RTFBreak::AddPositionedTab | ( | float | fTabPos | ) |
Definition at line 41 of file cfgas_rtfbreak.cpp.
References FXSYS_roundf(), CFGAS_Break::kConversionFactor, CFGAS_Break::m_iLineStart, and CFGAS_Break::m_iLineWidth.
CFGAS_Char::BreakType CFGAS_RTFBreak::AppendChar | ( | wchar_t | wch | ) |
Definition at line 70 of file cfgas_rtfbreak.cpp.
References EndBreak(), CFGAS_Char::kLine, CFGAS_Char::kNone, CFGAS_Break::m_dwIdentity, CFGAS_Char::m_dwIdentity, CFGAS_Break::m_iFontSize, and CFGAS_Char::m_iFontSize.
CFGAS_Char::BreakType CFGAS_RTFBreak::EndBreak | ( | CFGAS_Char::BreakType | dwStatus | ) |
Definition at line 296 of file cfgas_rtfbreak.cpp.
References Distributed, CFGAS_Break::GetLastChar(), CFGAS_Break::HasLine(), Justified, CFGAS_Char::kNone, CFGAS_Char::kPiece, CFGAS_Break::m_dwIdentity, and CFGAS_Char::m_dwStatus.
Referenced by AppendChar().
size_t CFGAS_RTFBreak::GetDisplayPos | ( | const CFGAS_TextPiece * | pPiece, |
std::vector< TextCharPos > * | pCharPos ) const |
Definition at line 705 of file cfgas_rtfbreak.cpp.
References CFX_RectF::CFX_RectF(), CFGAS_TextPiece::fFontSize, FXSYS_roundf(), pdfium::arabic::GetFormChar(), pdfium::unicode::GetMirrorChar(), CFGAS_TextPiece::iBidiLevel, CFGAS_TextPiece::iChars, CFGAS_TextPiece::iHorScale, CFGAS_TextPiece::iVerScale, pdfium::unicode::kZeroWidthNoBreakSpace, CFX_RectF::left, TextCharPos::m_AdjustMatrix, TextCharPos::m_bGlyphAdjust, TextCharPos::m_FontCharWidth, TextCharPos::m_GlyphIndex, CFX_RectF::right(), CFGAS_TextPiece::rtPiece, and CFX_RectF::top.
|
inline |
Definition at line 37 of file cfgas_rtfbreak.h.
void CFGAS_RTFBreak::SetLineStartPos | ( | float | fLinePos | ) |
Definition at line 34 of file cfgas_rtfbreak.cpp.
References FXSYS_roundf(), CFGAS_Break::kConversionFactor, CFGAS_Break::m_iLineStart, and CFGAS_Break::m_iLineWidth.
void CFGAS_RTFBreak::SetUserData | ( | const RetainPtr< CFGAS_TextUserData > & | pUserData | ) |
Definition at line 51 of file cfgas_rtfbreak.cpp.
References CFGAS_Break::SetBreakStatus().