Merge to XFA: Remove FX_BSTR and FX_WSTR typedefs.
[pdfium.git] / xfa / include / fwl / lightwidget / edit.h
index 8299a20..06c1072 100644 (file)
@@ -15,29 +15,29 @@ public:
     static CFWL_Edit* Create();\r
     FWL_ERR     Initialize(const CFWL_WidgetProperties *pProperties = NULL);\r
     FWL_ERR            SetText(const CFX_WideString &wsText);\r
-    FX_INT32   GetTextLength() const;\r
-    FWL_ERR            GetText(CFX_WideString &wsText, FX_INT32 nStart = 0, FX_INT32 nCount = -1) const;\r
+    int32_t    GetTextLength() const;\r
+    FWL_ERR            GetText(CFX_WideString &wsText, int32_t nStart = 0, int32_t nCount = -1) const;\r
     FWL_ERR            ClearText();\r
-    FX_INT32   GetCaretPos() const;\r
-    FX_INT32   SetCaretPos(FX_INT32 nIndex, FX_BOOL bBefore = TRUE);\r
-    FWL_ERR            AddSelRange(FX_INT32 nStart, FX_INT32 nCount = -1);\r
-    FX_INT32   CountSelRanges();\r
-    FX_INT32   GetSelRange(FX_INT32 nIndex, FX_INT32 &nStart);\r
+    int32_t    GetCaretPos() const;\r
+    int32_t    SetCaretPos(int32_t nIndex, FX_BOOL bBefore = TRUE);\r
+    FWL_ERR            AddSelRange(int32_t nStart, int32_t nCount = -1);\r
+    int32_t    CountSelRanges();\r
+    int32_t    GetSelRange(int32_t nIndex, int32_t &nStart);\r
     FWL_ERR            ClearSelections();\r
-    FX_INT32   GetLimit();\r
-    FWL_ERR            SetLimit(FX_INT32 nLimit);\r
+    int32_t    GetLimit();\r
+    FWL_ERR            SetLimit(int32_t nLimit);\r
     FWL_ERR            SetAliasChar(FX_WCHAR wAlias);\r
     FWL_ERR            SetFormatString(const CFX_WideString &wsFormat);\r
-    FWL_ERR            Insert(FX_INT32 nStart, FX_LPCWSTR lpText, FX_INT32 nLen);\r
+    FWL_ERR            Insert(int32_t nStart, const FX_WCHAR* lpText, int32_t nLen);\r
     FWL_ERR            DeleteSelections();\r
-    FWL_ERR            DeleteRange(FX_INT32 nStart, FX_INT32 nCount = -1);\r
+    FWL_ERR            DeleteRange(int32_t nStart, int32_t nCount = -1);\r
     FWL_ERR            ReplaceSelections(const CFX_WideStringC &wsReplace);\r
-    FWL_ERR            Replace(FX_INT32 nStart, FX_INT32 nLen, const CFX_WideStringC &wsReplace);\r
-    FWL_ERR            DoClipboard(FX_INT32 iCmd);\r
-    FX_BOOL            Redo(FX_BSTR bsRecord);\r
-    FX_BOOL            Undo(FX_BSTR bsRecord);\r
+    FWL_ERR            Replace(int32_t nStart, int32_t nLen, const CFX_WideStringC &wsReplace);\r
+    FWL_ERR            DoClipboard(int32_t iCmd);\r
+    FX_BOOL            Redo(const CFX_ByteStringC& bsRecord);\r
+    FX_BOOL            Undo(const CFX_ByteStringC& bsRecord);\r
     FWL_ERR            SetTabWidth(FX_FLOAT fTabWidth, FX_BOOL bEquidistant);\r
-    FWL_ERR            SetNumberRange(FX_INT32 iMin, FX_INT32 iMax);\r
+    FWL_ERR            SetNumberRange(int32_t iMin, int32_t iMax);\r
     FWL_ERR     SetBackColor(FX_DWORD dwColor);\r
     FWL_ERR     SetFont(const CFX_WideString &wsFont, FX_FLOAT fSize);\r
     FX_BOOL            CanUndo();\r
@@ -50,7 +50,7 @@ public:
     FX_BOOL            Delete();\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
     CFWL_Edit();\r
     virtual ~CFWL_Edit();\r
 };\r