7#ifndef XFA_FWL_CFWL_EVENTTEXTWILLCHANGE_H_
8#define XFA_FWL_CFWL_EVENTTEXTWILLCHANGE_H_
10#include "core/fxcrt/widestring.h"
11#include "xfa/fwl/cfwl_event.h"
15class CFWL_EventTextWillChange
final :
public CFWL_Event {
20 size_t selection_start,
21 size_t selection_end);
31 change_text_ = change_text;
34 previous_text_ = previous_text;
37 selection_start_ = selection_start;
53using pdfium::CFWL_EventTextWillChange;
@ CFX_TxtLineAlignment_Justified
@ CFX_TxtLineAlignment_Right
@ CFX_TxtLineAlignment_Center
@ CFX_TxtLineAlignment_Left
#define FWL_STYLEEXT_EDT_MultiLine
#define FWL_STYLEEXT_EDT_HFar
#define FWL_STYLEEXT_EDT_VAlignMask
#define FWL_STYLEEXT_EDT_HAlignModeMask
#define FWL_STYLEEXT_EDT_HAlignMask
#define FWL_STYLEEXT_EDT_ShowScrollbarFocus
#define FWL_STYLEEXT_EDT_WantReturn
#define FWL_STYLEEXT_EDT_VCenter
#define FWL_STYLEEXT_EDT_OuterScrollbar
#define FWL_STYLEEXT_EDT_AutoHScroll
#define FWL_STYLEEXT_EDT_ReadOnly
#define FWL_STYLEEXT_EDT_VFar
#define FWL_STYLEEXT_EDT_AutoVScroll
#define FWL_STYLEEXT_EDT_Validate
#define FWL_STYLEEXT_EDT_HNear
#define FWL_STYLEEXT_EDT_Password
#define FWL_STYLEEXT_EDT_Justified
#define FWL_STYLEEXT_EDT_CombText
#define FWL_STYLEEXT_EDT_HCenter
StateRestorer(CFGAS_GEGraphics *graphics)
CFX_RenderDevice * GetRenderDevice()
void SetClipRect(const CFX_RectF &rect)
void AddLine(const CFX_PointF &p1, const CFX_PointF &p2)
CFX_Matrix & operator=(const CFX_Matrix &other)=default
CFX_RectF TransformRect(const CFX_RectF &rect) const
CFX_Matrix GetInverse() const
constexpr CFX_Matrix(float a1, float b1, float c1, float d1, float e1, float f1)
void Concat(const CFX_Matrix &right)
void Offset(float dx, float dy)
constexpr CFX_RectF()=default
bool Contains(const CFX_RectF &rt) const
void Intersect(const CFX_RectF &rt)
FX_RECT GetOuterRect() const
void Deflate(float off_left, float off_top, float off_right, float off_bottom)
CFX_RectF & operator=(const CFX_RectF &other)=default
bool Contains(const PointType &p) const
constexpr CFX_RectF(float dst_left, float dst_top, float dst_width, float dst_height)
void Union(const CFX_RectF &rt)
bool SetClip_Rect(const FX_RECT &pRect)
void OnProcessMessage(CFWL_Message *pMessage) override
void SetAliasChar(wchar_t wAlias)
void SetScrollOffset(float fScrollOffset) override
void OnTextWillChange(CFDE_TextEditEngine::TextChange *change) override
FWL_WidgetHit HitTest(const CFX_PointF &point) override
WideString GetText() const
void OnDrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
CFX_RectF GetWidgetRect() override
virtual void SetTextSkipNotify(const WideString &wsText)
bool OnValidate(const WideString &wsText) override
void DrawWidget(CFGAS_GEGraphics *pGraphics, const CFX_Matrix &matrix) override
std::pair< size_t, size_t > GetSelection() const
void Trace(cppgc::Visitor *visitor) const override
bool Paste(const WideString &wsPaste)
void NotifyTextFull() override
void OnTextChanged() override
CFWL_Edit(CFWL_App *app, const Properties &properties, CFWL_Widget *pOuter)
void OnSelChanged() override
std::optional< WideString > Copy()
size_t GetTextLength() const
bool HasSelection() const
std::optional< WideString > Cut()
void SetStates(uint32_t dwStates) override
FWL_Type GetClassID() const override
void SetLimit(int32_t nLimit)
CFX_RectF GetAutosizedWidgetRect() override
void ShowCaret(CFX_RectF *pRect)
void HideCaret(CFX_RectF *pRect)
void PreFinalize() override
virtual void SetText(const WideString &wsText)
void OnCaretChanged() override
void OnProcessEvent(CFWL_Event *pEvent) override
void SetSelectionEnd(size_t selection_end)
size_t GetSelectionEnd() const
void SetSelectionStart(size_t selection_start)
bool GetCancelled() const
void SetChangeText(const WideString &change_text)
void SetCancelled(bool cancelled)
CFWL_EventTextWillChange(CFWL_Widget *pSrcTarget, const WideString &change_text, const WideString &previous_text, size_t selection_start, size_t selection_end)
WideString GetChangeText() const
void SetPreviousText(const WideString &previous_text)
size_t GetSelectionStart() const
WideString GetPreviousText() const
~CFWL_EventTextWillChange() override
WideString previous_text_
CFWL_Widget * GetSrcTarget() const
const uint32_t m_dwKeyCodeOrChar
const MouseCommand m_dwCmd
CFWL_Widget * GetDstTarget() const
void SetPath(const CFGAS_GEPath *pPath)
virtual float GetScrollBarWidth() const =0
virtual float GetFontSize(const CFWL_ThemePart &pThemePart) const =0
virtual CFX_RectF GetUIMargin(const CFWL_ThemePart &pThemePart) const =0
CFX_PTemplate< float > CFX_PointF
CFX_STemplate< float > CFX_SizeF
fxcrt::WideString WideString