Ejemplo n.º 1
0
 /// <summary>
 /// Installs the specified custom build path.
 /// </summary>
 /// <param name="ewSoftwareCommonApplicationDataPath">The path of the
 /// SHFB common Application Data folder.</param>
 /// <param name="path">The path of the SHFB installation.</param>
 /// <returns>A value equal to <c>0</c> for successful installations; nonzero otherwise.</returns>
 internal static int Install(
     string ewSoftwareCommonApplicationDataPath,
     string path)
 {
     return(Shfb.Update(
                LatexTools.Updater,
                ewSoftwareCommonApplicationDataPath,
                path));
 }
        /// <summary>
        /// Adds a family of class names to be highlighted in a SHFB
        /// installation having the specified path.
        /// </summary>
        /// <param name="family">A string used to identify
        /// the class names.</param>
        /// <param name="names">The class names to highlight.</param>
        /// <param name="languages">The languages for which
        /// the class names need to be highlighted.</param>
        /// <param name="path">
        /// The path of the SHFB installation to update.
        /// </param>
        /// <returns>A value equal to <c>0</c> for successful installations; nonzero otherwise.</returns>
        internal static int AddClassNamesFamily(
            string family,
            IEnumerable <string> names,
            IEnumerable <string> languages,
            string path)
        {
            FamilyInfo updateInfo = new FamilyInfo()
            {
                Family    = family,
                Names     = names,
                Languages = languages
            };

            return(Shfb.Update(HighlightingTools.ClassNamesFamilyAdder, updateInfo, path));
        }
 /// <summary>
 /// Removes a family of class names to be highlighted in a SHFB
 /// installation having the specified path.
 /// </summary>
 /// <param name="family">A string used to identify
 /// the class names.</param>
 /// <param name="path">
 /// The path of the SHFB installation to update.
 /// </param>
 /// <returns>A value equal to <c>0</c> for successful removals; nonzero otherwise.</returns>
 internal static int RemoveClassNamesFamily(
     string family,
     string path)
 {
     return(Shfb.Update(HighlightingTools.ClassNamesFamilyRemover, family, path));
 }
 /// <summary>
 /// Sets the class name highlighting color for a SHFB installation in the specified path.
 /// </summary>
 /// <param name="color">The color to set for class name highlighting.</param>
 /// <param name="path">The path of the SHFB installation to update.</param>
 /// <returns>A value equal to <c>0</c> for successful settings; nonzero otherwise.</returns>
 internal static int SetClassNamesColor(string color, string path)
 {
     return(Shfb.Update(HighlightingTools.ClassNameColorSetter, color, path));
 }
Ejemplo n.º 5
0
 /// <summary>
 /// Installs the Novacta SHFB Image Tools in the specified path.
 /// </summary>
 /// <param name="path">The path of the SHFB installation to update.
 /// </param>
 /// <returns>
 /// A value equal to <c>0</c> for successful installations; nonzero otherwise.
 /// </returns>
 internal static int Install(string path)
 {
     return(Shfb.Update(ImageTools.Updater, (string)(null), path));
 }