namespace CSharpToHTML
{
/// <summary>OptionForm</summary>
public class OptionForm : System.Windows.Forms.Form
{
#region デザイナ変数
private System.Windows.Forms.Label tabLabel1;
private System.Windows.Forms.Label tabLabel2;
private System.Windows.Forms.ComboBox tabComboBox;
private System.Windows.Forms.Label encodingLabel;
private System.Windows.Forms.ComboBox encodingComboBox;
private System.Windows.Forms.TextBox commentOpenTextBox;
private System.Windows.Forms.TextBox commentCloseTextBox;
private System.Windows.Forms.Label commentCloseLabel;
private System.Windows.Forms.TextBox keywordCloseTextBox;
private System.Windows.Forms.Label keywordCloseLabel;
private System.Windows.Forms.TextBox keywordOpenTextBox;
private System.Windows.Forms.Label keywordOpenLabel;
private System.Windows.Forms.TextBox markCloseTextBox;
private System.Windows.Forms.Label markCloseLabel;
private System.Windows.Forms.TextBox markOpenTextBox;
private System.Windows.Forms.Label markOpenLabel;
private System.Windows.Forms.Label commentOpenLabel;
private System.Windows.Forms.Button keywordButton;
private System.Windows.Forms.Button initializeKeywordTextButton;
private System.Windows.Forms.TextBox doubleQuotationCloseTextBox;
private System.Windows.Forms.Label doubleQuotationCloseLabel;
private System.Windows.Forms.TextBox doubleQuotationOpenTextBox;
private System.Windows.Forms.Label doubleQuotationOpenLabel;
private System.Windows.Forms.TextBox singleQuotationCloseTextBox;
private System.Windows.Forms.Label singleQuotationCloseLabel;
private System.Windows.Forms.TextBox singleQuotationOpenTextBox;
private System.Windows.Forms.Label singleQuotationOpenLabel;
private System.Windows.Forms.Button okButton;
private System.Windows.Forms.Button cancelButton;
private System.Windows.Forms.Label headerLabel;
private System.Windows.Forms.TextBox headerTextBox;
private System.Windows.Forms.Label footerLabel;
private System.Windows.Forms.TextBox footerTextBox;
private System.Windows.Forms.CheckBox preModeCheckBox;
private System.Windows.Forms.GroupBox detailGroupBox;
private System.Windows.Forms.CheckBox browserModeCheckBox;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button browserButton;
private System.Windows.Forms.TextBox browserTextBox;
private System.Windows.Forms.GroupBox otherGroupBox;
/// <summary>必要なデザイナ変数</summary>
private System.ComponentModel.Container components = null;
#endregion // デザイナ変数
#region Constructor
public OptionForm(System.Drawing.Font font)
{
// Windows フォーム デザイナ サポートに必要
InitializeComponent();
initialize();
this.font = font;
}
#endregion // Constructor
#region Overrides
/// <summary>使用されているリソースに後処理を実行</summary>
protected override void Dispose(bool disposing)
{
if (disposing)
{
if (components != null)
{
components.Dispose();
}
}
base.Dispose(disposing);
}
#endregion // Overrides
#region Windows Form Designer generated code
/// <summary>
/// デザイナ サポートに必要なメソッド
/// </summary>
private void InitializeComponent()
{
this.tabLabel1 = new System.Windows.Forms.Label();
this.tabLabel2 = new System.Windows.Forms.Label();
this.tabComboBox = new System.Windows.Forms.ComboBox();
this.encodingComboBox = new System.Windows.Forms.ComboBox();
this.encodingLabel = new System.Windows.Forms.Label();
this.commentOpenLabel = new System.Windows.Forms.Label();
this.commentOpenTextBox = new System.Windows.Forms.TextBox();
this.commentCloseTextBox = new System.Windows.Forms.TextBox();
this.commentCloseLabel = new System.Windows.Forms.Label();
this.keywordCloseTextBox = new System.Windows.Forms.TextBox();
this.keywordCloseLabel = new System.Windows.Forms.Label();
this.keywordOpenTextBox = new System.Windows.Forms.TextBox();
this.keywordOpenLabel = new System.Windows.Forms.Label();
this.markCloseTextBox = new System.Windows.Forms.TextBox();
this.markCloseLabel = new System.Windows.Forms.Label();
this.markOpenTextBox = new System.Windows.Forms.TextBox();
this.markOpenLabel = new System.Windows.Forms.Label();
this.keywordButton = new System.Windows.Forms.Button();
this.initializeKeywordTextButton = new System.Windows.Forms.Button();
this.doubleQuotationCloseTextBox = new System.Windows.Forms.TextBox();
this.doubleQuotationCloseLabel = new System.Windows.Forms.Label();
this.doubleQuotationOpenTextBox = new System.Windows.Forms.TextBox();
this.doubleQuotationOpenLabel = new System.Windows.Forms.Label();
this.singleQuotationCloseTextBox = new System.Windows.Forms.TextBox();
this.singleQuotationCloseLabel = new System.Windows.Forms.Label();
this.singleQuotationOpenTextBox = new System.Windows.Forms.TextBox();
this.singleQuotationOpenLabel = new System.Windows.Forms.Label();
this.okButton = new System.Windows.Forms.Button();
this.cancelButton = new System.Windows.Forms.Button();
this.headerLabel = new System.Windows.Forms.Label();
this.headerTextBox = new System.Windows.Forms.TextBox();
this.footerLabel = new System.Windows.Forms.Label();
this.footerTextBox = new System.Windows.Forms.TextBox();
this.preModeCheckBox = new System.Windows.Forms.CheckBox();
this.detailGroupBox = new System.Windows.Forms.GroupBox();
this.otherGroupBox = new System.Windows.Forms.GroupBox();
this.browserModeCheckBox = new System.Windows.Forms.CheckBox();
this.browserTextBox = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.browserButton = new System.Windows.Forms.Button();
this.otherGroupBox.SuspendLayout();
this.SuspendLayout();
//
// tabLabel1
//
this.tabLabel1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.tabLabel1.Location = new System.Drawing.Point(368, 56);
this.tabLabel1.Name = "tabLabel1";
this.tabLabel1.Size = new System.Drawing.Size(200, 23);
this.tabLabel1.TabIndex = 28;
this.tabLabel1.Text = "タブを何文字分のスペースに変換するか";
//
// tabLabel2
//
this.tabLabel2.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.tabLabel2.Location = new System.Drawing.Point(664, 56);
this.tabLabel2.Name = "tabLabel2";
this.tabLabel2.Size = new System.Drawing.Size(48, 23);
this.tabLabel2.TabIndex = 30;
this.tabLabel2.Text = "文字分";
//
// tabComboBox
//
this.tabComboBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.tabComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.tabComboBox.Items.AddRange(new object[] {
"2",
"4",
"8"});
this.tabComboBox.Location = new System.Drawing.Point(584, 56);
this.tabComboBox.Name = "tabComboBox";
this.tabComboBox.Size = new System.Drawing.Size(72, 20);
this.tabComboBox.TabIndex = 29;
//
// encodingComboBox
//
this.encodingComboBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.encodingComboBox.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.encodingComboBox.ItemHeight = 12;
this.encodingComboBox.Items.AddRange(new object[] {
"シフトJIS",
"EUC",
"Unicode (UTF-8)"});
this.encodingComboBox.Location = new System.Drawing.Point(432, 80);
this.encodingComboBox.Name = "encodingComboBox";
this.encodingComboBox.Size = new System.Drawing.Size(136, 20);
this.encodingComboBox.TabIndex = 32;
//
// encodingLabel
//
this.encodingLabel.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.encodingLabel.Location = new System.Drawing.Point(368, 80);
this.encodingLabel.Name = "encodingLabel";
this.encodingLabel.Size = new System.Drawing.Size(56, 23);
this.encodingLabel.TabIndex = 31;
this.encodingLabel.Text = "エンコード";
//
// commentOpenLabel
//
this.commentOpenLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.commentOpenLabel.Location = new System.Drawing.Point(24, 248);
this.commentOpenLabel.Name = "commentOpenLabel";
this.commentOpenLabel.Size = new System.Drawing.Size(144, 16);
this.commentOpenLabel.TabIndex = 6;
this.commentOpenLabel.Text = "コメント開始タグ (HTML)";
//
// commentOpenTextBox
//
this.commentOpenTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.commentOpenTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.commentOpenTextBox.Location = new System.Drawing.Point(24, 264);
this.commentOpenTextBox.Name = "commentOpenTextBox";
this.commentOpenTextBox.Size = new System.Drawing.Size(304, 19);
this.commentOpenTextBox.TabIndex = 7;
this.commentOpenTextBox.Text = "";
//
// commentCloseTextBox
//
this.commentCloseTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.commentCloseTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.commentCloseTextBox.Location = new System.Drawing.Point(24, 304);
this.commentCloseTextBox.Name = "commentCloseTextBox";
this.commentCloseTextBox.Size = new System.Drawing.Size(304, 19);
this.commentCloseTextBox.TabIndex = 9;
this.commentCloseTextBox.Text = "";
//
// commentCloseLabel
//
this.commentCloseLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.commentCloseLabel.Location = new System.Drawing.Point(24, 288);
this.commentCloseLabel.Name = "commentCloseLabel";
this.commentCloseLabel.Size = new System.Drawing.Size(136, 16);
this.commentCloseLabel.TabIndex = 8;
this.commentCloseLabel.Text = "コメント終了タグ (HTML)";
//
// keywordCloseTextBox
//
this.keywordCloseTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.keywordCloseTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.keywordCloseTextBox.Location = new System.Drawing.Point(24, 384);
this.keywordCloseTextBox.Name = "keywordCloseTextBox";
this.keywordCloseTextBox.Size = new System.Drawing.Size(304, 19);
this.keywordCloseTextBox.TabIndex = 13;
this.keywordCloseTextBox.Text = "";
//
// keywordCloseLabel
//
this.keywordCloseLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.keywordCloseLabel.Location = new System.Drawing.Point(24, 368);
this.keywordCloseLabel.Name = "keywordCloseLabel";
this.keywordCloseLabel.Size = new System.Drawing.Size(152, 16);
this.keywordCloseLabel.TabIndex = 12;
this.keywordCloseLabel.Text = "キーワード終了タグ (HTML)";
//
// keywordOpenTextBox
//
this.keywordOpenTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.keywordOpenTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.keywordOpenTextBox.Location = new System.Drawing.Point(24, 344);
this.keywordOpenTextBox.Name = "keywordOpenTextBox";
this.keywordOpenTextBox.Size = new System.Drawing.Size(304, 19);
this.keywordOpenTextBox.TabIndex = 11;
this.keywordOpenTextBox.Text = "";
//
// keywordOpenLabel
//
this.keywordOpenLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.keywordOpenLabel.Location = new System.Drawing.Point(24, 328);
this.keywordOpenLabel.Name = "keywordOpenLabel";
this.keywordOpenLabel.Size = new System.Drawing.Size(144, 16);
this.keywordOpenLabel.TabIndex = 10;
this.keywordOpenLabel.Text = "キーワード開始タグ (HTML)";
//
// markCloseTextBox
//
this.markCloseTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.markCloseTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.markCloseTextBox.Location = new System.Drawing.Point(24, 464);
this.markCloseTextBox.Name = "markCloseTextBox";
this.markCloseTextBox.Size = new System.Drawing.Size(304, 19);
this.markCloseTextBox.TabIndex = 17;
this.markCloseTextBox.Text = "";
//
// markCloseLabel
//
this.markCloseLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.markCloseLabel.Location = new System.Drawing.Point(24, 448);
this.markCloseLabel.Name = "markCloseLabel";
this.markCloseLabel.Size = new System.Drawing.Size(120, 16);
this.markCloseLabel.TabIndex = 16;
this.markCloseLabel.Text = "記号終了タグ (HTML)";
//
// markOpenTextBox
//
this.markOpenTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.markOpenTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.markOpenTextBox.Location = new System.Drawing.Point(24, 424);
this.markOpenTextBox.Name = "markOpenTextBox";
this.markOpenTextBox.Size = new System.Drawing.Size(304, 19);
this.markOpenTextBox.TabIndex = 15;
this.markOpenTextBox.Text = "";
//
// markOpenLabel
//
this.markOpenLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.markOpenLabel.Location = new System.Drawing.Point(24, 408);
this.markOpenLabel.Name = "markOpenLabel";
this.markOpenLabel.Size = new System.Drawing.Size(128, 16);
this.markOpenLabel.TabIndex = 14;
this.markOpenLabel.Text = "記号開始タグ (HTML)";
//
// keywordButton
//
this.keywordButton.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.keywordButton.Location = new System.Drawing.Point(368, 112);
this.keywordButton.Name = "keywordButton";
this.keywordButton.Size = new System.Drawing.Size(104, 23);
this.keywordButton.TabIndex = 33;
this.keywordButton.Text = "キーワード一覧";
this.keywordButton.Click += new System.EventHandler(this.keywordButton_Click);
//
// initializeKeywordTextButton
//
this.initializeKeywordTextButton.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.initializeKeywordTextButton.Location = new System.Drawing.Point(488, 112);
this.initializeKeywordTextButton.Name = "initializeKeywordTextButton";
this.initializeKeywordTextButton.Size = new System.Drawing.Size(128, 23);
this.initializeKeywordTextButton.TabIndex = 34;
this.initializeKeywordTextButton.Text = "キーワード再読み込み";
this.initializeKeywordTextButton.Click += new System.EventHandler(this.initializeKeywordTextButton_Click);
//
// doubleQuotationCloseTextBox
//
this.doubleQuotationCloseTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.doubleQuotationCloseTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.doubleQuotationCloseTextBox.Location = new System.Drawing.Point(24, 544);
this.doubleQuotationCloseTextBox.Name = "doubleQuotationCloseTextBox";
this.doubleQuotationCloseTextBox.Size = new System.Drawing.Size(304, 19);
this.doubleQuotationCloseTextBox.TabIndex = 21;
this.doubleQuotationCloseTextBox.Text = "";
//
// doubleQuotationCloseLabel
//
this.doubleQuotationCloseLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.doubleQuotationCloseLabel.Location = new System.Drawing.Point(24, 528);
this.doubleQuotationCloseLabel.Name = "doubleQuotationCloseLabel";
this.doubleQuotationCloseLabel.Size = new System.Drawing.Size(232, 16);
this.doubleQuotationCloseLabel.TabIndex = 20;
this.doubleQuotationCloseLabel.Text = "ダブル クォーテーション マーク終了タグ (HTML)";
//
// doubleQuotationOpenTextBox
//
this.doubleQuotationOpenTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.doubleQuotationOpenTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.doubleQuotationOpenTextBox.Location = new System.Drawing.Point(24, 504);
this.doubleQuotationOpenTextBox.Name = "doubleQuotationOpenTextBox";
this.doubleQuotationOpenTextBox.Size = new System.Drawing.Size(304, 19);
this.doubleQuotationOpenTextBox.TabIndex = 19;
this.doubleQuotationOpenTextBox.Text = "";
//
// doubleQuotationOpenLabel
//
this.doubleQuotationOpenLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.doubleQuotationOpenLabel.Location = new System.Drawing.Point(24, 488);
this.doubleQuotationOpenLabel.Name = "doubleQuotationOpenLabel";
this.doubleQuotationOpenLabel.Size = new System.Drawing.Size(232, 16);
this.doubleQuotationOpenLabel.TabIndex = 18;
this.doubleQuotationOpenLabel.Text = "ダブル クォーテーション マーク開始タグ (HTML)";
//
// singleQuotationCloseTextBox
//
this.singleQuotationCloseTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.singleQuotationCloseTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.singleQuotationCloseTextBox.Location = new System.Drawing.Point(24, 624);
this.singleQuotationCloseTextBox.Name = "singleQuotationCloseTextBox";
this.singleQuotationCloseTextBox.Size = new System.Drawing.Size(304, 19);
this.singleQuotationCloseTextBox.TabIndex = 25;
this.singleQuotationCloseTextBox.Text = "";
//
// singleQuotationCloseLabel
//
this.singleQuotationCloseLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.singleQuotationCloseLabel.Location = new System.Drawing.Point(24, 608);
this.singleQuotationCloseLabel.Name = "singleQuotationCloseLabel";
this.singleQuotationCloseLabel.Size = new System.Drawing.Size(256, 16);
this.singleQuotationCloseLabel.TabIndex = 24;
this.singleQuotationCloseLabel.Text = "シングル クォーテーション マーク終了タグ (HTML)";
//
// singleQuotationOpenTextBox
//
this.singleQuotationOpenTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.singleQuotationOpenTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.singleQuotationOpenTextBox.Location = new System.Drawing.Point(24, 584);
this.singleQuotationOpenTextBox.Name = "singleQuotationOpenTextBox";
this.singleQuotationOpenTextBox.Size = new System.Drawing.Size(304, 19);
this.singleQuotationOpenTextBox.TabIndex = 23;
this.singleQuotationOpenTextBox.Text = "";
//
// singleQuotationOpenLabel
//
this.singleQuotationOpenLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.singleQuotationOpenLabel.Location = new System.Drawing.Point(24, 568);
this.singleQuotationOpenLabel.Name = "singleQuotationOpenLabel";
this.singleQuotationOpenLabel.Size = new System.Drawing.Size(248, 16);
this.singleQuotationOpenLabel.TabIndex = 22;
this.singleQuotationOpenLabel.Text = "シングル クォーテーション マーク開始タグ (HTML)";
//
// okButton
//
this.okButton.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
this.okButton.DialogResult = System.Windows.Forms.DialogResult.OK;
this.okButton.Location = new System.Drawing.Point(552, 624);
this.okButton.Name = "okButton";
this.okButton.TabIndex = 39;
this.okButton.Text = "OK";
this.okButton.Click += new System.EventHandler(this.okButton_Click);
//
// cancelButton
//
this.cancelButton.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right);
this.cancelButton.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.cancelButton.Location = new System.Drawing.Point(632, 624);
this.cancelButton.Name = "cancelButton";
this.cancelButton.TabIndex = 40;
this.cancelButton.Text = "キャンセル";
//
// headerLabel
//
this.headerLabel.Location = new System.Drawing.Point(24, 24);
this.headerLabel.Name = "headerLabel";
this.headerLabel.Size = new System.Drawing.Size(100, 16);
this.headerLabel.TabIndex = 2;
this.headerLabel.Text = "ヘッダー (HTML)";
//
// headerTextBox
//
this.headerTextBox.AcceptsTab = true;
this.headerTextBox.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.headerTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.headerTextBox.Location = new System.Drawing.Point(24, 40);
this.headerTextBox.Multiline = true;
this.headerTextBox.Name = "headerTextBox";
this.headerTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.headerTextBox.Size = new System.Drawing.Size(304, 96);
this.headerTextBox.TabIndex = 3;
this.headerTextBox.Text = "";
//
// footerLabel
//
this.footerLabel.Anchor = (System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left);
this.footerLabel.Location = new System.Drawing.Point(24, 152);
this.footerLabel.Name = "footerLabel";
this.footerLabel.Size = new System.Drawing.Size(100, 16);
this.footerLabel.TabIndex = 4;
this.footerLabel.Text = "フッター (HTML)";
//
// footerTextBox
//
this.footerTextBox.AcceptsTab = true;
this.footerTextBox.Anchor = ((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.footerTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.footerTextBox.Location = new System.Drawing.Point(24, 168);
this.footerTextBox.Multiline = true;
this.footerTextBox.Name = "footerTextBox";
this.footerTextBox.ScrollBars = System.Windows.Forms.ScrollBars.Both;
this.footerTextBox.Size = new System.Drawing.Size(304, 72);
this.footerTextBox.TabIndex = 5;
this.footerTextBox.Text = "";
//
// preModeCheckBox
//
this.preModeCheckBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.preModeCheckBox.Location = new System.Drawing.Point(368, 24);
this.preModeCheckBox.Name = "preModeCheckBox";
this.preModeCheckBox.Size = new System.Drawing.Size(184, 24);
this.preModeCheckBox.TabIndex = 27;
this.preModeCheckBox.Text = "<pre> タグを使用する";
//
// detailGroupBox
//
this.detailGroupBox.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right);
this.detailGroupBox.Location = new System.Drawing.Point(8, 8);
this.detailGroupBox.Name = "detailGroupBox";
this.detailGroupBox.Size = new System.Drawing.Size(336, 648);
this.detailGroupBox.TabIndex = 1;
this.detailGroupBox.TabStop = false;
this.detailGroupBox.Text = "HTML設定";
//
// otherGroupBox
//
this.otherGroupBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.otherGroupBox.Controls.AddRange(new System.Windows.Forms.Control[] {
this.browserModeCheckBox,
this.browserTextBox,
this.label1,
this.browserButton});
this.otherGroupBox.Location = new System.Drawing.Point(352, 8);
this.otherGroupBox.Name = "otherGroupBox";
this.otherGroupBox.Size = new System.Drawing.Size(368, 216);
this.otherGroupBox.TabIndex = 26;
this.otherGroupBox.TabStop = false;
this.otherGroupBox.Text = "その他の設定";
//
// browserModeCheckBox
//
this.browserModeCheckBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.browserModeCheckBox.Location = new System.Drawing.Point(16, 136);
this.browserModeCheckBox.Name = "browserModeCheckBox";
this.browserModeCheckBox.Size = new System.Drawing.Size(248, 24);
this.browserModeCheckBox.TabIndex = 35;
this.browserModeCheckBox.Text = "デフォルト以外のHTMLブラウザを使用する";
this.browserModeCheckBox.CheckedChanged += new System.EventHandler(this.browserModeCheckBox_CheckedChanged);
//
// browserTextBox
//
this.browserTextBox.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.browserTextBox.Font = new System.Drawing.Font("MS ゴシック", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(128)));
this.browserTextBox.Location = new System.Drawing.Point(16, 184);
this.browserTextBox.Name = "browserTextBox";
this.browserTextBox.Size = new System.Drawing.Size(280, 19);
this.browserTextBox.TabIndex = 37;
this.browserTextBox.Text = "";
//
// label1
//
this.label1.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.label1.Location = new System.Drawing.Point(16, 168);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(152, 16);
this.label1.TabIndex = 36;
this.label1.Text = "HTMLブラウザのパス";
//
// browserButton
//
this.browserButton.Anchor = (System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right);
this.browserButton.Location = new System.Drawing.Point(304, 184);
this.browserButton.Name = "browserButton";
this.browserButton.Size = new System.Drawing.Size(48, 23);
this.browserButton.TabIndex = 38;
this.browserButton.Text = "参照...";
this.browserButton.Click += new System.EventHandler(this.browserButton_Click);
//
// OptionForm
//
this.AcceptButton = this.okButton;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 12);
this.CancelButton = this.cancelButton;
this.ClientSize = new System.Drawing.Size(728, 662);
this.ControlBox = false;
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.preModeCheckBox,
this.footerLabel,
this.footerTextBox,
this.headerLabel,
this.headerTextBox,
this.cancelButton,
this.okButton,
this.singleQuotationCloseTextBox,
this.singleQuotationCloseLabel,
this.singleQuotationOpenTextBox,
this.singleQuotationOpenLabel,
this.doubleQuotationCloseTextBox,
this.doubleQuotationCloseLabel,
this.doubleQuotationOpenTextBox,
this.doubleQuotationOpenLabel,
this.markCloseTextBox,
this.markCloseLabel,
this.markOpenTextBox,
this.markOpenLabel,
this.keywordCloseTextBox,
this.keywordCloseLabel,
this.keywordOpenTextBox,
this.keywordOpenLabel,
this.commentCloseTextBox,
this.commentCloseLabel,
this.commentOpenTextBox,
this.commentOpenLabel,
this.encodingComboBox,
this.encodingLabel,
this.tabComboBox,
this.tabLabel2,
this.tabLabel1,
this.keywordButton,
this.initializeKeywordTextButton,
this.detailGroupBox,
this.otherGroupBox});
this.MaximizeBox = false;
this.MinimizeBox = false;
this.MinimumSize = new System.Drawing.Size(584, 656);
this.Name = "OptionForm";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterParent;
this.Text = "CSharpToHTML - 詳細設定";
this.otherGroupBox.ResumeLayout(false);
this.ResumeLayout(false);
}
#endregion // Windows Form Designer generated code
#region Privates
private System.Drawing.Font font
{
get
{
return headerTextBox.Font;
}
set
{
headerTextBox.Font = value;
footerTextBox.Font = value;
singleQuotationOpenTextBox.Font = value;
singleQuotationCloseTextBox.Font = value;
doubleQuotationOpenTextBox.Font = value;
doubleQuotationCloseTextBox.Font = value;
commentOpenTextBox.Font = value;
commentCloseTextBox.Font = value;
keywordCloseTextBox.Font = value;
keywordOpenTextBox.Font = value;
markCloseTextBox.Font = value;
markOpenTextBox.Font = value;
}
}
private void initialize()
{
fromProperty();
}
private void fromProperty()
{
headerTextBox.Lines = CtoHTML.CtoHTML.headerText;
footerTextBox.Lines = CtoHTML.CtoHTML.footerText;
singleQuotationOpenTextBox .Text = CtoHTML.CtoHTML.singleQuotationTagOpen ;
singleQuotationCloseTextBox.Text = CtoHTML.CtoHTML.singleQuotationTagClose;
doubleQuotationOpenTextBox .Text = CtoHTML.CtoHTML.doubleQuotationTagOpen ;
doubleQuotationCloseTextBox.Text = CtoHTML.CtoHTML.doubleQuotationTagClose;
commentOpenTextBox .Text = CtoHTML.CtoHTML.commentTagOpen;
commentCloseTextBox .Text = CtoHTML.CtoHTML.commentTagClose;
keywordOpenTextBox .Text = CtoHTML.CtoHTML.keywordTagOpen;
keywordCloseTextBox .Text = CtoHTML.CtoHTML.keywordTagClose;
markOpenTextBox .Text = CtoHTML.CtoHTML.markTagOpen;
markCloseTextBox .Text = CtoHTML.CtoHTML.markTagClose;
preModeCheckBox.Checked = CtoHTML.CtoHTML.preMode;
browserModeCheckBox.Checked = CtoHTML.CtoHTML.browserMode;
browserTextBox .Text = CtoHTML.CtoHTML.browser;
browserTextBox.Enabled = CtoHTML.CtoHTML.browserMode;
browserButton .Enabled = CtoHTML.CtoHTML.browserMode;
switch (CtoHTML.CtoHTML.tab)
{
case CtoHTML.CtoHTML.Tab.Tab_2: tabComboBox.SelectedIndex = 0; break;
case CtoHTML.CtoHTML.Tab.Tab_4: tabComboBox.SelectedIndex = 1; break;
case CtoHTML.CtoHTML.Tab.Tab_8: tabComboBox.SelectedIndex = 2; break;
default : tabComboBox.SelectedIndex = -1; break;
}
encodingComboBox.SelectedIndex = CtoHTML.CtoHTML.encodingToIndex(CtoHTML.CtoHTML.encoding);
}
private void toProperty()
{
CtoHTML.CtoHTML.headerText = headerTextBox.Lines;
CtoHTML.CtoHTML.footerText = footerTextBox.Lines;
CtoHTML.CtoHTML.singleQuotationTagOpen = singleQuotationOpenTextBox .Text;
CtoHTML.CtoHTML.singleQuotationTagClose = singleQuotationCloseTextBox.Text;
CtoHTML.CtoHTML.doubleQuotationTagOpen = doubleQuotationOpenTextBox .Text;
CtoHTML.CtoHTML.doubleQuotationTagClose = doubleQuotationCloseTextBox.Text;
CtoHTML.CtoHTML.commentTagOpen = commentOpenTextBox .Text;
CtoHTML.CtoHTML.commentTagClose = commentCloseTextBox .Text;
CtoHTML.CtoHTML.keywordTagOpen = keywordOpenTextBox .Text;
CtoHTML.CtoHTML.keywordTagClose = keywordCloseTextBox .Text;
CtoHTML.CtoHTML.markTagOpen = markOpenTextBox .Text;
CtoHTML.CtoHTML.markTagClose = markCloseTextBox .Text;
CtoHTML.CtoHTML.preMode = preModeCheckBox.Checked ;
CtoHTML.CtoHTML.browserMode = browserModeCheckBox.Checked;
CtoHTML.CtoHTML.browser = browserTextBox .Text;
switch (tabComboBox.SelectedIndex)
{
case 0 : CtoHTML.CtoHTML.tab = CtoHTML.CtoHTML.Tab.Tab_2; break;
case 1 : CtoHTML.CtoHTML.tab = CtoHTML.CtoHTML.Tab.Tab_4; break;
case 2 : CtoHTML.CtoHTML.tab = CtoHTML.CtoHTML.Tab.Tab_8; break;
default: CtoHTML.CtoHTML.tab = CtoHTML.CtoHTML.Tab.Tab_4; break;
}
CtoHTML.CtoHTML.encoding = CtoHTML.CtoHTML.indexToEncoding(encodingComboBox.SelectedIndex);
}
#endregion // Privates
#region Handler
private void keywordButton_Click(object sender, System.EventArgs e)
{
System.Diagnostics.Process.Start(CtoHTML.CtoHTML.keywordFileName);
}
private void initializeKeywordTextButton_Click(object sender, System.EventArgs e)
{
CtoHTML.CtoHTML.initializeKeywordText();
}
private void browserModeCheckBox_CheckedChanged(object sender, System.EventArgs e)
{
browserTextBox.Enabled = browserModeCheckBox.Checked;
browserButton .Enabled = browserModeCheckBox.Checked;
}
private void browserButton_Click(object sender, System.EventArgs e)
{
System.Windows.Forms.OpenFileDialog openFileDialog = new System.Windows.Forms.OpenFileDialog();
openFileDialog.Filter = "プログラム|*.exe;*.cmd;*.bat|All files (*.*)|*.*";
openFileDialog.FilterIndex = 0;
openFileDialog.RestoreDirectory = true ;
if (openFileDialog.ShowDialog() == System.Windows.Forms.DialogResult.OK)
{
browserTextBox.Text = openFileDialog.FileName;
}
}
private void okButton_Click(object sender, System.EventArgs e)
{
toProperty();
}
#endregion // Handler
}
}
C#/C++ のソースを HTML に変換する ツール CSharpToHTML
Copyright © 1997-2008 Sho's Software