9 #import <UIKit/UIKit.h>
13 #define SpreadLandscape 1
14 #define SpreadPortrait 2
38 @property NSInteger bookCode;
39 @property NSInteger pageIndex;
40 @property NSInteger numberOfPages;
41 @property double pagePosition;
42 @property (nonatomic,retain) NSString* cachedImagePath;
49 -(NSString*)fixedViewController:(
FixedViewController*)fvc scriptForPage:(NSInteger)pageIndex;
51 -(NSString*)fixedViewController:(
FixedViewController*)fvc styleForPage:(NSInteger)pageIndex;
56 -(NSMutableArray*)fixedViewController:(
FixedViewController*)fvc highlightsForChapter:(NSInteger)chapterIndex;
73 -(void)fixedViewController:(
FixedViewController*)fvc didDetectTapAtPositionInView:(CGPoint)positionInView positionInPage:(CGPoint)positionInPage;
75 -(void)fixedViewController:(
FixedViewController*)fvc didDetectDoubleTapAtPositionInView:(CGPoint)positionInView positionInPage:(CGPoint)positionInPage;
84 -(void)fixedViewController:(
FixedViewController*)fvc cached:(
int)index image:(UIImage*)image;
86 -(void)fixedViewController:(
FixedViewController*)fvc cached:(
int)index path:(NSString*)path;
96 -(void)fixedViewController:(
FixedViewController*)fvc didSearchKey:(SearchResult*)searchResult;
98 -(void)fixedViewController:(
FixedViewController*)fvc didFinishSearchForChapter:(SearchResult*)searchResult;
100 -(void)fixedViewController:(
FixedViewController*)fvc didFinishSearchAll:(SearchResult*)searchResult;
139 @property (nonatomic,weak) NSString *encryptKey;
140 @property int transitionType;
141 @property int bookCode;
142 @property (nonatomic,retain) Book* book;
143 @property (nonatomic,weak) id <FixedViewControllerDelegate> delegate;
144 @property (nonatomic,weak) id <FixedViewControllerDataSource> dataSource;
145 @property (nonatomic,weak) NSString* version;
146 @property (nonatomic,weak) NSString* baseDirectory;
158 -(id)initWithStartPageIndex:(
int)startPageIndex;
163 -(id)initWithStartPageIndex:(
int)pageIndex spread:(
int)spreadType;
168 -(id)initWithStartPosition:(
double)startPosition spread:(
int)spreadType;
178 -(void)gotoPageByPagePosition:(
double)pagePosition;
180 -(void)changeBackgroundColor:(UIColor*)backgroundColor;
182 -(void)changeWindowColor:(UIColor*)windowColor;
184 -(void)gotoPageByNavMapIndex:(
int)index;
188 -(void)setContentProviderClass:(Class)contentProvider;
196 -(void)gotoPage:(
int)pageIndex;
202 -(int)pageCountInBook;
204 -(int)currentPageIndex;
207 -(void)changeElementColor:(NSString*)colorString hash:(NSString*)hash pageIndex:(
int)pageIndex;
209 -(void)restoreElementColor;
212 -(BOOL)isMediaOverlayAvailable;
214 -(void)playFirstParallel;
216 -(void)pausePlayingParallel;
218 -(void)stopPlayingParallel;
220 -(void)playParallel:(Parallel*)parallel;
222 -(void)playParallelByIndex:(
int)parallelIndex;
224 -(Parallel*)getParallelByIndex:(
int)parallelIndex;
228 -(void)playNextParallel;
230 -(void)playPrevParallel;
232 -(void)resumePlayingParallel;
234 -(BOOL)isPlayingPaused;
236 -(BOOL)isPlayingStarted;
239 -(void)setLicenseKey:(NSString *)licenseKey;
242 -(void)setTimeForRendering:(
double)seconds;
244 -(void)setTimeForCaching:(
double)seconds;
246 -(void)deleteAllCaches;
252 -(void)setPagesCenterImage:(UIImage*)pagesCenterImage;
254 -(void)setPagesStackImage:(UIImage*)pagesStackImage;
257 -(void)setNavigationAreaEnabled:(BOOL)enabled;
260 -(NSString*)getCoverURL;
268 -(NSString*)executeJavascript:(NSString*)script forLeftPage:(BOOL)forLeft;
270 -(NSString*)executeJavascript:(NSString*)script;
273 -(void)useSingleLayer;
276 -(void)setSwipeGestureEnabled:(BOOL)enabled;
279 -(int)platformMemory;
281 -(NSString *)platformString;
284 -(void)addMenuItemForSelection:(NSObject*)target title:(NSString*)title selector:(
SEL)selector;
287 -(void)makeSelectionHighlight:(UIColor*)color;
289 -(void)makeSelectionNote:(UIColor*)color;
291 -(void)deleteHighlight:(
Highlight*)highlight;
293 -(void)changeHighlight:(
Highlight*)highlight color:(UIColor*)color;
295 -(void)changeHighlight:(
Highlight *)highlight note:(NSString *)note;
297 -(void)changeHighlight:(
Highlight *)highlight color:(UIColor*)color note:(NSString *)note;
300 -(void)searchKey:(NSString*)key;
310 -(BOOL)isDoublePaged;
313 -(
NavPoint*)getNavPoint:(
int)navIndex;
316 -(void)gotoPageByNavPoint:(
NavPoint*)np;
319 -(void)setFitToHeight:(BOOL)value;
322 -(void)setMaxLayer:(
int)max;