Kaydet (Commit) e74a0992 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Exclude WNT-specific includes on other platforms

Change-Id: I7eeae61275269e09092267f2a6ccb27d7bb91ddb
üst 344c2dca
......@@ -50,10 +50,12 @@
#include <targetstatecontrol.hxx>
#include <olecomponent.hxx>
#include "ownview.hxx"
#if defined WNT
#include <olecomponent.hxx>
#endif
using namespace ::com::sun::star;
#ifdef WNT
......
......@@ -17,6 +17,10 @@
* the License at http://www.apache.org/licenses/LICENSE-2.0 .
*/
#include <sal/config.h>
#include <cassert>
#include <com/sun/star/embed/EmbedUpdateModes.hpp>
#include <com/sun/star/embed/EmbedStates.hpp>
#include <com/sun/star/lang/XComponent.hpp>
......@@ -25,10 +29,13 @@
#include <cppuhelper/interfacecontainer.h>
#include <oleembobj.hxx>
#include <olecomponent.hxx>
#include "ownview.hxx"
#if defined WNT
#include <olecomponent.hxx>
#endif
using namespace ::com::sun::star;
sal_Bool KillFile_Impl( const OUString& aURL, const uno::Reference< lang::XMultiServiceFactory >& xFactory );
......@@ -380,14 +387,17 @@ uno::Reference< util::XCloseable > SAL_CALL OleEmbeddedObject::getComponent()
uno::Reference< uno::XInterface >( static_cast< ::cppu::OWeakObject* >(this) ) );
}
if ( !m_pOleComponent )
#if defined WNT
if (m_pOleComponent != 0)
{
// TODO/LATER: Is it correct???
return uno::Reference< util::XCloseable >();
// throw uno::RuntimeException(); // TODO
return uno::Reference< util::XCloseable >( static_cast< ::cppu::OWeakObject* >( m_pOleComponent ), uno::UNO_QUERY );
}
#endif
return uno::Reference< util::XCloseable >( static_cast< ::cppu::OWeakObject* >( m_pOleComponent ), uno::UNO_QUERY );
assert(m_pOleComponent == 0);
// TODO/LATER: Is it correct???
return uno::Reference< util::XCloseable >();
// throw uno::RuntimeException(); // TODO
}
......
......@@ -43,9 +43,12 @@
#include <comphelper/classids.hxx>
#include <osl/thread.hxx>
#include <olecomponent.hxx>
#include <closepreventer.hxx>
#if defined WNT
#include <olecomponent.hxx>
#endif
using namespace ::com::sun::star;
using namespace ::comphelper;
......
......@@ -22,7 +22,10 @@
#include <cppuhelper/factory.hxx>
#include "xolefactory.hxx"
#if defined WNT
#include "xdialogcreator.hxx"
#endif
using namespace ::com::sun::star;
......
......@@ -26,10 +26,14 @@
#include <com/sun/star/embed/NoVisualAreaSizeException.hpp>
#include <oleembobj.hxx>
#include <olecomponent.hxx>
//#include <olecomponent.hxx>
#include <comphelper/mimeconfighelper.hxx>
#include <comphelper/seqstream.hxx>
#if defined WNT
#include <olecomponent.hxx>
#endif
using namespace ::com::sun::star;
using namespace ::comphelper;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment