diff options
author | Andre Fischer <af@openoffice.org> | 2010-02-23 16:56:05 +0100 |
---|---|---|
committer | Andre Fischer <af@openoffice.org> | 2010-02-23 16:56:05 +0100 |
commit | 3c7bf4b67dbe92880d3cb8b7fb24a882651a7ba1 (patch) | |
tree | 4d7ed5de1548c08e5ec0c5579fe4a990c7a6b557 /sd/source/ui/slidesorter/controller/SlsTransferable.cxx | |
parent | 2318e08d02cd3570f0b89a85ebd7fbac8b233ca4 (diff) |
renaissance1: #i107215# Improved drag and drop.
Diffstat (limited to 'sd/source/ui/slidesorter/controller/SlsTransferable.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsTransferable.cxx | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsTransferable.cxx b/sd/source/ui/slidesorter/controller/SlsTransferable.cxx index f072f6815285..e9c6f58b1289 100644 --- a/sd/source/ui/slidesorter/controller/SlsTransferable.cxx +++ b/sd/source/ui/slidesorter/controller/SlsTransferable.cxx @@ -42,9 +42,11 @@ Transferable::Transferable ( SdDrawDocument* pSrcDoc, ::sd::View* pWorkView, BOOL bInitOnGetData, - SlideSorterViewShell* pViewShell) + SlideSorterViewShell* pViewShell, + const ::boost::shared_ptr<SubstitutionHandler>& rpSubstitutionHandler) : SdTransferable (pSrcDoc, pWorkView, bInitOnGetData), - mpViewShell(pViewShell) + mpViewShell(pViewShell), + mpSubstitutionHandler(rpSubstitutionHandler) { if (mpViewShell != NULL) StartListening(*mpViewShell); @@ -52,6 +54,7 @@ Transferable::Transferable ( + Transferable::~Transferable (void) { if (mpViewShell != NULL) @@ -65,6 +68,7 @@ void Transferable::DragFinished (sal_Int8 nDropAction) { if (mpViewShell != NULL) mpViewShell->DragFinished(nDropAction); + mpSubstitutionHandler.reset(); } @@ -92,4 +96,11 @@ void Transferable::Notify (SfxBroadcaster& rBroadcaster, const SfxHint& rHint) +::boost::shared_ptr<SubstitutionHandler> Transferable::GetSubstitutionHandler (void) const +{ + return mpSubstitutionHandler; +} + + + } } } // end of namespace ::sd::slidesorter::controller |