전자실메일양식 통일 및 정리 작업

This commit is contained in:
chi
2024-01-09 14:04:01 +09:00
parent aca27c5484
commit aef0c375ad
134 changed files with 4651 additions and 2343 deletions

BIN
DLL/YARTE.dll Normal file

Binary file not shown.

View File

@@ -21,8 +21,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Project", "Project", "{6C7E
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FBS0000", "SubProject\FBS0000\FBS0000.csproj", "{F6F515C6-6628-47C4-8A94-683BDF9FBB9C}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YARTE", "Sub\YARTE\YARTE.csproj", "{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FTPClass", "Sub\arftp\FTPClass.csproj", "{150859D3-1C5D-4E20-B324-F9EBE188D893}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "FPM0000", "SubProject\FPM0000\FPM0000.csproj", "{D01A7891-AD0B-489B-8C45-F598C875FE26}"
@@ -48,6 +46,8 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "솔루션 항목", "솔루
MemoryMap.cs = MemoryMap.cs
EndProjectSection
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YARTE", "Sub\YARTE\YARTE\YARTE\YARTE.csproj", "{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
@@ -100,12 +100,6 @@ Global
{F6F515C6-6628-47C4-8A94-683BDF9FBB9C}.Release|Any CPU.ActiveCfg = Release|Any CPU
{F6F515C6-6628-47C4-8A94-683BDF9FBB9C}.Release|Any CPU.Build.0 = Release|Any CPU
{F6F515C6-6628-47C4-8A94-683BDF9FBB9C}.Release|x86.ActiveCfg = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|x86.ActiveCfg = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Any CPU.Build.0 = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|x86.ActiveCfg = Release|Any CPU
{150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|Any CPU.Build.0 = Debug|Any CPU
{150859D3-1C5D-4E20-B324-F9EBE188D893}.Debug|x86.ActiveCfg = Debug|Any CPU
@@ -184,6 +178,14 @@ Global
{3869B8C1-1290-4864-B72D-D771475F914D}.Release|Any CPU.Build.0 = Release|Any CPU
{3869B8C1-1290-4864-B72D-D771475F914D}.Release|x86.ActiveCfg = Release|Any CPU
{3869B8C1-1290-4864-B72D-D771475F914D}.Release|x86.Build.0 = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|x86.ActiveCfg = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|x86.Build.0 = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Any CPU.Build.0 = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|x86.ActiveCfg = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|x86.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
@@ -195,7 +197,6 @@ Global
{74836A5F-CB5B-449F-9210-99C9D1A23B97} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
{26982882-C1FF-45F8-861C-D67558725FF1} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
{F6F515C6-6628-47C4-8A94-683BDF9FBB9C} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE} = {28105E67-9D33-4627-8E26-FCE67700622F}
{150859D3-1C5D-4E20-B324-F9EBE188D893} = {28105E67-9D33-4627-8E26-FCE67700622F}
{D01A7891-AD0B-489B-8C45-F598C875FE26} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
{F31C242C-1B15-4518-9733-48558499FE4B} = {28105E67-9D33-4627-8E26-FCE67700622F}
@@ -205,6 +206,7 @@ Global
{55EF08A8-6E94-4569-8371-7AAC9DE916AB} = {28105E67-9D33-4627-8E26-FCE67700622F}
{CAFE5CD0-C055-4C77-9253-8D5EE9558D43} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
{3869B8C1-1290-4864-B72D-D771475F914D} = {6C7EC99E-7367-4255-A039-EF5E8D75A2F6}
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE} = {28105E67-9D33-4627-8E26-FCE67700622F}
EndGlobalSection
GlobalSection(ExtensibilityGlobals) = postSolution
SolutionGuid = {B5B1FD72-356F-4840-83E8-B070AC21C8D9}

View File

@@ -32,5 +32,5 @@ using System.Runtime.InteropServices;
// 모든 값을 지정하거나 아래와 같이 '*'를 사용하여 빌드 번호 및 수정 번호가 자동으로
// 지정되도록 할 수 있습니다.
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("24.01.01.2230")]
[assembly: AssemblyFileVersion("24.01.01.2230")]
[assembly: AssemblyVersion("24.01.09.1400")]
[assembly: AssemblyFileVersion("24.01.09.1400")]

201
Sub/YARTE/LICENSE Normal file
View File

@@ -0,0 +1,201 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "{}"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright {yyyy} {name of copyright owner}
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.

2
Sub/YARTE/README.md Normal file
View File

@@ -0,0 +1,2 @@
# YARTE
YARTE (Yet Another Rich Text Editor) is an HTML-based rich text editor for WinForms. The original project is located at http://yarte.codeplex.com/.

View File

@@ -0,0 +1,87 @@
namespace YARTE.Example
{
partial class AddTaskDialog
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btnCancel = new System.Windows.Forms.Button();
this.btnAdd = new System.Windows.Forms.Button();
this.txtInput = new System.Windows.Forms.TextBox();
this.SuspendLayout();
//
// btnCancel
//
this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btnCancel.Location = new System.Drawing.Point(244, 75);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(75, 23);
this.btnCancel.TabIndex = 2;
this.btnCancel.Text = "Cancel";
this.btnCancel.UseVisualStyleBackColor = true;
this.btnCancel.Click += new System.EventHandler(this.btnCancel_Click);
//
// btnAdd
//
this.btnAdd.Location = new System.Drawing.Point(325, 75);
this.btnAdd.Name = "btnAdd";
this.btnAdd.Size = new System.Drawing.Size(75, 23);
this.btnAdd.TabIndex = 1;
this.btnAdd.Text = "Add";
this.btnAdd.UseVisualStyleBackColor = true;
this.btnAdd.Click += new System.EventHandler(this.btnAdd_Click);
//
// txtInput
//
this.txtInput.Location = new System.Drawing.Point(12, 30);
this.txtInput.Name = "txtInput";
this.txtInput.Size = new System.Drawing.Size(388, 22);
this.txtInput.TabIndex = 0;
//
// AddTaskDialog
//
this.AcceptButton = this.btnAdd;
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnCancel;
this.ClientSize = new System.Drawing.Size(412, 110);
this.Controls.Add(this.txtInput);
this.Controls.Add(this.btnAdd);
this.Controls.Add(this.btnCancel);
this.Name = "AddTaskDialog";
this.Text = "AddTaskDialog";
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnAdd;
private System.Windows.Forms.TextBox txtInput;
}
}

View File

@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace YARTE.Example
{
public partial class AddTaskDialog : Form
{
private Form1 frmParent;
public AddTaskDialog(Form1 parent)
{
InitializeComponent();
frmParent = parent;
}
private void btnCancel_Click(object sender, EventArgs e)
{
this.Close();
}
private void btnAdd_Click(object sender, EventArgs e)
{
frmParent.AddTask(txtInput.Text);
txtInput.Clear();
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,128 @@
namespace YARTE.Example
{
partial class Form1
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.btnDispHTML = new System.Windows.Forms.Button();
this.btnAddTodo = new System.Windows.Forms.Button();
this.btnDispTasks = new System.Windows.Forms.Button();
this.btnChangeChecked = new System.Windows.Forms.Button();
this.htmlEditor1 = new YARTE.UI.HtmlEditor();
this.btnGetTasks = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// btnDispHTML
//
this.btnDispHTML.Location = new System.Drawing.Point(599, 398);
this.btnDispHTML.Name = "btnDispHTML";
this.btnDispHTML.Size = new System.Drawing.Size(94, 23);
this.btnDispHTML.TabIndex = 1;
this.btnDispHTML.Text = "Disp HTML";
this.btnDispHTML.UseVisualStyleBackColor = true;
this.btnDispHTML.Click += new System.EventHandler(this.btnDispHTML_Click);
//
// btnAddTodo
//
this.btnAddTodo.Location = new System.Drawing.Point(503, 398);
this.btnAddTodo.Name = "btnAddTodo";
this.btnAddTodo.Size = new System.Drawing.Size(90, 23);
this.btnAddTodo.TabIndex = 2;
this.btnAddTodo.Text = "Add Todo";
this.btnAddTodo.UseVisualStyleBackColor = true;
this.btnAddTodo.Click += new System.EventHandler(this.btnAddTodo_Click);
//
// btnDispTasks
//
this.btnDispTasks.Location = new System.Drawing.Point(407, 398);
this.btnDispTasks.Name = "btnDispTasks";
this.btnDispTasks.Size = new System.Drawing.Size(90, 23);
this.btnDispTasks.TabIndex = 3;
this.btnDispTasks.Text = "Disp Tasks";
this.btnDispTasks.UseVisualStyleBackColor = true;
this.btnDispTasks.Click += new System.EventHandler(this.btnDispTasks_Click);
//
// btnChangeChecked
//
this.btnChangeChecked.Location = new System.Drawing.Point(311, 398);
this.btnChangeChecked.Name = "btnChangeChecked";
this.btnChangeChecked.Size = new System.Drawing.Size(90, 23);
this.btnChangeChecked.TabIndex = 4;
this.btnChangeChecked.Text = "Checked";
this.btnChangeChecked.UseVisualStyleBackColor = true;
this.btnChangeChecked.Click += new System.EventHandler(this.btnChangeChecked_Click);
//
// htmlEditor1
//
this.htmlEditor1.Dock = System.Windows.Forms.DockStyle.Top;
this.htmlEditor1.Html = null;
this.htmlEditor1.Location = new System.Drawing.Point(0, 0);
this.htmlEditor1.Margin = new System.Windows.Forms.Padding(4);
this.htmlEditor1.Name = "htmlEditor1";
this.htmlEditor1.ReadOnly = false;
this.htmlEditor1.ShowToolbar = true;
this.htmlEditor1.Size = new System.Drawing.Size(723, 395);
this.htmlEditor1.TabIndex = 0;
//
// btnGetTasks
//
this.btnGetTasks.Location = new System.Drawing.Point(215, 398);
this.btnGetTasks.Name = "btnGetTasks";
this.btnGetTasks.Size = new System.Drawing.Size(90, 23);
this.btnGetTasks.TabIndex = 5;
this.btnGetTasks.Text = "Get Tasks";
this.btnGetTasks.UseVisualStyleBackColor = true;
this.btnGetTasks.Click += new System.EventHandler(this.btnGetTasks_Click);
//
// Form1
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(723, 433);
this.Controls.Add(this.btnGetTasks);
this.Controls.Add(this.btnChangeChecked);
this.Controls.Add(this.btnDispTasks);
this.Controls.Add(this.btnAddTodo);
this.Controls.Add(this.btnDispHTML);
this.Controls.Add(this.htmlEditor1);
this.Name = "Form1";
this.Text = "Form1";
this.ResumeLayout(false);
}
#endregion
private UI.HtmlEditor htmlEditor1;
private System.Windows.Forms.Button btnDispHTML;
private System.Windows.Forms.Button btnAddTodo;
private System.Windows.Forms.Button btnDispTasks;
private System.Windows.Forms.Button btnChangeChecked;
private System.Windows.Forms.Button btnGetTasks;
}
}

View File

@@ -0,0 +1,95 @@
using System.Collections.Generic;
using System.Windows.Forms;
using YARTE.UI.Buttons;
using System;
namespace YARTE.Example
{
public partial class Form1 : Form
{
//private List<CheckboxItem> tasks = new List<CheckboxItem>();
private Dictionary<string, CheckboxItem> tasks = new Dictionary<string, CheckboxItem>();
public Form1()
{
InitializeComponent();
PredefinedButtonSets.SetupDefaultButtons(this.htmlEditor1);
}
private void btnDispHTML_Click(object sender, System.EventArgs e)
{
MessageBox.Show(this.htmlEditor1.Html, "The output HTML");
}
private void btnAddTodo_Click(object sender, System.EventArgs e)
{
AddTaskDialog atd = new AddTaskDialog(this);
atd.ShowDialog();
}
public void AddTask(string label)
{
string id = htmlEditor1.insertCheckbox(label);
tasks.Add(id, new CheckboxItem(label, id));
//htmlEditor1.InsertTextAtCursor(task.Identifier);
}
private void btnDispTasks_Click(object sender, EventArgs e)
{
// display all unchecked <INPUT>s
string output = "";
foreach (var item in htmlEditor1.getCheckedStates())
{
if (item.Value)
{
output += item.Key + "\n";
}
}
MessageBox.Show(output, "Checked Tasks");
// update and display the <INPUT>s in tasks
output = "";
foreach (var item in htmlEditor1.getCheckedStates())
{
CheckboxItem temp;
tasks.TryGetValue(item.Key, out temp);
temp.Checked = item.Value;
tasks.TryGetValue(item.Key, out temp); // redefine temp to ensure Dictionary contains up-to-date refs
output += temp.Label + " " + temp.Checked + "\n";
}
MessageBox.Show(output, "Checked Tasks");
}
private void btnChangeChecked_Click(object sender, EventArgs e)
{
// changes an arbitrary task's checked state
Random rand = new Random();
int temp = rand.Next(0, tasks.Count);
CheckboxItem[] items = new CheckboxItem[10];
CheckboxItem selected;
tasks.Values.CopyTo(items,0);
Console.WriteLine(temp);
// get a checkbox item from a known identifier
tasks.TryGetValue(items[temp].Identifier, out selected);
selected.Checked = !selected.Checked; // local dictionary is up-to-date
htmlEditor1.updateCheckedState(selected.Identifier, selected.Checked); // update editor
}
private void btnGetTasks_Click(object sender, EventArgs e)
{
// update the tasks dictionary using the method that returns a
// dictionary of all ID'd checkboxes. Display labels and
// checked states.
tasks = htmlEditor1.getCheckboxes();
string output = "";
foreach (var item in tasks)
{
output += item.Value.Label + " " + item.Value.Checked + "\n";
}
MessageBox.Show(output, "The current task states");
}
}
}

View File

@@ -0,0 +1,120 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
namespace YARTE.Example
{
static class Program
{
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
static void Main()
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new Form1());
}
}
}

View File

@@ -0,0 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("YARTE.Example")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("YARTE.Example")]
[assembly: AssemblyCopyright("Copyright © 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("07c96ba0-29d1-41fd-9643-40fc4078dd5c")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -0,0 +1,71 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace YARTE.Example.Properties
{
/// <summary>
/// A strongly-typed resource class, for looking up localized strings, etc.
/// </summary>
// This class was auto-generated by the StronglyTypedResourceBuilder
// class via a tool like ResGen or Visual Studio.
// To add or remove a member, edit your .ResX file then rerun ResGen
// with the /str option, or rebuild your VS project.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources
{
private static global::System.Resources.ResourceManager resourceMan;
private static global::System.Globalization.CultureInfo resourceCulture;
[global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal Resources()
{
}
/// <summary>
/// Returns the cached ResourceManager instance used by this class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Resources.ResourceManager ResourceManager
{
get
{
if ((resourceMan == null))
{
global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("YARTE.Example.Properties.Resources", typeof(Resources).Assembly);
resourceMan = temp;
}
return resourceMan;
}
}
/// <summary>
/// Overrides the current thread's CurrentUICulture property for all
/// resource lookups using this strongly typed resource class.
/// </summary>
[global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)]
internal static global::System.Globalization.CultureInfo Culture
{
get
{
return resourceCulture;
}
set
{
resourceCulture = value;
}
}
}
}

View File

@@ -0,0 +1,117 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
</root>

View File

@@ -0,0 +1,30 @@
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
// Runtime Version:4.0.30319.1
//
// Changes to this file may cause incorrect behavior and will be lost if
// the code is regenerated.
// </auto-generated>
//------------------------------------------------------------------------------
namespace YARTE.Example.Properties
{
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("Microsoft.VisualStudio.Editors.SettingsDesigner.SettingsSingleFileGenerator", "10.0.0.0")]
internal sealed partial class Settings : global::System.Configuration.ApplicationSettingsBase
{
private static Settings defaultInstance = ((Settings)(global::System.Configuration.ApplicationSettingsBase.Synchronized(new Settings())));
public static Settings Default
{
get
{
return defaultInstance;
}
}
}
}

View File

@@ -0,0 +1,7 @@
<?xml version='1.0' encoding='utf-8'?>
<SettingsFile xmlns="http://schemas.microsoft.com/VisualStudio/2004/01/settings" CurrentProfile="(Default)">
<Profiles>
<Profile Name="(Default)" />
</Profiles>
<Settings />
</SettingsFile>

View File

@@ -0,0 +1,100 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">x86</Platform>
<ProductVersion>8.0.30703</ProductVersion>
<SchemaVersion>2.0</SchemaVersion>
<ProjectGuid>{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}</ProjectGuid>
<OutputType>WinExe</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>YARTE.Example</RootNamespace>
<AssemblyName>YARTE.Example</AssemblyName>
<TargetFrameworkVersion>v4.0</TargetFrameworkVersion>
<TargetFrameworkProfile>Client</TargetFrameworkProfile>
<FileAlignment>512</FileAlignment>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|x86' ">
<PlatformTarget>x86</PlatformTarget>
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Deployment" />
<Reference Include="System.Drawing" />
<Reference Include="System.Windows.Forms" />
<Reference Include="System.Xml" />
<Reference Include="YARTE, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
<SpecificVersion>False</SpecificVersion>
<HintPath>..\..\YARTE\YARTE\bin\Debug\YARTE.dll</HintPath>
</Reference>
</ItemGroup>
<ItemGroup>
<Compile Include="AddTaskDialog.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="AddTaskDialog.Designer.cs">
<DependentUpon>AddTaskDialog.cs</DependentUpon>
</Compile>
<Compile Include="Form1.cs">
<SubType>Form</SubType>
</Compile>
<Compile Include="Form1.Designer.cs">
<DependentUpon>Form1.cs</DependentUpon>
</Compile>
<Compile Include="Program.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<EmbeddedResource Include="AddTaskDialog.resx">
<DependentUpon>AddTaskDialog.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Form1.resx">
<DependentUpon>Form1.cs</DependentUpon>
</EmbeddedResource>
<EmbeddedResource Include="Properties\Resources.resx">
<Generator>ResXFileCodeGenerator</Generator>
<LastGenOutput>Resources.Designer.cs</LastGenOutput>
<SubType>Designer</SubType>
</EmbeddedResource>
<Compile Include="Properties\Resources.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Resources.resx</DependentUpon>
</Compile>
<None Include="Properties\Settings.settings">
<Generator>SettingsSingleFileGenerator</Generator>
<LastGenOutput>Settings.Designer.cs</LastGenOutput>
</None>
<Compile Include="Properties\Settings.Designer.cs">
<AutoGen>True</AutoGen>
<DependentUpon>Settings.settings</DependentUpon>
<DesignTimeSharedInput>True</DesignTimeSharedInput>
</Compile>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

42
Sub/YARTE/YARTE.sln Normal file
View File

@@ -0,0 +1,42 @@

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual Studio 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YARTE", "YARTE\YARTE\YARTE.csproj", "{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}"
EndProject
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "YARTE.Example", "YARTE.Example\YARTE.Example\YARTE.Example.csproj", "{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Debug|Mixed Platforms = Debug|Mixed Platforms
Debug|x86 = Debug|x86
Release|Any CPU = Release|Any CPU
Release|Mixed Platforms = Release|Mixed Platforms
Release|x86 = Release|x86
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Any CPU.Build.0 = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Mixed Platforms.ActiveCfg = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|Mixed Platforms.Build.0 = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Debug|x86.ActiveCfg = Debug|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Any CPU.ActiveCfg = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Any CPU.Build.0 = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Mixed Platforms.ActiveCfg = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|Mixed Platforms.Build.0 = Release|Any CPU
{DB5EE9C8-EACF-4231-877E-B9DFD7A714DE}.Release|x86.ActiveCfg = Release|Any CPU
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Debug|Any CPU.ActiveCfg = Debug|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Debug|Mixed Platforms.ActiveCfg = Debug|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Debug|Mixed Platforms.Build.0 = Debug|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Debug|x86.ActiveCfg = Debug|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Debug|x86.Build.0 = Debug|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Release|Any CPU.ActiveCfg = Release|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Release|Mixed Platforms.ActiveCfg = Release|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Release|Mixed Platforms.Build.0 = Release|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Release|x86.ActiveCfg = Release|x86
{EA03531C-F6BA-4EFC-AD06-ECA7E249AE81}.Release|x86.Build.0 = Release|x86
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal

View File

@@ -1,36 +1,36 @@
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class BoldButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand("Bold", false, null);
}
public Image IconImage
{
get
{
return Resources.bold;
}
}
public string IconName
{
get { return "Bold"; }
}
public string IconTooltip
{
get { return "Bold"; }
}
public string CommandIdentifier
{
get { return "Bold"; }
}
}
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class BoldButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand("Bold", false, null);
}
public Image IconImage
{
get
{
return Resources.bold;
}
}
public string IconName
{
get { return "Bold"; }
}
public string IconTooltip
{
get { return "Bold"; }
}
public string CommandIdentifier
{
get { return "Bold"; }
}
}
}

View File

@@ -0,0 +1,37 @@
using System.Drawing;
using YARTE.Properties;
using System;
namespace YARTE.UI.Buttons
{
public class CheckboxButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Editor.insertCheckbox();
}
public Image IconImage
{
get
{
return Resources.insertcheckbox;
}
}
public string IconName
{
get { return "Insert Checkbox"; }
}
public string IconTooltip
{
get { return "Insert Checkbox"; }
}
public string CommandIdentifier
{
get { return ""; }
}
}
}

View File

@@ -1,41 +1,41 @@
using System.Drawing;
using System.Windows.Forms;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class ForecolorButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
var colorPicker = new ColorDialog();
var result = colorPicker.ShowDialog();
if(result == DialogResult.OK)
{
var color = colorPicker.Color;
var hexcolor = ColorTranslator.ToHtml(color);
args.Document.ExecCommand("ForeColor", false, hexcolor);
}
}
public Image IconImage
{
get { return Resources.fontforecolorpicker; }
}
public string IconName
{
get { return "Color"; }
}
public string IconTooltip
{
get { return "Color"; }
}
public string CommandIdentifier
{
get { return "ForeColor"; }
}
}
using System.Drawing;
using System.Windows.Forms;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class ForecolorButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
var colorPicker = new ColorDialog();
var result = colorPicker.ShowDialog();
if(result == DialogResult.OK)
{
var color = colorPicker.Color;
var hexcolor = ColorTranslator.ToHtml(color);
args.Document.ExecCommand("ForeColor", false, hexcolor);
}
}
public Image IconImage
{
get { return Resources.fontforecolorpicker; }
}
public string IconName
{
get { return "Color"; }
}
public string IconTooltip
{
get { return "Color"; }
}
public string CommandIdentifier
{
get { return "ForeColor"; }
}
}
}

View File

@@ -0,0 +1,21 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
using System.Windows.Forms;
namespace YARTE.UI.Buttons
{
public struct ButtonArgs
{
public HtmlDocument Document;
public HtmlEditor Editor;
}
public interface IButton
{
string IconName { get; }
string IconTooltip { get; }
}
}

View File

@@ -0,0 +1,12 @@
using System.Drawing;
using System.Windows.Forms;
namespace YARTE.UI.Buttons
{
public interface IFunctionButton : IButton
{
void IconClicked(ButtonArgs doc, ToolStripButton btn);
string Label { get; set; }
}
}

View File

@@ -1,26 +1,18 @@
using System.Drawing;
using System.Windows.Forms;
namespace YARTE.UI.Buttons
{
public struct HTMLEditorButtonArgs
{
public HtmlDocument Document;
public HtmlEditor Editor;
}
public interface IHTMLEditorButton
{
void IconClicked(HTMLEditorButtonArgs doc);
Image IconImage { get; }
string IconName { get; }
string IconTooltip { get; }
/// <summary>
/// This is the string that will be used to poll the text area to determine if the cursor
/// is in a given area (say, 'Bold') and show the corresponding button as selected
/// Leave blank if there is no command or you have no idea what to put here
/// </summary>
string CommandIdentifier { get; }
}
using System.Drawing;
using System.Windows.Forms;
namespace YARTE.UI.Buttons
{
public interface IHTMLEditorButton : IButton
{
void IconClicked(ButtonArgs doc);
Image IconImage { get; }
/// <summary>
/// This is the string that will be used to poll the text area to determine if the cursor
/// is in a given area (say, 'Bold') and show the corresponding button as selected
/// Leave blank if there is no command or you have no idea what to put here
/// </summary>
string CommandIdentifier { get; }
}
}

View File

@@ -1,41 +1,41 @@
using System.Drawing;
using Microsoft.VisualBasic;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class InsertLinkedImageButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
var x = args.Editor.Location.X + 10;
var y = args.Editor.Location.Y + 10;
var url = Interaction.InputBox("Please enter an image url", "URL", null, x, y);
if (!string.IsNullOrEmpty(url))
{
args.Document.ExecCommand("InsertImage", false, url);
}
}
public Image IconImage
{
get { return Resources.insertimage; }
}
public string IconName
{
get { return "Linked image"; }
}
public string IconTooltip
{
get { return "Linked image"; }
}
public string CommandIdentifier
{
get { return "InsertImage"; }
}
}
using System.Drawing;
using Microsoft.VisualBasic;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class InsertLinkedImageButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
var x = args.Editor.Location.X + 10;
var y = args.Editor.Location.Y + 10;
var url = Interaction.InputBox("Please enter an image url", "URL", null, x, y);
if (!string.IsNullOrEmpty(url))
{
args.Document.ExecCommand("InsertImage", false, url);
}
}
public Image IconImage
{
get { return Resources.insertimage; }
}
public string IconName
{
get { return "Linked image"; }
}
public string IconTooltip
{
get { return "Linked image"; }
}
public string CommandIdentifier
{
get { return "InsertImage"; }
}
}
}

View File

@@ -1,35 +1,35 @@
using System;
using System.Drawing;
using System.Windows.Forms;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class ItalicButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand("Italic", false, null);
}
public Image IconImage
{
get { return Resources.italic; }
}
public string IconName
{
get { return "Italic"; }
}
public string IconTooltip
{
get { return "Italic"; }
}
public string CommandIdentifier
{
get { return "Italic"; }
}
}
using System;
using System.Drawing;
using System.Windows.Forms;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class ItalicButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand("Italic", false, null);
}
public Image IconImage
{
get { return Resources.italic; }
}
public string IconName
{
get { return "Italic"; }
}
public string IconTooltip
{
get { return "Italic"; }
}
public string CommandIdentifier
{
get { return "Italic"; }
}
}
}

View File

@@ -1,33 +1,33 @@
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class JustifyCenterButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand(CommandIdentifier, false, null);
}
public Image IconImage
{
get { return Resources.justifycenter; }
}
public string IconName
{
get { return "Justify center"; }
}
public string IconTooltip
{
get { return "Justify center"; }
}
public string CommandIdentifier
{
get { return "JustifyCenter"; }
}
}
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class JustifyCenterButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand(CommandIdentifier, false, null);
}
public Image IconImage
{
get { return Resources.justifycenter; }
}
public string IconName
{
get { return "Justify center"; }
}
public string IconTooltip
{
get { return "Justify center"; }
}
public string CommandIdentifier
{
get { return "JustifyCenter"; }
}
}
}

View File

@@ -1,33 +1,33 @@
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class JustifyLeftButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand(CommandIdentifier, false, null);
}
public Image IconImage
{
get { return Resources.justifyleft; }
}
public string IconName
{
get { return "Justify left"; }
}
public string IconTooltip
{
get { return "Justify left"; }
}
public string CommandIdentifier
{
get { return "JustifyLeft"; }
}
}
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class JustifyLeftButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand(CommandIdentifier, false, null);
}
public Image IconImage
{
get { return Resources.justifyleft; }
}
public string IconName
{
get { return "Justify left"; }
}
public string IconTooltip
{
get { return "Justify left"; }
}
public string CommandIdentifier
{
get { return "JustifyLeft"; }
}
}
}

View File

@@ -1,33 +1,33 @@
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class JustifyRightButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand(CommandIdentifier, false, null);
}
public Image IconImage
{
get { return Resources.justifyright; }
}
public string IconName
{
get { return "Justify right"; }
}
public string IconTooltip
{
get { return "Justify right"; }
}
public string CommandIdentifier
{
get { return "JustifyRight"; }
}
}
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class JustifyRightButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand(CommandIdentifier, false, null);
}
public Image IconImage
{
get { return Resources.justifyright; }
}
public string IconName
{
get { return "Justify right"; }
}
public string IconTooltip
{
get { return "Justify right"; }
}
public string CommandIdentifier
{
get { return "JustifyRight"; }
}
}
}

View File

@@ -1,33 +1,33 @@
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class LinkButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand("CreateLink", true, null);
}
public Image IconImage
{
get { return Resources.createlink; }
}
public string IconName
{
get { return "Create link"; }
}
public string IconTooltip
{
get { return "Create link"; }
}
public string CommandIdentifier
{
get { return "CreateLink"; }
}
}
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class LinkButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand("CreateLink", true, null);
}
public Image IconImage
{
get { return Resources.createlink; }
}
public string IconName
{
get { return "Create link"; }
}
public string IconTooltip
{
get { return "Create link"; }
}
public string CommandIdentifier
{
get { return "CreateLink"; }
}
}
}

View File

@@ -1,34 +1,34 @@
using System;
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class OrderedListButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand("InsertOrderedList", false, null);
}
public Image IconImage
{
get { return Resources.numberedlist; }
}
public string IconName
{
get { return "Ordered list"; }
}
public string IconTooltip
{
get { return "Ordered list"; }
}
public string CommandIdentifier
{
get { return "InsertOrderedList"; }
}
}
using System;
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class OrderedListButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand("InsertOrderedList", false, null);
}
public Image IconImage
{
get { return Resources.numberedlist; }
}
public string IconName
{
get { return "Ordered list"; }
}
public string IconTooltip
{
get { return "Ordered list"; }
}
public string CommandIdentifier
{
get { return "InsertOrderedList"; }
}
}
}

View File

@@ -1,31 +1,34 @@
using System.Linq;
namespace YARTE.UI.Buttons
{
public static class PredefinedButtonSets
{
private static readonly string[] _webSafeFonts = new [] { "Courier New", "Times New Roman", "Georgia", "Arial", "Verdana"};
public static void SetupDefaultButtons(HtmlEditor editor)
{
editor.AddToolbarItem(new BoldButton());
editor.AddToolbarItem(new ItalicButton());
editor.AddFontSelector(_webSafeFonts);
editor.AddFontSizeSelector(Enumerable.Range(1,7));
editor.AddToolbarDivider();
editor.AddToolbarItem(new LinkButton());
editor.AddToolbarItem(new UnlinkButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new InsertLinkedImageButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new OrderedListButton());
editor.AddToolbarItem(new UnorderedListButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new ForecolorButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new JustifyLeftButton());
editor.AddToolbarItem(new JustifyCenterButton());
editor.AddToolbarItem(new JustifyRightButton());
}
}
using System.Linq;
namespace YARTE.UI.Buttons
{
public static class PredefinedButtonSets
{
private static readonly string[] _webSafeFonts = new [] { "맑은 고딕", "Courier New", "Times New Roman", "Georgia", "Arial", "Verdana"};
public static void SetupDefaultButtons(HtmlEditor editor)
{
editor.AddToolbarItem(new BoldButton());
editor.AddToolbarItem(new ItalicButton());
editor.AddFontSelector(_webSafeFonts);
editor.AddFontSizeSelector(Enumerable.Range(1,10));
editor.AddToolbarDivider();
editor.AddToolbarItem(new LinkButton());
editor.AddToolbarItem(new UnlinkButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new InsertLinkedImageButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new OrderedListButton());
editor.AddToolbarItem(new UnorderedListButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new ForecolorButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new JustifyLeftButton());
editor.AddToolbarItem(new JustifyCenterButton());
editor.AddToolbarItem(new JustifyRightButton());
editor.AddToolbarDivider();
editor.AddToolbarItem(new ReadOnlyButton());
editor.AddToolbarItem(new CheckboxButton());
}
}
}

View File

@@ -0,0 +1,47 @@
using System;
using System.Drawing;
using System.Windows.Forms;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class ReadOnlyButton : IFunctionButton
{
private string _label = "Enter View Mode";
public void IconClicked(ButtonArgs args)
{
args.Editor.ReadOnly = !args.Editor.ReadOnly;
}
public void IconClicked(ButtonArgs args, ToolStripButton button)
{
if (_label.Equals("Enter Edit Mode"))
{
_label = "Enter View Mode";
}
else
{
_label = "Enter Edit Mode";
}
button.Text = _label;
args.Editor.ReadOnly = !args.Editor.ReadOnly;
}
public string Label
{
get { return _label; }
set { _label = value; }
}
public string IconName
{
get { return "Read Only"; }
}
public string IconTooltip
{
get { return _label; }
}
}
}

View File

@@ -1,34 +1,34 @@
using System;
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class UnderlineButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand("Underline", false, null);
}
public Image IconImage
{
get { return Resources.underline; }
}
public string IconName
{
get { return "Underline"; }
}
public string IconTooltip
{
get { return "Underline"; }
}
public string CommandIdentifier
{
get { return "Underline"; }
}
}
using System;
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class UnderlineButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand("Underline", false, null);
}
public Image IconImage
{
get { return Resources.underline; }
}
public string IconName
{
get { return "Underline"; }
}
public string IconTooltip
{
get { return "Underline"; }
}
public string CommandIdentifier
{
get { return "Underline"; }
}
}
}

View File

@@ -1,33 +1,33 @@
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class UnlinkButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand("Unlink", false, null);
}
public Image IconImage
{
get { return Resources.unlink; }
}
public string IconName
{
get { return "Unlink"; }
}
public string IconTooltip
{
get { return "Unlink"; }
}
public string CommandIdentifier
{
get { return "Unlink"; }
}
}
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class UnlinkButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand("Unlink", false, null);
}
public Image IconImage
{
get { return Resources.unlink; }
}
public string IconName
{
get { return "Unlink"; }
}
public string IconTooltip
{
get { return "Unlink"; }
}
public string CommandIdentifier
{
get { return "Unlink"; }
}
}
}

View File

@@ -1,33 +1,33 @@
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class UnorderedListButton : IHTMLEditorButton
{
public void IconClicked(HTMLEditorButtonArgs args)
{
args.Document.ExecCommand("InsertUnorderedList", false, null);
}
public Image IconImage
{
get { return Resources.bulletedlist; }
}
public string IconName
{
get { return "Unordered list"; }
}
public string IconTooltip
{
get { return "Unordered list"; }
}
public string CommandIdentifier
{
get { return "InsertUnorderedList"; }
}
}
using System.Drawing;
using YARTE.Properties;
namespace YARTE.UI.Buttons
{
public class UnorderedListButton : IHTMLEditorButton
{
public void IconClicked(ButtonArgs args)
{
args.Document.ExecCommand("InsertUnorderedList", false, null);
}
public Image IconImage
{
get { return Resources.bulletedlist; }
}
public string IconName
{
get { return "Unordered list"; }
}
public string IconTooltip
{
get { return "Unordered list"; }
}
public string CommandIdentifier
{
get { return "InsertUnorderedList"; }
}
}
}

View File

@@ -0,0 +1,43 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace YARTE
{
public class CheckboxItem
{
private string strLabel;
private string strIdentifier;
private bool blnCheckd = false;
public CheckboxItem(string label, string identifier)
{
strLabel = label;
strIdentifier = identifier;
}
public CheckboxItem(string label, string identifier, bool checkd) : this(label, identifier)
{
blnCheckd = checkd;
}
public string Label
{
get { return strLabel; }
set { strLabel = value; }
}
public string Identifier
{
get { return strIdentifier; }
set { strIdentifier = value; }
}
public bool Checked
{
get { return blnCheckd; }
set { blnCheckd = value; }
}
}
}

View File

@@ -1,76 +1,80 @@
namespace YARTE.UI
{
partial class HtmlEditor
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.textWebBrowser = new System.Windows.Forms.WebBrowser();
this.editcontrolsToolStrip = new System.Windows.Forms.ToolStrip();
this.updateToolBarTimer = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// textWebBrowser
//
this.textWebBrowser.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textWebBrowser.Location = new System.Drawing.Point(0, 28);
this.textWebBrowser.MinimumSize = new System.Drawing.Size(20, 20);
this.textWebBrowser.Name = "textWebBrowser";
this.textWebBrowser.Size = new System.Drawing.Size(557, 443);
this.textWebBrowser.TabIndex = 0;
//
// editcontrolsToolStrip
//
this.editcontrolsToolStrip.Location = new System.Drawing.Point(0, 0);
this.editcontrolsToolStrip.Name = "editcontrolsToolStrip";
this.editcontrolsToolStrip.Size = new System.Drawing.Size(557, 25);
this.editcontrolsToolStrip.TabIndex = 1;
this.editcontrolsToolStrip.Text = "editcontrolsToolStrip";
//
// HtmlEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.editcontrolsToolStrip);
this.Controls.Add(this.textWebBrowser);
this.Name = "HtmlEditor";
this.Size = new System.Drawing.Size(557, 474);
this.ContextMenuStripChanged += new System.EventHandler(this.HtmlEditor_ContextMenuStripChanged);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.WebBrowser textWebBrowser;
private System.Windows.Forms.ToolStrip editcontrolsToolStrip;
private System.Windows.Forms.Timer updateToolBarTimer;
}
}
namespace YARTE.UI
{
partial class HtmlEditor
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
protected override void Dispose(bool disposing)
{
if (disposing && (components != null))
{
components.Dispose();
}
base.Dispose(disposing);
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
this.textWebBrowser = new System.Windows.Forms.WebBrowser();
this.editcontrolsToolStrip = new System.Windows.Forms.ToolStrip();
this.updateToolBarTimer = new System.Windows.Forms.Timer(this.components);
this.SuspendLayout();
//
// textWebBrowser
//
this.textWebBrowser.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
| System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textWebBrowser.Location = new System.Drawing.Point(0, 34);
this.textWebBrowser.Margin = new System.Windows.Forms.Padding(4);
this.textWebBrowser.MinimumSize = new System.Drawing.Size(27, 25);
this.textWebBrowser.Name = "textWebBrowser";
this.textWebBrowser.Size = new System.Drawing.Size(743, 545);
this.textWebBrowser.TabIndex = 0;
this.textWebBrowser.Navigating += new System.Windows.Forms.WebBrowserNavigatingEventHandler(this.textWebBrowser_Navigating);
//
// editcontrolsToolStrip
//
this.editcontrolsToolStrip.ImageScalingSize = new System.Drawing.Size(20, 20);
this.editcontrolsToolStrip.Location = new System.Drawing.Point(0, 0);
this.editcontrolsToolStrip.Name = "editcontrolsToolStrip";
this.editcontrolsToolStrip.Size = new System.Drawing.Size(743, 25);
this.editcontrolsToolStrip.TabIndex = 1;
this.editcontrolsToolStrip.Text = "editcontrolsToolStrip";
//
// HtmlEditor
//
this.AutoScaleDimensions = new System.Drawing.SizeF(8F, 16F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.editcontrolsToolStrip);
this.Controls.Add(this.textWebBrowser);
this.Margin = new System.Windows.Forms.Padding(4);
this.Name = "HtmlEditor";
this.Size = new System.Drawing.Size(743, 583);
this.ContextMenuStripChanged += new System.EventHandler(this.HtmlEditor_ContextMenuStripChanged);
this.ResumeLayout(false);
this.PerformLayout();
}
#endregion
private System.Windows.Forms.WebBrowser textWebBrowser;
private System.Windows.Forms.ToolStrip editcontrolsToolStrip;
private System.Windows.Forms.Timer updateToolBarTimer;
}
}

View File

@@ -1,126 +1,126 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="editcontrolsToolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="updateToolBarTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>183, 17</value>
</metadata>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<metadata name="editcontrolsToolStrip.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>17, 17</value>
</metadata>
<metadata name="updateToolBarTimer.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
<value>183, 17</value>
</metadata>
</root>

View File

@@ -1,259 +1,406 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using MSHTML;
using YARTE.UI.Buttons;
namespace YARTE.UI
{
public partial class HtmlEditor : UserControl
{
private readonly HtmlDocument _doc;
private readonly IList<IHTMLEditorButton> _customButtons;
public HtmlEditor()
{
InitializeComponent();
InitializeWebBrowserAsEditor();
_doc = textWebBrowser.Document;
_customButtons = new List<IHTMLEditorButton>();
updateToolBarTimer.Start();
updateToolBarTimer.Tick += updateToolBarTimer_Tick;
}
public void AddFontSizeSelector(IEnumerable<int> fontSizes)
{
if (fontSizes.Min() < 1 || fontSizes.Max() > 7)
{
throw new ArgumentException("Allowable font sizes are 1 through 7");
}
var fontSizeBox = new ToolStripComboBox();
fontSizeBox.Items.AddRange(fontSizes.Select(f => f.ToString()).ToArray());
fontSizeBox.Name = "fontSizeSelector";
fontSizeBox.Size = new System.Drawing.Size(25, 25);
fontSizeBox.SelectedIndexChanged += (sender, o) =>
{
var size = ((ToolStripComboBox)sender).SelectedItem;
_doc.ExecCommand("FontSize", false, size);
};
fontSizeBox.DropDownStyle = ComboBoxStyle.DropDownList;
this.AddToolbarItem(fontSizeBox);
}
public void AddFontSelector(IEnumerable<string> fontNames)
{
var dropDown = new ToolStripDropDownButton();
foreach(var fontName in fontNames)
{
dropDown.DropDownItems.Add(GetFontDropDownItem(fontName));
}
dropDown.ImageTransparentColor = System.Drawing.Color.Magenta;
dropDown.Name = "Font";
dropDown.Size = new System.Drawing.Size(29, 22);
dropDown.Text = "Font";
this.AddToolbarItem(dropDown);
}
private ToolStripItem GetFontDropDownItem(string fontName)
{
var dropDownItem = new ToolStripMenuItem();
dropDownItem.Font = new System.Drawing.Font(fontName, 9.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
dropDownItem.Name = "fontMenuItem" + Guid.NewGuid();
dropDownItem.Size = new System.Drawing.Size(173, 22);
dropDownItem.Text = fontName;
dropDownItem.Click += (sender, e) => _doc.ExecCommand("FontName", false, fontName);
return dropDownItem;
}
public void AddToolbarItem(ToolStripItem toolStripItem)
{
editcontrolsToolStrip.Items.Add(toolStripItem);
}
public void AddToolbarItems(IEnumerable<ToolStripItem> toolStripItems)
{
foreach (var stripItem in toolStripItems)
{
editcontrolsToolStrip.Items.Add(stripItem);
}
}
public void AddToolbarItem(IHTMLEditorButton toolbarItem)
{
_customButtons.Add(toolbarItem);
editcontrolsToolStrip.Items.Add(CreateButton(toolbarItem));
}
public void AddToolbarItems(IEnumerable<IHTMLEditorButton> toolbarItems)
{
foreach (var toolbarItem in toolbarItems)
{
AddToolbarItem(toolbarItem);
}
}
public void AddToolbarDivider()
{
var divider = new ToolStripSeparator();
divider.Size = new System.Drawing.Size(6, 25);
editcontrolsToolStrip.Items.Add(divider);
}
private ToolStripItem CreateButton(IHTMLEditorButton toolbarItem)
{
var toolStripButton = new ToolStripButton();
toolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
toolStripButton.Image = toolbarItem.IconImage;
toolStripButton.ImageScaling = ToolStripItemImageScaling.None;
toolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
toolStripButton.Name = toolbarItem.IconName;
toolStripButton.Size = new System.Drawing.Size(25, 24);
toolStripButton.Text = toolbarItem.IconTooltip;
var args = new HTMLEditorButtonArgs();
args.Document = _doc;
args.Editor = this;
IHTMLEditorButton button = toolbarItem;
toolStripButton.Click += (sender, o) => button.IconClicked(args);
return toolStripButton;
}
public bool ReadOnly
{
get
{
if (textWebBrowser.Document != null)
{
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null)
{
return doc.designMode != "On";
}
}
return false;
}
set
{
if (textWebBrowser.Document != null)
{
var designMode = value ? "Off" : "On";
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null) doc.designMode = designMode;
}
}
}
public bool ShowToolbar
{
get
{
if (editcontrolsToolStrip != null)
{
return editcontrolsToolStrip.Visible;
}
return true;
}
set { editcontrolsToolStrip.Visible = value; }
}
private void updateToolBarTimer_Tick(object sender, System.EventArgs e)
{
CheckCommandStateChanges();
}
private void InitializeWebBrowserAsEditor()
{
// It is necessary to add a body to the control before you can apply changes to the DOM document
textWebBrowser.DocumentText = "<html><body></body></html>";
if (textWebBrowser.Document != null)
{
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null) doc.designMode = "On";
// replace the context menu for the web browser control so the default IE browser context menu doesn't show up
textWebBrowser.IsWebBrowserContextMenuEnabled = false;
if (this.ContextMenuStrip == null)
{
textWebBrowser.Document.ContextMenuShowing += (sender, e) => { ; };
}
}
}
void Document_ContextMenuShowing(object sender, HtmlElementEventArgs e)
{
this.ContextMenuStrip.Show(this, this.PointToClient(Cursor.Position));
}
public string Html
{
get
{
return textWebBrowser.DocumentText;
}
set
{
if (textWebBrowser.Document != null)
{
// updating this way avoids an alert box
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null)
{
doc.write(value);
doc.close();
}
}
}
}
public string InsertTextAtCursor
{
set { _doc.ExecCommand("Paste", false, value); }
}
private void CheckCommandStateChanges()
{
var doc = (IHTMLDocument2)_doc.DomDocument;
var commands = _customButtons.Select(c => c.CommandIdentifier).Where(c => !string.IsNullOrEmpty(c));
foreach (var command in commands)
{
var button = (ToolStripButton)editcontrolsToolStrip.Items[command];
if (button == null) continue;
if (doc.queryCommandState(command))
{
if (button.CheckState != CheckState.Checked)
{
button.Checked = true;
}
}
else
{
if (button.CheckState == CheckState.Checked)
{
button.Checked = false;
}
}
}
}
private void HtmlEditor_ContextMenuStripChanged(object sender, System.EventArgs e)
{
if (textWebBrowser.Document != null)
{
textWebBrowser.Document.ContextMenuShowing += Document_ContextMenuShowing;
}
}
}
}
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;
using mshtml;
using YARTE.UI.Buttons;
using System.Diagnostics;
namespace YARTE.UI
{
public partial class HtmlEditor : UserControl
{
private readonly HtmlDocument _doc;
private readonly IList<IButton> _customButtons;
public HtmlEditor()
{
InitializeComponent();
InitializeWebBrowserAsEditor();
_doc = textWebBrowser.Document;
_customButtons = new List<IButton>();
updateToolBarTimer.Start();
updateToolBarTimer.Tick += updateToolBarTimer_Tick;
}
public void AddFontSizeSelector(IEnumerable<int> fontSizes)
{
if (fontSizes.Min() < 1 || fontSizes.Max() > 10)
{
throw new ArgumentException("Allowable font sizes are 1 through 10");
}
var fontSizeBox = new ToolStripComboBox();
fontSizeBox.Items.AddRange(fontSizes.Select(f => f.ToString()).ToArray());
fontSizeBox.Name = "fontSizeSelector";
fontSizeBox.Size = new System.Drawing.Size(25, 25);
fontSizeBox.SelectedIndexChanged += (sender, o) =>
{
var size = ((ToolStripComboBox)sender).SelectedItem;
_doc.ExecCommand("FontSize", false, size);
};
fontSizeBox.DropDownStyle = ComboBoxStyle.DropDownList;
this.AddToolbarItem(fontSizeBox);
}
public void AddFontSelector(IEnumerable<string> fontNames)
{
var dropDown = new ToolStripDropDownButton();
foreach(var fontName in fontNames)
{
dropDown.DropDownItems.Add(GetFontDropDownItem(fontName));
}
dropDown.ImageTransparentColor = System.Drawing.Color.Magenta;
dropDown.Name = "Font";
dropDown.Size = new System.Drawing.Size(29, 22);
dropDown.Text = "Font";
this.AddToolbarItem(dropDown);
}
private ToolStripItem GetFontDropDownItem(string fontName)
{
var dropDownItem = new ToolStripMenuItem();
dropDownItem.Font = new System.Drawing.Font(fontName, 10, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, 0);
dropDownItem.Name = "fontMenuItem" + Guid.NewGuid();
dropDownItem.Size = new System.Drawing.Size(173, 22);
dropDownItem.Text = fontName;
dropDownItem.Click += (sender, e) => _doc.ExecCommand("FontName", false, fontName);
return dropDownItem;
}
public void AddToolbarItem(ToolStripItem toolStripItem)
{
editcontrolsToolStrip.Items.Add(toolStripItem);
}
public void AddToolbarItems(IEnumerable<ToolStripItem> toolStripItems)
{
foreach (var stripItem in toolStripItems)
{
editcontrolsToolStrip.Items.Add(stripItem);
}
}
public void AddToolbarItem(IHTMLEditorButton toolbarItem)
{
_customButtons.Add(toolbarItem);
editcontrolsToolStrip.Items.Add(CreateButton(toolbarItem));
}
public void AddToolbarItem(IFunctionButton toolbarItem)
{
_customButtons.Add(toolbarItem);
editcontrolsToolStrip.Items.Add(CreateButton(toolbarItem));
}
public void AddToolbarItems(IEnumerable<IHTMLEditorButton> toolbarItems)
{
foreach (var toolbarItem in toolbarItems)
{
AddToolbarItem(toolbarItem);
}
}
public void AddToolbarDivider()
{
var divider = new ToolStripSeparator();
divider.Size = new System.Drawing.Size(6, 25);
editcontrolsToolStrip.Items.Add(divider);
}
private ToolStripItem CreateButton(IHTMLEditorButton toolbarItem)
{
var toolStripButton = new ToolStripButton();
toolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Image;
toolStripButton.Image = toolbarItem.IconImage;
toolStripButton.ImageScaling = ToolStripItemImageScaling.None;
toolStripButton.ImageTransparentColor = System.Drawing.Color.Magenta;
toolStripButton.Name = toolbarItem.IconName;
toolStripButton.Size = new System.Drawing.Size(25, 24);
toolStripButton.Text = toolbarItem.IconTooltip;
var args = new ButtonArgs();
args.Document = _doc;
args.Editor = this;
IHTMLEditorButton button = toolbarItem;
toolStripButton.Click += (sender, o) => button.IconClicked(args);
return toolStripButton;
}
private ToolStripItem CreateButton(IFunctionButton toolbarItem)
{
var toolStripButton = new ToolStripButton();
toolStripButton.DisplayStyle = ToolStripItemDisplayStyle.Text;
toolStripButton.Name = toolbarItem.IconName;
toolStripButton.Text = toolbarItem.Label;
var args = new ButtonArgs();
args.Document = _doc;
args.Editor = this;
IFunctionButton button = toolbarItem;
toolStripButton.Click += (sender, o) => button.IconClicked(args,toolStripButton);
return toolStripButton;
}
public bool ReadOnly
{
get
{
if (textWebBrowser.Document != null)
{
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null)
{
return doc.designMode != "On";
}
}
return false;
}
set
{
string html = this.Html;
if (textWebBrowser.Document != null)
{
var designMode = value ? "Off" : "On";
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null) doc.designMode = designMode;
}
this.Html = "";
if (html != null)
{
this.Html = html;
}
}
}
public bool ShowToolbar
{
get
{
if (editcontrolsToolStrip != null)
{
return editcontrolsToolStrip.Visible;
}
return true;
}
set { editcontrolsToolStrip.Visible = value; }
}
private void updateToolBarTimer_Tick(object sender, System.EventArgs e)
{
CheckCommandStateChanges();
}
private void InitializeWebBrowserAsEditor()
{
// It is necessary to add a body to the control before you can apply changes to the DOM document
textWebBrowser.DocumentText = "<html><body></body></html>";
if (textWebBrowser.Document != null)
{
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null) doc.designMode = "On";
// replace the context menu for the web browser control so the default IE browser context menu doesn't show up
textWebBrowser.IsWebBrowserContextMenuEnabled = false;
if (this.ContextMenuStrip == null)
{
textWebBrowser.Document.ContextMenuShowing += (sender, e) => { ; };
}
}
}
void Document_ContextMenuShowing(object sender, HtmlElementEventArgs e)
{
this.ContextMenuStrip.Show(this, this.PointToClient(Cursor.Position));
}
public string Html
{
get
{
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
// sample for getting CHECKED states
if (textWebBrowser.Document.GetElementsByTagName("input").Count > 0)
{
Console.WriteLine(textWebBrowser.Document.GetElementsByTagName("input")[0].GetAttribute("checked"));
}
/* this previously returned textWebBrowser.DocumentText, so the following HTML is now omitted:
< !DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" >
< HTML >< HEAD >
< META content = "text/html; charset=unicode" http - equiv = Content - Type >
< META name = GENERATOR content = "MSHTML 11.00.10570.1001" ></ HEAD >
< BODY ></ BODY ></ HTML >
*/
try
{
return doc.body.innerHTML + ""; // this is used during runtime
// make sure it returns empty string instead of null
}
catch (Exception)
{
// the Form [Design] view evaluates this
return textWebBrowser.DocumentText;
}
}
set
{
if (value == null)
{
value = "<html><body></body></html>";
}
if (textWebBrowser.Document != null)
{
// updating this way avoids an alert box
var doc = textWebBrowser.Document.DomDocument as IHTMLDocument2;
if (doc != null)
{
doc.write(value);
doc.close();
}
}
}
}
public void InsertTextAtCursor(string val)
{
_doc.ExecCommand("Paste", false, val);
}
private void CheckCommandStateChanges()
{
var doc = (IHTMLDocument2)_doc.DomDocument;
var commands = new List<string>();
foreach (var button in _customButtons)
{
if (button is IHTMLEditorButton)
{
var temp = (IHTMLEditorButton)button;
commands.Add(temp.CommandIdentifier);
}
}
//var commands = _customButtons.Select(c => c.CommandIdentifier).Where(c => !string.IsNullOrEmpty(c));
foreach (var command in commands)
{
var button = (ToolStripButton)editcontrolsToolStrip.Items[command];
if (button == null) continue;
if (doc.queryCommandState(command))
{
if (button.CheckState != CheckState.Checked)
{
button.Checked = true;
}
}
else
{
if (button.CheckState == CheckState.Checked)
{
button.Checked = false;
}
}
}
}
private void HtmlEditor_ContextMenuStripChanged(object sender, System.EventArgs e)
{
if (textWebBrowser.Document != null)
{
textWebBrowser.Document.ContextMenuShowing += Document_ContextMenuShowing;
}
}
private void textWebBrowser_Navigating(object sender, WebBrowserNavigatingEventArgs e)
{
// http://stackoverflow.com/questions/18035579/how-to-open-a-link-in-webbrowser-control-in-external-browser
// terminate current Navigating event; launch a new Process with the target URL to open user's default browser
if (ReadOnly)
{
e.Cancel = true;
Process.Start(e.Url.ToString());
}
}
public string insertCheckbox(string label = null)
{
Random rand = new Random();
string letters = "qwertyuiopasdfghjklzxcvbnm";
string identifier = rand.Next(1000000000, int.MaxValue).ToString() +
letters[rand.Next(letters.Length)];
InsertTextAtCursor(identifier); // place random int in checkbox's position
// pasting HTML doesn't work
string html = this.Html;
if (label == null)
{
// place plain checkbox
html = html.Replace(identifier,
"<div id=\"" + identifier + "\"><input type=\"checkbox\" id=\"" + identifier + "\"></div>");
}
else
{
// place checkbox and label\
html = html.Replace(identifier,
"<div id=\"" + identifier + "\"><input type=\"checkbox\" id=\"" + identifier + "\">" +
label + "</div>");
}
this.Html = html; // reload
return identifier;
}
public Dictionary<string,bool> getCheckedStates()
{
Dictionary<string, bool> output = new Dictionary<string, bool>();
foreach (HtmlElement item in textWebBrowser.Document.GetElementsByTagName("input"))
{
output.Add(item.GetAttribute("id"), item.GetAttribute("checked").Equals("True"));
}
return output;
}
public Dictionary<string,CheckboxItem> getCheckboxes()
{
Dictionary<string, CheckboxItem> output = new Dictionary<string, CheckboxItem>();
foreach (HtmlElement item in textWebBrowser.Document.GetElementsByTagName("input"))
{
output.Add(item.GetAttribute("id"),
new CheckboxItem(textWebBrowser.Document.GetElementById(item.GetAttribute("id") + "-label").InnerHtml,
item.GetAttribute("id"),
item.GetAttribute("checked").Equals("True")));
}
return output;
}
public void updateCheckedState(string identifier, bool checkedState)
{
string state;
if (checkedState)
{
state = "True";
}
else
{
state = ""; // "False" doesn't work
}
textWebBrowser.Document.GetElementById(identifier).SetAttribute("CHECKED", state);
}
}
}

View File

@@ -1,36 +1,36 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("YARTE")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("YARTE")]
[assembly: AssemblyCopyright("Copyright © 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("9c0b69ac-03c8-4195-94e9-3aac5aeddd8b")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("YARTE")]
[assembly: AssemblyDescription("")]
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyCompany("")]
[assembly: AssemblyProduct("YARTE")]
[assembly: AssemblyCopyright("Copyright © 2010")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// The following GUID is for the ID of the typelib if this project is exposed to COM
[assembly: Guid("9c0b69ac-03c8-4195-94e9-3aac5aeddd8b")]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.0.0.0")]
[assembly: AssemblyFileVersion("1.0.0.0")]

View File

@@ -19,7 +19,7 @@ namespace YARTE.Properties {
// 클래스에서 자동으로 생성되었습니다.
// 멤버를 추가하거나 제거하려면 .ResX 파일을 편집한 다음 /str 옵션을 사용하여 ResGen을
// 다시 실행하거나 VS 프로젝트를 다시 빌드하십시오.
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "16.0.0.0")]
[global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "17.0.0.0")]
[global::System.Diagnostics.DebuggerNonUserCodeAttribute()]
[global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()]
internal class Resources {

View File

@@ -1,283 +1,283 @@
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="bold" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bold.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bulletedlist" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bulletedlist.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="copy" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\copy.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="createlink" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\createlink.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cut" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\cut.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\delete.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="deletetablecolumn" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\deletetablecolumn.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="deletetablerow" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\deletetablerow.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="editstyle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\editstyle.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="edittable" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\edittable.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fontbackcolorpicker" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fontbackcolorpicker.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fontforecolorpicker" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fontforecolorpicker.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="iespellcheck" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\iespellcheck.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="indent" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\indent.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertbutton" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertbutton.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertcheckbox" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertcheckbox.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertdate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertdate.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertdiv" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertdiv.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertdropdownlist" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertdropdownlist.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertform" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertform.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertimage" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertimage.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertimagefromgallery" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertimagefromgallery.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertradiobutton" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertradiobutton.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertrule" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertrule.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttable" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttable.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablecolumnafter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablecolumnafter.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablecolumnbefore" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablecolumnbefore.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablerowafter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablerowafter.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablerowbefore" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablerowbefore.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttextarea" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttextarea.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttextbox" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttextbox.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttime" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttime.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="italic" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\italic.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifycenter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifycenter.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifyfull" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifyfull.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifyleft" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifyleft.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifyright" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifyright.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="netspell" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\netspell.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="numberedlist" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\numberedlist.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="outdent" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\outdent.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="paste" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\paste.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="preview" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\preview.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="print" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\print.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="redo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\redo.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="removeformat" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\removeformat.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\save.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="selectall" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\selectall.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="strikethrough" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\strikethrough.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="subscript" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\subscript.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="superscript" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\superscript.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="underline" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\underline.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="undo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\undo.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="unlink" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\unlink.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="wordclean" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\wordclean.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<?xml version="1.0" encoding="utf-8"?>
<root>
<!--
Microsoft ResX Schema
Version 2.0
The primary goals of this format is to allow a simple XML format
that is mostly human readable. The generation and parsing of the
various data types are done through the TypeConverter classes
associated with the data types.
Example:
... ado.net/XML headers & schema ...
<resheader name="resmimetype">text/microsoft-resx</resheader>
<resheader name="version">2.0</resheader>
<resheader name="reader">System.Resources.ResXResourceReader, System.Windows.Forms, ...</resheader>
<resheader name="writer">System.Resources.ResXResourceWriter, System.Windows.Forms, ...</resheader>
<data name="Name1"><value>this is my long string</value><comment>this is a comment</comment></data>
<data name="Color1" type="System.Drawing.Color, System.Drawing">Blue</data>
<data name="Bitmap1" mimetype="application/x-microsoft.net.object.binary.base64">
<value>[base64 mime encoded serialized .NET Framework object]</value>
</data>
<data name="Icon1" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
<value>[base64 mime encoded string representing a byte array form of the .NET Framework object]</value>
<comment>This is a comment</comment>
</data>
There are any number of "resheader" rows that contain simple
name/value pairs.
Each data row contains a name, and value. The row also contains a
type or mimetype. Type corresponds to a .NET class that support
text/value conversion through the TypeConverter architecture.
Classes that don't support this are serialized and stored with the
mimetype set.
The mimetype is used for serialized objects, and tells the
ResXResourceReader how to depersist the object. This is currently not
extensible. For a given mimetype the value must be set accordingly:
Note - application/x-microsoft.net.object.binary.base64 is the format
that the ResXResourceWriter will generate, however the reader can
read any of the formats listed below.
mimetype: application/x-microsoft.net.object.binary.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Binary.BinaryFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.soap.base64
value : The object must be serialized with
: System.Runtime.Serialization.Formatters.Soap.SoapFormatter
: and then encoded with base64 encoding.
mimetype: application/x-microsoft.net.object.bytearray.base64
value : The object must be serialized into a byte array
: using a System.ComponentModel.TypeConverter
: and then encoded with base64 encoding.
-->
<xsd:schema id="root" xmlns="" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:msdata="urn:schemas-microsoft-com:xml-msdata">
<xsd:import namespace="http://www.w3.org/XML/1998/namespace" />
<xsd:element name="root" msdata:IsDataSet="true">
<xsd:complexType>
<xsd:choice maxOccurs="unbounded">
<xsd:element name="metadata">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" />
</xsd:sequence>
<xsd:attribute name="name" use="required" type="xsd:string" />
<xsd:attribute name="type" type="xsd:string" />
<xsd:attribute name="mimetype" type="xsd:string" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="assembly">
<xsd:complexType>
<xsd:attribute name="alias" type="xsd:string" />
<xsd:attribute name="name" type="xsd:string" />
</xsd:complexType>
</xsd:element>
<xsd:element name="data">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
<xsd:element name="comment" type="xsd:string" minOccurs="0" msdata:Ordinal="2" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" msdata:Ordinal="1" />
<xsd:attribute name="type" type="xsd:string" msdata:Ordinal="3" />
<xsd:attribute name="mimetype" type="xsd:string" msdata:Ordinal="4" />
<xsd:attribute ref="xml:space" />
</xsd:complexType>
</xsd:element>
<xsd:element name="resheader">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="value" type="xsd:string" minOccurs="0" msdata:Ordinal="1" />
</xsd:sequence>
<xsd:attribute name="name" type="xsd:string" use="required" />
</xsd:complexType>
</xsd:element>
</xsd:choice>
</xsd:complexType>
</xsd:element>
</xsd:schema>
<resheader name="resmimetype">
<value>text/microsoft-resx</value>
</resheader>
<resheader name="version">
<value>2.0</value>
</resheader>
<resheader name="reader">
<value>System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<resheader name="writer">
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
</resheader>
<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
<data name="bold" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bold.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="bulletedlist" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\bulletedlist.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="copy" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\copy.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="createlink" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\createlink.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="cut" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\cut.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="delete" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\delete.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="deletetablecolumn" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\deletetablecolumn.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="deletetablerow" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\deletetablerow.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="editstyle" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\editstyle.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="edittable" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\edittable.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fontbackcolorpicker" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fontbackcolorpicker.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="fontforecolorpicker" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\fontforecolorpicker.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="iespellcheck" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\iespellcheck.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="indent" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\indent.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertbutton" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertbutton.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertcheckbox" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertcheckbox.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertdate" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertdate.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertdiv" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertdiv.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertdropdownlist" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertdropdownlist.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertform" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertform.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertimage" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertimage.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertimagefromgallery" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertimagefromgallery.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertradiobutton" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertradiobutton.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="insertrule" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\insertrule.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttable" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttable.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablecolumnafter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablecolumnafter.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablecolumnbefore" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablecolumnbefore.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablerowafter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablerowafter.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttablerowbefore" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttablerowbefore.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttextarea" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttextarea.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttextbox" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttextbox.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="inserttime" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\inserttime.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="italic" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\italic.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifycenter" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifycenter.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifyfull" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifyfull.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifyleft" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifyleft.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="justifyright" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\justifyright.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="netspell" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\netspell.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="numberedlist" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\numberedlist.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="outdent" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\outdent.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="paste" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\paste.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="preview" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\preview.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="print" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\print.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="redo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\redo.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="removeformat" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\removeformat.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="save" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\save.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="selectall" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\selectall.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="strikethrough" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\strikethrough.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="subscript" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\subscript.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="superscript" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\superscript.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="underline" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\underline.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="undo" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\undo.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="unlink" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\unlink.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
<data name="wordclean" type="System.Resources.ResXFileRef, System.Windows.Forms">
<value>..\Resources\wordclean.gif;System.Drawing.Bitmap, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
</data>
</root>

View File

Before

Width:  |  Height:  |  Size: 865 B

After

Width:  |  Height:  |  Size: 865 B

View File

Before

Width:  |  Height:  |  Size: 138 B

After

Width:  |  Height:  |  Size: 138 B

View File

Before

Width:  |  Height:  |  Size: 373 B

After

Width:  |  Height:  |  Size: 373 B

View File

Before

Width:  |  Height:  |  Size: 429 B

After

Width:  |  Height:  |  Size: 429 B

View File

Before

Width:  |  Height:  |  Size: 342 B

After

Width:  |  Height:  |  Size: 342 B

View File

Before

Width:  |  Height:  |  Size: 234 B

After

Width:  |  Height:  |  Size: 234 B

View File

Before

Width:  |  Height:  |  Size: 331 B

After

Width:  |  Height:  |  Size: 331 B

View File

Before

Width:  |  Height:  |  Size: 344 B

After

Width:  |  Height:  |  Size: 344 B

View File

Before

Width:  |  Height:  |  Size: 599 B

After

Width:  |  Height:  |  Size: 599 B

View File

Before

Width:  |  Height:  |  Size: 632 B

After

Width:  |  Height:  |  Size: 632 B

View File

Before

Width:  |  Height:  |  Size: 212 B

After

Width:  |  Height:  |  Size: 212 B

View File

Before

Width:  |  Height:  |  Size: 229 B

After

Width:  |  Height:  |  Size: 229 B

View File

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 369 B

View File

Before

Width:  |  Height:  |  Size: 138 B

After

Width:  |  Height:  |  Size: 138 B

View File

Before

Width:  |  Height:  |  Size: 163 B

After

Width:  |  Height:  |  Size: 163 B

View File

Before

Width:  |  Height:  |  Size: 149 B

After

Width:  |  Height:  |  Size: 149 B

View File

Before

Width:  |  Height:  |  Size: 301 B

After

Width:  |  Height:  |  Size: 301 B

View File

Before

Width:  |  Height:  |  Size: 173 B

After

Width:  |  Height:  |  Size: 173 B

View File

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

View File

Before

Width:  |  Height:  |  Size: 99 B

After

Width:  |  Height:  |  Size: 99 B

View File

Before

Width:  |  Height:  |  Size: 294 B

After

Width:  |  Height:  |  Size: 294 B

View File

Before

Width:  |  Height:  |  Size: 1.0 KiB

After

Width:  |  Height:  |  Size: 1.0 KiB

View File

Before

Width:  |  Height:  |  Size: 142 B

After

Width:  |  Height:  |  Size: 142 B

View File

Before

Width:  |  Height:  |  Size: 875 B

After

Width:  |  Height:  |  Size: 875 B

View File

Before

Width:  |  Height:  |  Size: 380 B

After

Width:  |  Height:  |  Size: 380 B

View File

Before

Width:  |  Height:  |  Size: 329 B

After

Width:  |  Height:  |  Size: 329 B

View File

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

View File

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

View File

Before

Width:  |  Height:  |  Size: 330 B

After

Width:  |  Height:  |  Size: 330 B

View File

Before

Width:  |  Height:  |  Size: 186 B

After

Width:  |  Height:  |  Size: 186 B

View File

Before

Width:  |  Height:  |  Size: 143 B

After

Width:  |  Height:  |  Size: 143 B

View File

Before

Width:  |  Height:  |  Size: 901 B

After

Width:  |  Height:  |  Size: 901 B

View File

Before

Width:  |  Height:  |  Size: 79 B

After

Width:  |  Height:  |  Size: 79 B

View File

Before

Width:  |  Height:  |  Size: 71 B

After

Width:  |  Height:  |  Size: 71 B

View File

Before

Width:  |  Height:  |  Size: 857 B

After

Width:  |  Height:  |  Size: 857 B

View File

Before

Width:  |  Height:  |  Size: 72 B

After

Width:  |  Height:  |  Size: 72 B

View File

Before

Width:  |  Height:  |  Size: 71 B

After

Width:  |  Height:  |  Size: 71 B

View File

Before

Width:  |  Height:  |  Size: 369 B

After

Width:  |  Height:  |  Size: 369 B

View File

Before

Width:  |  Height:  |  Size: 141 B

After

Width:  |  Height:  |  Size: 141 B

View File

Before

Width:  |  Height:  |  Size: 138 B

After

Width:  |  Height:  |  Size: 138 B

View File

Before

Width:  |  Height:  |  Size: 392 B

After

Width:  |  Height:  |  Size: 392 B

View File

Before

Width:  |  Height:  |  Size: 587 B

After

Width:  |  Height:  |  Size: 587 B

View File

Before

Width:  |  Height:  |  Size: 391 B

After

Width:  |  Height:  |  Size: 391 B

View File

Before

Width:  |  Height:  |  Size: 336 B

After

Width:  |  Height:  |  Size: 336 B

View File

Before

Width:  |  Height:  |  Size: 896 B

After

Width:  |  Height:  |  Size: 896 B

View File

Before

Width:  |  Height:  |  Size: 384 B

After

Width:  |  Height:  |  Size: 384 B

View File

Before

Width:  |  Height:  |  Size: 156 B

After

Width:  |  Height:  |  Size: 156 B

View File

Before

Width:  |  Height:  |  Size: 236 B

After

Width:  |  Height:  |  Size: 236 B

View File

Before

Width:  |  Height:  |  Size: 202 B

After

Width:  |  Height:  |  Size: 202 B

View File

Before

Width:  |  Height:  |  Size: 203 B

After

Width:  |  Height:  |  Size: 203 B

View File

Before

Width:  |  Height:  |  Size: 88 B

After

Width:  |  Height:  |  Size: 88 B

View File

Before

Width:  |  Height:  |  Size: 337 B

After

Width:  |  Height:  |  Size: 337 B

View File

Before

Width:  |  Height:  |  Size: 895 B

After

Width:  |  Height:  |  Size: 895 B

View File

Before

Width:  |  Height:  |  Size: 444 B

After

Width:  |  Height:  |  Size: 444 B

View File

@@ -23,7 +23,6 @@
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
<PlatformTarget>x86</PlatformTarget>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
@@ -46,7 +45,10 @@
</ItemGroup>
<ItemGroup>
<Compile Include="Buttons\BoldButton.cs" />
<Compile Include="Buttons\CheckboxButton.cs" />
<Compile Include="Buttons\ForecolorButton.cs" />
<Compile Include="Buttons\IButton.cs" />
<Compile Include="Buttons\IFunctionButton.cs" />
<Compile Include="Buttons\IHTMLEditorButton.cs" />
<Compile Include="Buttons\InsertLinkedImageButton.cs" />
<Compile Include="Buttons\ItalicButton.cs" />
@@ -56,9 +58,11 @@
<Compile Include="Buttons\LinkButton.cs" />
<Compile Include="Buttons\OrderedListButton.cs" />
<Compile Include="Buttons\PredefinedButtonSets.cs" />
<Compile Include="Buttons\ReadOnlyButton.cs" />
<Compile Include="Buttons\UnderlineButton.cs" />
<Compile Include="Buttons\UnlinkButton.cs" />
<Compile Include="Buttons\UnorderedListButton.cs" />
<Compile Include="CheckboxItem.cs" />
<Compile Include="HtmlEditor.cs">
<SubType>UserControl</SubType>
</Compile>
@@ -83,6 +87,17 @@
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<COMReference Include="MSHTML">
<Guid>{3050F1C5-98B5-11CF-BB82-00AA00BDCE0B}</Guid>
<VersionMajor>4</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>primary</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<ItemGroup>
<None Include="Resources\bold.gif" />
</ItemGroup>
@@ -245,23 +260,12 @@
<ItemGroup>
<None Include="Resources\wordclean.gif" />
</ItemGroup>
<ItemGroup>
<COMReference Include="MSHTML">
<Guid>{3050F1C5-98B5-11CF-BB82-00AA00BDCE0B}</Guid>
<VersionMajor>4</VersionMajor>
<VersionMinor>0</VersionMinor>
<Lcid>0</Lcid>
<WrapperTool>tlbimp</WrapperTool>
<Isolated>False</Isolated>
<EmbedInteropTypes>True</EmbedInteropTypes>
</COMReference>
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>

View File

@@ -1,3 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<tindevil xmlns="http://tindevil.com">
</tindevil>

Some files were not shown because too many files have changed in this diff Show More