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_impl.h>
Classes | |
class | Iterator |
class | Provider |
class | UndoBackspace |
class | UndoClear |
class | UndoDelete |
class | UndoInsertReturn |
class | UndoInsertText |
class | UndoInsertWord |
class | UndoReplaceSelection |
Definition at line 26 of file cpwl_edit_impl.h.
CPWL_EditImpl::CPWL_EditImpl | ( | ) |
Definition at line 695 of file cpwl_edit_impl.cpp.
References CPWL_EditImpl().
Referenced by CPWL_EditImpl().
|
default |
bool CPWL_EditImpl::Backspace | ( | ) |
Definition at line 912 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::CanRedo | ( | ) | const |
Definition at line 1898 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::CanUndo | ( | ) | const |
Definition at line 1890 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::ClearSelection | ( | ) |
Definition at line 920 of file cpwl_edit_impl.cpp.
Referenced by ReplaceAndKeepSelection(), and ReplaceSelection().
bool CPWL_EditImpl::Delete | ( | ) |
Definition at line 916 of file cpwl_edit_impl.cpp.
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 ) |
Definition at line 591 of file cpwl_edit_impl.cpp.
References CFX_RenderDevice::StateRestorer::StateRestorer(), CFX_Path::AppendRect(), ArgbEncode(), CPVT_WordRange::BeginPos, fxcrt::ByteString::clear(), CFX_RenderDevice::DrawPath(), CPVT_WordRange::EndPos, CPVT_Line::fLineAscent, CPVT_Line::fLineDescent, CPVT_Word::fWidth, CPWL_EditImpl::Iterator::GetAt(), GetCharArray(), GetFontMap(), GetFontSize(), GetIterator(), CPWL_EditImpl::Iterator::GetLine(), GetPasswordChar(), IPVT_FontMap::GetPDFFont(), GetPDFWordString(), GetSelectWordRange(), CPWL_EditImpl::Iterator::GetWord(), CFX_FloatRect::Intersect(), CFX_FloatRect::IsEmpty(), CPVT_WordRange::IsEmpty(), fxcrt::ByteString::IsEmpty(), IPWL_FillerNotify::IsSelectionImplemented(), CPVT_WordPlace::LineCmp(), CPWL_EditImpl::Iterator::NextWord(), CPVT_Word::nFontIndex, fxcrt::ByteString::operator+=(), CPVT_WordPlace::operator<=(), CPVT_WordPlace::operator>(), IPWL_FillerNotify::OutputSelectedRect(), CPWL_EditImpl::Iterator::SetAt(), CPWL_EditImpl::Iterator::SetAt(), CFX_RenderDevice::SetClip_Rect(), CFX_FloatRect::ToFxRect(), CFX_Matrix::TransformRect(), CFX_FillRenderOptions::WindingOptions(), and CPVT_Word::Word.
void CPWL_EditImpl::EnableRefresh | ( | bool | bRefresh | ) |
Definition at line 1906 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::EnableUndo | ( | bool | bUndo | ) |
Definition at line 1910 of file cpwl_edit_impl.cpp.
int32_t CPWL_EditImpl::GetCaret | ( | ) | const |
Definition at line 822 of file cpwl_edit_impl.cpp.
CPVT_WordPlace CPWL_EditImpl::GetCaretWordPlace | ( | ) | const |
Definition at line 829 of file cpwl_edit_impl.cpp.
int32_t CPWL_EditImpl::GetCharArray | ( | ) | const |
Definition at line 936 of file cpwl_edit_impl.cpp.
Referenced by DrawEdit().
CFX_FloatRect CPWL_EditImpl::GetContentRect | ( | ) | const |
Definition at line 940 of file cpwl_edit_impl.cpp.
Referenced by CPWL_ListBox::DrawThisAppearance().
IPVT_FontMap * CPWL_EditImpl::GetFontMap | ( | ) |
Definition at line 721 of file cpwl_edit_impl.cpp.
Referenced by DrawEdit(), and GetPDFWordString().
float CPWL_EditImpl::GetFontSize | ( | ) | const |
Definition at line 928 of file cpwl_edit_impl.cpp.
Referenced by DrawEdit().
CPWL_EditImpl::Iterator * CPWL_EditImpl::GetIterator | ( | ) |
Definition at line 715 of file cpwl_edit_impl.cpp.
Referenced by DrawEdit().
uint16_t CPWL_EditImpl::GetPasswordChar | ( | ) | const |
Definition at line 932 of file cpwl_edit_impl.cpp.
Referenced by DrawEdit().
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().
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().
CFX_PointF CPWL_EditImpl::GetScrollPos | ( | ) | const |
Definition at line 1151 of file cpwl_edit_impl.cpp.
WideString CPWL_EditImpl::GetSelectedText | ( | ) | const |
Definition at line 880 of file cpwl_edit_impl.cpp.
References GetRangeText().
std::pair< int32_t, int32_t > CPWL_EditImpl::GetSelection | ( | ) | const |
Definition at line 806 of file cpwl_edit_impl.cpp.
References CPVT_WordPlace::operator<().
CPVT_WordRange CPWL_EditImpl::GetSelectWordRange | ( | ) | const |
Definition at line 895 of file cpwl_edit_impl.cpp.
Referenced by DrawEdit().
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.
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().
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().
void CPWL_EditImpl::Initialize | ( | ) |
Definition at line 700 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::InsertReturn | ( | ) |
Definition at line 908 of file cpwl_edit_impl.cpp.
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().
bool CPWL_EditImpl::InsertWord | ( | uint16_t | word, |
FX_Charset | charset ) |
Definition at line 904 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::IsSelected | ( | ) | const |
Definition at line 1035 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::IsTextFull | ( | ) | const |
Definition at line 1864 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::OnMouseDown | ( | const CFX_PointF & | point, |
bool | bShift, | ||
bool | bCtrl ) |
Definition at line 1382 of file cpwl_edit_impl.cpp.
References SelectNone().
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==().
void CPWL_EditImpl::OnVK_DOWN | ( | bool | bShift | ) |
Definition at line 1436 of file cpwl_edit_impl.cpp.
References CPVT_WordPlace::operator!=(), and SelectNone().
void CPWL_EditImpl::OnVK_END | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 1582 of file cpwl_edit_impl.cpp.
References SelectNone().
void CPWL_EditImpl::OnVK_HOME | ( | bool | bShift, |
bool | bCtrl ) |
Definition at line 1545 of file cpwl_edit_impl.cpp.
References SelectNone().
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().
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().
void CPWL_EditImpl::OnVK_UP | ( | bool | bShift | ) |
Definition at line 1413 of file cpwl_edit_impl.cpp.
References CPVT_WordPlace::operator!=(), and SelectNone().
void CPWL_EditImpl::Paint | ( | ) |
Definition at line 977 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::Redo | ( | ) |
Definition at line 1818 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::RefreshWordRange | ( | const CPVT_WordRange & | wr | ) |
Definition at line 1289 of file cpwl_edit_impl.cpp.
References CPVT_WordRange::BeginPos, CPVT_WordRange::EndPos, CPVT_Line::fLineAscent, CPVT_Line::fLineDescent, CPVT_Line::fLineWidth, CPVT_Word::fWidth, CPVT_VariableText::Iterator::GetLine(), CPVT_VariableText::Iterator::GetWord(), CPVT_VariableText::Iterator::GetWordPlace(), CPVT_WordPlace::LineCmp(), CPVT_VariableText::Iterator::NextLine(), CPVT_VariableText::Iterator::NextWord(), CPVT_WordPlace::operator>(), and CPVT_VariableText::Iterator::SetAt().
void CPWL_EditImpl::ReplaceAndKeepSelection | ( | const WideString & | text | ) |
Definition at line 1783 of file cpwl_edit_impl.cpp.
References ClearSelection(), InsertText(), and kDefault.
void CPWL_EditImpl::ReplaceSelection | ( | const WideString & | text | ) |
Definition at line 1803 of file cpwl_edit_impl.cpp.
References ClearSelection(), InsertText(), and kDefault.
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().
void CPWL_EditImpl::SelectAll | ( | ) |
Definition at line 1017 of file cpwl_edit_impl.cpp.
References GetWholeWordRange().
Referenced by SetSelection().
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().
void CPWL_EditImpl::SetAlignmentH | ( | int32_t | nFormat | ) |
Definition at line 730 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetAlignmentV | ( | int32_t | nFormat | ) |
Definition at line 734 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetAutoFontSize | ( | bool | bAuto | ) |
Definition at line 758 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetAutoReturn | ( | bool | bAuto | ) |
Definition at line 754 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetAutoScroll | ( | bool | bAuto | ) |
Definition at line 766 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetCharArray | ( | int32_t | nCharArray | ) |
Definition at line 746 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetFontMap | ( | IPVT_FontMap * | pFontMap | ) |
Definition at line 706 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetFontSize | ( | float | fFontSize | ) |
Definition at line 762 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetLimitChar | ( | int32_t | nLimitChar | ) |
Definition at line 742 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetMultiLine | ( | bool | bMultiLine | ) |
Definition at line 750 of file cpwl_edit_impl.cpp.
Definition at line 711 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetPasswordChar | ( | uint16_t | wSubWord | ) |
Definition at line 738 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetPlateRect | ( | const CFX_FloatRect & | rect | ) |
Definition at line 725 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetScrollPos | ( | const CFX_PointF & | point | ) |
Definition at line 1144 of file cpwl_edit_impl.cpp.
void CPWL_EditImpl::SetSelection | ( | int32_t | nStartChar, |
int32_t | nEndChar ) |
Definition at line 774 of file cpwl_edit_impl.cpp.
References SelectAll(), and SelectNone().
void CPWL_EditImpl::SetText | ( | const WideString & | sText | ) |
Definition at line 899 of file cpwl_edit_impl.cpp.
References CPVT_WordPlace::CPVT_WordPlace(), and kDefault.
void CPWL_EditImpl::SetTextOverflow | ( | bool | bAllowed | ) |
Definition at line 770 of file cpwl_edit_impl.cpp.
bool CPWL_EditImpl::Undo | ( | ) |
Definition at line 1829 of file cpwl_edit_impl.cpp.
CPVT_WordPlace CPWL_EditImpl::WordIndexToWordPlace | ( | int32_t | index | ) | const |
Definition at line 1857 of file cpwl_edit_impl.cpp.
References CPVT_WordPlace::CPVT_WordPlace().