Kaydet (Commit) 5142e628 authored tarafından Michael Stahl's avatar Michael Stahl

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 :)
üst 813a57cb
# -*- 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@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:
......@@ -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 \
......
......@@ -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 \
......
......@@ -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;
}
......
......@@ -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";
......
......@@ -28,6 +28,9 @@
<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>
......
<?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>
......@@ -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 += \
......
......@@ -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
......
......@@ -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);
......
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