5 // Copyright (c) 2005 A. Karl Keller (http://karlk.net)
7 // This code is open-source, free software, made available without warranty under
8 // the terms of the GNU General Public License, either version 2 or later (see
9 // http://www.gnu.org/licenses/gpl.html or included copy); as such, it may be
10 // redistributed and/or modified in accordance with that document.
14 #import <Cocoa/Cocoa.h>
17 @interface RTKBook
: NSObject
19 NSMutableArray
*verses
;
20 RTKVerse
*currentVerse
;
22 // Lossless forwards/backwards compatibility
23 NSDictionary
* dictionary
;
27 - (id
)initWithDictionary
:(NSDictionary
*)dict
;
28 - (id
)initWithString
:(NSMutableString
*)string
;
29 - (id
)initWithSFMString
:(NSMutableString
*)string
;
30 - (NSMutableDictionary
*)dictionaryRepresentation
;
32 - (NSString
*)sfmString
;
33 - (NSMutableAttributedString
*)mutableAttributedString
:(BOOL
)romanString
;
34 - (NSMutableArray
*)verses
;
36 - (void)setDictionary
:(NSDictionary
*)theDictionary
;
37 - (NSDictionary
*)dictionary
;
39 - (void)setVerses
:(NSMutableArray
*)theVerses
;
40 - (void)setCurrentVerse
:(RTKVerse
*)verse
;
41 - (RTKVerse
*)currentVerse
;
43 + (id
)bookWithVerses
:(NSMutableArray
*)verses
;