[Libreoffice-commits] .: 2 commits - Repository.mk desktop/Executable_soffice.bin.mk desktop/Executable_soffice.mk desktop/Executable_unopkg.mk desktop/Module_desktop.mk desktop/StaticLibrary_winextendloaderenv.mk fpicker/Library_fop.mk fpicker/Library_fps.mk fpicker/Module_fpicker.mk fpicker/source fpicker/util postprocess/packcomponents postprocess/rebase scp2/source

Michael Stahl mst at kemper.freedesktop.org
Wed Mar 14 08:25:27 PDT 2012


 Repository.mk                                |    1 
 desktop/Executable_soffice.bin.mk            |    5 --
 desktop/Executable_soffice.mk                |    6 --
 desktop/Executable_unopkg.mk                 |    6 --
 desktop/Module_desktop.mk                    |    1 
 desktop/StaticLibrary_winextendloaderenv.mk  |   34 +++++++++++++
 fpicker/Library_fop.mk                       |   67 ---------------------------
 fpicker/Library_fps.mk                       |    6 ++
 fpicker/Module_fpicker.mk                    |    1 
 fpicker/source/win32/filepicker/FPentry.cxx  |   28 +++++++++++
 fpicker/source/win32/folderpicker/MtaFop.cxx |    2 
 fpicker/source/win32/fps.component           |   37 ++++++++++++++
 fpicker/util/fop.component                   |   34 -------------
 fpicker/util/fps.component                   |   34 -------------
 postprocess/packcomponents/makefile.mk       |    3 -
 postprocess/rebase/coffbase.txt              |    1 
 scp2/source/ooo/file_library_ooo.scp         |   11 ----
 17 files changed, 111 insertions(+), 166 deletions(-)

New commits:
commit 5142e628b563a9876e8884c5dd4914eff4a2f307
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Mar 14 16:20:27 2012 +0100

    fdo#47246: fpicker: merge fop library into fps:
    
    Since nobody seems to know why these are separate, merge fop into fps.
    In case this untested change doesn't work out it should be reverted :)

diff --git a/fpicker/Library_fop.mk b/fpicker/Library_fop.mk
deleted file mode 100644
index 2d6091d..0000000
--- a/fpicker/Library_fop.mk
+++ /dev/null
@@ -1,67 +0,0 @@
-# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
-#
-# Version: MPL 1.1 / GPLv3+ / LGPLv3+
-#
-# The contents of this file are subject to the Mozilla Public License Version
-# 1.1 (the "License"); you may not use this file except in compliance with
-# the License or as specified alternatively below. You may obtain a copy of
-# the License at http://www.mozilla.org/MPL/
-#
-# Software distributed under the License is distributed on an "AS IS" basis,
-# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
-# for the specific language governing rights and limitations under the
-# License.
-#
-# Major Contributor(s):
-# Copyright (C) 2011 Matúš Kukan <matus.kukan at gmail.com> (initial developer)
-#
-# All Rights Reserved.
-#
-# For minor contributions see the git repository.
-#
-# Alternatively, the contents of this file may be used under the terms of
-# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
-# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
-# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
-# instead of those above.
-
-$(eval $(call gb_Library_Library,fop))
-
-$(eval $(call gb_Library_set_componentfile,fop,fpicker/util/fop))
-
-$(eval $(call gb_Library_add_api,fop,\
-	offapi \
-	udkapi \
-))
-
-$(eval $(call gb_Library_add_defs,fop,\
-	-DUNICODE \
-	-D_UNICODE \
-))
-
-$(eval $(call gb_Library_add_linked_libs,fop,\
-	comphelper \
-	cppu \
-	cppuhelper \
-	sal \
-	tl \
-	vcl \
-	advapi32 \
-	gdi32 \
-	ole32 \
-	oleaut32 \
-	shell32 \
-	$(gb_STDLIBS) \
-))
-
-$(eval $(call gb_Library_add_exception_objects,fop,\
-	fpicker/source/win32/folderpicker/FolderPicker \
-	fpicker/source/win32/folderpicker/Fopentry \
-	fpicker/source/win32/folderpicker/MtaFop \
-	fpicker/source/win32/folderpicker/WinFOPImpl \
-	fpicker/source/win32/misc/AutoBuffer \
-	fpicker/source/win32/misc/resourceprovider \
-	fpicker/source/win32/misc/WinImplHelper \
-))
-
-# vim: set noet sw=4 ts=4:
diff --git a/fpicker/Library_fps.mk b/fpicker/Library_fps.mk
index 3d8a0a5..e70bdf4 100644
--- a/fpicker/Library_fps.mk
+++ b/fpicker/Library_fps.mk
@@ -29,7 +29,7 @@ $(eval $(call gb_Library_Library,fps))
 
 $(eval $(call gb_Library_add_nativeres,fps,fps/src))
 
-$(eval $(call gb_Library_set_componentfile,fps,fpicker/util/fps))
+$(eval $(call gb_Library_set_componentfile,fps,fpicker/source/win32/fps))
 
 $(eval $(call gb_Library_add_api,fps,\
 	offapi \
@@ -93,6 +93,10 @@ $(eval $(call gb_Library_add_exception_objects,fps,\
 	fpicker/source/win32/filepicker/VistaFilePickerEventHandler \
 	fpicker/source/win32/filepicker/VistaFilePickerImpl \
 	fpicker/source/win32/filepicker/WinFileOpenImpl \
+	fpicker/source/win32/folderpicker/FolderPicker \
+	fpicker/source/win32/folderpicker/Fopentry \
+	fpicker/source/win32/folderpicker/MtaFop \
+	fpicker/source/win32/folderpicker/WinFOPImpl \
 	fpicker/source/win32/misc/AutoBuffer \
 	fpicker/source/win32/misc/resourceprovider \
 	fpicker/source/win32/misc/WinImplHelper \
diff --git a/fpicker/Module_fpicker.mk b/fpicker/Module_fpicker.mk
index 1f0696f..0491e54 100644
--- a/fpicker/Module_fpicker.mk
+++ b/fpicker/Module_fpicker.mk
@@ -44,7 +44,6 @@ endif
 ifeq ($(OS),WNT)
 $(eval $(call gb_Module_add_targets,fpicker,\
 	Library_fps_odma \
-	Library_fop \
 	Library_fps \
 	Package_xml \
 	WinResTarget_fps \
diff --git a/fpicker/source/win32/filepicker/FPentry.cxx b/fpicker/source/win32/filepicker/FPentry.cxx
index 8213a57..0242171 100644
--- a/fpicker/source/win32/filepicker/FPentry.cxx
+++ b/fpicker/source/win32/filepicker/FPentry.cxx
@@ -43,6 +43,10 @@
 #include "../misc/WinImplHelper.hxx"
 #include <stdio.h>
 
+#include "../folderpicker/FolderPicker.hxx"
+#include "../folderpicker/FOPServiceInfo.hxx"
+#include "../folderpicker/WinFOPImpl.hxx"
+
 //-----------------------------------------------
 // namespace directives
 //-----------------------------------------------
@@ -87,6 +91,13 @@ static Reference< XInterface > SAL_CALL createInstance(
     return xDlg;
 }
 
+static Reference< XInterface > SAL_CALL
+createInstance_fop( const Reference< XMultiServiceFactory >& rServiceManager )
+{
+    return Reference< XInterface >( static_cast< XFolderPicker* >( new CFolderPicker( rServiceManager ) ) );
+}
+
+
 extern "C"
 {
 
@@ -112,6 +123,23 @@ SAL_DLLPUBLIC_EXPORT void* SAL_CALL component_getFactory(
         }
     }
 
+    if ( pSrvManager && ( 0 == rtl_str_compare( pImplName, FOLDER_PICKER_IMPL_NAME ) ) )
+    {
+        Sequence< OUString > aSNS( 1 );
+        aSNS.getArray( )[0] = OUString( RTL_CONSTASCII_USTRINGPARAM( FOLDER_PICKER_SERVICE_NAME ) );
+
+        Reference< XSingleServiceFactory > xFactory ( createSingleFactory(
+            reinterpret_cast< XMultiServiceFactory* > ( pSrvManager ),
+            OUString::createFromAscii( pImplName ),
+            createInstance_fop,
+            aSNS ) );
+        if ( xFactory.is() )
+        {
+            xFactory->acquire();
+            pRet = xFactory.get();
+        }
+    }
+
     return pRet;
 }
 
diff --git a/fpicker/source/win32/folderpicker/MtaFop.cxx b/fpicker/source/win32/folderpicker/MtaFop.cxx
index 636a88f..860e38d 100644
--- a/fpicker/source/win32/folderpicker/MtaFop.cxx
+++ b/fpicker/source/win32/folderpicker/MtaFop.cxx
@@ -53,7 +53,7 @@ typedef sal::systools::COMReference<IShellFolder> IShellFolderPtr;
 
 namespace
 {
-    const char* FOLDERPICKER_SRV_DLL_NAME = "fop.dll";
+    const char* FOLDERPICKER_SRV_DLL_NAME = "fps.dll";
     const char g_szWndClsName[]           = "FopStaReqWnd###";
     const char* CURRENT_INSTANCE          = "CurrInst";
 
diff --git a/fpicker/source/win32/fps.component b/fpicker/source/win32/fps.component
new file mode 100644
index 0000000..ca8c0c3
--- /dev/null
+++ b/fpicker/source/win32/fps.component
@@ -0,0 +1,37 @@
+<?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.ui.dialogs.Win32FilePicker">
+    <service name="com.sun.star.ui.dialogs.SystemFilePicker"/>
+  </implementation>
+  <implementation name="com.sun.star.ui.dialogs.Win32FolderPicker">
+    <service name="com.sun.star.ui.dialogs.SystemFolderPicker"/>
+  </implementation>
+</component>
diff --git a/fpicker/util/fop.component b/fpicker/util/fop.component
deleted file mode 100644
index a31c096..0000000
--- a/fpicker/util/fop.component
+++ /dev/null
@@ -1,34 +0,0 @@
-<?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.ui.dialogs.Win32FolderPicker">
-    <service name="com.sun.star.ui.dialogs.SystemFolderPicker"/>
-  </implementation>
-</component>
diff --git a/fpicker/util/fps.component b/fpicker/util/fps.component
deleted file mode 100644
index cc18d21..0000000
--- a/fpicker/util/fps.component
+++ /dev/null
@@ -1,34 +0,0 @@
-<?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.ui.dialogs.Win32FilePicker">
-    <service name="com.sun.star.ui.dialogs.SystemFilePicker"/>
-  </implementation>
-</component>
diff --git a/postprocess/packcomponents/makefile.mk b/postprocess/packcomponents/makefile.mk
index 1954666..47a7d7c 100644
--- a/postprocess/packcomponents/makefile.mk
+++ b/postprocess/packcomponents/makefile.mk
@@ -334,8 +334,7 @@ my_components += \
     component/dtrans/util/dnd \
     component/dtrans/util/ftransl \
     component/dtrans/util/sysdtrans \
-    component/fpicker/util/fop \
-    component/fpicker/util/fps \
+    component/fpicker/source/win32/fps \
     component/vcl/vcl.windows
 .IF "$(SOLAR_JAVA)" == "TRUE"
 my_components += \
diff --git a/postprocess/rebase/coffbase.txt b/postprocess/rebase/coffbase.txt
index 76e2ef3..2aa9823 100644
--- a/postprocess/rebase/coffbase.txt
+++ b/postprocess/rebase/coffbase.txt
@@ -97,7 +97,6 @@ filterconfig1.dll 0x00000000640f0000 0x00040000
 filtertracermi.dll 0x00000000640d0000 0x00010000
 flashmi.dll      0x0000000064090000 0x00030000
 flatmi.dll       0x0000000064040000 0x00040000
-fop.dll          0x0000000064020000 0x00010000
 fpicker.uno.dll  0x0000000064000000 0x00010000
 fps.dll          0x0000000063fc0000 0x00030000
 fps_office.uno.dll 0x0000000063f70000 0x00040000
diff --git a/scp2/source/ooo/file_library_ooo.scp b/scp2/source/ooo/file_library_ooo.scp
index 572a9d6..1b464cf 100644
--- a/scp2/source/ooo/file_library_ooo.scp
+++ b/scp2/source/ooo/file_library_ooo.scp
@@ -484,17 +484,6 @@ STD_LIB_FILE( gid_File_Lib_Flat, flat)
 
 #ifdef WNT
 
-File gid_File_Lib_Fop
-    LIB_FILE_BODY;
-    Styles = (PACKED);
-    Dir = SCP2_OOO_BIN_DIR;
-    Name = "fop.dll";
-End
-
-#endif
-
-#ifdef WNT
-
 File gid_File_Lib_Fps
     LIB_FILE_BODY;
     Styles = (PACKED);
commit 813a57cb1afa16bb306ced96d367fa1f55906620
Author: Michael Stahl <mstahl at redhat.com>
Date:   Wed Mar 14 15:03:44 2012 +0100

    fdo#47246: desktop: factor out a winextendloadenv static library

diff --git a/Repository.mk b/Repository.mk
index 351a365..147eca9 100644
--- a/Repository.mk
+++ b/Repository.mk
@@ -84,6 +84,7 @@ $(eval $(call gb_Helper_register_executables,OOO,\
 ))
 
 $(eval $(call gb_Helper_register_static_libraries,PLAINLIBS, \
+	winextendloaderenv \
 	winlauncher \
 ))
 
diff --git a/desktop/Executable_soffice.bin.mk b/desktop/Executable_soffice.bin.mk
index 00fb005..e0c5891 100644
--- a/desktop/Executable_soffice.bin.mk
+++ b/desktop/Executable_soffice.bin.mk
@@ -54,6 +54,7 @@ ifeq ($(OS),WNT)
 
 $(eval $(call gb_Executable_add_linked_static_libs,$(sofficebin),\
     ooopathutils \
+    winextendloaderenv \
 ))
 
 ifeq ($(COM),MSC)
@@ -64,10 +65,6 @@ $(eval $(call gb_Executable_add_ldflags,$(sofficebin),\
 
 endif
 
-$(eval $(call gb_Executable_add_noexception_objects,$(sofficebin),\
-    desktop/win32/source/extendloaderenvironment \
-))
-
 $(call gb_Module_get_target,desktop) : $(OUTDIR)/bin/soffice.bin
 
 $(OUTDIR)/bin/soffice.bin : $(call gb_Executable_get_target,$(sofficebin))
diff --git a/desktop/Executable_soffice.mk b/desktop/Executable_soffice.mk
index f768d99..b169898 100644
--- a/desktop/Executable_soffice.mk
+++ b/desktop/Executable_soffice.mk
@@ -29,10 +29,6 @@ $(eval $(call gb_Executable_Executable,soffice))
 
 $(eval $(call gb_Executable_set_targettype_gui,soffice,YES))
 
-$(eval $(call gb_Executable_set_include,soffice,\
-    $$(INCLUDE) \
-))
-
 $(eval $(call gb_Executable_add_linked_libs,soffice,\
     sal \
     advapi32 \
@@ -43,10 +39,10 @@ $(eval $(call gb_Executable_add_linked_libs,soffice,\
 
 $(eval $(call gb_Executable_add_linked_static_libs,soffice,\
     ooopathutils \
+    winextendloaderenv \
 ))
 
 $(eval $(call gb_Executable_add_noexception_objects,soffice,\
-    desktop/win32/source/extendloaderenvironment \
     desktop/win32/source/officeloader/officeloader \
 ))
 
diff --git a/desktop/Executable_unopkg.mk b/desktop/Executable_unopkg.mk
index 9e4a490..74d957e 100644
--- a/desktop/Executable_unopkg.mk
+++ b/desktop/Executable_unopkg.mk
@@ -29,16 +29,12 @@ $(eval $(call gb_Executable_Executable,unopkg))
 
 $(eval $(call gb_Executable_set_targettype_gui,unopkg,YES))
 
-$(eval $(call gb_Executable_set_include,unopkg,\
-    $$(INCLUDE) \
-))
-
 $(eval $(call gb_Executable_add_linked_static_libs,unopkg,\
     ooopathutils \
+    winextendloaderenv \
 ))
 
 $(eval $(call gb_Executable_add_noexception_objects,unopkg,\
-    desktop/win32/source/extendloaderenvironment \
     desktop/win32/source/guiloader/genericloader \
 ))
 
diff --git a/desktop/Module_desktop.mk b/desktop/Module_desktop.mk
index 7229fb8..0d3a013 100644
--- a/desktop/Module_desktop.mk
+++ b/desktop/Module_desktop.mk
@@ -79,6 +79,7 @@ endif
 ifeq ($(OS),WNT)
 
 $(eval $(call gb_Module_add_targets,desktop,\
+    StaticLibrary_winextendloaderenv \
     StaticLibrary_winlauncher \
     Executable_crashrep.com \
     Executable_quickstart \
diff --git a/desktop/StaticLibrary_winextendloaderenv.mk b/desktop/StaticLibrary_winextendloaderenv.mk
new file mode 100644
index 0000000..9662d67
--- /dev/null
+++ b/desktop/StaticLibrary_winextendloaderenv.mk
@@ -0,0 +1,34 @@
+# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*-
+#
+# Version: MPL 1.1 / GPLv3+ / LGPLv3+
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License or as specified alternatively below. You may obtain a copy of
+# the License at http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# Major Contributor(s):
+# [ Copyright (C) 2012 Red Hat, Inc., Michael Stahl <mstahl at redhat.com> (initial developer) ]
+#
+# All Rights Reserved.
+#
+# For minor contributions see the git repository.
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
+# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
+# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
+# instead of those above.
+
+$(eval $(call gb_StaticLibrary_StaticLibrary,winextendloaderenv))
+
+$(eval $(call gb_StaticLibrary_add_noexception_objects,winextendloaderenv,\
+    desktop/win32/source/extendloaderenvironment \
+))
+
+# vim:set shiftwidth=4 softtabstop=4 expandtab:


More information about the Libreoffice-commits mailing list