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

#include <cfgas_break.h>

+ Inheritance diagram for CFGAS_Break:
+ Collaboration diagram for CFGAS_Break:

Classes

struct  TPO
 

Public Types

enum class  LayoutStyle : uint8_t {
  kNone = 0 , kPagination = 1 << 0 , kExpandTab = 1 << 1 , kSingleLine = 1 << 2 ,
  kCombText = 1 << 3
}
 

Public Member Functions

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
 

Protected Member Functions

 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

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
 
UnownedPtr< CFGAS_BreakLinem_pCurLine
 
int8_t m_iReadyLineIndex = -1
 
CFGAS_BreakLine m_Lines [2]
 

Static Protected Attributes

static const int kMinimumTabWidth = 160000
 
static const float kConversionFactor = 20000.0f
 

Detailed Description

Definition at line 19 of file cfgas_break.h.

Member Enumeration Documentation

◆ LayoutStyle

enum class CFGAS_Break::LayoutStyle : uint8_t
strong
Enumerator
kNone 
kPagination 
kExpandTab 
kSingleLine 
kCombText 

Definition at line 21 of file cfgas_break.h.

Constructor & Destructor Documentation

◆ ~CFGAS_Break()

CFGAS_Break::~CFGAS_Break ( )
virtualdefault

◆ CFGAS_Break()

CFGAS_Break::CFGAS_Break ( Mask< LayoutStyle > dwLayoutStyles)
explicitprotected

Definition at line 20 of file cfgas_break.cpp.

References CFGAS_Break().

Referenced by CFGAS_Break().

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

Member Function Documentation

◆ ClearBreakPieces()

void CFGAS_Break::ClearBreakPieces ( )

Definition at line 158 of file cfgas_break.cpp.

References m_iReadyLineIndex.

◆ CountBreakPieces()

int32_t CFGAS_Break::CountBreakPieces ( ) const

Definition at line 143 of file cfgas_break.cpp.

◆ GetBreakPieceUnstable()

const CFGAS_BreakPiece * CFGAS_Break::GetBreakPieceUnstable ( int32_t index) const

Definition at line 149 of file cfgas_break.cpp.

References HasLine().

+ Here is the call graph for this function:

◆ GetCurrentLineForTesting()

const CFGAS_BreakLine * CFGAS_Break::GetCurrentLineForTesting ( ) const
inline

Definition at line 54 of file cfgas_break.h.

◆ GetLastChar()

CFGAS_Char * CFGAS_Break::GetLastChar ( int32_t index,
bool bOmitChar,
bool bRichText ) const

Definition at line 123 of file cfgas_break.cpp.

Referenced by CFGAS_RTFBreak::EndBreak(), and CFGAS_TxtBreak::EndBreak().

+ Here is the caller graph for this function:

◆ GetLayoutStyles()

Mask< LayoutStyle > CFGAS_Break::GetLayoutStyles ( ) const
inline

Definition at line 34 of file cfgas_break.h.

◆ GetTabWidth()

int32_t CFGAS_Break::GetTabWidth ( ) const
inline

Definition at line 39 of file cfgas_break.h.

References m_iTabWidth.

◆ GetUnifiedCharType()

FX_CHARTYPE CFGAS_Break::GetUnifiedCharType ( FX_CHARTYPE dwType) const
protected

Definition at line 87 of file cfgas_break.cpp.

◆ HasLine()

bool CFGAS_Break::HasLine ( ) const
inlineprotected

Definition at line 70 of file cfgas_break.h.

References m_iReadyLineIndex.

Referenced by CFGAS_RTFBreak::EndBreak(), CFGAS_TxtBreak::EndBreak(), and GetBreakPieceUnstable().

+ Here is the caller graph for this function:

◆ IsGreaterThanLineWidth()

bool CFGAS_Break::IsGreaterThanLineWidth ( int32_t width) const
protected

Definition at line 81 of file cfgas_break.cpp.

References m_iTolerance.

◆ Reset()

void CFGAS_Break::Reset ( )

Definition at line 25 of file cfgas_break.cpp.

◆ SetBreakStatus()

void CFGAS_Break::SetBreakStatus ( )
protected

Definition at line 73 of file cfgas_break.cpp.

References CFGAS_Char::kNone, CFGAS_Char::kPiece, m_dwIdentity, and CFGAS_Char::m_dwStatus.

Referenced by CFGAS_RTFBreak::CFGAS_RTFBreak(), SetFont(), SetFontSize(), SetHorizontalScale(), CFGAS_RTFBreak::SetUserData(), and SetVerticalScale().

+ Here is the caller graph for this function:

◆ SetCharSpace()

void CFGAS_Break::SetCharSpace ( float fCharSpace)

Definition at line 109 of file cfgas_break.cpp.

References FXSYS_roundf(), kConversionFactor, and m_iCharSpace.

+ Here is the call graph for this function:

◆ SetFont()

void CFGAS_Break::SetFont ( RetainPtr< CFGAS_GEFont > pFont)

Definition at line 56 of file cfgas_break.cpp.

References SetBreakStatus().

+ Here is the call graph for this function:

◆ SetFontSize()

void CFGAS_Break::SetFontSize ( float fFontSize)

Definition at line 64 of file cfgas_break.cpp.

References FXSYS_roundf(), m_iFontSize, and SetBreakStatus().

+ Here is the call graph for this function:

◆ SetHorizontalScale()

void CFGAS_Break::SetHorizontalScale ( int32_t iScale)

Definition at line 37 of file cfgas_break.cpp.

References m_iHorizontalScale, and SetBreakStatus().

+ Here is the call graph for this function:

◆ SetLayoutStyles()

void CFGAS_Break::SetLayoutStyles ( Mask< LayoutStyle > dwLayoutStyles)

Definition at line 31 of file cfgas_break.cpp.

◆ SetLineBoundary()

void CFGAS_Break::SetLineBoundary ( float fLineStart,
float fLineEnd )

Definition at line 113 of file cfgas_break.cpp.

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

+ Here is the call graph for this function:

◆ SetLineBreakTolerance()

void CFGAS_Break::SetLineBreakTolerance ( float fTolerance)

Definition at line 105 of file cfgas_break.cpp.

References FXSYS_roundf(), kConversionFactor, and m_iTolerance.

+ Here is the call graph for this function:

◆ SetParagraphBreakChar()

void CFGAS_Break::SetParagraphBreakChar ( wchar_t wch)

Definition at line 99 of file cfgas_break.cpp.

References m_wParagraphBreakChar.

◆ SetTabWidth()

void CFGAS_Break::SetTabWidth ( float fTabWidth)

Definition at line 91 of file cfgas_break.cpp.

References FXSYS_roundf(), kConversionFactor, kMinimumTabWidth, and m_iTabWidth.

+ Here is the call graph for this function:

◆ SetVerticalScale()

void CFGAS_Break::SetVerticalScale ( int32_t iScale)

Definition at line 46 of file cfgas_break.cpp.

References m_iVerticalScale, and SetBreakStatus().

+ Here is the call graph for this function:

Member Data Documentation

◆ kConversionFactor

◆ kMinimumTabWidth

const int CFGAS_Break::kMinimumTabWidth = 160000
staticprotected

Definition at line 64 of file cfgas_break.h.

Referenced by SetTabWidth().

◆ m_bCombText

bool CFGAS_Break::m_bCombText = false
protected

Definition at line 76 of file cfgas_break.h.

◆ m_bSingleLine

bool CFGAS_Break::m_bSingleLine = false
protected

Definition at line 75 of file cfgas_break.h.

◆ m_dwIdentity

uint32_t CFGAS_Break::m_dwIdentity = 0
protected

◆ m_dwLayoutStyles

Mask<LayoutStyle> CFGAS_Break::m_dwLayoutStyles = LayoutStyle::kNone
protected

Definition at line 77 of file cfgas_break.h.

◆ m_eCharType

FX_CHARTYPE CFGAS_Break::m_eCharType = FX_CHARTYPE::kUnknown
protected

Definition at line 74 of file cfgas_break.h.

◆ m_iCharSpace

int32_t CFGAS_Break::m_iCharSpace = 0
protected

Definition at line 87 of file cfgas_break.h.

Referenced by SetCharSpace().

◆ m_iFontSize

int32_t CFGAS_Break::m_iFontSize = 240
protected

Definition at line 82 of file cfgas_break.h.

Referenced by CFGAS_RTFBreak::AppendChar(), and SetFontSize().

◆ m_iHorizontalScale

int32_t CFGAS_Break::m_iHorizontalScale = 100
protected

Definition at line 84 of file cfgas_break.h.

Referenced by SetHorizontalScale().

◆ m_iLineStart

int32_t CFGAS_Break::m_iLineStart = 0
protected

◆ m_iLineWidth

int32_t CFGAS_Break::m_iLineWidth = 2000000
protected

◆ m_iReadyLineIndex

int8_t CFGAS_Break::m_iReadyLineIndex = -1
protected

Definition at line 90 of file cfgas_break.h.

Referenced by ClearBreakPieces(), and HasLine().

◆ m_iTabWidth

int32_t CFGAS_Break::m_iTabWidth = 720000
protected

Definition at line 83 of file cfgas_break.h.

Referenced by GetTabWidth(), and SetTabWidth().

◆ m_iTolerance

int32_t CFGAS_Break::m_iTolerance = 0
protected

Definition at line 86 of file cfgas_break.h.

Referenced by IsGreaterThanLineWidth(), and SetLineBreakTolerance().

◆ m_iVerticalScale

int32_t CFGAS_Break::m_iVerticalScale = 100
protected

Definition at line 85 of file cfgas_break.h.

Referenced by SetVerticalScale().

◆ m_Lines

CFGAS_BreakLine CFGAS_Break::m_Lines[2]
protected

Definition at line 91 of file cfgas_break.h.

◆ m_pCurLine

UnownedPtr<CFGAS_BreakLine> CFGAS_Break::m_pCurLine
protected

Definition at line 89 of file cfgas_break.h.

◆ m_pFont

RetainPtr<CFGAS_GEFont> CFGAS_Break::m_pFont
protected

Definition at line 88 of file cfgas_break.h.

◆ m_wParagraphBreakChar

wchar_t CFGAS_Break::m_wParagraphBreakChar = L'\n'
protected

Definition at line 81 of file cfgas_break.h.

Referenced by CFGAS_TxtBreak::AppendChar(), and SetParagraphBreakChar().


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