File size: 2,484 Bytes
fab29d7 |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 |
namespace VersOne.Epub.Options
{
/// <summary>
/// Various options to configure the behavior of the EPUB reader.
/// </summary>
public class EpubReaderOptions
{
/// <summary>
/// Initializes a new instance of the <see cref="EpubReaderOptions" /> class.
/// </summary>
/// <param name="preset">An optional preset to initialize the <see cref="EpubReaderOptions" /> class with a predefined set of options.</param>
public EpubReaderOptions(EpubReaderOptionsPreset? preset = null)
{
PackageReaderOptions = new PackageReaderOptions(preset);
ContentReaderOptions = new ContentReaderOptions(preset);
ContentDownloaderOptions = new ContentDownloaderOptions(preset);
BookCoverReaderOptions = new BookCoverReaderOptions(preset);
SpineReaderOptions = new SpineReaderOptions(preset);
Epub2NcxReaderOptions = new Epub2NcxReaderOptions(preset);
XmlReaderOptions = new XmlReaderOptions(preset);
}
/// <summary>
/// Gets or sets EPUB OPF package reader options.
/// </summary>
public PackageReaderOptions PackageReaderOptions { get; set; }
/// <summary>
/// Gets or sets EPUB content reader options which is used for loading local content files.
/// </summary>
public ContentReaderOptions ContentReaderOptions { get; set; }
/// <summary>
/// Gets or sets EPUB content downloader options which is used for downloading remote content files.
/// </summary>
public ContentDownloaderOptions ContentDownloaderOptions { get; set; }
/// <summary>
/// Gets or sets EPUB content reader options which is used for loading the EPUB book cover image.
/// </summary>
public BookCoverReaderOptions BookCoverReaderOptions { get; set; }
/// <summary>
/// Gets or sets EPUB spine reader options which is used for parsing the default reading order of the EPUB book.
/// </summary>
public SpineReaderOptions SpineReaderOptions { get; set; }
/// <summary>
/// Gets or sets EPUB 2 NCX navigation document reader options.
/// </summary>
public Epub2NcxReaderOptions Epub2NcxReaderOptions { get; set; }
/// <summary>
/// Gets or sets XML reader options.
/// </summary>
public XmlReaderOptions XmlReaderOptions { get; set; }
}
}
|