summaryrefslogtreecommitdiff
path: root/postprocess
diff options
context:
space:
mode:
authorSzymon Kłos <szymon.klos@collabora.com>2021-11-26 17:05:41 +0100
committerMiklos Vajna <vmiklos@collabora.com>2021-12-17 16:23:20 +0100
commit8bd8fa55b2fd04006aa43a9e638c8801d24b06ca (patch)
tree5795e2e27e5b760354555e07890608b2199e2919 /postprocess
parentf21f0f0ff656880149cfdfd34b8984c9541bca24 (diff)
Make LOKClipboard available to other modules
LOKClipboard has higher level dependencies (sfx2) so it cannot be moved to the vcl where SystemClibpoard instance is created. - introduce new interface LokClipboard to differentiate from SystemClipboard so we can have vcl's and lok's implementations at the same time - publish LOKClipboard using new interface for other modules by adding component file in desktop module Thanks to that when code calls GetClipboard and we cannot get clipboard assigned to the vcl::Window* (for welded widgets) in GetSystemClipboard correct instance is returned (shared clipboard for current view) so we can access content which was copied before. Previously always a new instance was created (with empty content). test ScTiledRenderingTest::testPasteIntoWrapTextCell was broken add some content to clipboard to simulate more real case and test the content copied Change-Id: I23c0298960a710c498646493f33122b908864cba Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126310 Reviewed-by: Luboš Luňák <l.lunak@collabora.com> Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'postprocess')
-rw-r--r--postprocess/Rdb_services.mk16
1 files changed, 16 insertions, 0 deletions
diff --git a/postprocess/Rdb_services.mk b/postprocess/Rdb_services.mk
index 5ecd216005eb..78c74ba0047e 100644
--- a/postprocess/Rdb_services.mk
+++ b/postprocess/Rdb_services.mk
@@ -339,6 +339,22 @@ $(eval $(call gb_Rdb_add_components,services,\
))
endif
+# lokclipboard.component
+ifneq ($(filter $(OS),ANDROID iOS MACOSX WNT),)
+$(if $(filter-out $(OS),IOS), \
+ $(eval $(call gb_Rdb_add_components,services,\
+ desktop/lokclipboard)))
+else
+ifeq ($(USING_X11),TRUE)
+$(eval $(call gb_Rdb_add_components,services,\
+ desktop/lokclipboard))
+endif
+ifeq ($(DISABLE_GUI),TRUE)
+$(eval $(call gb_Rdb_add_components,services,\
+ desktop/lokclipboard))
+endif
+endif
+
endif # $(gb_Side),host
# vim: set noet sw=4 ts=4: