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
CFGAS_RTFBreak Class Referencefinal

#include <cfgas_rtfbreak.h>

Inheritance diagram for CFGAS_RTFBreak:
Collaboration diagram for CFGAS_RTFBreak:

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
}

Public Member Functions

 CFGAS_RTFBreak (Mask< LayoutStyle > dwLayoutStyles)
 ~CFGAS_RTFBreak () override
void SetLineStartPos (float fLinePos)
void SetAlignment (LineAlignment align)
void SetUserData (const RetainPtr< CFGAS_TextUserData > &pUserData)
void AddPositionedTab (float fTabPos)
CFGAS_Char::BreakType EndBreak (CFGAS_Char::BreakType dwStatus)
size_t GetDisplayPos (const CFGAS_TextPiece *pPiece, pdfium::span< TextCharPos > pCharPos) const
CFGAS_Char::BreakType AppendChar (wchar_t wch)
Public Member Functions inherited from CFGAS_Break
virtual ~CFGAS_Break ()
void Reset ()
void SetLayoutStyles (Mask< LayoutStyle > dwLayoutStyles)
Mask< LayoutStyleGetLayoutStyles () const
void SetFont (RetainPtr< CFGAS_GEFont > pFont)
void SetFontSize (float fFontSize)
void SetTabWidth (float fTabWidth)
int32_t GetTabWidth () const
void SetHorizontalScale (int32_t iScale)
void SetVerticalScale (int32_t iScale)
void SetLineBreakTolerance (float fTolerance)
void SetLineBoundary (float fLineStart, float fLineEnd)
void SetCharSpace (float fCharSpace)
void SetParagraphBreakChar (wchar_t wch)
int32_t CountBreakPieces () const
const CFGAS_BreakPieceGetBreakPieceUnstable (int32_t index) const
void ClearBreakPieces ()
CFGAS_CharGetLastChar (int32_t index, bool bOmitChar, bool bRichText) const
const CFGAS_BreakLineGetCurrentLineForTesting () const

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< LayoutStylem_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_GEFontm_pFont
int8_t m_iReadyLineIndex = -1
std::array< CFGAS_BreakLine, 2 > m_Lines
UnownedPtr< CFGAS_BreakLinem_pCurLine
Static Protected Attributes inherited from CFGAS_Break
static const int kMinimumTabWidth = 160000
static const float kConversionFactor = 20000.0f

Detailed Description

Definition at line 23 of file cfgas_rtfbreak.h.

Member Enumeration Documentation

◆ LineAlignment

enum class CFGAS_RTFBreak::LineAlignment : uint8_t
strong
Enumerator
Left 
Center 
Right 
Justified 
Distributed 

Definition at line 25 of file cfgas_rtfbreak.h.

Constructor & Destructor Documentation

◆ CFGAS_RTFBreak()

CFGAS_RTFBreak::CFGAS_RTFBreak ( Mask< LayoutStyle > dwLayoutStyles)
explicit

Definition at line 27 of file cfgas_rtfbreak.cpp.

References CFGAS_Break::SetBreakStatus().

Here is the call graph for this function:

◆ ~CFGAS_RTFBreak()

CFGAS_RTFBreak::~CFGAS_RTFBreak ( )
overridedefault

Member Function Documentation

◆ AddPositionedTab()

void CFGAS_RTFBreak::AddPositionedTab ( float fTabPos)

Definition at line 42 of file cfgas_rtfbreak.cpp.

References FXSYS_roundf(), CFGAS_Break::kConversionFactor, CFGAS_Break::m_iLineStart, and CFGAS_Break::m_iLineWidth.

Here is the call graph for this function:

◆ AppendChar()

CFGAS_Char::BreakType CFGAS_RTFBreak::AppendChar ( wchar_t wch)

Definition at line 71 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.

Here is the call graph for this function:

◆ EndBreak()

CFGAS_Char::BreakType CFGAS_RTFBreak::EndBreak ( CFGAS_Char::BreakType dwStatus)

Definition at line 297 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().

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

◆ GetDisplayPos()

◆ SetAlignment()

void CFGAS_RTFBreak::SetAlignment ( LineAlignment align)
inline

Definition at line 38 of file cfgas_rtfbreak.h.

◆ SetLineStartPos()

void CFGAS_RTFBreak::SetLineStartPos ( float fLinePos)

Definition at line 35 of file cfgas_rtfbreak.cpp.

References FXSYS_roundf(), CFGAS_Break::kConversionFactor, CFGAS_Break::m_iLineStart, and CFGAS_Break::m_iLineWidth.

Here is the call graph for this function:

◆ SetUserData()

void CFGAS_RTFBreak::SetUserData ( const RetainPtr< CFGAS_TextUserData > & pUserData)

Definition at line 52 of file cfgas_rtfbreak.cpp.

References CFGAS_Break::SetBreakStatus().

Here is the call graph for this function:

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