diff options
author | Dan Sinclair <dsinclair@chromium.org> | 2017-11-07 21:34:30 +0000 |
---|---|---|
committer | Chromium commit bot <commit-bot@chromium.org> | 2017-11-07 21:34:30 +0000 |
commit | b8656256af8855c652415095438d5c932790a2b2 (patch) | |
tree | 2dc4f7ef4d0f6df8f141867a4b1e160ecf5de6ce /fpdfsdk/fpdfxfa | |
parent | 31ed75b714b80b8497b35825bb926c5abb035299 (diff) | |
download | pdfium-b8656256af8855c652415095438d5c932790a2b2.tar.xz |
Rename CXFA_Submit to CXFA_SubmitData
This CL renames CXFA_Submit to CXFA_SubmitData to show it's part of the
data hierarchy.
Change-Id: I6f580a28e41e54ffa1f1c7b799d97f079303463f
Reviewed-on: https://pdfium-review.googlesource.com/18014
Commit-Queue: dsinclair <dsinclair@chromium.org>
Reviewed-by: Tom Sepez <tsepez@chromium.org>
Diffstat (limited to 'fpdfsdk/fpdfxfa')
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp | 15 | ||||
-rw-r--r-- | fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h | 4 |
2 files changed, 10 insertions, 9 deletions
diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp index 6040517d93..a49b25fc57 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp +++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp @@ -680,12 +680,13 @@ void CPDFXFA_DocEnvironment::OnAfterNotifySubmit() { m_pContext->GetXFADocView()->UpdateDocView(); } -bool CPDFXFA_DocEnvironment::SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) { +bool CPDFXFA_DocEnvironment::SubmitData(CXFA_FFDoc* hDoc, + CXFA_SubmitData submitData) { if (!NotifySubmit(true) || !m_pContext->GetXFADocView()) return false; m_pContext->GetXFADocView()->UpdateDocView(); - bool ret = SubmitDataInternal(hDoc, submit); + bool ret = SubmitDataInternal(hDoc, submitData); NotifySubmit(false); return ret; } @@ -889,13 +890,13 @@ bool CPDFXFA_DocEnvironment::MailToInfo(WideString& csURL, } bool CPDFXFA_DocEnvironment::SubmitDataInternal(CXFA_FFDoc* hDoc, - CXFA_Submit submit) { + CXFA_SubmitData submitData) { CPDFSDK_FormFillEnvironment* pFormFillEnv = m_pContext->GetFormFillEnv(); if (!pFormFillEnv) return false; WideStringView csURLC; - submit.GetSubmitTarget(csURLC); + submitData.GetSubmitTarget(csURLC); WideString csURL(csURLC); if (csURL.IsEmpty()) { WideString ws; @@ -910,10 +911,10 @@ bool CPDFXFA_DocEnvironment::SubmitDataInternal(CXFA_FFDoc* hDoc, FPDF_FILEHANDLER* pFileHandler = nullptr; int fileFlag = -1; - switch (submit.GetSubmitFormat()) { + switch (submitData.GetSubmitFormat()) { case XFA_ATTRIBUTEENUM_Xdp: { WideStringView csContentC; - submit.GetSubmitXDPContent(csContentC); + submitData.GetSubmitXDPContent(csContentC); WideString csContent; csContent = csContentC; csContent.TrimLeft(); @@ -922,7 +923,7 @@ bool CPDFXFA_DocEnvironment::SubmitDataInternal(CXFA_FFDoc* hDoc, space.FromLocal(" "); csContent = space + csContent + space; FPDF_DWORD flag = 0; - if (submit.IsSubmitEmbedPDF()) + if (submitData.IsSubmitEmbedPDF()) flag |= FXFA_PDF; ToXFAContentFlags(csContent, flag); diff --git a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h index 62830b0804..24a61dd773 100644 --- a/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h +++ b/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.h @@ -76,7 +76,7 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment { * @param[in] bEmbedPDF, specifies whether PDF is embedded in the submitted *content or not. */ - bool SubmitData(CXFA_FFDoc* hDoc, CXFA_Submit submit) override; + bool SubmitData(CXFA_FFDoc* hDoc, CXFA_SubmitData submitData) override; bool GetGlobalProperty(CXFA_FFDoc* hDoc, const ByteStringView& szPropName, @@ -93,7 +93,7 @@ class CPDFXFA_DocEnvironment : public IXFA_DocEnvironment { bool OnBeforeNotifySubmit(); void OnAfterNotifySubmit(); bool NotifySubmit(bool bPrevOrPost); - bool SubmitDataInternal(CXFA_FFDoc* hDoc, CXFA_Submit submit); + bool SubmitDataInternal(CXFA_FFDoc* hDoc, CXFA_SubmitData submitData); bool MailToInfo(WideString& csURL, WideString& csToAddress, WideString& csCCAddress, |