7#ifndef XFA_FGAS_LAYOUT_CFGAS_RTFBREAK_H_
8#define XFA_FGAS_LAYOUT_CFGAS_RTFBREAK_H_
13#include "core/fxcrt/fx_coordinates.h"
14#include "core/fxcrt/fx_unicode.h"
15#include "core/fxcrt/retain_ptr.h"
16#include "xfa/fgas/layout/cfgas_break.h"
19class CFGAS_TextUserData;
45 std::vector<TextCharPos>* pCharPos)
const;
50 void AppendChar_Combination(
CFGAS_Char* pCurChar);
55 bool GetPositionedTab(int32_t* iTabPos)
const;
57 int32_t GetBreakPos(std::vector<CFGAS_Char>& tca,
68 void EndBreakAlignment(
const std::deque<TPO>& tpos,
72 bool m_bPagination =
false;
74 std::vector<int32_t> m_PositionedTabs;
75 RetainPtr<CFGAS_TextUserData> m_pUserData;
int32_t GetLineEnd() const
void IncrementArabicCharCount()
void DecrementArabicCharCount()
int32_t GetStartChar() const
void SetVerticalScale(int32_t scale)
void SetStatus(CFGAS_Char::BreakType status)
void SetBidiLevel(int32_t level)
void SetCharCount(int32_t count)
void SetStartChar(int32_t pos)
int32_t GetBidiPos() const
void IncrementWidth(int32_t width)
void IncrementStartPos(int32_t count)
void SetBidiPos(int32_t pos)
void SetFontSize(int32_t font_size)
void SetHorizontalScale(int32_t scale)
void SetWidth(int32_t width)
void SetUserData(const RetainPtr< CFGAS_TextUserData > &user_data)
int32_t m_iHorizontalScale
CFGAS_Char * GetLastChar(int32_t index, bool bOmitChar, bool bRichText) const
wchar_t m_wParagraphBreakChar
static const float kConversionFactor
int16_t vertical_scale() const
int16_t horizonal_scale() const
FX_LINEBREAKTYPE m_eLineBreakType
uint16_t char_code() const
void SetUserData(const RetainPtr< CFGAS_TextUserData > &pUserData)
size_t GetDisplayPos(const CFGAS_TextPiece *pPiece, std::vector< TextCharPos > *pCharPos) const
void SetAlignment(LineAlignment align)
CFGAS_Char::BreakType AppendChar(wchar_t wch)
CFGAS_RTFBreak(Mask< LayoutStyle > dwLayoutStyles)
~CFGAS_RTFBreak() override
CFGAS_Char::BreakType EndBreak(CFGAS_Char::BreakType dwStatus)
void SetLineStartPos(float fLinePos)
void AddPositionedTab(float fTabPos)
CFX_RectF(const CFX_RectF &other)=default
int FXSYS_roundf(float f)
wchar_t GetFormChar(const CFGAS_Char *cur, const CFGAS_Char *prev, const CFGAS_Char *next)
wchar_t GetFormChar(wchar_t wch, wchar_t prev, wchar_t next)
wchar_t GetMirrorChar(wchar_t wch)
constexpr wchar_t kZeroWidthNoBreakSpace
constexpr wchar_t kLineSeparator
constexpr wchar_t kParagraphSeparator