Notes export now working.
Change-Id: I025c3e6421614c68ea76c9b8afd351abca8b6fad
This commit is contained in:
committed by
Michael Meeks
parent
191985e3e5
commit
0c1f4762ca
@@ -58,7 +58,6 @@ public class TestClient extends Activity {
|
|||||||
@Override
|
@Override
|
||||||
protected void onPause() {
|
protected void onPause() {
|
||||||
super.onPause();
|
super.onPause();
|
||||||
// doUnbindService();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
@@ -66,6 +65,7 @@ public class TestClient extends Activity {
|
|||||||
// TODO Auto-generated method stub
|
// TODO Auto-generated method stub
|
||||||
mCommunicationService.disconnect();
|
mCommunicationService.disconnect();
|
||||||
stopService(new Intent(this, CommunicationService.class));
|
stopService(new Intent(this, CommunicationService.class));
|
||||||
|
doUnbindService();
|
||||||
finish();
|
finish();
|
||||||
super.onBackPressed();
|
super.onBackPressed();
|
||||||
}
|
}
|
||||||
|
@@ -184,8 +184,32 @@ uno::Sequence<sal_Int8> ImagePreparer::preparePreview(
|
|||||||
void ImagePreparer::sendNotes( sal_uInt32 aSlideNumber )
|
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 );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user