Merge to XFA: Remove FX_BSTR and FX_WSTR typedefs.
[pdfium.git] / xfa / src / fwl / src / basewidget / fwl_editimp.cpp
index a8c1655..b161f82 100644 (file)
@@ -137,11 +137,11 @@ FX_BOOL   IFWL_Edit::Delete()
 {\r
     return ((CFWL_EditImp*)m_pData)->Delete();\r
 }\r
-FX_BOOL        IFWL_Edit::Redo(FX_BSTR bsRecord)\r
+FX_BOOL        IFWL_Edit::Redo(const CFX_ByteStringC& bsRecord)\r
 {\r
     return ((CFWL_EditImp*)m_pData)->Redo(bsRecord);\r
 }\r
-FX_BOOL        IFWL_Edit::Undo(FX_BSTR bsRecord)\r
+FX_BOOL        IFWL_Edit::Undo(const CFX_ByteStringC& bsRecord)\r
 {\r
     return ((CFWL_EditImp*)m_pData)->Undo(bsRecord);\r
 }\r
@@ -189,7 +189,7 @@ FX_BOOL IFWL_Edit::GetSuggestWords(CFX_PointF pointf, CFX_ByteStringArray &sSugg
 {\r
     return ((CFWL_EditImp*)m_pData)->GetSuggestWords(pointf, sSuggest);\r
 }\r
-FX_BOOL IFWL_Edit::ReplaceSpellCheckWord(CFX_PointF pointf, FX_BSTR bsReplace)\r
+FX_BOOL IFWL_Edit::ReplaceSpellCheckWord(CFX_PointF pointf, const CFX_ByteStringC& bsReplace)\r
 {\r
     return ((CFWL_EditImp*)m_pData)->ReplaceSpellCheckWord(pointf, bsReplace);\r
 }\r
@@ -463,7 +463,7 @@ FX_BOOL CFWL_EditImp::GetSuggestWords(CFX_PointF pointf, CFX_ByteStringArray &sS
     DispatchEvent(&checkWordEvent);\r
     return suggestWordsEvent.bSuggestWords;\r
 }\r
-FX_BOOL CFWL_EditImp::ReplaceSpellCheckWord(CFX_PointF pointf, FX_BSTR bsReplace)\r
+FX_BOOL CFWL_EditImp::ReplaceSpellCheckWord(CFX_PointF pointf, const CFX_ByteStringC& bsReplace)\r
 {\r
     int32_t nWordCount = 0;\r
     int32_t nWordStart = GetWordAtPoint(pointf, nWordCount);\r
@@ -820,7 +820,7 @@ FX_BOOL CFWL_EditImp::Delete()
     m_pEdtEngine->Delete(0);\r
     return TRUE;\r
 }\r
-FX_BOOL CFWL_EditImp::Redo(FX_BSTR bsRecord)\r
+FX_BOOL CFWL_EditImp::Redo(const CFX_ByteStringC& bsRecord)\r
 {\r
     _FWL_RETURN_VALUE_IF_FAIL(m_pEdtEngine, FALSE);\r
     if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_NoRedoUndo) {\r
@@ -828,7 +828,7 @@ FX_BOOL CFWL_EditImp::Redo(FX_BSTR bsRecord)
     }\r
     return m_pEdtEngine->Redo(bsRecord);\r
 }\r
-FX_BOOL CFWL_EditImp::Undo(FX_BSTR bsRecord)\r
+FX_BOOL CFWL_EditImp::Undo(const CFX_ByteStringC& bsRecord)\r
 {\r
     _FWL_RETURN_VALUE_IF_FAIL(m_pEdtEngine, FALSE);\r
     if (m_pProperties->m_dwStyleExes & FWL_STYLEEXT_EDT_NoRedoUndo) {\r
@@ -989,7 +989,7 @@ FX_BOOL CFWL_EditImp::On_PageUnload(IFDE_TxtEdtEngine *pEdit, int32_t nPageIndex
     pPage->UnloadPage();\r
     return TRUE;\r
 }\r
-void CFWL_EditImp::On_AddDoRecord(IFDE_TxtEdtEngine *pEdit, FX_BSTR bsDoRecord)\r
+void CFWL_EditImp::On_AddDoRecord(IFDE_TxtEdtEngine *pEdit, const CFX_ByteStringC& bsDoRecord)\r
 {\r
     AddDoRecord(bsDoRecord);\r
     CFWL_WidgetImp *pSrcTarget = GetRootOuter();\r
@@ -1533,7 +1533,7 @@ FX_BOOL   CFWL_EditImp::IsContentHeightOverflow()
     _FWL_RETURN_VALUE_IF_FAIL(pPage, FALSE);\r
     return pPage->GetContentsBox().height > m_rtEngine.height + 1.0f;\r
 }\r
-int32_t CFWL_EditImp::AddDoRecord(FX_BSTR bsDoRecord)\r
+int32_t CFWL_EditImp::AddDoRecord(const CFX_ByteStringC& bsDoRecord)\r
 {\r
     int32_t nCount = m_RecordArr.GetSize();\r
     if (m_iCurRecord == nCount - 1) {\r