summaryrefslogtreecommitdiff
path: root/fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp
diff options
context:
space:
mode:
authorDan Sinclair <dsinclair@chromium.org>2017-11-07 21:34:30 +0000
committerChromium commit bot <commit-bot@chromium.org>2017-11-07 21:34:30 +0000
commitb8656256af8855c652415095438d5c932790a2b2 (patch)
tree2dc4f7ef4d0f6df8f141867a4b1e160ecf5de6ce /fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp
parent31ed75b714b80b8497b35825bb926c5abb035299 (diff)
downloadpdfium-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/cpdfxfa_docenvironment.cpp')
-rw-r--r--fpdfsdk/fpdfxfa/cpdfxfa_docenvironment.cpp15
1 files changed, 8 insertions, 7 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);