diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-07-30 09:56:15 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-06 10:23:07 +0100 |
commit | 292bc25e49a1797ef07736c227d74aa105822e6a (patch) | |
tree | 406b0aee041433d23e11988aeccefa07104b684b /sd | |
parent | 0c1f4762caf333d2f32671d2113e450bccd003b8 (diff) |
Basic (unstyled) note export and display working.
Change-Id: Ic17267131d9a777955cd55415e5fe1e106d09e10
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/remotecontrol/ImagePreparer.cxx | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx index 17fdc091f290..fa2f81c43500 100644 --- a/sd/source/ui/remotecontrol/ImagePreparer.cxx +++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx @@ -38,6 +38,7 @@ #include <com/sun/star/document/XFilter.hpp> #include <com/sun/star/document/XExporter.hpp> #include <com/sun/star/lang/XServiceName.hpp> +#include <com/sun/star/presentation/XPresentationPage.hpp> #include <com/sun/star/text/XTextRange.hpp> using namespace ::sd; @@ -221,16 +222,24 @@ OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber ) if ( !xController->isRunning() ) return ""; + uno::Reference<css::drawing::XDrawPage> aNotesPage; uno::Reference< drawing::XDrawPage > xSourceDoc( xController->getSlideByIndex( aSlideNumber ), uno::UNO_QUERY_THROW ); + uno::Reference<presentation::XPresentationPage> xPresentationPage( + xSourceDoc, UNO_QUERY); + if (xPresentationPage.is()) + aNotesPage = xPresentationPage->getNotesPage(); + else + return ""; + static const ::rtl::OUString sNotesShapeName ( "com.sun.star.presentation.NotesShape" ); static const ::rtl::OUString sTextShapeName ( "com.sun.star.drawing.TextShape" ); - uno::Reference<container::XIndexAccess> xIndexAccess ( xSourceDoc, UNO_QUERY); + uno::Reference<container::XIndexAccess> xIndexAccess ( aNotesPage, UNO_QUERY); if (xIndexAccess.is()) { |