File: ApplicationExplicitSettings.cs

Details

File: ApplicationExplicitSettings.cs
Date: Thu, May 26, 2011
Created by: Cynic

Source code for the CoDocker CSharp to HTML converter from OfItselfSo.com

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel;
using System.Runtime.Serialization;

/// +------------------------------------------------------------------------------------------------------------------------------+
/// ¦                                                   TERMS OF USE: MIT License                                                  ¦
/// +------------------------------------------------------------------------------------------------------------------------------¦
/// ¦Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation    ¦
/// ¦files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy,    ¦
/// ¦modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software¦
/// ¦is furnished to do so, subject to the following conditions:                                                                   ¦
/// ¦                                                                                                                              ¦
/// ¦The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.¦
/// ¦                                                                                                                              ¦
/// ¦THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE          ¦
/// ¦WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR         ¦
/// ¦COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,   ¦
/// ¦ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.                         ¦
/// +------------------------------------------------------------------------------------------------------------------------------+

namespace CoDocker
{
    /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
    /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
    /// <summary>
    /// A class to persist the explicitly set settings of the CoDocker app.
    /// </summary>
    /// <history>
    ///    02 Jan 11  Cynic - Started
    /// </history>
    [DataContract]
    public sealed class ApplicationExplicitSettings 
    {
        public const bool DEFAULT_USE_CS_BANNER = true;
        public const bool DEFAULT_USE_CS_FOOTER = true;
        public const bool DEFAULT_USE_CS_TITLE = true;
        public const bool DEFAULT_USE_CS_DESC = true;
        public const string DEFAULT_USER_STYLESHEET_NAME = "myStyleSheet.css";

        // note this is not saved to disk, it is a temporary flag
        private bool settingsNeedToBeSaved = false;

        [DataMember]
        private String lastHTMLOutputDirectory = null;
        [DataMember]
        private OutputFileExtensionEnum outputFileExtension = OutputFileExtensionEnum.HTML;
        [DataMember]
        private StyleSheetTypeEnum styleSheetType = StyleSheetTypeEnum.STYLESHEET_DEFAULT;
        [DataMember]
        private string userStyleSheetName = DEFAULT_USER_STYLESHEET_NAME;
        [DataMember]
        private string bannerCSCode = "";
        [DataMember]
        private string footerCSCode = "";
        [DataMember]
        private string titleCSCode = "";
        [DataMember]
        private string descriptionCSCode = "";
        [DataMember]
        private string bannerCSProjCode = "";
        [DataMember]
        private string footerCSProjCode = "";
        [DataMember]
        private string titleCSProjCode = "";
        [DataMember]
        private string descriptionCSProjCode = "";
        [DataMember]
        private string bannerSLNCode = "";
        [DataMember]
        private string footerSLNCode = "";
        [DataMember]
        private string titleSLNCode = "";
        [DataMember]
        private string descriptionSLNCode = "";
        [DataMember]
        private bool useCSProjCSBanner = DEFAULT_USE_CS_BANNER;
        [DataMember]
        private bool useCSProjCSFooter = DEFAULT_USE_CS_FOOTER;
        [DataMember]
        private bool useCSProjCSTitle = DEFAULT_USE_CS_TITLE;
        [DataMember]
        private bool useCSProjCSDesc = DEFAULT_USE_CS_DESC;
        [DataMember]
        private bool useSLNCSBanner = DEFAULT_USE_CS_BANNER;
        [DataMember]
        private bool useSLNCSFooter = DEFAULT_USE_CS_FOOTER;
        [DataMember]
        private bool useSLNCSTitle = DEFAULT_USE_CS_TITLE;
        [DataMember]
        private bool useSLNCSDesc = DEFAULT_USE_CS_DESC;

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// gets/sets the settingsNeedToBeSaved temporary flag
        /// </summary>
        /// <history>
        ///    03 Jan 11  Cynic - Started
        /// </history>
        public bool SettingsNeedToBeSaved
        {
            get
            {
                return settingsNeedToBeSaved;
            }
            set
            {
                settingsNeedToBeSaved = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// gets/sets the lastHTMLOutputDirectory. will never return null
        /// </summary>
        /// <history>
        ///    03 Jan 11  Cynic - Started
        /// </history>
        public String LastHTMLOutputDirectory
        {
            get
            {
                if ((lastHTMLOutputDirectory == null) || (lastHTMLOutputDirectory.Length==0)) lastHTMLOutputDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
                return lastHTMLOutputDirectory;
            }
            set
            {
                lastHTMLOutputDirectory = value;
                if ((lastHTMLOutputDirectory == null) || (lastHTMLOutputDirectory.Length == 0)) lastHTMLOutputDirectory = Environment.GetFolderPath(Environment.SpecialFolder.MyDocuments);
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// gets/sets the outputFileExtension.
        /// </summary>
        /// <history>
        ///    03 Jan 11  Cynic - Started
        /// </history>
        public OutputFileExtensionEnum OutputFileExtension
        {
            get
            {
                return outputFileExtension;
            }
            set
            {
                outputFileExtension = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// gets/sets the styleSheetType.
        /// </summary>
        /// <history>
        ///    03 Jan 11  Cynic - Started
        /// </history>
        public StyleSheetTypeEnum StyleSheetType
        {
            get
            {
                return styleSheetType;
            }
            set
            {
                styleSheetType = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useCSProjCSBanner value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseCSProjCSBanner
        {
            get
            {
                return useCSProjCSBanner;
            }
            set
            {
                useCSProjCSBanner = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useCSProjCSFooter value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseCSProjCSFooter
        {
            get
            {
                return useCSProjCSFooter;
            }
            set
            {
                useCSProjCSFooter = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useCSProjCSTitle value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseCSProjCSTitle
        {
            get
            {
                return useCSProjCSTitle;
            }
            set
            {
                useCSProjCSTitle = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useCSProjCSDesc value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseCSProjCSDesc
        {
            get
            {
                return useCSProjCSDesc;
            }
            set
            {
                useCSProjCSDesc = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useSLNCSBanner value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseSLNCSBanner
        {
            get
            {
                return useSLNCSBanner;
            }
            set
            {
                useSLNCSBanner = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useSLNCSFooter value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseSLNCSFooter
        {
            get
            {
                return useSLNCSFooter;
            }
            set
            {
                useSLNCSFooter = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useSLNCSTitle value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseSLNCSTitle
        {
            get
            {
                return useSLNCSTitle;
            }
            set
            {
                useSLNCSTitle = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the useSLNCSDesc value. 
        /// </summary>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public bool UseSLNCSDesc
        {
            get
            {
                return useSLNCSDesc;
            }
            set
            {
                useSLNCSDesc = value;
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the userStyleSheetName value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    23 May 11  Cynic - Started
        /// </history>
        public string UserStyleSheetName
        {
            get
            {
                if (userStyleSheetName == null) userStyleSheetName = DEFAULT_USER_STYLESHEET_NAME;
                return userStyleSheetName;
            }
            set
            {
                userStyleSheetName = value;
                if (userStyleSheetName == null) userStyleSheetName = DEFAULT_USER_STYLESHEET_NAME;
            }
        }


        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the bannerCSCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string BannerCSCode
        {
            get
            {
                if (bannerCSCode == null) bannerCSCode = "";
                return bannerCSCode;
            }
            set
            {
                bannerCSCode = value;
                if (bannerCSCode == null) bannerCSCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the footerCSCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string FooterCSCode
        {
            get
            {
                if (footerCSCode == null) footerCSCode = "";
                return footerCSCode;
            }
            set
            {
                footerCSCode = value;
                if (footerCSCode == null) footerCSCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the titleCSCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string TitleCSCode
        {
            get
            {
                if (titleCSCode == null) titleCSCode = "";
                return titleCSCode;
            }
            set
            {
                titleCSCode = value;
                if (titleCSCode == null) titleCSCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the descriptionCSCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string DescriptionCSCode
        {
            get
            {
                if (descriptionCSCode == null) descriptionCSCode = "";
                return descriptionCSCode;
            }
            set
            {
                descriptionCSCode = value;
                if (descriptionCSCode == null) descriptionCSCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the bannerCSProjCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string BannerCSProjCode
        {
            get
            {
                if (bannerCSProjCode == null) bannerCSProjCode = "";
                return bannerCSProjCode;
            }
            set
            {
                bannerCSProjCode = value;
                if (bannerCSProjCode == null) bannerCSProjCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the footerCSProjCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string FooterCSProjCode
        {
            get
            {
                if (footerCSProjCode == null) footerCSProjCode = "";
                return footerCSProjCode;
            }
            set
            {
                footerCSProjCode = value;
                if (footerCSProjCode == null) footerCSProjCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the titleCSProjCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string TitleCSProjCode
        {
            get
            {
                if (titleCSProjCode == null) titleCSProjCode = "";
                return titleCSProjCode;
            }
            set
            {
                titleCSProjCode = value;
                if (titleCSProjCode == null) titleCSProjCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the descriptionCSProjCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string DescriptionCSProjCode
        {
            get
            {
                if (descriptionCSProjCode == null) descriptionCSProjCode = "";
                return descriptionCSProjCode;
            }
            set
            {
                descriptionCSProjCode = value;
                if (descriptionCSProjCode == null) descriptionCSProjCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the bannerCSProjCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string BannerSLNCode
        {
            get
            {
                if (bannerSLNCode == null) bannerSLNCode = "";
                return bannerSLNCode;
            }
            set
            {
                bannerSLNCode = value;
                if (bannerSLNCode == null) bannerSLNCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the footerSLNCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string FooterSLNCode
        {
            get
            {
                if (footerSLNCode == null) footerSLNCode = "";
                return footerSLNCode;
            }
            set
            {
                footerSLNCode = value;
                if (footerSLNCode == null) footerSLNCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the titleSLNCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string TitleSLNCode
        {
            get
            {
                if (titleSLNCode == null) titleSLNCode = "";
                return titleSLNCode;
            }
            set
            {
                titleSLNCode = value;
                if (titleSLNCode == null) titleSLNCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Gets/Sets the descriptionSLNCode value. 
        /// </summary>
        /// <remarks>will never get or set null or empty string</remarks>
        /// <history>
        ///    21 May 11  Cynic - Started
        /// </history>
        public string DescriptionSLNCode
        {
            get
            {
                if (descriptionSLNCode == null) descriptionSLNCode = "";
                return descriptionSLNCode;
            }
            set
            {
                descriptionSLNCode = value;
                if (descriptionSLNCode == null) descriptionSLNCode = "";
            }
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Resets this object to its default settings
        /// </summary>
        /// <history>
        ///    22 May 11  Cynic - Started
        /// </history>
        public void ResetToDefaults()
        {
            BannerCSCode = DEFAULT_CSBANNER_CONTENT();
            FooterCSCode = DEFAULT_CSFOOTER_CONTENT();
            TitleCSCode = DEFAULT_CSTITLE_CONTENT();
            DescriptionCSCode = DEFAULT_CSDESC_CONTENT();

            BannerCSProjCode = DEFAULT_CSPROJBANNER_CONTENT();
            FooterCSProjCode = DEFAULT_CSPROJFOOTER_CONTENT();
            TitleCSProjCode = DEFAULT_CSPROJDESC_CONTENT();
            DescriptionCSProjCode = DEFAULT_CSPROJTITLE_CONTENT();

            UseCSProjCSBanner = DEFAULT_USE_CS_BANNER;
            UseCSProjCSFooter = DEFAULT_USE_CS_FOOTER;
            UseCSProjCSTitle = DEFAULT_USE_CS_TITLE;
            UseCSProjCSDesc = DEFAULT_USE_CS_DESC;

            BannerSLNCode = DEFAULT_SLNBANNER_CONTENT();
            FooterSLNCode = DEFAULT_SLNFOOTER_CONTENT();
            TitleSLNCode = DEFAULT_SLNDESC_CONTENT();
            DescriptionSLNCode = DEFAULT_SLNTITLE_CONTENT();

            UseSLNCSBanner = DEFAULT_USE_CS_BANNER;
            UseSLNCSFooter = DEFAULT_USE_CS_FOOTER;
            UseSLNCSTitle = DEFAULT_USE_CS_TITLE;
            UseSLNCSDesc = DEFAULT_USE_CS_DESC;

        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default title content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSTITLE_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("%INFILENAME% Source Code");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default title content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSDESC_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("HTML formatted source code for the %INFILENAME% file.");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default banner content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSBANNER_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<H1>%FILETYPE%: %INFILENAME_NOEXT%</H1>\r\n");
            sb.Append("<H3>Details</H3>\r\n");
            sb.Append("<div class=\"OISBannerContent\">");
            sb.Append("<span class=\"OISBannerLabel\">File:</span> %INFILENAME%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Dir:</span> %INFILEDIRECTORY%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Date:</span> %CURRENT_DATETIME%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Created by:</span> %USERNAME%<BR/>\r\n");
            sb.Append("</div> <!--bannerContent-->");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default footer content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSFOOTER_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("HTML Code Generated by %CODOCKERLINK%\r\n");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default title content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSPROJTITLE_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("%INFILENAME% Source Code");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default title content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSPROJDESC_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("HTML formatted source code for the %INFILENAME% file.");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default banner content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSPROJBANNER_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<H1>%FILETYPE%: %INFILENAME_NOEXT%</H1>\r\n");
            sb.Append("<H3>Details</H3>\r\n");
            sb.Append("<div class=\"OISBannerContent\">");
            sb.Append("<span class=\"OISBannerLabel\">File:</span> %INFILENAME%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Dir:</span> %INFILEDIRECTORY%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Date:</span> %CURRENT_DATETIME%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Created by:</span> %USERNAME%<BR/>\r\n");
            sb.Append("</div> <!--bannerContent-->");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default footer content
        /// </summary>
        /// <history>
        ///    20 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_CSPROJFOOTER_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("HTML Code Generated by %CODOCKERLINK%\r\n");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default title content
        /// </summary>
        /// <history>
        ///    23 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_SLNTITLE_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("%INFILENAME% Source Code");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default title content
        /// </summary>
        /// <history>
        ///    23 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_SLNDESC_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("HTML formatted source code for the %INFILENAME% file.");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default banner content
        /// </summary>
        /// <history>
        ///    23 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_SLNBANNER_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("<H1>%FILETYPE%: %INFILENAME_NOEXT%</H1>\r\n");
            sb.Append("<H3>Details</H3>\r\n");
            sb.Append("<div class=\"OISBannerContent\">");
            sb.Append("<span class=\"OISBannerLabel\">File:</span> %INFILENAME%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Dir:</span> %INFILEDIRECTORY%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Date:</span> %CURRENT_DATETIME%<BR/>\r\n");
            sb.Append("<span class=\"OISBannerLabel\">Created by:</span> %USERNAME%<BR/>\r\n");
            sb.Append("</div> <!--bannerContent-->");
            return sb.ToString();
        }

        /// +=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=+=
        /// <summary>
        /// Creates the default footer content
        /// </summary>
        /// <history>
        ///    23 May 11  Cynic - Started
        /// </history>
        private static string DEFAULT_SLNFOOTER_CONTENT()
        {
            StringBuilder sb = new StringBuilder();
            sb.Append("HTML Code Generated by %CODOCKERLINK%\r\n");
            return sb.ToString();
        }

    }
}
HTML Code Generated by CoDocker v00.90 Beta