From c95393cbf35fd59be203c38e52ac627ff0a184d3 Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Wed, 23 Oct 2013 10:33:12 +0300 Subject: Add dummy implementations of the UI layer callbacks now required Change-Id: I2caaac66758863b0f384df13ab30526f21be1e8d --- .../experimental/LibreOffice4Android/dummies.cxx | 44 ++++++++++++++++++++++ android/experimental/desktop/dummies.cxx | 44 ++++++++++++++++++++++ 2 files changed, 88 insertions(+) create mode 100644 android/experimental/LibreOffice4Android/dummies.cxx create mode 100644 android/experimental/desktop/dummies.cxx (limited to 'android/experimental') diff --git a/android/experimental/LibreOffice4Android/dummies.cxx b/android/experimental/LibreOffice4Android/dummies.cxx new file mode 100644 index 000000000000..89766e837c57 --- /dev/null +++ b/android/experimental/LibreOffice4Android/dummies.cxx @@ -0,0 +1,44 @@ +/* -*- 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/. + */ + +// Dummy implementations of the callback functions in the UI layer +// that the LO layer calls. As this experimental Android app doesn't +// handle any of that, these do nothing. + +#include + +extern "C" +__attribute__ ((visibility("default"))) +void +touch_ui_selection_start(MLOSelectionKind kind, + const void *documentHandle, + MLORect *rectangles, + int rectangleCount, + void *preview) +{ +} + +extern "C" +__attribute__ ((visibility("default"))) +void +touch_ui_selection_resize_done(bool success, + const void *documentHandle, + MLORect *rectangles, + int rectangleCount) +{ +} + +extern "C" +__attribute__ ((visibility("default"))) +void +touch_ui_selection_none() +{ +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/android/experimental/desktop/dummies.cxx b/android/experimental/desktop/dummies.cxx new file mode 100644 index 000000000000..89766e837c57 --- /dev/null +++ b/android/experimental/desktop/dummies.cxx @@ -0,0 +1,44 @@ +/* -*- 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/. + */ + +// Dummy implementations of the callback functions in the UI layer +// that the LO layer calls. As this experimental Android app doesn't +// handle any of that, these do nothing. + +#include + +extern "C" +__attribute__ ((visibility("default"))) +void +touch_ui_selection_start(MLOSelectionKind kind, + const void *documentHandle, + MLORect *rectangles, + int rectangleCount, + void *preview) +{ +} + +extern "C" +__attribute__ ((visibility("default"))) +void +touch_ui_selection_resize_done(bool success, + const void *documentHandle, + MLORect *rectangles, + int rectangleCount) +{ +} + +extern "C" +__attribute__ ((visibility("default"))) +void +touch_ui_selection_none() +{ +} + +/* vim:set shiftwidth=4 softtabstop=4 expandtab: */ -- cgit