Remove 2 other unused methods

Change-Id: I54b00335020676ada0bcb09c45410e31fe74b59c
This commit is contained in:
Julien Nabet
2012-10-06 08:30:33 +02:00
parent c978bd3486
commit 27fafb78f1
5 changed files with 0 additions and 56 deletions

View File

@@ -123,8 +123,4 @@ void Communicator::disposeListener()
}
}
Transmitter* Communicator::getTransmitter()
{
return pTransmitter;
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -45,7 +45,6 @@ namespace sd
Communicator( BufferedStreamSocket *pSocket );
~Communicator();
Transmitter* getTransmitter();
void presentationStarted( const css::uno::Reference<
css::presentation::XSlideShowController > &rController );
void informListenerDestroyed();

View File

@@ -85,7 +85,6 @@ void ImagePreparer::execute()
}
sendNotes( i );
}
// notesToHtml( 0 );
mRef.clear();
}
@@ -220,53 +219,6 @@ void ImagePreparer::sendNotes( sal_uInt32 aSlideNumber )
}
sal_Bool ExportTo( uno::Reference< drawing::XDrawPage>& aNotesPage, String aUrl );
OString ImagePreparer::notesToHtml( sal_uInt32 aSlideNumber )
{
OString aRet("");
OUString aFileURL;
FileBase::createTempFile( 0, 0, &aFileURL );
fprintf( stderr, "%s", OUStringToOString( aFileURL, RTL_TEXTENCODING_UTF8).getStr() );
if ( !xController->isRunning() )
return "";
// Get the page
uno::Reference< drawing::XDrawPage > xNotesPage;
uno::Reference< drawing::XDrawPage > xSourceDoc(
xController->getSlideByIndex( aSlideNumber ),
uno::UNO_QUERY_THROW );
uno::Reference<presentation::XPresentationPage> xPresentationPage(
xSourceDoc, UNO_QUERY);
if (xPresentationPage.is())
xNotesPage = uno::Reference< drawing::XDrawPage >(
xPresentationPage->getNotesPage(), uno::UNO_QUERY_THROW );
else
return "";
ExportTo( xNotesPage, aFileURL );
// FIXME: error handling.
// File aFile( aFileURL );
// aFile.open(0);
// sal_uInt64 aRead;
// rSize = 0;
// aFile.getSize( rSize );
// uno::Sequence<sal_Int8> aContents( rSize );
// aFile.read( aContents.getArray(), rSize, aRead );
// aFile.close();
// File::remove( aFileURL );
// return aContents;
return aRet;
}
// Code copied from sdremote/source/presenter/PresenterNotesView.cxx
OString ImagePreparer::prepareNotes( sal_uInt32 aSlideNumber )

View File

@@ -45,7 +45,6 @@ private:
void sendNotes( sal_uInt32 aSlideNumber );
rtl::OString prepareNotes( sal_uInt32 aSlideNumber );
rtl::OString notesToHtml( sal_uInt32 aSlideNumber );
};
}

View File

@@ -87,8 +87,6 @@ oox::ole::AxFormPageModel::AxFormPageModel()
oox::ole::AxMultiPageModel::AxMultiPageModel()
oox::ole::AxTabStripModel::AxTabStripModel()
oox::xls::BiffDrawingObjectBase::BiffDrawingObjectBase(oox::xls::WorksheetHelper const&)
sd::Communicator::getTransmitter()
sd::ImagePreparer::notesToHtml(unsigned int)
sd::LeftDrawPaneShell::RegisterInterface(SfxModule*)
sd::LeftImpressPaneShell::RegisterInterface(SfxModule*)
sd::ToolPanelPaneShell::RegisterInterface(SfxModule*)