/// ------------------------------------------------------------------------------------ /// <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> /// 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()); }