diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2013-07-10 16:40:30 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2013-07-10 17:08:57 +0200 |
commit | 60455c972b09ca02b18660c6fb3dafc03b30b2b5 (patch) | |
tree | 58eec185446de910ad735862ff4393b1501f9c6b /offapi | |
parent | f19b16e0b0aba67c355010271a81cfe5420fab93 (diff) |
fdo#66718: Revert "fdo#46808, Adapt SystemClipboard UNO service to new style"
This reverts commit 2fe852386c9450014f84910b0a282d684f40b56a, see
<https://bugs.freedesktop.org/show_bug.cgi?id=66718#c8> for details. (On master
towards LO 4.2, this will be addressed differently, by modifying
2fe852386c9450014f84910b0a282d684f40b56a instead of reverting it, so this
libreoffice-4-1 commit is not a cherry-pick of any master commit.)
Conflicts:
dtrans/source/win32/clipb/WinClipboard.cxx
offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl
offapi/type_reference/types.rdb
vcl/ios/source/dtrans/ios_clipboard.cxx
vcl/ios/source/dtrans/ios_clipboard.hxx
vcl/source/window/window.cxx
Change-Id: Idb804196bc5693e4e8674d805edefd9d1ae7c178
Diffstat (limited to 'offapi')
-rw-r--r-- | offapi/UnoApi_offapi.mk | 5 | ||||
-rw-r--r-- | offapi/com/sun/star/datatransfer/clipboard/SystemClipboard.idl | 37 | ||||
-rw-r--r-- | offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl | 63 |
3 files changed, 29 insertions, 76 deletions
diff --git a/offapi/UnoApi_offapi.mk b/offapi/UnoApi_offapi.mk index db062c4e576a..63ec527cfc93 100644 --- a/offapi/UnoApi_offapi.mk +++ b/offapi/UnoApi_offapi.mk @@ -105,9 +105,6 @@ $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/datatransf DataFormatTranslator \ MimeContentTypeFactory \ )) -$(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/datatransfer/clipboard,\ - SystemClipboard \ -)) $(eval $(call gb_UnoApi_add_idlfiles_nohdl,offapi,offapi/com/sun/star/deployment,\ ExtensionManager \ PackageInformationProvider \ @@ -711,6 +708,7 @@ $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/configu $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/datatransfer/clipboard,\ ClipboardManager \ GenericClipboard \ + SystemClipboard \ )) $(eval $(call gb_UnoApi_add_idlfiles_noheader,offapi,offapi/com/sun/star/datatransfer/dnd,\ OleDragSource \ @@ -2118,7 +2116,6 @@ $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/datatransfer/cli XClipboardNotifier \ XClipboardOwner \ XFlushableClipboard \ - XSystemClipboard \ )) $(eval $(call gb_UnoApi_add_idlfiles,offapi,offapi/com/sun/star/datatransfer/dnd,\ DNDConstants \ diff --git a/offapi/com/sun/star/datatransfer/clipboard/SystemClipboard.idl b/offapi/com/sun/star/datatransfer/clipboard/SystemClipboard.idl index b81dec5c4782..374c7e8de5db 100644 --- a/offapi/com/sun/star/datatransfer/clipboard/SystemClipboard.idl +++ b/offapi/com/sun/star/datatransfer/clipboard/SystemClipboard.idl @@ -20,14 +20,17 @@ #ifndef __com_sun_star_datatransfer_clipboard_SystemClipboard_idl__ #define __com_sun_star_datatransfer_clipboard_SystemClipboard_idl__ -#include <com/sun/star/awt/XDisplayConnection.idl> -#include <com/sun/star/datatransfer/clipboard/XSystemClipboard.idl> -#include <com/sun/star/script/XInvocation.idl> +#include <com/sun/star/lang/XComponent.idl> +#include <com/sun/star/lang/XInitialization.idl> module com { module sun { module star { module datatransfer { module clipboard { + published interface XClipboardEx; + published interface XClipboardNotifier; + published interface XFlushableClipboard; + /** The system clipboard service builds a bridge to the OS specific clipboard interfaces. @@ -39,14 +42,30 @@ module com { module sun { module star { module datatransfer { module clipboard { </ul> It is possible to use clipboards for different selections simultaneously.</p> */ -published service SystemClipboard : XSystemClipboard +published service SystemClipboard { - createDefault(); + /** Provides access to the clipboard content. + */ + interface XClipboardEx; + + /** Provides the ability to request notifications on content changes. + */ + interface XClipboardNotifier; + + /** Provides the ability to render the complete clipboard content. This + interface is only available if the method + <member scope="com::sun::star::datatransfer::clipboard">XClipboardEx::getRenderingCapabilities()</member> + returns Persistant + */ + [optional] interface XFlushableClipboard; + + /** Provides the ability to initialize the clipboard + */ + [optional] interface com::sun::star::lang::XInitialization; - /** This method is only valid for unix systems (excluding MacOS) */ - createUnix([in] com::sun::star::awt::XDisplayConnection DisplayConnection, - [in] string ClipboardName, - [in] com::sun::star::script::XInvocation BmpConverter); + /** For shutdown and listener support. + */ + interface com::sun::star::lang::XComponent; }; diff --git a/offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl b/offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl deleted file mode 100644 index 669180d810a7..000000000000 --- a/offapi/com/sun/star/datatransfer/clipboard/XSystemClipboard.idl +++ /dev/null @@ -1,63 +0,0 @@ -/* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */ -/** - * This file is part of the LibreOffice project. - * - * This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at http://mozilla.org/MPL/2.0/. - * - * This file incorporates work covered by the following license notice: - * - * Licensed to the Apache Software Foundation (ASF) under one or more - * contributor license agreements. See the NOTICE file distributed - * with this work for additional information regarding copyright - * ownership. The ASF licenses this file to you under the Apache - * License, Version 2.0 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.apache.org/licenses/LICENSE-2.0 . - */ - -#ifndef __com_sun_star_datatransfer_clipboard_XSystemClipboard_idl__ -#define __com_sun_star_datatransfer_clipboard_XSystemClipboard_idl__ - -#include <com/sun/star/lang/XComponent.idl> -#include <com/sun/star/datatransfer/clipboard/XClipboardEx.idl> -#include <com/sun/star/datatransfer/clipboard/XClipboardNotifier.idl> -#include <com/sun/star/datatransfer/clipboard/XFlushableClipboard.idl> - -module com { module sun { module star { module datatransfer { module clipboard { - - -/** - Provides a unified interface for new-style service SystemClipboard. - - @since LibreOffice 4.1 -*/ -published interface XSystemClipboard -{ - /** Provides access to the clipboard content. - */ - interface XClipboardEx; - - /** Provides the ability to request notifications on content changes. - */ - interface XClipboardNotifier; - - /** Provides the ability to render the complete clipboard content. This - interface is only available if the method - <member scope="com::sun::star::datatransfer::clipboard">XClipboardEx::getRenderingCapabilities()</member> - returns Persistant - */ - [optional] interface XFlushableClipboard; - - /** For shutdown and listener support. - */ - interface com::sun::star::lang::XComponent; -}; - - -}; }; }; }; }; - -#endif - -/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ |