diff options
Diffstat (limited to 'fpdfsdk')
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp | 4 | ||||
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h | 5 |
2 files changed, 9 insertions, 0 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp index 9d1ceacf02..269b6d4b2f 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp @@ -613,6 +613,7 @@ FX_ARGB CPDFXFA_DocEnvironment::GetHighlightColor(CXFA_FFDoc* hDoc) { pInterForm->GetHighlightColor(FormFieldType::kXFA)); } +#ifdef PDF_XFA_ELEMENT_SUBMIT_ENABLED bool CPDFXFA_DocEnvironment::NotifySubmit(bool bPrevOrPost) { if (bPrevOrPost) return OnBeforeNotifySubmit(); @@ -702,6 +703,7 @@ bool CPDFXFA_DocEnvironment::Submit(CXFA_FFDoc* hDoc, CXFA_Submit* submit) { NotifySubmit(false); return ret; } +#endif // PDF_XFA_ELEMENT_SUBMIT_ENABLED RetainPtr<IFX_SeekableReadStream> CPDFXFA_DocEnvironment::OpenLinkedFile( CXFA_FFDoc* hDoc, @@ -901,6 +903,7 @@ bool CPDFXFA_DocEnvironment::MailToInfo(WideString& csURL, return true; } +#ifdef PDF_XFA_ELEMENT_SUBMIT_ENABLED bool CPDFXFA_DocEnvironment::SubmitInternal(CXFA_FFDoc* hDoc, CXFA_Submit* submit) { CPDFSDK_FormFillEnvironment* pFormFillEnv = m_pContext->GetFormFillEnv(); @@ -978,6 +981,7 @@ bool CPDFXFA_DocEnvironment::SubmitInternal(CXFA_FFDoc* hDoc, pFormFillEnv->UploadTo(pFileHandler, fileFlag, AsFPDFWideString(&bs)); return true; } +#endif // PDF_XFA_ELEMENT_SUBMIT_ENABLED bool CPDFXFA_DocEnvironment::SetPropertyInNonXFAGlobalObject( CXFA_FFDoc* hDoc, diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h index 1c46a37fe8..33e04ed376 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h @@ -62,7 +62,9 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment { uint32_t dwOptions) override; FX_ARGB GetHighlightColor(CXFA_FFDoc* hDoc) override; +#ifdef PDF_XFA_ELEMENT_SUBMIT_ENABLED bool Submit(CXFA_FFDoc* hDoc, CXFA_Submit* submit) override; +#endif // PDF_XFA_ELEMENT_SUBMIT_ENABLED bool GetPropertyFromNonXFAGlobalObject(CXFA_FFDoc* hDoc, const ByteStringView& szPropName, @@ -76,10 +78,13 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment { const WideString& wsLink) override; private: +#ifdef PDF_XFA_ELEMENT_SUBMIT_ENABLED bool OnBeforeNotifySubmit(); void OnAfterNotifySubmit(); bool NotifySubmit(bool bPrevOrPost); bool SubmitInternal(CXFA_FFDoc* hDoc, CXFA_Submit* submit); +#endif // PDF_XFA_ELEMENT_SUBMIT_ENABLED + bool MailToInfo(WideString& csURL, WideString& csToAddress, WideString& csCCAddress, |