Merge to XFA: Remove FX_BSTR and FX_WSTR typedefs.
[pdfium.git] / fpdfsdk / include / fpdfxfa / fpdfxfa_doc.h
index 163120b..cc871ba 100644 (file)
@@ -68,10 +68,10 @@ public:
        virtual FX_BOOL         IsCalculationsEnabled(IXFA_Doc* hDoc);\r
        virtual void            SetCalculationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled);\r
        virtual void            GetTitle(IXFA_Doc* hDoc, CFX_WideString &wsTitle);\r
-       virtual void            SetTitle(IXFA_Doc* hDoc, FX_WSTR wsTitle);\r
-       virtual void            ExportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath, FX_BOOL bXDP = TRUE);\r
-       virtual void            ImportData(IXFA_Doc* hDoc, FX_WSTR wsFilePath);\r
-       virtual void            GotoURL(IXFA_Doc* hDoc, FX_WSTR bsURL, FX_BOOL bAppend = TRUE);\r
+       virtual void            SetTitle(IXFA_Doc* hDoc, const CFX_WideStringC& wsTitle);\r
+       virtual void            ExportData(IXFA_Doc* hDoc, const CFX_WideStringC& wsFilePath, FX_BOOL bXDP = TRUE);\r
+       virtual void            ImportData(IXFA_Doc* hDoc, const CFX_WideStringC& wsFilePath);\r
+       virtual void            GotoURL(IXFA_Doc* hDoc, const CFX_WideStringC& bsURL, FX_BOOL bAppend = TRUE);\r
        virtual FX_BOOL         IsValidationsEnabled(IXFA_Doc* hDoc);\r
        virtual void            SetValidationsEnabled(IXFA_Doc* hDoc, FX_BOOL bEnabled);\r
        virtual void            SetFocusWidget(IXFA_Doc* hDoc, IXFA_Widget* hWidget);\r
@@ -86,7 +86,7 @@ public:
        //SignaturePseudoModel method\r
        //TODO:\r
        virtual int32_t                 Verify(IXFA_Doc* hDoc, CXFA_Node* pSigNode, FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler, SignatureInfo &info*/) {return 0;}\r
-       virtual FX_BOOL                         Sign(IXFA_Doc* hDoc, CXFA_NodeList* pNodeList, FX_WSTR wsExpression, FX_WSTR wsXMLIdent, FX_WSTR wsValue = FX_WSTRC(L"open"), FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler = NULL, SignatureInfo &info*/) {return 0;}\r
+       virtual FX_BOOL                         Sign(IXFA_Doc* hDoc, CXFA_NodeList* pNodeList, const CFX_WideStringC& wsExpression, const CFX_WideStringC& wsXMLIdent, const CFX_WideStringC& wsValue = FX_WSTRC(L"open"), FX_BOOL bUsed = TRUE/*, SecurityHandler* pHandler = NULL, SignatureInfo &info*/) {return 0;}\r
        virtual CXFA_NodeList*          Enumerate(IXFA_Doc* hDoc) {return 0;}\r
        virtual FX_BOOL                         Clear(IXFA_Doc* hDoc, CXFA_Node* pSigNode, FX_BOOL bCleared = TRUE) {return 0;}\r
 \r
@@ -105,19 +105,19 @@ public:
         */\r
        virtual FX_BOOL         SubmitData(IXFA_Doc* hDoc, CXFA_Submit submit);\r
 \r
-       virtual FX_BOOL         CheckWord(IXFA_Doc* hDoc, FX_BSTR sWord){return FALSE;}\r
-       virtual FX_BOOL         GetSuggestWords(IXFA_Doc* hDoc, FX_BSTR sWord, CFX_ByteStringArray& sSuggest){return FALSE;}\r
+       virtual FX_BOOL         CheckWord(IXFA_Doc* hDoc, const CFX_ByteStringC& sWord){return FALSE;}\r
+       virtual FX_BOOL         GetSuggestWords(IXFA_Doc* hDoc, const CFX_ByteStringC& sWord, CFX_ByteStringArray& sSuggest){return FALSE;}\r
 \r
        //Get PDF javascript object, set the object to hValue.\r
-       virtual FX_BOOL         GetPDFScriptObject(IXFA_Doc* hDoc, FX_BSTR utf8Name, FXJSE_HVALUE hValue);\r
+       virtual FX_BOOL         GetPDFScriptObject(IXFA_Doc* hDoc, const CFX_ByteStringC& utf8Name, FXJSE_HVALUE hValue);\r
 \r
-       virtual FX_BOOL         GetGlobalProperty(IXFA_Doc* hDoc, FX_BSTR szPropName, FXJSE_HVALUE hValue);\r
-       virtual FX_BOOL         SetGlobalProperty(IXFA_Doc* hDoc, FX_BSTR szPropName, FXJSE_HVALUE hValue);\r
+       virtual FX_BOOL         GetGlobalProperty(IXFA_Doc* hDoc, const CFX_ByteStringC& szPropName, FXJSE_HVALUE hValue);\r
+       virtual FX_BOOL         SetGlobalProperty(IXFA_Doc* hDoc, const CFX_ByteStringC& szPropName, FXJSE_HVALUE hValue);\r
        virtual CPDF_Document*  OpenPDF(IXFA_Doc* hDoc, IFX_FileRead* pFile, FX_BOOL bTakeOverFile){return NULL;}\r
 \r
        virtual IFX_FileRead*   OpenLinkedFile(IXFA_Doc* hDoc, const CFX_WideString& wsLink);\r
 \r
-       FX_BOOL         _GetHValueByName(FX_BSTR utf8Name, FXJSE_HVALUE hValue, IFXJS_Runtime* runTime);\r
+       FX_BOOL         _GetHValueByName(const CFX_ByteStringC& utf8Name, FXJSE_HVALUE hValue, IFXJS_Runtime* runTime);\r
        FX_BOOL         _OnBeforeNotifySumbit();\r
        void            _OnAfterNotifySumbit();\r
        FX_BOOL         _NotifySubmit(FX_BOOL bPrevOrPost);\r