summaryrefslogtreecommitdiff
path: root/android/experimental/LOAndroid3/dummies.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'android/experimental/LOAndroid3/dummies.cxx')
-rw-r--r--android/experimental/LOAndroid3/dummies.cxx75
1 files changed, 0 insertions, 75 deletions
diff --git a/android/experimental/LOAndroid3/dummies.cxx b/android/experimental/LOAndroid3/dummies.cxx
deleted file mode 100644
index 5607ecfd72d6..000000000000
--- a/android/experimental/LOAndroid3/dummies.cxx
+++ /dev/null
@@ -1,75 +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/.
- */
-
-// 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 <android/log.h>
-
-#include <touch/touch.h>
-
-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()
-{
-}
-
-
-static const char *
-dialog_kind_to_string(MLODialogKind kind)
-{
- switch (kind) {
- case MLODialogMessage:
- return "MSG";
- case MLODialogInformation:
- return "INF";
- case MLODialogWarning:
- return "WRN";
- case MLODialogError:
- return "ERR";
- case MLODialogQuery:
- return "QRY";
- default:
- return "WTF";
- }
-}
-
-extern "C"
-__attribute__ ((visibility("default")))
-MLODialogResult
-touch_ui_dialog_modal(MLODialogKind kind, const char *message)
-{
- __android_log_print(ANDROID_LOG_INFO, "===> %s: %s", dialog_kind_to_string(kind), message);
- return MLODialogOK;
-}
-
-/* vim:set shiftwidth=4 softtabstop=4 expandtab: */