Lines 35-40
Link Here
|
35 |
#include <com/sun/star/beans/PropertyAttribute.hpp> |
35 |
#include <com/sun/star/beans/PropertyAttribute.hpp> |
36 |
#include <com/sun/star/drawing/framework/XControllerManager.hpp> |
36 |
#include <com/sun/star/drawing/framework/XControllerManager.hpp> |
37 |
#include <com/sun/star/container/XIndexAccess.hpp> |
37 |
#include <com/sun/star/container/XIndexAccess.hpp> |
|
|
38 |
#include <com/sun/star/frame/XDispatchProvider.hpp> |
39 |
#include <com/sun/star/util/URL.hpp> |
38 |
|
40 |
|
39 |
#include <cppuhelper/bootstrap.hxx> |
41 |
#include <cppuhelper/bootstrap.hxx> |
40 |
|
42 |
|
Lines 72-77
using ::com::sun::star::awt::XWindow;
Link Here
|
72 |
using namespace ::sd; |
74 |
using namespace ::sd; |
73 |
using namespace ::cppu; |
75 |
using namespace ::cppu; |
74 |
using namespace ::vos; |
76 |
using namespace ::vos; |
|
|
77 |
using namespace ::com::sun::star; |
75 |
using namespace ::com::sun::star::uno; |
78 |
using namespace ::com::sun::star::uno; |
76 |
using namespace ::com::sun::star::presentation; |
79 |
using namespace ::com::sun::star::presentation; |
77 |
using namespace ::com::sun::star::drawing; |
80 |
using namespace ::com::sun::star::drawing; |
Lines 777-782
void SAL_CALL SlideShow::end() throw(RuntimeException)
Link Here
|
777 |
if( pDrawViewShell ) |
780 |
if( pDrawViewShell ) |
778 |
pDrawViewShell->SwitchPage( (USHORT)xController->getRestoreSlide() ); |
781 |
pDrawViewShell->SwitchPage( (USHORT)xController->getRestoreSlide() ); |
779 |
} |
782 |
} |
|
|
783 |
|
784 |
if( pViewShell->GetDoc()->IsStartWithPresentation() ) |
785 |
{ |
786 |
pViewShell->GetDoc()->SetStartWithPresentation( false ); |
787 |
|
788 |
Reference<frame::XDispatchProvider> xProvider(pViewShell->GetViewShellBase().GetController()->getFrame(), |
789 |
UNO_QUERY); |
790 |
if( xProvider.is() ) |
791 |
{ |
792 |
util::URL aURL; |
793 |
aURL.Complete = ::rtl::OUString::createFromAscii(".uno:CloseFrame"); |
794 |
|
795 |
uno::Reference< frame::XDispatch > xDispatch( |
796 |
xProvider->queryDispatch( |
797 |
aURL, ::rtl::OUString(), 0)); |
798 |
if( xDispatch.is() ) |
799 |
{ |
800 |
xDispatch->dispatch(aURL, |
801 |
uno::Sequence< beans::PropertyValue >()); |
802 |
} |
803 |
} |
804 |
} |
780 |
} |
805 |
} |
781 |
} |
806 |
} |
782 |
mpCurrentViewShellBase = 0; |
807 |
mpCurrentViewShellBase = 0; |