Changeset 36483

Show
Ignore:
Timestamp:
01/20/10 14:46:28 (3 years ago)
Author:
hoge1e3
Message:
 
Location:
lang/csharp/soyText/soyText
Files:
1 added
10 modified

Legend:

Unmodified
Added
Removed
  • lang/csharp/soyText/soyText/DocumentSet.cs

    r34726 r36483  
    189189            } 
    190190        } 
     191        public void startWeb() 
     192        { 
     193            new Httpd(5001, (req, res) => 
     194            { 
     195                var u = req.Url; 
     196                var str = u.PathAndQuery; 
     197                //var m=Regex.Match(str,@"byId/"); 
     198                Debug.print(str); 
     199                var r = new Reg(@"/byID/"); 
     200                if (r.m(str)) 
     201                { 
     202                    var id = r.post; 
     203                    Debug.print("ID=" + id); 
     204                    Document d = byId(id); 
     205                    if (d != null) 
     206                    { 
     207   
     208                        var c = d.str["Content-Type"]; 
     209                        if (c==null) 
     210                        { 
     211                            c="text/plain; charset=utf-8"; 
     212                        } 
     213                        res.ContentType = c; 
     214                        Httpd.respondByString(res, d.body); 
     215                    } 
     216                    else 
     217                    { 
     218                        res.StatusCode = 404; 
     219                        Httpd.respondByString(res,id+" Not found"); 
     220                    } 
     221                } 
     222                else 
     223                { 
     224                    res.StatusCode = 400; 
     225                    Httpd.respondByString(res, "Invalid request: "+str); 
     226                } 
     227            }); 
     228        } 
    191229    } 
    192230} 
  • lang/csharp/soyText/soyText/EditorTab.Designer.cs

    r36349 r36483  
    4242            this.textMenu = new System.Windows.Forms.ContextMenuStrip(this.components); 
    4343            this.すべて選択AToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
     44            this.切り取りTToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
     45            this.copyStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 
     46            this.貼り付けPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
    4447            this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); 
    4548            this.topPanel = new System.Windows.Forms.Panel(); 
     
    5356            this.timer1 = new System.Windows.Forms.Timer(this.components); 
    5457            this.panel1 = new System.Windows.Forms.Panel(); 
    55             this.copyStripMenuItem1 = new System.Windows.Forms.ToolStripMenuItem(); 
    56             this.貼り付けPToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
    57             this.切り取りTToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
    5858            this.splitContainer1.Panel1.SuspendLayout(); 
    5959            this.splitContainer1.Panel2.SuspendLayout(); 
     
    199199            this.貼り付けPToolStripMenuItem}); 
    200200            this.textMenu.Name = "textMenu"; 
    201             this.textMenu.Size = new System.Drawing.Size(178, 114); 
     201            this.textMenu.Size = new System.Drawing.Size(178, 92); 
    202202            //  
    203203            // すべて選択AToolStripMenuItem 
     
    208208            this.すべて選択AToolStripMenuItem.Text = "すべて選択(&A)"; 
    209209            this.すべて選択AToolStripMenuItem.Click += new System.EventHandler(this.すべて選択AToolStripMenuItem_Click); 
     210            //  
     211            // 切り取りTToolStripMenuItem 
     212            //  
     213            this.切り取りTToolStripMenuItem.Name = "切り取りTToolStripMenuItem"; 
     214            this.切り取りTToolStripMenuItem.Size = new System.Drawing.Size(177, 22); 
     215            this.切り取りTToolStripMenuItem.Text = "切り取り(&T)"; 
     216            this.切り取りTToolStripMenuItem.Click += new System.EventHandler(this.切り取りTToolStripMenuItem_Click); 
     217            //  
     218            // copyStripMenuItem1 
     219            //  
     220            this.copyStripMenuItem1.Name = "copyStripMenuItem1"; 
     221            this.copyStripMenuItem1.Size = new System.Drawing.Size(177, 22); 
     222            this.copyStripMenuItem1.Text = "コピー(&C)"; 
     223            this.copyStripMenuItem1.Click += new System.EventHandler(this.copyStripMenuItem1_Click); 
     224            //  
     225            // 貼り付けPToolStripMenuItem 
     226            //  
     227            this.貼り付けPToolStripMenuItem.Name = "貼り付けPToolStripMenuItem"; 
     228            this.貼り付けPToolStripMenuItem.Size = new System.Drawing.Size(177, 22); 
     229            this.貼り付けPToolStripMenuItem.Text = "貼り付け(&P)"; 
     230            this.貼り付けPToolStripMenuItem.Click += new System.EventHandler(this.貼り付けPToolStripMenuItem_Click); 
    210231            //  
    211232            // tableLayoutPanel1 
     
    316337            this.panel1.Size = new System.Drawing.Size(200, 100); 
    317338            this.panel1.TabIndex = 6; 
    318             //  
    319             // copyStripMenuItem1 
    320             //  
    321             this.copyStripMenuItem1.Name = "copyStripMenuItem1"; 
    322             this.copyStripMenuItem1.Size = new System.Drawing.Size(177, 22); 
    323             this.copyStripMenuItem1.Text = "コピー(&C)"; 
    324             this.copyStripMenuItem1.Click += new System.EventHandler(this.copyStripMenuItem1_Click); 
    325             //  
    326             // 貼り付けPToolStripMenuItem 
    327             //  
    328             this.貼り付けPToolStripMenuItem.Name = "貼り付けPToolStripMenuItem"; 
    329             this.貼り付けPToolStripMenuItem.Size = new System.Drawing.Size(177, 22); 
    330             this.貼り付けPToolStripMenuItem.Text = "貼り付け(&P)"; 
    331             this.貼り付けPToolStripMenuItem.Click += new System.EventHandler(this.貼り付けPToolStripMenuItem_Click); 
    332             //  
    333             // 切り取りTToolStripMenuItem 
    334             //  
    335             this.切り取りTToolStripMenuItem.Name = "切り取りTToolStripMenuItem"; 
    336             this.切り取りTToolStripMenuItem.Size = new System.Drawing.Size(177, 22); 
    337             this.切り取りTToolStripMenuItem.Text = "切り取り(&T)"; 
    338             this.切り取りTToolStripMenuItem.Click += new System.EventHandler(this.切り取りTToolStripMenuItem_Click); 
    339339            //  
    340340            // EditorTab 
  • lang/csharp/soyText/soyText/Form2.Designer.cs

    r36255 r36483  
    5757            this.検索キャッシュ消去RToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
    5858            this.tabControl1 = new SoyText.TabControl2(); 
     59            this.webStartToolStripMenuItem = new System.Windows.Forms.ToolStripMenuItem(); 
    5960            this.menuStrip1.SuspendLayout(); 
    6061            this.tabMenu.SuspendLayout(); 
     
    183184            this.実行RToolStripMenuItem.DropDownItems.AddRange(new System.Windows.Forms.ToolStripItem[] { 
    184185            this.外部プログラムを実行RToolStripMenuItem, 
    185             this.tESTToolStripMenuItem}); 
     186            this.tESTToolStripMenuItem, 
     187            this.webStartToolStripMenuItem}); 
    186188            this.実行RToolStripMenuItem.Name = "実行RToolStripMenuItem"; 
    187189            this.実行RToolStripMenuItem.Size = new System.Drawing.Size(57, 20); 
     
    276278            this.tabControl1.MouseDown += new System.Windows.Forms.MouseEventHandler(this.tabControl1_MouseDown); 
    277279            this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged); 
     280            //  
     281            // webStartToolStripMenuItem 
     282            //  
     283            this.webStartToolStripMenuItem.Name = "webStartToolStripMenuItem"; 
     284            this.webStartToolStripMenuItem.Size = new System.Drawing.Size(206, 22); 
     285            this.webStartToolStripMenuItem.Text = "Web Start"; 
     286            this.webStartToolStripMenuItem.Click += new System.EventHandler(this.webStartToolStripMenuItem_Click); 
    278287            //  
    279288            // Form2 
     
    328337        private ToolStripMenuItem 進むFToolStripMenuItem; 
    329338        private ToolStripMenuItem 検索キャッシュ消去RToolStripMenuItem; 
     339        private ToolStripMenuItem webStartToolStripMenuItem; 
    330340    } 
    331341} 
  • lang/csharp/soyText/soyText/bin/Debug/soyText.application

    r36255 r36483  
    1212        </dsig:Transforms> 
    1313        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    14         <dsig:DigestValue>jYuLRPjYW2H2N5bCInHlr6aKX0g=</dsig:DigestValue> 
     14        <dsig:DigestValue>+n0XdRSe6D2bZay45IS0W1pBprg=</dsig:DigestValue> 
    1515      </hash> 
    1616    </dependentAssembly> 
  • lang/csharp/soyText/soyText/bin/Debug/soyText.exe.manifest

    r36255 r36483  
    113113  </dependency> 
    114114  <dependency> 
    115     <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="soyText.exe" size="113664"> 
     115    <dependentAssembly dependencyType="install" allowDelayedBinding="true" codebase="soyText.exe" size="116736"> 
    116116      <assemblyIdentity name="soyText" version="1.0.0.0" language="neutral" processorArchitecture="msil" /> 
    117117      <hash> 
     
    120120        </dsig:Transforms> 
    121121        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    122         <dsig:DigestValue>jXCclsclMRGudaPRlZ+ZGKhywMA=</dsig:DigestValue> 
     122        <dsig:DigestValue>bZRiNqScmCfaEPQqQrIPGK5PrKQ=</dsig:DigestValue> 
    123123      </hash> 
    124124    </dependentAssembly> 
  • lang/csharp/soyText/soyText/bin/Debug/soyText.vshost.application

    r36255 r36483  
    1212        </dsig:Transforms> 
    1313        <dsig:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" /> 
    14         <dsig:DigestValue>jYuLRPjYW2H2N5bCInHlr6aKX0g=</dsig:DigestValue> 
     14        <dsig:DigestValue>+n0XdRSe6D2bZay45IS0W1pBprg=</dsig:DigestValue> 
    1515      </hash> 
    1616    </dependentAssembly> 
  • lang/csharp/soyText/soyText/soyText.csproj

    r36101 r36483  
    137137      <DependentUpon>Form2.cs</DependentUpon> 
    138138    </Compile> 
     139    <Compile Include="Httpd.cs" /> 
    139140    <Compile Include="IDocumentSearcher.cs" /> 
    140141    <Compile Include="ImportDialog.cs">