/// ------------------------------------------------------------------------------------ /// <summary> /// Constructs a new instance of the <see cref="ExportXhtml"/> class. /// </summary> /// <param name="fileName">pathname of the XHTML file to create</param> /// <param name="cache">data source</param> /// <param name="filter">lists the books to export</param> /// <param name="what">tells what to export: everything, filtered list, or single book</param> /// <param name="nBook">if single book, number of the book to export</param> /// <param name="iFirstSection">if single book, index of first section to export</param> /// <param name="iLastSection">if single book, index of last section to export</param> /// <param name="sDescription"></param> /// <param name="styleSheet"></param> /// <param name="pub"></param> /// ------------------------------------------------------------------------------------ public ExportXhtml(string fileName, FdoCache cache, FilteredScrBooks filter, ExportWhat what, int nBook, int iFirstSection, int iLastSection, string sDescription, FwStyleSheet styleSheet, IPublication pub) { m_fileName = fileName; m_cache = cache; m_bookFilter = filter; m_what = what; m_nBookSingle = nBook; m_iFirstSection = iFirstSection; m_iLastSection = iLastSection; m_sDescription = sDescription; m_styleSheet = styleSheet; m_pub = pub; m_scr = cache.LangProject.TranslatedScriptureOA; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Constructs a new instance of the <see cref="ExportXhtml"/> class. /// </summary> /// <param name="fileName">pathname of the XHTML file to create</param> /// <param name="cache">data source</param> /// <param name="filter">lists the books to export</param> /// <param name="what">tells what to export: everything, filtered list, or single book</param> /// <param name="nBook">if single book, number of the book to export</param> /// <param name="iFirstSection">if single book, index of first section to export</param> /// <param name="iLastSection">if single book, index of last section to export</param> /// <param name="sDescription">The s description.</param> /// <param name="styleSheet">The style sheet.</param> /// <param name="pub">The pub.</param> /// <param name="app">The application</param> /// ------------------------------------------------------------------------------------ public ExportXhtml(string fileName, FdoCache cache, FilteredScrBooks filter, ExportWhat what, int nBook, int iFirstSection, int iLastSection, string sDescription, FwStyleSheet styleSheet, IPublication pub, IApp app) { m_fileName = fileName; m_cache = cache; m_bookFilter = filter; m_what = what; m_nBookSingle = nBook; m_iFirstSection = iFirstSection; m_iLastSection = iLastSection; m_sDescription = sDescription; m_styleSheet = styleSheet; m_pub = pub; m_app = app; m_scr = cache.LangProject.TranslatedScriptureOA; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Constructs a new instance of the <see cref="T:ExportXml"/> class. /// </summary> /// <param name="fileName">pathname of the XML file to create</param> /// <param name="cache">data source</param> /// <param name="filter">lists the books to export</param> /// <param name="app">The application</param> /// <param name="what">tells what to export: everything, filtered list, or single book</param> /// <param name="nBook">if single book, number of the book to export</param> /// <param name="iFirstSection">if single book, index of first section to export</param> /// <param name="iLastSection">if single book, index of last section to export</param> /// <param name="sDescription">The s description.</param> /// ------------------------------------------------------------------------------------ public ExportXml(string fileName, FdoCache cache, FilteredScrBooks filter, IApp app, ExportWhat what, int nBook, int iFirstSection, int iLastSection, string sDescription) { m_fileName = fileName; m_cache = cache; m_bookFilter = filter; m_app = app; m_what = what; m_nBookSingle = nBook; m_iFirstSection = iFirstSection; m_iLastSection = iLastSection; m_sDescription = sDescription; m_scr = cache.LangProject.TranslatedScriptureOA; }
/// ------------------------------------------------------------------------------------ /// <summary> /// Constructs a new instance of the <see cref="ExportXml"/> class. /// </summary> /// <param name="fileName">pathname of the XML file to create</param> /// <param name="cache">data source</param> /// <param name="filter">lists the books to export</param> /// <param name="what">tells what to export: everything, filtered list, or single book</param> /// <param name="nBook">if single book, number of the book to export</param> /// <param name="iFirstSection">if single book, index of first section to export</param> /// <param name="iLastSection">if single book, index of last section to export</param> /// <param name="sDescription"></param> /// ------------------------------------------------------------------------------------ public ExportXml(string fileName, FdoCache cache, FilteredScrBooks filter, ExportWhat what, int nBook, int iFirstSection, int iLastSection, string sDescription) { m_fileName = fileName; m_cache = cache; m_wsEnglish = m_cache.LanguageWritingSystemFactoryAccessor.GetWsFromStr("en"); m_bookFilter = filter; m_what = what; m_nBookSingle = nBook; m_iFirstSection = iFirstSection; m_iLastSection = iLastSection; m_sDescription = sDescription; m_scr = cache.LangProject.TranslatedScriptureOA; m_hvoFtSegmentDefn = cache.GetIdFromGuid(LangProject.kguidAnnFreeTranslation); }