diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-04-25 11:40:54 +0200 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2017-04-25 11:48:02 +0200 |
commit | 6891ab0dae58fe482e89eec5186ad7aeff909cac (patch) | |
tree | b361c90a22a7d2777d5a874e805e5f8e62b0c87f /vcl | |
parent | e6e5a68f52f4e06b73f0ece3a3886f3bfc30f56d (diff) |
enable clipboard service for android
- register the VCLGenericClipboard as the SystemClipboard
- enable vcl.android component in Rdb services as this wasn't done
- choose VclGenericClipboard as the android implementation
Change-Id: I067dcf4d9cdfc4b7d7a941a1c86f545263d1abad
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/components/dtranscomp.cxx | 2 | ||||
-rw-r--r-- | vcl/vcl.android.component | 3 |
2 files changed, 5 insertions, 0 deletions
diff --git a/vcl/source/components/dtranscomp.cxx b/vcl/source/components/dtranscomp.cxx index 91c8d4b3f929..0946b0e34fa5 100644 --- a/vcl/source/components/dtranscomp.cxx +++ b/vcl/source/components/dtranscomp.cxx @@ -221,6 +221,8 @@ OUString SAL_CALL Clipboard_getImplementationName() return OUString( #if defined MACOSX "com.sun.star.datatransfer.clipboard.AquaClipboard" + #elif defined ANDROID + "com.sun.star.datatransfer.VCLGenericClipboard" #elif defined UNX "com.sun.star.datatransfer.X11ClipboardSupport" #else diff --git a/vcl/vcl.android.component b/vcl/vcl.android.component index f2adfaa457cd..2c4c4a5909bf 100644 --- a/vcl/vcl.android.component +++ b/vcl/vcl.android.component @@ -19,6 +19,9 @@ <component loader="com.sun.star.loader.SharedLibrary" environment="@CPPU_ENV@" prefix="vcl" xmlns="http://openoffice.org/2010/uno-components"> + <implementation name="com.sun.star.datatransfer.VCLGenericClipboard"> + <service name="com.sun.star.datatransfer.clipboard.SystemClipboard"/> + </implementation> <implementation name="com.sun.star.frame.VCLSessionManagerClient"> <service name="com.sun.star.frame.SessionManagerClient"/> </implementation> |