/// ------------------------------------------------------------------------------------- /// <summary> /// Create factory styles from the TE Styles XML file. /// </summary> /// <param name="progressDlg">Progress dialog so the user can cancel</param> /// <param name="scr">The Scripture</param> /// ------------------------------------------------------------------------------------- internal static void CreatePublicationInfo(IAdvInd4 progressDlg, IScripture scr) { TePublicationsInit pubInit = new TePublicationsInit(scr); pubInit.CreateFactoryPublicationInfo(progressDlg, pubInit.LoadDoc()); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Retrieves a list of publication page sizes which are allowable for the given type of /// publication. /// </summary> /// <param name="publicationName">Name of the publication whose supported sizes are to /// be retrieved. ENHANCE: Ideally, this should use the id instead of the name because it /// is guaranteed to be unique, but currently the Publication doesn't store the id, just /// the Name.</param> /// <param name="icuLocale">The UI icu locale.</param> /// <returns>A list of supported publication page sizes for the given type of /// publication. /// </returns> /// ------------------------------------------------------------------------------------ public static List<PubPageInfo> GetPubPageSizes(string publicationName, string icuLocale) { TePublicationsInit pubInit = new TePublicationsInit(); return pubInit.GetPubPageSizes(pubInit.LoadDoc(), publicationName, icuLocale); }
/// ------------------------------------------------------------------------------------ /// <summary> /// Ensures that all factory publications exist /// </summary> /// <param name="lp">language project</param> /// <param name="existingProgressDlg">The existing progress dialog, if any.</param> /// ------------------------------------------------------------------------------------ public static void EnsureFactoryPublications(ILangProject lp, IAdvInd4 existingProgressDlg) { TePublicationsInit pubInit = new TePublicationsInit(lp.TranslatedScriptureOA); pubInit.EnsureCurrentResource(existingProgressDlg); }