RetrieveStyleSheetExtensions() protected method

Retrieve SSX object of the current page from the server.
protected RetrieveStyleSheetExtensions ( ) : List
return List
Ejemplo n.º 1
0
        /// <summary>
        /// Builds a <code>SSXManager</code> for a remote wiki page.
        /// </summary>
        /// <param name="pageConverter">An instance of the <code>ConversionManager</code> for this page.</param>
        /// <returns>An instance of a <code>SSXManager</code>.</returns>
        public static SSXManager BuildFromServerPage(ConversionManager pageConverter)
        {
            SSXManager ssxManager = new SSXManager();

            ssxManager.pageFullName  = pageConverter.States.PageFullName;
            ssxManager.pageConverter = pageConverter;

            List <XWikiObject> ssxObjects = ssxManager.RetrieveStyleSheetExtensions();

            ssxManager.pageStyleSheetExtensions = ssxObjects;
            StringBuilder sb = new StringBuilder();

            foreach (XWikiObject ssxObject in ssxObjects)
            {
                sb.Append(ssxObject.objectDictionary["code"]);
                sb.Append(Environment.NewLine);
            }
            ssxManager.pageCSSContent = sb.ToString();

            return(ssxManager);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Builds a <code>SSXManager</code> for a remote wiki page.
        /// </summary>
        /// <param name="pageConverter">An instance of the <code>ConversionManager</code> for this page.</param>
        /// <returns>An instance of a <code>SSXManager</code>.</returns>
        public static SSXManager BuildFromServerPage(ConversionManager pageConverter)
        {
            SSXManager ssxManager = new SSXManager();
            ssxManager.pageFullName = pageConverter.States.PageFullName;
            ssxManager.pageConverter = pageConverter;

            List<XWikiObject> ssxObjects = ssxManager.RetrieveStyleSheetExtensions();

            ssxManager.pageStyleSheetExtensions = ssxObjects;
            StringBuilder sb = new StringBuilder();
            foreach (XWikiObject ssxObject in ssxObjects)
            {
                sb.Append(ssxObject.objectDictionary["code"]);
                sb.Append(Environment.NewLine);
            }
            ssxManager.pageCSSContent = sb.ToString();

            return ssxManager;
        }