Qt
Internal/Contributor docs for the Qt SDK. Note: These are NOT official API docs; those are found at https://doc.qt.io/
|
#include <cfde_texteditengine.h>
Classes | |
class | Delegate |
class | Iterator |
class | Operation |
struct | TextChange |
Public Types | |
enum class | RecordOperation { kInsertRecord , kSkipRecord , kSkipNotify } |
Definition at line 41 of file cfde_texteditengine.h.
|
strong |
Enumerator | |
---|---|
kInsertRecord | |
kSkipRecord | |
kSkipNotify |
Definition at line 86 of file cfde_texteditengine.h.
CFDE_TextEditEngine::CFDE_TextEditEngine | ( | ) |
Definition at line 123 of file cfde_texteditengine.cpp.
|
overridedefault |
std::pair< size_t, size_t > CFDE_TextEditEngine::BoundsForWordAt | ( | size_t | idx | ) | const |
Definition at line 1169 of file cfde_texteditengine.cpp.
References CFDE_TextEditEngine::Iterator::Iterator().
|
inline |
Definition at line 171 of file cfde_texteditengine.h.
bool CFDE_TextEditEngine::CanRedo | ( | ) | const |
Definition at line 538 of file cfde_texteditengine.cpp.
Referenced by Redo().
bool CFDE_TextEditEngine::CanUndo | ( | ) | const |
Definition at line 533 of file cfde_texteditengine.cpp.
Referenced by Undo().
void CFDE_TextEditEngine::Clear | ( | ) |
Definition at line 134 of file cfde_texteditengine.cpp.
References ClearOperationRecords(), and ClearSelection().
void CFDE_TextEditEngine::ClearOperationRecords | ( | ) |
Definition at line 390 of file cfde_texteditengine.cpp.
Referenced by Clear(), LimitHorizontalScroll(), LimitVerticalScroll(), SetAvailableWidth(), SetCharacterLimit(), and SetMaxEditOperationsForTesting().
void CFDE_TextEditEngine::ClearSelection | ( | ) |
Definition at line 726 of file cfde_texteditengine.cpp.
Referenced by Clear(), Delete(), Insert(), and SetSelection().
WideString CFDE_TextEditEngine::Delete | ( | size_t | start_idx, |
size_t | length, | ||
RecordOperation | add_operation = RecordOperation::kInsertRecord ) |
Definition at line 789 of file cfde_texteditengine.cpp.
References fxcrt::WideString::WideString(), CFDE_TextEditEngine::TextChange::cancelled, ClearSelection(), GetText(), and kInsertRecord.
WideString CFDE_TextEditEngine::DeleteSelectedText | ( | RecordOperation | add_operation = RecordOperation::kInsertRecord | ) |
Definition at line 781 of file cfde_texteditengine.cpp.
References fxcrt::WideString::WideString().
Referenced by Insert(), and ReplaceSelectedText().
void CFDE_TextEditEngine::EnableLineWrap | ( | bool | val | ) |
Definition at line 682 of file cfde_texteditengine.cpp.
void CFDE_TextEditEngine::EnableMultiLine | ( | bool | val | ) |
Definition at line 667 of file cfde_texteditengine.cpp.
References CFGAS_Break::kSingleLine.
|
inline |
Definition at line 130 of file cfde_texteditengine.h.
|
inline |
Definition at line 129 of file cfde_texteditengine.h.
|
overridevirtual |
Implements CFGAS_TxtBreak::Engine.
Definition at line 889 of file cfde_texteditengine.cpp.
std::pair< int32_t, CFX_RectF > CFDE_TextEditEngine::GetCharacterInfo | ( | int32_t | start_idx | ) |
Definition at line 1120 of file cfde_texteditengine.cpp.
References Layout().
std::vector< CFX_RectF > CFDE_TextEditEngine::GetCharacterRectsInRange | ( | int32_t | start_idx, |
int32_t | count ) |
Definition at line 1137 of file cfde_texteditengine.cpp.
References Layout().
CFX_RectF CFDE_TextEditEngine::GetContentsBoundingBox | ( | ) |
Definition at line 573 of file cfde_texteditengine.cpp.
References Layout().
std::vector< TextCharPos > CFDE_TextEditEngine::GetDisplayPos | ( | const FDE_TEXTEDITPIECE & | info | ) |
Definition at line 1018 of file cfde_texteditengine.cpp.
References CFGAS_TxtBreak::Run::dwCharStyles, FDE_TEXTEDITPIECE::dwCharStyles, CFGAS_TxtBreak::Run::fFontSize, CFGAS_TxtBreak::Run::iLength, CFGAS_TxtBreak::Run::iStart, FDE_TEXTEDITPIECE::nCount, FDE_TEXTEDITPIECE::nStart, and FDE_TEXTEDITPIECE::rtPiece.
RetainPtr< CFGAS_GEFont > CFDE_TextEditEngine::GetFont | ( | ) | const |
Definition at line 628 of file cfde_texteditengine.cpp.
|
inline |
Definition at line 117 of file cfde_texteditengine.h.
|
inline |
Definition at line 115 of file cfde_texteditengine.h.
size_t CFDE_TextEditEngine::GetIndexAtEndOfLine | ( | size_t | pos | ) | const |
Definition at line 505 of file cfde_texteditengine.cpp.
size_t CFDE_TextEditEngine::GetIndexAtStartOfLine | ( | size_t | pos | ) | const |
Definition at line 484 of file cfde_texteditengine.cpp.
size_t CFDE_TextEditEngine::GetIndexDown | ( | size_t | pos | ) | const |
Definition at line 458 of file cfde_texteditengine.cpp.
size_t CFDE_TextEditEngine::GetIndexForPoint | ( | const CFX_PointF & | point | ) |
Definition at line 906 of file cfde_texteditengine.cpp.
References Layout().
size_t CFDE_TextEditEngine::GetIndexLeft | ( | size_t | pos | ) | const |
Definition at line 398 of file cfde_texteditengine.cpp.
size_t CFDE_TextEditEngine::GetIndexRight | ( | size_t | pos | ) | const |
Definition at line 414 of file cfde_texteditengine.cpp.
size_t CFDE_TextEditEngine::GetIndexUp | ( | size_t | pos | ) | const |
Definition at line 429 of file cfde_texteditengine.cpp.
size_t CFDE_TextEditEngine::GetLength | ( | ) | const |
Definition at line 885 of file cfde_texteditengine.cpp.
|
inline |
Definition at line 120 of file cfde_texteditengine.h.
WideString CFDE_TextEditEngine::GetSelectedText | ( | ) | const |
Definition at line 748 of file cfde_texteditengine.cpp.
References fxcrt::WideString::WideString().
|
inline |
Definition at line 154 of file cfde_texteditengine.h.
WideString CFDE_TextEditEngine::GetText | ( | ) | const |
Definition at line 874 of file cfde_texteditengine.cpp.
Referenced by Delete(), Insert(), and ReplaceSelectedText().
|
inline |
Definition at line 178 of file cfde_texteditengine.h.
References Layout().
|
overridevirtual |
Implements CFGAS_TxtBreak::Engine.
Definition at line 900 of file cfde_texteditengine.cpp.
References Layout().
|
inline |
Definition at line 152 of file cfde_texteditengine.h.
void CFDE_TextEditEngine::Insert | ( | size_t | idx, |
const WideString & | text, | ||
RecordOperation | add_operation = RecordOperation::kInsertRecord ) |
Definition at line 225 of file cfde_texteditengine.cpp.
References CFDE_TextEditEngine::TextChange::cancelled, ClearSelection(), DeleteSelectedText(), GetText(), fxcrt::WideString::IsEmpty(), kInsertRecord, kSkipNotify, kSkipRecord, fxcrt::WideString::operator+=(), and fxcrt::WideString::operator=().
void CFDE_TextEditEngine::Layout | ( | ) |
Definition at line 565 of file cfde_texteditengine.cpp.
Referenced by GetCharacterInfo(), GetCharacterRectsInRange(), GetContentsBoundingBox(), GetIndexForPoint(), GetTextPieces(), and GetWidthOfChar().
void CFDE_TextEditEngine::LimitHorizontalScroll | ( | bool | val | ) |
Definition at line 523 of file cfde_texteditengine.cpp.
References ClearOperationRecords().
void CFDE_TextEditEngine::LimitVerticalScroll | ( | bool | val | ) |
Definition at line 528 of file cfde_texteditengine.cpp.
References ClearOperationRecords().
bool CFDE_TextEditEngine::Redo | ( | ) |
Definition at line 544 of file cfde_texteditengine.cpp.
References CanRedo().
void CFDE_TextEditEngine::ReplaceSelectedText | ( | const WideString & | str | ) |
Definition at line 846 of file cfde_texteditengine.cpp.
References CFDE_TextEditEngine::TextChange::cancelled, DeleteSelectedText(), GetText(), and kSkipRecord.
void CFDE_TextEditEngine::SelectAll | ( | ) |
Definition at line 717 of file cfde_texteditengine.cpp.
|
inline |
Definition at line 122 of file cfde_texteditengine.h.
void CFDE_TextEditEngine::SetAlignment | ( | uint32_t | alignment | ) |
Definition at line 650 of file cfde_texteditengine.cpp.
void CFDE_TextEditEngine::SetAvailableWidth | ( | size_t | width | ) |
Definition at line 579 of file cfde_texteditengine.cpp.
References ClearOperationRecords().
void CFDE_TextEditEngine::SetCharacterLimit | ( | size_t | limit | ) |
Definition at line 606 of file cfde_texteditengine.cpp.
References ClearOperationRecords().
void CFDE_TextEditEngine::SetCombText | ( | bool | enable | ) |
Definition at line 692 of file cfde_texteditengine.cpp.
References CFGAS_Break::kCombText.
Definition at line 95 of file cfde_texteditengine.h.
void CFDE_TextEditEngine::SetFont | ( | RetainPtr< CFGAS_GEFont > | font | ) |
Definition at line 619 of file cfde_texteditengine.cpp.
Definition at line 116 of file cfde_texteditengine.h.
void CFDE_TextEditEngine::SetFontSize | ( | float | size | ) |
Definition at line 632 of file cfde_texteditengine.cpp.
void CFDE_TextEditEngine::SetHasCharacterLimit | ( | bool | limit | ) |
Definition at line 594 of file cfde_texteditengine.cpp.
|
inline |
Definition at line 121 of file cfde_texteditengine.h.
void CFDE_TextEditEngine::SetMaxEditOperationsForTesting | ( | size_t | max | ) |
Definition at line 146 of file cfde_texteditengine.cpp.
References ClearOperationRecords().
void CFDE_TextEditEngine::SetSelection | ( | size_t | start_idx, |
size_t | count ) |
Definition at line 732 of file cfde_texteditengine.cpp.
References ClearSelection().
void CFDE_TextEditEngine::SetTabWidth | ( | float | width | ) |
Definition at line 641 of file cfde_texteditengine.cpp.
void CFDE_TextEditEngine::SetVisibleLineCount | ( | size_t | lines | ) |
Definition at line 659 of file cfde_texteditengine.cpp.
bool CFDE_TextEditEngine::Undo | ( | ) |
Definition at line 554 of file cfde_texteditengine.cpp.
References CanUndo().