/// <summary>
        /// Fill the object with settings from UI
        /// </summary>
        public FaRPrefs(Parse.FindandReplace findAndReplace,
                        ReplaceSpecial.ReplaceSpecial replaceSpecial, SubstTemplates substTemplates)
        {
            IgnoreSomeText = findAndReplace.IgnoreLinks;
            IgnoreMoreText = findAndReplace.IgnoreMore;
            Replacements   = findAndReplace.GetList();
            AdvancedReps   = replaceSpecial.GetRules();
            AppendSummary  = findAndReplace.AppendToSummary;

            SubstTemplates    = substTemplates.TemplateList;
            IncludeComments   = substTemplates.IncludeComments;
            ExpandRecursively = substTemplates.ExpandRecursively;
            IgnoreUnformatted = substTemplates.IgnoreUnformatted;
        }
Example #2
0
        /// <summary>
        /// Fill the object with settings from UI
        /// </summary>
        public FaRPrefs(bool mEnabled, Parse.FindandReplace findAndReplace,
                        ReplaceSpecial.ReplaceSpecial replaceSpecial, string[] mSubstTemplates,
                        bool mIncludeComments, bool mExpandRecursively, bool mIgnoreUnformatted)
        {
            Enabled         = mEnabled;
            IgnoreSomeText  = findAndReplace.ignoreLinks;
            IgnoreMoreText  = findAndReplace.ignoreMore;
            AppendSummary   = findAndReplace.AppendToSummary;
            AfterOtherFixes = findAndReplace.AfterOtherFixes;
            Replacements    = findAndReplace.GetList();
            AdvancedReps    = replaceSpecial.GetRules();

            SubstTemplates    = mSubstTemplates;
            IncludeComments   = mIncludeComments;
            ExpandRecursively = mExpandRecursively;
            IgnoreUnformatted = mIgnoreUnformatted;
        }