Merge to XFA: Remove FX_BSTR and FX_WSTR typedefs.
[pdfium.git] / xfa / src / fee / src / fee / fde_txtedtengine.h
index 9b55513..c482f5b 100644 (file)
@@ -29,7 +29,7 @@ class CFDE_TxtEdtDoRecord_FieldReplace;
 class IFDE_TxtEdtDoRecord\r
 {\r
 public:\r
-    static IFDE_TxtEdtDoRecord * Create(FX_BSTR bsDoRecord);\r
+    static IFDE_TxtEdtDoRecord * Create(const CFX_ByteStringC& bsDoRecord);\r
     virtual void       Release() = 0;\r
     virtual FX_BOOL Redo() = 0;\r
     virtual FX_BOOL Undo() = 0;\r
@@ -105,8 +105,8 @@ public:
     virtual int32_t    GetSelRange(int32_t nIndex, int32_t &nStart);\r
     virtual void               ClearSelection();\r
 \r
-    virtual FX_BOOL            Redo(FX_BSTR bsRedo);\r
-    virtual FX_BOOL            Undo(FX_BSTR bsUndo);\r
+    virtual FX_BOOL            Redo(const CFX_ByteStringC& bsRedo);\r
+    virtual FX_BOOL            Undo(const CFX_ByteStringC& bsUndo);\r
 \r
     virtual int32_t    StartLayout();\r
     virtual int32_t    DoLayout(IFX_Pause *pPause);\r
@@ -200,7 +200,7 @@ private:
 class CFDE_TxtEdtDoRecord_Insert : public IFDE_TxtEdtDoRecord\r
 {\r
 public:\r
-    CFDE_TxtEdtDoRecord_Insert(FX_BSTR bsDoRecord);\r
+    CFDE_TxtEdtDoRecord_Insert(const CFX_ByteStringC& bsDoRecord);\r
     CFDE_TxtEdtDoRecord_Insert(        CFDE_TxtEdtEngine * pEngine,\r
                                 int32_t nCaret,\r
                                 const FX_WCHAR* lpText,\r
@@ -211,7 +211,7 @@ public:
     virtual void       Serialize(CFX_ByteString &bsDoRecord) const;\r
 protected:\r
     ~CFDE_TxtEdtDoRecord_Insert();\r
-    void                       Deserialize(FX_BSTR bsDoRecord);\r
+    void                       Deserialize(const CFX_ByteStringC& bsDoRecord);\r
 private:\r
     CFDE_TxtEdtEngine *        m_pEngine;\r
     int32_t                    m_nCaret;\r
@@ -220,7 +220,7 @@ private:
 class CFDE_TxtEdtDoRecord_DeleteRange : public IFDE_TxtEdtDoRecord\r
 {\r
 public:\r
-    CFDE_TxtEdtDoRecord_DeleteRange(FX_BSTR bsDoRecord);\r
+    CFDE_TxtEdtDoRecord_DeleteRange(const CFX_ByteStringC& bsDoRecord);\r
     CFDE_TxtEdtDoRecord_DeleteRange(CFDE_TxtEdtEngine * pEngine,\r
                                     int32_t nIndex,\r
                                     int32_t nCaret,\r
@@ -232,7 +232,7 @@ public:
     virtual void       Serialize(CFX_ByteString &bsDoRecord) const;\r
 protected:\r
     ~CFDE_TxtEdtDoRecord_DeleteRange();\r
-    void                       Deserialize(FX_BSTR bsDoRecord);\r
+    void                       Deserialize(const CFX_ByteStringC& bsDoRecord);\r
 private:\r
     CFDE_TxtEdtEngine *        m_pEngine;\r
     FX_BOOL                            m_bSel;\r
@@ -244,7 +244,7 @@ private:
 class CFDE_TxtEdtDoRecord_FieldInsert : public IFDE_TxtEdtDoRecord\r
 {\r
 public:\r
-    CFDE_TxtEdtDoRecord_FieldInsert(FX_BSTR bsDoRecord);\r
+    CFDE_TxtEdtDoRecord_FieldInsert(const CFX_ByteStringC& bsDoRecord);\r
     CFDE_TxtEdtDoRecord_FieldInsert(CFDE_TxtEdtEngine * pEngine,\r
                                     int32_t nCaret,\r
                                     CFDE_TxtEdtField * pField,\r
@@ -260,7 +260,7 @@ public:
     virtual void       Serialize(CFX_ByteString &bsDoRecord) const;\r
 protected:\r
     ~CFDE_TxtEdtDoRecord_FieldInsert();\r
-    void       Deserialize(FX_BSTR bsDoRecord);\r
+    void       Deserialize(const CFX_ByteStringC& bsDoRecord);\r
 \r
 private:\r
     CFDE_TxtEdtEngine *        m_pEngine;\r
@@ -276,7 +276,7 @@ private:
 class CFDE_TxtEdtDoRecord_FieldDelete : public IFDE_TxtEdtDoRecord\r
 {\r
 public:\r
-    CFDE_TxtEdtDoRecord_FieldDelete(FX_BSTR bsDoRecord);\r
+    CFDE_TxtEdtDoRecord_FieldDelete(const CFX_ByteStringC& bsDoRecord);\r
     CFDE_TxtEdtDoRecord_FieldDelete(CFDE_TxtEdtEngine * pEngine,\r
                                     int32_t nCaret,\r
                                     CFDE_TxtEdtField * pField,\r
@@ -292,7 +292,7 @@ public:
     virtual void       Serialize(CFX_ByteString &bsDoRecord) const;\r
 protected:\r
     ~CFDE_TxtEdtDoRecord_FieldDelete();\r
-    void       Deserialize(FX_BSTR bsDoRecord);\r
+    void       Deserialize(const CFX_ByteStringC& bsDoRecord);\r
 private:\r
     CFDE_TxtEdtEngine * m_pEngine;\r
     int32_t                    m_nCaret;\r
@@ -307,7 +307,7 @@ private:
 class CFDE_TxtEdtDoRecord_FieldReplace : public IFDE_TxtEdtDoRecord\r
 {\r
 public:\r
-    CFDE_TxtEdtDoRecord_FieldReplace(FX_BSTR bsDoRecord);\r
+    CFDE_TxtEdtDoRecord_FieldReplace(const CFX_ByteStringC& bsDoRecord);\r
     CFDE_TxtEdtDoRecord_FieldReplace(  CFDE_TxtEdtEngine * pEngine,\r
                                         int32_t nCaret,\r
                                         int32_t nNewCaret,\r
@@ -324,7 +324,7 @@ public:
     virtual void       Serialize(CFX_ByteString &bsDoRecord) const;\r
 protected:\r
     ~CFDE_TxtEdtDoRecord_FieldReplace();\r
-    void       Deserialize(FX_BSTR bsDoRecord);\r
+    void       Deserialize(const CFX_ByteStringC& bsDoRecord);\r
 private:\r
     CFDE_TxtEdtEngine * m_pEngine;\r
     int32_t                    m_nCaret;\r