diff options
Diffstat (limited to 'ios/shared/ios_sharedlo/objective_c/view_controllers/selection/MLOThesaurusViewController.m')
-rw-r--r-- | ios/shared/ios_sharedlo/objective_c/view_controllers/selection/MLOThesaurusViewController.m | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/ios/shared/ios_sharedlo/objective_c/view_controllers/selection/MLOThesaurusViewController.m b/ios/shared/ios_sharedlo/objective_c/view_controllers/selection/MLOThesaurusViewController.m deleted file mode 100644 index e6249033be91..000000000000 --- a/ios/shared/ios_sharedlo/objective_c/view_controllers/selection/MLOThesaurusViewController.m +++ /dev/null @@ -1,48 +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 "MLOThesaurusViewController.h" -#import "MLOSelectionViewController_Impl.h" -#import "MLOMainViewController_Friend.h" -#import "MLOGestureEngine_Impl.h" - -static const CGFloat THESAURUS_PADDING = 100.0f; -@interface MLOThesaurusViewController () -@property MLOSelectionViewController * selection; -@end - -@implementation MLOThesaurusViewController - - --(id) initWithSelectionViewController:(MLOSelectionViewController *) selectionViewController{ - self = [self initWithTerm:selectionViewController.buffer]; - if(self){ - self.selection = selectionViewController; - self.modalTransitionStyle = UIModalTransitionStyleCrossDissolve; - self.modalPresentationStyle = UIModalPresentationFormSheet; - } - return self; -} - --(void)show{ - static const CGFloat TWO_PADDINGS = THESAURUS_PADDING*2.0; - self.view.frame = CGRectMake(THESAURUS_PADDING, - THESAURUS_PADDING, - _selection.mainViewController.canvas.frame.size.width - TWO_PADDINGS , - _selection.mainViewController.canvas.frame.size.height - TWO_PADDINGS); - - _selection.mainViewController.gestureEngine.focused = NO; - [_selection.mainViewController presentViewController:self animated:YES completion:nil]; - -} - --(void)viewDidDisappear:(BOOL)animated{ - _selection.mainViewController.gestureEngine.focused = YES; - [_selection reselect:YES]; -} -@end |