diff options
author | Tor Lillqvist <tml@collabora.com> | 2013-10-31 22:20:15 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2013-11-01 00:23:16 +0200 |
commit | 5a0aec771f10e14558ce229ff70cd81717d85ac8 (patch) | |
tree | 1beb24526100e82c283139962ef2bfdb4fa9ae16 | |
parent | 9fabf25bc47c7b16eb22eca3a934c18070e1e9e5 (diff) |
Add dummy touch_ui_dialog_modal() here, too
Change-Id: I1b1e47de2eec94150a0abee4aa74994f55b9b88e
-rw-r--r-- | ios/experimental/LibreOffice/LibreOffice/AppDelegate.m | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m b/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m index 11d4642b0176..198fb3437f13 100644 --- a/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m +++ b/ios/experimental/LibreOffice/LibreOffice/AppDelegate.m @@ -218,6 +218,31 @@ bool touch_ui_keyboard_visible() return keyboardShows; } +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"; + } +} + +MLODialogResult touch_ui_dialog_modal(MLODialogKind kind, const char *message) +{ + NSLog(@"===> %s: %s", dialog_kind_to_string(kind), message); + return MLODialogOK; +} + void touch_ui_selection_start(MLOSelectionKind kind, const void *documentHandle, MLORect *rectangles, |