/// <include file='doc\StyleBuilderForm.uex' path='docs/doc[@for="StyleBuilderForm.InitSite"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        internal void InitSite(StyleBuilderSite site, string baseUrl)
        {
            builderSite = site;

            container = new StyleBuilderFormContainer(this);
            container.SetSite(site);

            context = new StyleBuilderUrlContext(baseUrl);
        }
        /// <include file='doc\StyleBuilderForm.uex' path='docs/doc[@for="StyleBuilderForm.Dispose"]/*' />
        /// <devdoc>
        ///    <para>[To be supplied.]</para>
        /// </devdoc>
        protected override void Dispose(bool disposing)
        {
            if (disposing)
            {
                styleObject  = null;
                editingStyle = null;

                container.SetSite(null);
                container = null;

                preview = null;
                context = null;

                pages = null;

                builderSite = null;
            }
            base.Dispose(disposing);
        }
        ///////////////////////////////////////////////////////////////////////
        // Constructor

        public StyleBuilderFormSite(StyleBuilderFormContainer container)
        {
            this.container = container;
        }