Commits

Anonymous committed cd37d06

accia2bridge: new style service registration

Comments (0)

Files changed (6)

postprocess/packcomponents/makefile.mk

     java_uno_accessbridge \
     smplmail \
     sysdtrans \
+    winaccessibility \
     wininetbe1
 .END
 

winaccessibility/prj/d.lst

 mkdir: %_DEST%\inc%_EXT%\winaccessibility\UAccCOM
 
 ..\%__SRC%\bin\*.dll %_DEST%\bin%_EXT%\*.dll
+..\%__SRC%\misc\winaccessibility.component %_DEST%\xml%_EXT%\winaccessibility.component
 
 #..\%__SRC%\inc\*.hxx %_DEST%\inc%_EXT%\winaccessibility\*.hxx
 #..\%__SRC%\inc\UAccCOM\*.h %_DEST%\inc%_EXT%\winaccessibility\UAccCOM\*.h

winaccessibility/source/service/exports.dxp

 ;***********************************************************************/
 
 component_getImplementationEnvironment
-component_writeInfo
 component_getFactory

winaccessibility/source/service/makefile.mk

 
 .INCLUDE :	target.mk
 
+ALLTAR : \
+    $(MISC)/winaccessibility.component
+
+.IF "$(OS)" == "WNT"
+my_platform = .windows
+.END
+
+$(MISC)/winaccessibility.component .ERRREMOVE : \
+        $(SOLARENV)/bin/createcomponent.xslt winaccessibility.component
+    $(XSLTPROC) --nonet --stringparam uri \
+        '$(COMPONENTPREFIX_BASIS_NATIVE)$(SHL4TARGETN:f)' -o $@ \
+        $(SOLARENV)/bin/createcomponent.xslt winaccessibility.component
+
+
 .ENDIF			# "$(GUI)"=="WNT"

winaccessibility/source/service/msaaservice_impl.cxx

     {
         *ppEnvTypeName = CPPU_CURRENT_LANGUAGE_BINDING_NAME;
     }
+/*    
     sal_Bool SAL_CALL component_writeInfo(
         lang::XMultiServiceFactory * xMgr, registry::XRegistryKey * xRegistry )
     {
         return ::cppu::component_writeInfoHelper(
                    xMgr, xRegistry, ::my_sc_impl::s_component_entries );
     }
+*/ 
     void * SAL_CALL component_getFactory(
         sal_Char const * implName, lang::XMultiServiceFactory * xMgr,
         registry::XRegistryKey * xRegistry )

winaccessibility/source/service/winaccessibility.component

+<?xml version="1.0" encoding="UTF-8"?>
+<!--**********************************************************************
+*
+* 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.
+*
+**********************************************************************-->
+
+<component loader="com.sun.star.loader.SharedLibrary"
+    xmlns="http://openoffice.org/2010/uno-components">
+  <implementation name="com.sun.star.accessibility.my_sc_implementation.MSAAService">
+    <service name="com.sun.star.accessibility.MSAAService"/>
+  </implementation>
+</component>