using System.Collections.Generic;
namespace VersOne.Epub.WpfDemo.ViewModels
{
///
/// View model for the control.
///
public class HtmlContentFileViewModel : ViewModel
{
///
/// Initializes a new instance of the class using the specified relative file path in the EPUB manifest,
/// absolute file path in the EPUB archive, HTML content, and dictionaries of images, stylesheets, and fonts.
///
/// The relative file path of the HTML content file as it is specified in the EPUB manifest.
/// The absolute file path of the HTML content file in the EPUB archive.
/// The content of the HTML file that needs to be rendered in the control.
/// The dictionary of image files in the EPUB book keyed by their relative file paths in the EPUB manifest.
/// The dictionary of CSS stylesheet files in the EPUB book keyed by their relative file paths in the EPUB manifest.
/// The dictionary of font files in the EPUB book keyed by their relative file paths in the EPUB manifest.
public HtmlContentFileViewModel(string htmlFilePathInEpubManifest, string htmlFilePathInEpubArchive, string htmlContent, Dictionary images,
Dictionary styleSheets, Dictionary fonts)
{
HtmlFilePathInEpubManifest = htmlFilePathInEpubManifest;
HtmlFilePathInEpubArchive = htmlFilePathInEpubArchive;
HtmlContent = htmlContent;
Images = images;
StyleSheets = styleSheets;
Fonts = fonts;
}
///
/// Gets the relative file path of the HTML content file as it is specified in the EPUB manifest.
///
public string HtmlFilePathInEpubManifest { get; }
///
/// Gets the absolute file path of the HTML content file in the EPUB archive.
///
public string HtmlFilePathInEpubArchive { get; }
///
/// Gets the content of the HTML file to be rendered in the control.
///
public string HtmlContent { get; }
///
/// Gets the dictionary of image files in the EPUB book keyed by their relative file paths in the EPUB manifest.
///
public Dictionary Images { get; }
///
/// Gets the dictionary of CSS stylesheet files in the EPUB book keyed by their relative file paths in the EPUB manifest.
///
public Dictionary StyleSheets { get; }
///
/// Gets the dictionary of font files in the EPUB book keyed by their relative file paths in the EPUB manifest.
///
public Dictionary Fonts { get; }
}
}