From 8beaafcaa27a66841a9d959eba125ec410d0392d Mon Sep 17 00:00:00 2001 From: Tor Lillqvist Date: Mon, 21 Dec 2020 19:28:15 +0200 Subject: Retire the bit-rotting LibreOfficeLight iOS app Change-Id: I21b8055fc97d8dfb8429e7dafa1a3982c3b7499b Reviewed-on: https://gerrit.libreoffice.org/c/core/+/108122 Tested-by: Tor Lillqvist Reviewed-by: Tor Lillqvist --- config_host.mk.in | 1 - configure.ac | 13 - ios/.gitignore | 9 - ios/CustomTarget_iOS_link.mk | 90 - ios/DISCLAIMER_WARNING | 11 - .../LibreOfficeLight.xcodeproj/project.pbxproj | 635 ------- .../xcshareddata/xcschemes/Debug.xcscheme | 98 -- .../xcshareddata/xcschemes/Release.xcscheme | 91 - .../LibreOfficeLight/AppDelegate.swift | 117 -- .../AppIcon.appiconset/Contents.json | 116 -- .../AppIcon.appiconset/LibreOffice-1024.png | Bin 29447 -> 0 bytes .../AppIcon.appiconset/LibreOffice-120.png | Bin 7627 -> 0 bytes .../AppIcon.appiconset/LibreOffice-152.png | Bin 9043 -> 0 bytes .../AppIcon.appiconset/LibreOffice-167.png | Bin 10012 -> 0 bytes .../AppIcon.appiconset/LibreOffice-180.png | Bin 11718 -> 0 bytes .../AppIcon.appiconset/LibreOffice-20.png | Bin 1204 -> 0 bytes .../AppIcon.appiconset/LibreOffice-29.png | Bin 1674 -> 0 bytes .../AppIcon.appiconset/LibreOffice-40.png | Bin 2194 -> 0 bytes .../AppIcon.appiconset/LibreOffice-58.png | Bin 3212 -> 0 bytes .../AppIcon.appiconset/LibreOffice-60.png | Bin 3425 -> 0 bytes .../AppIcon.appiconset/LibreOffice-76.png | Bin 4366 -> 0 bytes .../AppIcon.appiconset/LibreOffice-80.png | Bin 4458 -> 0 bytes .../AppIcon.appiconset/LibreOffice-87.png | Bin 4744 -> 0 bytes .../Assets.xcassets/back.imageset/Contents.json | 23 - .../Assets.xcassets/back.imageset/back.png | Bin 805 -> 0 bytes .../Assets.xcassets/back.imageset/back@2x.png | Bin 1111 -> 0 bytes .../Assets.xcassets/back.imageset/back@3x.png | Bin 1813 -> 0 bytes .../Assets.xcassets/document.icons/Contents.json | 6 - .../drawing-template.dataset/Contents.json | 12 - .../drawing-template.dataset/drawing-template.icns | Bin 46225 -> 0 bytes .../document.icons/drawing.dataset/Contents.json | 12 - .../document.icons/drawing.dataset/drawing.icns | Bin 43334 -> 0 bytes .../empty-document.dataset/Contents.json | 12 - .../empty-document.dataset/empty-document.ico | Bin 35123 -> 0 bytes .../empty-template.dataset/Contents.json | 12 - .../empty-template.dataset/empty-template.ico | Bin 35123 -> 0 bytes .../document.icons/extension.dataset/Contents.json | 12 - .../extension.dataset/extension.icns | Bin 39192 -> 0 bytes .../document.icons/formula.dataset/Contents.json | 12 - .../document.icons/formula.dataset/formula.icns | Bin 43893 -> 0 bytes .../document.icons/main.dataset/Contents.json | 12 - .../document.icons/main.dataset/main.icns | Bin 83974 -> 0 bytes .../master-document.dataset/Contents.json | 12 - .../master-document.dataset/master-document.icns | Bin 40262 -> 0 bytes .../oasis-database.dataset/Contents.json | 12 - .../oasis-database.dataset/oasis-database.icns | Bin 269094 -> 0 bytes .../oasis-drawing-template.dataset/Contents.json | 12 - .../oasis-drawing-template.ico | Bin 58428 -> 0 bytes .../oasis-drawing.dataset/Contents.json | 12 - .../oasis-drawing.dataset/oasis-drawing.icns | Bin 218393 -> 0 bytes .../oasis-formula.dataset/Contents.json | 12 - .../oasis-formula.dataset/oasis-formula.ico | Bin 47043 -> 0 bytes .../Contents.json | 12 - .../oasis-master-document-template.icns | Bin 118979 -> 0 bytes .../oasis-master-document.dataset/Contents.json | 12 - .../oasis-master-document.ico | Bin 38441 -> 0 bytes .../Contents.json | 12 - .../oasis-presentation-template.icns | Bin 277602 -> 0 bytes .../oasis-presentation.dataset/Contents.json | 12 - .../oasis-presentation.ico | Bin 44754 -> 0 bytes .../Contents.json | 12 - .../oasis-spreadsheet-template.icns | Bin 292177 -> 0 bytes .../oasis-spreadsheet.dataset/Contents.json | 12 - .../oasis-spreadsheet.icns | Bin 168743 -> 0 bytes .../oasis-text-template.dataset/Contents.json | 12 - .../oasis-text-template.ico | Bin 54827 -> 0 bytes .../oasis-text.dataset/Contents.json | 12 - .../oasis-text.dataset/oasis-text.ico | Bin 46469 -> 0 bytes .../oasis-web-template.dataset/Contents.json | 12 - .../oasis-web-template.icns | Bin 333385 -> 0 bytes .../document.icons/open.dataset/Contents.json | 12 - .../document.icons/open.dataset/open.ico | Bin 35123 -> 0 bytes .../presentation-template.dataset/Contents.json | 12 - .../presentation-template.ico | Bin 54551 -> 0 bytes .../presentation.dataset/Contents.json | 12 - .../presentation.dataset/presentation.ico | Bin 44754 -> 0 bytes .../document.icons/soffice.dataset/Contents.json | 12 - .../document.icons/soffice.dataset/soffice.ico | Bin 35123 -> 0 bytes .../spreadsheet-template.dataset/Contents.json | 12 - .../spreadsheet-template.icns | Bin 46239 -> 0 bytes .../spreadsheet.dataset/Contents.json | 12 - .../spreadsheet.dataset/spreadsheet.icns | Bin 43146 -> 0 bytes .../text-template.dataset/Contents.json | 12 - .../text-template.dataset/text-template.icns | Bin 43403 -> 0 bytes .../document.icons/text.dataset/Contents.json | 12 - .../document.icons/text.dataset/text.icns | Bin 40399 -> 0 bytes .../Assets.xcassets/intro.imageset/Contents.json | 23 - .../Assets.xcassets/intro.imageset/intro.png | Bin 71016 -> 0 bytes .../Assets.xcassets/menu.imageset/Contents.json | 23 - .../Assets.xcassets/menu.imageset/menu.png | Bin 586 -> 0 bytes .../Assets.xcassets/menu.imageset/menu@2x.png | Bin 648 -> 0 bytes .../Assets.xcassets/menu.imageset/menu@3x.png | Bin 722 -> 0 bytes .../LibreOfficeLight/ButtonScrollView.swift | 145 -- .../LibreOfficeLight/DocumentActions.swift | 75 - .../LibreOfficeLight/DocumentController.swift | 598 ------- .../LibreOfficeLight/DocumentOverlaysView.swift | 68 - .../LibreOfficeLight/DocumentTiledView.swift | 244 --- ios/LibreOfficeLight/LibreOfficeLight/Info.plist | 1812 -------------------- .../LibreOfficeLight/LOKit/AsyncUtil.swift | 92 - .../LibreOfficeLight/LOKit/Document.swift | 592 ------- .../LibreOfficeLight/LOKit/DocumentHolder.swift | 345 ---- .../LibreOfficeLight/LOKit/LOKitThread.swift | 139 -- .../LOKit/LibreOfficeKitIOSTests.swift | 102 -- .../LOKit/LibreOfficeKitWrapper.swift | 231 --- .../LibreOfficeLight/LOKit/RenderCache.swift | 78 - .../LibreOfficeLight/LOKit/Util.swift | 43 - .../LibreOfficeLight/LibreOfficeLight-Prefix.pch | 22 - .../LibreOfficeLight/LibreOfficeLight.entitlements | 18 - .../.xccurrentversion | 5 - .../LibreOfficeLight.xcdatamodel/contents | 4 - .../LibreOfficeLight/PropertiesController.swift | 99 -- .../LibreOfficeLight/Settings.bundle/Root.plist | 38 - .../Settings.bundle/en.lproj/Root.strings | Bin 546 -> 0 bytes .../LibreOfficeLight/UIViewExtensions.swift | 74 - .../LibreOfficeLight/ViewPrintManager.swift | 27 - .../LibreOfficeLight/ViewProperties.swift | 30 - .../LibreOfficeLight/en.lproj/LaunchScreen.xib | 109 -- .../LibreOfficeLight/en.lproj/Main.storyboard | 501 ------ .../LibreOfficeLight/lokit-Bridging-Header.h | 14 - ios/Module_ios.mk | 6 - ios/README | 49 - ios/source/LibreOfficeKit.c | 119 -- ios/source/LibreOfficeKit.h | 34 - 123 files changed, 7317 deletions(-) delete mode 100644 ios/.gitignore delete mode 100644 ios/CustomTarget_iOS_link.mk delete mode 100644 ios/DISCLAIMER_WARNING delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-1024.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@2x.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@3x.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/drawing-template.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/drawing.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/empty-document.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/empty-template.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/extension.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/formula.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/main.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/master-document.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/oasis-database.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/oasis-drawing-template.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/oasis-drawing.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/oasis-formula.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/oasis-master-document-template.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/oasis-master-document.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/oasis-presentation-template.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/oasis-presentation.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/oasis-spreadsheet-template.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/oasis-spreadsheet.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/oasis-text-template.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/oasis-text.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/oasis-web-template.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/open.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/presentation-template.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/presentation.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/soffice.ico delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/spreadsheet-template.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/spreadsheet.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/text-template.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/text.icns delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/DocumentActions.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/DocumentTiledView.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Info.plist delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/AsyncUtil.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/Document.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/LOKitThread.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitIOSTests.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitWrapper.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/RenderCache.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LOKit/Util.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight-Prefix.pch delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.entitlements delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/PropertiesController.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/Root.plist delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/en.lproj/Root.strings delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/UIViewExtensions.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard delete mode 100644 ios/LibreOfficeLight/LibreOfficeLight/lokit-Bridging-Header.h delete mode 100644 ios/README delete mode 100644 ios/source/LibreOfficeKit.c delete mode 100644 ios/source/LibreOfficeKit.h diff --git a/config_host.mk.in b/config_host.mk.in index add0c176ebc6..4dda3bf7b4eb 100644 --- a/config_host.mk.in +++ b/config_host.mk.in @@ -164,7 +164,6 @@ export ENABLE_GSTREAMER_1_0=@ENABLE_GSTREAMER_1_0@ export ENABLE_GTK3=@ENABLE_GTK3@ export DISABLE_GUI=@DISABLE_GUI@ export ENABLE_HTMLHELP=@ENABLE_HTMLHELP@ -export ENABLE_IOS_LIBREOFFICELIGHT_APP=@ENABLE_IOS_LIBREOFFICELIGHT_APP@ export ENABLE_JAVA=@ENABLE_JAVA@ export ENABLE_LDAP=@ENABLE_LDAP@ export ENABLE_LPSOLVE=@ENABLE_LPSOLVE@ diff --git a/configure.ac b/configure.ac index 726d2e27a0f7..e14f7b36d029 100644 --- a/configure.ac +++ b/configure.ac @@ -1263,19 +1263,6 @@ AC_ARG_ENABLE(ios-simulator, [build for iOS simulator]) ) -AC_ARG_ENABLE(ios-libreofficelight-app, - AS_HELP_STRING([--enable-ios-libreofficelight-app], - [When building for iOS, build stuff relevant only for the 'LibreOfficeLight' app - (in ios/LibreOfficeLight). Note that this app is not known to work in any useful manner, - and also that its actual build (in Xcode) requires some obvious modifications to the project.]) -) - -ENABLE_IOS_LIBREOFFICELIGHT_APP= -if test "$enable_ios_libreofficelight_app" = yes; then - ENABLE_IOS_LIBREOFFICELIGHT_APP=TRUE -fi -AC_SUBST(ENABLE_IOS_LIBREOFFICELIGHT_APP) - ############################################################################### # Extensions switches --enable/--disable ############################################################################### diff --git a/ios/.gitignore b/ios/.gitignore deleted file mode 100644 index 8bd528904f33..000000000000 --- a/ios/.gitignore +++ /dev/null @@ -1,9 +0,0 @@ -# -# 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/. -# - -generated diff --git a/ios/CustomTarget_iOS_link.mk b/ios/CustomTarget_iOS_link.mk deleted file mode 100644 index ed4b7b2b0525..000000000000 --- a/ios/CustomTarget_iOS_link.mk +++ /dev/null @@ -1,90 +0,0 @@ -# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*- -# -# 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/. - - -#- Env ------------------------------------------------------------------------ -IOSGEN = $(BUILDDIR)/workdir/CustomTarget/ios -IOSLIBS := $(shell \ - (export INSTDIR=$(INSTDIR);export OS=$(OS); \ - export WORKDIR=$(WORKDIR);export LIBO_LIB_FOLDER=$(LIBO_LIB_FOLDER); \ - $(SRCDIR)/bin/lo-all-static-libs)) -IOSOBJ = $(IOSGEN)/Kit.o -IOSSRC = $(SRCDIR)/ios/source/LibreOfficeKit.c - -ifeq ($(ENABLE_DEBUG),TRUE) -ifeq ($(CPUNAME),X86_64) -IOSKIT = $(IOSGEN)/Debug_x86_64/libKit.dylib -else -IOSKIT = $(IOSGEN)/Debug_arm64/libKit.dylib -endif -else -ifeq ($(CPUNAME),AARCH64) -IOSKIT = $(IOSGEN)/Release_arm64/libKit.dylib -endif -endif - - - -#- Top level ----------------------------------------------------------------- -$(eval $(call gb_CustomTarget_CustomTarget,ios/iOS_link)) - -$(call gb_CustomTarget_get_target,ios/iOS_link): $(IOSKIT) - - -#- build --------------------------------------------------------------------- -$(IOSOBJ): $(IOSSRC) $(call gb_CustomTarget_get_target,ios/iOS_setup) - $(call gb_Output_announce,iOS compile interface,$(true),C,2) - $(gb_CC) $(gb_COMPILERDEFS) $(gb_OSDEFS) $(gb_CFLAGS) \ - -DDISABLE_DYNLOADING -DLIBO_INTERNAL_ONLY \ - -fvisibility=hidden -Werror -O0 -fstrict-overflow \ - $(if $(ENABLE_DEBUG),-g) \ - -c $(IOSSRC) -o $(IOSOBJ) \ - -I$(SRCDIR)/include -I$(BUILDDIR)/config_host \ - -$(IOSKIT): $(IOSOBJ) $(IOSLIBS) - $(call gb_Output_announce,iOS dylib,$(true),LNK,2) - $(call gb_Trace_StartRange,iOS dylib,LNK) - $(gb_CC) -dynamiclib \ - -Xlinker -rpath -Xlinker @executable_path/Frameworks \ - -Xlinker -rpath -Xlinker @loader_path/Frameworks \ - -install_name @rpath/libKit.dylib \ - -dead_strip \ - -Xlinker -export_dynamic \ - -Xlinker -no_deduplicate \ - -Xlinker -objc_abi_version -Xlinker 2 \ - -fobjc-link-runtime \ - -framework CoreFoundation \ - -framework CoreGraphics \ - -framework CoreText \ - -liconv \ - -lc++ \ - -lz \ - -lpthread \ - -single_module \ - -compatibility_version 1 \ - -current_version 1 \ - `$(SRCDIR)/bin/lo-all-static-libs` \ - $(IOSOBJ) \ - -o $(IOSKIT) -ifeq ($(origin IOS_CODEID),undefined) - @echo "please define environment variable IOS_CODEID as\n" \ - "export IOS_CODEID=" - @exit -1 -else - codesign -s "$(IOS_CODEID)" $(IOSKIT) -endif - $(call gb_Trace_EndRange,iOS dylib,LNK) - - -#- clean ios ----------------------------------------------------------------- -$(call gb_CustomTarget_get_clean_target,ios/iOS_link): - rm -f $(IOSKIT) - - - -# vim: set noet sw=4 ts=4: diff --git a/ios/DISCLAIMER_WARNING b/ios/DISCLAIMER_WARNING deleted file mode 100644 index 36663688db14..000000000000 --- a/ios/DISCLAIMER_WARNING +++ /dev/null @@ -1,11 +0,0 @@ -****** -Everything in ios is currently - WORK IN PROGRESS - -Do not expect it to work, or even compile - -If you want to help with the work, please send -an email to our dev@ list. - -rgds -jan I diff --git a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj deleted file mode 100644 index f1de19fdd9ec..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj +++ /dev/null @@ -1,635 +0,0 @@ -// !$*UTF8*$! -{ - archiveVersion = 1; - classes = { - }; - objectVersion = 48; - objects = { - -/* Begin PBXBuildFile section */ - 39284DB31FA5F207006F43E4 /* DocumentActions.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39284DB21FA5F207006F43E4 /* DocumentActions.swift */; }; - 392ED9B31E5E4B03005C8435 /* ViewPrintManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 392ED9B21E5E4B03005C8435 /* ViewPrintManager.swift */; }; - 3941EF15204B4C8A00082486 /* unorc in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF06204B4C8900082486 /* unorc */; }; - 3941EF16204B4C8A00082486 /* fundamentalrc in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF07204B4C8900082486 /* fundamentalrc */; }; - 3941EF17204B4C8A00082486 /* program in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF08204B4C8900082486 /* program */; }; - 3941EF18204B4C8A00082486 /* services.rdb in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF09204B4C8900082486 /* services.rdb */; }; - 3941EF19204B4C8A00082486 /* oovbaapi.rdb in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF0A204B4C8900082486 /* oovbaapi.rdb */; }; - 3941EF1A204B4C8A00082486 /* registry in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF0B204B4C8900082486 /* registry */; }; - 3941EF1B204B4C8A00082486 /* services in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF0C204B4C8900082486 /* services */; }; - 3941EF1C204B4C8A00082486 /* offapi.rdb in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF0D204B4C8900082486 /* offapi.rdb */; }; - 3941EF1D204B4C8A00082486 /* filter in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF0E204B4C8900082486 /* filter */; }; - 3941EF1E204B4C8A00082486 /* rc in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF0F204B4C8900082486 /* rc */; }; - 3941EF1F204B4C8A00082486 /* udkapi.rdb in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF10204B4C8900082486 /* udkapi.rdb */; }; - 3941EF20204B4C8A00082486 /* icudt62l.dat in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF11204B4C8900082486 /* icudt62l.dat */; }; - 3941EF21204B4C8A00082486 /* welcome.odt in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF12204B4C8900082486 /* welcome.odt */; }; - 3941EF22204B4C8A00082486 /* config in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF13204B4C8900082486 /* config */; }; - 3941EF23204B4C8A00082486 /* share in Resources */ = {isa = PBXBuildFile; fileRef = 3941EF14204B4C8900082486 /* share */; }; - 39514E002057DC55005599D0 /* shared in Resources */ = {isa = PBXBuildFile; fileRef = 39514DFF2057DC55005599D0 /* shared */; }; - 39514E082057E4A8005599D0 /* inc in Resources */ = {isa = PBXBuildFile; fileRef = 39514E072057E4A8005599D0 /* inc */; }; - 396F92F71E7AE62400A28C82 /* Settings.bundle in Resources */ = {isa = PBXBuildFile; fileRef = 396F92F61E7AE62400A28C82 /* Settings.bundle */; }; - 397868D61E59A3EA007F9248 /* LaunchScreen.xib in Resources */ = {isa = PBXBuildFile; fileRef = 397868D81E59A3EA007F9248 /* LaunchScreen.xib */; }; - 397E08FE1E597BD8001374E0 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 397E08FD1E597BD8001374E0 /* AppDelegate.swift */; }; - 397E09031E597BD8001374E0 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 397E09011E597BD8001374E0 /* Main.storyboard */; }; - 397E09081E597BD8001374E0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 397E09071E597BD8001374E0 /* Assets.xcassets */; }; - 3992D85A1E5B762A00BEA987 /* DocumentController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3992D8591E5B762A00BEA987 /* DocumentController.swift */; }; - 399648471E5B87DC00E73E83 /* ViewProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 399648461E5B87DC00E73E83 /* ViewProperties.swift */; }; - 39EF4E2F1FA500C9001914AC /* PropertiesController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 39EF4E2E1FA500C9001914AC /* PropertiesController.swift */; }; - FC31D01E2012F65500E7F402 /* DocumentHolder.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC31D01D2012F65500E7F402 /* DocumentHolder.swift */; }; - FC31D0202012F6D300E7F402 /* RenderCache.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC31D01F2012F6D300E7F402 /* RenderCache.swift */; }; - FC31D02B2013500E00E7F402 /* ButtonScrollView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC31D02A2013500E00E7F402 /* ButtonScrollView.swift */; }; - FC31D02D2015DE1700E7F402 /* UIViewExtensions.swift in Sources */ = {isa = PBXBuildFile; fileRef = FC31D02C2015DE1700E7F402 /* UIViewExtensions.swift */; }; - FCAB1CB82009DB6900F1CC34 /* DocumentOverlaysView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCAB1CB72009DB6900F1CC34 /* DocumentOverlaysView.swift */; }; - FCC2E3FA2004A01500CEB504 /* Document.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCC2E3F62004A01400CEB504 /* Document.swift */; }; - FCC2E3FC2004A01500CEB504 /* LibreOfficeKitWrapper.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCC2E3F82004A01400CEB504 /* LibreOfficeKitWrapper.swift */; }; - FCC2E3FD2004A01500CEB504 /* LOKitThread.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCC2E3F92004A01400CEB504 /* LOKitThread.swift */; }; - FCC2E3FF2004B59B00CEB504 /* DocumentTiledView.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCC2E3FE2004B59B00CEB504 /* DocumentTiledView.swift */; }; - FCC2E4032004B72700CEB504 /* Util.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCC2E4022004B72700CEB504 /* Util.swift */; }; - FCC2E4052004B74000CEB504 /* AsyncUtil.swift in Sources */ = {isa = PBXBuildFile; fileRef = FCC2E4042004B74000CEB504 /* AsyncUtil.swift */; }; - FCC7651D201C7F8A007D190C /* libKit.dylib in Frameworks */ = {isa = PBXBuildFile; fileRef = FCC7651C201C7F8A007D190C /* libKit.dylib */; }; - FCC7651E201C80A5007D190C /* libKit.dylib in Embed Libraries */ = {isa = PBXBuildFile; fileRef = FCC7651C201C7F8A007D190C /* libKit.dylib */; settings = {ATTRIBUTES = (CodeSignOnCopy, ); }; }; -/* End PBXBuildFile section */ - -/* Begin PBXCopyFilesBuildPhase section */ - FC148CE420187F7800C349CA /* Embed Libraries */ = { - isa = PBXCopyFilesBuildPhase; - buildActionMask = 2147483647; - dstPath = ""; - dstSubfolderSpec = 10; - files = ( - FCC7651E201C80A5007D190C /* libKit.dylib in Embed Libraries */, - ); - name = "Embed Libraries"; - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXCopyFilesBuildPhase section */ - -/* Begin PBXFileReference section */ - 39284DB21FA5F207006F43E4 /* DocumentActions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DocumentActions.swift; sourceTree = ""; }; - 392ED9B21E5E4B03005C8435 /* ViewPrintManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ViewPrintManager.swift; path = LibreOfficeLight/ViewPrintManager.swift; sourceTree = SOURCE_ROOT; }; - 3941EF06204B4C8900082486 /* unorc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = unorc; path = ../../workdir/CustomTarget/ios/resources/unorc; sourceTree = ""; }; - 3941EF07204B4C8900082486 /* fundamentalrc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = fundamentalrc; path = ../../workdir/CustomTarget/ios/resources/fundamentalrc; sourceTree = ""; }; - 3941EF08204B4C8900082486 /* program */ = {isa = PBXFileReference; lastKnownFileType = folder; name = program; path = ../../workdir/CustomTarget/ios/resources/program; sourceTree = ""; }; - 3941EF09204B4C8900082486 /* services.rdb */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.xml; name = services.rdb; path = ../../workdir/CustomTarget/ios/resources/services.rdb; sourceTree = ""; }; - 3941EF0A204B4C8900082486 /* oovbaapi.rdb */ = {isa = PBXFileReference; lastKnownFileType = file; name = oovbaapi.rdb; path = ../../workdir/CustomTarget/ios/resources/oovbaapi.rdb; sourceTree = ""; }; - 3941EF0B204B4C8900082486 /* registry */ = {isa = PBXFileReference; lastKnownFileType = folder; name = registry; path = ../../workdir/CustomTarget/ios/resources/registry; sourceTree = ""; }; - 3941EF0C204B4C8900082486 /* services */ = {isa = PBXFileReference; lastKnownFileType = folder; name = services; path = ../../workdir/CustomTarget/ios/resources/services; sourceTree = ""; }; - 3941EF0D204B4C8900082486 /* offapi.rdb */ = {isa = PBXFileReference; lastKnownFileType = file; name = offapi.rdb; path = ../../workdir/CustomTarget/ios/resources/offapi.rdb; sourceTree = ""; }; - 3941EF0E204B4C8900082486 /* filter */ = {isa = PBXFileReference; lastKnownFileType = folder; name = filter; path = ../../workdir/CustomTarget/ios/resources/filter; sourceTree = ""; }; - 3941EF0F204B4C8900082486 /* rc */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; name = rc; path = ../../workdir/CustomTarget/ios/resources/rc; sourceTree = ""; }; - 3941EF10204B4C8900082486 /* udkapi.rdb */ = {isa = PBXFileReference; lastKnownFileType = file; name = udkapi.rdb; path = ../../workdir/CustomTarget/ios/resources/udkapi.rdb; sourceTree = ""; }; - 3941EF11204B4C8900082486 /* icudt62l.dat */ = {isa = PBXFileReference; lastKnownFileType = file; name = icudt62l.dat; path = ../../workdir/CustomTarget/ios/resources/icudt62l.dat; sourceTree = ""; }; - 3941EF12204B4C8900082486 /* welcome.odt */ = {isa = PBXFileReference; lastKnownFileType = file; name = welcome.odt; path = ../../workdir/CustomTarget/ios/resources/welcome.odt; sourceTree = ""; }; - 3941EF13204B4C8900082486 /* config */ = {isa = PBXFileReference; lastKnownFileType = folder; name = config; path = ../../workdir/CustomTarget/ios/resources/config; sourceTree = ""; }; - 3941EF14204B4C8900082486 /* share */ = {isa = PBXFileReference; lastKnownFileType = folder; name = share; path = ../../workdir/CustomTarget/ios/resources/share; sourceTree = ""; }; - 39503A6F1F94C4AC00F19C78 /* lokit-Bridging-Header.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "lokit-Bridging-Header.h"; sourceTree = ""; }; - 39514DFF2057DC55005599D0 /* shared */ = {isa = PBXFileReference; lastKnownFileType = folder; name = shared; path = ../../bridges/source/cpp_uno/shared; sourceTree = ""; }; - 39514E012057DC92005599D0 /* gcc3_ios */ = {isa = PBXFileReference; lastKnownFileType = folder; name = gcc3_ios; path = ../../bridges/source/cpp_uno/gcc3_ios; sourceTree = ""; }; - 39514E032057DCE7005599D0 /* gcc3_macosx_x86-64 */ = {isa = PBXFileReference; lastKnownFileType = folder; name = "gcc3_macosx_x86-64"; path = "../../bridges/source/cpp_uno/gcc3_macosx_x86-64"; sourceTree = ""; }; - 39514E052057DD17005599D0 /* gcc3_linux_aarch64 */ = {isa = PBXFileReference; lastKnownFileType = folder; name = gcc3_linux_aarch64; path = ../../bridges/source/cpp_uno/gcc3_linux_aarch64; sourceTree = ""; }; - 39514E072057E4A8005599D0 /* inc */ = {isa = PBXFileReference; lastKnownFileType = folder; name = inc; path = ../../bridges/inc; sourceTree = ""; }; - 396F92F61E7AE62400A28C82 /* Settings.bundle */ = {isa = PBXFileReference; lastKnownFileType = "wrapper.plug-in"; path = Settings.bundle; sourceTree = ""; }; - 397275391E77D9F1006ACDCC /* LibreOfficeLight.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = LibreOfficeLight.entitlements; sourceTree = ""; }; - 397868D71E59A3EA007F9248 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.xib; name = en; path = en.lproj/LaunchScreen.xib; sourceTree = ""; }; - 397E08FA1E597BD8001374E0 /* LibreOfficeLight.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = LibreOfficeLight.app; sourceTree = BUILT_PRODUCTS_DIR; }; - 397E08FD1E597BD8001374E0 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = AppDelegate.swift; path = LibreOfficeLight/AppDelegate.swift; sourceTree = SOURCE_ROOT; }; - 397E09021E597BD8001374E0 /* en */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = en; path = en.lproj/Main.storyboard; sourceTree = ""; }; - 397E09071E597BD8001374E0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = LibreOfficeLight/Assets.xcassets; sourceTree = SOURCE_ROOT; }; - 3992D8591E5B762A00BEA987 /* DocumentController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = DocumentController.swift; path = LibreOfficeLight/DocumentController.swift; sourceTree = SOURCE_ROOT; }; - 399648461E5B87DC00E73E83 /* ViewProperties.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; name = ViewProperties.swift; path = LibreOfficeLight/ViewProperties.swift; sourceTree = SOURCE_ROOT; }; - 39B092501E5F3DEA00682A59 /* LibreOfficeLight-Prefix.pch */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = "LibreOfficeLight-Prefix.pch"; sourceTree = ""; }; - 39B4245D2060FB2300347588 /* ucbhelper.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = ucbhelper.cxx; path = ../../unotools/source/ucbhelper/ucbhelper.cxx; sourceTree = ""; }; - 39E950521FC9842000D82C49 /* source */ = {isa = PBXFileReference; lastKnownFileType = folder; name = source; path = ../source; sourceTree = ""; }; - 39EE81531FA644E800B73AB8 /* Info.plist */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = ""; }; - 39EF4E2E1FA500C9001914AC /* PropertiesController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = PropertiesController.swift; sourceTree = ""; }; - 39FD89E6204EBCB900E7179F /* exc_thrower.cxx */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; name = exc_thrower.cxx; path = ../../cppuhelper/source/exc_thrower.cxx; sourceTree = ""; }; - FC31D01D2012F65500E7F402 /* DocumentHolder.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DocumentHolder.swift; sourceTree = ""; }; - FC31D01F2012F6D300E7F402 /* RenderCache.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = RenderCache.swift; sourceTree = ""; }; - FC31D02A2013500E00E7F402 /* ButtonScrollView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ButtonScrollView.swift; sourceTree = ""; }; - FC31D02C2015DE1700E7F402 /* UIViewExtensions.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = UIViewExtensions.swift; sourceTree = ""; }; - FCAB1CB72009DB6900F1CC34 /* DocumentOverlaysView.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = DocumentOverlaysView.swift; sourceTree = ""; }; - FCC2E3F62004A01400CEB504 /* Document.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = Document.swift; sourceTree = ""; }; - FCC2E3F82004A01400CEB504 /* LibreOfficeKitWrapper.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LibreOfficeKitWrapper.swift; sourceTree = ""; }; - FCC2E3F92004A01400CEB504 /* LOKitThread.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LOKitThread.swift; sourceTree = ""; }; - FCC2E3FE2004B59B00CEB504 /* DocumentTiledView.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = DocumentTiledView.swift; sourceTree = ""; }; - FCC2E4022004B72700CEB504 /* Util.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Util.swift; sourceTree = ""; }; - FCC2E4042004B74000CEB504 /* AsyncUtil.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AsyncUtil.swift; sourceTree = ""; }; - FCC7651C201C7F8A007D190C /* libKit.dylib */ = {isa = PBXFileReference; lastKnownFileType = "compiled.mach-o.dylib"; path = libKit.dylib; sourceTree = BUILT_PRODUCTS_DIR; }; -/* End PBXFileReference section */ - -/* Begin PBXFrameworksBuildPhase section */ - 397E08F71E597BD8001374E0 /* Frameworks */ = { - isa = PBXFrameworksBuildPhase; - buildActionMask = 2147483647; - files = ( - FCC7651D201C7F8A007D190C /* libKit.dylib in Frameworks */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXFrameworksBuildPhase section */ - -/* Begin PBXGroup section */ - 3911D89F1E5993600050D6BC /* Support files */ = { - isa = PBXGroup; - children = ( - 39B092501E5F3DEA00682A59 /* LibreOfficeLight-Prefix.pch */, - 397275391E77D9F1006ACDCC /* LibreOfficeLight.entitlements */, - 397E09071E597BD8001374E0 /* Assets.xcassets */, - 396F92F61E7AE62400A28C82 /* Settings.bundle */, - ); - name = "Support files"; - path = LibreOfficeLight; - sourceTree = SOURCE_ROOT; - }; - 3956B72D1FAB3DBF00BF5DE4 /* extra */ = { - isa = PBXGroup; - children = ( - 39514E072057E4A8005599D0 /* inc */, - 39514E052057DD17005599D0 /* gcc3_linux_aarch64 */, - 39514E032057DCE7005599D0 /* gcc3_macosx_x86-64 */, - 39514E012057DC92005599D0 /* gcc3_ios */, - 39514DFF2057DC55005599D0 /* shared */, - 39FD89E6204EBCB900E7179F /* exc_thrower.cxx */, - 39B4245D2060FB2300347588 /* ucbhelper.cxx */, - 39E950521FC9842000D82C49 /* source */, - ); - name = extra; - sourceTree = ""; - }; - 3972753A1E77D9F7006ACDCC /* Frameworks */ = { - isa = PBXGroup; - children = ( - FCC7651C201C7F8A007D190C /* libKit.dylib */, - ); - name = Frameworks; - sourceTree = ""; - }; - 397E08F11E597BD8001374E0 = { - isa = PBXGroup; - children = ( - 3956B72D1FAB3DBF00BF5DE4 /* extra */, - 39B084E41E5F0B5200682A59 /* Resources */, - 3911D89F1E5993600050D6BC /* Support files */, - 397E08FC1E597BD8001374E0 /* LibreOfficeLight */, - 397E08FB1E597BD8001374E0 /* Products */, - 3972753A1E77D9F7006ACDCC /* Frameworks */, - ); - sourceTree = ""; - }; - 397E08FB1E597BD8001374E0 /* Products */ = { - isa = PBXGroup; - children = ( - 397E08FA1E597BD8001374E0 /* LibreOfficeLight.app */, - ); - name = Products; - sourceTree = ""; - }; - 397E08FC1E597BD8001374E0 /* LibreOfficeLight */ = { - isa = PBXGroup; - children = ( - FCC2E3F52004A01400CEB504 /* LOKit */, - 39EE81531FA644E800B73AB8 /* Info.plist */, - 39503A6F1F94C4AC00F19C78 /* lokit-Bridging-Header.h */, - 397E08FD1E597BD8001374E0 /* AppDelegate.swift */, - FC31D02A2013500E00E7F402 /* ButtonScrollView.swift */, - 3992D8591E5B762A00BEA987 /* DocumentController.swift */, - FCAB1CB72009DB6900F1CC34 /* DocumentOverlaysView.swift */, - FCC2E3FE2004B59B00CEB504 /* DocumentTiledView.swift */, - 39284DB21FA5F207006F43E4 /* DocumentActions.swift */, - 39EF4E2E1FA500C9001914AC /* PropertiesController.swift */, - FC31D02C2015DE1700E7F402 /* UIViewExtensions.swift */, - 392ED9B21E5E4B03005C8435 /* ViewPrintManager.swift */, - 399648461E5B87DC00E73E83 /* ViewProperties.swift */, - 397E09011E597BD8001374E0 /* Main.storyboard */, - 397868D81E59A3EA007F9248 /* LaunchScreen.xib */, - ); - path = LibreOfficeLight; - sourceTree = SOURCE_ROOT; - }; - 39B084E41E5F0B5200682A59 /* Resources */ = { - isa = PBXGroup; - children = ( - 3941EF13204B4C8900082486 /* config */, - 3941EF0E204B4C8900082486 /* filter */, - 3941EF07204B4C8900082486 /* fundamentalrc */, - 3941EF11204B4C8900082486 /* icudt62l.dat */, - 3941EF0D204B4C8900082486 /* offapi.rdb */, - 3941EF0A204B4C8900082486 /* oovbaapi.rdb */, - 3941EF08204B4C8900082486 /* program */, - 3941EF0F204B4C8900082486 /* rc */, - 3941EF0B204B4C8900082486 /* registry */, - 3941EF0C204B4C8900082486 /* services */, - 3941EF09204B4C8900082486 /* services.rdb */, - 3941EF14204B4C8900082486 /* share */, - 3941EF10204B4C8900082486 /* udkapi.rdb */, - 3941EF06204B4C8900082486 /* unorc */, - 3941EF12204B4C8900082486 /* welcome.odt */, - ); - name = Resources; - sourceTree = SOURCE_ROOT; - }; - FCC2E3F52004A01400CEB504 /* LOKit */ = { - isa = PBXGroup; - children = ( - FCC2E4042004B74000CEB504 /* AsyncUtil.swift */, - FCC2E3F62004A01400CEB504 /* Document.swift */, - FC31D01D2012F65500E7F402 /* DocumentHolder.swift */, - FCC2E3F82004A01400CEB504 /* LibreOfficeKitWrapper.swift */, - FCC2E3F92004A01400CEB504 /* LOKitThread.swift */, - FC31D01F2012F6D300E7F402 /* RenderCache.swift */, - FCC2E4022004B72700CEB504 /* Util.swift */, - ); - path = LOKit; - sourceTree = ""; - }; -/* End PBXGroup section */ - -/* Begin PBXNativeTarget section */ - 397E08F91E597BD8001374E0 /* LibreOfficeLight */ = { - isa = PBXNativeTarget; - buildConfigurationList = 397E09251E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLight" */; - buildPhases = ( - FC148D13201C7A6600C349CA /* ShellScript */, - 397E08F61E597BD8001374E0 /* Sources */, - 397E08F71E597BD8001374E0 /* Frameworks */, - 397E08F81E597BD8001374E0 /* Resources */, - FC148CE420187F7800C349CA /* Embed Libraries */, - ); - buildRules = ( - ); - dependencies = ( - ); - name = LibreOfficeLight; - productName = LibreOfficeLight; - productReference = 397E08FA1E597BD8001374E0 /* LibreOfficeLight.app */; - productType = "com.apple.product-type.application"; - }; -/* End PBXNativeTarget section */ - -/* Begin PBXProject section */ - 397E08F21E597BD8001374E0 /* Project object */ = { - isa = PBXProject; - attributes = { - LastSwiftUpdateCheck = 0820; - LastUpgradeCheck = 0930; - ORGANIZATIONNAME = jani; - TargetAttributes = { - 397E08F91E597BD8001374E0 = { - CreatedOnToolsVersion = 8.2; - LastSwiftMigration = 0900; - ProvisioningStyle = Automatic; - SystemCapabilities = { - com.apple.ApplicationGroups.iOS = { - enabled = 0; - }; - com.apple.Push = { - enabled = 0; - }; - com.apple.iCloud = { - enabled = 1; - }; - }; - }; - }; - }; - buildConfigurationList = 397E08F51E597BD8001374E0 /* Build configuration list for PBXProject "LibreOfficeLight" */; - compatibilityVersion = "Xcode 8.0"; - developmentRegion = English; - hasScannedForEncodings = 0; - knownRegions = ( - en, - ); - mainGroup = 397E08F11E597BD8001374E0; - productRefGroup = 397E08FB1E597BD8001374E0 /* Products */; - projectDirPath = ""; - projectRoot = ""; - targets = ( - 397E08F91E597BD8001374E0 /* LibreOfficeLight */, - ); - }; -/* End PBXProject section */ - -/* Begin PBXResourcesBuildPhase section */ - 397E08F81E597BD8001374E0 /* Resources */ = { - isa = PBXResourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - 3941EF15204B4C8A00082486 /* unorc in Resources */, - 3941EF19204B4C8A00082486 /* oovbaapi.rdb in Resources */, - 3941EF1D204B4C8A00082486 /* filter in Resources */, - 397E09081E597BD8001374E0 /* Assets.xcassets in Resources */, - 397868D61E59A3EA007F9248 /* LaunchScreen.xib in Resources */, - 39514E002057DC55005599D0 /* shared in Resources */, - 3941EF1A204B4C8A00082486 /* registry in Resources */, - 3941EF18204B4C8A00082486 /* services.rdb in Resources */, - 3941EF1C204B4C8A00082486 /* offapi.rdb in Resources */, - 3941EF22204B4C8A00082486 /* config in Resources */, - 396F92F71E7AE62400A28C82 /* Settings.bundle in Resources */, - 3941EF1E204B4C8A00082486 /* rc in Resources */, - 3941EF23204B4C8A00082486 /* share in Resources */, - 3941EF1B204B4C8A00082486 /* services in Resources */, - 3941EF21204B4C8A00082486 /* welcome.odt in Resources */, - 397E09031E597BD8001374E0 /* Main.storyboard in Resources */, - 3941EF20204B4C8A00082486 /* icudt62l.dat in Resources */, - 3941EF16204B4C8A00082486 /* fundamentalrc in Resources */, - 39514E082057E4A8005599D0 /* inc in Resources */, - 3941EF1F204B4C8A00082486 /* udkapi.rdb in Resources */, - 3941EF17204B4C8A00082486 /* program in Resources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXResourcesBuildPhase section */ - -/* Begin PBXShellScriptBuildPhase section */ - FC148D13201C7A6600C349CA /* ShellScript */ = { - isa = PBXShellScriptBuildPhase; - buildActionMask = 2147483647; - files = ( - ); - inputPaths = ( - ); - outputPaths = ( - ); - runOnlyForDeploymentPostprocessing = 0; - shellPath = /bin/bash; - shellScript = "\nGEN=$PROJECT_DIR/../../workdir/CustomTarget/ios/$CONFIGURATION\\_$ARCHS/libKit.dylib\ncp $GEN $TARGET_BUILD_DIR/libKit.dylib\n\n\n\n\n"; - }; -/* End PBXShellScriptBuildPhase section */ - -/* Begin PBXSourcesBuildPhase section */ - 397E08F61E597BD8001374E0 /* Sources */ = { - isa = PBXSourcesBuildPhase; - buildActionMask = 2147483647; - files = ( - FCC2E4032004B72700CEB504 /* Util.swift in Sources */, - 392ED9B31E5E4B03005C8435 /* ViewPrintManager.swift in Sources */, - FC31D01E2012F65500E7F402 /* DocumentHolder.swift in Sources */, - FCAB1CB82009DB6900F1CC34 /* DocumentOverlaysView.swift in Sources */, - FC31D0202012F6D300E7F402 /* RenderCache.swift in Sources */, - 399648471E5B87DC00E73E83 /* ViewProperties.swift in Sources */, - FCC2E3FC2004A01500CEB504 /* LibreOfficeKitWrapper.swift in Sources */, - 39284DB31FA5F207006F43E4 /* DocumentActions.swift in Sources */, - 3992D85A1E5B762A00BEA987 /* DocumentController.swift in Sources */, - FCC2E3FD2004A01500CEB504 /* LOKitThread.swift in Sources */, - 397E08FE1E597BD8001374E0 /* AppDelegate.swift in Sources */, - FC31D02B2013500E00E7F402 /* ButtonScrollView.swift in Sources */, - FCC2E3FA2004A01500CEB504 /* Document.swift in Sources */, - FCC2E3FF2004B59B00CEB504 /* DocumentTiledView.swift in Sources */, - FC31D02D2015DE1700E7F402 /* UIViewExtensions.swift in Sources */, - FCC2E4052004B74000CEB504 /* AsyncUtil.swift in Sources */, - 39EF4E2F1FA500C9001914AC /* PropertiesController.swift in Sources */, - ); - runOnlyForDeploymentPostprocessing = 0; - }; -/* End PBXSourcesBuildPhase section */ - -/* Begin PBXVariantGroup section */ - 397868D81E59A3EA007F9248 /* LaunchScreen.xib */ = { - isa = PBXVariantGroup; - children = ( - 397868D71E59A3EA007F9248 /* en */, - ); - name = LaunchScreen.xib; - path = LibreOfficeLight; - sourceTree = SOURCE_ROOT; - }; - 397E09011E597BD8001374E0 /* Main.storyboard */ = { - isa = PBXVariantGroup; - children = ( - 397E09021E597BD8001374E0 /* en */, - ); - name = Main.storyboard; - path = LibreOfficeLight; - sourceTree = SOURCE_ROOT; - }; -/* End PBXVariantGroup section */ - -/* Begin XCBuildConfiguration section */ - 397E09231E597BD8001374E0 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - LO_CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - LO_CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_OPTIMIZATION_PROFILE_FILE = "$(SRCROOT)/../../workdir/CustomTarget/ios/$(PROJECT_NAME).profdata"; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_BITCODE = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - ENABLE_TESTABILITY = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_DYNAMIC_NO_PIC = NO; - GCC_NO_COMMON_BLOCKS = YES; - GCC_OPTIMIZATION_LEVEL = 0; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "$(inherited)", - ); - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$(inherited)"; - IPHONEOS_DEPLOYMENT_TARGET = 11.3; - LD_MAP_FILE_PATH = ""; - LIBRARY_SEARCH_PATHS = "$PROJECT_DIR/../../workdir/CustomTarget/ios/debug/**"; - MACH_O_TYPE = mh_execute; - MTL_ENABLE_DEBUG_INFO = YES; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; - SWIFT_OBJC_BRIDGING_HEADER = "lokit-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; - SYMROOT = ../../workdir/CustomTarget/ios/build; - TARGETED_DEVICE_FAMILY = "1,2"; - VALID_ARCHS = "arm64 x86_64"; - }; - name = Debug; - }; - 397E09241E597BD8001374E0 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ALWAYS_SEARCH_USER_PATHS = NO; - CLANG_ANALYZER_NONNULL = YES; - LO_CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; - LO_CLANG_CXX_LIBRARY = "libc++"; - CLANG_ENABLE_MODULES = YES; - CLANG_ENABLE_OBJC_ARC = YES; - CLANG_OPTIMIZATION_PROFILE_FILE = "$(SRCROOT)/../../workdir/CustomTarget/ios/$(PROJECT_NAME).profdata"; - CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES; - CLANG_WARN_BOOL_CONVERSION = YES; - CLANG_WARN_COMMA = YES; - CLANG_WARN_CONSTANT_CONVERSION = YES; - CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = YES; - CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_EMPTY_BODY = YES; - CLANG_WARN_ENUM_CONVERSION = YES; - CLANG_WARN_INFINITE_RECURSION = YES; - CLANG_WARN_INT_CONVERSION = YES; - CLANG_WARN_NON_LITERAL_NULL_CONVERSION = YES; - CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES; - CLANG_WARN_OBJC_LITERAL_CONVERSION = YES; - CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; - CLANG_WARN_RANGE_LOOP_ANALYSIS = YES; - CLANG_WARN_STRICT_PROTOTYPES = YES; - CLANG_WARN_SUSPICIOUS_MOVE = YES; - CLANG_WARN_UNREACHABLE_CODE = YES; - CLANG_WARN__DUPLICATE_METHOD_MATCH = YES; - CODE_SIGN_IDENTITY = ""; - "CODE_SIGN_IDENTITY[sdk=iphoneos*]" = "iPhone Developer"; - COPY_PHASE_STRIP = NO; - DEBUG_INFORMATION_FORMAT = dwarf; - ENABLE_BITCODE = NO; - ENABLE_NS_ASSERTIONS = NO; - ENABLE_STRICT_OBJC_MSGSEND = YES; - GCC_C_LANGUAGE_STANDARD = gnu99; - GCC_NO_COMMON_BLOCKS = YES; - GCC_WARN_64_TO_32_BIT_CONVERSION = YES; - GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR; - GCC_WARN_UNDECLARED_SELECTOR = YES; - GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE; - GCC_WARN_UNUSED_FUNCTION = YES; - GCC_WARN_UNUSED_VARIABLE = YES; - HEADER_SEARCH_PATHS = "$(inherited)"; - IPHONEOS_DEPLOYMENT_TARGET = 11.3; - LD_MAP_FILE_PATH = ""; - LIBRARY_SEARCH_PATHS = "$PROJECT_DIR/../../workdir/CustomTarget/ios/release/**"; - MACH_O_TYPE = mh_execute; - MTL_ENABLE_DEBUG_INFO = NO; - ONLY_ACTIVE_ARCH = YES; - SDKROOT = iphoneos; - SWIFT_OBJC_BRIDGING_HEADER = "lokit-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_SWIFT3_OBJC_INFERENCE = Default; - SWIFT_VERSION = 4.0; - SYMROOT = ../../workdir/CustomTarget/ios/build; - TARGETED_DEVICE_FAMILY = "1,2"; - VALIDATE_PRODUCT = YES; - VALID_ARCHS = "arm64 x86_64"; - }; - name = Release; - }; - 397E09261E597BD8001374E0 /* Debug */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_INFINITE_RECURSION = NO; - CODE_SIGN_ENTITLEMENTS = LibreOfficeLight/LibreOfficeLight.entitlements; - DEVELOPMENT_TEAM = J4FQ687VJK; - ENABLE_TESTABILITY = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "LibreOfficeLight/LibreOfficeLight-Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = ( - "DEBUG=1", - "IOS=1", - ); - GCC_SYMBOLS_PRIVATE_EXTERN = NO; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/../../include", - ); - INFOPLIST_FILE = LibreOfficeLight/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.2; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ""; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = org.libreoffice.ios.LibreOfficeLight; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "LibreOfficeLight/lokit-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Onone"; - SWIFT_SWIFT3_OBJC_INFERENCE = Off; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALID_ARCHS = "arm64 x86_64"; - }; - name = Debug; - }; - 397E09271E597BD8001374E0 /* Release */ = { - isa = XCBuildConfiguration; - buildSettings = { - ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; - CLANG_ENABLE_MODULES = YES; - CLANG_WARN_DOCUMENTATION_COMMENTS = NO; - CLANG_WARN_INFINITE_RECURSION = NO; - CODE_SIGN_ENTITLEMENTS = LibreOfficeLight/LibreOfficeLight.entitlements; - COPY_PHASE_STRIP = YES; - DEVELOPMENT_TEAM = J4FQ687VJK; - ENABLE_TESTABILITY = NO; - GCC_PRECOMPILE_PREFIX_HEADER = YES; - GCC_PREFIX_HEADER = "LibreOfficeLight/LibreOfficeLight-Prefix.pch"; - GCC_PREPROCESSOR_DEFINITIONS = "IOS=1"; - HEADER_SEARCH_PATHS = ( - "$(inherited)", - "$(PROJECT_DIR)/../../include", - ); - INFOPLIST_FILE = LibreOfficeLight/Info.plist; - IPHONEOS_DEPLOYMENT_TARGET = 11.2; - LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; - LIBRARY_SEARCH_PATHS = ""; - ONLY_ACTIVE_ARCH = YES; - PRODUCT_BUNDLE_IDENTIFIER = org.libreoffice.ios.LibreOfficeLight; - PRODUCT_NAME = "$(TARGET_NAME)"; - SWIFT_OBJC_BRIDGING_HEADER = "LibreOfficeLight/lokit-Bridging-Header.h"; - SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; - SWIFT_SWIFT3_OBJC_INFERENCE = Off; - SWIFT_VERSION = 4.0; - TARGETED_DEVICE_FAMILY = "1,2"; - VALID_ARCHS = "arm64 x86_64"; - }; - name = Release; - }; -/* End XCBuildConfiguration section */ - -/* Begin XCConfigurationList section */ - 397E08F51E597BD8001374E0 /* Build configuration list for PBXProject "LibreOfficeLight" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 397E09231E597BD8001374E0 /* Debug */, - 397E09241E597BD8001374E0 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; - 397E09251E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLight" */ = { - isa = XCConfigurationList; - buildConfigurations = ( - 397E09261E597BD8001374E0 /* Debug */, - 397E09271E597BD8001374E0 /* Release */, - ); - defaultConfigurationIsVisible = 0; - defaultConfigurationName = Debug; - }; -/* End XCConfigurationList section */ - }; - rootObject = 397E08F21E597BD8001374E0 /* Project object */; -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme deleted file mode 100644 index 450c96e3b6ba..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Debug.xcscheme +++ /dev/null @@ -1,98 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme b/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme deleted file mode 100644 index 9c3d62de88a1..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight.xcodeproj/xcshareddata/xcschemes/Release.xcscheme +++ /dev/null @@ -1,91 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift b/ios/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift deleted file mode 100644 index f0b5f6bd3740..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift +++ /dev/null @@ -1,117 +0,0 @@ -// -// 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/. -// -import UIKit -import Foundation - - -// AppDelegate is a Delegate class that receives calls from the iOS -// kernel, and theirby allows stop/start/sleep of the application -@UIApplicationMain -class AppDelegate: UIResponder, UIApplicationDelegate -{ - var window: UIWindow? - - - - // sent when clicking on an OO document in another app - // allowing this app to handle the document. - // remark if the app is not started it will be started first - func application(_ app: UIApplication, - open url: URL, options: [UIApplicationOpenURLOptionsKey : Any] = [:]) - -> Bool - { - let document = window?.rootViewController?.childViewControllers[0] as! DocumentController - document.doOpen(url) - return true - } - - - - // this function is called when the app is first started (loaded from EEProm) - // it initializes the LO system and prepares for a normal run - func application(_ application: UIApplication, - didFinishLaunchingWithOptions launchOptions: - [UIApplicationLaunchOptionsKey: Any]?) - -> Bool - { - // Get version info - let appInfo = Bundle.main.infoDictionary! as Dictionary - let applicationVersion = (appInfo["CFBundleShortVersionString"] as! String) + "." + - (appInfo["CFBundleVersion"] as! String) - - // Add version string to setting - let defaults = UserDefaults.standard - defaults.set(applicationVersion, forKey: "application_version") - defaults.synchronize() - - // start LibreOfficeKit - let _ = LOKitThread.instance - - return true - } - - - - // Sent when the application is about to move from active to inactive state. - // This can occur for certain types of temporary interruptions - // (such as an incoming phone call or SMS message) - // or when the user quits the application and it begins the transition - // jto the background state. - // Use this method to pause ongoing tasks, disable timers, - // and invalidate graphics rendering callbacks. - func applicationWillResignActive(_ application: UIApplication) - { - // NOT used in this App - } - - - - // Sent when the application enters background (hipernating) - // Use this method to release shared resources, save user data, invalidate timers, - // and store enough application state information to restore your application - // to its current state jin case it is terminated later. - // If your application supports background execution, - // this method is called instead of applicationWillTerminate: when the user quits. - func applicationDidEnterBackground(_ application: UIApplication) - { - let document = window?.rootViewController?.childViewControllers[0] - as! DocumentController - document.Hipernate() - } - - - - // Sent before the application reenters foreground (hipernating -> active) - // Restart timers, tasks as well as graphic rendering - func applicationWillEnterForeground(_ application: UIApplication) - { - let document = window?.rootViewController?.childViewControllers[0] as! DocumentController - document.LeaveHipernate() - } - - - - // Sent after the application reenters foreground (hipernating -> active) - // Restart timers, tasks as well as graphic rendering - func applicationDidBecomeActive(_ application: UIApplication) - { - // NOT used in this App - } - - - - // Sent when the application is about to terminate. Save data if appropriate. - // See also applicationDidEnterBackground:. - // Saves changes in the application's managed object context before the application terminates. - func applicationWillTerminate(_ application: UIApplication) - { - let document = window?.rootViewController?.childViewControllers[0] as! DocumentController - document.Hipernate() - } -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json deleted file mode 100644 index b179c2c532c9..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "images" : [ - { - "idiom" : "iphone", - "size" : "20x20", - "filename" : "LibreOffice-40.png", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "20x20", - "filename" : "LibreOffice-60.png", - "scale" : "3x" - }, - { - "size" : "29x29", - "idiom" : "iphone", - "filename" : "LibreOffice-58.png", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "29x29", - "filename" : "LibreOffice-87.png", - "scale" : "3x" - }, - { - "size" : "40x40", - "idiom" : "iphone", - "filename" : "LibreOffice-80.png", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "40x40", - "filename" : "LibreOffice-120.png", - "scale" : "3x" - }, - { - "size" : "60x60", - "idiom" : "iphone", - "filename" : "LibreOffice-120.png", - "scale" : "2x" - }, - { - "idiom" : "iphone", - "size" : "60x60", - "filename" : "LibreOffice-180.png", - "scale" : "3x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "filename" : "LibreOffice-20.png", - "scale" : "1x" - }, - { - "idiom" : "ipad", - "size" : "20x20", - "filename" : "LibreOffice-40.png", - "scale" : "2x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "LibreOffice-29.png", - "scale" : "1x" - }, - { - "size" : "29x29", - "idiom" : "ipad", - "filename" : "LibreOffice-58.png", - "scale" : "2x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "LibreOffice-40.png", - "scale" : "1x" - }, - { - "size" : "40x40", - "idiom" : "ipad", - "filename" : "LibreOffice-80.png", - "scale" : "2x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "LibreOffice-76.png", - "scale" : "1x" - }, - { - "size" : "76x76", - "idiom" : "ipad", - "filename" : "LibreOffice-152.png", - "scale" : "2x" - }, - { - "idiom" : "ipad", - "size" : "83.5x83.5", - "filename" : "LibreOffice-167.png", - "scale" : "2x" - }, - { - "size" : "1024x1024", - "idiom" : "ios-marketing", - "filename" : "LibreOffice-1024.png", - "scale" : "1x" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-1024.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-1024.png deleted file mode 100644 index e25eb6bddb7b..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-1024.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png deleted file mode 100644 index 49a7a1070b60..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png deleted file mode 100644 index 9a204a930a16..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png deleted file mode 100644 index ef0033f9a8c5..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png deleted file mode 100644 index 2fdcb30dcad7..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png deleted file mode 100644 index ba82eb87b5e3..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png deleted file mode 100644 index 5a03ed3f40a3..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png deleted file mode 100644 index 1fefbff4bddb..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png deleted file mode 100644 index cd6cf1338bd0..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png deleted file mode 100644 index 00774322c381..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png deleted file mode 100644 index 879629fc827e..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png deleted file mode 100644 index 1ae49c48cb6a..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png deleted file mode 100644 index 679f6abc0816..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/Contents.json deleted file mode 100644 index cc9fb3d1aa3e..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x", - "filename" : "back.png" - }, - { - "idiom" : "universal", - "scale" : "2x", - "filename" : "back@2x.png" - }, - { - "idiom" : "universal", - "scale" : "3x", - "filename" : "back@3x.png" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back.png deleted file mode 100644 index 0b9776a64231..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@2x.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@2x.png deleted file mode 100644 index 6e7c3995dfdb..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@2x.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@3x.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@3x.png deleted file mode 100644 index e66980cddde4..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/back.imageset/back@3x.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/Contents.json deleted file mode 100644 index da4a164c9186..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/Contents.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/Contents.json deleted file mode 100644 index 885f35756af9..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "drawing-template.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/drawing-template.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/drawing-template.icns deleted file mode 100644 index 64c373ecaa33..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing-template.dataset/drawing-template.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/Contents.json deleted file mode 100644 index 3e1c14b1bd99..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "drawing.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/drawing.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/drawing.icns deleted file mode 100644 index d179d041a6ca..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/drawing.dataset/drawing.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/Contents.json deleted file mode 100644 index 816e9aa12ac6..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "empty-document.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/empty-document.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/empty-document.ico deleted file mode 100644 index ec11e8fe579a..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-document.dataset/empty-document.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/Contents.json deleted file mode 100644 index 8d4ccc066991..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "empty-template.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/empty-template.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/empty-template.ico deleted file mode 100644 index ec11e8fe579a..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/empty-template.dataset/empty-template.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/Contents.json deleted file mode 100644 index f35fc2be7409..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "extension.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/extension.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/extension.icns deleted file mode 100644 index cec1b92c37b2..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/extension.dataset/extension.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/Contents.json deleted file mode 100644 index dec8005ed4ef..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "formula.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/formula.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/formula.icns deleted file mode 100644 index f6dc588095f4..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/formula.dataset/formula.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/Contents.json deleted file mode 100644 index 1fb866b12621..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "main.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/main.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/main.icns deleted file mode 100644 index c3e1bf693142..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/main.dataset/main.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/Contents.json deleted file mode 100644 index 1b65ad0ed8af..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "master-document.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/master-document.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/master-document.icns deleted file mode 100644 index 4b0cf1bb7ea6..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/master-document.dataset/master-document.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/Contents.json deleted file mode 100644 index 5f270e1fe434..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-database.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/oasis-database.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/oasis-database.icns deleted file mode 100644 index e523fdd9d5d1..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-database.dataset/oasis-database.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/Contents.json deleted file mode 100644 index c2c2cc129596..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-drawing-template.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/oasis-drawing-template.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/oasis-drawing-template.ico deleted file mode 100644 index 9991270a5f84..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing-template.dataset/oasis-drawing-template.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/Contents.json deleted file mode 100644 index 74ba17140dd8..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-drawing.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/oasis-drawing.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/oasis-drawing.icns deleted file mode 100644 index 64563d2576ab..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-drawing.dataset/oasis-drawing.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/Contents.json deleted file mode 100644 index 19236e87ff66..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-formula.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/oasis-formula.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/oasis-formula.ico deleted file mode 100644 index 07b3e8ecf929..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-formula.dataset/oasis-formula.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/Contents.json deleted file mode 100644 index 47b7fb7ef3c0..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-master-document-template.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/oasis-master-document-template.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/oasis-master-document-template.icns deleted file mode 100644 index 9115dfc4b443..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document-template.dataset/oasis-master-document-template.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/Contents.json deleted file mode 100644 index 5043c1477d89..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-master-document.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/oasis-master-document.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/oasis-master-document.ico deleted file mode 100644 index 0ac9681b10b9..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-master-document.dataset/oasis-master-document.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/Contents.json deleted file mode 100644 index 0f5874081f8f..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-presentation-template.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/oasis-presentation-template.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/oasis-presentation-template.icns deleted file mode 100644 index 6bf52a1849b4..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation-template.dataset/oasis-presentation-template.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/Contents.json deleted file mode 100644 index 98bd94f4db47..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-presentation.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/oasis-presentation.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/oasis-presentation.ico deleted file mode 100644 index 0845cad87f48..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-presentation.dataset/oasis-presentation.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/Contents.json deleted file mode 100644 index 97df6313091a..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-spreadsheet-template.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/oasis-spreadsheet-template.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/oasis-spreadsheet-template.icns deleted file mode 100644 index d217378535ff..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet-template.dataset/oasis-spreadsheet-template.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/Contents.json deleted file mode 100644 index 189679bfcc2b..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-spreadsheet.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/oasis-spreadsheet.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/oasis-spreadsheet.icns deleted file mode 100644 index 95cc98b343da..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-spreadsheet.dataset/oasis-spreadsheet.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/Contents.json deleted file mode 100644 index ead3ca01d657..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-text-template.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/oasis-text-template.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/oasis-text-template.ico deleted file mode 100644 index 71136e778458..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text-template.dataset/oasis-text-template.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/Contents.json deleted file mode 100644 index 36818aec009f..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-text.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/oasis-text.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/oasis-text.ico deleted file mode 100644 index 70210b0ec661..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-text.dataset/oasis-text.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/Contents.json deleted file mode 100644 index 59b4f2d0759c..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "oasis-web-template.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/oasis-web-template.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/oasis-web-template.icns deleted file mode 100644 index 06fcd5ad1193..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/oasis-web-template.dataset/oasis-web-template.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/Contents.json deleted file mode 100644 index 26efddc8e782..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "open.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/open.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/open.ico deleted file mode 100644 index ec11e8fe579a..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/open.dataset/open.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/Contents.json deleted file mode 100644 index 1cf424888b4c..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "presentation-template.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/presentation-template.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/presentation-template.ico deleted file mode 100644 index b248474958e9..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation-template.dataset/presentation-template.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/Contents.json deleted file mode 100644 index 48727c0d5b39..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "presentation.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/presentation.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/presentation.ico deleted file mode 100644 index 0845cad87f48..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/presentation.dataset/presentation.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/Contents.json deleted file mode 100644 index 30042d0d9633..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "soffice.ico" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/soffice.ico b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/soffice.ico deleted file mode 100644 index ec11e8fe579a..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/soffice.dataset/soffice.ico and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/Contents.json deleted file mode 100644 index 01557a90814d..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "spreadsheet-template.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/spreadsheet-template.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/spreadsheet-template.icns deleted file mode 100644 index f527a14b7969..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet-template.dataset/spreadsheet-template.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/Contents.json deleted file mode 100644 index 87e81d2698c1..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "spreadsheet.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/spreadsheet.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/spreadsheet.icns deleted file mode 100644 index 9d61c699c47b..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/spreadsheet.dataset/spreadsheet.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/Contents.json deleted file mode 100644 index c5cbe2c9cb42..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "text-template.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/text-template.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/text-template.icns deleted file mode 100644 index accd48b9bdd2..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text-template.dataset/text-template.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/Contents.json deleted file mode 100644 index 3fd87b58858c..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/Contents.json +++ /dev/null @@ -1,12 +0,0 @@ -{ - "info" : { - "version" : 1, - "author" : "xcode" - }, - "data" : [ - { - "idiom" : "universal", - "filename" : "text.icns" - } - ] -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/text.icns b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/text.icns deleted file mode 100644 index 9b7a301ee02b..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.icons/text.dataset/text.icns and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json deleted file mode 100644 index 1f910096d224..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x", - "filename" : "intro.png" - }, - { - "idiom" : "universal", - "scale" : "2x", - "filename" : "intro.png" - }, - { - "idiom" : "universal", - "scale" : "3x", - "filename" : "intro.png" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png deleted file mode 100644 index d27f8858dc6c..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json deleted file mode 100644 index da2ac2bbdaa2..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "images" : [ - { - "idiom" : "universal", - "scale" : "1x", - "filename" : "menu.png" - }, - { - "idiom" : "universal", - "scale" : "2x", - "filename" : "menu@2x.png" - }, - { - "idiom" : "universal", - "scale" : "3x", - "filename" : "menu@3x.png" - } - ], - "info" : { - "version" : 1, - "author" : "xcode" - } -} \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png deleted file mode 100644 index fe97b0cfe224..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png deleted file mode 100644 index f5e9a1597c95..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png b/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png deleted file mode 100644 index 9f00717fe29e..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift b/ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift deleted file mode 100644 index 615c145fe385..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/ButtonScrollView.swift +++ /dev/null @@ -1,145 +0,0 @@ -// -// 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/. -// -import UIKit - -/// Scrollable list of buttons. -/// Kind of like a tab bar, but doesn't maintain or switch between views, just calls back on click -open class ButtonScrollView: UIScrollView -{ - var buttonList: ButtonList? = nil - - var buttonClickedCallback: ( (Int) -> () )? = nil - - var selectedIndex: Int? - { - get { - return buttonList?.selectedIndex - } - set { - buttonList?.selectedIndex = selectedIndex - } - } - - public override init(frame: CGRect) - { - super.init(frame: frame) - } - - public required init?(coder aDecoder: NSCoder) - { - super.init(coder: aDecoder) - } - - public func setButtonLabels(labels: [String]) - { - if let bl = buttonList - { - bl.removeFromSuperview() - } - let bl = ButtonList(frame: CGRect(x:0, y:0, width: self.frame.width, height:44), - labels: labels, - owner: self) - self.addSubview(bl) - self.contentSize = bl.frame.size - self.buttonList = bl - } -} - -/// Horizontally laid out buttons, living within the owned scroll view -open class ButtonList: UIView -{ - let labels: [String] - let gap: CGFloat = 10.0 - let topGap: CGFloat = 8 - weak var owner: ButtonScrollView? = nil - - var buttonBackground = UIColor(white: 0.6, alpha: 1) - var selectedButtonBackground = UIColor.white - - var selectedIndex: Int? = 0 - { - didSet { - runOnMain { - self.highlightSelectedIndex() - } - } - } - - public init(frame: CGRect, labels: [String], owner: ButtonScrollView) - { - self.labels = labels - self.owner = owner - super.init(frame: frame) - self.backgroundColor = UIColor(white: 0.9, alpha: 1) - - var idx = 0 - for label in labels - { - let b = UIButton(type: .custom) - b.setTitle(label, for: .normal) - b.backgroundColor = buttonBackground - b.contentEdgeInsets = UIEdgeInsets(top: 4, left: 4, bottom: 4, right: 4) - b.layer.cornerRadius = 4 - b.tag = idx - b.addTarget(self, action: #selector(buttonTapped), for: UIControlEvents.touchUpInside) - self.addSubview(b) - idx += 1 - } - self.layoutSubviews() - } - - @objc func buttonTapped(sender: UIButton, forEvent event: UIEvent) - { - let idx = sender.tag - owner?.buttonClickedCallback?(idx) - self.selectedIndex = idx - } - - public required init?(coder aDecoder: NSCoder) - { - fatalError("init(coder:) has not been implemented") - } - - public var buttons: [UIButton] - { - return self.subviews.compactMap({ $0 as? UIButton }) - } - - open override func layoutSubviews() - { - - var x: CGFloat = gap - for button in buttons - { - button.sizeToFit() - let s = button.frame.size - button.frame = CGRect(x: x, y: topGap, width: s.width, height: s.height) - x = x + (s.width + gap) - } - highlightSelectedIndex() - self.frame = CGRect(x:0, y: 0, width: x, height: self.frame.height) - } - - open func highlightSelectedIndex() - { - for (index, button) in buttons.enumerated() - { - if (index == selectedIndex) - { - button.backgroundColor = selectedButtonBackground - button.setTitleColor(.black, for: .normal) - } - else - { - button.backgroundColor = buttonBackground - button.setTitleColor(.white, for: .normal) - } - - } - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/DocumentActions.swift b/ios/LibreOfficeLight/LibreOfficeLight/DocumentActions.swift deleted file mode 100644 index dddb3b22d3b0..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/DocumentActions.swift +++ /dev/null @@ -1,75 +0,0 @@ -// -// 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/. -// -import UIKit - - - -// DocumentActions is the main menu popover started from DocumentController -// it allows the user to invoke global actions and delegates the processing -// back to the DocumentController -class DocumentActions: UITableViewController -{ - // Pointer to callback class (in reality instance of DocumentController) - var delegate : MenuDelegate? - - - - // set by DocumentController before invoking the menu - // the variable is used to control which menu entries are active - var isDocActive : Bool = false - - - - // Reference to instances of the buttons - @IBOutlet weak var buttonOpen: UIButton! - @IBOutlet weak var buttonProperties: UIButton! - @IBOutlet weak var buttonSave: UIButton! - @IBOutlet weak var buttonClose: UIButton! - @IBOutlet weak var buttonSaveAs: UIButton! - @IBOutlet weak var buttonSaveAsPDF: UIButton! - @IBOutlet weak var buttonPrint: UIButton! - - - - // called once controller is loaded - override func viewDidLoad() - { - super.viewDidLoad() - - // Some menu entries are only active when a document is loaded - buttonSave.isEnabled = isDocActive - buttonProperties.isEnabled = isDocActive - buttonClose.isEnabled = isDocActive - buttonSaveAs.isEnabled = isDocActive - buttonSaveAsPDF.isEnabled = isDocActive - buttonPrint.isEnabled = isDocActive - } - - - - // Called when user click on a menu entry (all entries goes here) - // see storyboard Document actions scene for details - @IBAction func actionMenuSelect(_ sender: UIButton) - { - // make popover go away, when this function returns - dismiss(animated: false) - - // inform DocumentController about the selected entry - delegate?.actionMenuSelected(sender.tag) - } -} - - - -// Protocol for action popover callback -protocol MenuDelegate -{ - // inform delegate about selected menu entry - func actionMenuSelected(_ tag : Int) -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift b/ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift deleted file mode 100644 index d06ccac4e728..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/DocumentController.swift +++ /dev/null @@ -1,598 +0,0 @@ -// -// 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/. -// -import UIKit - - -// DocumentController is the main viewer in the app, it displays the selected -// documents and holds a top entry to view the properties as well as a normal -// menu to handle global actions -// It is a delegate class to receive Menu events as well as file handling events -class DocumentController: UIViewController, MenuDelegate, UIDocumentBrowserViewControllerDelegate -{ - var document: DocumentHolder? = nil - - var documentView: DocumentTiledView? = nil - var documentOverlaysView: DocumentOverlaysView? = nil - - // *** Handling of DocumentController - // this is normal functions every controller must implement - - - // holds known document types - var KnownDocumentTypes : [String] = [] - - var zeroInsets: UIEdgeInsets = .zero - - @IBOutlet weak var scrollView: UIScrollView! - @IBOutlet weak var mask: UIView! - @IBOutlet weak var progressBar: UIProgressView! - @IBOutlet weak var searchBar: UISearchBar! - @IBOutlet weak var buttonScrollView: ButtonScrollView! - - deinit - { - NotificationCenter.default.removeObserver(self) - } - - // called once controller is loaded - override func viewDidLoad() - { - super.viewDidLoad() - - // loading known document types, so we can use them for the open call - let path = Bundle.main.path(forResource: "Info", ofType: "plist") - let plist = NSDictionary(contentsOfFile: path!) - for dict in (plist!.object(forKey: "UTExportedTypeDeclarations") as! [NSDictionary]) + - (plist!.object(forKey: "UTImportedTypeDeclarations") as! [NSDictionary]) { - let x = ((dict["UTTypeTagSpecification"] as! NSDictionary)["public.filename-extension"] as! NSArray) - KnownDocumentTypes.append( x[0] as! String ) - } - LOKitThread.instance.progressDelegate = self - } - - override func viewWillAppear(_ animated: Bool) - { - super.viewWillAppear(animated) - registerKeyboardNotifications() - } - - override func viewDidAppear(_ animated: Bool) - { - super.viewDidAppear(animated) - - // Always load the 'welcome' file, as per the android app - let res = Bundle.main.url(forResource: "welcome", withExtension: "odt") - - // uncomment for test data in resources until the doc picker works properly - //let res = Bundle.main.url(forResource: "testdata/2", withExtension: "xlsx") - - if let exampleDoc = res - { - self.doOpen(exampleDoc) - } - } - - // called when there is a memory constraint - override func didReceiveMemoryWarning() - { - super.didReceiveMemoryWarning() - // not used in this App - } - - @IBAction func searchIconTapped(_ sender: Any) - { - searchBar.isHidden = !searchBar.isHidden - if (!searchBar.isHidden) - { - searchBar.becomeFirstResponder() - } - } - - - // *** Handling of Background (hipernate) - // iOS is not true multitasking, only 1 app can be active (foreground) at any time, - // therefore apps frequently are moved to the background. - // background really means hipernate by terminating all threads and solely keep the - // data - - - - // Moving to hipernate - public func Hipernate() -> Void - { - //BridgeLOkit_Hipernate() // FIXME - } - - - - // Moving back to foreground - public func LeaveHipernate() -> Void - { - //BridgeLOkit_LeaveHipernate() // FIXME - } - - - - // *** handling of PropertiesController - // The PropertiesController is a left sidebar, that will scroll in when activated - // The Controller handles manipulation of properties in the document - - - - // Activate/Deactivate PropertiesController (from navigationController, see storyboard) - @IBAction func doProperties(_ sender: UIBarButtonItem) - { - // Check if deactivation - if (sender.tag == 99) { - // Deactivate - - // Mark it as deactivated (it stays loaded) - sender.tag = 0; - - // get handle of PropertiesController - let viewMenuBack : UIView = view.subviews.last! - - // Blend out sidebar - UIView.animate(withDuration: 0.3, animations: { () -> Void in - var frameMenu : CGRect = viewMenuBack.frame - frameMenu.origin.x = -1 * UIScreen.main.bounds.size.width - viewMenuBack.frame = frameMenu - viewMenuBack.layoutIfNeeded() - viewMenuBack.backgroundColor = UIColor.clear - }, completion: { (finished) -> Void in - viewMenuBack.removeFromSuperview() - }) - } - else { - // Activate - - // Mark as activated - sender.isEnabled = false - sender.tag = 99 - - // make instance of PropertiesController - let prop : PropertiesController = self.storyboard!.instantiateViewController( - withIdentifier: "PropertiesController") as! PropertiesController - view.addSubview(prop.view) - addChildViewController(prop) - prop.view.layoutIfNeeded() - prop.view.frame=CGRect(x: 0 - UIScreen.main.bounds.size.width, - y: 0, - width: UIScreen.main.bounds.size.width, - height: UIScreen.main.bounds.size.height); - - // Blend in sidebar - UIView.animate(withDuration: 0.3, animations: { () -> Void in - prop.view.frame=CGRect(x: 0, - y: 0, - width: UIScreen.main.bounds.size.width, - height: UIScreen.main.bounds.size.height); - sender.isEnabled = true - }, completion:nil) - } - } - - - - // *** Handling of menu popover - // the menu contains all global functions and use seque/delegate - - - - var currentDocumentName : String? = nil - - - - // Last stop before displaying popover - override func prepare(for segue: UIStoryboardSegue, sender: Any?) - { - // "showActions" is the name of the popover menu, see storyboard - if segue.identifier == "showActions" { - let vc = segue.destination as! DocumentActions - vc.delegate = self - vc.isDocActive = (currentDocumentName != nil) - } - } - - - - // Delegate call from menu (see protocol MenuDelegate) - func actionMenuSelected(_ tag : Int) - { - // a tag can sadly enough only be a number and not a string, - // whenever adding a menu entry, it (of course) needs to be added - // to the Document actions scene in storyboard and assigned a tag number - // the tag number must be repeated in the following switch - // BE CAREFUL to keep the tags synchronized (manually) - switch tag - { - case 1: // Open... - startOpenDocument() - - case 2: // Properties - showProperties() - - case 3: // Save - doSave() - - case 4: // Close... - doClose() - - case 5: // Save as... - doSaveAs() - - case 6: // Save as PDF... - doSaveAsPDF() - - case 7: // Print... - startPrint() - - default: // should not happen - print("unknown menu" + String(tag)) - } - } - - - - // *** handling of menu actions - // This is the real base of the application - - var openMenu : UIDocumentBrowserViewController? = nil - - // Load document into LibreOfficeKit and present it - internal func startOpenDocument() - { - openMenu = UIDocumentBrowserViewController() - openMenu?.allowsDocumentCreation = true - openMenu?.browserUserInterfaceStyle = UIDocumentBrowserViewController.BrowserUserInterfaceStyle.dark - openMenu?.delegate = self - self.present(openMenu!, animated: true, completion: nil) - } - - - - // Show document properties (new overloaded page) - internal func showProperties() - { - //FIXME - print("menu Properties to be done") - } - - - - // Save current document - internal func doSave() - { - //FIXME - print("menu Save to be done") - } - - - - // Close current document (without saving) - internal func doClose() - { - //FIXME - print("menu Close to be done") - } - - - - // make a copy of current document, and save - internal func doSaveAs() - { - //FIXME - print("menu Save as... to be done") - } - - - - // save current document as PDF - internal func doSaveAsPDF() - { - //FIXME - print("menu Save as PDF... to be done") - } - - - - // print current document - internal func startPrint() - { - //FIXME - print("menu Print... to be done") - } - - - - // *** Handling of DocumentViewController delegate functions - // this handles open/create/copy/delete document - - - - // Create an empty document, and present it - internal func documentBrowser(_ controller: UIDocumentBrowserViewController, - didRequestDocumentCreationWithHandler importHandler: @escaping (URL?, - UIDocumentBrowserViewController.ImportMode) -> Void) - { - //FIXME - } - - - - // import (copy from iCloud to iPad) document, open it and present it - internal func documentBrowser(_ controller: UIDocumentBrowserViewController, - didImportDocumentAt sourceURL: URL, - toDestinationURL destinationURL: URL) - { - //FIXME - } - - - - // Import failed, inform user - internal func documentBrowser(_ controller: UIDocumentBrowserViewController, - failedToImportDocumentAt documentURL: URL, - error: Error?) - { - //FIXME - } - - - - // open document and present it - internal func documentBrowser(_ controller: UIDocumentBrowserViewController, - didPickDocumentURLs documentURLs: [URL]) - { - openMenu?.dismiss(animated: true, completion: nil) - openMenu = nil - doOpen(documentURLs[0]) - } - - - - // *** Handling of document (open/print) - - - - // Real open and presentation of document - public func doOpen(_ docURL : URL) - { - LOKitThread.instance.documentLoad(url: docURL.absoluteString) - { - doc, error in - - if let document = doc - { - - runOnMain - { - self.setDocument(doc: document) - } - } - else - { - // TODO - alert user of failure - - } - } - - /* FIXME - BridgeLOkit_Sizing(4, 4, 256, 256); - */ - } - - /// Sets the document to use and set's up it's view. Should be called on the main thread - public func setDocument(doc: DocumentHolder) - { - if let _ = self.document - { - // TODO - cleanup - self.document = nil - } - if let existingView = self.documentView - { - existingView.removeFromSuperview() - self.documentView = nil // forces the close of the view and it's held documents before we setup the new one - } - // also remove current overlays and start fresh - documentOverlaysView?.removeFromSuperview() - - // setup the new doc view - self.document = doc - // setup delegates - doc.searchDelegate = self - - let frameToUse = self.scrollView.frame - - let docView = DocumentTiledView(frame: frameToUse, document: doc, scale: 1.0) - - self.scrollView.addSubview(docView) - self.scrollView.contentSize = docView.frame.size - self.documentView = docView - - // overlay view - let overlay = DocumentOverlaysView(docTiledView: docView) - docView.addSubview(overlay) - self.documentOverlaysView = overlay - - // button view - used for spreadsheet tabs - if doc.isSpreadsheet - { - buttonScrollView.isHidden = false - buttonScrollView.setButtonLabels(labels: doc.partNames) - buttonScrollView.buttonClickedCallback = { - [weak self] index in - self?.document?.async { - $0.setPart(nPart: Int32(index)) - runOnMain { - self?.documentView?.setNeedsDisplay() - } - } - } - // make room for the scroll view - zeroInsets = UIEdgeInsets(top: 0, left: 0, bottom: buttonScrollView.height, right: 0) - } - else - { - zeroInsets = .zero - buttonScrollView.isHidden = true - } - scrollView.contentInset = zeroInsets - - // debugging view borders - /* - self.scrollView.layer.borderColor = UIColor.red.cgColor - self.scrollView.layer.borderWidth = 1.0 - docView.layer.borderColor = UIColor.green.cgColor - docView.layer.borderWidth = 1.0 - */ - } - - // MARK: - UIScrollViewDelegate -} - -extension DocumentController: UIScrollViewDelegate -{ - // return a view that will be scaled. if delegate returns nil, nothing happens - func viewForZooming(in scrollView: UIScrollView) -> UIView? - { - return self.documentView - } - - // called before the scroll view begins zooming its content - func scrollViewWillBeginZooming(_ scrollView: UIScrollView, with view: UIView?) - { - print("scrollViewWillBeginZooming currentScale=\(scrollView.zoomScale)") - } - - // scale between minimum and maximum. called after any 'bounce' animations - func scrollViewDidEndZooming(_ scrollView: UIScrollView, with view: UIView?, atScale scale: CGFloat) - { - print("scrollViewDidEndZooming scale=\(scale)") - self.documentView?.scrollViewDidEndZooming(scrollView, with: view, atScale: scale) - } -} - - // MARK: - UIKeyInput -// public var hasText: Bool -// { -// true -// } -// -// -// public func insertText(_ text: String) -// { -// -// } -// -// public func deleteBackward() -// { -// -// } - -extension DocumentController: ProgressDelegate -{ - // MARK: - ProgressDelegate - func statusIndicatorStart() - { - self.mask?.isHidden = false - self.progressBar?.isHidden = false - self.progressBar?.progress = 0.0 - } - - func statusIndicatorFinish() - { - // what would be nice would be to be able to wait until the initial tiles have rendered... - self.mask?.isHidden = true - self.progressBar?.isHidden = true - } - - func statusIndicatorSetValue(value: Double) - { - self.progressBar?.progress = Float(value) / 100.0 - } -} - -extension DocumentController: UISearchBarDelegate -{ - // called when text changes (including clear) - func searchBar(_ searchBar: UISearchBar, textDidChange searchText: String) - { - - } - - - // called when keyboard search button pressed - func searchBarSearchButtonClicked(_ searchBar: UISearchBar) - { - if let text = searchBar.text - { - if text.count > 0 - { - document?.search(searchString: text, forwardDirection: true, from: CGPoint(x:0, y:0) ) - } - } - } - - func searchBarCancelButtonClicked(_ searchBar: UISearchBar) - { - searchBar.isHidden = true - } -} - -extension DocumentController: SearchDelegate -{ - func searchNotFound() - { - // TODO: tell user somehow - self.documentOverlaysView?.clearSearchResults() - } - - func searchResultSelection(searchResults: SearchResults) - { - self.documentOverlaysView?.setSearchResults(searchResults: searchResults) - } -} - -/// Keyboard notifications -extension DocumentController -{ - - func registerKeyboardNotifications() - { - NotificationCenter.default.addObserver(self, - selector: #selector(keyboardWillShow(notification:)), - name: NSNotification.Name.UIKeyboardWillShow, - object: nil) - NotificationCenter.default.addObserver(self, - selector: #selector(keyboardWillHide(notification:)), - name: NSNotification.Name.UIKeyboardWillHide, - object: nil) - } - - @objc func keyboardWillShow(notification: NSNotification) - { - - let userInfo: NSDictionary = notification.userInfo! as NSDictionary - guard let keyboardInfo = userInfo[UIKeyboardFrameEndUserInfoKey] as? NSValue else { return } - print(userInfo) - let keyboardSize = keyboardInfo.cgRectValue.size - print("keyboardWillShow \(keyboardSize)") - let contentInsets = UIEdgeInsets(top: 0, left: 0, bottom: keyboardSize.height, right: 0) - scrollView.contentInset = contentInsets - scrollView.scrollIndicatorInsets = contentInsets - } - - @objc func keyboardWillHide(notification: NSNotification) - { - print("keyboardWillHide") - scrollView.contentInset = zeroInsets - scrollView.scrollIndicatorInsets = zeroInsets - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift b/ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift deleted file mode 100644 index 16bc35c0a0ac..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/DocumentOverlaysView.swift +++ /dev/null @@ -1,68 +0,0 @@ -// -// 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/. -// - -import UIKit - -public class DocumentOverlaysView: UIView -{ - var searchSubViews: [UIView] = [] - weak var documentTiledView: DocumentTiledView? = nil - - public init(docTiledView: DocumentTiledView) - { - self.documentTiledView = docTiledView - super.init(frame: docTiledView.frame) - - self.layer.compositingFilter = "multiplyBlendMode" - } - - required public init?(coder aDecoder: NSCoder) - { - fatalError("init(coder:) has not been implemented") - } - - public func clearSearchResults() - { - for v in self.searchSubViews - { - v.removeFromSuperview() - } - searchSubViews = [] - } - - public func setSearchResults(searchResults: SearchResults) - { - clearSearchResults() - - guard let documentTiledView = self.documentTiledView else { return } - - if let srs = searchResults.searchResultSelection - { - let allTheRects = srs.compactMap { $0.rectsAsCGRects } - .flatMap { $0 } - .map { documentTiledView.twipsToPixels(rect: $0) } - - for rect in allTheRects - { - let subView = UIView(frame: rect) - subView.backgroundColor = UIColor.yellow // TODO - subView.layer.compositingFilter = "multiplyBlendMode" - self.addSubview(subView) - searchSubViews.append(subView) - } - - if let first = allTheRects.first - { - if let scrollView = self.superview?.superview as? UIScrollView - { - scrollView.scrollRectToVisible(first, animated: true) - } - } - } - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/DocumentTiledView.swift b/ios/LibreOfficeLight/LibreOfficeLight/DocumentTiledView.swift deleted file mode 100644 index f0a36878c4b3..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/DocumentTiledView.swift +++ /dev/null @@ -1,244 +0,0 @@ -// -// 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/. -// - -import UIKit -import QuartzCore - - -class DocumentTiledLayer : CATiledLayer -{ - override class func fadeDuration() -> CFTimeInterval - { - return 0 - } -} - -/// The main tiled view, which sits inside the scroll view -public class DocumentTiledView: UIView -{ - var myScale: CGFloat - - weak var document: DocumentHolder? = nil - - let initialSize: CGSize - let docSize: CGSize - let initialScaleFactor: CGFloat - - var drawCount = 0 - - // Create a new view with the desired frame and scale. - public init(frame: CGRect, document: DocumentHolder, scale: CGFloat) - { - self.document = document - - myScale = scale - initialSize = frame.size - var size = document.sync { $0.getDocumentSizeAsCGSize() } - - // avoid divide by zero crashes - if (size.width == 0) - { - size.width = 1 - } - if (size.height == 0) - { - size.height = 1 - } - self.docSize = size - initialScaleFactor = (docSize.width / initialSize.width) - let scaledFrame = CGRect(x: 0, y: 0, width: frame.width, height: frame.width * (docSize.height / docSize.width)) - - print("DocumentTiledView.init frame=\(frame.desc) \n scaledFrame=\(scaledFrame.desc)\n docSize=\(docSize) \n initialScaleFactor=\(initialScaleFactor)") - super.init(frame: scaledFrame) - - //self.contentScaleFactor = 1.0 - - if let tiledLayer = self.layer as? CATiledLayer - { - // these are all tweakable parameters, that give different behaviour to the tiled view - tiledLayer.levelsOfDetail = 4 - tiledLayer.levelsOfDetailBias = 7 - tiledLayer.tileSize = CGSize(width: 1024.0, height: 1024.0) - //tiledLayer.tileSize = CGSize(width: 512.0, height: 512.0) - } - - let tap = UITapGestureRecognizer(target: self, action: #selector(onTap) ) - tap.numberOfTapsRequired = 1 - self.addGestureRecognizer(tap) - - if (document.isPresentation) // only for preso atm - { - // add swipe left/right gestures on a preso - let swipeRight = UISwipeGestureRecognizer(target: self, action: #selector(onSwipeRight)) - swipeRight.direction = .right - self.addGestureRecognizer(swipeRight) - - let swipeLeft = UISwipeGestureRecognizer(target: self, action: #selector(onSwipeLeft)) - swipeLeft.direction = .left - self.addGestureRecognizer(swipeLeft) - } - } - - required public init?(coder aDecoder: NSCoder) - { - fatalError("init(coder:) has not been implemented") - } - - func incrementPart(amount: Int) - { - document?.incrementPart(amount: Int32(amount)) - document?.async { _ in - runOnMain { self.setNeedsDisplay() } - } - } - - public func twipsToPixels(rect: CGRect) -> CGRect - { - return rect.applying(CGAffineTransform(scaleX: 1.0/initialScaleFactor, y: 1.0/initialScaleFactor )) - } - - public func pixelsToTwips(rect: CGRect) -> CGRect - { - return rect.applying(CGAffineTransform(scaleX: initialScaleFactor, y: initialScaleFactor )) - } - - - override public class var layerClass : AnyClass - { - return DocumentTiledLayer.self - } - - - override public func draw(_ r: CGRect) - { - // UIView uses the existence of -drawRect: to determine if it should allow its CALayer - // to be invalidated, which would then lead to the layer creating a backing store and - // -drawLayer:inContext: being called. - // By implementing an empty -drawRect: method, we allow UIKit to continue to implement - // this logic, while doing our real drawing work inside of -drawLayer:inContext: - } - - // Draw the CGPDFPageRef into the layer at the correct scale. - override public func draw(_ layer: CALayer, in context: CGContext) - { -// if self.superview == nil -// { -// // check that we are still active - ios is doing some really funny things where this method gets called after dealloc which causes bad bad karma -// return -// } - guard let document = self.document else - { - return - } - - guard let tiledLayer = layer as? CATiledLayer else { return } - - - - let tileSize: CGSize = tiledLayer.tileSize - let box: CGRect = context.boundingBoxOfClipPath - let ctm: CGAffineTransform = context.ctm - - drawCount += 1 - let filename = "tile\(drawCount).png" - - print("drawLayer \(filename)\n bounds=\(layer.bounds.desc)\n ctm.a=\(ctm.a)\n tileSize=\(tileSize)\n box=\(box.desc)") - - //context.setFillColor(UIColor.white.cgColor) - context.setFillColor(UIColor.blue.cgColor) - context.fill(box) - context.saveGState() - - context.interpolationQuality = CGInterpolationQuality.high - context.setRenderingIntent(CGColorRenderingIntent.defaultIntent) - - // This is where the magic happens - - let pageRect = pixelsToTwips(rect: box) - print(" pageRect: \(pageRect.desc)") - - // Figure out how many pixels we need for the dimensions of our tile - // tileSize represents a "full size" one in pixels - - //let fullSizeTileInPoints = CGSize(width: CGFloat(tileSize.width) / ctm.a, height: CGFloat(tileSize.height) / ctm.a) - //let cropRectTileFraction = CGSize(width: box.size.width / fullSizeTileInPoints.width, height: box.size.height / fullSizeTileInPoints.height) - //let bitmapSize = CGSize(width: tileSize.width * cropRectTileFraction.width, height: tileSize.height * cropRectTileFraction.height) - - let canvasSize = tileSize; //CGSize(width:512, height:512) // FIXME - this needs to be calculated - - // we have to do the call synchronously, as the tile has to be painted now, on the current thread - // TODO - cache the image, and check the cache before we do the sync call - let image = document.paintTileToImage(canvasSize: canvasSize, tileRect: pageRect) - - - if let img = image - { - // Debugging: write the file to disk - /* - if let data = UIImagePNGRepresentation(img) - { - let filename = getDocumentsDirectory().appendingPathComponent(filename) - try? data.write(to: filename) - print("Wrote tile to: \(filename)") - } - */ - - // We use the UIImage draw function as it automatically handles the flipping of the co-ordinate system for us. - UIGraphicsPushContext(context); - img.draw(in: box) - UIGraphicsPopContext() - } - - context.restoreGState() - - - } - - - deinit - { - self.document = nil - - } - - - func scrollViewDidEndZooming(_ scrollView: UIScrollView, with view: UIView?, atScale scale: CGFloat) - { - //self.setNeedsDisplay() - } - - -} - -/// Gesture handlers -public extension DocumentTiledView -{ - @objc func onTap(_ sender: UITapGestureRecognizer) - { - if (document?.isPresentation ?? false) - { - incrementPart(amount: 1) - } - } - - @objc func onSwipeRight(_ sender: UISwipeGestureRecognizer) - { - if (document?.isPresentation ?? false) - { - incrementPart(amount: -1) - } - } - - @objc func onSwipeLeft(_ sender: UISwipeGestureRecognizer) - { - if (document?.isPresentation ?? false) - { - incrementPart(amount: 1) - } - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Info.plist b/ios/LibreOfficeLight/LibreOfficeLight/Info.plist deleted file mode 100644 index 82ce94908030..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Info.plist +++ /dev/null @@ -1,1812 +0,0 @@ - - - - - CFBundleDevelopmentRegion - en - CFBundleDocumentTypes - - - CFBundleTypeName - OpenOffice.org 1.0 Text - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.text - - - - CFBundleTypeName - OpenDocument Text - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.text - - - - CFBundleTypeName - OpenOffice.org 1.0 Spreadsheet - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.spreadsheet - - - - CFBundleTypeName - OpenDocument Spreadsheet - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.spreadsheet - - - - CFBundleTypeName - OpenOffice.org 1.0 Presentation - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.presentation - - - - CFBundleTypeName - OpenDocument Presentation - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.presentation - - - - CFBundleTypeName - OpenOffice.org 1.0 Drawing - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.graphics - - - - CFBundleTypeName - OpenDocument Drawing - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.graphics - - - - CFBundleTypeName - OpenDocument Chart - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.chart - - - - CFBundleTypeName - OpenOffice.org 1.0 Master - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.text-master - - - - CFBundleTypeName - OpenDocument Master - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.text-master - - - - CFBundleTypeName - OpenOffice.org 1.0 Formula - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.formula - - - - CFBundleTypeName - OpenDocument Formula - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.formula - - - - CFBundleTypeName - OpenOffice.org 1.0 Text Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.text-template - - - - CFBundleTypeName - OpenDocument Text Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.text-template - - - - CFBundleTypeName - OpenDocument Master Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.text-master-template - - - - CFBundleTypeName - OpenOffice.org 1.0 Spreadsheet Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.spreadsheet-template - - - - CFBundleTypeName - OpenDocument Spreadsheet Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.spreadsheet-template - - - - CFBundleTypeName - OpenOffice.org 1.0 Presentation Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.presentation-template - - - - CFBundleTypeName - OpenDocument Presentation Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.presentation-template - - - - CFBundleTypeName - OpenOffice.org 1.0 Drawing Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.graphics-template - - - - CFBundleTypeName - OpenDocument Drawing Template - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.oasis-open.opendocument.graphics-template - - - - CFBundleTypeName - LibreOfficeDev Extension - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - org.openoffice.extension - - - - CFBundleTypeName - Flat ODF - CFBundleTypeRole - Editor - LSHandlerRank - Owner - LSItemContentTypes - - vnd.oasis.opendocument.text-flat-xml - vnd.oasis.opendocument.spreadsheet-flat-xml - vnd.oasis.opendocument.presentation-flat-xml - vnd.oasis.opendocument.graphics-flat-xml - - - - CFBundleTypeName - 3rd party formats - CFBundleTypeRole - Editor - LSHandlerRank - Alternate - LSItemContentTypes - - public.plain-text - public.rtf - public.html - public.jpeg - public.tiff - public.png - public.xbitmap-image - com.adobe.encapsulated-postscript - com.microsoft.bmp - com.microsoft.word.doc - com.microsoft.word.dot - com.microsoft.excel.xls - com.microsoft.powerpoint.ppt - org.openxmlformats.wordprocessingml.document - org.openxmlformats.wordprocessingml.document.macroEnabled - org.openxmlformats.wordprocessingml.template - org.openxmlformats.wordprocessingml.template.macroEnabled - org.openxmlformats.spreadsheetml.sheet - org.openxmlformats.spreadsheetml.sheet.macroEnabled - com.microsoft.excel.sheet.binary.macroEnabled - org.openxmlformats.spreadsheetml.template - org.openxmlformats.spreadsheetml.template.macroEnabled - org.openxmlformats.presentationml.presentation - org.openxmlformats.presentationml.presentation.macroEnabled - org.openxmlformats.presentationml.template - org.openxmlformats.presentationml.template.macroEnabled - org.libreoffice.pdb-document - org.libreoffice.wpd-document - org.libreoffice.hwp-document - org.libreoffice.wks-document - org.libreoffice.wri-document - org.libreoffice.dif-document - org.libreoffice.slk-document - org.libreoffice.csv-document - org.libreoffice.dbf-document - org.libreoffice.123-document - org.libreoffice.cgm-document - org.libreoffice.dxf-document - org.libreoffice.emf-document - org.libreoffice.wmf-document - org.libreoffice.cdr-document - org.libreoffice.visio-document - org.libreoffice.mspub-document - com.adobe.pdf - - - - CFBundleExecutable - $(EXECUTABLE_NAME) - CFBundleIdentifier - $(PRODUCT_BUNDLE_IDENTIFIER) - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - $(PRODUCT_NAME) - CFBundlePackageType - APPL - CFBundleShortVersionString - 0.8.5 - CFBundleSignature - ???? - CFBundleVersion - 1 - LSApplicationCategoryType - public.app-category.business - LSMultipleInstancesProhibited - - LSRequiresIPhoneOS - - LSSupportsOpeningDocumentsInPlace - - NSHighResolutionCapable - - NSHumanReadableCopyright - The 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/. - NSUbiquitousContainers - - iCloud.com.jani.Editors.LibreOfficeLight - - NSUbiquitousContainerIsDocumentScopePublic - - NSUbiquitousContainerName - LibreOffice - NSUbiquitousContainerSupportedFolderLevels - None - - - UIFileSharingEnabled - - UILaunchStoryboardName - LaunchScreen.xib - UIMainStoryboardFile - Main - UIRequiredDeviceCapabilities - - armv7 - - UIRequiresFullScreen - - UISupportedInterfaceOrientations - - UIInterfaceOrientationPortraitUpsideDown - UIInterfaceOrientationPortrait - UIInterfaceOrientationLandscapeLeft - UIInterfaceOrientationLandscapeRight - - UISupportsDocumentBrowser - - UTExportedTypeDeclarations - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Text - UTTypeIdentifier - org.openoffice.text - UTTypeSize64IconFile - text.icns - UTTypeTagSpecification - - public.filename-extension - - sxw - - public.mime-type - - application/vnd.sun.xml.writer - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Text - UTTypeIdentifier - org.oasis-open.opendocument.text - UTTypeSize64IconFile - oasis-text.icns - UTTypeTagSpecification - - public.filename-extension - - odt - - public.mime-type - - application/vnd.oasis.opendocument.text - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Text (Flat XML) - UTTypeIdentifier - vnd.oasis.opendocument.text-flat-xml - UTTypeSize64IconFile - oasis-text.icns - UTTypeTagSpecification - - public.filename-extension - - fodt - - public.mime-type - - application/vnd.oasis.opendocument.text-flat-xml - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Spreadsheet - UTTypeIdentifier - org.openoffice.spreadsheet - UTTypeSize64IconFile - spreadsheet.icns - UTTypeTagSpecification - - public.filename-extension - - sxc - - public.mime-type - - application/vnd.sun.xml.calc - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Spreadsheet - UTTypeIdentifier - org.oasis-open.opendocument.spreadsheet - UTTypeSize64IconFile - oasis-spreadsheet.icns - UTTypeTagSpecification - - public.filename-extension - - ods - - public.mime-type - - application/vnd.oasis.opendocument.spreadsheet - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Spreadsheet (Flat XML) - UTTypeIdentifier - vnd.oasis.opendocument.spreadsheet-flat-xml - UTTypeSize64IconFile - oasis-spreadsheet.icns - UTTypeTagSpecification - - public.filename-extension - - fods - - public.mime-type - - application/vnd.oasis.opendocument.spreadsheet-flat-xml - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Presentation - UTTypeIdentifier - org.openoffice.presentation - UTTypeSize64IconFile - presentation.icns - UTTypeTagSpecification - - public.filename-extension - - sxi - - public.mime-type - - application/vnd.sun.xml.impress - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Presentation - UTTypeIdentifier - org.oasis-open.opendocument.presentation - UTTypeSize64IconFile - oasis-presentation.icns - UTTypeTagSpecification - - public.filename-extension - - odp - - public.mime-type - - application/vnd.oasis.opendocument.presentation - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Presentation - UTTypeIdentifier - vnd.oasis.opendocument.presentation-flat-xml - UTTypeSize64IconFile - oasis-presentation.icns - UTTypeTagSpecification - - public.filename-extension - - fodp - - public.mime-type - - application/vnd.oasis.opendocument.presentation-flat-xml - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Drawing - UTTypeIdentifier - org.openoffice.graphics - UTTypeSize64IconFile - drawing.icns - UTTypeTagSpecification - - public.filename-extension - - sxd - - public.mime-type - - application/vnd.sun.xml.draw - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Drawing - UTTypeIdentifier - org.oasis-open.opendocument.graphics - UTTypeSize64IconFile - oasis-drawing.icns - UTTypeTagSpecification - - public.filename-extension - - odg - - public.mime-type - - application/vnd.oasis.opendocument.graphics - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Drawing (Flat XML) - UTTypeIdentifier - vnd.oasis.opendocument.graphics-flat-xml - UTTypeSize64IconFile - oasis-drawing.icns - UTTypeTagSpecification - - public.filename-extension - - fodg - - public.mime-type - - application/vnd.oasis.opendocument.graphics-flat-xml - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Chart - UTTypeIdentifier - org.oasis-open.opendocument.chart - UTTypeTagSpecification - - public.filename-extension - - odc - - public.mime-type - - application/vnd.oasis.opendocument.chart - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Master - UTTypeIdentifier - org.openoffice.text-master - UTTypeSize64IconFile - master-document.icns - UTTypeTagSpecification - - public.filename-extension - - sxg - - public.mime-type - - application/vnd.sun.xml.writer.global - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Master - UTTypeIdentifier - org.oasis-open.opendocument.text-master - UTTypeSize64IconFile - oasis-master-document.icns - UTTypeTagSpecification - - public.filename-extension - - odm - - public.mime-type - - application/vnd.oasis.opendocument.text-master - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Formula - UTTypeIdentifier - org.openoffice.formula - UTTypeSize64IconFile - formula.icns - UTTypeTagSpecification - - public.filename-extension - - sxm - - public.mime-type - - application/vnd.sun.xml.math - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Formula - UTTypeIdentifier - org.oasis-open.opendocument.formula - UTTypeSize64IconFile - oasis-formula.icns - UTTypeTagSpecification - - public.filename-extension - - odf - - public.mime-type - - application/vnd.oasis.opendocument.formula - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Text Template - UTTypeIdentifier - org.openoffice.text-template - UTTypeSize64IconFile - text-template.icns - UTTypeTagSpecification - - public.filename-extension - - stw - - public.mime-type - - application/vnd.sun.xml.writer.template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Text Template - UTTypeIdentifier - org.oasis-open.opendocument.text-template - UTTypeSize64IconFile - oasis-text-template.icns - UTTypeTagSpecification - - public.filename-extension - - ott - - public.mime-type - - application/vnd.oasis.opendocument.text-template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Text Master Template - UTTypeIdentifier - org.oasis-open.opendocument.text-master-template - UTTypeSize64IconFile - oasis-master-document-template.icns - UTTypeTagSpecification - - public.filename-extension - - otm - - public.mime-type - - application/vnd.oasis.opendocument.text-master-template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Spreadsheet Template - UTTypeIdentifier - org.openoffice.spreadsheet-template - UTTypeSize64IconFile - spreadsheet-template.icns - UTTypeTagSpecification - - public.filename-extension - - stc - - public.mime-type - - application/vnd.sun.xml.calc.template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Spreadsheet Template - UTTypeIdentifier - org.oasis-open.opendocument.spreadsheet-template - UTTypeSize64IconFile - oasis-spreadsheet-template.icns - UTTypeTagSpecification - - public.filename-extension - - ots - - public.mime-type - - application/vnd.oasis.opendocument.spreadsheet-template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Presentation Template - UTTypeIdentifier - org.openoffice.presentation-template - UTTypeSize64IconFile - presentation-template.icns - UTTypeTagSpecification - - public.filename-extension - - sti - - public.mime-type - - application/vnd.sun.xml.impress.template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Presentation Template - UTTypeIdentifier - org.oasis-open.opendocument.presentation-template - UTTypeSize64IconFile - oasis-presentation-template.icns - UTTypeTagSpecification - - public.filename-extension - - otp - - public.mime-type - - application/vnd.oasis.opendocument.presentation-template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenOffice.org 1.0 Drawing Template - UTTypeIdentifier - org.openoffice.graphics-template - UTTypeSize64IconFile - drawing-template.icns - UTTypeTagSpecification - - public.filename-extension - - std - - public.mime-type - - application/vnd.sun.xml.draw.template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - OpenDocument Drawing Template - UTTypeIdentifier - org.oasis-open.opendocument.graphics-template - UTTypeSize64IconFile - oasis-drawing-template.icns - UTTypeTagSpecification - - public.filename-extension - - otg - - public.mime-type - - application/vnd.oasis.opendocument.graphics-template - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - LibreOfficeDev Extension - UTTypeIdentifier - org.openoffice.extension - UTTypeSize64IconFile - extension.icns - UTTypeTagSpecification - - public.filename-extension - - oxt - - public.mime-type - - application/vnd.openofficeorg.extension - - - - - UTImportedTypeDeclarations - - - UTTypeConformsTo - - public.composite-content - - UTTypeDescription - Microsoft Word Template - UTTypeIdentifier - com.microsoft.word.dot - UTTypeTagSpecification - - public.filename-extension - - dot - - public.mime-type - - application/msword - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - - UTTypeDescription - Office Open XML word processing document - UTTypeIdentifier - org.openxmlformats.wordprocessingml.document - UTTypeTagSpecification - - public.filename-extension - - docx - - public.mime-type - - application/vnd.openxmlformats-officedocument.wordprocessingml.document - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - public.executable - - UTTypeDescription - Office Open XML word processing document (macros enabled) - UTTypeIdentifier - org.openxmlformats.wordprocessingml.document.macroEnabled - UTTypeTagSpecification - - public.filename-extension - - docm - - public.mime-type - - application/vnd.ms-word.document.macroEnabled.12 - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - - UTTypeDescription - Office Open XML word processing template - UTTypeIdentifier - org.openxmlformats.wordprocessingml.template - UTTypeTagSpecification - - public.filename-extension - - dotx - - public.mime-type - - application/vnd.openxmlformats-officedocument.wordprocessingml.template - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - public.executable - - UTTypeDescription - Office Open XML word processing template (macros enabled) - UTTypeIdentifier - org.openxmlformats.wordprocessingml.template.macroEnabled - UTTypeTagSpecification - - public.filename-extension - - dotm - - public.mime-type - - application/vnd.ms-word.template.macroEnabled.12 - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - - UTTypeDescription - Office Open XML spreadsheet template - UTTypeIdentifier - org.openxmlformats.spreadsheetml.template - UTTypeTagSpecification - - public.filename-extension - - xltx - - public.mime-type - - application/vnd.openxmlformats-officedocument.spreadsheetml.template - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - public.executable - - UTTypeDescription - Office Open XML spreadsheet template (macros enabled) - UTTypeIdentifier - org.openxmlformats.spreadsheetml.template.macroEnabled - UTTypeTagSpecification - - public.filename-extension - - xltm - - public.mime-type - - application/vnd.ms-excel.template.macroEnabled.12 - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - - UTTypeDescription - Office Open XML spreadsheet - UTTypeIdentifier - org.openxmlformats.spreadsheetml.sheet - UTTypeTagSpecification - - public.filename-extension - - xlsx - - public.mime-type - - application/vnd.openxmlformats-officedocument.spreadsheetml.sheet - - - - - UTTypeConformsTo - - public.zip-archive - public.composite-content - public.executable - - UTTypeDescription - Microsoft Excel 2007 spreadsheet (macros enabled) - UTTypeIdentifier - com.microsoft.excel.sheet.binary.macroEnabled - UTTypeTagSpecification - - public.filename-extension - - xlsb - - public.mime-type - - application/vnd.ms-excel.sheet.binary.macroEnabled.12 - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.composite-content - public.executable - - UTTypeDescription - Office Open XML spreadsheet (macros enabled) - UTTypeIdentifier - org.openxmlformats.spreadsheetml.sheet.macroEnabled - UTTypeTagSpecification - - public.filename-extension - - xlsm - - public.mime-type - - application/vnd.ms-excel.sheet.macroEnabled.12 - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.presentation - - UTTypeDescription - Office Open XML presentation - UTTypeIdentifier - org.openxmlformats.presentationml.presentation - UTTypeTagSpecification - - public.filename-extension - - pptx - - public.mime-type - - application/vnd.openxmlformats-officedocument.presentationml.presentation - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.presentation - public.executable - - UTTypeDescription - Office Open XML presentation (macros enabled) - UTTypeIdentifier - org.openxmlformats.presentationml.presentation.macroEnabled - UTTypeTagSpecification - - public.filename-extension - - pptm - - public.mime-type - - application/vnd.ms-powerpoint.presentation.macroEnabled.12 - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.presentation - public.executable - - UTTypeDescription - Office Open XML presentation template - UTTypeIdentifier - org.openxmlformats.presentationml.template - UTTypeTagSpecification - - public.filename-extension - - potx - - public.mime-type - - application/vnd.openxmlformats-officedocument.presentationml.template - - - - - UTTypeConformsTo - - org.openxmlformats.openxml - public.presentation - public.executable - - UTTypeDescription - Office Open XML presentation template (macros enabled) - UTTypeIdentifier - org.openxmlformats.presentationml.template.macroEnabled - UTTypeTagSpecification - - public.filename-extension - - potm - - public.mime-type - - application/vnd.ms-powerpoint.template.macroEnabled.12 - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - WordPerfect Document - UTTypeIdentifier - org.libreoffice.wpd-document - UTTypeTagSpecification - - public.filename-extension - - wpd - - public.mime-type - - application/vnd.wordperfect - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - PalmDoc eBook - UTTypeIdentifier - org.libreoffice.pdb-document - UTTypeTagSpecification - - public.filename-extension - - pdb - - public.mime-type - - application/x-aportisdoc - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - Hangul WP 97 Document - UTTypeIdentifier - org.libreoffice.hwp-document - UTTypeTagSpecification - - public.filename-extension - - hwp - - public.mime-type - - application/x-hwp - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - Microsoft Works for Mac Document (v1 - v4) - UTTypeIdentifier - org.libreoffice.wks-document - UTTypeTagSpecification - - public.filename-extension - - wps - - public.mime-type - - application/vnd.ms-works - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - Microsoft Write - UTTypeIdentifier - org.libreoffice.wri-document - UTTypeTagSpecification - - public.filename-extension - - wri - - public.mime-type - - application/x-mswrite - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - Data Interchange Format - UTTypeIdentifier - org.libreoffice.dif-document - UTTypeTagSpecification - - public.filename-extension - - dif - - public.mime-type - - application/x-dif-document - - - - - UTTypeConformsTo - - public.text - public.data - public.content - - UTTypeDescription - SYLK Document - UTTypeIdentifier - org.libreoffice.slk-document - UTTypeTagSpecification - - public.filename-extension - - slk - - public.mime-type - - text/spreadsheet - - - - - UTTypeConformsTo - - public.text - public.data - public.content - - UTTypeDescription - Comma-Separated Value Document - UTTypeIdentifier - org.libreoffice.csv-document - UTTypeTagSpecification - - public.filename-extension - - csv - - public.mime-type - - text/csv - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - dBASE Document - UTTypeIdentifier - org.libreoffice.dbf-document - UTTypeTagSpecification - - public.filename-extension - - dbf - - public.mime-type - - application/x-dbase - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - Lotus 1-2-3 Spreadsheet - UTTypeIdentifier - org.libreoffice.123-document - UTTypeTagSpecification - - public.filename-extension - - wk1 - wks - 123 - - public.mime-type - - application/vnd.lotus-1-2-3 - application/vnd.lotus-1-2-3 - application/vnd.lotus-1-2-3 - - - - - UTTypeConformsTo - - public.data - public.content - public.image - - UTTypeDescription - Computer Graphics Metafile - UTTypeIdentifier - org.libreoffice.cgm-document - UTTypeTagSpecification - - public.filename-extension - - cgm - - public.mime-type - - image/cgm - - - - - UTTypeConformsTo - - public.data - public.content - public.image - - UTTypeDescription - AutoCAD Interchange Format - UTTypeIdentifier - org.libreoffice.dxf-document - UTTypeTagSpecification - - public.filename-extension - - dxf - - public.mime-type - - image/vnd.dxf - - - - - UTTypeConformsTo - - public.data - public.content - public.image - - UTTypeDescription - Windows Enhanced Metafile - UTTypeIdentifier - org.libreoffice.emf-document - UTTypeTagSpecification - - public.filename-extension - - emf - - public.mime-type - - image/x-emf - - - - - UTTypeConformsTo - - public.data - public.content - public.image - - UTTypeDescription - Windows Metafile - UTTypeIdentifier - org.libreoffice.wmf-document - UTTypeTagSpecification - - public.filename-extension - - wmf - - public.mime-type - - image/x-wmf - - - - - UTTypeConformsTo - - public.data - public.content - public.image - - UTTypeDescription - CorelDRAW Image - UTTypeIdentifier - org.libreoffice.cdr-document - UTTypeTagSpecification - - public.filename-extension - - cdr - - public.mime-type - - application/cdr - application/coreldraw - application/vnd.corel-draw - application/x-cdr - application/x-coreldraw - image/cdr - image/x-cdr - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - Microsoft Visio Document - UTTypeIdentifier - org.libreoffice.visio-document - UTTypeTagSpecification - - public.filename-extension - - vsd - vss - vst - vdx - vsx - vtx - vsdx - vsdm - vssx - vssm - vstx - vstm - - public.mime-type - - application/vnd.visio2013 - application/vnd.visio - - - - - UTTypeConformsTo - - public.data - public.content - - UTTypeDescription - Microsoft Publisher Document - UTTypeIdentifier - org.libreoffice.mspub-document - UTTypeTagSpecification - - public.filename-extension - - pub - - public.mime-type - - application/x-mspublisher - - - - - UTTypeConformsTo - - public.data - public.composite-​content - - UTTypeDescription - Apple PDF pasteboard type PDF data - UTTypeIdentifier - com.adobe.pdf - UTTypeTagSpecification - - public.filename-extension - - pdf - - public.mime-type - - application/pdf - - - - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/AsyncUtil.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/AsyncUtil.swift deleted file mode 100644 index 52f8c1bddced..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/AsyncUtil.swift +++ /dev/null @@ -1,92 +0,0 @@ -// -// 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/. -// - -import Foundation - - -public typealias Runnable = () -> () - -/// Runs the closure on a queued background thread -public func runInBackground(_ runnable: @escaping Runnable) -{ - DispatchQueue.global(qos: .background).async(execute: runnable) -} - - -/// Runs the closure on the UI (main) thread. Exceptions are caught and logged -public func runOnMain(_ runnable: @escaping () -> ()) -{ - DispatchQueue.main.async(execute: runnable) -} - -/// Returns true if we are on the Main / UI thread -public func isMainThread() -> Bool -{ - return Thread.isMainThread -} - -/// Runs tasks in a serial way on a single thread. -/// Why wouldn't we just use DispatchQueue or NSOperationQueue to do this? -/// Because neither guarantee running their tasks on the same thread all the time. -/// And in fact DispatchQueue will try and run sync tasks on the current thread where it can. -/// Both classes try and abstract the thread away, whereas we have to use the same thread, or we end up with deadlocks in LOKit -public class SingleThreadedQueue: Thread -{ - public init(name: String) - { - super.init() - self.name = name - self.start() - } - - override public func main() - { - // You need the NSPort here because a runloop with no sources or ports registered with it - // will simply exit immediately instead of running forever. - let keepAlive = Port() - let rl = RunLoop.current - keepAlive.schedule(in: rl, forMode: .commonModes) - - rl.run() - } - - /// Run the task on the serial queue, and return immediately - public func async( _ runnable: @escaping Runnable) - { - let operation = BlockOperation { - runnable() - } - async(operation: operation) - } - - /// Run the task on the serial queue, and return immediately - public func async( operation: Operation) - { - if ( Thread.current == self) - { - operation.start(); - } - else - { - operation.perform(#selector(Operation.start), on: self, with: nil, waitUntilDone: false) - } - } - - public func sync( _ closure: @escaping () -> R ) -> R - { - var ret: R! = nil - let op = BlockOperation { - ret = closure(); - } - async(operation: op) - op.waitUntilFinished() - return ret - } - -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/Document.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/Document.swift deleted file mode 100644 index 53772c636a9e..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/Document.swift +++ /dev/null @@ -1,592 +0,0 @@ -// -// 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/. -// - -import Foundation -import UIKit -import QuartzCore - - -/// The Document class represents one loaded document instance -/// Obtained through LibreOffice.documentLoad() -open class Document -{ - private let pDoc: UnsafeMutablePointer - private let docClass: LibreOfficeKitDocumentClass - - internal init(pDoc: UnsafeMutablePointer) - { - self.pDoc = pDoc - self.docClass = pDoc.pointee.pClass.pointee - } - - /** - * Stores the document's persistent data to a URL and - * continues to be a representation of the old URL. - * - * @param pUrl the location where to store the document - * @param pFormat the format to use while exporting, when omitted, then deducted from pURL's extension - * @param pFilterOptions options for the export filter, e.g. SkipImages. - * Another useful FilterOption is "TakeOwnership". It is consumed - * by the saveAs() itself, and when provided, the document identity - * changes to the provided pUrl - meaning that '.uno:ModifiedStatus' - * is triggered as with the "Save As..." in the UI. - * "TakeOwnership" mode must not be used when saving to PNG or PDF. - */ - public func saveAs(url: String, format: String? = nil, filterOptions: String? = nil) -> Bool - { - return docClass.saveAs(pDoc, url, format, filterOptions) != 0 - } - - /** - * Get document type. - * - * @since LibreOffice 6.0 - * @return an element of the LibreOfficeKitDocumentType enum. - */ - public func getDocumentType() -> LibreOfficeKitDocumentType - { - return LibreOfficeKitDocumentType(rawValue: LibreOfficeKitDocumentType.RawValue(docClass.getDocumentType(pDoc))) - } - - /** - * Get number of part that the document contains. - * - * Part refers to either individual sheets in a Calc, or slides in Impress, - * and has no relevance for Writer. - */ - public func getParts() -> Int32 - { - return docClass.getParts(pDoc); - } - - public func initializeForRendering() - { - docClass.initializeForRendering(pDoc, "") // TODO: arguments?? - } - - /** - * Get the logical rectangle of each part in the document. - * - * A part refers to an individual page in Writer and has no relevant for - * Calc or Impress. - * - * @return a rectangle list, using the same format as - * LOK_CALLBACK_TEXT_SELECTION. - */ - public func getPartRectangles() -> String - { - return toString( docClass.getPartPageRectangles(pDoc) ) ?? "" - - // TODO: convert to CGRects? Comes out like "284, 284, 11906, 16838; 284, 17406, 11906, 16838; 284, 34528, 11906, 16838" - - } - - /// Get the current part of the document. - public func getPart() -> Int32 - { - return docClass.getPart(pDoc); - } - - /// Set the current part of the document. - public func setPart( nPart: Int32 ) - { - docClass.setPart(pDoc, nPart); - } - - /// Get the current part's name. - public func getPartName( nPart: Int32) -> String? - { - return toString( docClass.getPartName(pDoc, nPart) ) - - } - - /// Get the current part's hash. - public func getPartHash( nPart: Int32 ) -> String? - { - return toString( docClass.getPartHash(pDoc, nPart) ) - - } - - public func setPartMode( nMode: Int32 ) - { - docClass.setPartMode( pDoc, nMode); - } - - /** - * Renders a subset of the document to a pre-allocated buffer. - * - * Note that the buffer size and the tile size implicitly supports - * rendering at different zoom levels, as the number of rendered pixels and - * the rendered rectangle of the document are independent. - * - * @param rCGContext Core Graphics context, cast to a UnsafeMutableRawPointer - * @param nCanvasWidth number of pixels in a row of pBuffer. - * @param nCanvasHeight number of pixels in a column of pBuffer. - * @param nTilePosX logical X position of the top left corner of the rendered rectangle, in TWIPs. - * @param nTilePosY logical Y position of the top left corner of the rendered rectangle, in TWIPs. - * @param nTileWidth logical width of the rendered rectangle, in TWIPs. - * @param nTileHeight logical height of the rendered rectangle, in TWIPs. - */ - public func paintTileToCGContext( rCGContext: UnsafeMutableRawPointer, - canvasWidth: Int32, - canvasHeight: Int32, - tilePosX: Int32, - tilePosY: Int32, - tileWidth: Int32, - tileHeight: Int32) - { - print("paintTile canvasWidth=\(canvasWidth) canvasHeight=\(canvasHeight) tilePosX=\(tilePosX) tilePosY=\(tilePosY) tileWidth=\(tileWidth) tileHeight=\(tileHeight) ") - return docClass.paintTileToCGContext(pDoc, rCGContext, canvasWidth, canvasHeight, - tilePosX, tilePosY, tileWidth, tileHeight); - } - - /** - * Renders a window (dialog, popup, etc.) with give id - * - * @param nWindowId - * @param pBuffer Buffer with enough memory allocated to render any dialog - * @param x x-coordinate from where the dialog should start painting - * @param y y-coordinate from where the dialog should start painting - * @param width The width of the dialog image to be painted - * @param height The height of the dialog image to be painted - */ - public func paintWindow( nWindowId: UInt32, - pBuffer: UnsafeMutablePointer, - x: Int32, - y: Int32, - width: Int32, - height: Int32) - { - return docClass.paintWindow(pDoc, nWindowId, pBuffer, x, y, width, height); - } - - /** - * Posts a command to the window (dialog, popup, etc.) with given id - * - * @param nWindowid - */ - public func postWindow( nWindowId: UInt32, nAction: Int32, data: String) - { - return docClass.postWindow(pDoc, nWindowId, nAction, data); - } - - /** - * Gets the tile mode: the pixel format used for the pBuffer of paintTile(). - * - * @return an element of the LibreOfficeKitTileMode enum. - */ - public func getTileMode() -> LibreOfficeKitTileMode - { - return LibreOfficeKitTileMode(rawValue: LibreOfficeKitTileMode.RawValue(docClass.getTileMode(pDoc))); - } - - /// Get the document sizes in TWIPs. - public func getDocumentSize() -> (Int, Int) - { - print(Thread.isMainThread) - // long* pWidth, long* pHeight - var pWidth: Int = 0 - var pHeight: Int = 0 - docClass.getDocumentSize(pDoc, &pWidth, &pHeight); - return (pWidth, pHeight) - } - - /** - * Initialize document for rendering. - * - * Sets the rendering and document parameters to default values that are - * needed to render the document correctly using tiled rendering. This - * method has to be called right after documentLoad() in case any of the - * tiled rendering methods are to be used later. - * - * Example argument string for text documents: - * - * { - * ".uno:HideWhitespace": - * { - * "type": "boolean", - * "value": "true" - * } - * } - * - * @param pArguments arguments of the rendering - */ - public func initializeForRendering(arguments: String? = nil) - { - docClass.initializeForRendering(pDoc, arguments); - } - - /** - * Registers a callback. LOK will invoke this function when it wants to - * inform the client about events. - * - * @param pCallback the callback to invoke - * @param pData the user data, will be passed to the callback on invocation - */ - @discardableResult - public func registerCallback( callback: @escaping LibreOfficeCallback ) -> Int - { - let ret = Callbacks.register(callback: callback) - let pointer = UnsafeMutableRawPointer(bitPattern: ret) - docClass.registerCallback(pDoc, callbackFromLibreOffice, pointer) - return ret - } - - /** - * Posts a keyboard event to the focused frame. - * - * @param nType Event type, like press or release. - * @param nCharCode contains the Unicode character generated by this event or 0 - * @param nKeyCode contains the integer code representing the key of the event (non-zero for control keys) - */ - public func postKeyEvent(nType: Int32, nCharCode: Int32, nKeyCode: Int32) - { - docClass.postKeyEvent(pDoc, nType, nCharCode, nKeyCode); - } - - /** - * Posts a keyboard event to the dialog - * - * @param nWindowId - * @param nType Event type, like press or release. - * @param nCharCode contains the Unicode character generated by this event or 0 - * @param nKeyCode contains the integer code representing the key of the event (non-zero for control keys) - */ - public func postWindowKeyEvent( nWindowId: UInt32, nType: Int32, nCharCode: Int32, nKeyCode: Int32) - { - docClass.postWindowKeyEvent(pDoc, nWindowId, nType, nCharCode, nKeyCode); - } - - /** - * Posts a mouse event to the document. - * - * @param nType Event type, like down, move or up. - * @param nX horizontal position in document coordinates - * @param nY vertical position in document coordinates - * @param nCount number of clicks: 1 for single click, 2 for double click - * @param nButtons: which mouse buttons: 1 for left, 2 for middle, 4 right - * @param nModifier: which keyboard modifier: (see include/vcl/vclenum.hxx for possible values) - */ - public func postMouseEvent( nType: Int32, nX: Int32, nY: Int32, nCount: Int32, nButtons: Int32, nModifier: Int32) - { - docClass.postMouseEvent(pDoc, nType, nX, nY, nCount, nButtons, nModifier); - } - - /** - * Posts a mouse event to the window with given id. - * - * @param nWindowId - * @param nType Event type, like down, move or up. - * @param nX horizontal position in document coordinates - * @param nY vertical position in document coordinates - * @param nCount number of clicks: 1 for single click, 2 for double click - * @param nButtons: which mouse buttons: 1 for left, 2 for middle, 4 right - * @param nModifier: which keyboard modifier: (see include/vcl/vclenum.hxx for possible values) - */ - public func postWindowMouseEvent(nWindowId: UInt32, nType: Int32, nX: Int32, nY: Int32, nCount: Int32, nButtons: Int32, nModifier: Int32) - { - docClass.postWindowMouseEvent(pDoc, nWindowId, nType, nX, nY, nCount, nButtons, nModifier); - } - - /** - * Posts a UNO command to the document. - * - * Example argument string: - * - * { - * "SearchItem.SearchString": - * { - * "type": "string", - * "value": "foobar" - * }, - * "SearchItem.Backward": - * { - * "type": "boolean", - * "value": "false" - * } - * } - * - * @param pCommand uno command to be posted to the document, like ".uno:Bold" - * @param pArguments arguments of the uno command. - */ - public func postUnoCommand(command: String, arguments: String? = nil, notifyWhenFinished: Bool = false) - { - docClass.postUnoCommand(pDoc, command, arguments, notifyWhenFinished); - } - - /** - * Sets the start or end of a text selection. - * - * @param nType @see LibreOfficeKitSetTextSelectionType - * @param nX horizontal position in document coordinates - * @param nY vertical position in document coordinates - */ - public func setTextSelection( nType: Int32, nX: Int32, nY: Int32) - { - docClass.setTextSelection(pDoc, nType, nX, nY); - } - - /** - * Gets the currently selected text. - * - * @param pMimeType suggests the return format, for example text/plain;charset=utf-8. - * @param pUsedMimeType output parameter to inform about the determined format (suggested one or plain text). - */ - // FIXME - work out how to use an inout param for usedMimeType - public func getTextSelection(mimeType: String, usedMimeType: UnsafeMutablePointer?>? = nil) -> String? - { - return toString( docClass.getTextSelection(pDoc, mimeType, usedMimeType) ); - } - - /** - * Pastes content at the current cursor position. - * - * @param pMimeType format of pData, for example text/plain;charset=utf-8. - * @param pData the actual data to be pasted. - * @return if the supplied data was pasted successfully. - */ - public func paste(mimeType: String, data: String, size: Int) -> Bool - { - return docClass.paste(pDoc, mimeType, data, size); - } - - /** - * Adjusts the graphic selection. - * - * @param nType @see LibreOfficeKitSetGraphicSelectionType - * @param nX horizontal position in document coordinates - * @param nY vertical position in document coordinates - */ - public func setGraphicSelection( nType: Int32, nX: Int32, nY: Int32) - { - docClass.setGraphicSelection(pDoc, nType, nX, nY); - } - - /** - * Gets rid of any text or graphic selection. - */ - public func resetSelection() - { - docClass.resetSelection(pDoc); - } - - /** - * Returns a json mapping of the possible values for the given command - * e.g. {commandName: ".uno:StyleApply", commandValues: {"familyName1" : ["list of style names in the family1"], etc.}} - * @param pCommand a UNO command for which the possible values are requested - * @return {commandName: unoCmd, commandValues: {possible_values}} - */ - public func getCommandValues(command: String) -> String? - { - return toString(docClass.getCommandValues(pDoc, command)); - } - - /** - * Save the client's view so that we can compute the right zoom level - * for the mouse events. This only affects CALC. - * @param nTilePixelWidth - tile width in pixels - * @param nTilePixelHeight - tile height in pixels - * @param nTileTwipWidth - tile width in twips - * @param nTileTwipHeight - tile height in twips - */ - public func setClientZoom( - nTilePixelWidth: Int32, - nTilePixelHeight: Int32, - nTileTwipWidth: Int32, - nTileTwipHeight: Int32) - { - docClass.setClientZoom(pDoc, nTilePixelWidth, nTilePixelHeight, nTileTwipWidth, nTileTwipHeight); - } - - /** - * Inform core about the currently visible area of the document on the - * client, so that it can perform e.g. page down (which depends on the - * visible height) in a sane way. - * - * @param nX - top left corner horizontal position - * @param nY - top left corner vertical position - * @param nWidth - area width - * @param nHeight - area height - */ - public func setClientVisibleArea( nX: Int32, nY: Int32, nWidth: Int32, nHeight: Int32) - { - docClass.setClientVisibleArea(pDoc, nX, nY, nWidth, nHeight); - } - - /** - * Show/Hide a single row/column header outline for Calc documents. - * - * @param bColumn - if we are dealing with a column or row group - * @param nLevel - the level to which the group belongs - * @param nIndex - the group entry index - * @param bHidden - the new group state (collapsed/expanded) - */ - public func setOutlineState( column: Bool, level: Int32, index: Int32, hidden: Bool) - { - docClass.setOutlineState(pDoc, column, level, index, hidden); - } - - /** - * Create a new view for an existing document. - * By default a loaded document has 1 view. - * @return the ID of the new view. - */ - public func createView() -> Int32 - { - return docClass.createView(pDoc); - } - - /** - * Destroy a view of an existing document. - * @param nId a view ID, returned by createView(). - */ - public func destroyView( id: Int32 ) - { - docClass.destroyView(pDoc, id); - } - - /** - * Set an existing view of an existing document as current. - * @param nId a view ID, returned by createView(). - */ - public func setView(id: Int32) - { - docClass.setView(pDoc, id); - } - - /** - * Get the current view. - * @return a view ID, previously returned by createView(). - */ - public func getView() -> Int32 - { - return docClass.getView(pDoc); - } - - /** - * Get number of views of this document. - */ - public func getViewsCount() -> Int32 - { - return docClass.getViewsCount(pDoc); - } - - /** - * Paints a font name or character if provided to be displayed in the font list - * @param pFontName the font to be painted - */ - // TODO -// public func renderFont(fontName: String, -// const char *pChar, -// int *pFontWidth, -// int *pFontHeight) -// { -// return docClass.renderFont(pDoc, pFontName, pChar, pFontWidth, pFontHeight); -// } - - /** - * Renders a subset of the document's part to a pre-allocated buffer. - * - * @param nPart the part number of the document of which the tile is painted. - * @see paintTile. - */ - public func paintPartTile(pBuffer: UnsafeMutablePointer, - nPart: Int32, - nCanvasWidth: Int32, - nCanvasHeight: Int32, - nTilePosX: Int32, - nTilePosY: Int32, - nTileWidth: Int32, - nTileHeight: Int32) - { - return docClass.paintPartTile(pDoc, pBuffer, nPart, - nCanvasWidth, nCanvasHeight, - nTilePosX, nTilePosY, - nTileWidth, nTileHeight); - } - - /** - * Returns the viewID for each existing view. Since viewIDs are not reused, - * viewIDs are not the same as the index of the view in the view array over - * time. Use getViewsCount() to know the minimal nSize that's large enough. - * - * @param pArray the array to write the viewIDs into - * @param nSize the size of pArray - * @returns true if pArray was large enough and result is written, false - * otherwise. - */ -// bool getViewIds(int* pArray, -// size_t nSize) -// { -// return docClass.getViewIds(pDoc, pArray, nSize); -// } - - /** - * Set the language tag of the window with the specified nId. - * - * @param nId a view ID, returned by createView(). - * @param language Bcp47 languageTag, like en-US or so. - */ - public func setViewLanguage( id: Int32, language: String) - { - docClass.setViewLanguage(pDoc, id, language); - } - - public func invokeHandlers() - { - // The app seems to work even without this? Or maybe I - // just didn't test hard enough? - // temporaryHackToInvokeCallbackHandlers(pDoc) - - } - -} - -/** - * iOS friendly extensions of Document. - * TODO: move me back to the framework. - */ -public extension Document -{ - public func getDocumentSizeAsCGSize() -> CGSize - { - let (x,y) = self.getDocumentSize() - return CGSize(width: x, height: y) - } - - public func paintTileToCurrentContext(canvasSize: CGSize, - tileRect: CGRect) - { - let ctx = UIGraphicsGetCurrentContext() - //print(ctx!) - let ptr = unsafeBitCast(ctx, to: UnsafeMutableRawPointer.self) - //print(ptr) - - self.paintTileToCGContext(rCGContext:ptr, - canvasWidth: Int32(canvasSize.width), - canvasHeight: Int32(canvasSize.height), - tilePosX: Int32(tileRect.minX), - tilePosY: Int32(tileRect.minY), - tileWidth: Int32(tileRect.size.width), - tileHeight: Int32(tileRect.size.height)) - } - - public func paintTileToImage(canvasSize: CGSize, - tileRect: CGRect) -> UIImage? - { - - UIGraphicsBeginImageContextWithOptions(canvasSize, false, 1.0) - let _ = UIGraphicsGetCurrentContext()! - - self.paintTileToCurrentContext(canvasSize: canvasSize, tileRect: tileRect) - let image = UIGraphicsGetImageFromCurrentImageContext() - UIGraphicsEndImageContext() - return image - } -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift deleted file mode 100644 index 9ca58eddf599..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/DocumentHolder.swift +++ /dev/null @@ -1,345 +0,0 @@ -// -// 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/. -// - -import Foundation -import UIKit -import QuartzCore - -/** - * Holds the document object so to enforce access in a thread safe way. - */ -public class DocumentHolder -{ - private let doc: Document - - public weak var delegate: DocumentUIDelegate? = nil - public weak var searchDelegate: SearchDelegate? = nil - - private let cache = RenderCache() - - public let documentType: LibreOfficeKitDocumentType - public let documentSize: CGSize - public let views: Int32 - public let parts: Int32 - public let partNames: [String] - - public private(set) var currentPart: Int32 = 0 - - init(doc: Document) - { - self.doc = doc - - // we go and get a bunch of document properties and store them in properties - // this allows easy access to these without threading issues - // when we get to editing they will have to be invalidated - - self.documentType = doc.getDocumentType() - documentSize = doc.getDocumentSizeAsCGSize() - views = doc.getViewsCount() - parts = doc.getParts() - - var partNames = [String]() - for i in 0.. ()) - { - LOKitThread.instance.async - { - closure(self.doc) - } - self.invokeHandlers() - } - - public func invokeHandlers() - { - LOKitThread.instance.async - { - self.doc.invokeHandlers() - } - } - - /// Gives sync access to the document - blocks until the closure runs. - /// Careful of deadlocks. - public func sync( _ closure: @escaping (Document) -> R ) -> R - { - return LOKitThread.instance.sync - { - self.invokeHandlers() - return closure(self.doc) - } - } - - /// Paints a tile and return synchronously, using a cached version if it can - public func paintTileToImage(canvasSize: CGSize, - tileRect: CGRect) -> UIImage? - { - if let cached = cache.get(part: currentPart, canvasSize: canvasSize, tileRect: tileRect) - { - return cached - } - - let img = sync { - $0.paintTileToImage(canvasSize: canvasSize, tileRect: tileRect) - } - if let image = img - { - cache.add(cachedRender: CachedRender(part: currentPart, canvasSize: canvasSize, tileRect: tileRect, image: image)) - } - - return img - } - - private func onDocumentEvent(type: LibreOfficeKitCallbackType, payload: String?) - { - print("onDocumentEvent type:\(type) payload:\(payload ?? "")") - - switch type - { - case LOK_CALLBACK_INVALIDATE_TILES: - runOnMain { - self.delegate?.invalidateTiles( rects: decodeRects(payload) ) - } - case LOK_CALLBACK_INVALIDATE_VISIBLE_CURSOR: - runOnMain { - self.delegate?.invalidateVisibleCursor( rects: decodeRects(payload) ) - } - case LOK_CALLBACK_TEXT_SELECTION: - runOnMain { - self.delegate?.textSelection( rects: decodeRects(payload) ) - } - case LOK_CALLBACK_TEXT_SELECTION_START: - runOnMain { - self.delegate?.textSelectionStart( rects: decodeRects(payload) ) - } - case LOK_CALLBACK_TEXT_SELECTION_END: - runOnMain { - self.delegate?.textSelectionEnd( rects: decodeRects(payload) ) - } - - case LOK_CALLBACK_SEARCH_NOT_FOUND: - runOnMain { - self.searchDelegate?.searchNotFound() - } - case LOK_CALLBACK_SEARCH_RESULT_SELECTION: - runOnMain { - self.searchResults(payload: payload) - } - - case LOK_CALLBACK_SET_PART: - if let p = payload, let newPart = Int32(p) - { - self.currentPart = newPart - // TODO: callback? - } - - case LOK_CALLBACK_STATE_CHANGED: - // TODO: call backback - print("onDocumentEvent type: LOK_CALLBACK_STATE_CHANGED: \(payload ?? "")") - - default: - print("onDocumentEvent type:\(type) not handled!") - } - } - - private func searchResults(payload: String?) - { - if let d = payload, let data = d.data(using: .utf8) - { - let decoder = JSONDecoder() - do - { - let searchResults = try decoder.decode(SearchResults.self, from: data ) - self.searchDelegate?.searchResultSelection(searchResults: searchResults) - } - catch - { - print("Error decoding payload: \(error)") - } - } - } - - public func search(searchString: String, forwardDirection: Bool = true, from: CGPoint) - { - var rootJson = JSONObject() - addProperty(&rootJson, "SearchItem.SearchString", "string", searchString); - addProperty(&rootJson, "SearchItem.Backward", "boolean", String(!forwardDirection) ); - addProperty(&rootJson, "SearchItem.SearchStartPointX", "long", String(describing: from.x) ); - addProperty(&rootJson, "SearchItem.SearchStartPointY", "long", String(describing: from.y) ); - addProperty(&rootJson, "SearchItem.Command", "long", "0") // String.valueOf(0)); // search all == 1 - - if let jsonStr = encode(json: rootJson) - { - async { - $0.postUnoCommand(command: ".uno:ExecuteSearch", arguments: jsonStr, notifyWhenFinished: true) - } - } - } - - public func incrementPart(amount: Int32) - { - async { - document in - let currentPart = document.getPart() - let numParts = document.getParts() - let newPart = currentPart + amount - if (newPart < numParts && newPart > 0) - { - document.setPart(nPart: newPart) - } - } - } -} - -public typealias JSONObject = Dictionary -public func addProperty( _ json: inout JSONObject, _ parentValue: String, _ type: String, _ value: String) -{ - var child = JSONObject(); - child["type"] = type as AnyObject - child["value"] = value as AnyObject - json[parentValue] = child as AnyObject -} - -func encode(json: JSONObject) -> String? -{ - if let data = try? JSONSerialization.data(withJSONObject: json, options: .prettyPrinted) - { - return String(data: data, encoding: String.Encoding.utf8) - } - return nil -} - -/// Decodes a series of rectangles in the form: "x, y, width, height; x, y, width, height" -public func decodeRects(_ payload: String?) -> [CGRect]? -{ - guard var pl = payload else { return nil } - pl = pl.trimmingCharacters(in: .whitespacesAndNewlines ) - if pl == "EMPTY" || pl.count == 0 - { - return nil - } - var ret = [CGRect]() - for rectStr in pl.split(separator: ";") - { - let coords = rectStr.split(separator: ",").compactMap { Double($0.trimmingCharacters(in: .whitespacesAndNewlines)) } - if coords.count == 4 - { - let rect = CGRect(x: coords[0], - y: coords[1], - width: coords[2], - height: coords[3]) - ret.append( rect ) - } - } - return ret -} - -// MARK :- Delegates - -public protocol DocumentUIDelegate: class -{ - func invalidateTiles(rects: [CGRect]? ) - func invalidateVisibleCursor(rects: [CGRect]? ) - - func textSelection(rects: [CGRect]? ) - func textSelectionStart(rects: [CGRect]? ) - func textSelectionEnd(rects: [CGRect]? ) -} - -public protocol SearchDelegate: class -{ - func searchNotFound() - func searchResultSelection(searchResults: SearchResults) -} - -/** - Encodes this example json: - { - "searchString": "Office", - "highlightAll": "true", - "searchResultSelection": [ - { - "part": "0", - "rectangles": "1951, 10743, 627, 239" - }, - { - "part": "0", - "rectangles": "5343, 9496, 627, 287" - }, - { - "part": "0", - "rectangles": "1951, 9256, 627, 239" - }, - { - "part": "0", - "rectangles": "6502, 5946, 626, 287" - }, - { - "part": "0", - "rectangles": "6686, 5658, 627, 287" - }, - { - "part": "0", - "rectangles": "4103, 5418, 573, 239" - }, - { - "part": "0", - "rectangles": "1951, 5418, 627, 239" - }, - { - "part": "0", - "rectangles": "4934, 1658, 1586, 559" - } - ] - } - */ -public struct SearchResults: Codable -{ - public var searchString: String? - public var highlightAll: String? - public var searchResultSelection: Array? -} - -public struct PartAndRectangles: Codable -{ - public var part: String? - public var rectangles: String? - - public var rectsAsCGRects: [CGRect]? { - return decodeRects(self.rectangles) - } -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LOKitThread.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LOKitThread.swift deleted file mode 100644 index cdf73ab2d14c..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LOKitThread.swift +++ /dev/null @@ -1,139 +0,0 @@ -// -// 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/. -// - -import Foundation -import UIKit - - - - -/// Serves the same purpose as the LOKitThread in the Android project - sequentialises all access to LOKit on a background thread, off the UI thread. -/// It's a singleton, and keeps a single instance of LibreOfficeKit -/// Public methods may be called from any thread, and will dispatch their work onto the held sequential queue. -/// TODO: move me to framework -public class LOKitThread -{ - public static let instance = LOKitThread() // statics are lazy and thread safe in swift, so no need for anything more complex - - - fileprivate let queue = SingleThreadedQueue(name: "LOKitThread.queue") - - /// singleton LibreOffice instance. Can only be accessed through the queue. - var libreOffice: LibreOffice! = nil // initialised in didFinishLaunchingWithOptions - - public weak var delegate: LOKitUIDelegate? = nil - public weak var progressDelegate: ProgressDelegate? = nil - - private init() - { - - async { - self.libreOffice = try! LibreOffice() // will blow up the app if it throws, but fair enough - - // hook up event handler - self.libreOffice.registerCallback(callback: self.onLOKEvent) - - } - } - - private func onLOKEvent(type: LibreOfficeKitCallbackType, payload: String?) - { - //LibreOfficeLight.LibreOfficeKitKeyEventType. - print("onLOKEvent type:\(type) payload:\(payload ?? "")") - - switch type - { - case LOK_CALLBACK_STATUS_INDICATOR_START: - runOnMain { - self.progressDelegate?.statusIndicatorStart() - } - - case LOK_CALLBACK_STATUS_INDICATOR_SET_VALUE: - runOnMain { - if let doub = Double(payload ?? "") - { - self.progressDelegate?.statusIndicatorSetValue(value: doub) - } - } - - case LOK_CALLBACK_STATUS_INDICATOR_FINISH: - runOnMain { - self.progressDelegate?.statusIndicatorFinish() - } - default: - print("onLOKEvent type:\(type) not handled!") - } - } - - /// Run the task on the serial queue, and return immediately - public func async(_ runnable: @escaping Runnable) - { - queue.async( runnable) - } - - /// Run the task on the serial queue, and block to get the result - /// Careful of deadlocking! - public func sync( _ closure: @escaping () -> R ) -> R - { - let ret = queue.sync( closure ) - return ret - } - - public func withLibreOffice( _ closure: @escaping (LibreOffice) -> ()) - { - async { - closure(self.libreOffice) - } - } - - /// Loads a document, and calls the callback with a wrapper if successful, or an error if not. - public func documentLoad(url: String, callback: @escaping (DocumentHolder?, Error?) -> ()) - { - withLibreOffice - { - lo in - - do - { - // this is trying to avoid null context errors which pop up on doc init - // doesn't seem to fix - UIGraphicsBeginImageContext(CGSize(width:1,height:1)) - let doc = try lo.documentLoad(url: url) - print("Opened document: \(url)") - doc.initializeForRendering() - UIGraphicsEndImageContext() - - callback(DocumentHolder(doc: doc), nil) - } - catch - { - print("Failed to load document: \(error)") - callback(nil, error) - } - } - } -} - -/** - * Delegate methods for global events emitted from LOKit. - * Mostly dispatched on the main thread unless noted. - */ -public protocol LOKitUIDelegate: class -{ - // Nothing ATM... -} - -public protocol ProgressDelegate: class -{ - func statusIndicatorStart() - func statusIndicatorFinish() - func statusIndicatorSetValue(value: Double) -} - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitIOSTests.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitIOSTests.swift deleted file mode 100644 index 45682850bb7e..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitIOSTests.swift +++ /dev/null @@ -1,102 +0,0 @@ -// -// LibreOfficeKitIOSTests.swift -// LibreOfficeKitIOSTests -// -// Created by Jon Nermut on 30/12/17. -// Copyright © 2017 LibreOffice. All rights reserved. -// - -import XCTest -@testable import LibreOfficeKitIOS - -class LibreOfficeKitIOSTests: XCTestCase { - - override func setUp() { - super.setUp() - // Put setup code here. This method is called before the invocation of each test method in the class. - } - - override func tearDown() { - // Put teardown code here. This method is called after the invocation of each test method in the class. - super.tearDown() - } - - - - func testLoadingSimpleDoc() { - - guard let lo = try? LibreOffice() else - { - XCTFail("Could not start LibreOffice") - return - } - - let b = Bundle.init(for: LibreOfficeKitIOSTests.self) - guard let url = b.url(forResource: "test-page-format", withExtension: "docx") else - { - XCTFail("Failed to get url to test doc") - return - } - - var loCallbackCount = 0 - lo.registerCallback() - { - typ, payload in - print(typ) - print(payload) - loCallbackCount += 1 - } - - guard let doc = try? lo.documentLoad(url: url.absoluteString) else - { - XCTFail("Could not load document") - return - } - - var docCallbackCount = 0 - doc.registerCallback() - { - typ, payload in - print(typ) - print(payload) - docCallbackCount += 1 - } - - //let typ: LibreOfficeDocumentType = doc.getDocumentType() - //XCTAssertTrue(typ == LibreOfficeDocumentType.LOK_DOCTYPE_TEXT) - - doc.initializeForRendering() - let rects = doc.getPartRectangles() - print(rects) // 284, 284, 12240, 15840; 284, 16408, 12240, 15840 - let tileMode = doc.getTileMode() - print(tileMode) // 1 - let canvasSize = CGSize(width: 1024,height: 1024) - let tile = CGRect(x: 284, y: 284, width: 12240, height: 12240) - - - guard let image = doc.paintTileToImage(canvasSize: canvasSize, tileRect: tile) else - { - XCTFail("No image") - return - } - if let data = UIImagePNGRepresentation(image) - { - let filename = getDocumentsDirectory().appendingPathComponent("tile1.png") - try? data.write(to: filename) - print("Wrote tile to: \(filename)") - } - } - -} - -func getDocumentsDirectory() -> URL -{ - let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) - return paths[0] -} - -public extension Document -{ - -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitWrapper.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitWrapper.swift deleted file mode 100644 index 375dd6def824..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/LibreOfficeKitWrapper.swift +++ /dev/null @@ -1,231 +0,0 @@ -// -// 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/. -// - -import Foundation - - -public struct LibreOfficeError: Error -{ - let message: String - public init(_ message: String) - { - self.message = message - } -} - -public typealias LibreOfficeCallback = (_ type: LibreOfficeKitCallbackType, _ payload: String?) -> () - -func callbackFromLibreOffice(nType: Int32, payload: UnsafePointer?, pData: UnsafeMutableRawPointer?) -{ - if let val = pData?.hashValue - { - if let theFunc = Callbacks.callbackRegister[val] - { - let payString = toString(payload) - theFunc(LibreOfficeKitCallbackType(rawValue: LibreOfficeKitCallbackType.RawValue(nType)), payString) - } - else - { - print("Unknown callback: \(val)") - } - } - else - { - print("callbackFromLibreOffice, but pData was nil") - } -} - - -internal struct Callbacks -{ - static var count = 0 - static var callbackRegister: Dictionary = [:] - - static func register(callback: @escaping LibreOfficeCallback) -> Int - { - count += 1 - let id = count - callbackRegister[id] = callback - return id - - } -} - - -open class LibreOffice -{ - private let pLok: UnsafeMutablePointer - private let lokClass: LibreOfficeKitClass - - public init() throws - { - let b = Bundle.init(for: LibreOffice.self) - let path = b.bundlePath // not Bundle.main.bundlePath - let docsDir = getDocumentsDirectory() - let userDir = docsDir.appendingPathComponent("user") - print("Calling BridgeLOkit_Init with \(path), \(userDir.path)" ) - BridgeLOkit_Init(path, userDir.path) - let pLok = BridgeLOkit_getLOK() - if let lokClass = pLok?.pointee.pClass?.pointee - { - self.pLok = pLok! - self.lokClass = lokClass - print("Loaded LibreOfficeKit: \(self.getVersionInfo() ?? "")") - return - } - throw LibreOfficeError("Unable to init LibreOfficeKit") - } - - /** - * Get version information of the LOKit process - * - * @since LibreOffice 6.0 - * @returns JSON string containing version information in format: - * {ProductName: <>, ProductVersion: <>, ProductExtension: <>, BuildId: <>} - * - * Eg: {"ProductName": "LibreOffice", - * "ProductVersion": "5.3", - * "ProductExtension": ".0.0.alpha0", - * "BuildId": ""} - */ - public func getVersionInfo() -> String? - { - if let pRet = lokClass.getVersionInfo(pLok) - { - return String(cString: pRet) // TODO: convert JSON - } - return nil - } - - /** - * Loads a document from a URL. - * - * @param pUrl the URL of the document to load - * @param pFilterOptions options for the import filter, e.g. SkipImages. - * Another useful FilterOption is "Language=...". It is consumed - * by the documentLoad() itself, and when provided, LibreOfficeKit - * switches the language accordingly first. - * @since pFilterOptions argument added in LibreOffice 5.0 - */ - public func documentLoad(url: String) throws -> Document - { - if let pDoc = lokClass.documentLoad(pLok, url) - { - return Document(pDoc: pDoc) - } - throw LibreOfficeError("Unable to load document") - } - - - - /// Returns the last error as a string - public func getError() -> String? - { - if let cstr = lokClass.getError(pLok) - { - let ret = String(cString: cstr) - lokClass.freeError(cstr) - return ret - } - return nil - } - - - /** - * Registers a callback. LOK will invoke this function when it wants to - * inform the client about events. - * - * @since LibreOffice 6.0 - * @param pCallback the callback to invoke - * @param pData the user data, will be passed to the callback on invocation - */ - @discardableResult - public func registerCallback( callback: @escaping LibreOfficeCallback ) -> Int - { - let ret = Callbacks.register(callback: callback) - let pointer = UnsafeMutableRawPointer(bitPattern: ret) - lokClass.registerCallback(pLok, callbackFromLibreOffice, pointer) - return ret - } - - /** - * Returns details of filter types. - * - * Example returned string: - * - * { - * "writer8": { - * "MediaType": "application/vnd.oasis.opendocument.text" - * }, - * "calc8": { - * "MediaType": "application/vnd.oasis.opendocument.spreadsheet" - * } - * } - * - * @since LibreOffice 6.0 - */ - public func getFilterTypes() -> String? - { - return toString(lokClass.getFilterTypes(pLok)); - } - - /** - * Set bitmask of optional features supported by the client. - * - * @since LibreOffice 6.0 - * @see LibreOfficeKitOptionalFeatures - */ - public func setOptionalFeatures(features: UInt64) - { - return lokClass.setOptionalFeatures(pLok, features); - } - - /** - * Set password required for loading or editing a document. - * - * Loading the document is blocked until the password is provided. - * - * @param pURL the URL of the document, as sent to the callback - * @param pPassword the password, nullptr indicates no password - * - * In response to LOK_CALLBACK_DOCUMENT_PASSWORD, a valid password - * will continue loading the document, an invalid password will - * result in another LOK_CALLBACK_DOCUMENT_PASSWORD request, - * and a NULL password will abort loading the document. - * - * In response to LOK_CALLBACK_DOCUMENT_PASSWORD_TO_MODIFY, a valid - * password will continue loading the document, an invalid password will - * result in another LOK_CALLBACK_DOCUMENT_PASSWORD_TO_MODIFY request, - * and a NULL password will continue loading the document in read-only - * mode. - * - * @since LibreOffice 6.0 - */ - public func setDocumentPassword(URL: String, password: String) - { - lokClass.setDocumentPassword(pLok, URL, password); - } - - - - - /** - * Run a macro. - * - * Same syntax as on command line is permissible (ie. the macro:// URI forms) - * - * @since LibreOffice 6.0 - * @param pURL macro url to run - */ - - public func runMacro( URL: String ) -> Bool - { - return lokClass.runMacro( pLok, URL ) != 0; - } -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/RenderCache.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/RenderCache.swift deleted file mode 100644 index f217db0414a6..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/RenderCache.swift +++ /dev/null @@ -1,78 +0,0 @@ -// -// 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/. -// - -import Foundation -import UIKit - - -open class CachedRender -{ - open let part: Int32 - open let canvasSize: CGSize - open let tileRect: CGRect - open let image: UIImage - - public init(part: Int32, canvasSize: CGSize, tileRect: CGRect, image: UIImage) - { - self.canvasSize = canvasSize - self.tileRect = tileRect - self.image = image - self.part = part - } -} - -class RenderCache -{ - let CACHE_LOWMEM = 4 - let CACHE_NORMAL = 20 - - var cachedRenders: [CachedRender] = [] - var hasReceivedMemoryWarning = false - - let lock = NSRecursiveLock() - - func emptyCache() - { - lock.lock(); defer { lock.unlock() } - cachedRenders.removeAll() - } - - func pruneCache() - { - lock.lock(); defer { lock.unlock() } - - let max = hasReceivedMemoryWarning ? CACHE_LOWMEM : CACHE_NORMAL - while cachedRenders.count > max - { - cachedRenders.remove(at: 0) - } - } - - func add(cachedRender: CachedRender) - { - lock.lock(); defer { lock.unlock() } - - cachedRenders.append(cachedRender) - pruneCache() - } - - func get(part: Int32, canvasSize: CGSize, tileRect: CGRect) -> UIImage? - { - lock.lock(); defer { lock.unlock() } - - if let cr = cachedRenders.first(where: { - $0.canvasSize == canvasSize - && $0.tileRect == tileRect - && $0.part == part - }) - { - return cr.image - } - return nil - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/Util.swift b/ios/LibreOfficeLight/LibreOfficeLight/LOKit/Util.swift deleted file mode 100644 index 596ca45e34a9..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LOKit/Util.swift +++ /dev/null @@ -1,43 +0,0 @@ -// -// 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/. -// - -import UIKit - - -func getDocumentsDirectory() -> URL -{ - let paths = FileManager.default.urls(for: .documentDirectory, in: .userDomainMask) - return paths[0] -} - -public extension CGRect -{ - public var desc: String - { - return "(x: \(self.origin.x), y: \(self.origin.y), width: \(self.size.width), height: \(self.size.height), maxX: \(self.maxX), maxY: \(self.maxY))" - } -} - -public func toString(_ pointer: UnsafeMutablePointer?) -> String? -{ - if let p = pointer - { - return String(cString: p) - } - return nil -} - -public func toString(_ pointer: UnsafePointer?) -> String? -{ - if let p = pointer - { - return String(cString: p) - } - return nil -} - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight-Prefix.pch b/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight-Prefix.pch deleted file mode 100644 index 638bf30e867e..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight-Prefix.pch +++ /dev/null @@ -1,22 +0,0 @@ -// -*- Mode: ObjC; 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/. - -#import - -#ifndef __IPHONE_5_0 -#warning "This project uses features only available in iOS SDK 5.0 and later." -#endif - -#ifdef __OBJC__ - #include - #import - #import - #include -#endif - -// vim:set shiftwidth=4 softtabstop=4 expandtab: diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.entitlements b/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.entitlements deleted file mode 100644 index bb42bb6ead0b..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.entitlements +++ /dev/null @@ -1,18 +0,0 @@ - - - - - com.apple.developer.icloud-container-identifiers - - iCloud.$(CFBundleIdentifier) - - com.apple.developer.icloud-services - - CloudDocuments - - com.apple.developer.ubiquity-container-identifiers - - iCloud.$(CFBundleIdentifier) - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion b/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion deleted file mode 100644 index 0c67376ebacb..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion +++ /dev/null @@ -1,5 +0,0 @@ - - - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents b/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents deleted file mode 100644 index 476e5b6cfe4c..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents +++ /dev/null @@ -1,4 +0,0 @@ - - - - \ No newline at end of file diff --git a/ios/LibreOfficeLight/LibreOfficeLight/PropertiesController.swift b/ios/LibreOfficeLight/LibreOfficeLight/PropertiesController.swift deleted file mode 100644 index 04ebaf78d670..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/PropertiesController.swift +++ /dev/null @@ -1,99 +0,0 @@ -// -// 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/. -// -import UIKit - - -class PropertiesController: UIViewController -{ - // Temp. functions - @IBAction func doStyle1(_ sender: UIButton) - { - loadController("Document") - } - - - - @IBAction func doStyle2(_ sender: UIButton) - { - loadController("Document") - } - - - - @IBAction func doStyle3(_ sender: UIButton) - { - loadController("Document") - } - - - - @IBAction func doStyle4(_ sender: UIButton) - { - loadController("Document") - } - - - - @IBAction func doStyle5(_ sender: UIButton) - { - loadController("Document") - } - - - - @IBAction func doStyle6(_ sender: UIButton) - { - loadController("Document") - } - - - @IBAction func doStyle7(_ sender: UIButton) - { - loadController("Document") - } - - - - func loadController(_ name:String) - { - let destController : UIViewController = self.storyboard!.instantiateViewController(withIdentifier: name) - self.navigationController!.pushViewController(destController, animated: true) - - UIView.animate(withDuration: 0.3, animations: { () -> Void in - self.view.frame = CGRect(x: -UIScreen.main.bounds.size.width, y: 0, width: UIScreen.main.bounds.size.width,height: UIScreen.main.bounds.size.height) - self.view.layoutIfNeeded() - self.view.backgroundColor = UIColor.clear - }, completion: { (finished) -> Void in - self.view.removeFromSuperview() - self.removeFromParentViewController() - }) - } - - - - override func viewDidLoad() - { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - - - override func didReceiveMemoryWarning() - { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } - - - - override func viewWillAppear(_ animated: Bool) - { - super.viewWillAppear(animated) - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/Root.plist b/ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/Root.plist deleted file mode 100644 index 0865e51d7e04..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/Root.plist +++ /dev/null @@ -1,38 +0,0 @@ - - - - - StringsTable - Root - PreferenceSpecifiers - - - Type - PSGroupSpecifier - Title - About - - - DefaultValue - The Source Code Form is subject to the terms of the Mozilla Public -License, v. 2.0. - Type - PSTextFieldSpecifier - Title - Copyright - Key - some text - - - DefaultValue - 0.0.0 - Type - PSTextFieldSpecifier - Title - Version - Key - application_version - - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/en.lproj/Root.strings b/ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/en.lproj/Root.strings deleted file mode 100644 index 8cd87b9d6b20..000000000000 Binary files a/ios/LibreOfficeLight/LibreOfficeLight/Settings.bundle/en.lproj/Root.strings and /dev/null differ diff --git a/ios/LibreOfficeLight/LibreOfficeLight/UIViewExtensions.swift b/ios/LibreOfficeLight/LibreOfficeLight/UIViewExtensions.swift deleted file mode 100644 index 1c0322331e51..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/UIViewExtensions.swift +++ /dev/null @@ -1,74 +0,0 @@ -// -// 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/. -// - -import UIKit - -public extension UIView -{ - public var height: CGFloat - { - get - { - return frame.size.height - } - set - { - frame.size.height = newValue - } - } - - public var size: CGSize - { - get - { - return frame.size - } - set - { - width = newValue.width - height = newValue.height - } - } - - public var width: CGFloat - { - get - { - return frame.size.width - } - set - { - frame.size.width = newValue - } - } - - public var x: CGFloat - { - get - { - return frame.origin.x - } - set - { - frame.origin.x = newValue - } - } - - - public var y: CGFloat - { - get - { - return frame.origin.y - } - set - { - frame.origin.y = newValue - } - } -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift b/ios/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift deleted file mode 100644 index e05fa553ff62..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift +++ /dev/null @@ -1,27 +0,0 @@ -// -// 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/. -// -import UIKit - - -class ViewPrintManager: UIViewController -{ - override func viewDidLoad() - { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - - - override func didReceiveMemoryWarning() - { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } - -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift b/ios/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift deleted file mode 100644 index 2e275f2bd3c7..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift +++ /dev/null @@ -1,30 +0,0 @@ -// -// 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/. -// -import UIKit - - -class ViewProperties: UIViewController -{ - - - override func viewDidLoad() - { - super.viewDidLoad() - // Do any additional setup after loading the view. - } - - - - override func didReceiveMemoryWarning() - { - super.didReceiveMemoryWarning() - // Dispose of any resources that can be recreated. - } - - -} diff --git a/ios/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib b/ios/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib deleted file mode 100644 index fa0ccf2ff001..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib +++ /dev/null @@ -1,109 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard b/ios/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard deleted file mode 100644 index ffd5059d06a9..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard +++ /dev/null @@ -1,501 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/ios/LibreOfficeLight/LibreOfficeLight/lokit-Bridging-Header.h b/ios/LibreOfficeLight/LibreOfficeLight/lokit-Bridging-Header.h deleted file mode 100644 index 5a4e07ffdc5e..000000000000 --- a/ios/LibreOfficeLight/LibreOfficeLight/lokit-Bridging-Header.h +++ /dev/null @@ -1,14 +0,0 @@ -// -// 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/. -// - -// LibreOfficeKit is a prelink of all used LO libraries, generated -// as its own xCode project. -#define LOK_USE_UNSTABLE_API -#import "../../source/LibreOfficeKit.h" - -void temporaryHackToInvokeCallbackHandlers(LibreOfficeKitDocument* pThis); diff --git a/ios/Module_ios.mk b/ios/Module_ios.mk index 259c34ba3416..4f88bc4e92b4 100644 --- a/ios/Module_ios.mk +++ b/ios/Module_ios.mk @@ -14,12 +14,6 @@ $(eval $(call gb_Module_add_targets,ios,\ CustomTarget_iOS_setup \ )) -ifneq ($(ENABLE_IOS_LIBREOFFICELIGHT_APP),) -$(eval $(call gb_Module_add_targets,ios,\ - CustomTarget_iOS_link \ -)) - -endif endif # vim: set noet sw=4 ts=4: diff --git a/ios/README b/ios/README deleted file mode 100644 index 7f01d5d600d8..000000000000 --- a/ios/README +++ /dev/null @@ -1,49 +0,0 @@ -Somewhat obsolete README for the LibreOfficeLight iOS app and LibreOfficeKit. - --- LibreOfficeLight -a swift based UI, very much work in progress - --- support -the arm64 and simulator are the only supported processors, -old 32 bit iPhones are not supported. - -The swift app are done for 3 structures - simulator + full debug libraries - arm64 + full debug libraries - arm64 + optimized libraries - --- SETUP -Due to the 3 modes, at least 3 workdirs are needed together with a -separated UI workdir. - -Because the main work is done on the UI, where it is convenient to -switch fast between arm64 and simulator, it is advantageous to compile -the 3 configurations of LO first, and then link against those. - -Due to the multiple workdirs a separate work directories are needed as follows: -(names/locations can be changes, they are "linked" together by running autogen.sh) - ./core - libreoffice git clone (name can be changed) - ./ios-arm64 - workdir for production - ./ios-arm64-debug - workdir for debug on device - ./ios-simulator - workdir for simulator-debug - --- Steps to generate -1) copy ./core/distro-configs/LibreOfficeiOS.conf to autogen.input in - ./ios-arm64, ./ios-arm64-debug, ./ios-simulator - Correct as defined in the conf file, - add your local setup (e.g. location of tarballs) -2) run ../core/autogen.sh in ios-arm64, ios-arm64-debug and ios-simulator -3) run make in ios-arm64, ios-arm64-debug and ios-simulator - this will generate core/loApp.xcconfig which prepares LO to be compiled - and build LOkit is 3 configurations and store the preparedLibreOfficeKit - in ./core/ios/generated as: - release/libKit.a - release/libKit.dylib - debug/libKit.a - debug/libKit.dylib - simulator/libKit.a - simulator/libKit.dylib -5) open xcode with LibreOfficeLight select scheme and build/test/run. -6) enjoy - - diff --git a/ios/source/LibreOfficeKit.c b/ios/source/LibreOfficeKit.c deleted file mode 100644 index a4a78e8112f8..000000000000 --- a/ios/source/LibreOfficeKit.c +++ /dev/null @@ -1,119 +0,0 @@ -// -// 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/. -// -#include -#include -#define LOK_USE_UNSTABLE_API 1 -#include "LibreOfficeKit.h" - -#include - -#include - -// generated by solenv/bin/native-code.py: -#include <../workdir/CustomTarget/ios/native-code.h> - - -// pointers to our instance -static LibreOfficeKit* kit; -static LibreOfficeKitDocument* document; - - -// Tile variables -static int tileSizeX, tileSizeY, tileMaxY, documentParts; -static double twipsPerXtile, twipsPerYtile; - - - -// Bridge functions to LibreOfficeKit -__attribute__((visibility("default"))) -int BridgeLOkit_Init(const char *appPath, const char *userPath) -{ - - // Initialize LibreOfficeKit - if (!kit) { - kit = lok_init_2(appPath, userPath); - if (!kit) - return 1; - } - return 0; -} - - - -__attribute__((visibility("default"))) -int BridgeLOkit_Sizing(const int countXtiles, const int countYtiles, - const int pixelsXtile, const int pixelsYtile) -{ - long docWidth, docHeight; - - (void)countXtiles; - (void)countYtiles; - - // Remember for later - tileSizeX = pixelsXtile; - tileSizeY = pixelsYtile; - - // Calculate twips to pixels in X,Y direction - document->pClass->getDocumentSize(document, &docWidth, &docHeight); - twipsPerXtile = docWidth / countXtiles; - double ratio = (double)docHeight / (double)docWidth + 0.05; - int x0 = (int)((ratio - (int)ratio) * 10.0); - int x1 = x0 * countXtiles / 10; - int x2 = (int)ratio; - tileMaxY = x1 + x2; - twipsPerYtile = docHeight / tileMaxY; - documentParts = document->pClass->getParts(document); - return 0; -} - - - -__attribute__((visibility("default"))) -int BridgeLOkit_open(const char *path) -{ - document = kit->pClass->documentLoad(kit, path); - document->pClass->initializeForRendering(document, ""); - return 0; -} - - - -__attribute__((visibility("default"))) -int BridgeLOkit_ClientCommand(const char *input) -{ - (void)input; - return 0; -} - - - -__attribute__((visibility("default"))) -int BridgeLOkit_Hipernate() -{ - //FIXME - // check if document needs to be saved, to avoid data loss - // terminate all threads (basically terminate LOkit) - return 0; -} - - - -__attribute__((visibility("default"))) -int BridgeLOkit_LeaveHipernate() -{ - //FIXME - // restart LOkit - // reload document (it may have been changed by other programs, especially if iCloud - return 0; -} - -__attribute__((visibility("default"))) -LibreOfficeKit* BridgeLOkit_getLOK() -{ - return kit; -} diff --git a/ios/source/LibreOfficeKit.h b/ios/source/LibreOfficeKit.h deleted file mode 100644 index abc4fe87a4ce..000000000000 --- a/ios/source/LibreOfficeKit.h +++ /dev/null @@ -1,34 +0,0 @@ -// -// 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/. -// - -// Bridge functions between LibreOfficeKit library and swift application. -// Only functions mentioned here can be used from the application -// The swift compiler uses this header to generate a needed interface -// The functions (LibreOfficeKit.mm) calls functions directly in LibreOffice - -int BridgeLOkit_Init(const char *appPath, const char *userPath); -int BridgeLOkit_Sizing(const int countXtiles, const int countYtiles, - const int pixelsXtile, const int pixelsYtile); -int BridgeLOkit_open(const char *path); -int BridgeLOkit_ClientCommand(const char *input); -int BridgeLOkit_Hipernate(void); -int BridgeLOkit_LeaveHipernate(void); - - -// Use LOK_USE_UNSTABLE_API to get access to the low level -// LibreOfficeKit. -// REMARK: There are no guarantee these functions will work !! -// REMARK: BridgeLOkit_Init MUST be called, NOT the original init() - -#ifdef LOK_USE_UNSTABLE_API -#include -#include - -LibreOfficeKit* BridgeLOkit_getLOK(void); -#endif - -- cgit