@@ -30,15 +30,15 @@ import Foundation
3030// Container class for epub save options.
3131@available ( macOS 10 . 12 , iOS 10 . 3 , watchOS 3 . 3 , tvOS 12 . 0 , * )
3232public class EpubSaveOptionsData : HtmlSaveOptionsData {
33- // Field of epubNavigationMapLevel . Container class for epub save options.
34- private var _epubNavigationMapLevel : Int ? = nil ;
33+ // Field of navigationMapLevel . Container class for epub save options.
34+ private var _navigationMapLevel : Int ? = nil ;
3535
36- public var epubNavigationMapLevel : Int ? {
36+ public var navigationMapLevel : Int ? {
3737 get {
38- return self . _epubNavigationMapLevel ;
38+ return self . _navigationMapLevel ;
3939 }
4040 set {
41- self . _epubNavigationMapLevel = newValue;
41+ self . _navigationMapLevel = newValue;
4242 }
4343 }
4444
@@ -52,7 +52,7 @@ public class EpubSaveOptionsData : HtmlSaveOptionsData {
5252 }
5353
5454 private enum CodingKeys : String , CodingKey {
55- case epubNavigationMapLevel = " EpubNavigationMapLevel " ;
55+ case navigationMapLevel = " NavigationMapLevel " ;
5656 case invalidCodingKey;
5757 }
5858
@@ -63,28 +63,28 @@ public class EpubSaveOptionsData : HtmlSaveOptionsData {
6363 public required init ( from decoder: Decoder ) throws {
6464 try super. init ( from: decoder) ;
6565 let container = try decoder. container ( keyedBy: CodingKeys . self) ;
66- self . epubNavigationMapLevel = try container. decodeIfPresent ( Int . self, forKey: . epubNavigationMapLevel ) ;
66+ self . navigationMapLevel = try container. decodeIfPresent ( Int . self, forKey: . navigationMapLevel ) ;
6767 }
6868
6969 public override func encode( to encoder: Encoder ) throws {
7070 try super. encode ( to: encoder) ;
7171 var container = encoder. container ( keyedBy: CodingKeys . self) ;
72- if ( self . epubNavigationMapLevel != nil ) {
73- try container. encode ( self . epubNavigationMapLevel , forKey: . epubNavigationMapLevel ) ;
72+ if ( self . navigationMapLevel != nil ) {
73+ try container. encode ( self . navigationMapLevel , forKey: . navigationMapLevel ) ;
7474 }
7575 }
7676
7777 public override func collectFilesContent( _ resultFilesContent : inout [ FileReference ] ) {
7878 }
7979
80- // Sets epubNavigationMapLevel . Gets or sets the maximum level of headings populated to the navigation map when exporting.
81- public func setEpubNavigationMapLevel ( epubNavigationMapLevel : Int ? ) -> EpubSaveOptionsData {
82- self . epubNavigationMapLevel = epubNavigationMapLevel ;
80+ // Sets navigationMapLevel . Gets or sets the maximum level of headings populated to the navigation map when exporting.
81+ public func setNavigationMapLevel ( navigationMapLevel : Int ? ) -> EpubSaveOptionsData {
82+ self . navigationMapLevel = navigationMapLevel ;
8383 return self ;
8484 }
8585
86- // Gets epubNavigationMapLevel . Gets or sets the maximum level of headings populated to the navigation map when exporting.
87- public func getEpubNavigationMapLevel ( ) -> Int ? {
88- return self . epubNavigationMapLevel ;
86+ // Gets navigationMapLevel . Gets or sets the maximum level of headings populated to the navigation map when exporting.
87+ public func getNavigationMapLevel ( ) -> Int ? {
88+ return self . navigationMapLevel ;
8989 }
9090}
0 commit comments