summaryrefslogtreecommitdiff
path: root/embedserv/source
diff options
context:
space:
mode:
authorMatúš Kukan <matus.kukan@gmail.com>2012-02-29 10:45:21 +0100
committerMatúš Kukan <matus.kukan@gmail.com>2012-03-10 21:23:17 +0100
commitf2abfdb94e111ba551bb97ec06fa5b57be3f6299 (patch)
tree823ff8aa501746e760c823a874914d60194b8308 /embedserv/source
parentc604a738f48ffa4c12f7c9801d03a146303d3123 (diff)
embedserv: convert to gbuild
Diffstat (limited to 'embedserv/source')
-rw-r--r--embedserv/source/embed/makefile.mk80
-rw-r--r--embedserv/source/embed/stdafx.cpp16
-rw-r--r--embedserv/source/embed/xwin.cxx349
-rw-r--r--embedserv/source/inprocserv/dllentry.cxx13
-rw-r--r--embedserv/source/inprocserv/exports.dxp5
-rw-r--r--embedserv/source/inprocserv/makefile.mk80
6 files changed, 8 insertions, 535 deletions
diff --git a/embedserv/source/embed/makefile.mk b/embedserv/source/embed/makefile.mk
deleted file mode 100644
index 0c2415987daa..000000000000
--- a/embedserv/source/embed/makefile.mk
+++ /dev/null
@@ -1,80 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=..$/..
-
-PRJNAME=embedserv
-TARGET=emser
-
-
-# --- Settings -----------------------------------------------------
-
-.INCLUDE : settings.mk
-
-.IF "$(DISABLE_ATL)"==""
-
-LIBTARGET=NO
-USE_DEFFILE=NO
-
-INCPRE+= $(ATL_INCLUDE)
-
-# --- Files --------------------------------------------------------
-
-SLOFILES = \
- $(SLO)$/register.obj \
- $(SLO)$/servprov.obj \
- $(SLO)$/docholder.obj \
- $(SLO)$/ed_ipersiststr.obj \
- $(SLO)$/ed_idataobj.obj \
- $(SLO)$/ed_ioleobject.obj \
- $(SLO)$/ed_iinplace.obj \
- $(SLO)$/iipaobj.obj \
- $(SLO)$/guid.obj \
- $(SLO)$/esdll.obj \
- $(SLO)$/intercept.obj \
- $(SLO)$/syswinwrapper.obj \
- $(SLO)$/tracker.obj
-
-EXCEPTIONSFILES= \
- $(SLO)$/register.obj \
- $(SLO)$/servprov.obj \
- $(SLO)$/docholder.obj \
- $(SLO)$/ed_ipersiststr.obj \
- $(SLO)$/ed_idataobj.obj \
- $(SLO)$/ed_iinplace.obj \
- $(SLO)$/ed_ioleobject.obj \
- $(SLO)$/iipaobj.obj \
- $(SLO)$/intercept.obj \
- $(SLO)$/syswinwrapper.obj \
- $(SLO)$/tracker.obj
-
-.ENDIF
-
-# --- Targets -------------------------------------------------------
-
-.INCLUDE : target.mk
-
diff --git a/embedserv/source/embed/stdafx.cpp b/embedserv/source/embed/stdafx.cpp
deleted file mode 100644
index efb58b5d7773..000000000000
--- a/embedserv/source/embed/stdafx.cpp
+++ /dev/null
@@ -1,16 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-// stdafx1.cpp : source file that includes just the standard includes
-// stdafx1.pch will be the pre-compiled header
-// stdafx1.obj will contain the pre-compiled type information
-
-
-#include "stdafx2.h"
-
-#ifdef _ATL_STATIC_REGISTRY
-#include <statreg.h>
-#include <statreg.cpp>
-#endif
-
-#include <atlimpl.cpp>
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/embed/xwin.cxx b/embedserv/source/embed/xwin.cxx
deleted file mode 100644
index 473647419cb9..000000000000
--- a/embedserv/source/embed/xwin.cxx
+++ /dev/null
@@ -1,349 +0,0 @@
-/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
-/*************************************************************************
- *
- * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
- *
- * Copyright 2000, 2010 Oracle and/or its affiliates.
- *
- * OpenOffice.org - a multi-platform office productivity suite
- *
- * This file is part of OpenOffice.org.
- *
- * OpenOffice.org is free software: you can redistribute it and/or modify
- * it under the terms of the GNU Lesser General Public License version 3
- * only, as published by the Free Software Foundation.
- *
- * OpenOffice.org is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU Lesser General Public License version 3 for more details
- * (a copy is included in the LICENSE file that accompanied this code).
- *
- * You should have received a copy of the GNU Lesser General Public License
- * version 3 along with OpenOffice.org. If not, see
- * <http://www.openoffice.org/license.html>
- * for a copy of the LGPLv3 License.
- *
- ************************************************************************/
-
-#include "xwin.hxx"
-#include <com/sun/star/lang/SystemDependent.hpp>
-
-
-using namespace ::com::sun::star;
-
-
-ContainerWindowWrapper::ContainerWindowWrapper(HWND aHwnd)
- : m_aHwnd(aHwnd),
- m_pDisposeEventListeners(0)
-{
-}
-
-ContainerWindowWrapper::~ContainerWindowWrapper()
-{
- delete m_pDisposeEventListeners;
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::dispose(
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
- cppu::OInterfaceContainerHelper *pDisposeEventListeners(0);
-
- {
- osl::MutexGuard aGuard(m_aMutex);
- pDisposeEventListeners = m_pDisposeEventListeners;
- }
-
- if(pDisposeEventListeners) {
- lang::EventObject aEvt;
- aEvt.Source = static_cast< awt::XWindow* >(this);
-
- pDisposeEventListeners->disposeAndClear(aEvt);
- }
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::addEventListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XEventListener >& Listener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
- cppu::OInterfaceContainerHelper *pDisposeEventListeners(0);
- {
- osl::MutexGuard aGuard(m_aMutex);
- pDisposeEventListeners = m_pDisposeEventListeners;
- }
-
- if(! pDisposeEventListeners)
- {
- osl::MutexGuard aGuard(m_aMutex);
- pDisposeEventListeners = m_pDisposeEventListeners =
- new cppu::OInterfaceContainerHelper(m_aMutex);
- }
-
- pDisposeEventListeners->addInterface( Listener );
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::removeEventListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::lang::XEventListener >& Listener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
- cppu::OInterfaceContainerHelper *pDisposeEventListeners(0);
- {
- osl::MutexGuard aGuard(m_aMutex);
- pDisposeEventListeners = m_pDisposeEventListeners;
- }
- if( pDisposeEventListeners )
- pDisposeEventListeners->removeInterface( Listener );
-}
-
-
-
-// XSystemDependentWindowPeer
-
-::com::sun::star::uno::Any SAL_CALL
-ContainerWindowWrapper::getWindowHandle(
- const ::com::sun::star::uno::Sequence< sal_Int8 >& ProcessId,
- sal_Int16 SystemType
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
- if(SystemType == lang::SystemDependent::SYSTEM_WIN32 ||
- SystemType == lang::SystemDependent::SYSTEM_WIN16)
- {
- uno::Any aAny;
- sal_Int32 nHwnd = sal_Int32(m_aHwnd);
- aAny <<= nHwnd;
- return aAny;
- }
- else
- return uno::Any();
-}
-
-
-
-void SAL_CALL
-ContainerWindowWrapper::setPosSize(
- sal_Int32 X,
- sal_Int32 Y,
- sal_Int32 Width,
- sal_Int32 Height,
- sal_Int16 Flags
-)
- throw (
- ::com::sun::star::uno::RuntimeException)
-{
-
-}
-
-::com::sun::star::awt::Rectangle SAL_CALL
-ContainerWindowWrapper::getPosSize(
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
- return awt::Rectangle();
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::setVisible(
- sal_Bool Visible
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::setEnable(
- sal_Bool Enable
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::setFocus(
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::addWindowListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XWindowListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::removeWindowListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XWindowListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::addFocusListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XFocusListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::removeFocusListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XFocusListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::addKeyListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XKeyListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::removeKeyListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XKeyListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::addMouseListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XMouseListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::removeMouseListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XMouseListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-
-void SAL_CALL
-ContainerWindowWrapper::addMouseMotionListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XMouseMotionListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::removeMouseMotionListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XMouseMotionListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::addPaintListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XPaintListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-void SAL_CALL
-ContainerWindowWrapper::removePaintListener(
- const ::com::sun::star::uno::Reference<
- ::com::sun::star::awt::XPaintListener >& xListener
-)
- throw (
- ::com::sun::star::uno::RuntimeException
- )
-{
-
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/embedserv/source/inprocserv/dllentry.cxx b/embedserv/source/inprocserv/dllentry.cxx
index b54c2c6e42db..ba6374658715 100644
--- a/embedserv/source/inprocserv/dllentry.cxx
+++ b/embedserv/source/inprocserv/dllentry.cxx
@@ -30,6 +30,9 @@
#include <inprocembobj.h>
#ifdef __MINGW32__
#define INITGUID
+#define INPROC_DLLPUBLIC SAL_DLLPUBLIC_EXPORT
+#else
+#define INPROC_DLLPUBLIC
#endif
#include <embservconst.h>
@@ -167,7 +170,7 @@ protected:
// ===========================
// -------------------------------------------------------------------------------
-extern "C" BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/ )
+extern "C" INPROC_DLLPUBLIC BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD dwReason, LPVOID /*lpReserved*/ )
{
if (dwReason == DLL_PROCESS_ATTACH)
{
@@ -181,7 +184,7 @@ extern "C" BOOL WINAPI DllMain( HINSTANCE hInstance, DWORD dwReason, LPVOID /*lp
}
// -------------------------------------------------------------------------------
-extern "C" STDAPI DllGetClassObject( REFCLSID rclsid, REFIID riid, LPVOID* ppv )
+extern "C" STDAPI INPROC_DLLPUBLIC DllGetClassObject( REFCLSID rclsid, REFIID riid, LPVOID* ppv )
{
for( int nInd = 0; nInd < SUPPORTED_FACTORIES_NUM; nInd++ )
if ( *guidList[nInd] == rclsid )
@@ -201,7 +204,7 @@ extern "C" STDAPI DllGetClassObject( REFCLSID rclsid, REFIID riid, LPVOID* ppv )
}
// -------------------------------------------------------------------------------
-extern "C" STDAPI DllCanUnloadNow()
+extern "C" STDAPI INPROC_DLLPUBLIC DllCanUnloadNow()
{
if ( !g_nObj && !g_nLock )
return S_OK;
@@ -210,7 +213,7 @@ extern "C" STDAPI DllCanUnloadNow()
}
// -------------------------------------------------------------------------------
-STDAPI DllRegisterServer( void )
+STDAPI INPROC_DLLPUBLIC DllRegisterServer( void )
{
char aLibPath[1024];
HMODULE aCurModule = GetModuleHandleA( "inprocserv.dll" );
@@ -228,7 +231,7 @@ STDAPI DllRegisterServer( void )
}
// -------------------------------------------------------------------------------
-STDAPI DllUnregisterServer( void )
+STDAPI INPROC_DLLPUBLIC DllUnregisterServer( void )
{
return WriteLibraryToRegistry( "ole32.dll", 10 );
}
diff --git a/embedserv/source/inprocserv/exports.dxp b/embedserv/source/inprocserv/exports.dxp
deleted file mode 100644
index 65a5126f162e..000000000000
--- a/embedserv/source/inprocserv/exports.dxp
+++ /dev/null
@@ -1,5 +0,0 @@
-DllGetClassObject
-DllCanUnloadNow
-DllMain
-DllRegisterServer
-DllUnregisterServer
diff --git a/embedserv/source/inprocserv/makefile.mk b/embedserv/source/inprocserv/makefile.mk
deleted file mode 100644
index 024e0f9d4ee3..000000000000
--- a/embedserv/source/inprocserv/makefile.mk
+++ /dev/null
@@ -1,80 +0,0 @@
-#*************************************************************************
-#
-# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
-#
-# Copyright 2000, 2010 Oracle and/or its affiliates.
-#
-# OpenOffice.org - a multi-platform office productivity suite
-#
-# This file is part of OpenOffice.org.
-#
-# OpenOffice.org is free software: you can redistribute it and/or modify
-# it under the terms of the GNU Lesser General Public License version 3
-# only, as published by the Free Software Foundation.
-#
-# OpenOffice.org is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU Lesser General Public License version 3 for more details
-# (a copy is included in the LICENSE file that accompanied this code).
-#
-# You should have received a copy of the GNU Lesser General Public License
-# version 3 along with OpenOffice.org. If not, see
-# <http://www.openoffice.org/license.html>
-# for a copy of the LGPLv3 License.
-#
-#*************************************************************************
-
-PRJ=..$/..
-PRJNAME=embedserv
-TARGET=inprocserv
-
-use_shl_versions=
-
-# --- Settings ----------------------------------
-.INCLUDE : settings.mk
-
-.IF "$(GUI)" == "WNT"
-
-LIBTARGET=NO
-USE_DEFFILE=YES
-LIBCMT=libcmt.lib
-UWINAPILIB=
-
-# --- Files -------------------------------------
-
-SLOFILES=\
- $(SLO)$/dllentry.obj \
- $(SLO)$/advisesink.obj \
- $(SLO)$/inprocembobj.obj
-
-SHL1TARGET=$(TARGET)
-.IF "$(COM)"=="GCC"
-SHL1STDLIBS += -lstdc++
-.IF "$(MINGW_GCCLIB_EH)"=="YES"
-SHL1STDLIBS += -lgcc_eh
-.ENDIF
-SHL1STDLIBS += -lgcc -lmingw32 -lmoldname -lmsvcrt
-.ELSE
-SHL1STDLIBS=
-.ENDIF
-
-SHL1STDLIBS+=\
- $(UUIDLIB)\
- $(OLE32LIB)\
- $(GDI32LIB)\
- $(ADVAPI32LIB)
-
-SHL1OBJS=$(SLOFILES)
-
-SHL1DEF=$(MISC)$/$(TARGET).def
-
-DEF1NAME= $(TARGET)
-DEF1EXPORTFILE= exports.dxp
-
-.ENDIF
-
-# --- Targets ----------------------------------
-
-.INCLUDE : target.mk
-