|
|
@ -154,12 +154,16 @@ data class Book( |
|
|
|
return config().useReplaceRule ?: AppConfig.replaceEnableDefault |
|
|
|
return config().useReplaceRule ?: AppConfig.replaceEnableDefault |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun setReSegment(reSegment: Boolean) { |
|
|
|
|
|
|
|
config().reSegment = reSegment |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun getReSegment(): Boolean { |
|
|
|
fun getReSegment(): Boolean { |
|
|
|
return config().reSegment |
|
|
|
return config().reSegment |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun setReSegment(reSegment: Boolean) { |
|
|
|
fun setPageAnim(pageAnim: Int?) { |
|
|
|
config().reSegment = reSegment |
|
|
|
config().pageAnim = pageAnim |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun getPageAnim(): Int { |
|
|
|
fun getPageAnim(): Int { |
|
|
@ -170,18 +174,14 @@ data class Book( |
|
|
|
return pageAnim |
|
|
|
return pageAnim |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun setPageAnim(pageAnim: Int?) { |
|
|
|
fun setImageStyle(imageStyle: String?) { |
|
|
|
config().pageAnim = pageAnim |
|
|
|
config().imageStyle = imageStyle |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun getImageStyle(): String? { |
|
|
|
fun getImageStyle(): String? { |
|
|
|
return config().imageStyle |
|
|
|
return config().imageStyle |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun setImageStyle(imageStyle: String?) { |
|
|
|
|
|
|
|
config().imageStyle = imageStyle |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun setTtsEngine(ttsEngine: String?) { |
|
|
|
fun setTtsEngine(ttsEngine: String?) { |
|
|
|
config().ttsEngine = ttsEngine |
|
|
|
config().ttsEngine = ttsEngine |
|
|
|
} |
|
|
|
} |
|
|
@ -190,6 +190,14 @@ data class Book( |
|
|
|
return config().ttsEngine |
|
|
|
return config().ttsEngine |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun setSplitLongChapter(limitLongContent: Boolean) { |
|
|
|
|
|
|
|
config().splitLongChapter = limitLongContent |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
fun getSplitLongChapter(): Boolean { |
|
|
|
|
|
|
|
return config().splitLongChapter |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
fun getDelTag(tag: Long): Boolean { |
|
|
|
fun getDelTag(tag: Long): Boolean { |
|
|
|
return config().delTag and tag == tag |
|
|
|
return config().delTag and tag == tag |
|
|
|
} |
|
|
|
} |
|
|
@ -288,6 +296,7 @@ data class Book( |
|
|
|
var useReplaceRule: Boolean? = null,// 正文使用净化替换规则 |
|
|
|
var useReplaceRule: Boolean? = null,// 正文使用净化替换规则 |
|
|
|
var delTag: Long = 0L,//去除标签 |
|
|
|
var delTag: Long = 0L,//去除标签 |
|
|
|
var ttsEngine: String? = null, |
|
|
|
var ttsEngine: String? = null, |
|
|
|
|
|
|
|
var splitLongChapter: Boolean = true |
|
|
|
) : Parcelable |
|
|
|
) : Parcelable |
|
|
|
|
|
|
|
|
|
|
|
class Converters { |
|
|
|
class Converters { |
|
|
|