From 4bf156f6523567517d9abd4df5941066d83d5a4e Mon Sep 17 00:00:00 2001 From: Andrzej Hunt Date: Thu, 25 Sep 2014 10:08:54 +0100 Subject: TEMPORARY: We need OfficeIPCThread for LOK on Android for now. LOK uses the OfficeIPCThread to know that soffice_main is ready -- we should have some form of separate condition instead since I don't think we need any of the actual functionality here for Android. Change-Id: I27030383aae4d7895725c2161c53617f896a5f83 --- desktop/source/app/officeipcthread.cxx | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'desktop') diff --git a/desktop/source/app/officeipcthread.cxx b/desktop/source/app/officeipcthread.cxx index df00bdb33ccd..cc3014106a84 100644 --- a/desktop/source/app/officeipcthread.cxx +++ b/desktop/source/app/officeipcthread.cxx @@ -57,7 +57,7 @@ const int OfficeIPCThread::sc_nShSeqLength = 5; namespace { -#if HAVE_FEATURE_DESKTOP +//#if HAVE_FEATURE_DESKTOP static char const ARGUMENT_PREFIX[] = "InternalIPC::Arguments"; static char const SEND_ARGUMENTS[] = "InternalIPC::SendArguments"; @@ -87,7 +87,7 @@ OString readStringFromPipe(osl::StreamPipe & pipe) { } } -#endif +//#endif } @@ -104,7 +104,7 @@ namespace desktop namespace { -#if HAVE_FEATURE_DESKTOP +//#if HAVE_FEATURE_DESKTOP class Parser: public CommandLineArgs::Supplier { public: @@ -241,7 +241,7 @@ bool addArgument(OStringBuffer &rArguments, char prefix, return true; } -#endif +//#endif } @@ -449,7 +449,7 @@ void OfficeIPCThread::RequestsCompleted( int nCount ) OfficeIPCThread::Status OfficeIPCThread::EnableOfficeIPCThread() { -#if HAVE_FEATURE_DESKTOP +//#if HAVE_FEATURE_DESKTOP ::osl::MutexGuard aGuard( GetMutex() ); if( pGlobalOfficeIPCThread.is() ) @@ -604,15 +604,15 @@ OfficeIPCThread::Status OfficeIPCThread::EnableOfficeIPCThread() return IPC_STATUS_2ND_OFFICE; } -#else - pGlobalOfficeIPCThread = rtl::Reference< OfficeIPCThread >(new OfficeIPCThread); -#endif +// #else +// pGlobalOfficeIPCThread = rtl::Reference< OfficeIPCThread >(new OfficeIPCThread); +// #endif return IPC_STATUS_OK; } void OfficeIPCThread::DisableOfficeIPCThread(bool join) { -#if HAVE_FEATURE_DESKTOP +//#if HAVE_FEATURE_DESKTOP osl::ClearableMutexGuard aMutex( GetMutex() ); if( pGlobalOfficeIPCThread.is() ) @@ -635,9 +635,9 @@ void OfficeIPCThread::DisableOfficeIPCThread(bool join) pOfficeIPCThread->join(); } } -#else - (void) join; -#endif +//#else +// (void) join; +// #endif } OfficeIPCThread::OfficeIPCThread() : @@ -689,7 +689,7 @@ bool OfficeIPCThread::IsEnabled() void OfficeIPCThread::execute() { -#if HAVE_FEATURE_DESKTOP +//#if HAVE_FEATURE_DESKTOP do { osl::StreamPipe aStreamPipe; @@ -967,7 +967,7 @@ void OfficeIPCThread::execute() salhelper::Thread::wait( tval ); } } while( schedule() ); -#endif +//#endif } static void AddToDispatchList( -- cgit