From 03feb950308bcbb26a7b1c52fa0ce820be9e6472 Mon Sep 17 00:00:00 2001 From: jan Iversen Date: Sun, 19 Feb 2017 08:09:08 +0100 Subject: ios LibreOfficeLight start project with sidemenu and navigation the aim of the project is to provide an IOS prototype based on work from the online repo and added up with native swift work. The project aims at having a simple editor, where the user can correct typos etc. in complex documents. Sharing will be done using the iCloud drive. The project is a proof of concept, to replace the current android/ios viewers. The document will be presented using the webkit (available in both IOS and Android) and reusing the Javascripts from online. Thereby having one set of files to handle user interface for online, android and ios. The sidebar is intented to be used similar to MUFFIN (notebook bar), while the action is for save/print etc. Change-Id: I307a70b87e6367de2d22c1360a3e9cfa53d373a9 Reviewed-on: https://gerrit.libreoffice.org/35376 Tested-by: Jenkins Reviewed-by: jan iversen Tested-by: jan iversen --- .../LibreOfficeLight.xcodeproj/project.pbxproj | 581 +++++++++++++++++++++ .../LibreOfficeLight/AppDelegate.swift | 79 +++ .../AppIcon.appiconset/Contents.json | 110 ++++ .../AppIcon.appiconset/LibreOffice-120.png | Bin 0 -> 6927 bytes .../AppIcon.appiconset/LibreOffice-152.png | Bin 0 -> 8967 bytes .../AppIcon.appiconset/LibreOffice-167.png | Bin 0 -> 10178 bytes .../AppIcon.appiconset/LibreOffice-180.png | Bin 0 -> 11729 bytes .../AppIcon.appiconset/LibreOffice-20.png | Bin 0 -> 1118 bytes .../AppIcon.appiconset/LibreOffice-29.png | Bin 0 -> 1563 bytes .../AppIcon.appiconset/LibreOffice-40.png | Bin 0 -> 2067 bytes .../AppIcon.appiconset/LibreOffice-58.png | Bin 0 -> 3092 bytes .../AppIcon.appiconset/LibreOffice-60.png | Bin 0 -> 3257 bytes .../AppIcon.appiconset/LibreOffice-76.png | Bin 0 -> 4097 bytes .../AppIcon.appiconset/LibreOffice-80.png | Bin 0 -> 4383 bytes .../AppIcon.appiconset/LibreOffice-87.png | Bin 0 -> 4489 bytes .../document.imageset/Contents.json | 23 + .../Assets.xcassets/document.imageset/Document.png | Bin 0 -> 2067 bytes .../Assets.xcassets/intro.imageset/Contents.json | 23 + .../Assets.xcassets/intro.imageset/intro.png | Bin 0 -> 16241 bytes .../Assets.xcassets/menu.imageset/Contents.json | 23 + .../Assets.xcassets/menu.imageset/menu.png | Bin 0 -> 586 bytes .../Assets.xcassets/menu.imageset/menu@2x.png | Bin 0 -> 648 bytes .../Assets.xcassets/menu.imageset/menu@3x.png | Bin 0 -> 722 bytes .../Assets.xcassets/pdf.imageset/Contents.json | 23 + .../Assets.xcassets/pdf.imageset/pdf.png | Bin 0 -> 2903 bytes .../Assets.xcassets/print.imageset/Contents.json | 23 + .../Assets.xcassets/print.imageset/print.png | Bin 0 -> 2644 bytes .../properties.imageset/Contents.json | 23 + .../properties.imageset/properties.png | Bin 0 -> 2883 bytes .../Assets.xcassets/save.imageset/Contents.json | 23 + .../Assets.xcassets/save.imageset/save.png | Bin 0 -> 3197 bytes .../Assets.xcassets/saveas.imageset/Contents.json | 23 + .../Assets.xcassets/saveas.imageset/saveas.png | Bin 0 -> 3520 bytes .../LibreOfficeLight/LibreOfficeLight/Info.plist | 40 ++ .../LibreOfficeLight/LibreOfficeLight/LO.swift | 34 ++ .../.xccurrentversion | 8 + .../LibreOfficeLight.xcdatamodel/contents | 4 + .../LibreOfficeLight/SideMenu.swift | 99 ++++ .../LibreOfficeLight/ViewController.swift | 82 +++ .../LibreOfficeLight/ViewDocument.swift | 13 + .../LibreOfficeLight/ViewFileManager.swift | 13 + .../LibreOfficeLight/ViewPrintManager.swift | 13 + .../LibreOfficeLight/ViewProperties.swift | 13 + .../LibreOfficeLight/en.lproj/LaunchScreen.xib | 93 ++++ .../LibreOfficeLight/en.lproj/Main.storyboard | 334 ++++++++++++ .../LibreOfficeLightTests/Info.plist | 22 + .../LibreOfficeLightTests.swift | 36 ++ .../LibreOfficeLightUITests/Info.plist | 22 + .../LibreOfficeLightUITests.swift | 36 ++ 49 files changed, 1816 insertions(+) create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Document.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/pdf.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/print.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/properties.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/save.png create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/Contents.json create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/saveas.png create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/Info.plist create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/LO.swift create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/SideMenu.swift create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewController.swift create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewDocument.swift create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewFileManager.swift create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib create mode 100755 ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLightTests/Info.plist create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLightTests/LibreOfficeLightTests.swift create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/Info.plist create mode 100644 ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/LibreOfficeLightUITests.swift (limited to 'ios/experimental') diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj b/ios/experimental/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj new file mode 100644 index 000000000000..837aa290bfee --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight.xcodeproj/project.pbxproj @@ -0,0 +1,581 @@ +// !$*UTF8*$! +{ + archiveVersion = 1; + classes = { + }; + objectVersion = 46; + objects = { + +/* Begin PBXBuildFile section */ + 392ED9B31E5E4B03005C8435 /* ViewPrintManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 392ED9B21E5E4B03005C8435 /* ViewPrintManager.swift */; }; + 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 */; }; + 397E09061E597BD8001374E0 /* LibreOfficeLight.xcdatamodeld in Sources */ = {isa = PBXBuildFile; fileRef = 397E09041E597BD8001374E0 /* LibreOfficeLight.xcdatamodeld */; }; + 397E09081E597BD8001374E0 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 397E09071E597BD8001374E0 /* Assets.xcassets */; }; + 397E09161E597BD8001374E0 /* LibreOfficeLightTests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 397E09151E597BD8001374E0 /* LibreOfficeLightTests.swift */; }; + 397E09211E597BD8001374E0 /* LibreOfficeLightUITests.swift in Sources */ = {isa = PBXBuildFile; fileRef = 397E09201E597BD8001374E0 /* LibreOfficeLightUITests.swift */; }; + 3992D8581E5B761700BEA987 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3992D8571E5B761700BEA987 /* ViewController.swift */; }; + 3992D85A1E5B762A00BEA987 /* ViewDocument.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3992D8591E5B762A00BEA987 /* ViewDocument.swift */; }; + 3992D85D1E5B764A00BEA987 /* SideMenu.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3992D85B1E5B764A00BEA987 /* SideMenu.swift */; }; + 3992D85E1E5B764A00BEA987 /* ViewFileManager.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3992D85C1E5B764A00BEA987 /* ViewFileManager.swift */; }; + 399648471E5B87DC00E73E83 /* ViewProperties.swift in Sources */ = {isa = PBXBuildFile; fileRef = 399648461E5B87DC00E73E83 /* ViewProperties.swift */; }; + 399648491E5C4E5500E73E83 /* LO.swift in Sources */ = {isa = PBXBuildFile; fileRef = 399648481E5C4E5500E73E83 /* LO.swift */; }; +/* End PBXBuildFile section */ + +/* Begin PBXContainerItemProxy section */ + 397E09121E597BD8001374E0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 397E08F21E597BD8001374E0 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 397E08F91E597BD8001374E0; + remoteInfo = LibreOfficeLight; + }; + 397E091D1E597BD8001374E0 /* PBXContainerItemProxy */ = { + isa = PBXContainerItemProxy; + containerPortal = 397E08F21E597BD8001374E0 /* Project object */; + proxyType = 1; + remoteGlobalIDString = 397E08F91E597BD8001374E0; + remoteInfo = LibreOfficeLight; + }; +/* End PBXContainerItemProxy section */ + +/* Begin PBXFileReference section */ + 392ED9B21E5E4B03005C8435 /* ViewPrintManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewPrintManager.swift; 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 = ""; }; + 397E09051E597BD8001374E0 /* LibreOfficeLight.xcdatamodel */ = {isa = PBXFileReference; lastKnownFileType = wrapper.xcdatamodel; path = LibreOfficeLight.xcdatamodel; sourceTree = ""; }; + 397E09071E597BD8001374E0 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; name = Assets.xcassets; path = LibreOfficeLight/Assets.xcassets; sourceTree = SOURCE_ROOT; }; + 397E090C1E597BD8001374E0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = LibreOfficeLight/Info.plist; sourceTree = SOURCE_ROOT; }; + 397E09111E597BD8001374E0 /* LibreOfficeLightTests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LibreOfficeLightTests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 397E09151E597BD8001374E0 /* LibreOfficeLightTests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = LibreOfficeLightTests.swift; path = LibreOfficeLightTests/LibreOfficeLightTests.swift; sourceTree = SOURCE_ROOT; }; + 397E09171E597BD8001374E0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = LibreOfficeLightTests/Info.plist; sourceTree = SOURCE_ROOT; }; + 397E091C1E597BD8001374E0 /* LibreOfficeLightUITests.xctest */ = {isa = PBXFileReference; explicitFileType = wrapper.cfbundle; includeInIndex = 0; path = LibreOfficeLightUITests.xctest; sourceTree = BUILT_PRODUCTS_DIR; }; + 397E09201E597BD8001374E0 /* LibreOfficeLightUITests.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; name = LibreOfficeLightUITests.swift; path = LibreOfficeLightUITests/LibreOfficeLightUITests.swift; sourceTree = SOURCE_ROOT; }; + 397E09221E597BD8001374E0 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; name = Info.plist; path = LibreOfficeLightUITests/Info.plist; sourceTree = SOURCE_ROOT; }; + 3992D8571E5B761700BEA987 /* ViewController.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = ""; }; + 3992D8591E5B762A00BEA987 /* ViewDocument.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewDocument.swift; sourceTree = ""; }; + 3992D85B1E5B764A00BEA987 /* SideMenu.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = SideMenu.swift; sourceTree = ""; }; + 3992D85C1E5B764A00BEA987 /* ViewFileManager.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewFileManager.swift; sourceTree = ""; }; + 399648461E5B87DC00E73E83 /* ViewProperties.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = ViewProperties.swift; sourceTree = ""; }; + 399648481E5C4E5500E73E83 /* LO.swift */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.swift; path = LO.swift; sourceTree = ""; }; +/* End PBXFileReference section */ + +/* Begin PBXFrameworksBuildPhase section */ + 397E08F71E597BD8001374E0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 397E090E1E597BD8001374E0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 397E09191E597BD8001374E0 /* Frameworks */ = { + isa = PBXFrameworksBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXFrameworksBuildPhase section */ + +/* Begin PBXGroup section */ + 3911D89F1E5993600050D6BC /* Support files */ = { + isa = PBXGroup; + children = ( + 397E09071E597BD8001374E0 /* Assets.xcassets */, + 397E09041E597BD8001374E0 /* LibreOfficeLight.xcdatamodeld */, + 397E090C1E597BD8001374E0 /* Info.plist */, + ); + name = "Support files"; + path = LibreOfficeLight; + sourceTree = SOURCE_ROOT; + }; + 397E08F11E597BD8001374E0 = { + isa = PBXGroup; + children = ( + 397E08FC1E597BD8001374E0 /* LibreOfficeLight */, + 397E09141E597BD8001374E0 /* LibreOfficeLightTests */, + 397E091F1E597BD8001374E0 /* LibreOfficeLightUITests */, + 397E08FB1E597BD8001374E0 /* Products */, + ); + sourceTree = ""; + }; + 397E08FB1E597BD8001374E0 /* Products */ = { + isa = PBXGroup; + children = ( + 397E08FA1E597BD8001374E0 /* LibreOfficeLight.app */, + 397E09111E597BD8001374E0 /* LibreOfficeLightTests.xctest */, + 397E091C1E597BD8001374E0 /* LibreOfficeLightUITests.xctest */, + ); + name = Products; + sourceTree = ""; + }; + 397E08FC1E597BD8001374E0 /* LibreOfficeLight */ = { + isa = PBXGroup; + children = ( + 397E08FD1E597BD8001374E0 /* AppDelegate.swift */, + 3992D8571E5B761700BEA987 /* ViewController.swift */, + 3992D85B1E5B764A00BEA987 /* SideMenu.swift */, + 3992D8591E5B762A00BEA987 /* ViewDocument.swift */, + 3992D85C1E5B764A00BEA987 /* ViewFileManager.swift */, + 392ED9B21E5E4B03005C8435 /* ViewPrintManager.swift */, + 399648461E5B87DC00E73E83 /* ViewProperties.swift */, + 399648481E5C4E5500E73E83 /* LO.swift */, + 397E09011E597BD8001374E0 /* Main.storyboard */, + 397868D81E59A3EA007F9248 /* LaunchScreen.xib */, + 3911D89F1E5993600050D6BC /* Support files */, + ); + path = LibreOfficeLight; + sourceTree = SOURCE_ROOT; + }; + 397E09141E597BD8001374E0 /* LibreOfficeLightTests */ = { + isa = PBXGroup; + children = ( + 397E09151E597BD8001374E0 /* LibreOfficeLightTests.swift */, + 397E09171E597BD8001374E0 /* Info.plist */, + ); + path = LibreOfficeLightTests; + sourceTree = SOURCE_ROOT; + }; + 397E091F1E597BD8001374E0 /* LibreOfficeLightUITests */ = { + isa = PBXGroup; + children = ( + 397E09201E597BD8001374E0 /* LibreOfficeLightUITests.swift */, + 397E09221E597BD8001374E0 /* Info.plist */, + ); + path = LibreOfficeLightUITests; + sourceTree = SOURCE_ROOT; + }; +/* End PBXGroup section */ + +/* Begin PBXNativeTarget section */ + 397E08F91E597BD8001374E0 /* LibreOfficeLight */ = { + isa = PBXNativeTarget; + buildConfigurationList = 397E09251E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLight" */; + buildPhases = ( + 397E08F61E597BD8001374E0 /* Sources */, + 397E08F71E597BD8001374E0 /* Frameworks */, + 397E08F81E597BD8001374E0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + ); + name = LibreOfficeLight; + productName = LibreOfficeLight; + productReference = 397E08FA1E597BD8001374E0 /* LibreOfficeLight.app */; + productType = "com.apple.product-type.application"; + }; + 397E09101E597BD8001374E0 /* LibreOfficeLightTests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 397E09281E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLightTests" */; + buildPhases = ( + 397E090D1E597BD8001374E0 /* Sources */, + 397E090E1E597BD8001374E0 /* Frameworks */, + 397E090F1E597BD8001374E0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 397E09131E597BD8001374E0 /* PBXTargetDependency */, + ); + name = LibreOfficeLightTests; + productName = LibreOfficeLightTests; + productReference = 397E09111E597BD8001374E0 /* LibreOfficeLightTests.xctest */; + productType = "com.apple.product-type.bundle.unit-test"; + }; + 397E091B1E597BD8001374E0 /* LibreOfficeLightUITests */ = { + isa = PBXNativeTarget; + buildConfigurationList = 397E092B1E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLightUITests" */; + buildPhases = ( + 397E09181E597BD8001374E0 /* Sources */, + 397E09191E597BD8001374E0 /* Frameworks */, + 397E091A1E597BD8001374E0 /* Resources */, + ); + buildRules = ( + ); + dependencies = ( + 397E091E1E597BD8001374E0 /* PBXTargetDependency */, + ); + name = LibreOfficeLightUITests; + productName = LibreOfficeLightUITests; + productReference = 397E091C1E597BD8001374E0 /* LibreOfficeLightUITests.xctest */; + productType = "com.apple.product-type.bundle.ui-testing"; + }; +/* End PBXNativeTarget section */ + +/* Begin PBXProject section */ + 397E08F21E597BD8001374E0 /* Project object */ = { + isa = PBXProject; + attributes = { + LastSwiftUpdateCheck = 0820; + LastUpgradeCheck = 0820; + ORGANIZATIONNAME = jani; + TargetAttributes = { + 397E08F91E597BD8001374E0 = { + CreatedOnToolsVersion = 8.2; + ProvisioningStyle = Automatic; + }; + 397E09101E597BD8001374E0 = { + CreatedOnToolsVersion = 8.2; + ProvisioningStyle = Automatic; + TestTargetID = 397E08F91E597BD8001374E0; + }; + 397E091B1E597BD8001374E0 = { + CreatedOnToolsVersion = 8.2; + ProvisioningStyle = Automatic; + TestTargetID = 397E08F91E597BD8001374E0; + }; + }; + }; + buildConfigurationList = 397E08F51E597BD8001374E0 /* Build configuration list for PBXProject "LibreOfficeLight" */; + compatibilityVersion = "Xcode 3.2"; + developmentRegion = English; + hasScannedForEncodings = 0; + knownRegions = ( + en, + ); + mainGroup = 397E08F11E597BD8001374E0; + productRefGroup = 397E08FB1E597BD8001374E0 /* Products */; + projectDirPath = ""; + projectRoot = ""; + targets = ( + 397E08F91E597BD8001374E0 /* LibreOfficeLight */, + 397E09101E597BD8001374E0 /* LibreOfficeLightTests */, + 397E091B1E597BD8001374E0 /* LibreOfficeLightUITests */, + ); + }; +/* End PBXProject section */ + +/* Begin PBXResourcesBuildPhase section */ + 397E08F81E597BD8001374E0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 397E09081E597BD8001374E0 /* Assets.xcassets in Resources */, + 397868D61E59A3EA007F9248 /* LaunchScreen.xib in Resources */, + 397E09031E597BD8001374E0 /* Main.storyboard in Resources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 397E090F1E597BD8001374E0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 397E091A1E597BD8001374E0 /* Resources */ = { + isa = PBXResourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXResourcesBuildPhase section */ + +/* Begin PBXSourcesBuildPhase section */ + 397E08F61E597BD8001374E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 392ED9B31E5E4B03005C8435 /* ViewPrintManager.swift in Sources */, + 397E09061E597BD8001374E0 /* LibreOfficeLight.xcdatamodeld in Sources */, + 3992D85D1E5B764A00BEA987 /* SideMenu.swift in Sources */, + 399648471E5B87DC00E73E83 /* ViewProperties.swift in Sources */, + 3992D85E1E5B764A00BEA987 /* ViewFileManager.swift in Sources */, + 3992D85A1E5B762A00BEA987 /* ViewDocument.swift in Sources */, + 397E08FE1E597BD8001374E0 /* AppDelegate.swift in Sources */, + 399648491E5C4E5500E73E83 /* LO.swift in Sources */, + 3992D8581E5B761700BEA987 /* ViewController.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 397E090D1E597BD8001374E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 397E09161E597BD8001374E0 /* LibreOfficeLightTests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; + 397E09181E597BD8001374E0 /* Sources */ = { + isa = PBXSourcesBuildPhase; + buildActionMask = 2147483647; + files = ( + 397E09211E597BD8001374E0 /* LibreOfficeLightUITests.swift in Sources */, + ); + runOnlyForDeploymentPostprocessing = 0; + }; +/* End PBXSourcesBuildPhase section */ + +/* Begin PBXTargetDependency section */ + 397E09131E597BD8001374E0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 397E08F91E597BD8001374E0 /* LibreOfficeLight */; + targetProxy = 397E09121E597BD8001374E0 /* PBXContainerItemProxy */; + }; + 397E091E1E597BD8001374E0 /* PBXTargetDependency */ = { + isa = PBXTargetDependency; + target = 397E08F91E597BD8001374E0 /* LibreOfficeLight */; + targetProxy = 397E091D1E597BD8001374E0 /* PBXContainerItemProxy */; + }; +/* End PBXTargetDependency section */ + +/* Begin PBXVariantGroup section */ + 397868D81E59A3EA007F9248 /* LaunchScreen.xib */ = { + isa = PBXVariantGroup; + children = ( + 397868D71E59A3EA007F9248 /* en */, + ); + name = LaunchScreen.xib; + sourceTree = ""; + }; + 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; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + 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_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; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = YES; + ONLY_ACTIVE_ARCH = YES; + SDKROOT = iphoneos; + SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG; + SWIFT_OPTIMIZATION_LEVEL = "-Onone"; + TARGETED_DEVICE_FAMILY = "1,2"; + }; + name = Debug; + }; + 397E09241E597BD8001374E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_SEARCH_USER_PATHS = NO; + CLANG_ANALYZER_NONNULL = YES; + CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x"; + CLANG_CXX_LIBRARY = "libc++"; + CLANG_ENABLE_MODULES = YES; + CLANG_ENABLE_OBJC_ARC = YES; + CLANG_WARN_BOOL_CONVERSION = YES; + CLANG_WARN_CONSTANT_CONVERSION = YES; + CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR; + CLANG_WARN_DOCUMENTATION_COMMENTS = YES; + CLANG_WARN_EMPTY_BODY = YES; + CLANG_WARN_ENUM_CONVERSION = YES; + CLANG_WARN_INFINITE_RECURSION = YES; + CLANG_WARN_INT_CONVERSION = YES; + CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR; + 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-with-dsym"; + 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; + IPHONEOS_DEPLOYMENT_TARGET = 10.2; + MTL_ENABLE_DEBUG_INFO = NO; + SDKROOT = iphoneos; + SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule"; + TARGETED_DEVICE_FAMILY = "1,2"; + VALIDATE_PRODUCT = YES; + }; + name = Release; + }; + 397E09261E597BD8001374E0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = LibreOfficeLight/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = jani.libreofficeLight.LibreOfficeLight; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Debug; + }; + 397E09271E597BD8001374E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon; + INFOPLIST_FILE = LibreOfficeLight/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = jani.libreofficeLight.LibreOfficeLight; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + }; + name = Release; + }; + 397E09291E597BD8001374E0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = LibreOfficeLightTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = jani.libreofficeLight.LibreOfficeLightTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LibreOfficeLight.app/LibreOfficeLight"; + }; + name = Debug; + }; + 397E092A1E597BD8001374E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + BUNDLE_LOADER = "$(TEST_HOST)"; + INFOPLIST_FILE = LibreOfficeLightTests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = jani.libreofficeLight.LibreOfficeLightTests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_HOST = "$(BUILT_PRODUCTS_DIR)/LibreOfficeLight.app/LibreOfficeLight"; + }; + name = Release; + }; + 397E092C1E597BD8001374E0 /* Debug */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + INFOPLIST_FILE = LibreOfficeLightUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = jani.libreofficeLight.LibreOfficeLightUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = LibreOfficeLight; + }; + name = Debug; + }; + 397E092D1E597BD8001374E0 /* Release */ = { + isa = XCBuildConfiguration; + buildSettings = { + ALWAYS_EMBED_SWIFT_STANDARD_LIBRARIES = YES; + INFOPLIST_FILE = LibreOfficeLightUITests/Info.plist; + LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks @loader_path/Frameworks"; + PRODUCT_BUNDLE_IDENTIFIER = jani.libreofficeLight.LibreOfficeLightUITests; + PRODUCT_NAME = "$(TARGET_NAME)"; + SWIFT_VERSION = 3.0; + TEST_TARGET_NAME = LibreOfficeLight; + }; + 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 = Release; + }; + 397E09251E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLight" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 397E09261E597BD8001374E0 /* Debug */, + 397E09271E597BD8001374E0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 397E09281E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLightTests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 397E09291E597BD8001374E0 /* Debug */, + 397E092A1E597BD8001374E0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; + 397E092B1E597BD8001374E0 /* Build configuration list for PBXNativeTarget "LibreOfficeLightUITests" */ = { + isa = XCConfigurationList; + buildConfigurations = ( + 397E092C1E597BD8001374E0 /* Debug */, + 397E092D1E597BD8001374E0 /* Release */, + ); + defaultConfigurationIsVisible = 0; + defaultConfigurationName = Release; + }; +/* End XCConfigurationList section */ + +/* Begin XCVersionGroup section */ + 397E09041E597BD8001374E0 /* LibreOfficeLight.xcdatamodeld */ = { + isa = XCVersionGroup; + children = ( + 397E09051E597BD8001374E0 /* LibreOfficeLight.xcdatamodel */, + ); + currentVersion = 397E09051E597BD8001374E0 /* LibreOfficeLight.xcdatamodel */; + path = LibreOfficeLight.xcdatamodeld; + sourceTree = ""; + versionGroupType = wrapper.xcdatamodel; + }; +/* End XCVersionGroup section */ + }; + rootObject = 397E08F21E597BD8001374E0 /* Project object */; +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift new file mode 100644 index 000000000000..3c09d88bd671 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/AppDelegate.swift @@ -0,0 +1,79 @@ +// +// 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 + + + +@UIApplicationMain +class AppDelegate: UIResponder, UIApplicationDelegate +{ + var window: UIWindow? + + + + // MARK: - AppDelegate functions + + + + func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool + { + LOinterface.Initialize() + + // Override point for customization after application launch. + return true + } + + + + func applicationWillResignActive(_ application: UIApplication) + { + // 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 to the background state. + // Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. + // Games should use this method to pause the game. + } + + + + func applicationDidEnterBackground(_ application: UIApplication) + { + // 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 + // in case it is terminated later. + // If your application supports background execution, + // this method is called instead of applicationWillTerminate: when the user quits. + } + + + + func applicationWillEnterForeground(_ application: UIApplication) + { + // Called as part of the transition from the background to the active state; + // here you can undo many of the changes made on entering the background. + } + + + + func applicationDidBecomeActive(_ application: UIApplication) + { + // Restart any tasks that were paused (or not yet started) while the application was inactive. + // If the application was previously in the background, optionally refresh the user interface. + } + + + + func applicationWillTerminate(_ application: UIApplication) + { + // Called 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. + } +} + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json new file mode 100644 index 000000000000..c5f125791449 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/Contents.json @@ -0,0 +1,110 @@ +{ + "images" : [ + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "2x", + "filename" : "LibreOffice-40.png" + }, + { + "idiom" : "iphone", + "size" : "20x20", + "scale" : "3x", + "filename" : "LibreOffice-60.png" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "2x", + "filename" : "LibreOffice-58.png" + }, + { + "idiom" : "iphone", + "size" : "29x29", + "scale" : "3x", + "filename" : "LibreOffice-87.png" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "2x", + "filename" : "LibreOffice-80.png" + }, + { + "idiom" : "iphone", + "size" : "40x40", + "scale" : "3x", + "filename" : "LibreOffice-120.png" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "2x", + "filename" : "LibreOffice-120.png" + }, + { + "idiom" : "iphone", + "size" : "60x60", + "scale" : "3x", + "filename" : "LibreOffice-180.png" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "1x", + "filename" : "LibreOffice-20.png" + }, + { + "idiom" : "ipad", + "size" : "20x20", + "scale" : "2x", + "filename" : "LibreOffice-40.png" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "1x", + "filename" : "LibreOffice-29.png" + }, + { + "idiom" : "ipad", + "size" : "29x29", + "scale" : "2x", + "filename" : "LibreOffice-58.png" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "1x", + "filename" : "LibreOffice-40.png" + }, + { + "idiom" : "ipad", + "size" : "40x40", + "scale" : "2x", + "filename" : "LibreOffice-80.png" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "1x", + "filename" : "LibreOffice-76.png" + }, + { + "idiom" : "ipad", + "size" : "76x76", + "scale" : "2x", + "filename" : "LibreOffice-152.png" + }, + { + "idiom" : "ipad", + "size" : "83.5x83.5", + "scale" : "2x", + "filename" : "LibreOffice-167.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png new file mode 100644 index 000000000000..b6371ab981a9 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-120.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png new file mode 100644 index 000000000000..e0e1cf3123a9 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-152.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png new file mode 100644 index 000000000000..b3ac8e54e4b2 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-167.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png new file mode 100644 index 000000000000..05c3d0616ad2 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-180.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png new file mode 100644 index 000000000000..adb2ea30b016 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-20.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png new file mode 100644 index 000000000000..69a807475505 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-29.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png new file mode 100644 index 000000000000..a0bf9afbb596 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-40.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png new file mode 100644 index 000000000000..b73a8b8011e8 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-58.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png new file mode 100644 index 000000000000..3e9199974bd7 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-60.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png new file mode 100644 index 000000000000..729d0cbb4f50 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-76.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png new file mode 100644 index 000000000000..25c8f68837fe Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-80.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png new file mode 100644 index 000000000000..0c830e3092cb Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/AppIcon.appiconset/LibreOffice-87.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Contents.json new file mode 100644 index 000000000000..9eceac21a50d --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "Document.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "Document.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "Document.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Document.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Document.png new file mode 100644 index 000000000000..a0bf9afbb596 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/document.imageset/Document.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json new file mode 100644 index 000000000000..1f910096d224 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "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/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png new file mode 100644 index 000000000000..8c1025f6d84c Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/intro.imageset/intro.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json new file mode 100644 index 000000000000..da2ac2bbdaa2 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "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/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png new file mode 100644 index 000000000000..fe97b0cfe224 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png new file mode 100644 index 000000000000..f5e9a1597c95 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@2x.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png new file mode 100644 index 000000000000..9f00717fe29e Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/menu.imageset/menu@3x.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/Contents.json new file mode 100644 index 000000000000..8742f628718d --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "pdf.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "pdf.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "pdf.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/pdf.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/pdf.png new file mode 100644 index 000000000000..08e1731d5bf5 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/pdf.imageset/pdf.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/Contents.json new file mode 100644 index 000000000000..3cb4a13f5aa6 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "print.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "print.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "print.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/print.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/print.png new file mode 100644 index 000000000000..b73c31b044ae Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/print.imageset/print.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/Contents.json new file mode 100644 index 000000000000..a17872b1b40e --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "properties.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "properties.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "properties.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/properties.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/properties.png new file mode 100644 index 000000000000..3186d45ccda6 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/properties.imageset/properties.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/Contents.json new file mode 100644 index 000000000000..82ec4f81c801 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "save.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "save.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "save.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/save.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/save.png new file mode 100644 index 000000000000..43d20e587b3c Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/save.imageset/save.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/Contents.json b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/Contents.json new file mode 100644 index 000000000000..9988ef324d41 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/Contents.json @@ -0,0 +1,23 @@ +{ + "images" : [ + { + "idiom" : "universal", + "scale" : "1x", + "filename" : "saveas.png" + }, + { + "idiom" : "universal", + "scale" : "2x", + "filename" : "saveas.png" + }, + { + "idiom" : "universal", + "scale" : "3x", + "filename" : "saveas.png" + } + ], + "info" : { + "version" : 1, + "author" : "xcode" + } +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/saveas.png b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/saveas.png new file mode 100644 index 000000000000..d1d6ea2e0f86 Binary files /dev/null and b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Assets.xcassets/saveas.imageset/saveas.png differ diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/Info.plist b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Info.plist new file mode 100755 index 000000000000..6905cc67bbf7 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/Info.plist @@ -0,0 +1,40 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + APPL + CFBundleShortVersionString + 1.0 + CFBundleSignature + ???? + CFBundleVersion + 1 + LSRequiresIPhoneOS + + UILaunchStoryboardName + LaunchScreen + UIMainStoryboardFile + Main + UIRequiredDeviceCapabilities + + armv7 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/LO.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/LO.swift new file mode 100755 index 000000000000..e6556adafe3a --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/LO.swift @@ -0,0 +1,34 @@ +// +// 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/. +// + + +// Global variable to reference LibreOffice functions +var LOinterface = LOkit.init() + + + +class LOkit +{ + init() + { + + } + + + + func Initialize() + { + + } + + func DeleteCurrentDocument() + { + + } +} + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion b/ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion new file mode 100644 index 000000000000..446e9ff7b5e7 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/.xccurrentversion @@ -0,0 +1,8 @@ + + + + + _XCCurrentVersionName + LibreOfficeLight.xcdatamodel + + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents b/ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents new file mode 100644 index 000000000000..476e5b6cfe4c --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/LibreOfficeLight.xcdatamodeld/LibreOfficeLight.xcdatamodel/contents @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/SideMenu.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/SideMenu.swift new file mode 100755 index 000000000000..ef5a1f70de21 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/SideMenu.swift @@ -0,0 +1,99 @@ +// +// 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 SidebarController: UIViewController +{ + @IBAction func menuOpen(_ sender: Any) + { + loadController("FileManager") + } + + + + @IBAction func menuNew(_ sender: Any) + { + loadController("Document") + } + + + + @IBAction func menuSave(_ sender: Any) + { + loadController("Document") + } + + + + @IBAction func menuSaveAs(_ sender: Any) + { + loadController("FileManager") + } + + + + @IBAction func menuPDF(_ sender: Any) + { + loadController("Document") + } + + + + @IBAction func menuProperties(_ sender: Any) + { + loadController("Properties") + } + + + + @IBAction func menuPrint(_ sender: Any) + { + loadController("PrintManager") + } + + + + 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/experimental/LibreOfficeLight/LibreOfficeLight/ViewController.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewController.swift new file mode 100755 index 000000000000..7ffbac0ec594 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewController.swift @@ -0,0 +1,82 @@ +// +// 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 ViewController: UIViewController { + + + // MARK: - ViewController menu actions + + + + @IBAction func doMenu(_ sender: UIBarButtonItem) + { + if (sender.tag == 10) + { + sender.tag = 0; + + let viewMenuBack : UIView = view.subviews.last! + + 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() + }) + + return + } + + sender.isEnabled = false + sender.tag = 10 + + let sidebar : SidebarController = self.storyboard!.instantiateViewController(withIdentifier: "SidebarController") as! SidebarController + self.view.addSubview(sidebar.view) + self.addChildViewController(sidebar) + sidebar.view.layoutIfNeeded() + + + sidebar.view.frame=CGRect(x: 0 - UIScreen.main.bounds.size.width, y: 0, width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.height); + + UIView.animate(withDuration: 0.3, animations: { () -> Void in + sidebar.view.frame=CGRect(x: 0, y: 0, width: UIScreen.main.bounds.size.width, height: UIScreen.main.bounds.size.height); + sender.isEnabled = true + }, completion:nil) + } + + + + @IBAction func doDelete(_ sender: UIBarButtonItem) + { + LOinterface.DeleteCurrentDocument() + } + + + + // MARK: - ViewController basic + + + + 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/experimental/LibreOfficeLight/LibreOfficeLight/ViewDocument.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewDocument.swift new file mode 100755 index 000000000000..fba043c24455 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewDocument.swift @@ -0,0 +1,13 @@ +// +// 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/. +// + + + +class ViewDocument: ViewController +{ +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewFileManager.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewFileManager.swift new file mode 100755 index 000000000000..7142d5ff5573 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewFileManager.swift @@ -0,0 +1,13 @@ +// +// 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/. +// + + + +class ViewFileManager: ViewController +{ +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift new file mode 100755 index 000000000000..5111d62e9ea2 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewPrintManager.swift @@ -0,0 +1,13 @@ +// +// 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/. +// + + + +class ViewPrintManager: ViewController +{ +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift new file mode 100755 index 000000000000..f1ec45af3e01 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/ViewProperties.swift @@ -0,0 +1,13 @@ +// +// 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/. +// + + + +class ViewProperties: ViewController +{ +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib b/ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib new file mode 100644 index 000000000000..55da64dac5a8 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/LaunchScreen.xib @@ -0,0 +1,93 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard b/ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard new file mode 100755 index 000000000000..ca8bcc1855e9 --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLight/en.lproj/Main.storyboard @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLightTests/Info.plist b/ios/experimental/LibreOfficeLight/LibreOfficeLightTests/Info.plist new file mode 100644 index 000000000000..6c6c23c43adc --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLightTests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLightTests/LibreOfficeLightTests.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLightTests/LibreOfficeLightTests.swift new file mode 100644 index 000000000000..bf6b081cda1e --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLightTests/LibreOfficeLightTests.swift @@ -0,0 +1,36 @@ +// +// LibreOfficeLightTests.swift +// LibreOfficeLightTests +// +// Created by Jan Iversen on 19/02/2017. +// Copyright © 2017 jani. All rights reserved. +// + +import XCTest +@testable import LibreOfficeLight + +class LibreOfficeLightTests: 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 testExample() { + // This is an example of a functional test case. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + + func testPerformanceExample() { + // This is an example of a performance test case. + self.measure { + // Put the code you want to measure the time of here. + } + } + +} diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/Info.plist b/ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/Info.plist new file mode 100644 index 000000000000..6c6c23c43adc --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/Info.plist @@ -0,0 +1,22 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleExecutable + $(EXECUTABLE_NAME) + CFBundleIdentifier + $(PRODUCT_BUNDLE_IDENTIFIER) + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + $(PRODUCT_NAME) + CFBundlePackageType + BNDL + CFBundleShortVersionString + 1.0 + CFBundleVersion + 1 + + diff --git a/ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/LibreOfficeLightUITests.swift b/ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/LibreOfficeLightUITests.swift new file mode 100644 index 000000000000..4e8279547aaa --- /dev/null +++ b/ios/experimental/LibreOfficeLight/LibreOfficeLightUITests/LibreOfficeLightUITests.swift @@ -0,0 +1,36 @@ +// +// LibreOfficeLightUITests.swift +// LibreOfficeLightUITests +// +// Created by Jan Iversen on 19/02/2017. +// Copyright © 2017 jani. All rights reserved. +// + +import XCTest + +class LibreOfficeLightUITests: XCTestCase { + + override func setUp() { + super.setUp() + + // Put setup code here. This method is called before the invocation of each test method in the class. + + // In UI tests it is usually best to stop immediately when a failure occurs. + continueAfterFailure = false + // UI tests must launch the application that they test. Doing this in setup will make sure it happens for each test method. + XCUIApplication().launch() + + // In UI tests it’s important to set the initial state - such as interface orientation - required for your tests before they run. The setUp method is a good place to do this. + } + + override func tearDown() { + // Put teardown code here. This method is called after the invocation of each test method in the class. + super.tearDown() + } + + func testExample() { + // Use recording to get started writing UI tests. + // Use XCTAssert and related functions to verify your tests produce the correct results. + } + +} -- cgit