public static void TraverseHglWorkBody(Element xe, hglWorkBody xw) { switch (xe.mode) { case Mode.TAG: xw.ElementWork(xe); if (xe.ChildCount > 0) { foreach (var c in xe.List()) { TraverseHglWorkBody(c, xw); } } xw.EndElementWork(xe); break; case Mode.COMENT: xw.CommentWork(xe); break; case Mode.TEXT: xw.TextWork(xe); //Debug.LogError("ModeText = " + xe); break; } }
public void Init(hglWorkBody xw, hglParseStyleSheet styleSheet, hglWindowInfo winInfo, hglRender hren, hglResourceMan resman) { m_hglWork = xw; m_styleSheet = styleSheet; m_htmlRender = hren; m_info = winInfo; m_resman = resman; m_hglForm = null; m_htmlRender.CreateRootBlock(winInfo.m_fixedWidth, float.MaxValue); RegisterAll(); }