diff options
Diffstat (limited to 'platform/ios/Classes/MuDocumentController.m')
-rw-r--r-- | platform/ios/Classes/MuDocumentController.m | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/platform/ios/Classes/MuDocumentController.m b/platform/ios/Classes/MuDocumentController.m index 8a82fa1f..7b52f3e8 100644 --- a/platform/ios/Classes/MuDocumentController.m +++ b/platform/ios/Classes/MuDocumentController.m @@ -10,6 +10,7 @@ #import "MuPageViewNormal.h" #import "MuPageViewReflow.h" #import "MuDocumentController.h" +#import "MuTextFieldController.h" #define GAP 20 #define INDICATOR_Y -44-24 @@ -474,6 +475,8 @@ static void flattenOutline(NSMutableArray *titles, NSMutableArray *pages, fz_out // Not currently supported } caseRemote:^(MuTapResultRemoteLink *link) { // Not currently supported + } caseWidget:^(MuTapResultWidget *widget) { + tapHandled = YES; }]; if (tapHandled) break; @@ -570,7 +573,7 @@ static void flattenOutline(NSMutableArray *titles, NSMutableArray *pages, fz_out UIView<MuPageView> *view = reflowMode ? [[MuPageViewReflow alloc] initWithFrame:CGRectMake(number * width, 0, width-GAP, height) document:docRef page:number] - : [[MuPageViewNormal alloc] initWithFrame:CGRectMake(number * width, 0, width-GAP, height) document:docRef page:number]; + : [[MuPageViewNormal alloc] initWithFrame:CGRectMake(number * width, 0, width-GAP, height) dialogCreator:self document:docRef page:number]; [view setScale:scale]; [canvas addSubview: view]; if (showLinks) @@ -618,6 +621,14 @@ static void flattenOutline(NSMutableArray *titles, NSMutableArray *pages, fz_out current = number; } +- (void) invokeTextDialog:(NSString *)aString okayAction:(void (^)(NSString *))block +{ + MuTextFieldController *tf = [[MuTextFieldController alloc] initWithText:aString okayAction:block]; + tf.modalPresentationStyle = UIModalPresentationFormSheet; + [self presentViewController:tf animated:YES completion:nil]; + [tf release]; +} + - (void) onGotoPageFinished { scroll_animating = NO; |