Exemple #1
0
        // �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);
            }
        }
Exemple #2
0
 /// <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));
     }
 }
Exemple #3
0
 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);
     }
 }
Exemple #4
0
 // コンストラクタ
 public HtmlResponse()
 {
     string templateFile = WebConfigurationManager.AppSettings["EccmTemplate"];
     myXhtml = new Xhtml(templateFile);
 }
Exemple #5
0
 // �R���X�g���N�^
 public ReadOnlyList(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #6
0
        /*

        �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)
        {
        }
Exemple #7
0
 // �R���X�g���N�^
 public EcmList(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #8
0
 public MemberList(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #9
0
 public PluginManager(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #10
0
 // �R���X�g���N�^
 protected EcmProjectHandler(EcmProject proj, Xhtml xhtml)
 {
     myProject = proj;
     myXhtml = xhtml;
 }
Exemple #11
0
 public UntrackedFilesList(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #12
0
 public ErrorResponse(Xhtml xhtml, XmlNode x)
     : base(xhtml, x)
 {
 }
Exemple #13
0
 public TreeView(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #14
0
 public PreviewManager(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #15
0
 // �R���X�g���N�^
 public TemplateList(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }
Exemple #16
0
 public HtmlResponse(Xhtml xhtml, XmlNode x)
 {
     myXhtml = xhtml;
     myXhtml.Body.AppendChild(x);
 }
Exemple #17
0
 public ProjectSetting(EcmProject proj, Xhtml xhtml)
     : base(proj, xhtml)
 {
 }