diff options
Diffstat (limited to 'forms/source/xforms/submission/submission_post.cxx')
-rw-r--r-- | forms/source/xforms/submission/submission_post.cxx | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/forms/source/xforms/submission/submission_post.cxx b/forms/source/xforms/submission/submission_post.cxx index c76d492873d9..d7a92c885964 100644 --- a/forms/source/xforms/submission/submission_post.cxx +++ b/forms/source/xforms/submission/submission_post.cxx @@ -45,11 +45,12 @@ using namespace CSS::uno; using namespace CSS::ucb; using namespace CSS::task; using namespace CSS::io; -using namespace rtl; using namespace osl; using namespace ucbhelper; using namespace std; +using ::rtl::OUString; + CSubmissionPost::CSubmissionPost(const rtl::OUString& aURL, const CSS::uno::Reference< CSS::xml::dom::XDocumentFragment >& aFragment) : CSubmission(aURL, aFragment) @@ -66,7 +67,6 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const CSS::uno::Reference< ucbhelper::Content aContent(m_aURLObj.GetMainURL(INetURLObject::NO_DECODE), aEnvironment); // use post command - OUString aCommandName(RTL_CONSTASCII_USTRINGPARAM("post")); PostCommandArgument2 aPostArgument; aPostArgument.Source = apSerialization->getInputStream(); @@ -78,26 +78,17 @@ CSubmission::SubmissionResult CSubmissionPost::submit(const CSS::uno::Reference< aCommandArgument <<= aPostArgument; aContent.executeCommand( aCommandName, aCommandArgument); - // wait for command to finish - // pProgressHelper->m_cFinished.wait(); - - // CSS::uno::Reference< XOutputStream > xOut(aSink, UNO_QUERY_THROW); - // xOut->closeOutput(); - try { - // m_aResultStream = CSS::uno::Reference< XInputStream >(aSink, UNO_QUERY_THROW); m_aResultStream = aSink->getInputStream(); } catch (Exception&) { OSL_ENSURE(sal_False, "Cannot open reply stream from content"); } } catch (Exception&) { - // XXX OSL_ENSURE(sal_False, "Exception during UCB operatration."); return UNKNOWN_ERROR; } - return SUCCESS; } |