]> git.saurik.com Git - cydia.git/blob - UICaboodle/RVPage.mm
Commit the webview_ -> document_ change.
[cydia.git] / UICaboodle / RVPage.mm
1 #import "RVPage.h"
2
3 #import <Foundation/Foundation.h>
4 #import <UIKit/UIKit.h>
5
6 #import "RVBook.h"
7
8 @implementation RVPage
9
10 - (bool) splitView {
11 return false;
12 }
13
14 - (NSString *) title {
15 [self doesNotRecognizeSelector:_cmd];
16 return nil;
17 }
18
19 - (NSString *) backButtonTitle {
20 return nil;
21 }
22
23 - (NSString *) leftButtonTitle {
24 return nil;
25 }
26
27 - (id) rightButtonTitle {
28 return nil;
29 }
30
31 - (UINavigationButtonStyle) leftButtonStyle {
32 return [self leftButtonTitle] == nil ? UINavigationButtonStyleBack : UINavigationButtonStyleNormal;
33 }
34
35 - (UINavigationButtonStyle) rightButtonStyle {
36 return UINavigationButtonStyleNormal;
37 }
38
39 - (void) _rightButtonClicked {
40 [self doesNotRecognizeSelector:_cmd];
41 }
42
43 - (void) _leftButtonClicked {
44 [self doesNotRecognizeSelector:_cmd];
45 }
46
47 - (UIView *) accessoryView {
48 return nil;
49 }
50
51 - (UIImage *) rightButtonImage {
52 return nil;
53 }
54
55 - (void) setPageActive:(BOOL)active {
56 }
57
58 - (void) resetViewAnimated:(BOOL)animated {
59 [self doesNotRecognizeSelector:_cmd];
60 }
61
62 - (void) setBackButtonTitle:(NSString *)title {
63 [book_ setBackButtonTitle:title forPage:self];
64 }
65
66 - (void) reloadButtons {
67 [book_ reloadButtonsForPage:self];
68 }
69
70 - (void) reloadData {
71 }
72
73 - (id) initWithBook:(RVBook *)book {
74 if ((self = [super initWithFrame:[book pageBounds]]) != nil) {
75 book_ = book;
76 } return self;
77 }
78
79 - (void) setDelegate:(id)delegate {
80 delegate_ = delegate;
81 }
82
83 - (void) setBook:(RVBook *)book {
84 book_ = book;
85 }
86
87 @end