![]() |
Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cpwl_edit.h>
Public Member Functions | |
CPWL_Edit (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData) | |
~CPWL_Edit () override | |
bool | RepositionChildWnd () override |
CFX_FloatRect | GetClientRect () const override |
void | DrawThisAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) override |
bool | OnMouseWheel (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point, const CFX_Vector &delta) override |
bool | OnKeyDown (FWL_VKEYCODE nKeyCode, Mask< FWL_EVENTFLAG > nFlag) override |
bool | OnChar (uint16_t nChar, Mask< FWL_EVENTFLAG > nFlag) override |
CFX_FloatRect | GetFocusRect () const override |
void | OnSetFocus () override |
void | OnKillFocus () override |
void | OnCreated () override |
void | OnDestroy () override |
bool | OnLButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnLButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnLButtonDblClk (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnRButtonUp (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
bool | OnMouseMove (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) override |
void | SetScrollInfo (const PWL_SCROLL_INFO &info) override |
void | SetScrollPosition (float pos) override |
void | ScrollWindowVertically (float pos) override |
void | CreateChildWnd (const CreateParams &cp) override |
void | SetFontSize (float fFontSize) override |
float | GetFontSize () const override |
void | SetCursor () override |
WideString | GetText () override |
WideString | GetSelectedText () override |
void | ReplaceAndKeepSelection (const WideString &text) override |
void | ReplaceSelection (const WideString &text) override |
bool | SelectAllText () override |
bool | CanUndo () override |
bool | CanRedo () override |
bool | Undo () override |
bool | Redo () override |
void | SetSelection (int32_t nStartChar, int32_t nEndChar) |
std::pair< int32_t, int32_t > | GetSelection () const |
void | ClearSelection () |
CFX_PointF | GetScrollPos () const |
void | SetScrollPos (const CFX_PointF &point) |
void | SetCharSet (FX_Charset nCharSet) |
FX_Charset | GetCharSet () const |
void | SetReadyToInput () |
void | SetAlignFormatVerticalCenter () |
void | SetCharArray (int32_t nCharArray) |
void | SetLimitChar (int32_t nLimitChar) |
bool | CanSelectAll () const |
bool | CanCopy () const |
bool | CanCut () const |
void | CutText () |
void | SetText (const WideString &csText) |
bool | IsTextFull () const |
bool | SetCaret (bool bVisible, const CFX_PointF &ptHead, const CFX_PointF &ptFoot) |
Public Member Functions inherited from CPWL_Wnd | |
CPWL_Wnd (const CreateParams &cp, std::unique_ptr< IPWL_FillerNotify::PerWindowData > pAttachedData) | |
virtual | ~CPWL_Wnd () |
virtual bool | InvalidateRect (const CFX_FloatRect *pRect) |
virtual bool | OnRButtonDown (Mask< FWL_EVENTFLAG > nFlag, const CFX_PointF &point) |
virtual void | NotifyLButtonDown (CPWL_Wnd *child, const CFX_PointF &pos) |
virtual void | NotifyLButtonUp (CPWL_Wnd *child, const CFX_PointF &pos) |
virtual void | NotifyMouseMove (CPWL_Wnd *child, const CFX_PointF &pos) |
virtual void | SetFocus () |
virtual void | KillFocus () |
virtual bool | SetVisible (bool bVisible) |
void | AddChild (std::unique_ptr< CPWL_Wnd > pWnd) |
void | RemoveChild (CPWL_Wnd *pWnd) |
void | Realize () |
void | Destroy () |
bool | Move (const CFX_FloatRect &rcNew, bool bReset, bool bRefresh) |
void | InvalidateProvider (ProviderIface *provider) |
void | DrawAppearance (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device) |
int32_t | GetBorderWidth () const |
CFX_FloatRect | GetWindowRect () const |
bool | IsVisible () const |
bool | HasFlag (uint32_t dwFlags) const |
void | RemoveFlag (uint32_t dwFlags) |
void | SetClipRect (const CFX_FloatRect &rect) |
IPWL_FillerNotify::PerWindowData * | GetAttachedData () const |
std::unique_ptr< IPWL_FillerNotify::PerWindowData > | CloneAttachedData () const |
std::vector< UnownedPtr< CPWL_Wnd > > | GetAncestors () |
bool | WndHitTest (const CFX_PointF &point) const |
bool | ClientHitTest (const CFX_PointF &point) const |
bool | IsCaptureMouse () const |
bool | IsFocused () const |
bool | IsReadOnly () const |
void | SetTransparency (int32_t nTransparency) |
CFX_Matrix | GetWindowMatrix () const |
Public Member Functions inherited from fxcrt::Observable | |
Observable () | |
Observable (const Observable &that)=delete | |
Observable & | operator= (const Observable &that)=delete |
~Observable () | |
void | AddObserver (ObserverIface *pObserver) |
void | RemoveObserver (ObserverIface *pObserver) |
void | NotifyObservers () |
Static Public Member Functions | |
static float | GetCharArrayAutoFontSize (const CPDF_Font *pFont, const CFX_FloatRect &rcPlate, int32_t nCharArray) |
Static Public Member Functions inherited from CPWL_Wnd | |
static bool | IsSHIFTKeyDown (Mask< FWL_EVENTFLAG > nFlag) |
static bool | IsCTRLKeyDown (Mask< FWL_EVENTFLAG > nFlag) |
static bool | IsALTKeyDown (Mask< FWL_EVENTFLAG > nFlag) |
static bool | IsMETAKeyDown (Mask< FWL_EVENTFLAG > nFlag) |
static bool | IsPlatformShortcutKey (Mask< FWL_EVENTFLAG > nFlag) |
Definition at line 29 of file cpwl_edit.h.
CPWL_Edit::CPWL_Edit | ( | const CreateParams & | cp, |
std::unique_ptr< IPWL_FillerNotify::PerWindowData > | pAttachedData ) |
Definition at line 32 of file cpwl_edit.cpp.
References CPWL_Edit(), CPWL_Wnd::GetCreationParams(), and IPWL_FillerNotify::kVBeam.
Referenced by CPWL_Edit().
|
override |
Definition at line 40 of file cpwl_edit.cpp.
bool CPWL_Edit::CanCopy | ( | ) | const |
Definition at line 93 of file cpwl_edit.cpp.
Referenced by CanCut().
bool CPWL_Edit::CanCut | ( | ) | const |
Definition at line 97 of file cpwl_edit.cpp.
References CanCopy(), and CPWL_Wnd::IsReadOnly().
Referenced by CutText().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 834 of file cpwl_edit.cpp.
bool CPWL_Edit::CanSelectAll | ( | ) | const |
Definition at line 89 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 830 of file cpwl_edit.cpp.
void CPWL_Edit::ClearSelection | ( | ) |
Definition at line 793 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 505 of file cpwl_edit.cpp.
References CPWL_Wnd::IsReadOnly().
void CPWL_Edit::CutText | ( | ) |
Definition at line 101 of file cpwl_edit.cpp.
References CanCut().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 163 of file cpwl_edit.cpp.
References CFX_Path::AppendPoint(), CFX_RenderDevice::DrawPath(), CPWL_Wnd::DrawThisAppearance(), CFX_FillRenderOptions::EvenOddOptions(), CPWL_Wnd::GetBorderColor(), CPWL_Wnd::GetBorderDash(), CPWL_Wnd::GetBorderStyle(), CPWL_Wnd::GetBorderWidth(), GetClientRect(), CPWL_Wnd::HasFlag(), kDash, CFX_Path::Point::kLine, CFX_Path::Point::kMove, kSolid, CFX_FloatRect::left, CFX_GraphStateData::m_DashPhase, CFX_GraphStateData::m_LineWidth, CFX_FloatRect::operator=(), and CFX_FloatRect::right.
|
static |
Definition at line 275 of file cpwl_edit.cpp.
References CPDF_Font::GetFontBBox(), CFX_FloatRect::Height(), FX_RECT::Height(), CPDF_Font::IsStandardFont(), CFX_FloatRect::Width(), and FX_RECT::Width().
Referenced by CPDFSDK_AppStream::SetAsTextField(), and SetCharArray().
|
inline |
Definition at line 82 of file cpwl_edit.h.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 75 of file cpwl_edit.cpp.
References CPWL_Wnd::GetBorderWidth(), CPWL_Wnd::GetInnerBorderWidth(), CPWL_Wnd::GetVScrollBar(), CPWL_Wnd::GetWindowRect(), CPWL_Wnd::IsVisible(), CPWL_ScrollBar::kWidth, and CFX_FloatRect::right.
Referenced by DrawThisAppearance(), RepositionChildWnd(), and SetCharArray().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 320 of file cpwl_edit.cpp.
References CFX_FloatRect::CFX_FloatRect().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 532 of file cpwl_edit.cpp.
Referenced by OnMouseWheel().
CFX_PointF CPWL_Edit::GetScrollPos | ( | ) | const |
Definition at line 802 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 474 of file cpwl_edit.cpp.
std::pair< int32_t, int32_t > CPWL_Edit::GetSelection | ( | ) | const |
Definition at line 789 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::GetActionData().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 781 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::GetActionData(), and CFFL_TextField::GetActionData().
bool CPWL_Edit::IsTextFull | ( | ) | const |
Definition at line 271 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::GetActionData(), and CFFL_TextField::GetActionData().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 396 of file cpwl_edit.cpp.
References IPVT_FontMap::CharSetFromUnicode(), IPWL_FillerNotify::BeforeKeystrokeResult::exit, kDefault, pdfium::ascii::kReturn, fxcrt::WideString::operator+=(), and IPWL_FillerNotify::BeforeKeystrokeResult::rc.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 107 of file cpwl_edit.cpp.
References CPWL_Wnd::GetCreationParams(), CPWL_Wnd::GetVScrollBar(), CPWL_Wnd::GetWindowRect(), CPWL_Wnd::RemoveFlag(), SetFontSize(), and CPWL_Wnd::SetTransparency().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 457 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 329 of file cpwl_edit.cpp.
References IPWL_FillerNotify::BeforeKeystrokeResult::exit, FWL_VKEY_Delete, and IPWL_FillerNotify::BeforeKeystrokeResult::rc.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 235 of file cpwl_edit.cpp.
References CPWL_Wnd::IsVisible(), kANSI, and CPWL_Wnd::SetVisible().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 706 of file cpwl_edit.cpp.
References CPWL_Wnd::OnLButtonDblClk().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 677 of file cpwl_edit.cpp.
References CPWL_Wnd::ClientHitTest(), CPWL_Wnd::HasFlag(), CPWL_Wnd::InvalidateRect(), CPWL_Wnd::OnLButtonDown(), and CPWL_Wnd::SetCapture().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 692 of file cpwl_edit.cpp.
References CPWL_Wnd::ClientHitTest(), CPWL_Wnd::IsFocused(), CPWL_Wnd::OnLButtonUp(), CPWL_Wnd::ReleaseCapture(), and CPWL_Wnd::SetFocus().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 728 of file cpwl_edit.cpp.
References CPWL_Wnd::OnMouseMove().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 442 of file cpwl_edit.cpp.
References GetFontSize(), CPWL_Wnd::HasFlag(), and SetScrollPos().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 715 of file cpwl_edit.cpp.
References CPWL_Wnd::ClientHitTest(), CPWL_Wnd::HasFlag(), CPWL_Wnd::OnRButtonUp(), and CPWL_Wnd::SetFocus().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 217 of file cpwl_edit.cpp.
References CPWL_Wnd::ProviderIface::OnSetFocusForEdit().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 842 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 478 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 482 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::SetActionData(), and CFFL_TextField::SetActionData().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 49 of file cpwl_edit.cpp.
References CFX_FloatRect::CFX_FloatRect(), CFX_FloatRect::bottom, GetClientRect(), CPWL_Wnd::HasFlag(), CFX_FloatRect::Inflate(), CFX_FloatRect::IsEmpty(), CPWL_ScrollBar::kWidth, CPWL_Wnd::Move(), CFX_FloatRect::Normalize(), CFX_FloatRect::right, and CFX_FloatRect::top.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 501 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 486 of file cpwl_edit.cpp.
void CPWL_Edit::SetAlignFormatVerticalCenter | ( | ) |
Definition at line 84 of file cpwl_edit.cpp.
bool CPWL_Edit::SetCaret | ( | bool | bVisible, |
const CFX_PointF & | ptHead, | ||
const CFX_PointF & | ptFoot ) |
Definition at line 767 of file cpwl_edit.cpp.
void CPWL_Edit::SetCharArray | ( | int32_t | nCharArray | ) |
Definition at line 290 of file cpwl_edit.cpp.
References GetCharArrayAutoFontSize(), GetClientRect(), CPWL_Wnd::GetFontMap(), IPVT_FontMap::GetPDFFont(), and CPWL_Wnd::HasFlag().
|
inline |
Definition at line 81 of file cpwl_edit.h.
Referenced by CFFL_ComboBox::OnSetFocusForEdit(), and CFFL_TextField::OnSetFocusForEdit().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 466 of file cpwl_edit.cpp.
References CPWL_Wnd::GetFillerNotify(), CPWL_Wnd::IsValid(), IPWL_FillerNotify::kHBeam, and IPWL_FillerNotify::kVBeam.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 527 of file cpwl_edit.cpp.
Referenced by OnCreated().
void CPWL_Edit::SetLimitChar | ( | int32_t | nLimitChar | ) |
Definition at line 315 of file cpwl_edit.cpp.
void CPWL_Edit::SetReadyToInput | ( | ) |
Definition at line 846 of file cpwl_edit.cpp.
References CPWL_Wnd::ReleaseCapture().
Referenced by CFFL_ComboBox::OnSetFocusForEdit(), and CFFL_TextField::OnSetFocusForEdit().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 491 of file cpwl_edit.cpp.
References CPWL_Wnd::GetVScrollBar(), and CPWL_Wnd::SetScrollInfo().
void CPWL_Edit::SetScrollPos | ( | const CFX_PointF & | point | ) |
Definition at line 798 of file cpwl_edit.cpp.
Referenced by OnMouseWheel().
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 496 of file cpwl_edit.cpp.
References CPWL_Wnd::GetVScrollBar(), and CPWL_Wnd::SetScrollPosition().
void CPWL_Edit::SetSelection | ( | int32_t | nStartChar, |
int32_t | nEndChar ) |
Definition at line 785 of file cpwl_edit.cpp.
Referenced by CFFL_ComboBox::SetActionData(), and CFFL_TextField::SetActionData().
void CPWL_Edit::SetText | ( | const WideString & | csText | ) |
Definition at line 44 of file cpwl_edit.cpp.
|
overridevirtual |
Reimplemented from CPWL_Wnd.
Definition at line 838 of file cpwl_edit.cpp.