diff options
author | Andrzej J.R. Hunt <andrzej@ahunt.org> | 2012-07-30 09:25:18 +0200 |
---|---|---|
committer | Michael Meeks <michael.meeks@suse.com> | 2012-08-06 10:23:07 +0100 |
commit | 0c1f4762caf333d2f32671d2113e450bccd003b8 (patch) | |
tree | 9c19e8c74a206416b4f9f48bb2ba3a967681727e /sd | |
parent | 191985e3e50ea0770c29d264b79f58497e9a894d (diff) |
Notes export now working.
Change-Id: I025c3e6421614c68ea76c9b8afd351abca8b6fad
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/remotecontrol/ImagePreparer.cxx | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/sd/source/ui/remotecontrol/ImagePreparer.cxx b/sd/source/ui/remotecontrol/ImagePreparer.cxx index c129f3babfac..17fdc091f290 100644 --- a/sd/source/ui/remotecontrol/ImagePreparer.cxx +++ b/sd/source/ui/remotecontrol/ImagePreparer.cxx @@ -184,8 +184,32 @@ uno::Sequence<sal_Int8> ImagePreparer::preparePreview( void ImagePreparer::sendNotes( sal_uInt32 aSlideNumber ) { - OString aOut = prepareNotes( aSlideNumber ); + OString aNotes = prepareNotes( aSlideNumber ); + if ( aNotes.getLength() == 0 ) + return; + +// OUStringBuffer aStrBuffer; +// ::sax::Converter::encodeBase64( aStrBuffer, aTemp ); +// +// OString aNotes = OUStringToOString( +// aStrBuffer.makeStringAndClear(), RTL_TEXTENCODING_UTF8 ); + + if ( !xController->isRunning() ) + return; + + // Start the writing + OStringBuffer aBuffer; + + aBuffer.append( "slide_notes\n" ); + + aBuffer.append( OString::valueOf( sal_Int32( aSlideNumber ) ).getStr() ); + aBuffer.append( "\n" ); + + aBuffer.append( aNotes ); + aBuffer.append( "\n\n" ); + pTransmitter->addMessage( aBuffer.makeStringAndClear(), + Transmitter::Priority::LOW ); } |