summaryrefslogtreecommitdiff
path: root/xfa/src/fwl/src/basewidget/fwl_editimp.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xfa/src/fwl/src/basewidget/fwl_editimp.cpp')
-rw-r--r--xfa/src/fwl/src/basewidget/fwl_editimp.cpp96
1 files changed, 48 insertions, 48 deletions
diff --git a/xfa/src/fwl/src/basewidget/fwl_editimp.cpp b/xfa/src/fwl/src/basewidget/fwl_editimp.cpp
index ca273070ab..d70a85aca6 100644
--- a/xfa/src/fwl/src/basewidget/fwl_editimp.cpp
+++ b/xfa/src/fwl/src/basewidget/fwl_editimp.cpp
@@ -18,146 +18,146 @@ IFWL_Edit* IFWL_Edit::Create() {
return new IFWL_Edit;
}
IFWL_Edit::IFWL_Edit() {
- m_pData = NULL;
+ m_pImpl = NULL;
}
IFWL_Edit::~IFWL_Edit() {
- if (m_pData) {
- delete (CFWL_EditImp*)m_pData;
- m_pData = NULL;
+ if (m_pImpl) {
+ delete (CFWL_EditImp*)m_pImpl;
+ m_pImpl = NULL;
}
}
FWL_ERR IFWL_Edit::Initialize(IFWL_Widget* pOuter) {
- m_pData = new CFWL_EditImp(pOuter);
- ((CFWL_EditImp*)m_pData)->SetInterface(this);
- return ((CFWL_EditImp*)m_pData)->Initialize();
+ m_pImpl = new CFWL_EditImp(pOuter);
+ ((CFWL_EditImp*)m_pImpl)->SetInterface(this);
+ return ((CFWL_EditImp*)m_pImpl)->Initialize();
}
FWL_ERR IFWL_Edit::Initialize(const CFWL_WidgetImpProperties& properties,
IFWL_Widget* pOuter) {
- m_pData = new CFWL_EditImp(properties, pOuter);
- ((CFWL_EditImp*)m_pData)->SetInterface(this);
- return ((CFWL_EditImp*)m_pData)->Initialize();
+ m_pImpl = new CFWL_EditImp(properties, pOuter);
+ ((CFWL_EditImp*)m_pImpl)->SetInterface(this);
+ return ((CFWL_EditImp*)m_pImpl)->Initialize();
}
FWL_ERR IFWL_Edit::SetText(const CFX_WideString& wsText) {
- return ((CFWL_EditImp*)m_pData)->SetText(wsText);
+ return ((CFWL_EditImp*)m_pImpl)->SetText(wsText);
}
int32_t IFWL_Edit::GetTextLength() const {
- return ((CFWL_EditImp*)m_pData)->GetTextLength();
+ return ((CFWL_EditImp*)m_pImpl)->GetTextLength();
}
FWL_ERR IFWL_Edit::GetText(CFX_WideString& wsText,
int32_t nStart,
int32_t nCount) const {
- return ((CFWL_EditImp*)m_pData)->GetText(wsText, nStart, nCount);
+ return ((CFWL_EditImp*)m_pImpl)->GetText(wsText, nStart, nCount);
}
FWL_ERR IFWL_Edit::ClearText() {
- return ((CFWL_EditImp*)m_pData)->ClearText();
+ return ((CFWL_EditImp*)m_pImpl)->ClearText();
}
int32_t IFWL_Edit::GetCaretPos() const {
- return ((CFWL_EditImp*)m_pData)->GetCaretPos();
+ return ((CFWL_EditImp*)m_pImpl)->GetCaretPos();
}
int32_t IFWL_Edit::SetCaretPos(int32_t nIndex, FX_BOOL bBefore) {
- return ((CFWL_EditImp*)m_pData)->SetCaretPos(nIndex, bBefore);
+ return ((CFWL_EditImp*)m_pImpl)->SetCaretPos(nIndex, bBefore);
}
FWL_ERR IFWL_Edit::AddSelRange(int32_t nStart, int32_t nCount) {
- return ((CFWL_EditImp*)m_pData)->AddSelRange(nStart, nCount);
+ return ((CFWL_EditImp*)m_pImpl)->AddSelRange(nStart, nCount);
}
int32_t IFWL_Edit::CountSelRanges() {
- return ((CFWL_EditImp*)m_pData)->CountSelRanges();
+ return ((CFWL_EditImp*)m_pImpl)->CountSelRanges();
}
int32_t IFWL_Edit::GetSelRange(int32_t nIndex, int32_t& nStart) {
- return ((CFWL_EditImp*)m_pData)->GetSelRange(nIndex, nStart);
+ return ((CFWL_EditImp*)m_pImpl)->GetSelRange(nIndex, nStart);
}
FWL_ERR IFWL_Edit::ClearSelections() {
- return ((CFWL_EditImp*)m_pData)->ClearSelections();
+ return ((CFWL_EditImp*)m_pImpl)->ClearSelections();
}
int32_t IFWL_Edit::GetLimit() {
- return ((CFWL_EditImp*)m_pData)->GetLimit();
+ return ((CFWL_EditImp*)m_pImpl)->GetLimit();
}
FWL_ERR IFWL_Edit::SetLimit(int32_t nLimit) {
- return ((CFWL_EditImp*)m_pData)->SetLimit(nLimit);
+ return ((CFWL_EditImp*)m_pImpl)->SetLimit(nLimit);
}
FWL_ERR IFWL_Edit::SetAliasChar(FX_WCHAR wAlias) {
- return ((CFWL_EditImp*)m_pData)->SetAliasChar(wAlias);
+ return ((CFWL_EditImp*)m_pImpl)->SetAliasChar(wAlias);
}
FWL_ERR IFWL_Edit::SetFormatString(const CFX_WideString& wsFormat) {
- return ((CFWL_EditImp*)m_pData)->SetFormatString(wsFormat);
+ return ((CFWL_EditImp*)m_pImpl)->SetFormatString(wsFormat);
}
FWL_ERR IFWL_Edit::Insert(int32_t nStart,
const FX_WCHAR* lpText,
int32_t nLen) {
- return ((CFWL_EditImp*)m_pData)->Insert(nStart, lpText, nLen);
+ return ((CFWL_EditImp*)m_pImpl)->Insert(nStart, lpText, nLen);
}
FWL_ERR IFWL_Edit::DeleteSelections() {
- return ((CFWL_EditImp*)m_pData)->DeleteSelections();
+ return ((CFWL_EditImp*)m_pImpl)->DeleteSelections();
}
FWL_ERR IFWL_Edit::DeleteRange(int32_t nStart, int32_t nCount) {
- return ((CFWL_EditImp*)m_pData)->DeleteRange(nStart, nCount);
+ return ((CFWL_EditImp*)m_pImpl)->DeleteRange(nStart, nCount);
}
FWL_ERR IFWL_Edit::ReplaceSelections(const CFX_WideStringC& wsReplace) {
- return ((CFWL_EditImp*)m_pData)->ReplaceSelections(wsReplace);
+ return ((CFWL_EditImp*)m_pImpl)->ReplaceSelections(wsReplace);
}
FWL_ERR IFWL_Edit::Replace(int32_t nStart,
int32_t nLen,
const CFX_WideStringC& wsReplace) {
- return ((CFWL_EditImp*)m_pData)->Replace(nStart, nLen, wsReplace);
+ return ((CFWL_EditImp*)m_pImpl)->Replace(nStart, nLen, wsReplace);
}
FWL_ERR IFWL_Edit::DoClipboard(int32_t iCmd) {
- return ((CFWL_EditImp*)m_pData)->DoClipboard(iCmd);
+ return ((CFWL_EditImp*)m_pImpl)->DoClipboard(iCmd);
}
FX_BOOL IFWL_Edit::Copy(CFX_WideString& wsCopy) {
- return ((CFWL_EditImp*)m_pData)->Copy(wsCopy);
+ return ((CFWL_EditImp*)m_pImpl)->Copy(wsCopy);
}
FX_BOOL IFWL_Edit::Cut(CFX_WideString& wsCut) {
- return ((CFWL_EditImp*)m_pData)->Cut(wsCut);
+ return ((CFWL_EditImp*)m_pImpl)->Cut(wsCut);
}
FX_BOOL IFWL_Edit::Paste(const CFX_WideString& wsPaste) {
- return ((CFWL_EditImp*)m_pData)->Paste(wsPaste);
+ return ((CFWL_EditImp*)m_pImpl)->Paste(wsPaste);
}
FX_BOOL IFWL_Edit::Delete() {
- return ((CFWL_EditImp*)m_pData)->Delete();
+ return ((CFWL_EditImp*)m_pImpl)->Delete();
}
FX_BOOL IFWL_Edit::Redo(const CFX_ByteStringC& bsRecord) {
- return ((CFWL_EditImp*)m_pData)->Redo(bsRecord);
+ return ((CFWL_EditImp*)m_pImpl)->Redo(bsRecord);
}
FX_BOOL IFWL_Edit::Undo(const CFX_ByteStringC& bsRecord) {
- return ((CFWL_EditImp*)m_pData)->Undo(bsRecord);
+ return ((CFWL_EditImp*)m_pImpl)->Undo(bsRecord);
}
FX_BOOL IFWL_Edit::Undo() {
- return ((CFWL_EditImp*)m_pData)->Undo();
+ return ((CFWL_EditImp*)m_pImpl)->Undo();
}
FX_BOOL IFWL_Edit::Redo() {
- return ((CFWL_EditImp*)m_pData)->Redo();
+ return ((CFWL_EditImp*)m_pImpl)->Redo();
}
FX_BOOL IFWL_Edit::CanUndo() {
- return ((CFWL_EditImp*)m_pData)->CanUndo();
+ return ((CFWL_EditImp*)m_pImpl)->CanUndo();
}
FX_BOOL IFWL_Edit::CanRedo() {
- return ((CFWL_EditImp*)m_pData)->CanRedo();
+ return ((CFWL_EditImp*)m_pImpl)->CanRedo();
}
FWL_ERR IFWL_Edit::SetTabWidth(FX_FLOAT fTabWidth, FX_BOOL bEquidistant) {
- return ((CFWL_EditImp*)m_pData)->SetTabWidth(fTabWidth, bEquidistant);
+ return ((CFWL_EditImp*)m_pImpl)->SetTabWidth(fTabWidth, bEquidistant);
}
FWL_ERR IFWL_Edit::SetOuter(IFWL_Widget* pOuter) {
- return ((CFWL_EditImp*)m_pData)->SetOuter(pOuter);
+ return ((CFWL_EditImp*)m_pImpl)->SetOuter(pOuter);
}
FWL_ERR IFWL_Edit::SetNumberRange(int32_t iMin, int32_t iMax) {
- return ((CFWL_EditImp*)m_pData)->SetNumberRange(iMin, iMax);
+ return ((CFWL_EditImp*)m_pImpl)->SetNumberRange(iMin, iMax);
}
FWL_ERR IFWL_Edit::SetBackColor(FX_DWORD dwColor) {
- return ((CFWL_EditImp*)m_pData)->SetBackgroundColor(dwColor);
+ return ((CFWL_EditImp*)m_pImpl)->SetBackgroundColor(dwColor);
}
FWL_ERR IFWL_Edit::SetFont(const CFX_WideString& wsFont, FX_FLOAT fSize) {
- return ((CFWL_EditImp*)m_pData)->SetFont(wsFont, fSize);
+ return ((CFWL_EditImp*)m_pImpl)->SetFont(wsFont, fSize);
}
void IFWL_Edit::SetScrollOffset(FX_FLOAT fScrollOffset) {
- return ((CFWL_EditImp*)m_pData)->SetScrollOffset(fScrollOffset);
+ return ((CFWL_EditImp*)m_pImpl)->SetScrollOffset(fScrollOffset);
}
FX_BOOL IFWL_Edit::GetSuggestWords(CFX_PointF pointf,
CFX_ByteStringArray& sSuggest) {
- return ((CFWL_EditImp*)m_pData)->GetSuggestWords(pointf, sSuggest);
+ return ((CFWL_EditImp*)m_pImpl)->GetSuggestWords(pointf, sSuggest);
}
FX_BOOL IFWL_Edit::ReplaceSpellCheckWord(CFX_PointF pointf,
const CFX_ByteStringC& bsReplace) {
- return ((CFWL_EditImp*)m_pData)->ReplaceSpellCheckWord(pointf, bsReplace);
+ return ((CFWL_EditImp*)m_pImpl)->ReplaceSpellCheckWord(pointf, bsReplace);
}
#define FWL_EDIT_Margin 3
CFWL_EditImp::CFWL_EditImp(IFWL_Widget* pOuter)