diff options
Diffstat (limited to 'ios/shared/ios_sharedlo/objective_c/view_controllers/role')
9 files changed, 0 insertions, 319 deletions
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.h deleted file mode 100644 index 65371709dfca..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.h +++ /dev/null @@ -1,16 +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 "MLOViewController.h" -#import "MLOAppRoleProtocol.h" -@class MLOMainViewController,MLOAppRoleBase; -@interface MLOAppRoleBase : MLOViewController<MLOAppRoleProtocol> - -@property MLOMainViewController * mainViewController; - -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.m deleted file mode 100644 index 02f7ce9b3bff..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleBase.m +++ /dev/null @@ -1,13 +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 "MLOAppRoleBase.h" - -@implementation MLOAppRoleBase - -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.h deleted file mode 100644 index 262f7c48fa24..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.h +++ /dev/null @@ -1,14 +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 "MLOObject.h" - -@class MLOAppRoleBase,MLOMainViewController; -@interface MLOAppRoleFactory : MLOObject -+(MLOAppRoleBase *) getInstanceWithMainViewController:(MLOMainViewController *) mainViewController; -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.m deleted file mode 100644 index ba27a4f36320..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleFactory.m +++ /dev/null @@ -1,37 +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 "MLOAppRoleFactory.h" -#import "MLOAppRoleLoApp.h" -#import "MLOAppRoleTileTester.h" -#import "MLOMainViewController.h" - -@implementation MLOAppRoleFactory - -+(MLOAppRoleBase *) getInstanceWithMainViewController:(MLOMainViewController *) mainViewController{ - MLOAppRoleBase * role; - - NSLog(@"Creating app role: %@",MLOAppRoleString(APP_ROLE)); - - switch (APP_ROLE) { - case LO_APP: - { - role = [MLOAppRoleLoApp new]; - break; - } - case TILE_TESTER: - { - role= [MLOAppRoleTileTester new]; - break; - } - } - role.mainViewController = mainViewController; - return role; -} - -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.h deleted file mode 100644 index 8fb181b810a2..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.h +++ /dev/null @@ -1,13 +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 "MLOAppRoleBase.h" - -@interface MLOAppRoleLoApp : MLOAppRoleBase - -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.m deleted file mode 100644 index fc3fb4ce004a..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleLoApp.m +++ /dev/null @@ -1,112 +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 "MLOAppRoleLoApp.h" -#import "MLOMainViewController_Private.h" -#import "MLORenderManager.h" -#import "MLOGestureEngine.h" -#import "MLOToolbarViewController.h" -#import "MLOSelectionViewController.h" -#import "MLOScrollerViewController.h" -#import "MLOTopbarViewController.h" -#import "MLOKeyboardManager.h" - -static const NSTimeInterval ROTATE_FLASH_DURATION=0.5f; - -@implementation MLOAppRoleLoApp - --(NSString *)description{ - return @"MLOAppRoleLoApp"; -} - --(void)initSubviews{ - MLOMainViewController * main = [self mainViewController]; - main.scroller = [[MLOScrollerViewController alloc] initWithMainViewController:main]; - main.selection = [[MLOSelectionViewController alloc] initWithMainViewController: main]; - main.toolbar = [[MLOToolbarViewController alloc] initWithMainViewController:main]; - main.keyboard = [[MLOKeyboardManager alloc]initWithMainViewController:main]; - main.flasher =[[UIView alloc] initWithFrame:CGRECT_ZERO]; - main.flasher.alpha = 0.0f; - main.flasher.backgroundColor = [UIColor whiteColor]; - main.gestureEngine = nil; -} - --(void)setWidth:(CGFloat) width height:(CGFloat) height{ - - [[self mainViewController].renderManager setWidth:width height:height]; -} - --(void)addSubviews{ - - MLOMainViewController * main = [self mainViewController]; - main.renderManager = [MLORenderManager getInstance]; - - [main resize]; - - [main.canvas addSubview: main.renderManager.view]; - - main.gestureEngine = [[MLOGestureEngine alloc] initWithMainViewController:main]; - [main.toolbar addToMainViewController]; - [main.scroller addToMainViewController]; - [main.selection addToMainViewController]; - [main.keyboard addToMainViewController]; -} - --(void)rotate{ - - MLOMainViewController * main = self.mainViewController; - - NSLog(@"MLO rotate"); - - main.renderManager.view.alpha= 0.0f; - - [main resize]; - - [main.gestureEngine onRotate]; - - [main.topbar onRotate]; - - [main.scroller reset]; - - [main.scroller showLibreOffice]; - - [main.selection onRotate]; - - [main.toolbar onRotate]; - - [UIView animateWithDuration:ROTATE_FLASH_DURATION animations:^(void){ - main.renderManager.view.alpha=1.0f; - }]; -} - - --(void)showLibreOffice{ - - [self.mainViewController.toolbar showLibreOffice]; - [self.mainViewController.keyboard showLibreOffice]; -} - --(void)hideLibreOffice{ - MLOMainViewController * main = self.mainViewController; - - [main.toolbar hideLibreOffice]; - [main resetSubviews]; - [main.gestureEngine hideLibreOffice]; - [main.scroller hideLibreOffice]; - [main.selection reset]; - [main.keyboard hideLibreOffice]; -} - --(void)initWindow:(UIWindow *) window{ - MLOMainViewController * main = self.mainViewController; - [main.renderManager setWidth:main.view.frame.size.width height:main.view.frame.size.height]; - - [main.gestureEngine showLibreOffice:window]; -} - -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleProtocol.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleProtocol.h deleted file mode 100644 index fcbbdedc9ec4..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleProtocol.h +++ /dev/null @@ -1,21 +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 <Foundation/Foundation.h> - -@protocol MLOAppRoleProtocol <NSObject> - -@optional --(void)initSubviews; --(void)setWidth:(CGFloat) width height:(CGFloat) height; --(void)addSubviews; --(void)rotate; --(void)initWindow:(UIWindow *) window; --(void)showLibreOffice; --(void)hideLibreOffice; -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.h b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.h deleted file mode 100644 index 01f121ee2d40..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.h +++ /dev/null @@ -1,15 +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 "MLOAppRoleBase.h" -@class MLOTestingTileRendererViewController,MLOTestingTileParametersViewController; -@interface MLOAppRoleTileTester : MLOAppRoleBase -@property MLOTestingTileRendererViewController * renderer; -@property MLOTestingTileParametersViewController * params; - -@end diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.m deleted file mode 100644 index 743c0c113cde..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/role/MLOAppRoleTileTester.m +++ /dev/null @@ -1,78 +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 "MLOAppRoleTileTester.h" -#import "MLOMainViewController_Private.h" -#import "MLOTopbarViewController.h" -#import "MLOTestingTileRendererViewController.h" -#import "MLOTestingTileParametersViewController.h" - - -@implementation MLOAppRoleTileTester - --(void)initSubviews{ - NSLog(@"%@ initSubviews",self); - self.renderer = [[MLOTestingTileRendererViewController alloc] initWithTester:self]; - self.params = [[MLOTestingTileParametersViewController alloc] initWithTester:self]; - -} - --(NSString *)description{ - return @"MLOAppRoleTileTester"; -} - - --(void)setWidth:(CGFloat) width height:(CGFloat) height{ - NSLog(@"%@ setWidth:height",self); - if(width > height){ - CGFloat halfWidth = width/2.0f; - self.renderer.view.frame =CGRectMake(0, 0, halfWidth, height); - self.params.view.frame =CGRectMake(halfWidth,0, halfWidth, height); - }else{ - CGFloat halfHeight = height/2.0f; - self.params.view.frame =CGRectMake(0, 0, width, halfHeight); - self.renderer.view.frame =CGRectMake(0,halfHeight, width, halfHeight); - } - [self.renderer resize]; - [self.params resize]; - -} --(void)addSubviews{ - NSLog(@"%@ addSubviews",self); - - [self.renderer addToSuperview]; - [self.params addToSuperview]; - - [self.mainViewController resize]; -} - --(void)rotate{ - NSLog(@"%@ rotate",self); - MLOMainViewController * main = [self mainViewController]; - - [main resize]; - - [main.topbar onRotate]; - - [self.renderer resize]; - [self.params resize]; -} - - --(void)showLibreOffice{ - NSLog(@"%@ showLibreOffice",self); -} --(void)hideLibreOffice{ - NSLog(@"%@ hideLibreOffice",self); -} - --(void)initWindow:(UIWindow *) window{ - NSLog(@"%@ initWindow",self); - -} -@end |