Merge to XFA: Remove FX_BSTR and FX_WSTR typedefs.
[pdfium.git] / xfa / src / fwl / src / basewidget / include / fwl_editimp.h
index e06cfa8..3f5f7c0 100644 (file)
@@ -55,8 +55,8 @@ public:
     virtual FX_BOOL            Cut(CFX_WideString &wsCut);\r
     virtual FX_BOOL            Paste(const CFX_WideString &wsPaste);\r
     virtual FX_BOOL            Delete();\r
-    virtual FX_BOOL            Redo(FX_BSTR bsRecord);\r
-    virtual FX_BOOL            Undo(FX_BSTR bsRecord);\r
+    virtual FX_BOOL            Redo(const CFX_ByteStringC& bsRecord);\r
+    virtual FX_BOOL            Undo(const CFX_ByteStringC& bsRecord);\r
     virtual FX_BOOL            Undo();\r
     virtual FX_BOOL            Redo();\r
     virtual FX_BOOL            CanUndo();\r
@@ -74,7 +74,7 @@ public:
     {\r
         return TRUE;\r
     }\r
-    virtual void               On_AddDoRecord(IFDE_TxtEdtEngine *pEdit, FX_BSTR bsDoRecord);\r
+    virtual void               On_AddDoRecord(IFDE_TxtEdtEngine *pEdit, const CFX_ByteStringC& bsDoRecord);\r
     virtual FX_BOOL            On_ValidateField(IFDE_TxtEdtEngine *pEdit, int32_t nBlockIndex, int32_t nFieldIndex, \\r
                                          const CFX_WideString &wsFieldText, int32_t nCharIndex);\r
     virtual FX_BOOL            On_ValidateBlock(IFDE_TxtEdtEngine *pEdit, int32_t nBlockIndex);\r
@@ -84,7 +84,7 @@ public:
     virtual FWL_ERR     SetFont(const CFX_WideString &wsFont, FX_FLOAT fSize);\r
     void                               SetScrollOffset(FX_FLOAT fScrollOffset);\r
     FX_BOOL                            GetSuggestWords(CFX_PointF pointf, CFX_ByteStringArray &sSuggest);\r
-    FX_BOOL                            ReplaceSpellCheckWord(CFX_PointF pointf, FX_BSTR bsReplace);\r
+    FX_BOOL                            ReplaceSpellCheckWord(CFX_PointF pointf, const CFX_ByteStringC& bsReplace);\r
 protected:\r
     void                               DrawTextBk(CFX_Graphics *pGraphics, IFWL_ThemeProvider *pTheme, const CFX_Matrix *pMatrix = NULL);\r
     void                               DrawContent(CFX_Graphics *pGraphics, IFWL_ThemeProvider *pTheme, const CFX_Matrix *pMatrix = NULL);\r
@@ -107,7 +107,7 @@ protected:
     void                               ClearRecord();\r
     FX_BOOL                            IsShowScrollBar(FX_BOOL bVert);\r
     FX_BOOL                            IsContentHeightOverflow();\r
-    int32_t                    AddDoRecord(FX_BSTR bsDoRecord);\r
+    int32_t                    AddDoRecord(const CFX_ByteStringC& bsDoRecord);\r
     void                               ProcessInsertError(int32_t iError);\r
 \r
     void                               DrawSpellCheck(CFX_Graphics *pGraphics, const CFX_Matrix *pMatrix = NULL);\r