| Index: fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
|
| diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
|
| index 6056e22b79fc2eef1b0805cb7f08402b0e367705..8909cf6429f4f33a782367b449452e696f62f695 100644
|
| --- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
|
| +++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h
|
| @@ -26,15 +26,15 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment {
|
| uint32_t dwFlags) override;
|
| // show or hide caret
|
| void DisplayCaret(CXFA_FFWidget* hWidget,
|
| - FX_BOOL bVisible,
|
| + bool bVisible,
|
| const CFX_RectF* pRtAnchor) override;
|
| // dwPos: (0:bottom 1:top)
|
| - FX_BOOL GetPopupPos(CXFA_FFWidget* hWidget,
|
| - FX_FLOAT fMinPopup,
|
| - FX_FLOAT fMaxPopup,
|
| - const CFX_RectF& rtAnchor,
|
| - CFX_RectF& rtPopup) override;
|
| - FX_BOOL PopupMenu(CXFA_FFWidget* hWidget, CFX_PointF ptPopup) override;
|
| + bool GetPopupPos(CXFA_FFWidget* hWidget,
|
| + FX_FLOAT fMinPopup,
|
| + FX_FLOAT fMaxPopup,
|
| + const CFX_RectF& rtAnchor,
|
| + CFX_RectF& rtPopup) override;
|
| + bool PopupMenu(CXFA_FFWidget* hWidget, CFX_PointF ptPopup) override;
|
|
|
| // dwFlags XFA_PAGEVIEWEVENT_Added, XFA_PAGEVIEWEVENT_Removing
|
| void PageViewEvent(CXFA_FFPageView* pPageView, uint32_t dwFlags) override;
|
| @@ -47,16 +47,16 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment {
|
| int32_t CountPages(CXFA_FFDoc* hDoc) override;
|
| int32_t GetCurrentPage(CXFA_FFDoc* hDoc) override;
|
| void SetCurrentPage(CXFA_FFDoc* hDoc, int32_t iCurPage) override;
|
| - FX_BOOL IsCalculationsEnabled(CXFA_FFDoc* hDoc) override;
|
| - void SetCalculationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled) override;
|
| + bool IsCalculationsEnabled(CXFA_FFDoc* hDoc) override;
|
| + void SetCalculationsEnabled(CXFA_FFDoc* hDoc, bool bEnabled) override;
|
| void GetTitle(CXFA_FFDoc* hDoc, CFX_WideString& wsTitle) override;
|
| void SetTitle(CXFA_FFDoc* hDoc, const CFX_WideString& wsTitle) override;
|
| void ExportData(CXFA_FFDoc* hDoc,
|
| const CFX_WideString& wsFilePath,
|
| - FX_BOOL bXDP) override;
|
| + bool bXDP) override;
|
| void GotoURL(CXFA_FFDoc* hDoc, const CFX_WideString& bsURL) override;
|
| - FX_BOOL IsValidationsEnabled(CXFA_FFDoc* hDoc) override;
|
| - void SetValidationsEnabled(CXFA_FFDoc* hDoc, FX_BOOL bEnabled) override;
|
| + bool IsValidationsEnabled(CXFA_FFDoc* hDoc) override;
|
| + void SetValidationsEnabled(CXFA_FFDoc* hDoc, bool bEnabled) override;
|
| void SetFocusWidget(CXFA_FFDoc* hDoc, CXFA_FFWidget* hWidget) override;
|
| void Print(CXFA_FFDoc* hDoc,
|
| int32_t nStartPage,
|
| @@ -76,33 +76,33 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment {
|
| * @param[in] bEmbedPDF, specifies whether PDF is embedded in the submitted
|
| *content or not.
|
| */
|
| - FX_BOOL SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) override;
|
| + bool SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) override;
|
|
|
| - FX_BOOL GetGlobalProperty(CXFA_FFDoc* hDoc,
|
| - const CFX_ByteStringC& szPropName,
|
| - CFXJSE_Value* pValue) override;
|
| - FX_BOOL SetGlobalProperty(CXFA_FFDoc* hDoc,
|
| - const CFX_ByteStringC& szPropName,
|
| - CFXJSE_Value* pValue) override;
|
| + bool GetGlobalProperty(CXFA_FFDoc* hDoc,
|
| + const CFX_ByteStringC& szPropName,
|
| + CFXJSE_Value* pValue) override;
|
| + bool SetGlobalProperty(CXFA_FFDoc* hDoc,
|
| + const CFX_ByteStringC& szPropName,
|
| + CFXJSE_Value* pValue) override;
|
|
|
| IFX_SeekableReadStream* OpenLinkedFile(CXFA_FFDoc* hDoc,
|
| const CFX_WideString& wsLink) override;
|
|
|
| private:
|
| - FX_BOOL OnBeforeNotifySubmit();
|
| + bool OnBeforeNotifySubmit();
|
| void OnAfterNotifySubmit();
|
| - FX_BOOL NotifySubmit(FX_BOOL bPrevOrPost);
|
| - FX_BOOL SubmitDataInternal(CXFA_FFDoc* hDoc, CXFA_Submit submit);
|
| - FX_BOOL MailToInfo(CFX_WideString& csURL,
|
| - CFX_WideString& csToAddress,
|
| - CFX_WideString& csCCAddress,
|
| - CFX_WideString& csBCCAddress,
|
| - CFX_WideString& csSubject,
|
| - CFX_WideString& csMsg);
|
| - FX_BOOL ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler,
|
| - int fileType,
|
| - FPDF_DWORD encodeType,
|
| - FPDF_DWORD flag);
|
| + bool NotifySubmit(bool bPrevOrPost);
|
| + bool SubmitDataInternal(CXFA_FFDoc* hDoc, CXFA_Submit submit);
|
| + bool MailToInfo(CFX_WideString& csURL,
|
| + CFX_WideString& csToAddress,
|
| + CFX_WideString& csCCAddress,
|
| + CFX_WideString& csBCCAddress,
|
| + CFX_WideString& csSubject,
|
| + CFX_WideString& csMsg);
|
| + bool ExportSubmitFile(FPDF_FILEHANDLER* ppFileHandler,
|
| + int fileType,
|
| + FPDF_DWORD encodeType,
|
| + FPDF_DWORD flag);
|
| void ToXFAContentFlags(CFX_WideString csSrcContent, FPDF_DWORD& flag);
|
|
|
| CPDFXFA_Context* const m_pContext; // Not owned;
|
|
|