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

#include <cpwl_edit_impl.h>

+ Collaboration diagram for CPWL_EditImpl:

Classes

class  Iterator
 
class  Provider
 
class  UndoBackspace
 
class  UndoClear
 
class  UndoDelete
 
class  UndoInsertReturn
 
class  UndoInsertText
 
class  UndoInsertWord
 
class  UndoReplaceSelection
 

Public Member Functions

 CPWL_EditImpl ()
 
 ~CPWL_EditImpl ()
 
void DrawEdit (CFX_RenderDevice *pDevice, const CFX_Matrix &mtUser2Device, FX_COLORREF crTextFill, const CFX_FloatRect &rcClip, const CFX_PointF &ptOffset, const CPVT_WordRange *pRange, IPWL_FillerNotify *pFillerNotify, IPWL_FillerNotify::PerWindowData *pSystemData)
 
void SetFontMap (IPVT_FontMap *pFontMap)
 
void SetNotify (CPWL_Edit *pNotify)
 
IteratorGetIterator ()
 
IPVT_FontMapGetFontMap ()
 
void Initialize ()
 
void SetPlateRect (const CFX_FloatRect &rect)
 
void SetScrollPos (const CFX_PointF &point)
 
void SetAlignmentH (int32_t nFormat)
 
void SetAlignmentV (int32_t nFormat)
 
void SetPasswordChar (uint16_t wSubWord)
 
void SetLimitChar (int32_t nLimitChar)
 
void SetCharArray (int32_t nCharArray)
 
void SetMultiLine (bool bMultiLine)
 
void SetAutoReturn (bool bAuto)
 
void SetAutoFontSize (bool bAuto)
 
void SetAutoScroll (bool bAuto)
 
void SetFontSize (float fFontSize)
 
void SetTextOverflow (bool bAllowed)
 
void OnMouseDown (const CFX_PointF &point, bool bShift, bool bCtrl)
 
void OnMouseMove (const CFX_PointF &point, bool bShift, bool bCtrl)
 
void OnVK_UP (bool bShift)
 
void OnVK_DOWN (bool bShift)
 
void OnVK_LEFT (bool bShift)
 
void OnVK_RIGHT (bool bShift)
 
void OnVK_HOME (bool bShift, bool bCtrl)
 
void OnVK_END (bool bShift, bool bCtrl)
 
void SetText (const WideString &sText)
 
bool InsertWord (uint16_t word, FX_Charset charset)
 
bool InsertReturn ()
 
bool Backspace ()
 
bool Delete ()
 
bool ClearSelection ()
 
bool InsertText (const WideString &sText, FX_Charset charset)
 
void ReplaceAndKeepSelection (const WideString &text)
 
void ReplaceSelection (const WideString &text)
 
bool Redo ()
 
bool Undo ()
 
CPVT_WordPlace WordIndexToWordPlace (int32_t index) const
 
CPVT_WordPlace SearchWordPlace (const CFX_PointF &point) const
 
int32_t GetCaret () const
 
CPVT_WordPlace GetCaretWordPlace () const
 
WideString GetSelectedText () const
 
WideString GetText () const
 
float GetFontSize () const
 
uint16_t GetPasswordChar () const
 
CFX_PointF GetScrollPos () const
 
int32_t GetCharArray () const
 
CFX_FloatRect GetContentRect () const
 
WideString GetRangeText (const CPVT_WordRange &range) const
 
void SetSelection (int32_t nStartChar, int32_t nEndChar)
 
std::pair< int32_t, int32_t > GetSelection () const
 
void SelectAll ()
 
void SelectNone ()
 
bool IsSelected () const
 
void Paint ()
 
void EnableRefresh (bool bRefresh)
 
void RefreshWordRange (const CPVT_WordRange &wr)
 
CPVT_WordRange GetWholeWordRange () const
 
CPVT_WordRange GetSelectWordRange () const
 
void EnableUndo (bool bUndo)
 
bool IsTextFull () const
 
bool CanUndo () const
 
bool CanRedo () const
 
CPVT_WordRange GetVisibleWordRange () const
 
ByteString GetPDFWordString (int32_t nFontIndex, uint16_t Word, uint16_t SubWord)
 

Detailed Description

Definition at line 26 of file cpwl_edit_impl.h.

Constructor & Destructor Documentation

◆ CPWL_EditImpl()

CPWL_EditImpl::CPWL_EditImpl ( )

Definition at line 695 of file cpwl_edit_impl.cpp.

References CPWL_EditImpl().

Referenced by CPWL_EditImpl().

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

◆ ~CPWL_EditImpl()

CPWL_EditImpl::~CPWL_EditImpl ( )
default

Member Function Documentation

◆ Backspace()

bool CPWL_EditImpl::Backspace ( )

Definition at line 912 of file cpwl_edit_impl.cpp.

◆ CanRedo()

bool CPWL_EditImpl::CanRedo ( ) const

Definition at line 1898 of file cpwl_edit_impl.cpp.

◆ CanUndo()

bool CPWL_EditImpl::CanUndo ( ) const

Definition at line 1890 of file cpwl_edit_impl.cpp.

◆ ClearSelection()

bool CPWL_EditImpl::ClearSelection ( )

Definition at line 920 of file cpwl_edit_impl.cpp.

Referenced by ReplaceAndKeepSelection(), and ReplaceSelection().

+ Here is the caller graph for this function:

◆ Delete()

bool CPWL_EditImpl::Delete ( )

Definition at line 916 of file cpwl_edit_impl.cpp.

◆ DrawEdit()

void CPWL_EditImpl::DrawEdit ( CFX_RenderDevice * pDevice,
const CFX_Matrix & mtUser2Device,
FX_COLORREF crTextFill,
const CFX_FloatRect & rcClip,
const CFX_PointF & ptOffset,
const CPVT_WordRange * pRange,
IPWL_FillerNotify * pFillerNotify,
IPWL_FillerNotify::PerWindowData * pSystemData )

◆ EnableRefresh()

void CPWL_EditImpl::EnableRefresh ( bool bRefresh)

Definition at line 1906 of file cpwl_edit_impl.cpp.

◆ EnableUndo()

void CPWL_EditImpl::EnableUndo ( bool bUndo)

Definition at line 1910 of file cpwl_edit_impl.cpp.

◆ GetCaret()

int32_t CPWL_EditImpl::GetCaret ( ) const

Definition at line 822 of file cpwl_edit_impl.cpp.

◆ GetCaretWordPlace()

CPVT_WordPlace CPWL_EditImpl::GetCaretWordPlace ( ) const

Definition at line 829 of file cpwl_edit_impl.cpp.

◆ GetCharArray()

int32_t CPWL_EditImpl::GetCharArray ( ) const

Definition at line 936 of file cpwl_edit_impl.cpp.

Referenced by DrawEdit().

+ Here is the caller graph for this function:

◆ GetContentRect()

CFX_FloatRect CPWL_EditImpl::GetContentRect ( ) const

Definition at line 940 of file cpwl_edit_impl.cpp.

Referenced by CPWL_ListBox::DrawThisAppearance().

+ Here is the caller graph for this function:

◆ GetFontMap()

IPVT_FontMap * CPWL_EditImpl::GetFontMap ( )

Definition at line 721 of file cpwl_edit_impl.cpp.

Referenced by DrawEdit(), and GetPDFWordString().

+ Here is the caller graph for this function:

◆ GetFontSize()

float CPWL_EditImpl::GetFontSize ( ) const

Definition at line 928 of file cpwl_edit_impl.cpp.

Referenced by DrawEdit().

+ Here is the caller graph for this function:

◆ GetIterator()

CPWL_EditImpl::Iterator * CPWL_EditImpl::GetIterator ( )

Definition at line 715 of file cpwl_edit_impl.cpp.

Referenced by DrawEdit().

+ Here is the caller graph for this function:

◆ GetPasswordChar()

uint16_t CPWL_EditImpl::GetPasswordChar ( ) const

Definition at line 932 of file cpwl_edit_impl.cpp.

Referenced by DrawEdit().

+ Here is the caller graph for this function:

◆ GetPDFWordString()

ByteString CPWL_EditImpl::GetPDFWordString ( int32_t nFontIndex,
uint16_t Word,
uint16_t SubWord )

Definition at line 1955 of file cpwl_edit_impl.cpp.

References fxcrt::ByteString::ByteString(), IPVT_FontMap::CharCodeFromUnicode(), and GetFontMap().

Referenced by DrawEdit().

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

◆ GetRangeText()

WideString CPWL_EditImpl::GetRangeText ( const CPVT_WordRange & range) const

Definition at line 854 of file cpwl_edit_impl.cpp.

References CPVT_WordRange::BeginPos, CPVT_WordRange::EndPos, CPVT_VariableText::Iterator::GetWord(), CPVT_VariableText::Iterator::GetWordPlace(), CPVT_VariableText::Iterator::NextWord(), CPVT_WordPlace::nSecIndex, fxcrt::WideString::operator+=(), fxcrt::WideString::operator+=(), CPVT_WordPlace::operator>(), CPVT_VariableText::Iterator::SetAt(), and CPVT_Word::Word.

Referenced by GetSelectedText().

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

◆ GetScrollPos()

CFX_PointF CPWL_EditImpl::GetScrollPos ( ) const

Definition at line 1151 of file cpwl_edit_impl.cpp.

◆ GetSelectedText()

WideString CPWL_EditImpl::GetSelectedText ( ) const

Definition at line 880 of file cpwl_edit_impl.cpp.

References GetRangeText().

+ Here is the call graph for this function:

◆ GetSelection()

std::pair< int32_t, int32_t > CPWL_EditImpl::GetSelection ( ) const

Definition at line 806 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::operator<().

+ Here is the call graph for this function:

◆ GetSelectWordRange()

CPVT_WordRange CPWL_EditImpl::GetSelectWordRange ( ) const

Definition at line 895 of file cpwl_edit_impl.cpp.

Referenced by DrawEdit().

+ Here is the caller graph for this function:

◆ GetText()

WideString CPWL_EditImpl::GetText ( ) const

Definition at line 833 of file cpwl_edit_impl.cpp.

References CPVT_VariableText::Iterator::GetWord(), CPVT_VariableText::Iterator::GetWordPlace(), CPVT_VariableText::Iterator::NextWord(), CPVT_WordPlace::nSecIndex, fxcrt::WideString::operator+=(), fxcrt::WideString::operator+=(), CPVT_VariableText::Iterator::SetAt(), and CPVT_Word::Word.

+ Here is the call graph for this function:

◆ GetVisibleWordRange()

CPVT_WordRange CPWL_EditImpl::GetVisibleWordRange ( ) const

Definition at line 951 of file cpwl_edit_impl.cpp.

References CPVT_WordRange::CPVT_WordRange(), CPVT_WordRange::CPVT_WordRange(), and GetWholeWordRange().

+ Here is the call graph for this function:

◆ GetWholeWordRange()

CPVT_WordRange CPWL_EditImpl::GetWholeWordRange ( ) const

Definition at line 944 of file cpwl_edit_impl.cpp.

References CPVT_WordRange::CPVT_WordRange().

Referenced by GetVisibleWordRange(), and SelectAll().

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

◆ Initialize()

void CPWL_EditImpl::Initialize ( )

Definition at line 700 of file cpwl_edit_impl.cpp.

◆ InsertReturn()

bool CPWL_EditImpl::InsertReturn ( )

Definition at line 908 of file cpwl_edit_impl.cpp.

◆ InsertText()

bool CPWL_EditImpl::InsertText ( const WideString & sText,
FX_Charset charset )

Definition at line 924 of file cpwl_edit_impl.cpp.

Referenced by ReplaceAndKeepSelection(), and ReplaceSelection().

+ Here is the caller graph for this function:

◆ InsertWord()

bool CPWL_EditImpl::InsertWord ( uint16_t word,
FX_Charset charset )

Definition at line 904 of file cpwl_edit_impl.cpp.

◆ IsSelected()

bool CPWL_EditImpl::IsSelected ( ) const

Definition at line 1035 of file cpwl_edit_impl.cpp.

◆ IsTextFull()

bool CPWL_EditImpl::IsTextFull ( ) const

Definition at line 1864 of file cpwl_edit_impl.cpp.

◆ OnMouseDown()

void CPWL_EditImpl::OnMouseDown ( const CFX_PointF & point,
bool bShift,
bool bCtrl )

Definition at line 1382 of file cpwl_edit_impl.cpp.

References SelectNone().

+ Here is the call graph for this function:

◆ OnMouseMove()

void CPWL_EditImpl::OnMouseMove ( const CFX_PointF & point,
bool bShift,
bool bCtrl )

Definition at line 1396 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::operator==().

+ Here is the call graph for this function:

◆ OnVK_DOWN()

void CPWL_EditImpl::OnVK_DOWN ( bool bShift)

Definition at line 1436 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::operator!=(), and SelectNone().

+ Here is the call graph for this function:

◆ OnVK_END()

void CPWL_EditImpl::OnVK_END ( bool bShift,
bool bCtrl )

Definition at line 1582 of file cpwl_edit_impl.cpp.

References SelectNone().

+ Here is the call graph for this function:

◆ OnVK_HOME()

void CPWL_EditImpl::OnVK_HOME ( bool bShift,
bool bCtrl )

Definition at line 1545 of file cpwl_edit_impl.cpp.

References SelectNone().

+ Here is the call graph for this function:

◆ OnVK_LEFT()

void CPWL_EditImpl::OnVK_LEFT ( bool bShift)

Definition at line 1459 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::operator!=(), CPVT_WordPlace::operator<(), and SelectNone().

+ Here is the call graph for this function:

◆ OnVK_RIGHT()

void CPWL_EditImpl::OnVK_RIGHT ( bool bShift)

Definition at line 1502 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::operator!=(), CPVT_WordPlace::operator>(), and SelectNone().

+ Here is the call graph for this function:

◆ OnVK_UP()

void CPWL_EditImpl::OnVK_UP ( bool bShift)

Definition at line 1413 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::operator!=(), and SelectNone().

+ Here is the call graph for this function:

◆ Paint()

void CPWL_EditImpl::Paint ( )

Definition at line 977 of file cpwl_edit_impl.cpp.

◆ Redo()

bool CPWL_EditImpl::Redo ( )

Definition at line 1818 of file cpwl_edit_impl.cpp.

◆ RefreshWordRange()

◆ ReplaceAndKeepSelection()

void CPWL_EditImpl::ReplaceAndKeepSelection ( const WideString & text)

Definition at line 1783 of file cpwl_edit_impl.cpp.

References ClearSelection(), InsertText(), and kDefault.

+ Here is the call graph for this function:

◆ ReplaceSelection()

void CPWL_EditImpl::ReplaceSelection ( const WideString & text)

Definition at line 1803 of file cpwl_edit_impl.cpp.

References ClearSelection(), InsertText(), and kDefault.

+ Here is the call graph for this function:

◆ SearchWordPlace()

CPVT_WordPlace CPWL_EditImpl::SearchWordPlace ( const CFX_PointF & point) const

Definition at line 969 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::CPVT_WordPlace().

+ Here is the call graph for this function:

◆ SelectAll()

void CPWL_EditImpl::SelectAll ( )

Definition at line 1017 of file cpwl_edit_impl.cpp.

References GetWholeWordRange().

Referenced by SetSelection().

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

◆ SelectNone()

void CPWL_EditImpl::SelectNone ( )

Definition at line 1027 of file cpwl_edit_impl.cpp.

Referenced by OnMouseDown(), OnVK_DOWN(), OnVK_END(), OnVK_HOME(), OnVK_LEFT(), OnVK_RIGHT(), OnVK_UP(), and SetSelection().

+ Here is the caller graph for this function:

◆ SetAlignmentH()

void CPWL_EditImpl::SetAlignmentH ( int32_t nFormat)

Definition at line 730 of file cpwl_edit_impl.cpp.

◆ SetAlignmentV()

void CPWL_EditImpl::SetAlignmentV ( int32_t nFormat)

Definition at line 734 of file cpwl_edit_impl.cpp.

◆ SetAutoFontSize()

void CPWL_EditImpl::SetAutoFontSize ( bool bAuto)

Definition at line 758 of file cpwl_edit_impl.cpp.

◆ SetAutoReturn()

void CPWL_EditImpl::SetAutoReturn ( bool bAuto)

Definition at line 754 of file cpwl_edit_impl.cpp.

◆ SetAutoScroll()

void CPWL_EditImpl::SetAutoScroll ( bool bAuto)

Definition at line 766 of file cpwl_edit_impl.cpp.

◆ SetCharArray()

void CPWL_EditImpl::SetCharArray ( int32_t nCharArray)

Definition at line 746 of file cpwl_edit_impl.cpp.

◆ SetFontMap()

void CPWL_EditImpl::SetFontMap ( IPVT_FontMap * pFontMap)

Definition at line 706 of file cpwl_edit_impl.cpp.

◆ SetFontSize()

void CPWL_EditImpl::SetFontSize ( float fFontSize)

Definition at line 762 of file cpwl_edit_impl.cpp.

◆ SetLimitChar()

void CPWL_EditImpl::SetLimitChar ( int32_t nLimitChar)

Definition at line 742 of file cpwl_edit_impl.cpp.

◆ SetMultiLine()

void CPWL_EditImpl::SetMultiLine ( bool bMultiLine)

Definition at line 750 of file cpwl_edit_impl.cpp.

◆ SetNotify()

void CPWL_EditImpl::SetNotify ( CPWL_Edit * pNotify)

Definition at line 711 of file cpwl_edit_impl.cpp.

◆ SetPasswordChar()

void CPWL_EditImpl::SetPasswordChar ( uint16_t wSubWord)

Definition at line 738 of file cpwl_edit_impl.cpp.

◆ SetPlateRect()

void CPWL_EditImpl::SetPlateRect ( const CFX_FloatRect & rect)

Definition at line 725 of file cpwl_edit_impl.cpp.

◆ SetScrollPos()

void CPWL_EditImpl::SetScrollPos ( const CFX_PointF & point)

Definition at line 1144 of file cpwl_edit_impl.cpp.

◆ SetSelection()

void CPWL_EditImpl::SetSelection ( int32_t nStartChar,
int32_t nEndChar )

Definition at line 774 of file cpwl_edit_impl.cpp.

References SelectAll(), and SelectNone().

+ Here is the call graph for this function:

◆ SetText()

void CPWL_EditImpl::SetText ( const WideString & sText)

Definition at line 899 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::CPVT_WordPlace(), and kDefault.

+ Here is the call graph for this function:

◆ SetTextOverflow()

void CPWL_EditImpl::SetTextOverflow ( bool bAllowed)

Definition at line 770 of file cpwl_edit_impl.cpp.

◆ Undo()

bool CPWL_EditImpl::Undo ( )

Definition at line 1829 of file cpwl_edit_impl.cpp.

◆ WordIndexToWordPlace()

CPVT_WordPlace CPWL_EditImpl::WordIndexToWordPlace ( int32_t index) const

Definition at line 1857 of file cpwl_edit_impl.cpp.

References CPVT_WordPlace::CPVT_WordPlace().

+ Here is the call graph for this function:

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