diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-04-10 09:31:46 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-04-10 09:31:46 +0200 |
commit | 1d25e1de0b9498e469cb052b2d86bf7f7ae6adae (patch) | |
tree | aadf57192d9f7fb1c38c9fb7f8f5099b04fe17cf /sfx2/source/doc/docfile.cxx | |
parent | Missing include (diff) | |
download | core-1d25e1de0b9498e469cb052b2d86bf7f7ae6adae.tar.gz core-1d25e1de0b9498e469cb052b2d86bf7f7ae6adae.zip |
Clean up function declarations and some unused functions
Change-Id: I9d6e9df0b686c61597aaa0e194ab321445671a20
Diffstat (limited to 'sfx2/source/doc/docfile.cxx')
-rw-r--r-- | sfx2/source/doc/docfile.cxx | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/sfx2/source/doc/docfile.cxx b/sfx2/source/doc/docfile.cxx index dbe72e1b1241..a4c0c72bc811 100644 --- a/sfx2/source/doc/docfile.cxx +++ b/sfx2/source/doc/docfile.cxx @@ -164,48 +164,6 @@ bool IsLockingUsed() } // anonymous namespace - - - -class SfxMediumHandler_Impl : public ::cppu::WeakImplHelper1< com::sun::star::task::XInteractionHandler > -{ - com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > m_xInter; - -public: - virtual void SAL_CALL handle( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest >& xRequest ) - throw( com::sun::star::uno::RuntimeException, std::exception ) SAL_OVERRIDE; - - SfxMediumHandler_Impl( com::sun::star::uno::Reference< com::sun::star::task::XInteractionHandler > xInteraction ) - : m_xInter( xInteraction ) - {} - - virtual ~SfxMediumHandler_Impl(); -}; - - -SfxMediumHandler_Impl::~SfxMediumHandler_Impl() -{ -} - - -void SAL_CALL SfxMediumHandler_Impl::handle( const com::sun::star::uno::Reference< com::sun::star::task::XInteractionRequest >& xRequest ) - throw( com::sun::star::uno::RuntimeException, std::exception ) -{ - if( !m_xInter.is() ) - return; - - com::sun::star::uno::Any aRequest = xRequest->getRequest(); - com::sun::star::ucb::InteractiveIOException aIoException; - com::sun::star::ucb::UnsupportedDataSinkException aSinkException; - if ( (aRequest >>= aIoException) && ( aIoException.Code == IOErrorCode_ACCESS_DENIED || aIoException.Code == IOErrorCode_LOCKING_VIOLATION ) ) - return; - else - if ( aRequest >>= aSinkException ) - return; - else - m_xInter->handle( xRequest ); -} - class SfxMedium_Impl : boost::noncopyable { public: |