// �v���p�e�B // �p�u���b�N���\�b�h public void Page_Load(Object source, EventArgs e) { myProjectDir = WebConfigurationManager.AppSettings[ProjectDirKey]; myHandlerDir = WebConfigurationManager.AppSettings["EccmHandler"]; string templateFile = WebConfigurationManager.AppSettings["EccmTemplate"]; if(string.IsNullOrEmpty(templateFile)){ throw new Exception("�e���v���[�g�t�@�C�����ݒ肳��Ă��܂���Bweb.config �� EccmTemplate ��ݒ肷��K�v������܂��B"); } if(!File.Exists(templateFile)){ throw new Exception("�e���v���[�g�t�@�C�����݂���܂���ł��� : " + templateFile); } xhtml = new Xhtml(templateFile); xhtml.Title.InnerText = "ECCM"; // �p�X�����邩�� string[] path = Request.PathInfo.Trim('/').Split('/'); try{ ProcessProject(path); } catch(Exception ex){ XmlElement alert = xhtml.CreateElement("pre"); alert.InnerText = ex.ToString(); xhtml.Body.PrependChild(alert); Response.Write(xhtml.OuterXml); } }
/// <summary> /// ���`�� Xhtml ��w�肵�āAXhtml �̐V�����C���X�^���X��쐬���܂��B /// </summary> public Xhtml(Xhtml html) : this() { if(html == null) throw new Exception("���ƂȂ� XHTML �� null �ł��B"); foreach(XmlNode x in html.ChildNodes){ AppendChild(this.ImportNode(x, true)); } }
public HtmlResponse(XmlNode x) { if(x is Xhtml){ myXhtml = x as Xhtml; } else { string templateFile = WebConfigurationManager.AppSettings["EccmTemplate"]; myXhtml = new Xhtml(templateFile); myXhtml.Body.AppendChild(x); } }
// コンストラクタ public HtmlResponse() { string templateFile = WebConfigurationManager.AppSettings["EccmTemplate"]; myXhtml = new Xhtml(templateFile); }
// �R���X�g���N�^ public ReadOnlyList(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
/* �O��ꊇpublish���� �O��́u���̃v���W�F�N�g�́v�ꊇpublish���O��ۑ� */ // �R���X�g���N�^ public AllParse(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
// �R���X�g���N�^ public EcmList(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
public MemberList(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
public PluginManager(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
// �R���X�g���N�^ protected EcmProjectHandler(EcmProject proj, Xhtml xhtml) { myProject = proj; myXhtml = xhtml; }
public UntrackedFilesList(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
public ErrorResponse(Xhtml xhtml, XmlNode x) : base(xhtml, x) { }
public TreeView(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
public PreviewManager(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
// �R���X�g���N�^ public TemplateList(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }
public HtmlResponse(Xhtml xhtml, XmlNode x) { myXhtml = xhtml; myXhtml.Body.AppendChild(x); }
public ProjectSetting(EcmProject proj, Xhtml xhtml) : base(proj, xhtml) { }