Merge branch 'master' into google-blogger
This commit is contained in:
commit
bd34aecf68
|
@ -198,3 +198,6 @@ FakesAssemblies/
|
||||||
|
|
||||||
# Visual Studio 6 workspace options file
|
# Visual Studio 6 workspace options file
|
||||||
*.opt
|
*.opt
|
||||||
|
|
||||||
|
#Visual Studio specific files
|
||||||
|
*.VC.opendb
|
||||||
|
|
|
@ -42,7 +42,7 @@ Open Live Writer proudly uses the [MIT License](license.txt).
|
||||||
|
|
||||||
### History
|
### History
|
||||||
The product that became Live Writer was originally created by a small, super-talented team of engineers including
|
The product that became Live Writer was originally created by a small, super-talented team of engineers including
|
||||||
Jeremy Allaire, JJ Allaire, Joe Cheng, Charles Teague, and Spike Washburn. The team was acquired by Microsoft
|
JJ Allaire, Joe Cheng, Charles Teague, and Spike Washburn. The team was acquired by Microsoft
|
||||||
in 2006 and organized with the Spaces team. Becky Pezely joined the team and over time, the team grew and shipped
|
in 2006 and organized with the Spaces team. Becky Pezely joined the team and over time, the team grew and shipped
|
||||||
many popular releases of Windows Live Writer.
|
many popular releases of Windows Live Writer.
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
@ -82,7 +82,6 @@ namespace BlogRunner
|
||||||
XmlDocument providers = new XmlDocument();
|
XmlDocument providers = new XmlDocument();
|
||||||
providers.Load(providersPath);
|
providers.Load(providersPath);
|
||||||
|
|
||||||
|
|
||||||
foreach (XmlElement provider in providers.SelectNodes("/providers/provider"))
|
foreach (XmlElement provider in providers.SelectNodes("/providers/provider"))
|
||||||
{
|
{
|
||||||
string providerId = provider.SelectSingleNode("id/text()").Value;
|
string providerId = provider.SelectSingleNode("id/text()").Value;
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
namespace BlogRunnerGui
|
namespace BlogRunnerGui
|
||||||
{
|
{
|
||||||
partial class FileInput
|
partial class FileInput
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
|
||||||
|
@ -22,8 +22,8 @@
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
|
@ -34,9 +34,9 @@
|
||||||
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
|
||||||
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
|
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.label1.AutoSize = true;
|
this.label1.AutoSize = true;
|
||||||
|
@ -45,9 +45,9 @@
|
||||||
this.label1.Size = new System.Drawing.Size(35, 13);
|
this.label1.Size = new System.Drawing.Size(35, 13);
|
||||||
this.label1.TabIndex = 0;
|
this.label1.TabIndex = 0;
|
||||||
this.label1.Text = "label1";
|
this.label1.Text = "label1";
|
||||||
//
|
//
|
||||||
// textBox1
|
// textBox1
|
||||||
//
|
//
|
||||||
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.textBox1.Location = new System.Drawing.Point(0, 16);
|
this.textBox1.Location = new System.Drawing.Point(0, 16);
|
||||||
|
@ -55,9 +55,9 @@
|
||||||
this.textBox1.Size = new System.Drawing.Size(211, 20);
|
this.textBox1.Size = new System.Drawing.Size(211, 20);
|
||||||
this.textBox1.TabIndex = 1;
|
this.textBox1.TabIndex = 1;
|
||||||
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
|
||||||
//
|
//
|
||||||
// button1
|
// button1
|
||||||
//
|
//
|
||||||
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.button1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.button1.Location = new System.Drawing.Point(217, 14);
|
this.button1.Location = new System.Drawing.Point(217, 14);
|
||||||
this.button1.Name = "button1";
|
this.button1.Name = "button1";
|
||||||
|
@ -66,13 +66,13 @@
|
||||||
this.button1.Text = "Browse...";
|
this.button1.Text = "Browse...";
|
||||||
this.button1.UseVisualStyleBackColor = true;
|
this.button1.UseVisualStyleBackColor = true;
|
||||||
this.button1.Click += new System.EventHandler(this.button1_Click);
|
this.button1.Click += new System.EventHandler(this.button1_Click);
|
||||||
//
|
//
|
||||||
// openFileDialog1
|
// openFileDialog1
|
||||||
//
|
//
|
||||||
this.openFileDialog1.FileName = "openFileDialog1";
|
this.openFileDialog1.FileName = "openFileDialog1";
|
||||||
//
|
//
|
||||||
// FileInput
|
// FileInput
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.Controls.Add(this.button1);
|
this.Controls.Add(this.button1);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace BlogRunnerGui
|
namespace BlogRunnerGui
|
||||||
{
|
{
|
||||||
partial class Form1
|
partial class Form1
|
||||||
{
|
{
|
||||||
|
@ -42,9 +42,9 @@
|
||||||
this.fileBlogProviders = new BlogRunnerGui.FileInput();
|
this.fileBlogProviders = new BlogRunnerGui.FileInput();
|
||||||
this.groupBox1.SuspendLayout();
|
this.groupBox1.SuspendLayout();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// groupBox1
|
// groupBox1
|
||||||
//
|
//
|
||||||
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.groupBox1.Controls.Add(this.btnSelectNone);
|
this.groupBox1.Controls.Add(this.btnSelectNone);
|
||||||
|
@ -56,9 +56,9 @@
|
||||||
this.groupBox1.TabIndex = 3;
|
this.groupBox1.TabIndex = 3;
|
||||||
this.groupBox1.TabStop = false;
|
this.groupBox1.TabStop = false;
|
||||||
this.groupBox1.Text = "Providers";
|
this.groupBox1.Text = "Providers";
|
||||||
//
|
//
|
||||||
// btnSelectNone
|
// btnSelectNone
|
||||||
//
|
//
|
||||||
this.btnSelectNone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.btnSelectNone.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.btnSelectNone.Location = new System.Drawing.Point(87, 149);
|
this.btnSelectNone.Location = new System.Drawing.Point(87, 149);
|
||||||
this.btnSelectNone.Name = "btnSelectNone";
|
this.btnSelectNone.Name = "btnSelectNone";
|
||||||
|
@ -67,9 +67,9 @@
|
||||||
this.btnSelectNone.Text = "Select &None";
|
this.btnSelectNone.Text = "Select &None";
|
||||||
this.btnSelectNone.UseVisualStyleBackColor = true;
|
this.btnSelectNone.UseVisualStyleBackColor = true;
|
||||||
this.btnSelectNone.Click += new System.EventHandler(this.btnSelectNone_Click);
|
this.btnSelectNone.Click += new System.EventHandler(this.btnSelectNone_Click);
|
||||||
//
|
//
|
||||||
// btnSelectAll
|
// btnSelectAll
|
||||||
//
|
//
|
||||||
this.btnSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
this.btnSelectAll.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
|
||||||
this.btnSelectAll.Location = new System.Drawing.Point(6, 149);
|
this.btnSelectAll.Location = new System.Drawing.Point(6, 149);
|
||||||
this.btnSelectAll.Name = "btnSelectAll";
|
this.btnSelectAll.Name = "btnSelectAll";
|
||||||
|
@ -78,9 +78,9 @@
|
||||||
this.btnSelectAll.Text = "Select &All";
|
this.btnSelectAll.Text = "Select &All";
|
||||||
this.btnSelectAll.UseVisualStyleBackColor = true;
|
this.btnSelectAll.UseVisualStyleBackColor = true;
|
||||||
this.btnSelectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
|
this.btnSelectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
|
||||||
//
|
//
|
||||||
// listProviders
|
// listProviders
|
||||||
//
|
//
|
||||||
this.listProviders.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.listProviders.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
@ -91,18 +91,18 @@
|
||||||
this.listProviders.Size = new System.Drawing.Size(427, 124);
|
this.listProviders.Size = new System.Drawing.Size(427, 124);
|
||||||
this.listProviders.TabIndex = 0;
|
this.listProviders.TabIndex = 0;
|
||||||
this.listProviders.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.listProviders_ItemCheck);
|
this.listProviders.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.listProviders_ItemCheck);
|
||||||
//
|
//
|
||||||
// label1
|
// label1
|
||||||
//
|
//
|
||||||
this.label1.AutoSize = true;
|
this.label1.AutoSize = true;
|
||||||
this.label1.Location = new System.Drawing.Point(9, 326);
|
this.label1.Location = new System.Drawing.Point(9, 326);
|
||||||
this.label1.Name = "label1";
|
this.label1.Name = "label1";
|
||||||
this.label1.Size = new System.Drawing.Size(77, 13);
|
this.label1.Size = new System.Drawing.Size(77, 13);
|
||||||
this.label1.TabIndex = 4;
|
this.label1.TabIndex = 4;
|
||||||
this.label1.Text = "Command Line";
|
this.label1.Text = "Command Line";
|
||||||
//
|
//
|
||||||
// textBox1
|
// textBox1
|
||||||
//
|
//
|
||||||
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.textBox1.Location = new System.Drawing.Point(12, 342);
|
this.textBox1.Location = new System.Drawing.Point(12, 342);
|
||||||
|
@ -112,9 +112,9 @@
|
||||||
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
|
||||||
this.textBox1.Size = new System.Drawing.Size(439, 67);
|
this.textBox1.Size = new System.Drawing.Size(439, 67);
|
||||||
this.textBox1.TabIndex = 5;
|
this.textBox1.TabIndex = 5;
|
||||||
//
|
//
|
||||||
// btnRun
|
// btnRun
|
||||||
//
|
//
|
||||||
this.btnRun.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnRun.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnRun.Location = new System.Drawing.Point(295, 441);
|
this.btnRun.Location = new System.Drawing.Point(295, 441);
|
||||||
this.btnRun.Name = "btnRun";
|
this.btnRun.Name = "btnRun";
|
||||||
|
@ -123,9 +123,9 @@
|
||||||
this.btnRun.Text = "&Run";
|
this.btnRun.Text = "&Run";
|
||||||
this.btnRun.UseVisualStyleBackColor = true;
|
this.btnRun.UseVisualStyleBackColor = true;
|
||||||
this.btnRun.Click += new System.EventHandler(this.btnRun_Click);
|
this.btnRun.Click += new System.EventHandler(this.btnRun_Click);
|
||||||
//
|
//
|
||||||
// btnClose
|
// btnClose
|
||||||
//
|
//
|
||||||
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
this.btnClose.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
this.btnClose.DialogResult = System.Windows.Forms.DialogResult.Cancel;
|
||||||
this.btnClose.Location = new System.Drawing.Point(376, 441);
|
this.btnClose.Location = new System.Drawing.Point(376, 441);
|
||||||
|
@ -135,9 +135,9 @@
|
||||||
this.btnClose.Text = "Close";
|
this.btnClose.Text = "Close";
|
||||||
this.btnClose.UseVisualStyleBackColor = true;
|
this.btnClose.UseVisualStyleBackColor = true;
|
||||||
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
|
||||||
//
|
//
|
||||||
// chkVerbose
|
// chkVerbose
|
||||||
//
|
//
|
||||||
this.chkVerbose.AutoSize = true;
|
this.chkVerbose.AutoSize = true;
|
||||||
this.chkVerbose.Location = new System.Drawing.Point(12, 445);
|
this.chkVerbose.Location = new System.Drawing.Point(12, 445);
|
||||||
this.chkVerbose.Name = "chkVerbose";
|
this.chkVerbose.Name = "chkVerbose";
|
||||||
|
@ -146,9 +146,9 @@
|
||||||
this.chkVerbose.Text = "Enable &verbose logging";
|
this.chkVerbose.Text = "Enable &verbose logging";
|
||||||
this.chkVerbose.UseVisualStyleBackColor = true;
|
this.chkVerbose.UseVisualStyleBackColor = true;
|
||||||
this.chkVerbose.CheckedChanged += new System.EventHandler(this.chkVerbose_CheckedChanged);
|
this.chkVerbose.CheckedChanged += new System.EventHandler(this.chkVerbose_CheckedChanged);
|
||||||
//
|
//
|
||||||
// fileOutput
|
// fileOutput
|
||||||
//
|
//
|
||||||
this.fileOutput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.fileOutput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.fileOutput.DialogStyle = BlogRunnerGui.DialogStyle.Save;
|
this.fileOutput.DialogStyle = BlogRunnerGui.DialogStyle.Save;
|
||||||
|
@ -159,9 +159,9 @@
|
||||||
this.fileOutput.TabIndex = 2;
|
this.fileOutput.TabIndex = 2;
|
||||||
this.fileOutput.Text = "&Output file path (optional)";
|
this.fileOutput.Text = "&Output file path (optional)";
|
||||||
this.fileOutput.PathChanged += new System.EventHandler(this.fileOutput_PathChanged);
|
this.fileOutput.PathChanged += new System.EventHandler(this.fileOutput_PathChanged);
|
||||||
//
|
//
|
||||||
// fileConfig
|
// fileConfig
|
||||||
//
|
//
|
||||||
this.fileConfig.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.fileConfig.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.fileConfig.DialogStyle = BlogRunnerGui.DialogStyle.Open;
|
this.fileConfig.DialogStyle = BlogRunnerGui.DialogStyle.Open;
|
||||||
|
@ -172,9 +172,9 @@
|
||||||
this.fileConfig.TabIndex = 1;
|
this.fileConfig.TabIndex = 1;
|
||||||
this.fileConfig.Text = "Path to &Config.xml";
|
this.fileConfig.Text = "Path to &Config.xml";
|
||||||
this.fileConfig.PathChanged += new System.EventHandler(this.fileConfig_PathChanged);
|
this.fileConfig.PathChanged += new System.EventHandler(this.fileConfig_PathChanged);
|
||||||
//
|
//
|
||||||
// fileBlogProviders
|
// fileBlogProviders
|
||||||
//
|
//
|
||||||
this.fileBlogProviders.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
this.fileBlogProviders.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.fileBlogProviders.DialogStyle = BlogRunnerGui.DialogStyle.Open;
|
this.fileBlogProviders.DialogStyle = BlogRunnerGui.DialogStyle.Open;
|
||||||
|
@ -185,9 +185,9 @@
|
||||||
this.fileBlogProviders.TabIndex = 0;
|
this.fileBlogProviders.TabIndex = 0;
|
||||||
this.fileBlogProviders.Text = "Path to Blog&Providers.xml";
|
this.fileBlogProviders.Text = "Path to Blog&Providers.xml";
|
||||||
this.fileBlogProviders.PathChanged += new System.EventHandler(this.fileBlogProviders_PathChanged);
|
this.fileBlogProviders.PathChanged += new System.EventHandler(this.fileBlogProviders_PathChanged);
|
||||||
//
|
//
|
||||||
// Form1
|
// Form1
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.CancelButton = this.btnClose;
|
this.CancelButton = this.btnClose;
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
@ -192,7 +192,6 @@ namespace BlogRunnerGui
|
||||||
const string SETTING_OUTPUT = "output";
|
const string SETTING_OUTPUT = "output";
|
||||||
const string SETTING_PROVIDER = "provider";
|
const string SETTING_PROVIDER = "provider";
|
||||||
|
|
||||||
|
|
||||||
class BlogProviderItem
|
class BlogProviderItem
|
||||||
{
|
{
|
||||||
public readonly string Id;
|
public readonly string Id;
|
||||||
|
|
|
@ -17,7 +17,6 @@ namespace OpenLiveWriter.Test
|
||||||
private readonly ContentEditorFactory factory;
|
private readonly ContentEditorFactory factory;
|
||||||
private readonly IContentEditor editor;
|
private readonly IContentEditor editor;
|
||||||
|
|
||||||
|
|
||||||
public CanvasForm()
|
public CanvasForm()
|
||||||
{
|
{
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
@ -117,7 +116,7 @@ namespace OpenLiveWriter.Test
|
||||||
|
|
||||||
public void WriteEvent(string eventName)
|
public void WriteEvent(string eventName)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnKeyboardLanguageChanged()
|
public void OnKeyboardLanguageChanged()
|
||||||
|
@ -130,11 +129,11 @@ namespace OpenLiveWriter.Test
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnGotFocus()
|
public void OnGotFocus()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnLostFocus()
|
public void OnLostFocus()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
public void OnIsPhotoMailChanged(bool fNewIsPhotoMailValue)
|
public void OnIsPhotoMailChanged(bool fNewIsPhotoMailValue)
|
||||||
|
@ -212,7 +211,7 @@ namespace OpenLiveWriter.Test
|
||||||
|
|
||||||
public void DragLeave()
|
public void DragLeave()
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void DragOver(OpenLiveWriter.Interop.Windows.MK grfKeyState, OpenLiveWriter.Interop.Windows.POINT pt, ref OpenLiveWriter.Interop.Com.DROPEFFECT pdwEffect)
|
public void DragOver(OpenLiveWriter.Interop.Windows.MK grfKeyState, OpenLiveWriter.Interop.Windows.POINT pt, ref OpenLiveWriter.Interop.Com.DROPEFFECT pdwEffect)
|
||||||
|
@ -248,9 +247,6 @@ namespace OpenLiveWriter.Test
|
||||||
editor.ChangeView(EditingMode.PlainText);
|
editor.ChangeView(EditingMode.PlainText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
[DllImport("KERNEL32.DLL", CharSet=CharSet.Auto, EntryPoint="LoadLibrary")]
|
[DllImport("KERNEL32.DLL", CharSet=CharSet.Auto, EntryPoint="LoadLibrary")]
|
||||||
public static extern IntPtr LoadLibrary(String lpFileName);
|
public static extern IntPtr LoadLibrary(String lpFileName);
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
namespace OpenLiveWriter.Test
|
namespace OpenLiveWriter.Test
|
||||||
{
|
{
|
||||||
partial class CanvasForm
|
partial class CanvasForm
|
||||||
{
|
{
|
||||||
|
@ -34,9 +34,9 @@
|
||||||
this.buttonSource = new System.Windows.Forms.Button();
|
this.buttonSource = new System.Windows.Forms.Button();
|
||||||
this.buttonPlain = new System.Windows.Forms.Button();
|
this.buttonPlain = new System.Windows.Forms.Button();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// panelCanvas
|
// panelCanvas
|
||||||
//
|
//
|
||||||
this.panelCanvas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
this.panelCanvas.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
|
||||||
| System.Windows.Forms.AnchorStyles.Left)
|
| System.Windows.Forms.AnchorStyles.Left)
|
||||||
| System.Windows.Forms.AnchorStyles.Right)));
|
| System.Windows.Forms.AnchorStyles.Right)));
|
||||||
|
@ -44,9 +44,9 @@
|
||||||
this.panelCanvas.Name = "panelCanvas";
|
this.panelCanvas.Name = "panelCanvas";
|
||||||
this.panelCanvas.Size = new System.Drawing.Size(439, 392);
|
this.panelCanvas.Size = new System.Drawing.Size(439, 392);
|
||||||
this.panelCanvas.TabIndex = 0;
|
this.panelCanvas.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// buttonEdit
|
// buttonEdit
|
||||||
//
|
//
|
||||||
this.buttonEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.buttonEdit.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.buttonEdit.Location = new System.Drawing.Point(459, 12);
|
this.buttonEdit.Location = new System.Drawing.Point(459, 12);
|
||||||
this.buttonEdit.Name = "buttonEdit";
|
this.buttonEdit.Name = "buttonEdit";
|
||||||
|
@ -55,9 +55,9 @@
|
||||||
this.buttonEdit.Text = "Edit";
|
this.buttonEdit.Text = "Edit";
|
||||||
this.buttonEdit.UseVisualStyleBackColor = true;
|
this.buttonEdit.UseVisualStyleBackColor = true;
|
||||||
this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click);
|
this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click);
|
||||||
//
|
//
|
||||||
// buttonPreview
|
// buttonPreview
|
||||||
//
|
//
|
||||||
this.buttonPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.buttonPreview.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.buttonPreview.Location = new System.Drawing.Point(459, 42);
|
this.buttonPreview.Location = new System.Drawing.Point(459, 42);
|
||||||
this.buttonPreview.Name = "buttonPreview";
|
this.buttonPreview.Name = "buttonPreview";
|
||||||
|
@ -66,9 +66,9 @@
|
||||||
this.buttonPreview.Text = "Preview";
|
this.buttonPreview.Text = "Preview";
|
||||||
this.buttonPreview.UseVisualStyleBackColor = true;
|
this.buttonPreview.UseVisualStyleBackColor = true;
|
||||||
this.buttonPreview.Click += new System.EventHandler(this.buttonPreview_Click);
|
this.buttonPreview.Click += new System.EventHandler(this.buttonPreview_Click);
|
||||||
//
|
//
|
||||||
// buttonSource
|
// buttonSource
|
||||||
//
|
//
|
||||||
this.buttonSource.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.buttonSource.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.buttonSource.Location = new System.Drawing.Point(459, 72);
|
this.buttonSource.Location = new System.Drawing.Point(459, 72);
|
||||||
this.buttonSource.Name = "buttonSource";
|
this.buttonSource.Name = "buttonSource";
|
||||||
|
@ -77,9 +77,9 @@
|
||||||
this.buttonSource.Text = "Source";
|
this.buttonSource.Text = "Source";
|
||||||
this.buttonSource.UseVisualStyleBackColor = true;
|
this.buttonSource.UseVisualStyleBackColor = true;
|
||||||
this.buttonSource.Click += new System.EventHandler(this.buttonSource_Click);
|
this.buttonSource.Click += new System.EventHandler(this.buttonSource_Click);
|
||||||
//
|
//
|
||||||
// buttonPlain
|
// buttonPlain
|
||||||
//
|
//
|
||||||
this.buttonPlain.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
this.buttonPlain.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right)));
|
||||||
this.buttonPlain.Location = new System.Drawing.Point(459, 101);
|
this.buttonPlain.Location = new System.Drawing.Point(459, 101);
|
||||||
this.buttonPlain.Name = "buttonPlain";
|
this.buttonPlain.Name = "buttonPlain";
|
||||||
|
@ -88,9 +88,9 @@
|
||||||
this.buttonPlain.Text = "Plain";
|
this.buttonPlain.Text = "Plain";
|
||||||
this.buttonPlain.UseVisualStyleBackColor = true;
|
this.buttonPlain.UseVisualStyleBackColor = true;
|
||||||
this.buttonPlain.Click += new System.EventHandler(this.buttonPlain_Click);
|
this.buttonPlain.Click += new System.EventHandler(this.buttonPlain_Click);
|
||||||
//
|
//
|
||||||
// CanvasForm
|
// CanvasForm
|
||||||
//
|
//
|
||||||
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
|
||||||
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
|
||||||
this.ClientSize = new System.Drawing.Size(566, 390);
|
this.ClientSize = new System.Drawing.Size(566, 390);
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Copyright (c) .NET Foundation. All rights reserved.
|
// Copyright (c) .NET Foundation. All rights reserved.
|
||||||
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
@ -15,7 +15,7 @@ namespace OpenLiveWriter.Test
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The main entry point for the application.
|
/// The main entry point for the application.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[STAThread]
|
[STAThread]
|
||||||
static void Main()
|
static void Main()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
|
|
@ -122,7 +122,6 @@ namespace LocUtil
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (!ParseCommandXml(transformedCommandFiles, pairsLoc, pairsNonLoc, typeof(Command), "/Commands/Command", "Command.{0}.{1}", out commandIds))
|
if (!ParseCommandXml(transformedCommandFiles, pairsLoc, pairsNonLoc, typeof(Command), "/Commands/Command", "Command.{0}.{1}", out commandIds))
|
||||||
return 1;
|
return 1;
|
||||||
HashSet dialogIds;
|
HashSet dialogIds;
|
||||||
|
@ -144,7 +143,7 @@ namespace LocUtil
|
||||||
Console.WriteLine("Generating CommandId enum file " + cenum);
|
Console.WriteLine("Generating CommandId enum file " + cenum);
|
||||||
|
|
||||||
// commandId: command name
|
// commandId: command name
|
||||||
// ribbonValues: command name --> resource id
|
// ribbonValues: command name --> resource id
|
||||||
commandIds.AddAll(ribbonIds);
|
commandIds.AddAll(ribbonIds);
|
||||||
if (!GenerateEnum(commandIds, "CommandId", cenum, null, ribbonValues))
|
if (!GenerateEnum(commandIds, "CommandId", cenum, null, ribbonValues))
|
||||||
return 1;
|
return 1;
|
||||||
|
@ -258,7 +257,6 @@ namespace LocUtil
|
||||||
// HACK: hard-code wizard height
|
// HACK: hard-code wizard height
|
||||||
pairs.Add("ConfigurationWizard.Height", new Values("380", "The height of the configuration wizard, in pixels."));
|
pairs.Add("ConfigurationWizard.Height", new Values("380", "The height of the configuration wizard, in pixels."));
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
pairs.Add("Culture.UseItalics", new Values("True", "Whether or not the language uses italics"));
|
pairs.Add("Culture.UseItalics", new Values("True", "Whether or not the language uses italics"));
|
||||||
|
@ -298,16 +296,16 @@ namespace LocUtil
|
||||||
xmlDoc.Save(path);
|
xmlDoc.Save(path);
|
||||||
}
|
}
|
||||||
|
|
||||||
// @RIBBON TODO: For now the union of the command in Commands.xml and Ribbon.xml will go into the CommandId enum.
|
// @RIBBON TODO: For now the union of the command in Commands.xml and Ribbon.xml will go into the CommandId enum.
|
||||||
private static bool GenerateEnum(HashSet commandIds, string enumName, string enumPath, Hashtable descriptions, Hashtable values)
|
private static bool GenerateEnum(HashSet commandIds, string enumName, string enumPath, Hashtable descriptions, Hashtable values)
|
||||||
{
|
{
|
||||||
const string TEMPLATE = @"namespace OpenLiveWriter.Localization
|
const string TEMPLATE = @"namespace OpenLiveWriter.Localization
|
||||||
{{
|
{{
|
||||||
public enum {0}
|
public enum {0}
|
||||||
{{
|
{{
|
||||||
None,
|
None,
|
||||||
{1}
|
{1}
|
||||||
}}
|
}}
|
||||||
}}
|
}}
|
||||||
";
|
";
|
||||||
|
|
||||||
|
@ -369,9 +367,9 @@ namespace LocUtil
|
||||||
else if (values == null)
|
else if (values == null)
|
||||||
{
|
{
|
||||||
const string DESC_TEMPLATE = @"/// <summary>
|
const string DESC_TEMPLATE = @"/// <summary>
|
||||||
/// {0}
|
/// {0}
|
||||||
/// </summary>
|
/// </summary>
|
||||||
{1}";
|
{1}";
|
||||||
ArrayList descs = new ArrayList();
|
ArrayList descs = new ArrayList();
|
||||||
foreach (string command in commandList.ToArray())
|
foreach (string command in commandList.ToArray())
|
||||||
{
|
{
|
||||||
|
@ -501,7 +499,6 @@ namespace LocUtil
|
||||||
propTable.Add(prop.Name, prop);
|
propTable.Add(prop.Name, prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
ids = new HashSet();
|
ids = new HashSet();
|
||||||
|
|
||||||
foreach (string relativeInputFile in inputFiles)
|
foreach (string relativeInputFile in inputFiles)
|
||||||
|
@ -531,7 +528,6 @@ namespace LocUtil
|
||||||
|
|
||||||
string name = attr.Name;
|
string name = attr.Name;
|
||||||
|
|
||||||
|
|
||||||
if (name == "DebugOnly" || name == "Identifier")
|
if (name == "DebugOnly" || name == "Identifier")
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>
|
/// <para>
|
||||||
/// Generates HTML for an object tag which will be included on the page only if
|
/// Generates HTML for an object tag which will be included on the page only if
|
||||||
/// script is enabled in the environment where the page is rendered. If script is
|
/// script is enabled in the environment where the page is rendered. If script is
|
||||||
/// not enabled then a preview image which links to an external web-page is included
|
/// not enabled then a preview image which links to an external web-page is included
|
||||||
/// on the page.
|
/// on the page.
|
||||||
|
@ -22,7 +22,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// target publishing environment or if you expect the content to be viewed in
|
/// target publishing environment or if you expect the content to be viewed in
|
||||||
/// more than one environment (e.g. weblog article within the browser and RSS
|
/// more than one environment (e.g. weblog article within the browser and RSS
|
||||||
/// feed item within a feed reader).
|
/// feed item within a feed reader).
|
||||||
/// </para>
|
/// </para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class AdaptiveHtmlObject
|
public class AdaptiveHtmlObject
|
||||||
{
|
{
|
||||||
|
@ -72,8 +72,8 @@ namespace OpenLiveWriter.Api
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>Size which the preview-image should be rendered at.</para>
|
/// <para>Size which the preview-image should be rendered at.</para>
|
||||||
/// <para>This property should only be specified if you wish to render the image at
|
/// <para>This property should only be specified if you wish to render the image at
|
||||||
/// size different from its actual size (the image will be scaled by the browser to
|
/// size different from its actual size (the image will be scaled by the browser to
|
||||||
/// the specified size.</para>
|
/// the specified size.</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Size PreviewImageSize
|
public Size PreviewImageSize
|
||||||
|
@ -132,7 +132,7 @@ namespace OpenLiveWriter.Api
|
||||||
onLoadScript = HtmlServices.HtmlEncode(onLoadScript);
|
onLoadScript = HtmlServices.HtmlEncode(onLoadScript);
|
||||||
string onLoadAttribute = String.Format(CultureInfo.InvariantCulture, "onload=\"{0}\"", onLoadScript);
|
string onLoadAttribute = String.Format(CultureInfo.InvariantCulture, "onload=\"{0}\"", onLoadScript);
|
||||||
|
|
||||||
// generate the upgradable image html
|
// generate the upgradable image html
|
||||||
StringBuilder downgradableHtml = new StringBuilder();
|
StringBuilder downgradableHtml = new StringBuilder();
|
||||||
downgradableHtml.AppendFormat(CultureInfo.InvariantCulture, "<div id=\"{0}\" style=\"margin: 0px; padding: 0px; display: inline;\">", containerId);
|
downgradableHtml.AppendFormat(CultureInfo.InvariantCulture, "<div id=\"{0}\" style=\"margin: 0px; padding: 0px; display: inline;\">", containerId);
|
||||||
downgradableHtml.Append(GenerateHtml(onLoadAttribute));
|
downgradableHtml.Append(GenerateHtml(onLoadAttribute));
|
||||||
|
@ -184,4 +184,3 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -9,20 +9,20 @@ namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>Base class for plugins that wish to enable the insertion of custom HTML content into posts.
|
/// <para>Base class for plugins that wish to enable the insertion of custom HTML content into posts.
|
||||||
/// The source of content to be inserted can any or all of the following: an Insert dialog,
|
/// The source of content to be inserted can any or all of the following: an Insert dialog,
|
||||||
/// a URL, or LiveClipboard data.</para>
|
/// a URL, or LiveClipboard data.</para>
|
||||||
/// <para>Implementors of this class should override the CreateContent method(s) corresponding to
|
/// <para>Implementors of this class should override the CreateContent method(s) corresponding to
|
||||||
/// the content-sources they wish to support. Note also that each of the CreateContent methods
|
/// the content-sources they wish to support. Note also that each of the CreateContent methods
|
||||||
/// has a corresponding class-level attribute that must be specified along with the override.</para>
|
/// has a corresponding class-level attribute that must be specified along with the override.</para>
|
||||||
/// <para>There is a single instance of a given ContentSource created for each Open Live Writer
|
/// <para>There is a single instance of a given ContentSource created for each Open Live Writer
|
||||||
/// process. The implementation of ContentSource objects must therefore be stateless (the
|
/// process. The implementation of ContentSource objects must therefore be stateless (the
|
||||||
/// context required to carry out the responsibilities of the various methods are passed as parameters to
|
/// context required to carry out the responsibilities of the various methods are passed as parameters to
|
||||||
/// the respective methods).</para>
|
/// the respective methods).</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ContentSource : WriterPlugin
|
public class ContentSource : WriterPlugin
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create content using an Insert dialog. Plugin classes which override this method must
|
/// Create content using an Insert dialog. Plugin classes which override this method must
|
||||||
/// also be declared with the InsertableContentSourceAttribute.
|
/// also be declared with the InsertableContentSourceAttribute.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
|
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
|
||||||
|
@ -52,8 +52,8 @@ namespace OpenLiveWriter.Api
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create content based on a URL. The source of this URL can either be the page the user was
|
/// Create content based on a URL. The source of this URL can either be the page the user was
|
||||||
/// navigated to when they pressed the "Blog This" button or a URL that is pasted or dragged
|
/// navigated to when they pressed the "Blog This" button or a URL that is pasted or dragged
|
||||||
/// into the editor. Plugin classes which override this method must also be declared with
|
/// into the editor. Plugin classes which override this method must also be declared with
|
||||||
/// the UrlContentSourceAttribute.
|
/// the UrlContentSourceAttribute.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="url">Url to create content from.</param>
|
/// <param name="url">Url to create content from.</param>
|
||||||
|
|
|
@ -10,10 +10,10 @@ namespace OpenLiveWriter.Api
|
||||||
/// of a post when the post is being previewed or published.
|
/// of a post when the post is being previewed or published.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// There is a single instance of a given FooterPlugin created
|
/// There is a single instance of a given FooterPlugin created
|
||||||
/// for each Open Live Writer process. The implementation of FooterPlugin
|
/// for each Open Live Writer process. The implementation of FooterPlugin
|
||||||
/// objects must therefore be stateless (the context required to carry out the
|
/// objects must therefore be stateless (the context required to carry out the
|
||||||
/// responsibilities of the various methods are passed as parameters to the
|
/// responsibilities of the various methods are passed as parameters to the
|
||||||
/// respective methods).
|
/// respective methods).
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public abstract class HeaderFooterSource : WriterPlugin
|
public abstract class HeaderFooterSource : WriterPlugin
|
||||||
|
@ -35,13 +35,13 @@ namespace OpenLiveWriter.Api
|
||||||
};
|
};
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Subclasses should override this method and return true if a
|
/// Subclasses should override this method and return true if a
|
||||||
/// permalink is required for GeneratePublishFooter calls to
|
/// permalink is required for GeneratePublishFooter calls to
|
||||||
/// work.
|
/// work.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Since new posts don't have permalinks until after they are
|
/// Since new posts don't have permalinks until after they are
|
||||||
/// posted to the server, returning true may cause Writer to
|
/// posted to the server, returning true may cause Writer to
|
||||||
/// perform an extra publish operation. Therefore, only return
|
/// perform an extra publish operation. Therefore, only return
|
||||||
/// true if it is absolutely necessary for your plugin to function
|
/// true if it is absolutely necessary for your plugin to function
|
||||||
/// correctly.
|
/// correctly.
|
||||||
|
@ -53,7 +53,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// the blog post when the editor is switched to Preview mode.
|
/// the blog post when the editor is switched to Preview mode.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// The returned HTML will be wrapped inside a <c>div</c>
|
/// The returned HTML will be wrapped inside a <c>div</c>
|
||||||
/// whose float and margins can be controlled by the <c>Layout</c>
|
/// whose float and margins can be controlled by the <c>Layout</c>
|
||||||
/// property on the <c>ISmartContent</c> parameter.
|
/// property on the <c>ISmartContent</c> parameter.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
@ -71,7 +71,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// the blog post during publishing.
|
/// the blog post during publishing.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// The returned HTML will be wrapped inside a <c>div</c>
|
/// The returned HTML will be wrapped inside a <c>div</c>
|
||||||
/// whose float and margins can be controlled by the <c>Layout</c>
|
/// whose float and margins can be controlled by the <c>Layout</c>
|
||||||
/// property on the <c>ISmartContent</c> parameter.
|
/// property on the <c>ISmartContent</c> parameter.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
|
|
@ -9,7 +9,7 @@ using OpenLiveWriter.CoreServices;
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides the ability to capture HTML content into a Bitmap.
|
/// Provides the ability to capture HTML content into a Bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class HtmlScreenCapture
|
public class HtmlScreenCapture
|
||||||
{
|
{
|
||||||
|
@ -53,7 +53,7 @@ namespace OpenLiveWriter.Api
|
||||||
public event HtmlDocumentAvailableHandler HtmlDocumentAvailable;
|
public event HtmlDocumentAvailableHandler HtmlDocumentAvailable;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates that a a candidate screen capture is available. This event
|
/// Indicates that a a candidate screen capture is available. This event
|
||||||
/// allows subscribers to examine the screen captue bitmap in order to determine
|
/// allows subscribers to examine the screen captue bitmap in order to determine
|
||||||
/// whether the page is fully loaded and ready for capture.
|
/// whether the page is fully loaded and ready for capture.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -98,7 +98,6 @@ namespace OpenLiveWriter.Api
|
||||||
private HtmlScreenCaptureCore _htmlScreenCapture;
|
private HtmlScreenCaptureCore _htmlScreenCapture;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides data for the HtmlScreenCaptureAvailable event.
|
/// Provides data for the HtmlScreenCaptureAvailable event.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -123,8 +122,8 @@ namespace OpenLiveWriter.Api
|
||||||
private Bitmap _bitmap;
|
private Bitmap _bitmap;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Value indicating whether the screen capture has been completed. Set this value to
|
/// Value indicating whether the screen capture has been completed. Set this value to
|
||||||
/// false to indicate that the screen capture is not yet completed. This property is useful
|
/// false to indicate that the screen capture is not yet completed. This property is useful
|
||||||
/// in the case where the content to be captured has a secondary loading step (such as
|
/// in the case where the content to be captured has a secondary loading step (such as
|
||||||
/// a media player loading a video) which must occur before the screen capture is completed.
|
/// a media player loading a video) which must occur before the screen capture is completed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -159,10 +158,10 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
private object _document;
|
private object _document;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Value indicating whether the document is ready for a screen capture. Set this value
|
/// Value indicating whether the document is ready for a screen capture. Set this value
|
||||||
/// to false to indicate that the document is not yet ready. This is useful for HTML
|
/// to false to indicate that the document is not yet ready. This is useful for HTML
|
||||||
/// documents that load in stages, such as documents that use embedded JavaScript to
|
/// documents that load in stages, such as documents that use embedded JavaScript to
|
||||||
/// fetch and render additional content after the main document has loaded.
|
/// fetch and render additional content after the main document has loaded.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool DocumentReady
|
public bool DocumentReady
|
||||||
|
@ -184,5 +183,4 @@ namespace OpenLiveWriter.Api
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public delegate void HtmlDocumentAvailableHandler(object sender, HtmlDocumentAvailableEventArgs e);
|
public delegate void HtmlDocumentAvailableHandler(object sender, HtmlDocumentAvailableEventArgs e);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -55,7 +55,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// <param name="operation">An operation that transforms text.</param>
|
/// <param name="operation">An operation that transforms text.</param>
|
||||||
/// <returns>The transformed HTML.</returns>
|
/// <returns>The transformed HTML.</returns>
|
||||||
/// <example>This example replaces the word "foo" with the word "bar".
|
/// <example>This example replaces the word "foo" with the word "bar".
|
||||||
///
|
///
|
||||||
/// <code>string newHtml = TransformHtmlText(html, true,
|
/// <code>string newHtml = TransformHtmlText(html, true,
|
||||||
/// (text) => { Regex.Replace(text, @"\bfoo\b", "bar") });</code>
|
/// (text) => { Regex.Replace(text, @"\bfoo\b", "bar") });</code>
|
||||||
/// </example>
|
/// </example>
|
||||||
|
|
|
@ -6,8 +6,8 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
public interface ILiveClipboardOptionsEditor
|
public interface ILiveClipboardOptionsEditor
|
||||||
{
|
{
|
||||||
void EditLiveClipboardOptions(IWin32Window dialogOwner) ;
|
void EditLiveClipboardOptions(IWin32Window dialogOwner) ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the ID of the post, as assigned by the server. For
|
/// Gets the ID of the post, as assigned by the server. For
|
||||||
/// new posts that have never been successfully posted to a
|
/// new posts that have never been successfully posted to a
|
||||||
/// server, the value will be null.
|
/// server, the value will be null.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
string Id { get; }
|
string Id { get; }
|
||||||
|
|
|
@ -68,11 +68,11 @@ namespace OpenLiveWriter.Api
|
||||||
string HomepageUrl { get; }
|
string HomepageUrl { get; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the detected background color of the publishing
|
/// Gets the detected background color of the publishing
|
||||||
/// context, or null if none is available.
|
/// context, or null if none is available.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Since the detection is based on heuristics, it
|
/// Since the detection is based on heuristics, it
|
||||||
/// is just a good guess and may not always be correct.
|
/// is just a good guess and may not always be correct.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
Color? BodyBackgroundColor { get; }
|
Color? BodyBackgroundColor { get; }
|
||||||
|
@ -83,7 +83,5 @@ namespace OpenLiveWriter.Api
|
||||||
IPostInfo PostInfo { get; }
|
IPostInfo PostInfo { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -38,7 +38,6 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// SmartContent object alignment.
|
/// SmartContent object alignment.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -119,7 +118,7 @@ namespace OpenLiveWriter.Api
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Interface to supporting-files used by the SmartContent object. Any type of file can be added
|
/// Interface to supporting-files used by the SmartContent object. Any type of file can be added
|
||||||
/// to the list of supporting files however only image files with a .gif or .jpg extension can
|
/// to the list of supporting files however only image files with a .gif or .jpg extension can
|
||||||
/// be included in published output.
|
/// be included in published output.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ISupportingFiles
|
public interface ISupportingFiles
|
||||||
|
@ -195,6 +194,5 @@ namespace OpenLiveWriter.Api
|
||||||
string[] Filenames { get; }
|
string[] Filenames { get; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,6 @@ namespace OpenLiveWriter.Api
|
||||||
void UpdateStatusBar(Image image, string statusText);
|
void UpdateStatusBar(Image image, string statusText);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Event handler that is fired when a content is resized.
|
/// Event handler that is fired when a content is resized.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -3,11 +3,10 @@
|
||||||
|
|
||||||
using System;
|
using System;
|
||||||
|
|
||||||
|
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attribute applied to ContentSource and SmartContentSource classes which override the
|
/// Attribute applied to ContentSource and SmartContentSource classes which override the
|
||||||
/// CreateContent method to enable creation of new content from an Insert dialog.
|
/// CreateContent method to enable creation of new content from an Insert dialog.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
|
|
|
@ -7,7 +7,7 @@ using System.Reflection;
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attribute applied to ContentSource and SmartContentSource classes which override the
|
/// Attribute applied to ContentSource and SmartContentSource classes which override the
|
||||||
/// CreateContentFromLiveClipboard method to enable creation of new content from Live
|
/// CreateContentFromLiveClipboard method to enable creation of new content from Live
|
||||||
/// Clipboard data.
|
/// Clipboard data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -18,7 +18,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// Initialize a new instance of a LiveClipboardContentSourceAttribute
|
/// Initialize a new instance of a LiveClipboardContentSourceAttribute
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">End-user presentable name of data format handled by this ContentSource.</param>
|
/// <param name="name">End-user presentable name of data format handled by this ContentSource.</param>
|
||||||
/// <param name="contentType">MIME content-type handled by this ContentSource (corresponds to the
|
/// <param name="contentType">MIME content-type handled by this ContentSource (corresponds to the
|
||||||
/// contentType attribute of the <lc:format> tag)</param>
|
/// contentType attribute of the <lc:format> tag)</param>
|
||||||
public LiveClipboardContentSourceAttribute(string name, string contentType)
|
public LiveClipboardContentSourceAttribute(string name, string contentType)
|
||||||
{
|
{
|
||||||
|
@ -46,7 +46,7 @@ namespace OpenLiveWriter.Api
|
||||||
private string _name = String.Empty;
|
private string _name = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// MIME content-type handled by this ContentSource (corresponds to the
|
/// MIME content-type handled by this ContentSource (corresponds to the
|
||||||
/// contentType attribute of the <lc:format> tag)
|
/// contentType attribute of the <lc:format> tag)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ContentType
|
public string ContentType
|
||||||
|
@ -68,7 +68,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Path to embedded image resource used to represent this format within the Live Clipboard
|
/// Path to embedded image resource used to represent this format within the Live Clipboard
|
||||||
/// Preferences panel. The embedded image should be 20x18. If this attribute is not specified
|
/// Preferences panel. The embedded image should be 20x18. If this attribute is not specified
|
||||||
/// then the image specified in the WriterPlugin attribute is used.
|
/// then the image specified in the WriterPlugin attribute is used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string ImagePath
|
public string ImagePath
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,7 @@ namespace OpenLiveWriter.Api
|
||||||
private string _description = String.Empty;
|
private string _description = String.Empty;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Content sub-type handled by this content source. (corresponds to the
|
/// Content sub-type handled by this content source. (corresponds to the
|
||||||
/// type attribute of the <lc:format> tag). Optional (required only
|
/// type attribute of the <lc:format> tag). Optional (required only
|
||||||
/// for formats which require additional disambiguration of the contentType
|
/// for formats which require additional disambiguration of the contentType
|
||||||
/// attribute).
|
/// attribute).
|
||||||
|
|
|
@ -11,12 +11,12 @@ using OpenLiveWriter.Controls;
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides diagnostic services (logging and error display) to plugins.
|
/// Provides diagnostic services (logging and error display) to plugins.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class PluginDiagnostics
|
public sealed class PluginDiagnostics
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Notify the user that an error has occurred.
|
/// Notify the user that an error has occurred.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="title">Error title (used as the error caption).</param>
|
/// <param name="title">Error title (used as the error caption).</param>
|
||||||
/// <param name="description">Error description (displayed within a scrolling
|
/// <param name="description">Error description (displayed within a scrolling
|
||||||
|
@ -31,7 +31,7 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Notify the user that an unexpected exception has occurred. In addition to
|
/// Notify the user that an unexpected exception has occurred. In addition to
|
||||||
/// displaying an error message to the user this method also automatically logs
|
/// displaying an error message to the user this method also automatically logs
|
||||||
/// the unexpected exception in the Open Live Writer log file.
|
/// the unexpected exception in the Open Live Writer log file.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -12,7 +12,6 @@ using System.Runtime.InteropServices;
|
||||||
using OpenLiveWriter.Interop.Windows;
|
using OpenLiveWriter.Interop.Windows;
|
||||||
using OpenLiveWriter.CoreServices;
|
using OpenLiveWriter.CoreServices;
|
||||||
|
|
||||||
|
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -28,7 +27,7 @@ namespace OpenLiveWriter.Api
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Read from the Internet cache if possible, otherwise retreive
|
/// Read from the Internet cache if possible, otherwise retreive
|
||||||
/// from the network. If the request is successful then write the
|
/// from the network. If the request is successful then write the
|
||||||
/// response to the Internet cache.
|
/// response to the Internet cache.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
CacheIfAvailable,
|
CacheIfAvailable,
|
||||||
|
@ -46,7 +45,6 @@ namespace OpenLiveWriter.Api
|
||||||
Reload
|
Reload
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides the ability to execute Http requests that utilize the (optional) Web Proxy
|
/// Provides the ability to execute Http requests that utilize the (optional) Web Proxy
|
||||||
/// settings specified by the user in the Web Proxy Preferences panel. Also enables
|
/// settings specified by the user in the Web Proxy Preferences panel. Also enables
|
||||||
|
@ -148,7 +146,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// Retreive the resource (with no timeout).
|
/// Retreive the resource (with no timeout).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>A stream representing the requested resource. Can return null
|
/// <returns>A stream representing the requested resource. Can return null
|
||||||
/// if the CacheLevel is CacheOnly and the resource could not be found
|
/// if the CacheLevel is CacheOnly and the resource could not be found
|
||||||
/// in the cache.</returns>
|
/// in the cache.</returns>
|
||||||
public Stream GetResponse()
|
public Stream GetResponse()
|
||||||
{
|
{
|
||||||
|
@ -156,11 +154,11 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Retrieve the resource with the specified timeout (in ms).
|
/// Retrieve the resource with the specified timeout (in ms).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="timeoutMs">Timeout (in ms) for the request.</param>
|
/// <param name="timeoutMs">Timeout (in ms) for the request.</param>
|
||||||
/// <returns>A stream representing the requested resource. Can return null
|
/// <returns>A stream representing the requested resource. Can return null
|
||||||
/// if the CacheLevel is CacheOnly and the resource could not be found
|
/// if the CacheLevel is CacheOnly and the resource could not be found
|
||||||
/// in the cache.</returns>
|
/// in the cache.</returns>
|
||||||
public Stream GetResponse(int timeoutMs)
|
public Stream GetResponse(int timeoutMs)
|
||||||
{
|
{
|
||||||
|
|
|
@ -11,17 +11,17 @@ namespace OpenLiveWriter.Api
|
||||||
/// uploaded to the server either as a published post or as a draft.
|
/// uploaded to the server either as a published post or as a draft.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// There is a single instance of a given PublishNotificationHook created
|
/// There is a single instance of a given PublishNotificationHook created
|
||||||
/// for each Open Live Writer process. The implementation of PublishNotificationHook
|
/// for each Open Live Writer process. The implementation of PublishNotificationHook
|
||||||
/// objects must therefore be stateless (the context required to carry out the
|
/// objects must therefore be stateless (the context required to carry out the
|
||||||
/// responsibilities of the various methods are passed as parameters to the
|
/// responsibilities of the various methods are passed as parameters to the
|
||||||
/// respective methods).
|
/// respective methods).
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public abstract class PublishNotificationHook : WriterPlugin
|
public abstract class PublishNotificationHook : WriterPlugin
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Notifies the plugin that a post publish operation is about to be attempted,
|
/// Notifies the plugin that a post publish operation is about to be attempted,
|
||||||
/// unless this plugin or another publishing notification plugin cancels the
|
/// unless this plugin or another publishing notification plugin cancels the
|
||||||
/// attempt.
|
/// attempt.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dialogOwner">Owner for any dialog boxes shown.</param>
|
/// <param name="dialogOwner">Owner for any dialog boxes shown.</param>
|
||||||
|
|
|
@ -12,7 +12,7 @@ namespace OpenLiveWriter.Api
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>Sidebar editor for SmartContent</para>
|
/// <para>Sidebar editor for SmartContent</para>
|
||||||
/// <para>There is a single instance of a given SmartContentEditor created for each Open Live Writer
|
/// <para>There is a single instance of a given SmartContentEditor created for each Open Live Writer
|
||||||
/// post editor window. The implementation of SmartContentEditor objects must therefore be
|
/// post editor window. The implementation of SmartContentEditor objects must therefore be
|
||||||
/// stateless and assume that they will be the editor for mutliple distince SmartContent objects.</para>
|
/// stateless and assume that they will be the editor for mutliple distince SmartContent objects.</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class SmartContentEditor : UserControl
|
public class SmartContentEditor : UserControl
|
||||||
|
@ -46,7 +46,6 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
private ISmartContent _selectedContent;
|
private ISmartContent _selectedContent;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Notification that the currently selected SmartContent object
|
/// Notification that the currently selected SmartContent object
|
||||||
/// has changed. The editor should adapt its state to the current
|
/// has changed. The editor should adapt its state to the current
|
||||||
|
@ -81,12 +80,11 @@ namespace OpenLiveWriter.Api
|
||||||
ContentEdited(this, EventArgs.Empty);
|
ContentEdited(this, EventArgs.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// SmartContentEditor
|
// SmartContentEditor
|
||||||
//
|
//
|
||||||
this.Name = "SmartContentEditor";
|
this.Name = "SmartContentEditor";
|
||||||
this.Size = new System.Drawing.Size(200, 500);
|
this.Size = new System.Drawing.Size(200, 500);
|
||||||
|
|
||||||
|
|
|
@ -10,20 +10,20 @@ namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>Base class for plugins that wish to enable the insertion of smart, two-way editable HTML content
|
/// <para>Base class for plugins that wish to enable the insertion of smart, two-way editable HTML content
|
||||||
/// into posts. The source of content to be inserted can any or all of the following: an Insert dialog,
|
/// into posts. The source of content to be inserted can any or all of the following: an Insert dialog,
|
||||||
/// a URL, or LiveClipboard data.</para>
|
/// a URL, or LiveClipboard data.</para>
|
||||||
/// <para>Implementors of this class should override the CreateContent method(s) corresponding to
|
/// <para>Implementors of this class should override the CreateContent method(s) corresponding to
|
||||||
/// the content-sources they wish to support. Note also that each of the CreateContent methods
|
/// the content-sources they wish to support. Note also that each of the CreateContent methods
|
||||||
/// has a corresponding class-level attribute that must be specified along with the override.</para>
|
/// has a corresponding class-level attribute that must be specified along with the override.</para>
|
||||||
/// <para>There is a single instance of a given SmartContentSource created for each Open Live Writer
|
/// <para>There is a single instance of a given SmartContentSource created for each Open Live Writer
|
||||||
/// process. The implementation of SmartContentSource objects must therefore be stateless (the
|
/// process. The implementation of SmartContentSource objects must therefore be stateless (the
|
||||||
/// context required to carry out the responsibilities of the various methods are passed as parameters to
|
/// context required to carry out the responsibilities of the various methods are passed as parameters to
|
||||||
/// the respective methods).</para>
|
/// the respective methods).</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public abstract class SmartContentSource : WriterPlugin
|
public abstract class SmartContentSource : WriterPlugin
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create content using an Insert dialog. Plugin classes which override this method must
|
/// Create content using an Insert dialog. Plugin classes which override this method must
|
||||||
/// also be declared with the InsertableContentSourceAttribute.
|
/// also be declared with the InsertableContentSourceAttribute.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
|
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
|
||||||
|
@ -53,8 +53,8 @@ namespace OpenLiveWriter.Api
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Create content based on a URL. The source of this URL can either be the page the user was
|
/// Create content based on a URL. The source of this URL can either be the page the user was
|
||||||
/// navigated to when they pressed the "Blog This" button or a URL that is pasted or dragged
|
/// navigated to when they pressed the "Blog This" button or a URL that is pasted or dragged
|
||||||
/// into the editor. Plugin classes which override this method must also be declared with the
|
/// into the editor. Plugin classes which override this method must also be declared with the
|
||||||
/// UrlContentSourceAttribute.
|
/// UrlContentSourceAttribute.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="url">Url to create content from.</param>
|
/// <param name="url">Url to create content from.</param>
|
||||||
|
@ -66,10 +66,9 @@ namespace OpenLiveWriter.Api
|
||||||
throw new NotImplementedException("SmartContentSource.CreateContentFromUrl");
|
throw new NotImplementedException("SmartContentSource.CreateContentFromUrl");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Generate the HTML content which is used to represent the SmartContent item within
|
/// Generate the HTML content which is used to represent the SmartContent item within
|
||||||
/// the post editor. The default behavior for this method if it is not overridden is to
|
/// the post editor. The default behavior for this method if it is not overridden is to
|
||||||
/// call GeneratePublishHtml.
|
/// call GeneratePublishHtml.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="content">SmartContent object to generate HTML for.</param>
|
/// <param name="content">SmartContent object to generate HTML for.</param>
|
||||||
|
@ -119,7 +118,7 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Notification of realtime resizing of the object (this will only be called if the
|
/// Notification of realtime resizing of the object (this will only be called if the
|
||||||
/// ResizeCapabilities include RealtimeResizing). The implementation of this method
|
/// ResizeCapabilities include RealtimeResizing). The implementation of this method
|
||||||
/// should update the ISmartContent object as appropriate based on the new size.
|
/// should update the ISmartContent object as appropriate based on the new size.
|
||||||
/// The editor will first call this method and then call the GenerateEditorHtml
|
/// The editor will first call this method and then call the GenerateEditorHtml
|
||||||
|
@ -132,7 +131,7 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Notification that the sizing of an object is complete. The implementation of
|
/// Notification that the sizing of an object is complete. The implementation of
|
||||||
/// this method should update the ISmartContent object as approriate based on the
|
/// this method should update the ISmartContent object as approriate based on the
|
||||||
/// new size. The editor will first call this method and then call the GenerateEditorHtml
|
/// new size. The editor will first call this method and then call the GenerateEditorHtml
|
||||||
/// method to update the display based on the new size.
|
/// method to update the display based on the new size.
|
||||||
|
@ -171,7 +170,7 @@ namespace OpenLiveWriter.Api
|
||||||
PreserveAspectRatio = 2,
|
PreserveAspectRatio = 2,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Update the appearance of the smart content object in realtime as the user resizes the object. If this
|
/// Update the appearance of the smart content object in realtime as the user resizes the object. If this
|
||||||
/// flag is specified then the OnResizing method should be overriden to update the state of the ISmartContent
|
/// flag is specified then the OnResizing method should be overriden to update the state of the ISmartContent
|
||||||
/// object as resizing occurs. The editor will first call this method and then call the GenerateEditorHtml
|
/// object as resizing occurs. The editor will first call this method and then call the GenerateEditorHtml
|
||||||
/// method to update the display as the user resizes.
|
/// method to update the display as the user resizes.
|
||||||
|
@ -185,7 +184,7 @@ namespace OpenLiveWriter.Api
|
||||||
public class ResizeOptions
|
public class ResizeOptions
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Specify the ID of an HTML element that should be used as the "target" for resizing. This is useful
|
/// Specify the ID of an HTML element that should be used as the "target" for resizing. This is useful
|
||||||
/// in the case where the ISmartContent object is principly represented by a single element (such as an image)
|
/// in the case where the ISmartContent object is principly represented by a single element (such as an image)
|
||||||
/// but which also contains other elements (such as an image caption line). In this case proportional sizing
|
/// but which also contains other elements (such as an image caption line). In this case proportional sizing
|
||||||
/// should apply to the image rather than the entire object's HTML. If a ResizableElementId is specified then
|
/// should apply to the image rather than the entire object's HTML. If a ResizableElementId is specified then
|
||||||
|
@ -200,9 +199,9 @@ namespace OpenLiveWriter.Api
|
||||||
private string _resizableElementId = null;
|
private string _resizableElementId = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Aspect ratio to be enforced if the ResizeCapabilties.PreserveAspectRatio flag is specified. If the
|
/// Aspect ratio to be enforced if the ResizeCapabilties.PreserveAspectRatio flag is specified. If the
|
||||||
/// desired aspect ratio is staticly known it is highly recommended that this ratio be specified within
|
/// desired aspect ratio is staticly known it is highly recommended that this ratio be specified within
|
||||||
/// the OnResizeStart method (will eliminate the problem of "creeping" change to the aspect ratios with continued resizing).
|
/// the OnResizeStart method (will eliminate the problem of "creeping" change to the aspect ratios with continued resizing).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public double AspectRatio
|
public double AspectRatio
|
||||||
{
|
{
|
||||||
|
|
|
@ -19,7 +19,7 @@ namespace OpenLiveWriter.Api
|
||||||
public delegate TResult Task<TParam, TResult>(TParam arg);
|
public delegate TResult Task<TParam, TResult>(TParam arg);
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Encapsulates a method that takes no parameters and does not
|
/// Encapsulates a method that takes no parameters and does not
|
||||||
/// directly return a value.
|
/// directly return a value.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public delegate void Task();
|
public delegate void Task();
|
||||||
|
@ -32,12 +32,12 @@ namespace OpenLiveWriter.Api
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Executes a potentially long-running task on a background thread
|
/// Executes a potentially long-running task on a background thread
|
||||||
/// while keeping the UI thread running responsively. This method
|
/// while keeping the UI thread running responsively. This method
|
||||||
/// does not return until the task has completed executing. Any
|
/// does not return until the task has completed executing. Any
|
||||||
/// exception thrown by the task will be re-thrown on the calling
|
/// exception thrown by the task will be re-thrown on the calling
|
||||||
/// thread.
|
/// thread.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This method is designed to keep message loops running
|
/// This method is designed to keep message loops running
|
||||||
/// responsively. If the current thread does not have an active
|
/// responsively. If the current thread does not have an active
|
||||||
/// message loop, the task is simply executed on the current thread.
|
/// message loop, the task is simply executed on the current thread.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
@ -54,15 +54,15 @@ namespace OpenLiveWriter.Api
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// <para>Executes a potentially long-running task on a background thread
|
/// <para>Executes a potentially long-running task on a background thread
|
||||||
/// while keeping the UI thread running responsively. This method
|
/// while keeping the UI thread running responsively. This method
|
||||||
/// does not return until the task has completed executing. Any
|
/// does not return until the task has completed executing. Any
|
||||||
/// exception thrown by the task will be re-thrown on the calling
|
/// exception thrown by the task will be re-thrown on the calling
|
||||||
/// thread.</para>
|
/// thread.</para>
|
||||||
/// <para>This overload takes an argument and returns a result.
|
/// <para>This overload takes an argument and returns a result.
|
||||||
/// The argument is passed to the task, and the value returned
|
/// The argument is passed to the task, and the value returned
|
||||||
/// by the task is returned by this method.</para>
|
/// by the task is returned by this method.</para>
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// This method is designed to keep message loops running
|
/// This method is designed to keep message loops running
|
||||||
/// responsively. If the current thread does not have an active
|
/// responsively. If the current thread does not have an active
|
||||||
/// message loop, the task is simply executed on the current thread.
|
/// message loop, the task is simply executed on the current thread.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
|
@ -79,7 +79,6 @@ namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
TResult result = default(TResult);
|
TResult result = default(TResult);
|
||||||
|
|
||||||
|
|
||||||
if (Application.MessageLoop)
|
if (Application.MessageLoop)
|
||||||
{
|
{
|
||||||
Exception e = null;
|
Exception e = null;
|
||||||
|
|
|
@ -8,10 +8,10 @@ using System.Text.RegularExpressions;
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attribute applied to ContentSource and SmartContentSource classes which override the
|
/// Attribute applied to ContentSource and SmartContentSource classes which override the
|
||||||
/// CreateContentFromUrl method to enable creation of new content from URLs. The source of
|
/// CreateContentFromUrl method to enable creation of new content from URLs. The source of
|
||||||
/// this URL can either be the page the user was navigated to when they pressed the "Blog This"
|
/// this URL can either be the page the user was navigated to when they pressed the "Blog This"
|
||||||
/// button or a URL that is pasted or dragged into the editor.
|
/// button or a URL that is pasted or dragged into the editor.
|
||||||
/// Plugin classes which override this method must also be declared with the UrlContentSourceAttribute.
|
/// Plugin classes which override this method must also be declared with the UrlContentSourceAttribute.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
|
@ -49,7 +49,7 @@ namespace OpenLiveWriter.Api
|
||||||
private string _urlPattern;
|
private string _urlPattern;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Indicates that the UrlContentSource requires a progress dialog during the execution of its CreateContentFromUrl
|
/// Indicates that the UrlContentSource requires a progress dialog during the execution of its CreateContentFromUrl
|
||||||
/// method. This value should be specified if the content source performs network operations during content creation.
|
/// method. This value should be specified if the content source performs network operations during content creation.
|
||||||
/// Defaults to false.
|
/// Defaults to false.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -95,7 +95,6 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
private string _progressMessage = String.Empty;
|
private string _progressMessage = String.Empty;
|
||||||
|
|
||||||
|
|
||||||
private bool ValidateRegex(string pattern)
|
private bool ValidateRegex(string pattern)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -9,7 +9,7 @@ using Microsoft.Win32;
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides the abilty to launch the Writer application either to create a new post, open an existing post, or Blog This
|
/// Provides the abilty to launch the Writer application either to create a new post, open an existing post, or Blog This
|
||||||
/// for a Link, Snippet, Image, or Feed Item.
|
/// for a Link, Snippet, Image, or Feed Item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class WriterApplication
|
public sealed class WriterApplication
|
||||||
|
@ -63,7 +63,6 @@ namespace OpenLiveWriter.Api
|
||||||
_application.ShowOptions(optionsPage);
|
_application.ShowOptions(optionsPage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
[ComImport]
|
[ComImport]
|
||||||
[Guid("366FF6CE-CA04-433D-8522-741094458839")]
|
[Guid("366FF6CE-CA04-433D-8522-741094458839")]
|
||||||
private class OpenLiveWriterApplicationClass { } // implements IOpenLiveWriterApplication
|
private class OpenLiveWriterApplicationClass { } // implements IOpenLiveWriterApplication
|
||||||
|
|
|
@ -13,7 +13,7 @@ namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initialize the plugin. Default implementation saves a reference to the global pluginOptions
|
/// Initialize the plugin. Default implementation saves a reference to the global pluginOptions
|
||||||
/// which may be subsequently accessed using the Options property. If subclasses override this
|
/// which may be subsequently accessed using the Options property. If subclasses override this
|
||||||
/// method they must call the base implementation to ensure that this reference is saved.
|
/// method they must call the base implementation to ensure that this reference is saved.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="pluginOptions">Plugin options.</param>
|
/// <param name="pluginOptions">Plugin options.</param>
|
||||||
|
@ -23,7 +23,7 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Edit the plugins global options. This method can be called if the value of the
|
/// Edit the plugins global options. This method can be called if the value of the
|
||||||
/// HasEditableOptions property WriterPluginAttribute is true (default is false).
|
/// HasEditableOptions property WriterPluginAttribute is true (default is false).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="dialogOwner">Owner for the options dialog.</param>
|
/// <param name="dialogOwner">Owner for the options dialog.</param>
|
||||||
|
|
|
@ -7,7 +7,7 @@ using System.Globalization;
|
||||||
namespace OpenLiveWriter.Api
|
namespace OpenLiveWriter.Api
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Attribute which should be applied to all classes derived from WriterPlugin.
|
/// Attribute which should be applied to all classes derived from WriterPlugin.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[AttributeUsage(AttributeTargets.Class)]
|
[AttributeUsage(AttributeTargets.Class)]
|
||||||
public class WriterPluginAttribute : Attribute
|
public class WriterPluginAttribute : Attribute
|
||||||
|
@ -38,7 +38,6 @@ namespace OpenLiveWriter.Api
|
||||||
ImagePath = imagePath;
|
ImagePath = imagePath;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Unique ID for the plugin (should be a GUID without leading and trailing braces)
|
/// Unique ID for the plugin (should be a GUID without leading and trailing braces)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -82,13 +81,13 @@ namespace OpenLiveWriter.Api
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Path to embedded image resource used to represent this plugin within the
|
/// Path to embedded image resource used to represent this plugin within the
|
||||||
/// Open Live Writer UI (menu bitmap, sidebar bitmap, etc.). The size of
|
/// Open Live Writer UI (menu bitmap, sidebar bitmap, etc.). The size of
|
||||||
/// the embedded image must be 20x18 or 16x16 pixels.
|
/// the embedded image must be 20x18 or 16x16 pixels.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <remarks>
|
/// <remarks>
|
||||||
/// Early Beta versions of Open Live Writer required icons to be 20x18, but
|
/// Early Beta versions of Open Live Writer required icons to be 20x18, but
|
||||||
/// later versions prefer 16x16. Later versions of Writer will scale 20x18 images
|
/// later versions prefer 16x16. Later versions of Writer will scale 20x18 images
|
||||||
/// to 16x16, or, if only the center 16x16 pixels of the 20x18 are non-transparent,
|
/// to 16x16, or, if only the center 16x16 pixels of the 20x18 are non-transparent,
|
||||||
/// the image will simply be cropped to 16x16.
|
/// the image will simply be cropped to 16x16.
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
public string ImagePath
|
public string ImagePath
|
||||||
|
@ -160,7 +159,6 @@ namespace OpenLiveWriter.Api
|
||||||
}
|
}
|
||||||
private bool _hasEditableOptions = false;
|
private bool _hasEditableOptions = false;
|
||||||
|
|
||||||
|
|
||||||
private bool ValidateGuid(string id)
|
private bool ValidateGuid(string id)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
|
|
|
@ -10,129 +10,129 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Application control.
|
/// Application control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplicationControl : System.Windows.Forms.UserControl, ICommandManager, ISelectionManager
|
public class ApplicationControl : System.Windows.Forms.UserControl, ICommandManager, ISelectionManager
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The set of active commands, keyed by command identifier.
|
/// The set of active commands, keyed by command identifier.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Hashtable commandTable = new Hashtable();
|
private Hashtable commandTable = new Hashtable();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The set of selected objects.
|
/// The set of selected objects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ArrayList selectionList = new ArrayList();
|
private ArrayList selectionList = new ArrayList();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Occurs when the selection changes.
|
/// Occurs when the selection changes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event EventHandler SelectionChanged;
|
public event EventHandler SelectionChanged;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the ApplicationControl class.
|
/// Initializes a new instance of the ApplicationControl class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ApplicationControl()
|
public ApplicationControl()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
components = new System.ComponentModel.Container();
|
components = new System.ComponentModel.Container();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <interface>ICommandManager</interface>
|
/// <interface>ICommandManager</interface>
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Activates the specified command list.
|
/// Activates the specified command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="commandList">The CommandList to activate.</param>
|
/// <param name="commandList">The CommandList to activate.</param>
|
||||||
public void ActivateCommandList(CommandList commandList)
|
public void ActivateCommandList(CommandList commandList)
|
||||||
{
|
{
|
||||||
// Add all the commands from this command provider to the command table.
|
// Add all the commands from this command provider to the command table.
|
||||||
foreach (Command command in commandList.Commands)
|
foreach (Command command in commandList.Commands)
|
||||||
commandTable.Add(command.Identifier, command);
|
commandTable.Add(command.Identifier, command);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <interface>ICommandManager</interface>
|
/// <interface>ICommandManager</interface>
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Deactivates the specified command list.
|
/// Deactivates the specified command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="commandList">The CommandList to deactivate.</param>
|
/// <param name="commandList">The CommandList to deactivate.</param>
|
||||||
public void DeactivateCommandList(CommandList commandList)
|
public void DeactivateCommandList(CommandList commandList)
|
||||||
{
|
{
|
||||||
// Remove all the commands from this command provider from the command table.
|
// Remove all the commands from this command provider from the command table.
|
||||||
foreach (Command command in commandList.Commands)
|
foreach (Command command in commandList.Commands)
|
||||||
commandTable.Remove(command.Identifier);
|
commandTable.Remove(command.Identifier);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <interface>ISelectionManager</interface>
|
/// <interface>ISelectionManager</interface>
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clears the current selection.
|
/// Clears the current selection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void ClearSelection()
|
public void ClearSelection()
|
||||||
{
|
{
|
||||||
// Clear the selection list.
|
// Clear the selection list.
|
||||||
selectionList.Clear();
|
selectionList.Clear();
|
||||||
|
|
||||||
// Raise the SelectionChanged event.
|
// Raise the SelectionChanged event.
|
||||||
OnSelectionChanged(EventArgs.Empty);
|
OnSelectionChanged(EventArgs.Empty);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Raises the SelectionChanged event.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="e">And EventArgs that contains the event data.</param>
|
|
||||||
protected virtual void OnSelectionChanged(EventArgs e)
|
|
||||||
{
|
|
||||||
if (SelectionChanged != null)
|
|
||||||
SelectionChanged(this, e);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <interface>ISelectionManager</interface>
|
/// <summary>
|
||||||
/// <summary>
|
/// Raises the SelectionChanged event.
|
||||||
/// Sets the selection.
|
/// </summary>
|
||||||
/// </summary>
|
/// <param name="e">And EventArgs that contains the event data.</param>
|
||||||
/// <param name="selectableObject">The ISelectableObject value to select.</param>
|
protected virtual void OnSelectionChanged(EventArgs e)
|
||||||
public void SetSelection(ISelectableObject selectableObject)
|
{
|
||||||
{
|
if (SelectionChanged != null)
|
||||||
}
|
SelectionChanged(this, e);
|
||||||
|
}
|
||||||
|
|
||||||
/// <interface>ISelectionManager</interface>
|
/// <interface>ISelectionManager</interface>
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Sets the selection.
|
/// Sets the selection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="selectableObject">The array of ISelectableObject values to select.</param>
|
/// <param name="selectableObject">The ISelectableObject value to select.</param>
|
||||||
public void SetSelection(ISelectableObject[] selectableObjects)
|
public void SetSelection(ISelectableObject selectableObject)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
/// <interface>ISelectionManager</interface>
|
||||||
|
/// <summary>
|
||||||
|
/// Sets the selection.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="selectableObject">The array of ISelectableObject values to select.</param>
|
||||||
|
public void SetSelection(ISelectableObject[] selectableObjects)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,9 +85,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// ApplicationForm
|
// ApplicationForm
|
||||||
//
|
//
|
||||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
|
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
|
||||||
this.ClientSize = new System.Drawing.Size(442, 422);
|
this.ClientSize = new System.Drawing.Size(442, 422);
|
||||||
this.Name = "ApplicationForm";
|
this.Name = "ApplicationForm";
|
||||||
|
@ -111,7 +111,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
SizeChanged -= new EventHandler(ApplicationForm_SizeChanged);
|
SizeChanged -= new EventHandler(ApplicationForm_SizeChanged);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Disposed a menu and all of its submenu items.
|
/// Disposed a menu and all of its submenu items.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -252,7 +251,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
private IntPtr _hMainMenuBitmap = IntPtr.Zero;
|
private IntPtr _hMainMenuBitmap = IntPtr.Zero;
|
||||||
private IntPtr _hMainMenuBrushBitmap = IntPtr.Zero;
|
private IntPtr _hMainMenuBrushBitmap = IntPtr.Zero;
|
||||||
|
|
||||||
|
|
||||||
void IMainMenuBackgroundPainter.PaintBackground(Graphics g, Rectangle menuItemBounds)
|
void IMainMenuBackgroundPainter.PaintBackground(Graphics g, Rectangle menuItemBounds)
|
||||||
{
|
{
|
||||||
if (ColorizedResources.Instance.CustomMainMenuPainting)
|
if (ColorizedResources.Instance.CustomMainMenuPainting)
|
||||||
|
@ -276,7 +274,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
GraphicsState graphicsState = g.Save();
|
GraphicsState graphicsState = g.Save();
|
||||||
|
@ -342,8 +339,8 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
/*
|
/*
|
||||||
Rectangle destinationRect = new Rectangle(
|
Rectangle destinationRect = new Rectangle(
|
||||||
frameWidth,
|
frameWidth,
|
||||||
frameHeight + SystemInformation.CaptionHeight + SystemInformation.MenuHeight - 1,
|
frameHeight + SystemInformation.CaptionHeight + SystemInformation.MenuHeight - 1,
|
||||||
ClientSize.Width, 1) ;
|
ClientSize.Width, 1) ;
|
||||||
*/
|
*/
|
||||||
// takes into account narrow window sizes where the main menu items start stacking vertically
|
// takes into account narrow window sizes where the main menu items start stacking vertically
|
||||||
|
|
|
@ -5,16 +5,16 @@ using System;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ApplicationGlobalContext for for the ApplicationFramework.
|
/// ApplicationGlobalContext for for the ApplicationFramework.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplicationGlobalContext
|
public class ApplicationGlobalContext
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the ApplicationGlobalContext class.
|
/// Initializes a new instance of the ApplicationGlobalContext class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ApplicationGlobalContext()
|
private ApplicationGlobalContext()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplicationStyle : Component
|
public class ApplicationStyle : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
@ -471,7 +471,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The primary workspace command bar text color.
|
/// The primary workspace command bar text color.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1242,7 +1241,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -1259,8 +1258,8 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
|
|
|
@ -10,85 +10,85 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework.ApplicationStyles
|
namespace Project31.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleBlue : ApplicationStyle
|
public class ApplicationStyleBlue : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
public ApplicationStyleBlue()
|
public ApplicationStyleBlue()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleBlue
|
// ApplicationStyleBlue
|
||||||
//
|
//
|
||||||
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
||||||
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(207)), ((System.Byte)(227)), ((System.Byte)(253)));
|
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(207)), ((System.Byte)(227)), ((System.Byte)(253)));
|
||||||
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
||||||
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
||||||
this.InactiveSelectionColor = System.Drawing.SystemColors.Control;
|
this.InactiveSelectionColor = System.Drawing.SystemColors.Control;
|
||||||
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(228)), ((System.Byte)(228)));
|
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(228)), ((System.Byte)(228)));
|
||||||
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
||||||
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(232)), ((System.Byte)(232)));
|
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(232)), ((System.Byte)(232)));
|
||||||
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
||||||
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
||||||
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(195)), ((System.Byte)(215)), ((System.Byte)(249)));
|
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(195)), ((System.Byte)(215)), ((System.Byte)(249)));
|
||||||
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
||||||
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
||||||
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(180)), ((System.Byte)(215)));
|
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(180)), ((System.Byte)(215)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(117)), ((System.Byte)(135)), ((System.Byte)(179)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(166)), ((System.Byte)(187)), ((System.Byte)(223)));
|
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(166)), ((System.Byte)(187)), ((System.Byte)(223)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(148)), ((System.Byte)(173)), ((System.Byte)(222)));
|
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(148)), ((System.Byte)(173)), ((System.Byte)(222)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
||||||
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
||||||
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(213)), ((System.Byte)(249)));
|
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(213)), ((System.Byte)(249)));
|
||||||
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(154)), ((System.Byte)(174)), ((System.Byte)(213)));
|
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(154)), ((System.Byte)(174)), ((System.Byte)(213)));
|
||||||
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
||||||
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
||||||
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
||||||
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(223)), ((System.Byte)(247)));
|
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(223)), ((System.Byte)(247)));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,81 +10,81 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework.ApplicationStyles
|
namespace Project31.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleBronze : ApplicationStyle
|
public class ApplicationStyleBronze : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
public ApplicationStyleBronze()
|
public ApplicationStyleBronze()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleBronze
|
// ApplicationStyleBronze
|
||||||
//
|
//
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(221)), ((System.Byte)(192)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(221)), ((System.Byte)(192)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
||||||
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(226)));
|
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(240)), ((System.Byte)(240)), ((System.Byte)(226)));
|
||||||
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
||||||
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(172)), ((System.Byte)(172)), ((System.Byte)(133)));
|
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(172)), ((System.Byte)(172)), ((System.Byte)(133)));
|
||||||
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(228)), ((System.Byte)(228)));
|
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(228)), ((System.Byte)(228)));
|
||||||
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
||||||
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(232)), ((System.Byte)(232)));
|
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(232)), ((System.Byte)(232)));
|
||||||
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
||||||
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
||||||
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
||||||
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(200)), ((System.Byte)(173)));
|
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(200)), ((System.Byte)(173)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(172)), ((System.Byte)(172)), ((System.Byte)(133)));
|
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(172)), ((System.Byte)(172)), ((System.Byte)(133)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(230)), ((System.Byte)(220)));
|
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(230)), ((System.Byte)(220)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
|
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
||||||
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
||||||
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(241)), ((System.Byte)(241)), ((System.Byte)(227)));
|
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(241)), ((System.Byte)(241)), ((System.Byte)(227)));
|
||||||
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(200)), ((System.Byte)(173)));
|
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(200)), ((System.Byte)(173)));
|
||||||
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
|
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
|
||||||
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
|
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
|
||||||
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
||||||
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(238)), ((System.Byte)(238)), ((System.Byte)(222)));
|
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(238)), ((System.Byte)(238)), ((System.Byte)(222)));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,85 +10,85 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework.ApplicationStyles
|
namespace Project31.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleGreen : ApplicationStyle
|
public class ApplicationStyleGreen : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
public ApplicationStyleGreen()
|
public ApplicationStyleGreen()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleGreen
|
// ApplicationStyleGreen
|
||||||
//
|
//
|
||||||
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
||||||
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
||||||
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
||||||
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.InactiveSelectionColor = System.Drawing.SystemColors.Control;
|
this.InactiveSelectionColor = System.Drawing.SystemColors.Control;
|
||||||
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(228)), ((System.Byte)(228)));
|
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(228)), ((System.Byte)(228)), ((System.Byte)(228)));
|
||||||
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
||||||
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(232)), ((System.Byte)(232)));
|
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(232)), ((System.Byte)(232)), ((System.Byte)(232)));
|
||||||
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
||||||
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
||||||
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(197)), ((System.Byte)(236)), ((System.Byte)(230)));
|
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(197)), ((System.Byte)(236)), ((System.Byte)(230)));
|
||||||
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
||||||
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(175)), ((System.Byte)(213)), ((System.Byte)(205)));
|
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(175)), ((System.Byte)(213)), ((System.Byte)(205)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(212)), ((System.Byte)(204)));
|
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(212)), ((System.Byte)(204)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
||||||
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
||||||
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
||||||
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
||||||
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
||||||
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
||||||
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
||||||
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
|
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,107 +7,107 @@ using OpenLiveWriter.CoreServices;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleLavender : ApplicationStyle
|
public class ApplicationStyleLavender : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new insance of the ApplicationStyleSienna class.
|
/// Initializes a new insance of the ApplicationStyleSienna class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ApplicationStyleLavender()
|
public ApplicationStyleLavender()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleLavender
|
// ApplicationStyleLavender
|
||||||
//
|
//
|
||||||
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(129)), ((System.Byte)(129)), ((System.Byte)(197)));
|
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(129)), ((System.Byte)(129)), ((System.Byte)(197)));
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
||||||
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(213)), ((System.Byte)(214)), ((System.Byte)(238)));
|
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(213)), ((System.Byte)(214)), ((System.Byte)(238)));
|
||||||
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
||||||
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(127)), ((System.Byte)(177)));
|
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(127)), ((System.Byte)(177)));
|
||||||
this.DisplayName = "Lavender";
|
this.DisplayName = "Lavender";
|
||||||
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(238)));
|
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(238)));
|
||||||
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(182)), ((System.Byte)(178)), ((System.Byte)(202)));
|
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(182)), ((System.Byte)(178)), ((System.Byte)(202)));
|
||||||
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
||||||
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(198)), ((System.Byte)(218)));
|
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(198)), ((System.Byte)(218)));
|
||||||
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
||||||
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
||||||
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(181)), ((System.Byte)(221)));
|
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(178)), ((System.Byte)(181)), ((System.Byte)(221)));
|
||||||
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(154)), ((System.Byte)(178)), ((System.Byte)(181)), ((System.Byte)(221)));
|
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(154)), ((System.Byte)(178)), ((System.Byte)(181)), ((System.Byte)(221)));
|
||||||
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
||||||
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(163)), ((System.Byte)(158)), ((System.Byte)(217)));
|
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(163)), ((System.Byte)(158)), ((System.Byte)(217)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(127)), ((System.Byte)(177)));
|
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(127)), ((System.Byte)(177)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(215)), ((System.Byte)(219)));
|
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(215)), ((System.Byte)(219)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(155)), ((System.Byte)(209)));
|
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(155)), ((System.Byte)(209)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
||||||
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
||||||
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(211)), ((System.Byte)(232)));
|
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(211)), ((System.Byte)(232)));
|
||||||
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(163)), ((System.Byte)(158)), ((System.Byte)(217)));
|
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(163)), ((System.Byte)(158)), ((System.Byte)(217)));
|
||||||
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
|
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
|
||||||
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
|
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
|
||||||
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
||||||
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
||||||
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||||
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
||||||
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
||||||
this.WindowColor = System.Drawing.Color.White;
|
this.WindowColor = System.Drawing.Color.White;
|
||||||
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(238)));
|
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(238)));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the preview image of the ApplicationStyle.
|
/// Gets or sets the preview image of the ApplicationStyle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override Image PreviewImage
|
public override Image PreviewImage
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Lavender.png");
|
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Lavender.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -6,64 +6,60 @@ using OpenLiveWriter.ApplicationFramework.Preferences;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides application management service.
|
/// Provides application management service.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public sealed class ApplicationStyleManager
|
public sealed class ApplicationStyleManager
|
||||||
{
|
{
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the ApplicationStyle object
|
/// Gets or sets the ApplicationStyle object
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static ApplicationStyle ApplicationStyle
|
public static ApplicationStyle ApplicationStyle
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return ApplicationManager.ApplicationStyle;
|
return ApplicationManager.ApplicationStyle;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#region ApplicatonStyle access/monitoring
|
#region ApplicatonStyle access/monitoring
|
||||||
|
|
||||||
public static event EventHandler ApplicationStyleChanged
|
public static event EventHandler ApplicationStyleChanged
|
||||||
{
|
{
|
||||||
add
|
add
|
||||||
{
|
{
|
||||||
ApplicationStylePreferences.PreferencesChanged += value ;
|
ApplicationStylePreferences.PreferencesChanged += value ;
|
||||||
}
|
}
|
||||||
remove
|
remove
|
||||||
{
|
{
|
||||||
ApplicationStylePreferences.PreferencesChanged -= value ;
|
ApplicationStylePreferences.PreferencesChanged -= value ;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public static void CheckForApplicationStyleChanges()
|
public static void CheckForApplicationStyleChanges()
|
||||||
{
|
{
|
||||||
ApplicationStylePreferences.CheckForChanges() ;
|
ApplicationStylePreferences.CheckForChanges() ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// Get the ApplicationStylePreferences instance for the current thread
|
||||||
|
/// </summary>
|
||||||
|
private static ApplicationStylePreferences ApplicationStylePreferences
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
if (_applicationStylePreferences == null)
|
||||||
|
{
|
||||||
|
_applicationStylePreferences = Activator.CreateInstance(typeof(ApplicationStylePreferences), new object[] { true } ) as ApplicationStylePreferences ;
|
||||||
|
}
|
||||||
|
return _applicationStylePreferences;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
[ThreadStatic]
|
||||||
|
private static ApplicationStylePreferences _applicationStylePreferences ;
|
||||||
|
|
||||||
|
|
||||||
|
#endregion
|
||||||
/// Get the ApplicationStylePreferences instance for the current thread
|
|
||||||
/// </summary>
|
|
||||||
private static ApplicationStylePreferences ApplicationStylePreferences
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
if (_applicationStylePreferences == null)
|
|
||||||
{
|
|
||||||
_applicationStylePreferences = Activator.CreateInstance(typeof(ApplicationStylePreferences), new object[] { true } ) as ApplicationStylePreferences ;
|
|
||||||
}
|
|
||||||
return _applicationStylePreferences;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
[ThreadStatic]
|
|
||||||
private static ApplicationStylePreferences _applicationStylePreferences ;
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -10,144 +10,144 @@ using OpenLiveWriter.ApplicationFramework.Preferences ;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Appearance preferences.
|
/// Appearance preferences.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplicationStylePreferences : OpenLiveWriter.ApplicationFramework.Preferences.Preferences
|
public class ApplicationStylePreferences : OpenLiveWriter.ApplicationFramework.Preferences.Preferences
|
||||||
{
|
{
|
||||||
#region Static & Constant Declarations
|
#region Static & Constant Declarations
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The AppearancePreferences sub-key.
|
/// The AppearancePreferences sub-key.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const string PREFERENCES_SUB_KEY = "Appearance";
|
private const string PREFERENCES_SUB_KEY = "Appearance";
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ApplicationStyleTypeName key.
|
/// The ApplicationStyleTypeName key.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const string APPLICATION_STYLE_TYPE_NAME = "ApplicationStyleTypeName";
|
private const string APPLICATION_STYLE_TYPE_NAME = "ApplicationStyleTypeName";
|
||||||
|
|
||||||
#endregion Static & Constant Declarations
|
#endregion Static & Constant Declarations
|
||||||
|
|
||||||
#region Private Member Variables
|
#region Private Member Variables
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The ApplicationStyle Type.
|
/// The ApplicationStyle Type.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Type applicationStyleType;
|
private Type applicationStyleType;
|
||||||
|
|
||||||
#endregion
|
|
||||||
|
|
||||||
#region Class Initialization & Termination
|
|
||||||
|
|
||||||
/// <summary>
|
#endregion
|
||||||
/// Initializes a new instance of the AppearancePreferences class.
|
|
||||||
/// </summary>
|
|
||||||
public ApplicationStylePreferences(bool monitorChanges) : base(PREFERENCES_SUB_KEY, monitorChanges)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApplicationStylePreferences() : this(false)
|
#region Class Initialization & Termination
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Class Initialization & Termination
|
/// <summary>
|
||||||
|
/// Initializes a new instance of the AppearancePreferences class.
|
||||||
|
/// </summary>
|
||||||
|
public ApplicationStylePreferences(bool monitorChanges) : base(PREFERENCES_SUB_KEY, monitorChanges)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
#region Public Properties
|
public ApplicationStylePreferences() : this(false)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
#endregion Class Initialization & Termination
|
||||||
/// Gets or sets the ApplicationStyle Type.
|
|
||||||
/// </summary>
|
|
||||||
public Type ApplicationStyleType
|
|
||||||
{
|
|
||||||
get
|
|
||||||
{
|
|
||||||
return typeof(ApplicationStyleSkyBlue);
|
|
||||||
|
|
||||||
// JJA: Decided to only support SkyBlue so we could make the
|
#region Public Properties
|
||||||
// design of the sidebar more straightforward
|
|
||||||
//return applicationStyleType;
|
|
||||||
}
|
|
||||||
set
|
|
||||||
{
|
|
||||||
if (applicationStyleType != value)
|
|
||||||
{
|
|
||||||
applicationStyleType = value;
|
|
||||||
Modified();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Public Properties
|
/// <summary>
|
||||||
|
/// Gets or sets the ApplicationStyle Type.
|
||||||
|
/// </summary>
|
||||||
|
public Type ApplicationStyleType
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
return typeof(ApplicationStyleSkyBlue);
|
||||||
|
|
||||||
#region Protected Methods
|
// JJA: Decided to only support SkyBlue so we could make the
|
||||||
|
// design of the sidebar more straightforward
|
||||||
|
//return applicationStyleType;
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (applicationStyleType != value)
|
||||||
|
{
|
||||||
|
applicationStyleType = value;
|
||||||
|
Modified();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
#endregion Public Properties
|
||||||
/// Loads preferences.
|
|
||||||
/// </summary>
|
|
||||||
protected override void LoadPreferences()
|
|
||||||
{
|
|
||||||
// Obtain the type name of the application style. If it's null, use SkyBlue.
|
|
||||||
string name = SettingsPersisterHelper.GetString(APPLICATION_STYLE_TYPE_NAME, "ApplicationStyleSkyBlue");
|
|
||||||
|
|
||||||
// strip "AplicationStyle" preface (for legacy settings format support)
|
|
||||||
const string APPLICATION_STYLE = "ApplicationStyle";
|
|
||||||
if ( name.StartsWith(APPLICATION_STYLE) )
|
|
||||||
name = name.Substring(APPLICATION_STYLE.Length) ;
|
|
||||||
|
|
||||||
switch(name)
|
|
||||||
{
|
|
||||||
case "SkyBlue":
|
|
||||||
applicationStyleType = typeof(ApplicationStyleSkyBlue);
|
|
||||||
break;
|
|
||||||
case "Lavender":
|
|
||||||
applicationStyleType = typeof(ApplicationStyleLavender);
|
|
||||||
break;
|
|
||||||
case "Sienna":
|
|
||||||
applicationStyleType = typeof(ApplicationStyleSienna);
|
|
||||||
break;
|
|
||||||
case "Sterling":
|
|
||||||
applicationStyleType = typeof(ApplicationStyleSterling);
|
|
||||||
break;
|
|
||||||
case "Wintergreen":
|
|
||||||
applicationStyleType = typeof(ApplicationStyleWintergreen);
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
Trace.Fail("Unexpected application style type: " + name);
|
|
||||||
applicationStyleType = typeof(ApplicationStyleSkyBlue);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Set the new application style.
|
#region Protected Methods
|
||||||
if (ApplicationManager.ApplicationStyle.GetType() != applicationStyleType)
|
|
||||||
ApplicationManager.ApplicationStyle = Activator.CreateInstance(applicationStyleType) as ApplicationStyle;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Saves preferences.
|
/// Loads preferences.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void SavePreferences()
|
protected override void LoadPreferences()
|
||||||
{
|
{
|
||||||
string name = null;
|
// Obtain the type name of the application style. If it's null, use SkyBlue.
|
||||||
if ( applicationStyleType == typeof(ApplicationStyleSkyBlue) )
|
string name = SettingsPersisterHelper.GetString(APPLICATION_STYLE_TYPE_NAME, "ApplicationStyleSkyBlue");
|
||||||
name = "SkyBlue";
|
|
||||||
else if ( applicationStyleType == typeof(ApplicationStyleLavender) )
|
|
||||||
name = "Lavender";
|
|
||||||
else if ( applicationStyleType == typeof(ApplicationStyleSienna) )
|
|
||||||
name = "Sienna";
|
|
||||||
else if ( applicationStyleType == typeof(ApplicationStyleSterling) )
|
|
||||||
name = "Sterling";
|
|
||||||
else if ( applicationStyleType == typeof(ApplicationStyleWintergreen) )
|
|
||||||
name = "Wintergreen";
|
|
||||||
else
|
|
||||||
{
|
|
||||||
Trace.Fail("Unexpected application style: " + applicationStyleType.Name);
|
|
||||||
name = "SkyBlue";
|
|
||||||
}
|
|
||||||
|
|
||||||
SettingsPersisterHelper.SetString(APPLICATION_STYLE_TYPE_NAME, name);
|
// strip "AplicationStyle" preface (for legacy settings format support)
|
||||||
}
|
const string APPLICATION_STYLE = "ApplicationStyle";
|
||||||
|
if ( name.StartsWith(APPLICATION_STYLE) )
|
||||||
|
name = name.Substring(APPLICATION_STYLE.Length) ;
|
||||||
|
|
||||||
#endregion Protected Methods
|
switch(name)
|
||||||
}
|
{
|
||||||
|
case "SkyBlue":
|
||||||
|
applicationStyleType = typeof(ApplicationStyleSkyBlue);
|
||||||
|
break;
|
||||||
|
case "Lavender":
|
||||||
|
applicationStyleType = typeof(ApplicationStyleLavender);
|
||||||
|
break;
|
||||||
|
case "Sienna":
|
||||||
|
applicationStyleType = typeof(ApplicationStyleSienna);
|
||||||
|
break;
|
||||||
|
case "Sterling":
|
||||||
|
applicationStyleType = typeof(ApplicationStyleSterling);
|
||||||
|
break;
|
||||||
|
case "Wintergreen":
|
||||||
|
applicationStyleType = typeof(ApplicationStyleWintergreen);
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
Trace.Fail("Unexpected application style type: " + name);
|
||||||
|
applicationStyleType = typeof(ApplicationStyleSkyBlue);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
|
// Set the new application style.
|
||||||
|
if (ApplicationManager.ApplicationStyle.GetType() != applicationStyleType)
|
||||||
|
ApplicationManager.ApplicationStyle = Activator.CreateInstance(applicationStyleType) as ApplicationStyle;
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Saves preferences.
|
||||||
|
/// </summary>
|
||||||
|
protected override void SavePreferences()
|
||||||
|
{
|
||||||
|
string name = null;
|
||||||
|
if ( applicationStyleType == typeof(ApplicationStyleSkyBlue) )
|
||||||
|
name = "SkyBlue";
|
||||||
|
else if ( applicationStyleType == typeof(ApplicationStyleLavender) )
|
||||||
|
name = "Lavender";
|
||||||
|
else if ( applicationStyleType == typeof(ApplicationStyleSienna) )
|
||||||
|
name = "Sienna";
|
||||||
|
else if ( applicationStyleType == typeof(ApplicationStyleSterling) )
|
||||||
|
name = "Sterling";
|
||||||
|
else if ( applicationStyleType == typeof(ApplicationStyleWintergreen) )
|
||||||
|
name = "Wintergreen";
|
||||||
|
else
|
||||||
|
{
|
||||||
|
Trace.Fail("Unexpected application style: " + applicationStyleType.Name);
|
||||||
|
name = "SkyBlue";
|
||||||
|
}
|
||||||
|
|
||||||
|
SettingsPersisterHelper.SetString(APPLICATION_STYLE_TYPE_NAME, name);
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion Protected Methods
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,245 +9,245 @@ using OpenLiveWriter.CoreServices;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Appearance preferences panel.
|
/// Appearance preferences panel.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplicationStylePreferencesPanel : PreferencesPanel
|
public class ApplicationStylePreferencesPanel : PreferencesPanel
|
||||||
{
|
{
|
||||||
#region Static & Constant Declarations
|
#region Static & Constant Declarations
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The types of ApplicationStyle objects provided by the system.
|
/// The types of ApplicationStyle objects provided by the system.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Type[] applicationStyleTypes = new Type[]
|
private Type[] applicationStyleTypes = new Type[]
|
||||||
{
|
{
|
||||||
typeof(ApplicationStyleSkyBlue),
|
typeof(ApplicationStyleSkyBlue),
|
||||||
};
|
};
|
||||||
|
|
||||||
#endregion Static & Constant Declarations
|
#endregion Static & Constant Declarations
|
||||||
|
|
||||||
#region Private Member Variables
|
#region Private Member Variables
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The AppearancePreferences object.
|
/// The AppearancePreferences object.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ApplicationStylePreferences applicationStylePreferences;
|
private ApplicationStylePreferences applicationStylePreferences;
|
||||||
|
|
||||||
#endregion Private Member Variables
|
#endregion Private Member Variables
|
||||||
|
|
||||||
#region Windows Form Designer generated code
|
|
||||||
|
|
||||||
private System.Windows.Forms.FontDialog fontDialog;
|
#region Windows Form Designer generated code
|
||||||
private System.Windows.Forms.GroupBox groupBoxTheme;
|
|
||||||
private System.Windows.Forms.Label labelFolderNameFont;
|
|
||||||
private System.Windows.Forms.Label label1;
|
|
||||||
private System.Windows.Forms.ListBox listBoxApplicationStyles;
|
|
||||||
private System.Windows.Forms.PictureBox pictureBoxPreview;
|
|
||||||
private System.ComponentModel.Container components = null;
|
|
||||||
|
|
||||||
#endregion Windows Form Designer generated code
|
private System.Windows.Forms.FontDialog fontDialog;
|
||||||
|
private System.Windows.Forms.GroupBox groupBoxTheme;
|
||||||
|
private System.Windows.Forms.Label labelFolderNameFont;
|
||||||
|
private System.Windows.Forms.Label label1;
|
||||||
|
private System.Windows.Forms.ListBox listBoxApplicationStyles;
|
||||||
|
private System.Windows.Forms.PictureBox pictureBoxPreview;
|
||||||
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
#region Class Initialization & Termination
|
#endregion Windows Form Designer generated code
|
||||||
|
|
||||||
/// <summary>
|
#region Class Initialization & Termination
|
||||||
/// Initializes a new instance of the AppearancePreferencesPanel class.
|
|
||||||
/// </summary>
|
|
||||||
public ApplicationStylePreferencesPanel() : this(new ApplicationStylePreferences(false))
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
public ApplicationStylePreferencesPanel(ApplicationStylePreferences preferences)
|
/// <summary>
|
||||||
{
|
/// Initializes a new instance of the AppearancePreferencesPanel class.
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
/// </summary>
|
||||||
InitializeComponent();
|
public ApplicationStylePreferencesPanel() : this(new ApplicationStylePreferences(false))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
// Set the panel bitmap.
|
public ApplicationStylePreferencesPanel(ApplicationStylePreferences preferences)
|
||||||
PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.ApplicationStyleSmall.png");
|
{
|
||||||
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
|
InitializeComponent();
|
||||||
|
|
||||||
// Instantiate the MicroViewPreferences object and initialize the controls.
|
// Set the panel bitmap.
|
||||||
applicationStylePreferences = preferences;
|
PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.ApplicationStyleSmall.png");
|
||||||
applicationStylePreferences.PreferencesModified += new EventHandler(appearancePreferences_PreferencesModified);
|
|
||||||
|
|
||||||
// Initialize the application styles listbox.
|
// Instantiate the MicroViewPreferences object and initialize the controls.
|
||||||
InitializeApplicationStyles();
|
applicationStylePreferences = preferences;
|
||||||
}
|
applicationStylePreferences.PreferencesModified += new EventHandler(appearancePreferences_PreferencesModified);
|
||||||
|
|
||||||
/// <summary>
|
// Initialize the application styles listbox.
|
||||||
/// Clean up any resources being used.
|
InitializeApplicationStyles();
|
||||||
/// </summary>
|
}
|
||||||
protected override void Dispose( bool disposing )
|
|
||||||
{
|
|
||||||
if( disposing )
|
|
||||||
{
|
|
||||||
if(components != null)
|
|
||||||
{
|
|
||||||
components.Dispose();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
base.Dispose( disposing );
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Class Initialization & Termination
|
/// <summary>
|
||||||
|
/// Clean up any resources being used.
|
||||||
|
/// </summary>
|
||||||
|
protected override void Dispose( bool disposing )
|
||||||
|
{
|
||||||
|
if( disposing )
|
||||||
|
{
|
||||||
|
if(components != null)
|
||||||
|
{
|
||||||
|
components.Dispose();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
base.Dispose( disposing );
|
||||||
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#endregion Class Initialization & Termination
|
||||||
/// <summary>
|
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
this.groupBoxTheme = new System.Windows.Forms.GroupBox();
|
|
||||||
this.label1 = new System.Windows.Forms.Label();
|
|
||||||
this.pictureBoxPreview = new System.Windows.Forms.PictureBox();
|
|
||||||
this.labelFolderNameFont = new System.Windows.Forms.Label();
|
|
||||||
this.listBoxApplicationStyles = new System.Windows.Forms.ListBox();
|
|
||||||
this.fontDialog = new System.Windows.Forms.FontDialog();
|
|
||||||
this.groupBoxTheme.SuspendLayout();
|
|
||||||
this.SuspendLayout();
|
|
||||||
//
|
|
||||||
// groupBoxTheme
|
|
||||||
//
|
|
||||||
this.groupBoxTheme.Controls.Add(this.label1);
|
|
||||||
this.groupBoxTheme.Controls.Add(this.pictureBoxPreview);
|
|
||||||
this.groupBoxTheme.Controls.Add(this.labelFolderNameFont);
|
|
||||||
this.groupBoxTheme.Controls.Add(this.listBoxApplicationStyles);
|
|
||||||
this.groupBoxTheme.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
|
||||||
this.groupBoxTheme.Location = new System.Drawing.Point(8, 32);
|
|
||||||
this.groupBoxTheme.Name = "groupBoxTheme";
|
|
||||||
this.groupBoxTheme.Size = new System.Drawing.Size(354, 282);
|
|
||||||
this.groupBoxTheme.TabIndex = 1;
|
|
||||||
this.groupBoxTheme.TabStop = false;
|
|
||||||
this.groupBoxTheme.Text = "Color";
|
|
||||||
//
|
|
||||||
// label1
|
|
||||||
//
|
|
||||||
this.label1.BackColor = System.Drawing.SystemColors.Control;
|
|
||||||
this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
|
||||||
this.label1.Location = new System.Drawing.Point(150, 18);
|
|
||||||
this.label1.Name = "label1";
|
|
||||||
this.label1.Size = new System.Drawing.Size(132, 18);
|
|
||||||
this.label1.TabIndex = 2;
|
|
||||||
this.label1.Text = "Preview:";
|
|
||||||
//
|
|
||||||
// pictureBoxPreview
|
|
||||||
//
|
|
||||||
this.pictureBoxPreview.BackColor = System.Drawing.SystemColors.Control;
|
|
||||||
this.pictureBoxPreview.Location = new System.Drawing.Point(150, 36);
|
|
||||||
this.pictureBoxPreview.Name = "pictureBoxPreview";
|
|
||||||
this.pictureBoxPreview.Size = new System.Drawing.Size(192, 235);
|
|
||||||
this.pictureBoxPreview.TabIndex = 2;
|
|
||||||
this.pictureBoxPreview.TabStop = false;
|
|
||||||
//
|
|
||||||
// labelFolderNameFont
|
|
||||||
//
|
|
||||||
this.labelFolderNameFont.BackColor = System.Drawing.SystemColors.Control;
|
|
||||||
this.labelFolderNameFont.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
|
||||||
this.labelFolderNameFont.Location = new System.Drawing.Point(10, 18);
|
|
||||||
this.labelFolderNameFont.Name = "labelFolderNameFont";
|
|
||||||
this.labelFolderNameFont.Size = new System.Drawing.Size(132, 18);
|
|
||||||
this.labelFolderNameFont.TabIndex = 0;
|
|
||||||
this.labelFolderNameFont.Text = "&Color scheme:";
|
|
||||||
//
|
|
||||||
// listBoxApplicationStyles
|
|
||||||
//
|
|
||||||
this.listBoxApplicationStyles.DisplayMember = "DisplayName";
|
|
||||||
this.listBoxApplicationStyles.IntegralHeight = false;
|
|
||||||
this.listBoxApplicationStyles.Location = new System.Drawing.Point(10, 36);
|
|
||||||
this.listBoxApplicationStyles.Name = "listBoxApplicationStyles";
|
|
||||||
this.listBoxApplicationStyles.Size = new System.Drawing.Size(130, 235);
|
|
||||||
this.listBoxApplicationStyles.TabIndex = 1;
|
|
||||||
this.listBoxApplicationStyles.SelectedIndexChanged += new System.EventHandler(this.listBoxApplicationStyles_SelectedIndexChanged);
|
|
||||||
//
|
|
||||||
// fontDialog
|
|
||||||
//
|
|
||||||
this.fontDialog.AllowScriptChange = false;
|
|
||||||
this.fontDialog.AllowVerticalFonts = false;
|
|
||||||
this.fontDialog.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
|
||||||
this.fontDialog.FontMustExist = true;
|
|
||||||
this.fontDialog.ScriptsOnly = true;
|
|
||||||
this.fontDialog.ShowEffects = false;
|
|
||||||
//
|
|
||||||
// AppearancePreferencesPanel
|
|
||||||
//
|
|
||||||
this.Controls.Add(this.groupBoxTheme);
|
|
||||||
this.Name = "AppearancePreferencesPanel";
|
|
||||||
this.PanelName = "Appearance";
|
|
||||||
this.Controls.SetChildIndex(this.groupBoxTheme, 0);
|
|
||||||
this.groupBoxTheme.ResumeLayout(false);
|
|
||||||
this.ResumeLayout(false);
|
|
||||||
|
|
||||||
}
|
#region Component Designer generated code
|
||||||
#endregion
|
/// <summary>
|
||||||
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
this.groupBoxTheme = new System.Windows.Forms.GroupBox();
|
||||||
|
this.label1 = new System.Windows.Forms.Label();
|
||||||
|
this.pictureBoxPreview = new System.Windows.Forms.PictureBox();
|
||||||
|
this.labelFolderNameFont = new System.Windows.Forms.Label();
|
||||||
|
this.listBoxApplicationStyles = new System.Windows.Forms.ListBox();
|
||||||
|
this.fontDialog = new System.Windows.Forms.FontDialog();
|
||||||
|
this.groupBoxTheme.SuspendLayout();
|
||||||
|
this.SuspendLayout();
|
||||||
|
//
|
||||||
|
// groupBoxTheme
|
||||||
|
//
|
||||||
|
this.groupBoxTheme.Controls.Add(this.label1);
|
||||||
|
this.groupBoxTheme.Controls.Add(this.pictureBoxPreview);
|
||||||
|
this.groupBoxTheme.Controls.Add(this.labelFolderNameFont);
|
||||||
|
this.groupBoxTheme.Controls.Add(this.listBoxApplicationStyles);
|
||||||
|
this.groupBoxTheme.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||||
|
this.groupBoxTheme.Location = new System.Drawing.Point(8, 32);
|
||||||
|
this.groupBoxTheme.Name = "groupBoxTheme";
|
||||||
|
this.groupBoxTheme.Size = new System.Drawing.Size(354, 282);
|
||||||
|
this.groupBoxTheme.TabIndex = 1;
|
||||||
|
this.groupBoxTheme.TabStop = false;
|
||||||
|
this.groupBoxTheme.Text = "Color";
|
||||||
|
//
|
||||||
|
// label1
|
||||||
|
//
|
||||||
|
this.label1.BackColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.label1.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||||
|
this.label1.Location = new System.Drawing.Point(150, 18);
|
||||||
|
this.label1.Name = "label1";
|
||||||
|
this.label1.Size = new System.Drawing.Size(132, 18);
|
||||||
|
this.label1.TabIndex = 2;
|
||||||
|
this.label1.Text = "Preview:";
|
||||||
|
//
|
||||||
|
// pictureBoxPreview
|
||||||
|
//
|
||||||
|
this.pictureBoxPreview.BackColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.pictureBoxPreview.Location = new System.Drawing.Point(150, 36);
|
||||||
|
this.pictureBoxPreview.Name = "pictureBoxPreview";
|
||||||
|
this.pictureBoxPreview.Size = new System.Drawing.Size(192, 235);
|
||||||
|
this.pictureBoxPreview.TabIndex = 2;
|
||||||
|
this.pictureBoxPreview.TabStop = false;
|
||||||
|
//
|
||||||
|
// labelFolderNameFont
|
||||||
|
//
|
||||||
|
this.labelFolderNameFont.BackColor = System.Drawing.SystemColors.Control;
|
||||||
|
this.labelFolderNameFont.FlatStyle = System.Windows.Forms.FlatStyle.System;
|
||||||
|
this.labelFolderNameFont.Location = new System.Drawing.Point(10, 18);
|
||||||
|
this.labelFolderNameFont.Name = "labelFolderNameFont";
|
||||||
|
this.labelFolderNameFont.Size = new System.Drawing.Size(132, 18);
|
||||||
|
this.labelFolderNameFont.TabIndex = 0;
|
||||||
|
this.labelFolderNameFont.Text = "&Color scheme:";
|
||||||
|
//
|
||||||
|
// listBoxApplicationStyles
|
||||||
|
//
|
||||||
|
this.listBoxApplicationStyles.DisplayMember = "DisplayName";
|
||||||
|
this.listBoxApplicationStyles.IntegralHeight = false;
|
||||||
|
this.listBoxApplicationStyles.Location = new System.Drawing.Point(10, 36);
|
||||||
|
this.listBoxApplicationStyles.Name = "listBoxApplicationStyles";
|
||||||
|
this.listBoxApplicationStyles.Size = new System.Drawing.Size(130, 235);
|
||||||
|
this.listBoxApplicationStyles.TabIndex = 1;
|
||||||
|
this.listBoxApplicationStyles.SelectedIndexChanged += new System.EventHandler(this.listBoxApplicationStyles_SelectedIndexChanged);
|
||||||
|
//
|
||||||
|
// fontDialog
|
||||||
|
//
|
||||||
|
this.fontDialog.AllowScriptChange = false;
|
||||||
|
this.fontDialog.AllowVerticalFonts = false;
|
||||||
|
this.fontDialog.Font = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||||
|
this.fontDialog.FontMustExist = true;
|
||||||
|
this.fontDialog.ScriptsOnly = true;
|
||||||
|
this.fontDialog.ShowEffects = false;
|
||||||
|
//
|
||||||
|
// AppearancePreferencesPanel
|
||||||
|
//
|
||||||
|
this.Controls.Add(this.groupBoxTheme);
|
||||||
|
this.Name = "AppearancePreferencesPanel";
|
||||||
|
this.PanelName = "Appearance";
|
||||||
|
this.Controls.SetChildIndex(this.groupBoxTheme, 0);
|
||||||
|
this.groupBoxTheme.ResumeLayout(false);
|
||||||
|
this.ResumeLayout(false);
|
||||||
|
|
||||||
#region Public Methods
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
#region Public Methods
|
||||||
/// Saves the PreferencesPanel.
|
|
||||||
/// </summary>
|
|
||||||
public override void Save()
|
|
||||||
{
|
|
||||||
if (applicationStylePreferences.IsModified())
|
|
||||||
applicationStylePreferences.Save();
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Public Methods
|
/// <summary>
|
||||||
|
/// Saves the PreferencesPanel.
|
||||||
|
/// </summary>
|
||||||
|
public override void Save()
|
||||||
|
{
|
||||||
|
if (applicationStylePreferences.IsModified())
|
||||||
|
applicationStylePreferences.Save();
|
||||||
|
}
|
||||||
|
|
||||||
#region Private Methods
|
#endregion Public Methods
|
||||||
|
|
||||||
/// <summary>
|
#region Private Methods
|
||||||
/// Initialize the application styles listbox.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeApplicationStyles()
|
|
||||||
{
|
|
||||||
// Add each of the available styles.
|
|
||||||
foreach (Type type in applicationStyleTypes)
|
|
||||||
{
|
|
||||||
ApplicationStyle applicationStyle;
|
|
||||||
try
|
|
||||||
{
|
|
||||||
applicationStyle = Activator.CreateInstance(type) as ApplicationStyle;
|
|
||||||
listBoxApplicationStyles.Items.Add(applicationStyle);
|
|
||||||
if (applicationStyle.GetType() == ApplicationManager.ApplicationStyle.GetType())
|
|
||||||
listBoxApplicationStyles.SelectedItem = applicationStyle;
|
|
||||||
}
|
|
||||||
catch (Exception e)
|
|
||||||
{
|
|
||||||
Debug.Fail("Error loading ApplicationStyle "+type.ToString(), e.StackTrace.ToString());
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
#endregion Private Methods
|
/// <summary>
|
||||||
|
/// Initialize the application styles listbox.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeApplicationStyles()
|
||||||
|
{
|
||||||
|
// Add each of the available styles.
|
||||||
|
foreach (Type type in applicationStyleTypes)
|
||||||
|
{
|
||||||
|
ApplicationStyle applicationStyle;
|
||||||
|
try
|
||||||
|
{
|
||||||
|
applicationStyle = Activator.CreateInstance(type) as ApplicationStyle;
|
||||||
|
listBoxApplicationStyles.Items.Add(applicationStyle);
|
||||||
|
if (applicationStyle.GetType() == ApplicationManager.ApplicationStyle.GetType())
|
||||||
|
listBoxApplicationStyles.SelectedItem = applicationStyle;
|
||||||
|
}
|
||||||
|
catch (Exception e)
|
||||||
|
{
|
||||||
|
Debug.Fail("Error loading ApplicationStyle "+type.ToString(), e.StackTrace.ToString());
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
#region Private Event Handlers
|
#endregion Private Methods
|
||||||
|
|
||||||
/// <summary>
|
#region Private Event Handlers
|
||||||
/// appearancePreferences_PreferencesModified event handler.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">The source of the event.</param>
|
|
||||||
/// <param name="e">An EventArgs that contains the event data.</param>
|
|
||||||
private void appearancePreferences_PreferencesModified(object sender, EventArgs e)
|
|
||||||
{
|
|
||||||
OnModified(EventArgs.Empty);
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// listBoxApplicationStyles_SelectedIndexChanged event handler.
|
/// appearancePreferences_PreferencesModified event handler.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender">The source of the event.</param>
|
/// <param name="sender">The source of the event.</param>
|
||||||
/// <param name="e">An EventArgs that contains the event data.</param>
|
/// <param name="e">An EventArgs that contains the event data.</param>
|
||||||
private void listBoxApplicationStyles_SelectedIndexChanged(object sender, EventArgs e)
|
private void appearancePreferences_PreferencesModified(object sender, EventArgs e)
|
||||||
{
|
{
|
||||||
// If the list box is empty, just ignore the event.
|
OnModified(EventArgs.Empty);
|
||||||
if (listBoxApplicationStyles.Items.Count == 0)
|
}
|
||||||
return;
|
|
||||||
|
|
||||||
// Update state.
|
/// <summary>
|
||||||
ApplicationStyle applicationStyle = (ApplicationStyle)listBoxApplicationStyles.SelectedItem;
|
/// listBoxApplicationStyles_SelectedIndexChanged event handler.
|
||||||
pictureBoxPreview.Image = applicationStyle.PreviewImage;
|
/// </summary>
|
||||||
applicationStylePreferences.ApplicationStyleType = applicationStyle.GetType();
|
/// <param name="sender">The source of the event.</param>
|
||||||
}
|
/// <param name="e">An EventArgs that contains the event data.</param>
|
||||||
|
private void listBoxApplicationStyles_SelectedIndexChanged(object sender, EventArgs e)
|
||||||
|
{
|
||||||
|
// If the list box is empty, just ignore the event.
|
||||||
|
if (listBoxApplicationStyles.Items.Count == 0)
|
||||||
|
return;
|
||||||
|
|
||||||
#endregion Private Event Handlers
|
// Update state.
|
||||||
}
|
ApplicationStyle applicationStyle = (ApplicationStyle)listBoxApplicationStyles.SelectedItem;
|
||||||
|
pictureBoxPreview.Image = applicationStyle.PreviewImage;
|
||||||
|
applicationStylePreferences.ApplicationStyleType = applicationStyle.GetType();
|
||||||
|
}
|
||||||
|
|
||||||
|
#endregion Private Event Handlers
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,107 +7,107 @@ using OpenLiveWriter.CoreServices;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleSienna : ApplicationStyle
|
public class ApplicationStyleSienna : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new insance of the ApplicationStyleSienna class.
|
/// Initializes a new insance of the ApplicationStyleSienna class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ApplicationStyleSienna()
|
public ApplicationStyleSienna()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleSienna
|
// ApplicationStyleSienna
|
||||||
//
|
//
|
||||||
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(156)), ((System.Byte)(112)));
|
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(156)), ((System.Byte)(112)));
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
|
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
|
||||||
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(250)), ((System.Byte)(245)), ((System.Byte)(202)));
|
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(250)), ((System.Byte)(245)), ((System.Byte)(202)));
|
||||||
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
||||||
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(156)), ((System.Byte)(112)));
|
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(161)), ((System.Byte)(156)), ((System.Byte)(112)));
|
||||||
this.DisplayName = "Sienna";
|
this.DisplayName = "Sienna";
|
||||||
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(229)), ((System.Byte)(225)), ((System.Byte)(184)));
|
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(229)), ((System.Byte)(225)), ((System.Byte)(184)));
|
||||||
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
|
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
|
||||||
this.InactiveTabHighlightColor = System.Drawing.Color.White;
|
this.InactiveTabHighlightColor = System.Drawing.Color.White;
|
||||||
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
|
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
|
||||||
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
|
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
|
||||||
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
||||||
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
||||||
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(222)), ((System.Byte)(178)));
|
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(222)), ((System.Byte)(178)));
|
||||||
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(161)), ((System.Byte)(156)), ((System.Byte)(112)));
|
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(161)), ((System.Byte)(156)), ((System.Byte)(112)));
|
||||||
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
||||||
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(194)), ((System.Byte)(149)));
|
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(194)), ((System.Byte)(149)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(171)), ((System.Byte)(166)), ((System.Byte)(120)));
|
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(171)), ((System.Byte)(166)), ((System.Byte)(120)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
|
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(203)), ((System.Byte)(198)), ((System.Byte)(152)));
|
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(203)), ((System.Byte)(198)), ((System.Byte)(152)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
||||||
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
||||||
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(250)), ((System.Byte)(245)), ((System.Byte)(202)));
|
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(250)), ((System.Byte)(245)), ((System.Byte)(202)));
|
||||||
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(194)), ((System.Byte)(149)));
|
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(199)), ((System.Byte)(194)), ((System.Byte)(149)));
|
||||||
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
|
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
|
||||||
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
|
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
|
||||||
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
||||||
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
||||||
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||||
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
||||||
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
||||||
this.WindowColor = System.Drawing.Color.White;
|
this.WindowColor = System.Drawing.Color.White;
|
||||||
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
|
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the preview image of the ApplicationStyle.
|
/// Gets or sets the preview image of the ApplicationStyle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override Image PreviewImage
|
public override Image PreviewImage
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sienna.png");
|
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sienna.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,7 +9,7 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleSkyBlue : ApplicationStyle
|
public class ApplicationStyleSkyBlue : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
@ -20,7 +20,7 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -36,15 +36,15 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleSkyBlue
|
// ApplicationStyleSkyBlue
|
||||||
//
|
//
|
||||||
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(107)), ((System.Byte)(140)), ((System.Byte)(210)));
|
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(107)), ((System.Byte)(140)), ((System.Byte)(210)));
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
|
|
|
@ -7,104 +7,104 @@ using OpenLiveWriter.CoreServices;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleSterling : ApplicationStyle
|
public class ApplicationStyleSterling : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
|
||||||
public ApplicationStyleSterling()
|
public ApplicationStyleSterling()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleSterling
|
// ApplicationStyleSterling
|
||||||
//
|
//
|
||||||
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(146)), ((System.Byte)(155)), ((System.Byte)(174)));
|
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(146)), ((System.Byte)(155)), ((System.Byte)(174)));
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(219)), ((System.Byte)(224)), ((System.Byte)(229)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(219)), ((System.Byte)(224)), ((System.Byte)(229)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
||||||
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(234)), ((System.Byte)(238)));
|
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(230)), ((System.Byte)(234)), ((System.Byte)(238)));
|
||||||
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
||||||
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(157)), ((System.Byte)(161)), ((System.Byte)(167)));
|
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(157)), ((System.Byte)(161)), ((System.Byte)(167)));
|
||||||
this.DisplayName = "Sterling";
|
this.DisplayName = "Sterling";
|
||||||
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(208)), ((System.Byte)(212)), ((System.Byte)(220)));
|
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(208)), ((System.Byte)(212)), ((System.Byte)(220)));
|
||||||
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(194)), ((System.Byte)(202)));
|
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(194)), ((System.Byte)(202)));
|
||||||
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
||||||
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(205)), ((System.Byte)(206)), ((System.Byte)(215)));
|
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(205)), ((System.Byte)(206)), ((System.Byte)(215)));
|
||||||
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
||||||
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
||||||
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(198)), ((System.Byte)(203)));
|
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(198)), ((System.Byte)(203)));
|
||||||
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(157)), ((System.Byte)(161)), ((System.Byte)(167)));
|
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(157)), ((System.Byte)(161)), ((System.Byte)(167)));
|
||||||
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
||||||
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(198)), ((System.Byte)(203)));
|
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(198)), ((System.Byte)(203)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(157)), ((System.Byte)(161)), ((System.Byte)(167)));
|
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(157)), ((System.Byte)(161)), ((System.Byte)(167)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(215)), ((System.Byte)(219)));
|
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(211)), ((System.Byte)(215)), ((System.Byte)(219)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(191)), ((System.Byte)(199)), ((System.Byte)(206)));
|
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(191)), ((System.Byte)(199)), ((System.Byte)(206)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
||||||
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
||||||
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(228)), ((System.Byte)(234)));
|
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(223)), ((System.Byte)(228)), ((System.Byte)(234)));
|
||||||
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(198)), ((System.Byte)(203)));
|
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(198)), ((System.Byte)(203)));
|
||||||
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(222)), ((System.Byte)(227)));
|
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(222)), ((System.Byte)(227)));
|
||||||
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(222)), ((System.Byte)(227)));
|
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(222)), ((System.Byte)(227)));
|
||||||
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
||||||
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
||||||
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||||
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
||||||
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
||||||
this.WindowColor = System.Drawing.Color.White;
|
this.WindowColor = System.Drawing.Color.White;
|
||||||
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(240)), ((System.Byte)(243)));
|
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(240)), ((System.Byte)(243)));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the preview image of the ApplicationStyle.
|
/// Gets or sets the preview image of the ApplicationStyle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override Image PreviewImage
|
public override Image PreviewImage
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sterling.png");
|
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sterling.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,104 +7,104 @@ using OpenLiveWriter.CoreServices;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
||||||
{
|
{
|
||||||
public class ApplicationStyleWintergreen : ApplicationStyle
|
public class ApplicationStyleWintergreen : ApplicationStyle
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
|
||||||
public ApplicationStyleWintergreen()
|
public ApplicationStyleWintergreen()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ApplicationStyleWintergreen
|
// ApplicationStyleWintergreen
|
||||||
//
|
//
|
||||||
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.ActiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
this.ActiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
||||||
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
this.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
|
||||||
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
this.ActiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
this.ActiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
||||||
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
this.AlertControlColor = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(194)));
|
||||||
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
this.BoldApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold);
|
||||||
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.BorderColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.DisplayName = "Wintergreen";
|
this.DisplayName = "Wintergreen";
|
||||||
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
|
this.InactiveSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
|
||||||
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(215)), ((System.Byte)(212)));
|
this.InactiveTabBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(198)), ((System.Byte)(215)), ((System.Byte)(212)));
|
||||||
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
this.InactiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));
|
||||||
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
|
||||||
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
this.InactiveTabTextColor = System.Drawing.Color.Black;
|
||||||
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(217)), ((System.Byte)(215)));
|
this.InactiveTabTopColor = System.Drawing.Color.FromArgb(((System.Byte)(202)), ((System.Byte)(217)), ((System.Byte)(215)));
|
||||||
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
this.ItalicApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Italic);
|
||||||
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
this.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
|
||||||
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(197)), ((System.Byte)(236)), ((System.Byte)(230)));
|
this.MenuBitmapAreaColor = System.Drawing.Color.FromArgb(((System.Byte)(197)), ((System.Byte)(236)), ((System.Byte)(230)));
|
||||||
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.MenuSelectionColor = System.Drawing.Color.FromArgb(((System.Byte)(128)), ((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
this.NormalApplicationFont = new System.Drawing.Font("Tahoma", 8.25F);
|
||||||
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
this.PrimaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
this.PrimaryWorkspaceCommandBarBottomBevelFirstLineColor = System.Drawing.Color.FromArgb(((System.Byte)(127)), ((System.Byte)(168)), ((System.Byte)(163)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(175)), ((System.Byte)(213)), ((System.Byte)(205)));
|
this.PrimaryWorkspaceCommandBarBottomBevelSecondLineColor = System.Drawing.Color.FromArgb(((System.Byte)(175)), ((System.Byte)(213)), ((System.Byte)(205)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(212)), ((System.Byte)(204)));
|
this.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(212)), ((System.Byte)(204)));
|
||||||
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
|
||||||
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
|
||||||
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
this.PrimaryWorkspaceCommandBarTopBevelSecondLineColor = System.Drawing.Color.Transparent;
|
||||||
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
this.PrimaryWorkspaceCommandBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(201)), ((System.Byte)(238)), ((System.Byte)(231)));
|
||||||
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
this.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
|
||||||
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
this.PrimaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(164)), ((System.Byte)(203)), ((System.Byte)(197)));
|
||||||
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
this.SecondaryWorkspaceBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
||||||
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
this.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
|
||||||
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
|
||||||
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowBackgroundColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
this.ToolWindowBorderColor = System.Drawing.Color.FromArgb(((System.Byte)(72)), ((System.Byte)(100)), ((System.Byte)(165)));
|
||||||
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
this.ToolWindowTitleBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(94)), ((System.Byte)(131)), ((System.Byte)(200)));
|
||||||
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
this.ToolWindowTitleBarFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
|
||||||
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
this.ToolWindowTitleBarTextColor = System.Drawing.Color.White;
|
||||||
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
this.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
|
||||||
this.WindowColor = System.Drawing.Color.White;
|
this.WindowColor = System.Drawing.Color.White;
|
||||||
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
|
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the preview image of the ApplicationStyle.
|
/// Gets or sets the preview image of the ApplicationStyle.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override Image PreviewImage
|
public override Image PreviewImage
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Wintergreen.png");
|
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Wintergreen.png");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -23,7 +23,7 @@ namespace Project31.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplicationWorkspaceColumnLightweightControl : Project31.Controls.LightweightControl
|
public class ApplicationWorkspaceColumnLightweightControl : Project31.Controls.LightweightControl
|
||||||
{
|
{
|
||||||
|
@ -41,7 +41,7 @@ namespace Project31.ApplicationFramework
|
||||||
/// Required designer cruft.
|
/// Required designer cruft.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.IContainer components = null;
|
private System.ComponentModel.IContainer components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The vertical splitter lightweight control.
|
/// The vertical splitter lightweight control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -160,7 +160,7 @@ namespace Project31.ApplicationFramework
|
||||||
/// The vertical splitter style.
|
/// The vertical splitter style.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private VerticalSplitterStyle verticalSplitterStyle = VerticalSplitterStyle.None;
|
private VerticalSplitterStyle verticalSplitterStyle = VerticalSplitterStyle.None;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the vertical splitter style.
|
/// Gets or sets the vertical splitter style.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -412,7 +412,7 @@ namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if (components != null)
|
if (components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
|
@ -430,16 +430,16 @@ namespace Project31.ApplicationFramework
|
||||||
this.components = new System.ComponentModel.Container();
|
this.components = new System.ComponentModel.Container();
|
||||||
this.splitterLightweightControlVertical = new Project31.ApplicationFramework.SplitterLightweightControl(this.components);
|
this.splitterLightweightControlVertical = new Project31.ApplicationFramework.SplitterLightweightControl(this.components);
|
||||||
this.splitterLightweightControlHorizontal = new Project31.ApplicationFramework.SplitterLightweightControl(this.components);
|
this.splitterLightweightControlHorizontal = new Project31.ApplicationFramework.SplitterLightweightControl(this.components);
|
||||||
//
|
//
|
||||||
// splitterLightweightControlVertical
|
// splitterLightweightControlVertical
|
||||||
//
|
//
|
||||||
this.splitterLightweightControlVertical.LightweightControlContainerControl = this;
|
this.splitterLightweightControlVertical.LightweightControlContainerControl = this;
|
||||||
this.splitterLightweightControlVertical.Orientation = Project31.ApplicationFramework.SplitterLightweightControl.SplitterOrientation.Vertical;
|
this.splitterLightweightControlVertical.Orientation = Project31.ApplicationFramework.SplitterLightweightControl.SplitterOrientation.Vertical;
|
||||||
this.splitterLightweightControlVertical.SplitterEndMove += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlVertical_SplitterEndMove);
|
this.splitterLightweightControlVertical.SplitterEndMove += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlVertical_SplitterEndMove);
|
||||||
this.splitterLightweightControlVertical.SplitterMoving += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlVertical_SplitterMoving);
|
this.splitterLightweightControlVertical.SplitterMoving += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlVertical_SplitterMoving);
|
||||||
//
|
//
|
||||||
// splitterLightweightControlHorizontal
|
// splitterLightweightControlHorizontal
|
||||||
//
|
//
|
||||||
this.splitterLightweightControlHorizontal.LightweightControlContainerControl = this;
|
this.splitterLightweightControlHorizontal.LightweightControlContainerControl = this;
|
||||||
this.splitterLightweightControlHorizontal.Orientation = Project31.ApplicationFramework.SplitterLightweightControl.SplitterOrientation.Horizontal;
|
this.splitterLightweightControlHorizontal.Orientation = Project31.ApplicationFramework.SplitterLightweightControl.SplitterOrientation.Horizontal;
|
||||||
this.splitterLightweightControlHorizontal.SplitterEndMove += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlHorizontal_SplitterEndMove);
|
this.splitterLightweightControlHorizontal.SplitterEndMove += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlHorizontal_SplitterEndMove);
|
||||||
|
@ -466,7 +466,7 @@ namespace Project31.ApplicationFramework
|
||||||
if (MinimumColumnWidthChanged != null)
|
if (MinimumColumnWidthChanged != null)
|
||||||
MinimumColumnWidthChanged(this, e);
|
MinimumColumnWidthChanged(this, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raises the PreferredColumnWidthChanged event.
|
/// Raises the PreferredColumnWidthChanged event.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -495,10 +495,10 @@ namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
// Call the base class's method so that registered delegates receive the event.
|
// Call the base class's method so that registered delegates receive the event.
|
||||||
base.OnLayout(e);
|
base.OnLayout(e);
|
||||||
|
|
||||||
// Obtain the layout rectangle.
|
// Obtain the layout rectangle.
|
||||||
Rectangle layoutRectangle = VirtualClientRectangle;
|
Rectangle layoutRectangle = VirtualClientRectangle;
|
||||||
|
|
||||||
// Layout the vertical splitter lightweight control and adjust the layout rectangle.
|
// Layout the vertical splitter lightweight control and adjust the layout rectangle.
|
||||||
if (verticalSplitterStyle == VerticalSplitterStyle.None)
|
if (verticalSplitterStyle == VerticalSplitterStyle.None)
|
||||||
{
|
{
|
||||||
|
@ -527,7 +527,7 @@ namespace Project31.ApplicationFramework
|
||||||
layoutRectangle.Height);
|
layoutRectangle.Height);
|
||||||
layoutRectangle.Width -= verticalSplitterWidth;
|
layoutRectangle.Width -= verticalSplitterWidth;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Layout the upper and lower pane lightweight controls.
|
// Layout the upper and lower pane lightweight controls.
|
||||||
if (upperPaneLightweightControl != null && upperPaneLightweightControl.Visible &&
|
if (upperPaneLightweightControl != null && upperPaneLightweightControl.Visible &&
|
||||||
lowerPaneLightweightControl != null && lowerPaneLightweightControl.Visible)
|
lowerPaneLightweightControl != null && lowerPaneLightweightControl.Visible)
|
||||||
|
@ -544,7 +544,7 @@ namespace Project31.ApplicationFramework
|
||||||
// Only the upper pane lightweight control is visible.
|
// Only the upper pane lightweight control is visible.
|
||||||
upperPaneLightweightControl.VirtualBounds = layoutRectangle;
|
upperPaneLightweightControl.VirtualBounds = layoutRectangle;
|
||||||
lowerPaneLightweightControl.VirtualBounds = Rectangle.Empty;
|
lowerPaneLightweightControl.VirtualBounds = Rectangle.Empty;
|
||||||
splitterLightweightControlHorizontal.Visible = false;
|
splitterLightweightControlHorizontal.Visible = false;
|
||||||
splitterLightweightControlHorizontal.VirtualBounds = Rectangle.Empty;
|
splitterLightweightControlHorizontal.VirtualBounds = Rectangle.Empty;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
@ -557,9 +557,9 @@ namespace Project31.ApplicationFramework
|
||||||
layoutRectangle.Y,
|
layoutRectangle.Y,
|
||||||
layoutRectangle.Width,
|
layoutRectangle.Width,
|
||||||
horizontalSplitterLayoutPosition);
|
horizontalSplitterLayoutPosition);
|
||||||
|
|
||||||
// Layout the horizontal splitter lightweight control.
|
// Layout the horizontal splitter lightweight control.
|
||||||
splitterLightweightControlHorizontal.Visible = true;
|
splitterLightweightControlHorizontal.Visible = true;
|
||||||
splitterLightweightControlHorizontal.VirtualBounds = new Rectangle( layoutRectangle.X,
|
splitterLightweightControlHorizontal.VirtualBounds = new Rectangle( layoutRectangle.X,
|
||||||
upperPaneLightweightControl.VirtualBounds.Bottom,
|
upperPaneLightweightControl.VirtualBounds.Bottom,
|
||||||
layoutRectangle.Width,
|
layoutRectangle.Width,
|
||||||
|
@ -618,7 +618,7 @@ namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
Debug.Assert(VirtualWidth <= MaximumColumnWidth, "The column is wider than it's maximum width. Call Brian.");
|
Debug.Assert(VirtualWidth <= MaximumColumnWidth, "The column is wider than its maximum width.");
|
||||||
return Math.Max(0, MaximumColumnWidth-VirtualWidth);
|
return Math.Max(0, MaximumColumnWidth-VirtualWidth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -630,7 +630,7 @@ namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
Debug.Assert(VirtualWidth >= MinimumColumnWidth, "The column is narrower than it's minimum width. Call Brian.");
|
Debug.Assert(VirtualWidth >= MinimumColumnWidth, "The column is narrower than its minimum width.");
|
||||||
return Math.Max(0, VirtualWidth-MinimumColumnWidth);
|
return Math.Max(0, VirtualWidth-MinimumColumnWidth);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -656,7 +656,7 @@ namespace Project31.ApplicationFramework
|
||||||
return (int)(PaneLayoutHeight*horizontalSplitterPosition);
|
return (int)(PaneLayoutHeight*horizontalSplitterPosition);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the minimum layout position of the horizontal splitter.
|
/// Gets the minimum layout position of the horizontal splitter.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -736,8 +736,8 @@ namespace Project31.ApplicationFramework
|
||||||
if (HorizontalSplitterLayoutPosition+e.Position > MaximumHorizontalSplitterLayoutPosition)
|
if (HorizontalSplitterLayoutPosition+e.Position > MaximumHorizontalSplitterLayoutPosition)
|
||||||
e.Position = MaximumHorizontalSplitterLayoutPosition-horizontalSplitterLayoutPosition;
|
e.Position = MaximumHorizontalSplitterLayoutPosition-horizontalSplitterLayoutPosition;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// splitterLightweightControlVertical_SplitterEndMove event handler.
|
/// splitterLightweightControlVertical_SplitterEndMove event handler.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -831,4 +831,3 @@ namespace Project31.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -12,118 +12,118 @@ using Project31.Controls;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ApplicationWorkspaceColumnPaneLightweightControl. Internal helper class used by
|
/// ApplicationWorkspaceColumnPaneLightweightControl. Internal helper class used by
|
||||||
/// ApplicationWorkspaceColumnLightweightControl.
|
/// ApplicationWorkspaceColumnLightweightControl.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class ApplicationWorkspaceColumnPaneLightweightControl : LightweightControl
|
internal class ApplicationWorkspaceColumnPaneLightweightControl : LightweightControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The control.
|
/// The control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Control control;
|
private Control control;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the control.
|
/// Gets or sets the control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Control Control
|
public Control Control
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return control;
|
return control;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
if (control != value)
|
if (control != value)
|
||||||
{
|
{
|
||||||
if (control != null)
|
if (control != null)
|
||||||
control.Parent = null;
|
control.Parent = null;
|
||||||
|
|
||||||
control = value;
|
control = value;
|
||||||
|
|
||||||
PerformLayout();
|
PerformLayout();
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the DummyPaneLightweightControl class.
|
/// Initializes a new instance of the DummyPaneLightweightControl class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="container"></param>
|
/// <param name="container"></param>
|
||||||
public ApplicationWorkspaceColumnPaneLightweightControl(System.ComponentModel.IContainer container)
|
public ApplicationWorkspaceColumnPaneLightweightControl(System.ComponentModel.IContainer container)
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
/// </summary>
|
/// </summary>
|
||||||
container.Add(this);
|
container.Add(this);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the DummyPaneLightweightControl class.
|
/// Initializes a new instance of the DummyPaneLightweightControl class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ApplicationWorkspaceColumnPaneLightweightControl()
|
public ApplicationWorkspaceColumnPaneLightweightControl()
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
/// </summary>
|
/// </summary>
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||||
//
|
//
|
||||||
// ApplicationWorkspaceColumnPaneLightweightControl
|
// ApplicationWorkspaceColumnPaneLightweightControl
|
||||||
//
|
//
|
||||||
this.Visible = false;
|
this.Visible = false;
|
||||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||||
|
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
protected override void OnLayout(EventArgs e)
|
protected override void OnLayout(EventArgs e)
|
||||||
{
|
{
|
||||||
// Call the base class's method so that registered delegates receive the event.
|
// Call the base class's method so that registered delegates receive the event.
|
||||||
base.OnLayout(e);
|
base.OnLayout(e);
|
||||||
|
|
||||||
// Layout the control.
|
// Layout the control.
|
||||||
if (control != null)
|
if (control != null)
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
if (control.Parent != Parent)
|
if (control.Parent != Parent)
|
||||||
control.Parent = Parent;
|
control.Parent = Parent;
|
||||||
|
|
||||||
//
|
//
|
||||||
Rectangle layoutRectangle = VirtualClientRectangle;
|
Rectangle layoutRectangle = VirtualClientRectangle;
|
||||||
layoutRectangle.Inflate(-1, -1);
|
layoutRectangle.Inflate(-1, -1);
|
||||||
control.Bounds = VirtualClientRectangleToParent(layoutRectangle);
|
control.Bounds = VirtualClientRectangleToParent(layoutRectangle);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Raises the Paint event.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="e">A PaintEventArgs that contains the event data.</param>
|
|
||||||
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
|
|
||||||
{
|
|
||||||
// Call the base class's method so that registered delegates receive the event.
|
|
||||||
base.OnPaint(e);
|
|
||||||
|
|
||||||
// Solid background color.
|
/// <summary>
|
||||||
using (SolidBrush backgroundBrush = new SolidBrush(ApplicationManager.ApplicationStyle.BorderColor))
|
/// Raises the Paint event.
|
||||||
e.Graphics.FillRectangle(backgroundBrush, VirtualClientRectangle);
|
/// </summary>
|
||||||
}
|
/// <param name="e">A PaintEventArgs that contains the event data.</param>
|
||||||
}
|
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
|
||||||
|
{
|
||||||
|
// Call the base class's method so that registered delegates receive the event.
|
||||||
|
base.OnPaint(e);
|
||||||
|
|
||||||
|
// Solid background color.
|
||||||
|
using (SolidBrush backgroundBrush = new SolidBrush(ApplicationManager.ApplicationStyle.BorderColor))
|
||||||
|
e.Graphics.FillRectangle(backgroundBrush, VirtualClientRectangle);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,99 +11,98 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// ApplicationCommandBar lightweight control. Provides the CommandBarLightweightControl for
|
/// ApplicationCommandBar lightweight control. Provides the CommandBarLightweightControl for
|
||||||
/// the ApplicationWorkspace.
|
/// the ApplicationWorkspace.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class ApplicationWorkspaceCommandBarLightweightControl : CommandBarLightweightControl
|
public class ApplicationWorkspaceCommandBarLightweightControl : CommandBarLightweightControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
|
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ApplicationWorkspaceCommandBarLightweightControl()
|
public ApplicationWorkspaceCommandBarLightweightControl()
|
||||||
{
|
{
|
||||||
// This call is required by the Windows.Forms Form Designer.
|
// This call is required by the Windows.Forms Form Designer.
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
|
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="container"></param>
|
/// <param name="container"></param>
|
||||||
public ApplicationWorkspaceCommandBarLightweightControl(System.ComponentModel.IContainer container)
|
public ApplicationWorkspaceCommandBarLightweightControl(System.ComponentModel.IContainer container)
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
/// </summary>
|
/// </summary>
|
||||||
container.Add(this);
|
container.Add(this);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
base.Dispose( disposing );
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
components = new System.ComponentModel.Container();
|
components = new System.ComponentModel.Container();
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raises the Paint event.
|
/// Raises the Paint event.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="e">A PaintEventArgs that contains the event data.</param>
|
/// <param name="e">A PaintEventArgs that contains the event data.</param>
|
||||||
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
|
protected override void OnPaint(System.Windows.Forms.PaintEventArgs e)
|
||||||
{
|
{
|
||||||
// Fill the background.
|
// Fill the background.
|
||||||
if (ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor == ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor)
|
if (ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor == ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor)
|
||||||
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor))
|
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor))
|
||||||
e.Graphics.FillRectangle(solidBrush, VirtualClientRectangle);
|
e.Graphics.FillRectangle(solidBrush, VirtualClientRectangle);
|
||||||
else
|
else
|
||||||
using (LinearGradientBrush linearGradientBrush = new LinearGradientBrush(VirtualClientRectangle, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor, LinearGradientMode.Vertical))
|
using (LinearGradientBrush linearGradientBrush = new LinearGradientBrush(VirtualClientRectangle, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor, LinearGradientMode.Vertical))
|
||||||
e.Graphics.FillRectangle(linearGradientBrush, VirtualClientRectangle);
|
e.Graphics.FillRectangle(linearGradientBrush, VirtualClientRectangle);
|
||||||
|
|
||||||
// Draw the first line of the top bevel.
|
// Draw the first line of the top bevel.
|
||||||
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopBevelFirstLineColor))
|
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopBevelFirstLineColor))
|
||||||
e.Graphics.FillRectangle(solidBrush, 0, 0, VirtualWidth, 1);
|
e.Graphics.FillRectangle(solidBrush, 0, 0, VirtualWidth, 1);
|
||||||
|
|
||||||
// Draw the second line of the top bevel.
|
|
||||||
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopBevelSecondLineColor))
|
|
||||||
e.Graphics.FillRectangle(solidBrush, 0, 1, VirtualWidth, 1);
|
|
||||||
|
|
||||||
// Draw the first line of the bottom bevel.
|
// Draw the second line of the top bevel.
|
||||||
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomBevelFirstLineColor))
|
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopBevelSecondLineColor))
|
||||||
e.Graphics.FillRectangle(solidBrush, 0, VirtualHeight-2, VirtualWidth, 1);
|
e.Graphics.FillRectangle(solidBrush, 0, 1, VirtualWidth, 1);
|
||||||
|
|
||||||
// Draw the first line of the bottom bevel.
|
|
||||||
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomBevelSecondLineColor))
|
|
||||||
e.Graphics.FillRectangle(solidBrush, 0, VirtualHeight-1, VirtualWidth, 1);
|
|
||||||
|
|
||||||
// Call the base class's method so that registered delegates receive the event.
|
// Draw the first line of the bottom bevel.
|
||||||
base.OnPaint(e);
|
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomBevelFirstLineColor))
|
||||||
}
|
e.Graphics.FillRectangle(solidBrush, 0, VirtualHeight-2, VirtualWidth, 1);
|
||||||
|
|
||||||
|
// Draw the first line of the bottom bevel.
|
||||||
|
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomBevelSecondLineColor))
|
||||||
|
e.Graphics.FillRectangle(solidBrush, 0, VirtualHeight-1, VirtualWidth, 1);
|
||||||
|
|
||||||
}
|
// Call the base class's method so that registered delegates receive the event.
|
||||||
|
base.OnPaint(e);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -23,7 +23,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const int BORDER_SIZE = 1;
|
private const int BORDER_SIZE = 1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
@ -45,7 +45,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
private Control control;
|
private Control control;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
///
|
///
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool themeBorder = false;
|
private bool themeBorder = false;
|
||||||
|
|
||||||
|
@ -73,7 +73,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// True if bottom border should not be used.
|
/// True if bottom border should not be used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool suppressBottomBorder;
|
private bool suppressBottomBorder;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The right inset.
|
/// The right inset.
|
||||||
|
@ -96,7 +96,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
themeBorderColor = SystemColors.ControlDark;
|
themeBorderColor = SystemColors.ControlDark;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -114,17 +114,17 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
#endregion Class Initialization & Termination
|
#endregion Class Initialization & Termination
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
this.focusWatchingUserControl = new OpenLiveWriter.Controls.FocusWatchingUserControl();
|
this.focusWatchingUserControl = new OpenLiveWriter.Controls.FocusWatchingUserControl();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// focusWatchingUserControl
|
// focusWatchingUserControl
|
||||||
//
|
//
|
||||||
this.focusWatchingUserControl.Anchor = System.Windows.Forms.AnchorStyles.None;
|
this.focusWatchingUserControl.Anchor = System.Windows.Forms.AnchorStyles.None;
|
||||||
this.focusWatchingUserControl.BackColor = System.Drawing.SystemColors.Window;
|
this.focusWatchingUserControl.BackColor = System.Drawing.SystemColors.Window;
|
||||||
this.focusWatchingUserControl.Location = new System.Drawing.Point(1, 1);
|
this.focusWatchingUserControl.Location = new System.Drawing.Point(1, 1);
|
||||||
|
@ -132,9 +132,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
this.focusWatchingUserControl.Size = new System.Drawing.Size(148, 148);
|
this.focusWatchingUserControl.Size = new System.Drawing.Size(148, 148);
|
||||||
this.focusWatchingUserControl.TabStop = false;
|
this.focusWatchingUserControl.TabStop = false;
|
||||||
//this.focusWatchingUserControl.TabIndex = 0;
|
//this.focusWatchingUserControl.TabIndex = 0;
|
||||||
//
|
//
|
||||||
// BorderControl
|
// BorderControl
|
||||||
//
|
//
|
||||||
this.Controls.Add(this.focusWatchingUserControl);
|
this.Controls.Add(this.focusWatchingUserControl);
|
||||||
this.Name = "BorderControl";
|
this.Name = "BorderControl";
|
||||||
this.ResumeLayout(false);
|
this.ResumeLayout(false);
|
||||||
|
@ -145,7 +145,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
#region Public Properties
|
#region Public Properties
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets
|
/// Gets or sets
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public Control Control
|
public Control Control
|
||||||
{
|
{
|
||||||
|
@ -317,7 +317,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
#endregion Public Properties
|
#endregion Public Properties
|
||||||
|
|
||||||
#region Protected Methods
|
#region Protected Methods
|
||||||
|
|
|
@ -30,15 +30,15 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ColorDefaultColorControl
|
// ColorDefaultColorControl
|
||||||
//
|
//
|
||||||
this.Name = "ColorDefaultColorControl";
|
this.Name = "ColorDefaultColorControl";
|
||||||
this.Size = new System.Drawing.Size(108, 24);
|
this.Size = new System.Drawing.Size(108, 24);
|
||||||
}
|
}
|
||||||
|
|
|
@ -30,18 +30,18 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ColorDialogLauncherControl
|
// ColorDialogLauncherControl
|
||||||
//
|
//
|
||||||
this.Name = "ColorDialogLauncherControl";
|
this.Name = "ColorDialogLauncherControl";
|
||||||
this.Size = new System.Drawing.Size(108, 24);
|
this.Size = new System.Drawing.Size(108, 24);
|
||||||
this.Text = "&More Colors…";
|
this.Text = "&More Colors…";
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
|
@ -122,34 +122,34 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
this.colorDefaultColorControl = new OpenLiveWriter.ApplicationFramework.ColorDefaultColorControl(this.colorPickerForm_ColorSelected, this.sc_Navigate);
|
this.colorDefaultColorControl = new OpenLiveWriter.ApplicationFramework.ColorDefaultColorControl(this.colorPickerForm_ColorSelected, this.sc_Navigate);
|
||||||
this.colorDialogLauncherControl = new OpenLiveWriter.ApplicationFramework.ColorDialogLauncherControl(this.colorPickerForm_ColorSelected, this.sc_Navigate);
|
this.colorDialogLauncherControl = new OpenLiveWriter.ApplicationFramework.ColorDialogLauncherControl(this.colorPickerForm_ColorSelected, this.sc_Navigate);
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
//
|
//
|
||||||
// colorPresets
|
// colorPresets
|
||||||
//
|
//
|
||||||
this.colorPresets.Location = new System.Drawing.Point(11, 39);
|
this.colorPresets.Location = new System.Drawing.Point(11, 39);
|
||||||
this.colorPresets.Name = "colorPresets";
|
this.colorPresets.Name = "colorPresets";
|
||||||
this.colorPresets.Size = new System.Drawing.Size(96, 72);
|
this.colorPresets.Size = new System.Drawing.Size(96, 72);
|
||||||
this.colorPresets.TabIndex = 1;
|
this.colorPresets.TabIndex = 1;
|
||||||
this.colorPresets.TabStop = true;
|
this.colorPresets.TabStop = true;
|
||||||
//
|
//
|
||||||
// colorDefaultColorControl
|
// colorDefaultColorControl
|
||||||
//
|
//
|
||||||
this.colorDefaultColorControl.Location = new System.Drawing.Point(5, 5);
|
this.colorDefaultColorControl.Location = new System.Drawing.Point(5, 5);
|
||||||
this.colorDefaultColorControl.Name = "colorDefaultColorControl";
|
this.colorDefaultColorControl.Name = "colorDefaultColorControl";
|
||||||
this.colorDefaultColorControl.Size = new System.Drawing.Size(108, 32);
|
this.colorDefaultColorControl.Size = new System.Drawing.Size(108, 32);
|
||||||
this.colorDefaultColorControl.TabIndex = 0;
|
this.colorDefaultColorControl.TabIndex = 0;
|
||||||
this.colorDefaultColorControl.TabStop = true;
|
this.colorDefaultColorControl.TabStop = true;
|
||||||
//
|
//
|
||||||
// colorDialogLauncherControl
|
// colorDialogLauncherControl
|
||||||
//
|
//
|
||||||
this.colorDialogLauncherControl.Location = new System.Drawing.Point(5, 112);
|
this.colorDialogLauncherControl.Location = new System.Drawing.Point(5, 112);
|
||||||
this.colorDialogLauncherControl.Name = "colorDialogLauncherControl";
|
this.colorDialogLauncherControl.Name = "colorDialogLauncherControl";
|
||||||
this.colorDialogLauncherControl.Size = new System.Drawing.Size(108, 24);
|
this.colorDialogLauncherControl.Size = new System.Drawing.Size(108, 24);
|
||||||
this.colorDialogLauncherControl.TabIndex = 2;
|
this.colorDialogLauncherControl.TabIndex = 2;
|
||||||
this.colorDialogLauncherControl.TabStop = true;
|
this.colorDialogLauncherControl.TabStop = true;
|
||||||
|
|
||||||
//
|
//
|
||||||
// ColorPickerForm
|
// ColorPickerForm
|
||||||
//
|
//
|
||||||
this.AutoScaleMode = AutoScaleMode.None;
|
this.AutoScaleMode = AutoScaleMode.None;
|
||||||
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
|
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
|
||||||
this.BackColor = System.Drawing.SystemColors.Window;
|
this.BackColor = System.Drawing.SystemColors.Window;
|
||||||
|
@ -177,7 +177,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
// Borderless windows show in the alt+tab window, so this fakes
|
// Borderless windows show in the alt+tab window, so this fakes
|
||||||
// out windows into thinking its a tool window (which doesn't
|
// out windows into thinking its a tool window (which doesn't
|
||||||
// show up in the alt+tab window).
|
// show up in the alt+tab window).
|
||||||
createParams.ExStyle |= 0x00000080; // WS_EX_TOOLWINDOW
|
createParams.ExStyle |= 0x00000080; // WS_EX_TOOLWINDOW
|
||||||
|
|
||||||
return createParams;
|
return createParams;
|
||||||
}
|
}
|
||||||
|
@ -274,10 +274,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public abstract class IColorPickerSubControl : System.Windows.Forms.UserControl
|
public abstract class IColorPickerSubControl : System.Windows.Forms.UserControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected System.ComponentModel.Container components = null;
|
protected System.ComponentModel.Container components = null;
|
||||||
|
@ -291,8 +290,8 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raised by a subcontrol to inform ColorPickerForm that it should navigate
|
/// Raised by a subcontrol to inform ColorPickerForm that it should navigate
|
||||||
/// (either for forward or backward) to the next control.
|
/// (either for forward or backward) to the next control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public event NavigateEventHandler _Navigate;
|
public event NavigateEventHandler _Navigate;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Called by a subcontrol (derived class of IColorPickerSubControl) to raise the _Navigate event
|
/// Called by a subcontrol (derived class of IColorPickerSubControl) to raise the _Navigate event
|
||||||
|
@ -319,13 +318,13 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Used by ColorPickerForm to facilitate navigation (up/down arrow keys) across the color picker menu.
|
/// Used by ColorPickerForm to facilitate navigation (up/down arrow keys) across the color picker menu.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public virtual void SelectControl(bool forward)
|
public virtual void SelectControl(bool forward)
|
||||||
{
|
{
|
||||||
this.Select();
|
this.Select();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Used by ColorPickerForm to inform a subcontrol of the currently selected color.
|
/// Used by ColorPickerForm to inform a subcontrol of the currently selected color.
|
||||||
public virtual Color Color
|
public virtual Color Color
|
||||||
{
|
{
|
||||||
get { return _color; }
|
get { return _color; }
|
||||||
|
@ -363,7 +362,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
|
|
@ -23,7 +23,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
private bool m_hover = false;
|
private bool m_hover = false;
|
||||||
private bool m_pressed = false;
|
private bool m_pressed = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
@ -64,7 +64,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
public event ColorSelectedEventHandler ColorSelected;
|
public event ColorSelectedEventHandler ColorSelected;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -80,15 +80,15 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ColorPopup
|
// ColorPopup
|
||||||
//
|
//
|
||||||
this.Name = "ColorPopup";
|
this.Name = "ColorPopup";
|
||||||
this.Size = new System.Drawing.Size(150, 40);
|
this.Size = new System.Drawing.Size(150, 40);
|
||||||
this.Text = "&Color Scheme";
|
this.Text = "&Color Scheme";
|
||||||
|
@ -128,8 +128,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
Invalidate();
|
Invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const int PADDING = 6;
|
const int PADDING = 6;
|
||||||
const int GUTTER_SIZE = 3;
|
const int GUTTER_SIZE = 3;
|
||||||
const int COLOR_SIZE = 14;
|
const int COLOR_SIZE = 14;
|
||||||
|
|
|
@ -352,23 +352,23 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
//
|
//
|
||||||
// ColorPresetControl
|
// ColorPresetControl
|
||||||
//
|
//
|
||||||
this.Name = "ColorPresetControl";
|
this.Name = "ColorPresetControl";
|
||||||
this.Size = new System.Drawing.Size(96, 72);
|
this.Size = new System.Drawing.Size(96, 72);
|
||||||
this.tableLayout = new System.Windows.Forms.TableLayoutPanel();
|
this.tableLayout = new System.Windows.Forms.TableLayoutPanel();
|
||||||
this.SuspendLayout();
|
this.SuspendLayout();
|
||||||
|
|
||||||
//
|
//
|
||||||
// tableLayout
|
// tableLayout
|
||||||
//
|
//
|
||||||
this.tableLayout.RowCount = 3;
|
this.tableLayout.RowCount = 3;
|
||||||
this.tableLayout.ColumnCount = 4;
|
this.tableLayout.ColumnCount = 4;
|
||||||
this.tableLayout.Location = new System.Drawing.Point(0, 0);
|
this.tableLayout.Location = new System.Drawing.Point(0, 0);
|
||||||
|
|
|
@ -97,7 +97,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool visibleOnMainMenu = true;
|
private bool visibleOnMainMenu = true;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A value indicating whether the command should be visible on a command bar
|
/// A value indicating whether the command should be visible on a command bar
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -298,7 +297,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private static readonly object CommandBarButtonContextMenuDefinitionKey = new object();
|
private static readonly object CommandBarButtonContextMenuDefinitionKey = new object();
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Occurs when the CommandBarButtonContextMenuDefinition should be shown.
|
/// Occurs when the CommandBarButtonContextMenuDefinition should be shown.
|
||||||
|
@ -367,7 +365,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The VisibleOnCommandBarChanged event key.
|
/// The VisibleOnCommandBarChanged event key.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -743,7 +740,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether the command should be visible on a command bar
|
/// Gets or sets a value indicating whether the command should be visible on a command bar
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -769,7 +765,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets A value indicating whether the Shortcut of the command should be shown when the
|
/// Gets or sets A value indicating whether the Shortcut of the command should be shown when the
|
||||||
/// command appears on a menu.
|
/// command appears on a menu.
|
||||||
|
@ -1061,8 +1056,8 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
// set the value
|
// set the value
|
||||||
commandBarButtonBitmapEnabled = value;
|
commandBarButtonBitmapEnabled = value;
|
||||||
|
|
||||||
// since other command bar states can be auto-derivied from enabled we
|
// since other command bar states can be auto-derivied from enabled we
|
||||||
// need to null them out so they can be updated
|
// need to null them out so they can be updated
|
||||||
commandBarButtonBitmapSelected = null;
|
commandBarButtonBitmapSelected = null;
|
||||||
commandBarButtonBitmapPushed = null;
|
commandBarButtonBitmapPushed = null;
|
||||||
commandBarButtonBitmapDisabled = null;
|
commandBarButtonBitmapDisabled = null;
|
||||||
|
@ -1186,10 +1181,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command bar button mini form factory
|
/// Gets or sets the command bar button mini form factory
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public ICommandContextMenuControlHandler CommandBarButtonContextMenuControlHandler
|
public ICommandContextMenuControlHandler CommandBarButtonContextMenuControlHandler
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
|
@ -1254,9 +1248,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
private bool commandBarButtonContextMenuInvalidateParent = false;
|
private bool commandBarButtonContextMenuInvalidateParent = false;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command text.
|
/// Gets or sets the command text.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1846,7 +1837,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
RaiseEvent(VisibleOnMainMenuChangedEventKey, e);
|
RaiseEvent(VisibleOnMainMenuChangedEventKey, e);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raises the VisibleOnCommandBarChanged event.
|
/// Raises the VisibleOnCommandBarChanged event.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1918,7 +1908,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion Private Methods
|
#endregion Private Methods
|
||||||
|
|
||||||
#region IComparable Members
|
#region IComparable Members
|
||||||
|
|
||||||
|
@ -1938,11 +1928,11 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
throw new ArgumentException("object is not a Command");
|
throw new ArgumentException("object is not a Command");
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
public enum InvalidationState
|
public enum InvalidationState
|
||||||
{
|
{
|
||||||
Pending, // We have not yet set or invalidated the ribbon
|
Pending, // We have not yet set or invalidated the ribbon
|
||||||
WaitingForUpdateProperty, // We have called InvalidateUICommand and are waiting for an UpdateProperty callback.
|
WaitingForUpdateProperty, // We have called InvalidateUICommand and are waiting for an UpdateProperty callback.
|
||||||
Error // The ribbon APIs to set and invalidate this command have return an failing error code.
|
Error // The ribbon APIs to set and invalidate this command have return an failing error code.
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,6 @@ using OpenLiveWriter.Controls;
|
||||||
using OpenLiveWriter.CoreServices;
|
using OpenLiveWriter.CoreServices;
|
||||||
using OpenLiveWriter.Localization.Bidi;
|
using OpenLiveWriter.Localization.Bidi;
|
||||||
|
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework
|
namespace OpenLiveWriter.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -71,7 +70,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The offset at which to paint the context menu arrow.
|
/// The offset at which to paint the context menu arrow.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private const int CONTEXT_MENU_ARROW_OFFSET = 3;
|
private const int CONTEXT_MENU_ARROW_OFFSET = 3;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -159,9 +158,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
public CommandBarButtonLightweightControl(CommandBarLightweightControl commandBarLightweightControl, string commandIdentifier, bool rightAligned)
|
public CommandBarButtonLightweightControl(CommandBarLightweightControl commandBarLightweightControl, string commandIdentifier, bool rightAligned)
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
/// </summary>
|
/// </summary>
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
InitializeObject();
|
InitializeObject();
|
||||||
|
|
||||||
// Set the command bar lightweight control.
|
// Set the command bar lightweight control.
|
||||||
|
@ -180,7 +179,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
UpdateCommand();
|
UpdateCommand();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -204,9 +203,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||||
//
|
//
|
||||||
// CommandBarButtonLightweightControl
|
// CommandBarButtonLightweightControl
|
||||||
//
|
//
|
||||||
this.Visible = false;
|
this.Visible = false;
|
||||||
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
|
||||||
|
|
||||||
|
@ -400,7 +399,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private int SnapButtonHeight(int height)
|
private int SnapButtonHeight(int height)
|
||||||
{
|
{
|
||||||
// large buttons always occupy 42 pixels
|
// large buttons always occupy 42 pixels
|
||||||
|
@ -1054,7 +1052,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
// Locate the command.
|
// Locate the command.
|
||||||
Command updateCommand = commandBarLightweightControl.CommandManager.Get(commandIdentifier);
|
Command updateCommand = commandBarLightweightControl.CommandManager.Get(commandIdentifier);
|
||||||
|
|
||||||
// Set the command.
|
// Set the command.
|
||||||
Command = updateCommand;
|
Command = updateCommand;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1091,7 +1089,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
// Note that the context menu is showing.
|
// Note that the context menu is showing.
|
||||||
StartShowContextMenu();
|
StartShowContextMenu();
|
||||||
|
|
||||||
// create the mini-form
|
// create the mini-form
|
||||||
CommandContextMenuMiniForm miniForm = new CommandContextMenuMiniForm(Win32WindowImpl.ForegroundWin32Window, Command);
|
CommandContextMenuMiniForm miniForm = new CommandContextMenuMiniForm(Win32WindowImpl.ForegroundWin32Window, Command);
|
||||||
|
|
||||||
miniForm.Location = PositionMenu(menuLocation, alternativeLocation, miniForm.Size);
|
miniForm.Location = PositionMenu(menuLocation, alternativeLocation, miniForm.Size);
|
||||||
|
@ -1159,7 +1157,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
EndShowContextMenu();
|
EndShowContextMenu();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initialize state/UI for context menu
|
/// Initialize state/UI for context menu
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -1177,7 +1174,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
ContextMenuShowing = false;
|
ContextMenuShowing = false;
|
||||||
MouseInside = false;
|
MouseInside = false;
|
||||||
|
|
||||||
// if requested, invalidate the parent so that the command bar repaints
|
// if requested, invalidate the parent so that the command bar repaints
|
||||||
// correctly (this is necessary for the IE ToolBand which won't paint
|
// correctly (this is necessary for the IE ToolBand which won't paint
|
||||||
// its background correctly unless the entire control is invalidated)
|
// its background correctly unless the entire control is invalidated)
|
||||||
if (Command != null)
|
if (Command != null)
|
||||||
|
@ -1201,7 +1198,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
private static ColorMatrix _highContrastColorMatrix;
|
private static ColorMatrix _highContrastColorMatrix;
|
||||||
|
|
||||||
|
|
||||||
#endregion Private Methods
|
#endregion Private Methods
|
||||||
|
|
||||||
#region Private Event Handlers
|
#region Private Event Handlers
|
||||||
|
@ -1255,7 +1251,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
#endregion Private Event Handlers
|
#endregion Private Event Handlers
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Commands can implement this interface to provide
|
/// Commands can implement this interface to provide
|
||||||
/// dynamic command bar button images.
|
/// dynamic command bar button images.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public interface ICustomButtonBitmapPaint
|
public interface ICustomButtonBitmapPaint
|
||||||
|
@ -1265,8 +1261,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
void Paint(BidiGraphics g, Rectangle bounds, DrawState drawState);
|
void Paint(BidiGraphics g, Rectangle bounds, DrawState drawState);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public override bool DoDefaultAction()
|
public override bool DoDefaultAction()
|
||||||
{
|
{
|
||||||
if (ContextMenuUserInterface || DropDownContextMenuUserInterface)
|
if (ContextMenuUserInterface || DropDownContextMenuUserInterface)
|
||||||
|
|
|
@ -18,7 +18,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
{
|
{
|
||||||
#region Private Member Variables
|
#region Private Member Variables
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
@ -50,7 +50,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
InitializeObject();
|
InitializeObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -68,8 +68,8 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
#endregion Class Initialization & Termination
|
#endregion Class Initialization & Termination
|
||||||
|
|
||||||
#region Component Designer generated code
|
#region Component Designer generated code
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
|
@ -143,7 +143,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
private int _offSetSpacing = 0;
|
private int _offSetSpacing = 0;
|
||||||
|
|
||||||
|
|
||||||
#endregion Public Properties
|
#endregion Public Properties
|
||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
|
@ -224,7 +223,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
previous = Previous.Separator;
|
previous = Previous.Separator;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (lightweightControl is CommandBarButtonLightweightControl)
|
if (lightweightControl is CommandBarButtonLightweightControl)
|
||||||
{
|
{
|
||||||
//if (((CommandBarButtonLightweightControl)lightweightControl).DropDownContextMenuUserInterface)
|
//if (((CommandBarButtonLightweightControl)lightweightControl).DropDownContextMenuUserInterface)
|
||||||
|
|
|
@ -15,7 +15,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandBarControl : LightweightControlContainerControl
|
public class CommandBarControl : LightweightControlContainerControl
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
@ -62,8 +62,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
/// <summary>
|
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -78,8 +77,8 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
base.Dispose(disposing);
|
base.Dispose(disposing);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
|
|
|
@ -122,13 +122,13 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
{
|
{
|
||||||
// Fix bug 722229: paragraph button doesn't show in the right place for RTL builds
|
// Fix bug 722229: paragraph button doesn't show in the right place for RTL builds
|
||||||
// We used to do SyncControlLocation() in OnLayout. The problem is that OnLayout
|
// We used to do SyncControlLocation() in OnLayout. The problem is that OnLayout
|
||||||
// only occurs when this lightweight control is moved relative to its immediate
|
// only occurs when this lightweight control is moved relative to its immediate
|
||||||
// parent--it doesn't get called when its parent is moved relative to the grandparent.
|
// parent--it doesn't get called when its parent is moved relative to the grandparent.
|
||||||
// Since layout happens from the bottom of the hierarchy up, and the heavyweight
|
// Since layout happens from the bottom of the hierarchy up, and the heavyweight
|
||||||
// control's coordinate system is relative to the parent heavyweight control, the
|
// control's coordinate system is relative to the parent heavyweight control, the
|
||||||
// two coordinate systems would get out of sync.
|
// two coordinate systems would get out of sync.
|
||||||
//
|
//
|
||||||
// By moving the call to OnPaint we can be confident that the heavyweight control
|
// By moving the call to OnPaint we can be confident that the heavyweight control
|
||||||
// will be moved after all layout has completed.
|
// will be moved after all layout has completed.
|
||||||
SyncControlLocation();
|
SyncControlLocation();
|
||||||
|
|
||||||
|
@ -144,7 +144,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
// Call the base class's method so that registered delegates receive the event.
|
// Call the base class's method so that registered delegates receive the event.
|
||||||
base.OnLightweightControlContainerControlChanged(e);
|
base.OnLightweightControlContainerControlChanged(e);
|
||||||
|
|
||||||
//
|
//
|
||||||
if (control.Parent != Parent)
|
if (control.Parent != Parent)
|
||||||
control.Parent = Parent;
|
control.Parent = Parent;
|
||||||
|
|
||||||
|
|
|
@ -150,7 +150,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Private data.
|
/// Private data.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private IEnumerator baseEnumerator;
|
private IEnumerator baseEnumerator;
|
||||||
private IEnumerable temp;
|
private IEnumerable temp;
|
||||||
|
|
||||||
|
|
|
@ -152,13 +152,13 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
((System.ComponentModel.ISupportInitialize)(this.leftContainer)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.leftContainer)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.rightContainer)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this.rightContainer)).BeginInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
|
||||||
//
|
//
|
||||||
// leftContainer
|
// leftContainer
|
||||||
//
|
//
|
||||||
this.leftContainer.LightweightControlContainerControl = this;
|
this.leftContainer.LightweightControlContainerControl = this;
|
||||||
//
|
//
|
||||||
// rightContainer
|
// rightContainer
|
||||||
//
|
//
|
||||||
this.rightContainer.LightweightControlContainerControl = this;
|
this.rightContainer.LightweightControlContainerControl = this;
|
||||||
((System.ComponentModel.ISupportInitialize)(this.leftContainer)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.leftContainer)).EndInit();
|
||||||
((System.ComponentModel.ISupportInitialize)(this.rightContainer)).EndInit();
|
((System.ComponentModel.ISupportInitialize)(this.rightContainer)).EndInit();
|
||||||
|
@ -221,7 +221,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the bottom bevel style.
|
/// Gets or sets the bottom bevel style.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
///
|
///
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
DefaultValue(BevelStyle.DoubleLine),
|
DefaultValue(BevelStyle.DoubleLine),
|
||||||
|
@ -410,7 +410,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
protected bool UseHighContrastMode
|
protected bool UseHighContrastMode
|
||||||
{
|
{
|
||||||
get { return SystemInformation.HighContrast; }
|
get { return SystemInformation.HighContrast; }
|
||||||
|
|
|
@ -107,7 +107,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
// Call the base class's method so that registered delegates receive the event.
|
// Call the base class's method so that registered delegates receive the event.
|
||||||
base.OnPaint(e);
|
base.OnPaint(e);
|
||||||
|
|
||||||
|
|
||||||
// Paint the left line.
|
// Paint the left line.
|
||||||
using (SolidBrush solidBrush = new SolidBrush(Color.FromArgb(64, 0, 0, 0)))
|
using (SolidBrush solidBrush = new SolidBrush(Color.FromArgb(64, 0, 0, 0)))
|
||||||
e.Graphics.FillRectangle(solidBrush, VirtualClientRectangle.X, VirtualClientRectangle.Y + 1, VirtualClientRectangle.Width / 2, VirtualClientRectangle.Height);
|
e.Graphics.FillRectangle(solidBrush, VirtualClientRectangle.X, VirtualClientRectangle.Y + 1, VirtualClientRectangle.Width / 2, VirtualClientRectangle.Height);
|
||||||
|
|
|
@ -106,7 +106,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
if (entered)
|
if (entered)
|
||||||
Leave();
|
Leave();
|
||||||
|
|
||||||
// If activated, deactivate.
|
// If activated, deactivate.
|
||||||
if (activated)
|
if (activated)
|
||||||
Deactivate();
|
Deactivate();
|
||||||
|
|
||||||
|
@ -240,7 +240,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Activate()
|
public void Activate()
|
||||||
{
|
{
|
||||||
Debug.Assert(!activated, "CommandContextManager already activated. Call Brian.");
|
Debug.Assert(!activated, "CommandContextManager already activated.");
|
||||||
if (!activated)
|
if (!activated)
|
||||||
{
|
{
|
||||||
commandManager.Add(activatedCommandCollection);
|
commandManager.Add(activatedCommandCollection);
|
||||||
|
@ -248,13 +248,12 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clears the "Activated" state of the CommandContextManager.
|
/// Clears the "Activated" state of the CommandContextManager.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Deactivate()
|
public void Deactivate()
|
||||||
{
|
{
|
||||||
Debug.Assert(activated, "CommandContextManager not activated. Call Brian.");
|
Debug.Assert(activated, "CommandContextManager not activated.");
|
||||||
if (activated)
|
if (activated)
|
||||||
{
|
{
|
||||||
commandManager.Remove(activatedCommandCollection);
|
commandManager.Remove(activatedCommandCollection);
|
||||||
|
@ -270,13 +269,12 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Set the "Entered" state of the CommandContextManager.
|
/// Set the "Entered" state of the CommandContextManager.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Enter()
|
public void Enter()
|
||||||
{
|
{
|
||||||
//Debug.Assert(!entered, "CommandContextManager already entered. Call Brian.");
|
//Debug.Assert(!entered, "CommandContextManager already entered.");
|
||||||
if (!entered)
|
if (!entered)
|
||||||
{
|
{
|
||||||
commandManager.Add(enteredCommandCollection);
|
commandManager.Add(enteredCommandCollection);
|
||||||
|
@ -289,7 +287,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Leave()
|
public void Leave()
|
||||||
{
|
{
|
||||||
//Debug.Assert(entered, "CommandContextManager not entered. Call Brian.");
|
//Debug.Assert(entered, "CommandContextManager not entered.");
|
||||||
if (entered)
|
if (entered)
|
||||||
{
|
{
|
||||||
commandManager.Remove(enteredCommandCollection);
|
commandManager.Remove(enteredCommandCollection);
|
||||||
|
|
|
@ -78,7 +78,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
return command;
|
return command;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Shows a CommandContextMenu modally.
|
/// Shows a CommandContextMenu modally.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -309,8 +308,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
MenuItems.AddRange(commandMenuBuilder.CreateMenuItems());
|
MenuItems.AddRange(commandMenuBuilder.CreateMenuItems());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Displays the CommandContextMenu at the specified location and returns the command that
|
/// Displays the CommandContextMenu at the specified location and returns the command that
|
||||||
/// was selected by the user.
|
/// was selected by the user.
|
||||||
|
@ -368,7 +365,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
// Return the command that the user selected.
|
// Return the command that the user selected.
|
||||||
CommandOwnerDrawMenuItem commandOwnerDrawMenuItem = LocateCommandOwnerDrawMenuItem(MenuItems, menuID);
|
CommandOwnerDrawMenuItem commandOwnerDrawMenuItem = LocateCommandOwnerDrawMenuItem(MenuItems, menuID);
|
||||||
Debug.Assert(commandOwnerDrawMenuItem != null, "CommandContextMenu.ShowModal was not able to locate the CommandOwnerDrawMenuItem corresponding to the user's selection. Call Brian.");
|
Debug.Assert(commandOwnerDrawMenuItem != null, "CommandContextMenu.ShowModal was not able to locate the CommandOwnerDrawMenuItem corresponding to the user's selection.");
|
||||||
return commandOwnerDrawMenuItem.Command;
|
return commandOwnerDrawMenuItem.Command;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -48,7 +48,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
#endregion Public Events
|
#endregion Public Events
|
||||||
|
|
||||||
|
|
||||||
#region Class Initialization & Termination
|
#region Class Initialization & Termination
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
|
|
@ -17,33 +17,33 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
internal class CommandContextMenuMiniForm : BaseForm
|
internal class CommandContextMenuMiniForm : BaseForm
|
||||||
{
|
{
|
||||||
/* NOTE: When being shown in the context of the browser (or any non .NET
|
/* NOTE: When being shown in the context of the browser (or any non .NET
|
||||||
* application) this form will not handle any dialog level keyboard
|
* application) this form will not handle any dialog level keyboard
|
||||||
* commands (tab, enter, escape, alt-mnenonics, etc.). This is because
|
* commands (tab, enter, escape, alt-mnenonics, etc.). This is because
|
||||||
* it is a modeless form that does not have its own thread/message-loop.
|
* it is a modeless form that does not have its own thread/message-loop.
|
||||||
* Because the form was created by our .NET code the main IE frame that
|
* Because the form was created by our .NET code the main IE frame that
|
||||||
* has the message loop has no idea it needs to route keyboard events'
|
* has the message loop has no idea it needs to route keyboard events'
|
||||||
* to us. There are several possible workarounds:
|
* to us. There are several possible workarounds:
|
||||||
*
|
*
|
||||||
* (1) Create and show this form on its own thread with its own
|
* (1) Create and show this form on its own thread with its own
|
||||||
* message loop. In this case all calls from the form back
|
* message loop. In this case all calls from the form back
|
||||||
* to the main UI thread would need to be marshalled.
|
* to the main UI thread would need to be marshalled.
|
||||||
*
|
*
|
||||||
* (2) Manually process keyboard events in the low-level
|
* (2) Manually process keyboard events in the low-level
|
||||||
* ProcessKeyPreview override (see commented out method below)
|
* ProcessKeyPreview override (see commented out method below)
|
||||||
*
|
*
|
||||||
* (3) Change the implementation of the mini-form to be a modal
|
* (3) Change the implementation of the mini-form to be a modal
|
||||||
* dialog. The only problem here is we would need to capture
|
* dialog. The only problem here is we would need to capture
|
||||||
* mouse input so that clicks outside of the modal dialog onto
|
* mouse input so that clicks outside of the modal dialog onto
|
||||||
* the IE window result in the window being dismissed. We were
|
* the IE window result in the window being dismissed. We were
|
||||||
* not able to get this to work (couldn't capture the mouse)
|
* not able to get this to work (couldn't capture the mouse)
|
||||||
* in experimenting with this implementation.
|
* in experimenting with this implementation.
|
||||||
*
|
*
|
||||||
* Our judgement was to leave it as-is for now as it is unlikely that
|
* Our judgement was to leave it as-is for now as it is unlikely that
|
||||||
* keyboard input into a mini-form will be a big deal (the only way
|
* keyboard input into a mini-form will be a big deal (the only way
|
||||||
* to access the mini-form is with a mouse gesture on the toolbar so
|
* to access the mini-form is with a mouse gesture on the toolbar so
|
||||||
* the user is still in "mouse-mode" when the form pops up.
|
* the user is still in "mouse-mode" when the form pops up.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
public CommandContextMenuMiniForm(IWin32Window parentFrame, Command command)
|
public CommandContextMenuMiniForm(IWin32Window parentFrame, Command command)
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
SetStyle(ControlStyles.DoubleBuffer, true);
|
SetStyle(ControlStyles.DoubleBuffer, true);
|
||||||
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
|
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
|
||||||
|
|
||||||
// create and initialize the context menu control
|
// create and initialize the context menu control
|
||||||
Control commandContextMenuControl = _contextMenuControlHandler.CreateControl();
|
Control commandContextMenuControl = _contextMenuControlHandler.CreateControl();
|
||||||
commandContextMenuControl.TabIndex = 0;
|
commandContextMenuControl.TabIndex = 0;
|
||||||
commandContextMenuControl.BackColor = BACKGROUND_COLOR;
|
commandContextMenuControl.BackColor = BACKGROUND_COLOR;
|
||||||
|
@ -92,7 +92,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
_actionButton.ToolTip = _contextMenuControlHandler.ButtonText;
|
_actionButton.ToolTip = _contextMenuControlHandler.ButtonText;
|
||||||
_actionButton.AutoSizeWidth = true;
|
_actionButton.AutoSizeWidth = true;
|
||||||
_actionButton.AutoSizeHeight = true;
|
_actionButton.AutoSizeHeight = true;
|
||||||
_actionButton.Size = new Size(0, 0); // dummy call to force auto-size
|
_actionButton.Size = new Size(0, 0); // dummy call to force auto-size
|
||||||
|
|
||||||
// size the form based on the size of the context menu control and button
|
// size the form based on the size of the context menu control and button
|
||||||
Width = HORIZONTAL_INSET + commandContextMenuControl.Width + HORIZONTAL_INSET;
|
Width = HORIZONTAL_INSET + commandContextMenuControl.Width + HORIZONTAL_INSET;
|
||||||
|
@ -104,7 +104,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
Controls.Add(_actionButton);
|
Controls.Add(_actionButton);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Override out Activated event to allow parent form to retains its 'activated'
|
/// Override out Activated event to allow parent form to retains its 'activated'
|
||||||
/// look (caption bar color, etc.) even when we are active
|
/// look (caption bar color, etc.) even when we are active
|
||||||
|
@ -116,12 +115,10 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
base.OnActivated(e);
|
base.OnActivated(e);
|
||||||
|
|
||||||
// send the parent form a WM_NCACTIVATE message to cause it to to retain it's
|
// send the parent form a WM_NCACTIVATE message to cause it to to retain it's
|
||||||
// activated title bar appearance
|
// activated title bar appearance
|
||||||
User32.SendMessage(_parentFrame.Handle, WM.NCACTIVATE, new UIntPtr(1), IntPtr.Zero);
|
User32.SendMessage(_parentFrame.Handle, WM.NCACTIVATE, new UIntPtr(1), IntPtr.Zero);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Automatically close when the form is deactivated
|
/// Automatically close when the form is deactivated
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -133,7 +130,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
// set a timer that will result in the closing of the form
|
// set a timer that will result in the closing of the form
|
||||||
// (we do this because if actually call Close right here it
|
// (we do this because if actually call Close right here it
|
||||||
// will prevent the mouse event that resulted in the deactivation
|
// will prevent the mouse event that resulted in the deactivation
|
||||||
// of the form from actually triggering in the new target
|
// of the form from actually triggering in the new target
|
||||||
// winodw -- this allows the mouse event to trigger and the
|
// winodw -- this allows the mouse event to trigger and the
|
||||||
// form to go away almost instantly
|
// form to go away almost instantly
|
||||||
Timer closeDelayTimer = new Timer();
|
Timer closeDelayTimer = new Timer();
|
||||||
|
@ -158,7 +155,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
Cancel();
|
Cancel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// handle painting
|
// handle painting
|
||||||
protected override void OnPaint(PaintEventArgs e)
|
protected override void OnPaint(PaintEventArgs e)
|
||||||
{
|
{
|
||||||
|
@ -196,8 +192,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
miniFormBevelBitmap.Height));
|
miniFormBevelBitmap.Height));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Prevent background painting (supports double-buffering)
|
/// Prevent background painting (supports double-buffering)
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -207,22 +201,19 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
protected override bool ProcessKeyPreview(ref Message m)
|
protected override bool ProcessKeyPreview(ref Message m)
|
||||||
{
|
{
|
||||||
// NOTE: this is the only keyboard "event" which appears
|
// NOTE: this is the only keyboard "event" which appears
|
||||||
// to get called when our form is shown in the browser.
|
// to get called when our form is shown in the browser.
|
||||||
// if we want to support tab, esc, enter, mnemonics, etc.
|
// if we want to support tab, esc, enter, mnemonics, etc.
|
||||||
// without creating a new thread/message-loop for this
|
// without creating a new thread/message-loop for this
|
||||||
// form (see comment at the top) then this is where we
|
// form (see comment at the top) then this is where we
|
||||||
// would do the manual processing
|
// would do the manual processing
|
||||||
|
|
||||||
return base.ProcessKeyPreview (ref m);
|
return base.ProcessKeyPreview (ref m);
|
||||||
}
|
}
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// User clicked the action button
|
/// User clicked the action button
|
||||||
|
@ -234,7 +225,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
Execute();
|
Execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Cancel the mini-form
|
/// Cancel the mini-form
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -243,7 +233,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
Close();
|
Close();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Execute the command
|
/// Execute the command
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -259,7 +248,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
_contextMenuControlHandler.Execute(userInput);
|
_contextMenuControlHandler.Execute(userInput);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Handle to parent frame window
|
/// Handle to parent frame window
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -275,7 +263,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ICommandContextMenuControlHandler _contextMenuControlHandler;
|
private ICommandContextMenuControlHandler _contextMenuControlHandler;
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Button user clicks to take action
|
/// Button user clicks to take action
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -293,6 +280,5 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
private const int BUTTON_VERTICAL_PAD = 3;
|
private const int BUTTON_VERTICAL_PAD = 3;
|
||||||
private static readonly Color BACKGROUND_COLOR = Color.FromArgb(244, 243, 238);
|
private static readonly Color BACKGROUND_COLOR = Color.FromArgb(244, 243, 238);
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,422 +12,422 @@ using Project31.MindShare.CoreServices;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Represents a command in the Project31.ApplicationFramework.
|
/// Represents a command in the Project31.ApplicationFramework.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
DesignTimeVisible(false),
|
DesignTimeVisible(false),
|
||||||
ToolboxItem(false)
|
ToolboxItem(false)
|
||||||
]
|
]
|
||||||
public class CommandInstance : Component
|
public class CommandInstance : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Menu bitmap for the enabled state.
|
/// Menu bitmap for the enabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private CommandDefinition commandDefinition;
|
private CommandDefinition commandDefinition;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the menu bitmap for the enabled state.
|
/// Gets or sets the menu bitmap for the enabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(false),
|
Localizable(false),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the menu bitmap for the enabled state.")
|
Description("Specifies the menu bitmap for the enabled state.")
|
||||||
]
|
]
|
||||||
public Bitmap MenuBitmapEnabled
|
public Bitmap MenuBitmapEnabled
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return menuBitmapEnabled;
|
return menuBitmapEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
menuBitmapEnabled = value;
|
menuBitmapEnabled = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Menu bitmap for the disabled state.
|
/// Menu bitmap for the disabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Bitmap menuBitmapDisabled;
|
private Bitmap menuBitmapDisabled;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the menu bitmap for the disabled state.
|
/// Gets or sets the menu bitmap for the disabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(false),
|
Localizable(false),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the menu bitmap for the disabled state.")
|
Description("Specifies the menu bitmap for the disabled state.")
|
||||||
]
|
]
|
||||||
public Bitmap MenuBitmapDisabled
|
public Bitmap MenuBitmapDisabled
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return menuBitmapDisabled;
|
return menuBitmapDisabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
menuBitmapDisabled = value;
|
menuBitmapDisabled = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Menu bitmap for the selected state.
|
/// Menu bitmap for the selected state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Bitmap menuBitmapSelected;
|
private Bitmap menuBitmapSelected;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the menu selected bitmap.
|
/// Gets or sets the menu selected bitmap.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(false),
|
Localizable(false),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the menu bitmap for the selected state.")
|
Description("Specifies the menu bitmap for the selected state.")
|
||||||
]
|
]
|
||||||
public Bitmap MenuBitmapSelected
|
public Bitmap MenuBitmapSelected
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return menuBitmapSelected;
|
return menuBitmapSelected;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
menuBitmapSelected = value;
|
menuBitmapSelected = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The menu shortcut of the command.
|
/// The menu shortcut of the command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Shortcut menuShortcut;
|
private Shortcut menuShortcut;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the menu shortcut of the command.
|
/// Gets or sets the menu shortcut of the command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Behavior"),
|
Category("Behavior"),
|
||||||
DefaultValue(Shortcut.None),
|
DefaultValue(Shortcut.None),
|
||||||
Description("Specifies the menu shortcut of the command.")
|
Description("Specifies the menu shortcut of the command.")
|
||||||
]
|
]
|
||||||
public Shortcut MenuShortcut
|
public Shortcut MenuShortcut
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return menuShortcut;
|
return menuShortcut;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
menuShortcut = value;
|
menuShortcut = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A value indicating whether the menu shortcut should be shown for the command.
|
/// A value indicating whether the menu shortcut should be shown for the command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool showMenuShortcut;
|
private bool showMenuShortcut;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether the menu shortcut should be shown for the command.
|
/// Gets or sets a value indicating whether the menu shortcut should be shown for the command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Behavior"),
|
Category("Behavior"),
|
||||||
DefaultValue(false),
|
DefaultValue(false),
|
||||||
Description("Specifies whether the menu shortcut should be shown for the command.")
|
Description("Specifies whether the menu shortcut should be shown for the command.")
|
||||||
]
|
]
|
||||||
public bool ShowMenuShortcut
|
public bool ShowMenuShortcut
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return showMenuShortcut;
|
return showMenuShortcut;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
showMenuShortcut = value;
|
showMenuShortcut = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The command text. This is the "user visible text" that is associate with the command
|
/// The command text. This is the "user visible text" that is associate with the command
|
||||||
/// (such as "Save All"). It appears whenever the user can see text for the command.
|
/// (such as "Save All"). It appears whenever the user can see text for the command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private string text;
|
private string text;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command text.
|
/// Gets or sets the command text.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(true),
|
Localizable(true),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the text that is associated with the command.")
|
Description("Specifies the text that is associated with the command.")
|
||||||
]
|
]
|
||||||
public string Text
|
public string Text
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return text;
|
return text;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
text = value;
|
text = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The command description. This is the "user visible description" that is associated
|
/// The command description. This is the "user visible description" that is associated
|
||||||
/// with the command. It appears whenever the user can see a description for the command.
|
/// with the command. It appears whenever the user can see a description for the command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private string description;
|
private string description;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command description.
|
/// Gets or sets the command description.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(true),
|
Localizable(true),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the description for the command.")
|
Description("Specifies the description for the command.")
|
||||||
]
|
]
|
||||||
public string Description
|
public string Description
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return description;
|
return description;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
description = value;
|
description = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Command bar button bitmap for the disabled state.
|
/// Command bar button bitmap for the disabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Bitmap commandBarButtonBitmapDisabled;
|
private Bitmap commandBarButtonBitmapDisabled;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command bar button bitmap for the disabled state.
|
/// Gets or sets the command bar button bitmap for the disabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(true),
|
Localizable(true),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the command bar button bitmap for the disabled state.")
|
Description("Specifies the command bar button bitmap for the disabled state.")
|
||||||
]
|
]
|
||||||
public Bitmap CommandBarButtonBitmapDisabled
|
public Bitmap CommandBarButtonBitmapDisabled
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return commandBarButtonBitmapDisabled;
|
return commandBarButtonBitmapDisabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
commandBarButtonBitmapDisabled = value;
|
commandBarButtonBitmapDisabled = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Command bar button bitmap for the enabled state.
|
/// Command bar button bitmap for the enabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Bitmap commandBarButtonBitmapEnabled;
|
private Bitmap commandBarButtonBitmapEnabled;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command bar button bitmap for the enabled state.
|
/// Gets or sets the command bar button bitmap for the enabled state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(true),
|
Localizable(true),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the command bar button bitmap for the enabled state.")
|
Description("Specifies the command bar button bitmap for the enabled state.")
|
||||||
]
|
]
|
||||||
public Bitmap CommandBarButtonBitmapEnabled
|
public Bitmap CommandBarButtonBitmapEnabled
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return commandBarButtonBitmapEnabled;
|
return commandBarButtonBitmapEnabled;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
commandBarButtonBitmapEnabled = value;
|
commandBarButtonBitmapEnabled = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Command bar button bitmap for the pushed state.
|
/// Command bar button bitmap for the pushed state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Bitmap commandBarButtonBitmapPushed;
|
private Bitmap commandBarButtonBitmapPushed;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command bar button bitmap for the pushed state.
|
/// Gets or sets the command bar button bitmap for the pushed state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(true),
|
Localizable(true),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the command bar button bitmap for the pushed state.")
|
Description("Specifies the command bar button bitmap for the pushed state.")
|
||||||
]
|
]
|
||||||
public Bitmap CommandBarButtonBitmapPushed
|
public Bitmap CommandBarButtonBitmapPushed
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return commandBarButtonBitmapPushed;
|
return commandBarButtonBitmapPushed;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
commandBarButtonBitmapPushed = value;
|
commandBarButtonBitmapPushed = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Command bar button bitmap for the rollover state.
|
/// Command bar button bitmap for the rollover state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Bitmap commandBarButtonBitmapRollover;
|
private Bitmap commandBarButtonBitmapRollover;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command bar button bitmap for the rollover state.
|
/// Gets or sets the command bar button bitmap for the rollover state.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Appearance"),
|
Category("Appearance"),
|
||||||
Localizable(true),
|
Localizable(true),
|
||||||
DefaultValue(null),
|
DefaultValue(null),
|
||||||
Description("Specifies the command bar button bitmap for the rollover state.")
|
Description("Specifies the command bar button bitmap for the rollover state.")
|
||||||
]
|
]
|
||||||
public Bitmap CommandBarButtonBitmapRollover
|
public Bitmap CommandBarButtonBitmapRollover
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return commandBarButtonBitmapRollover;
|
return commandBarButtonBitmapRollover;
|
||||||
}
|
}
|
||||||
|
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
commandBarButtonBitmapRollover = value;
|
commandBarButtonBitmapRollover = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// A value indicating whether the command is enabled or not (i.e. can respond to user interaction).
|
/// A value indicating whether the command is enabled or not (i.e. can respond to user interaction).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool enabled = true;
|
private bool enabled = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets a value indicating whether the command is enabled or not (i.e. can respond to user interaction).
|
/// Gets or sets a value indicating whether the command is enabled or not (i.e. can respond to user interaction).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Behavior"),
|
Category("Behavior"),
|
||||||
DefaultValue(true),
|
DefaultValue(true),
|
||||||
Description("Specifies whether the command is enabled by default.")
|
Description("Specifies whether the command is enabled by default.")
|
||||||
]
|
]
|
||||||
public bool Enabled
|
public bool Enabled
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return enabled;
|
return enabled;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
// Set the value.
|
// Set the value.
|
||||||
enabled = value;
|
enabled = value;
|
||||||
|
|
||||||
// Fire the enabled changed event.
|
// Fire the enabled changed event.
|
||||||
OnEnabledChanged(EventArgs.Empty);
|
OnEnabledChanged(EventArgs.Empty);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Occurs when the command is executed.
|
/// Occurs when the command is executed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Category("Action"),
|
Category("Action"),
|
||||||
Description("Occurs when the command is executed.")
|
Description("Occurs when the command is executed.")
|
||||||
]
|
]
|
||||||
public event EventHandler Execute;
|
public event EventHandler Execute;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// Occurs when the command's enabled state changes.
|
|
||||||
/// </summary>
|
|
||||||
[
|
|
||||||
Category("Property Changed"),
|
|
||||||
Description("Occurs when the command's enabled state changes.")
|
|
||||||
]
|
|
||||||
public event EventHandler EnabledChanged;
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the Command class.
|
/// Occurs when the command's enabled state changes.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="container"></param>
|
[
|
||||||
public CommandDefinition(System.ComponentModel.IContainer container)
|
Category("Property Changed"),
|
||||||
{
|
Description("Occurs when the command's enabled state changes.")
|
||||||
/// <summary>
|
]
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
public event EventHandler EnabledChanged;
|
||||||
/// </summary>
|
|
||||||
container.Add(this);
|
|
||||||
InitializeComponent();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the Command class.
|
/// Initializes a new instance of the Command class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public CommandDefinition()
|
/// <param name="container"></param>
|
||||||
{
|
public CommandDefinition(System.ComponentModel.IContainer container)
|
||||||
/// <summary>
|
{
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// <summary>
|
||||||
/// </summary>
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
InitializeComponent();
|
/// </summary>
|
||||||
}
|
container.Add(this);
|
||||||
|
InitializeComponent();
|
||||||
|
}
|
||||||
|
|
||||||
#region Component Designer generated code
|
/// <summary>
|
||||||
/// <summary>
|
/// Initializes a new instance of the Command class.
|
||||||
/// Required method for Designer support - do not modify
|
/// </summary>
|
||||||
/// the contents of this method with the code editor.
|
public CommandDefinition()
|
||||||
/// </summary>
|
{
|
||||||
private void InitializeComponent()
|
/// <summary>
|
||||||
{
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
components = new System.ComponentModel.Container();
|
/// </summary>
|
||||||
}
|
InitializeComponent();
|
||||||
#endregion
|
}
|
||||||
|
|
||||||
/// <summary>
|
#region Component Designer generated code
|
||||||
/// This method can be called to raise the Execute event
|
/// <summary>
|
||||||
/// </summary>
|
/// Required method for Designer support - do not modify
|
||||||
public void PerformExecute()
|
/// the contents of this method with the code editor.
|
||||||
{
|
/// </summary>
|
||||||
Debug.Assert(Enabled, "Command is disabled.", "It is illogical to execute a command that is disabled.");
|
private void InitializeComponent()
|
||||||
OnExecute(EventArgs.Empty);
|
{
|
||||||
}
|
components = new System.ComponentModel.Container();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raises the Execute event.
|
/// This method can be called to raise the Execute event
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected void OnExecute(EventArgs e)
|
public void PerformExecute()
|
||||||
{
|
{
|
||||||
if (Execute != null)
|
Debug.Assert(Enabled, "Command is disabled.", "It is illogical to execute a command that is disabled.");
|
||||||
Execute(this, e);
|
OnExecute(EventArgs.Empty);
|
||||||
else
|
}
|
||||||
UnderConstructionForm.Show();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Raises the EnabledChanged event.
|
/// Raises the Execute event.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected void OnEnabledChanged(EventArgs e)
|
protected void OnExecute(EventArgs e)
|
||||||
{
|
{
|
||||||
if (EnabledChanged != null)
|
if (Execute != null)
|
||||||
EnabledChanged(this, e);
|
Execute(this, e);
|
||||||
}
|
else
|
||||||
}
|
UnderConstructionForm.Show();
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// Raises the EnabledChanged event.
|
||||||
|
/// </summary>
|
||||||
|
protected void OnEnabledChanged(EventArgs e)
|
||||||
|
{
|
||||||
|
if (EnabledChanged != null)
|
||||||
|
EnabledChanged(this, e);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -12,90 +12,90 @@ using Project31.CoreServices;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandList.
|
/// Summary description for CommandList.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[Designer(typeof(ComponentRootDesigner), typeof(IRootDesigner))]
|
[Designer(typeof(ComponentRootDesigner), typeof(IRootDesigner))]
|
||||||
public class CommandList : Component
|
public class CommandList : Component
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private System.ComponentModel.Container components = null;
|
private System.ComponentModel.Container components = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The command collection for this command list.
|
/// The command collection for this command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private CommandCollection commands = new CommandCollection();
|
private CommandCollection commands = new CommandCollection();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets or sets the command collection for this command list.
|
/// Gets or sets the command collection for this command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[
|
[
|
||||||
Localizable(true),
|
Localizable(true),
|
||||||
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
|
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
|
||||||
]
|
]
|
||||||
public CommandCollection Commands
|
public CommandCollection Commands
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
return commands;
|
return commands;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
{
|
{
|
||||||
commands = value;
|
commands = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the CommandList class.
|
/// Initializes a new instance of the CommandList class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="container">Component container.</param>
|
/// <param name="container">Component container.</param>
|
||||||
public CommandList(System.ComponentModel.IContainer container)
|
public CommandList(System.ComponentModel.IContainer container)
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
/// </summary>
|
/// </summary>
|
||||||
container.Add(this);
|
container.Add(this);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the CommandList class.
|
/// Initializes a new instance of the CommandList class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public CommandList()
|
public CommandList()
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
/// </summary>
|
/// </summary>
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required method for Designer support - do not modify
|
/// Required method for Designer support - do not modify
|
||||||
/// the contents of this method with the code editor.
|
/// the contents of this method with the code editor.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void InitializeComponent()
|
private void InitializeComponent()
|
||||||
{
|
{
|
||||||
components = new System.ComponentModel.Container();
|
components = new System.ComponentModel.Container();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper to enable all the commands in the command list.
|
/// Helper to enable all the commands in the command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Enable()
|
public void Enable()
|
||||||
{
|
{
|
||||||
foreach (Command command in commands)
|
foreach (Command command in commands)
|
||||||
command.Enabled = true;
|
command.Enabled = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper to disable all the commands in the command list.
|
/// Helper to disable all the commands in the command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Disable()
|
public void Disable()
|
||||||
{
|
{
|
||||||
foreach (Command command in commands)
|
foreach (Command command in commands)
|
||||||
command.Enabled = false;
|
command.Enabled = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -118,9 +118,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// consulted. The two things that affect the state here are 1) the set of commands that
|
/// consulted. The two things that affect the state here are 1) the set of commands that
|
||||||
/// are loaded (whether enabled or disabled), and 2) the shortcuts/advanced shortcuts of
|
/// are loaded (whether enabled or disabled), and 2) the shortcuts/advanced shortcuts of
|
||||||
/// those commands. If either changes then this flag needs to be set to true.
|
/// those commands. If either changes then this flag needs to be set to true.
|
||||||
///
|
///
|
||||||
/// The reason this is important is because otherwise the commandShortcutTable will be
|
/// The reason this is important is because otherwise the commandShortcutTable will be
|
||||||
/// fully rebuilt on every keypress in the editor (actually it currently happens twice),
|
/// fully rebuilt on every keypress in the editor (actually it currently happens twice),
|
||||||
/// which is enough to make typing feel sluggish.
|
/// which is enough to make typing feel sluggish.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool commandShortcutTableIsStale = true;
|
private bool commandShortcutTableIsStale = true;
|
||||||
|
@ -201,7 +201,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose(bool disposing)
|
protected override void Dispose(bool disposing)
|
||||||
|
@ -508,9 +508,9 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Instructs the command manager to ignore the shortcut until
|
/// Instructs the command manager to ignore the shortcut until
|
||||||
/// UnignoreShortcut is called.
|
/// UnignoreShortcut is called.
|
||||||
///
|
///
|
||||||
/// LIMITATION: You cannot currently ignore an AdvancedShortcut
|
/// LIMITATION: You cannot currently ignore an AdvancedShortcut
|
||||||
/// (i.e. one based on Keys instead of Shortcut).
|
/// (i.e. one based on Keys instead of Shortcut).
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -596,7 +596,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
if (command != null)
|
if (command != null)
|
||||||
return command;
|
return command;
|
||||||
|
|
||||||
|
|
||||||
Shortcut shortcut = KeyboardHelper.MapToShortcut(commandShortcut);
|
Shortcut shortcut = KeyboardHelper.MapToShortcut(commandShortcut);
|
||||||
if (shortcut != Shortcut.None && !ShouldIgnore(shortcut))
|
if (shortcut != Shortcut.None && !ShouldIgnore(shortcut))
|
||||||
return (Command)commandShortcutTable[shortcut];
|
return (Command)commandShortcutTable[shortcut];
|
||||||
|
|
|
@ -59,7 +59,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the CommandMenuBuilder class.
|
/// Initializes a new instance of the CommandMenuBuilder class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public CommandMenuBuilder(MenuType menuType)
|
public CommandMenuBuilder(MenuType menuType)
|
||||||
{
|
{
|
||||||
this.menuType = menuType;
|
this.menuType = menuType;
|
||||||
|
@ -146,7 +146,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Helper to parse a menu path entry describing a menu item in the form:
|
/// Helper to parse a menu path entry describing a menu item in the form:
|
||||||
/// [-]text@position
|
/// [-]text@position
|
||||||
///
|
///
|
||||||
/// '-' Optional. Specifies that a separator menu item should be inserted before the
|
/// '-' Optional. Specifies that a separator menu item should be inserted before the
|
||||||
/// menu item item.
|
/// menu item item.
|
||||||
/// text Menu item text (i.e. &File)
|
/// text Menu item text (i.e. &File)
|
||||||
|
|
|
@ -8,81 +8,81 @@ using System.Windows.Forms;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides "event bridging" between MenuItem objects and Command objects.
|
/// Provides "event bridging" between MenuItem objects and Command objects.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
internal class CommandMenuItemEventBridge
|
internal class CommandMenuItemEventBridge
|
||||||
{
|
{
|
||||||
#region Private Member Variables & Properties
|
#region Private Member Variables & Properties
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The Command for this Command to MenuItem event bridge.
|
/// The Command for this Command to MenuItem event bridge.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Command command;
|
private Command command;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The MenuItem for this Command to MenuItem event bridge.
|
/// The MenuItem for this Command to MenuItem event bridge.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private MenuItem menuItem;
|
private MenuItem menuItem;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Class Initialization & Termination
|
#region Class Initialization & Termination
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the CommandMenuItemEventBridge class.
|
/// Initializes a new instance of the CommandMenuItemEventBridge class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="command">The Command for this Command to MenuItem event bridge.</param>
|
/// <param name="command">The Command for this Command to MenuItem event bridge.</param>
|
||||||
/// <param name="menuItem">The MenuItem for this Command to MenuItem event bridge.</param>
|
/// <param name="menuItem">The MenuItem for this Command to MenuItem event bridge.</param>
|
||||||
public CommandMenuItemEventBridge(Command command, MenuItem menuItem)
|
public CommandMenuItemEventBridge(Command command, MenuItem menuItem)
|
||||||
{
|
{
|
||||||
// Set the command.
|
// Set the command.
|
||||||
this.command = command;
|
this.command = command;
|
||||||
|
|
||||||
// Set the menu item.
|
// Set the menu item.
|
||||||
this.menuItem = menuItem;
|
this.menuItem = menuItem;
|
||||||
|
|
||||||
// Add event handlers for the command events.
|
// Add event handlers for the command events.
|
||||||
command.EnabledChanged += new EventHandler(command_EnabledChanged);
|
command.EnabledChanged += new EventHandler(command_EnabledChanged);
|
||||||
|
|
||||||
// Add event handlers for the menu item events.
|
// Add event handlers for the menu item events.
|
||||||
menuItem.Click += new EventHandler(menuItem_Click);
|
menuItem.Click += new EventHandler(menuItem_Click);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Public Methods
|
#region Public Methods
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The enabled property of the command changed.
|
/// The enabled property of the command changed.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="sender">Sender of the event.</param>
|
/// <param name="sender">Sender of the event.</param>
|
||||||
/// <param name="e">Event parameters.</param>
|
/// <param name="e">Event parameters.</param>
|
||||||
public void Disconnect()
|
public void Disconnect()
|
||||||
{
|
{
|
||||||
// Add event handlers for command events.
|
// Add event handlers for command events.
|
||||||
command.EnabledChanged -= new EventHandler(command_EnabledChanged);
|
command.EnabledChanged -= new EventHandler(command_EnabledChanged);
|
||||||
|
|
||||||
// Bridge menu item events.
|
// Bridge menu item events.
|
||||||
menuItem.Click -= new EventHandler(menuItem_Click);
|
menuItem.Click -= new EventHandler(menuItem_Click);
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region Event Handlers
|
|
||||||
/// <summary>
|
|
||||||
/// The enabled property of the command changed.
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="sender">Sender of the event.</param>
|
|
||||||
/// <param name="e">Event parameters.</param>
|
|
||||||
private void command_EnabledChanged(object sender, System.EventArgs e)
|
|
||||||
{
|
|
||||||
menuItem.Enabled = command.Enabled;
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
#region Event Handlers
|
||||||
/// The menu item was clicked.
|
/// <summary>
|
||||||
/// </summary>
|
/// The enabled property of the command changed.
|
||||||
/// <param name="sender">Sender of the event.</param>
|
/// </summary>
|
||||||
/// <param name="e">Event parameters.</param>
|
/// <param name="sender">Sender of the event.</param>
|
||||||
private void menuItem_Click(object sender, System.EventArgs e)
|
/// <param name="e">Event parameters.</param>
|
||||||
{
|
private void command_EnabledChanged(object sender, System.EventArgs e)
|
||||||
command.PerformExecute();
|
{
|
||||||
}
|
menuItem.Enabled = command.Enabled;
|
||||||
#endregion
|
}
|
||||||
}
|
|
||||||
|
/// <summary>
|
||||||
|
/// The menu item was clicked.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="sender">Sender of the event.</param>
|
||||||
|
/// <param name="e">Event parameters.</param>
|
||||||
|
private void menuItem_Click(object sender, System.EventArgs e)
|
||||||
|
{
|
||||||
|
command.PerformExecute();
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -121,7 +121,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Menu text method. Returns the text to draw for the owner draw menu item.
|
/// Menu text method. Returns the text to draw for the owner draw menu item.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <returns>Text to draw.</returns>
|
/// <returns>Text to draw.</returns>
|
||||||
protected override string MenuText()
|
protected override string MenuText()
|
||||||
|
@ -223,6 +223,5 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
Visible = command.VisibleOnMainMenu;
|
Visible = command.VisibleOnMainMenu;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -50,20 +50,19 @@ namespace OpenLiveWriter.ApplicationFramework
|
||||||
return ResourceHelper.LoadBitmap(commandId + "_" + bitmapType);
|
return ResourceHelper.LoadBitmap(commandId + "_" + bitmapType);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Parses the structure of the main menu into a hashtable whose keys are
|
/// Parses the structure of the main menu into a hashtable whose keys are
|
||||||
/// command identifier strings and values are localized MainMenuPath strings.
|
/// command identifier strings and values are localized MainMenuPath strings.
|
||||||
///
|
///
|
||||||
/// The structure is stored as a string in PropertiesNonLoc.resx under
|
/// The structure is stored as a string in PropertiesNonLoc.resx under
|
||||||
/// the name "MainMenuStructure". Here's an example of the format:
|
/// the name "MainMenuStructure". Here's an example of the format:
|
||||||
///
|
///
|
||||||
/// (File@0 NewPost@0 NewPage@1 OpenPost@2 -SavePost@3 PostAsDraft@4 PostAsDraftAndEditOnline@5 -DeleteDraft@6 -PostAndPublish@7 -Close@8) (Edit@1 Undo@0 Redo@1 -Cut@2 Copy@3 Paste@4 PasteSpecial@5 -Clear@6 -SelectAll@7 Find@8) (View@2 ViewNormal@0 ViewWebLayout@1 ViewPreview@2 ViewCode@3 -UpdateWeblogStyle@4 -ShowMenu@5 ViewSidebar@6 PostProperties@7) (Insert@3 InsertLink@0 InsertPicture@1 -InsertTable2@2) (Format@4 Font@0 FontColor@1 (-Align@2 AlignLeft@0 AlignCenter@1 AlignRight@2) -Numbers@3 Bullets@4 Blockquote@5 -InsertExtendedEntry@6) (Table@5 InsertTable@0 -TableProperties@1 RowProperties@2 ColumnProperties@3 CellProperties@4 -InsertRowAbove@5 InsertRowBelow@6 MoveRowUp@7 MoveRowDown@8 -InsertColumnLeft@9 InsertColumnRight@10 MoveColumnLeft@11 MoveColumnRight@12 -DeleteTable@13 DeleteRow@14 DeleteColumn@15 -ClearCell@16) (Tools@6 CheckSpelling@0 -Preferences@1 -DiagnosticsConsole@2 ForceWatson@3 BlogClientOptions@4 ShowDisplayMessageTestForm@5) (Weblog@7 ViewWeblog@0 ViewWeblogAdmin@1 -ConfigureWeblog@2 -AddWeblog@9999) (Help@8 Help@0 -SendFeedback@1 -About@2)
|
/// (File@0 NewPost@0 NewPage@1 OpenPost@2 -SavePost@3 PostAsDraft@4 PostAsDraftAndEditOnline@5 -DeleteDraft@6 -PostAndPublish@7 -Close@8) (Edit@1 Undo@0 Redo@1 -Cut@2 Copy@3 Paste@4 PasteSpecial@5 -Clear@6 -SelectAll@7 Find@8) (View@2 ViewNormal@0 ViewWebLayout@1 ViewPreview@2 ViewCode@3 -UpdateWeblogStyle@4 -ShowMenu@5 ViewSidebar@6 PostProperties@7) (Insert@3 InsertLink@0 InsertPicture@1 -InsertTable2@2) (Format@4 Font@0 FontColor@1 (-Align@2 AlignLeft@0 AlignCenter@1 AlignRight@2) -Numbers@3 Bullets@4 Blockquote@5 -InsertExtendedEntry@6) (Table@5 InsertTable@0 -TableProperties@1 RowProperties@2 ColumnProperties@3 CellProperties@4 -InsertRowAbove@5 InsertRowBelow@6 MoveRowUp@7 MoveRowDown@8 -InsertColumnLeft@9 InsertColumnRight@10 MoveColumnLeft@11 MoveColumnRight@12 -DeleteTable@13 DeleteRow@14 DeleteColumn@15 -ClearCell@16) (Tools@6 CheckSpelling@0 -Preferences@1 -DiagnosticsConsole@2 ForceWatson@3 BlogClientOptions@4 ShowDisplayMessageTestForm@5) (Weblog@7 ViewWeblog@0 ViewWeblogAdmin@1 -ConfigureWeblog@2 -AddWeblog@9999) (Help@8 Help@0 -SendFeedback@1 -About@2)
|
||||||
///
|
///
|
||||||
/// Each menu or sub-menu is surrounded by parentheses. The first
|
/// Each menu or sub-menu is surrounded by parentheses. The first
|
||||||
/// item after the open-parenthesis is the title of that menu;
|
/// item after the open-parenthesis is the title of that menu;
|
||||||
/// the remaining items are the commands or (sub-menus) of the menu.
|
/// the remaining items are the commands or (sub-menus) of the menu.
|
||||||
///
|
///
|
||||||
/// The localized text for each menu/sub-menu title is in Properties.resx
|
/// The localized text for each menu/sub-menu title is in Properties.resx
|
||||||
/// under the name "MainMenu.[menu]", for example "MainMenu.File". The localized
|
/// under the name "MainMenu.[menu]", for example "MainMenu.File". The localized
|
||||||
/// text for each command is under the name "Command.[command].MenuText", for
|
/// text for each command is under the name "Command.[command].MenuText", for
|
||||||
|
|
|
@ -8,171 +8,171 @@ using System.Diagnostics;
|
||||||
|
|
||||||
namespace Project31.ApplicationFramework
|
namespace Project31.ApplicationFramework
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Provides command table management.
|
/// Provides command table management.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandTable : IEnumerable
|
public class CommandTable : IEnumerable
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The set of active commands, keyed by command identifier.
|
/// The set of active commands, keyed by command identifier.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Hashtable commandTable = new Hashtable();
|
private Hashtable commandTable = new Hashtable();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// The cross-referenced set of active shortcuts. Keyed by shortcut. This table is not
|
/// The cross-referenced set of active shortcuts. Keyed by shortcut. This table is not
|
||||||
/// maintained until it is used. A call to GetCommand with a shortcut will cause the table
|
/// maintained until it is used. A call to GetCommand with a shortcut will cause the table
|
||||||
/// to be loaded. Once loaded, it is maintained.
|
/// to be loaded. Once loaded, it is maintained.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Hashtable shortcutTable = null;
|
private Hashtable shortcutTable = null;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Initializes a new instance of the CommandTable class.
|
/// Initializes a new instance of the CommandTable class.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public CommandTable()
|
public CommandTable()
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clears the command table.
|
/// Clears the command table.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Clear()
|
public void Clear()
|
||||||
{
|
{
|
||||||
commandTable.Clear();
|
commandTable.Clear();
|
||||||
if (shortcutTable != null)
|
if (shortcutTable != null)
|
||||||
shortcutTable.Clear();
|
shortcutTable.Clear();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the specified command.
|
/// Adds the specified command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="command">The command to add.</param>
|
/// <param name="command">The command to add.</param>
|
||||||
public void AddCommand(Command command)
|
public void AddCommand(Command command)
|
||||||
{
|
{
|
||||||
// Ensure that this is not a duplicate. In debug mode, assert that this is true.
|
// Ensure that this is not a duplicate. In debug mode, assert that this is true.
|
||||||
// In release mode, fail silently (replacing the existing command) so as not to take
|
// In release mode, fail silently (replacing the existing command) so as not to take
|
||||||
// down a running system.
|
// down a running system.
|
||||||
Debug.Assert(!commandTable.Contains(command.Identifier), "Duplicate command encountered.", String.Format("Command {0} already exists.", command.Identifier));
|
Debug.Assert(!commandTable.Contains(command.Identifier), "Duplicate command encountered.", String.Format("Command {0} already exists.", command.Identifier));
|
||||||
|
|
||||||
// Add the command to the command table.
|
// Add the command to the command table.
|
||||||
commandTable[command.Identifier] = command;
|
commandTable[command.Identifier] = command;
|
||||||
|
|
||||||
// Add the shortcut for the command to the shortcut table.
|
// Add the shortcut for the command to the shortcut table.
|
||||||
AddShortcut(command);
|
AddShortcut(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes the specified command.
|
/// Removes the specified command.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="command">The command to remove.</param>
|
/// <param name="command">The command to remove.</param>
|
||||||
public void RemoveCommand(Command command)
|
public void RemoveCommand(Command command)
|
||||||
{
|
{
|
||||||
// Ensure that the command is in the table. In debug mode, assert that this is true.
|
// Ensure that the command is in the table. In debug mode, assert that this is true.
|
||||||
// In release mode, fail silently (replacing the existing command) so as not to take
|
// In release mode, fail silently (replacing the existing command) so as not to take
|
||||||
// down a running system.
|
// down a running system.
|
||||||
Debug.Assert(commandTable.Contains(command.Identifier), "Command not found.", String.Format("Command {0} does not exist.", command.Identifier));
|
Debug.Assert(commandTable.Contains(command.Identifier), "Command not found.", String.Format("Command {0} does not exist.", command.Identifier));
|
||||||
|
|
||||||
// Remove the command from the command table.
|
// Remove the command from the command table.
|
||||||
commandTable.Remove(command.Identifier);
|
commandTable.Remove(command.Identifier);
|
||||||
|
|
||||||
// Remove the shortcut for the command from the shortcut table.
|
// Remove the shortcut for the command from the shortcut table.
|
||||||
RemoveShortcut(command);
|
RemoveShortcut(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the specified command list.
|
/// Adds the specified command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="commandList">The CommandList to add.</param>
|
/// <param name="commandList">The CommandList to add.</param>
|
||||||
public void AddCommandList(CommandList commandList)
|
public void AddCommandList(CommandList commandList)
|
||||||
{
|
{
|
||||||
// Add all the commands to the command table.
|
// Add all the commands to the command table.
|
||||||
foreach (Command command in commandList.Commands)
|
foreach (Command command in commandList.Commands)
|
||||||
AddCommand(command);
|
AddCommand(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Removes the specified command list.
|
/// Removes the specified command list.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="commandProvider">The CommandList to remove.</param>
|
/// <param name="commandProvider">The CommandList to remove.</param>
|
||||||
public void RemoveCommandList(CommandList commandList)
|
public void RemoveCommandList(CommandList commandList)
|
||||||
{
|
{
|
||||||
// Remove all the commands from the command table.
|
// Remove all the commands from the command table.
|
||||||
foreach (Command command in commandList.Commands)
|
foreach (Command command in commandList.Commands)
|
||||||
RemoveCommand(command);
|
RemoveCommand(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the command with the specified command identifier.
|
/// Gets the command with the specified command identifier.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="commandIdentifier">The command identifier of the command to get.</param>
|
/// <param name="commandIdentifier">The command identifier of the command to get.</param>
|
||||||
/// <returns>The command, or null if a command with the specified command identifier cannot be found.</returns>
|
/// <returns>The command, or null if a command with the specified command identifier cannot be found.</returns>
|
||||||
public Command GetCommand(string commandIdentifier)
|
public Command GetCommand(string commandIdentifier)
|
||||||
{
|
{
|
||||||
return (Command)commandTable[commandIdentifier];
|
return (Command)commandTable[commandIdentifier];
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Gets the command with the specified shortcut.
|
/// Gets the command with the specified shortcut.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="shortcut">The shortcut of the command to get.</param>
|
/// <param name="shortcut">The shortcut of the command to get.</param>
|
||||||
/// <returns>The command, or null if a command with the specified shortcut cannot be found.</returns>
|
/// <returns>The command, or null if a command with the specified shortcut cannot be found.</returns>
|
||||||
public Command GetCommand(Shortcut shortcut)
|
public Command GetCommand(Shortcut shortcut)
|
||||||
{
|
{
|
||||||
// If the shortcut table has not been built, build it.
|
// If the shortcut table has not been built, build it.
|
||||||
if (shortcutTable == null)
|
if (shortcutTable == null)
|
||||||
{
|
{
|
||||||
// Instantiate the shortcut table.
|
// Instantiate the shortcut table.
|
||||||
shortcutTable = new Hashtable();
|
shortcutTable = new Hashtable();
|
||||||
|
|
||||||
// Load all the commands into the shortcut table.
|
// Load all the commands into the shortcut table.
|
||||||
foreach (Command command in this)
|
foreach (Command command in this)
|
||||||
AddShortcut(command);
|
AddShortcut(command);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Return the command with the specified shortcut.
|
|
||||||
return (Command)shortcutTable[shortcut];
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
// Return the command with the specified shortcut.
|
||||||
/// Returns an enumerator that can iterate through a collection.
|
return (Command)shortcutTable[shortcut];
|
||||||
/// </summary>
|
}
|
||||||
/// <returns>An IEnumerator that can be used to iterate through the collection.</returns>
|
|
||||||
public IEnumerator GetEnumerator()
|
|
||||||
{
|
|
||||||
return commandTable.Values.GetEnumerator();
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the specified command to the shortcut table.
|
/// Returns an enumerator that can iterate through a collection.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="command">The command to add to the shortcut table.</param>
|
/// <returns>An IEnumerator that can be used to iterate through the collection.</returns>
|
||||||
private void AddShortcut(Command command)
|
public IEnumerator GetEnumerator()
|
||||||
{
|
{
|
||||||
// If we have a shortcut table, and the command has a shortcut, add it.
|
return commandTable.Values.GetEnumerator();
|
||||||
if (shortcutTable != null && command.Shortcut != Shortcut.None)
|
}
|
||||||
{
|
|
||||||
// Ensure that this is not a duplicate. In debug mode, assert that this is true.
|
|
||||||
// In release mode, fail silently (replacing the existing command) so as not to take
|
|
||||||
// down a running system.
|
|
||||||
Debug.Assert(!shortcutTable.Contains(command.Shortcut), "Duplicate shortcut encountered.", String.Format("Shortcut {0} already exists.", command.Shortcut.ToString()));
|
|
||||||
shortcutTable[command.Shortcut] = command;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Adds the specified command to the shortcut table.
|
/// Adds the specified command to the shortcut table.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="command">The command to add to the shortcut table.</param>
|
/// <param name="command">The command to add to the shortcut table.</param>
|
||||||
private void RemoveShortcut(Command command)
|
private void AddShortcut(Command command)
|
||||||
{
|
{
|
||||||
// If the command has a shortcut, remove it from the shortcut table.
|
// If we have a shortcut table, and the command has a shortcut, add it.
|
||||||
if (shortcutTable != null && command.Shortcut != Shortcut.None)
|
if (shortcutTable != null && command.Shortcut != Shortcut.None)
|
||||||
{
|
{
|
||||||
// Ensure that the shortcut is in the table. In debug mode, assert that this is true.
|
// Ensure that this is not a duplicate. In debug mode, assert that this is true.
|
||||||
// In release mode, fail silently (replacing the existing command) so as not to take
|
// In release mode, fail silently (replacing the existing command) so as not to take
|
||||||
// down a running system.
|
// down a running system.
|
||||||
Debug.Assert(shortcutTable.Contains(command.Shortcut), "Shortcut not found.", String.Format("Shortcut {0} does not exists.", command.Shortcut.ToString()));
|
Debug.Assert(!shortcutTable.Contains(command.Shortcut), "Duplicate shortcut encountered.", String.Format("Shortcut {0} already exists.", command.Shortcut.ToString()));
|
||||||
shortcutTable.Remove(command.Shortcut);
|
shortcutTable[command.Shortcut] = command;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
/// <summary>
|
||||||
|
/// Adds the specified command to the shortcut table.
|
||||||
|
/// </summary>
|
||||||
|
/// <param name="command">The command to add to the shortcut table.</param>
|
||||||
|
private void RemoveShortcut(Command command)
|
||||||
|
{
|
||||||
|
// If the command has a shortcut, remove it from the shortcut table.
|
||||||
|
if (shortcutTable != null && command.Shortcut != Shortcut.None)
|
||||||
|
{
|
||||||
|
// Ensure that the shortcut is in the table. In debug mode, assert that this is true.
|
||||||
|
// In release mode, fail silently (replacing the existing command) so as not to take
|
||||||
|
// down a running system.
|
||||||
|
Debug.Assert(shortcutTable.Contains(command.Shortcut), "Shortcut not found.", String.Format("Shortcut {0} does not exists.", command.Shortcut.ToString()));
|
||||||
|
shortcutTable.Remove(command.Shortcut);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,48 +9,47 @@ using OpenLiveWriter.ApplicationFramework;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandAbout : Command
|
public class CommandAbout : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandAbout(System.ComponentModel.IContainer container)
|
public CommandAbout(System.ComponentModel.IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandAbout()
|
public CommandAbout()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#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()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandAbout
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "-&About {0}...@401";
|
|
||||||
this.Identifier = "WindowsLive.ApplicationFramework.Commands.About";
|
|
||||||
this.MainMenuPath = "&Help@500/-&About {0}...@401";
|
|
||||||
this.MenuText = "&About {0}...";
|
|
||||||
this.Text = "About";
|
|
||||||
|
|
||||||
}
|
#region Component Designer generated code
|
||||||
#endregion
|
/// <summary>
|
||||||
}
|
/// Required method for Designer support - do not modify
|
||||||
|
/// the contents of this method with the code editor.
|
||||||
|
/// </summary>
|
||||||
|
private void InitializeComponent()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandAbout
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "-&About {0}...@401";
|
||||||
|
this.Identifier = "WindowsLive.ApplicationFramework.Commands.About";
|
||||||
|
this.MainMenuPath = "&Help@500/-&About {0}...@401";
|
||||||
|
this.MenuText = "&About {0}...";
|
||||||
|
this.Text = "About";
|
||||||
|
|
||||||
|
}
|
||||||
|
#endregion
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,54 +5,52 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandAlignCenter : Command
|
public class CommandAlignCenter : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandAlignCenter(IContainer container)
|
public CommandAlignCenter(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandAlignCenter()
|
public CommandAlignCenter()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandAlignCenter
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.AlignCenter";
|
||||||
|
this.MainMenuPath = "F&ormat@5/-&Align@300/&Center@101";
|
||||||
|
this.Text = "Center Align";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandAlignCenter
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.AlignCenter";
|
|
||||||
this.MainMenuPath = "F&ormat@5/-&Align@300/&Center@101";
|
|
||||||
this.Text = "Center Align";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,54 +5,52 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandAlignLeft : Command
|
public class CommandAlignLeft : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandAlignLeft(IContainer container)
|
public CommandAlignLeft(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandAlignLeft()
|
public CommandAlignLeft()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandAlignLeft
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.AlignLeft";
|
||||||
|
this.MainMenuPath = "F&ormat@5/-&Align@300/&Left@100";
|
||||||
|
this.Text = "Left Align";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandAlignLeft
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.AlignLeft";
|
|
||||||
this.MainMenuPath = "F&ormat@5/-&Align@300/&Left@100";
|
|
||||||
this.Text = "Left Align";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,54 +5,52 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandAlignRight : Command
|
public class CommandAlignRight : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandAlignRight(IContainer container)
|
public CommandAlignRight(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandAlignRight()
|
public CommandAlignRight()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandAlignRight
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.AlignRight";
|
||||||
|
this.MainMenuPath = "F&ormat@5/-&Align@300/&Right@102";
|
||||||
|
this.Text = "Right Align";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandAlignRight
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.AlignRight";
|
|
||||||
this.MainMenuPath = "F&ormat@5/-&Align@300/&Right@102";
|
|
||||||
this.Text = "Right Align";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,54 +5,52 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandBlockquote : Command
|
public class CommandBlockquote : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandBlockquote(IContainer container)
|
public CommandBlockquote(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandBlockquote()
|
public CommandBlockquote()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Component Designer generated code
|
||||||
|
/// <summary>
|
||||||
#region Component Designer generated code
|
/// Required method for Designer support - do not modify
|
||||||
/// <summary>
|
/// the contents of this method with the code editor.
|
||||||
/// Required method for Designer support - do not modify
|
/// </summary>
|
||||||
/// the contents of this method with the code editor.
|
private void InitializeComponent()
|
||||||
/// </summary>
|
{
|
||||||
private void InitializeComponent()
|
//
|
||||||
{
|
// CommandBlockquote
|
||||||
//
|
//
|
||||||
// CommandBlockquote
|
this.ContextMenuPath = "";
|
||||||
//
|
this.Identifier = "MindShare.ApplicationCore.Commands.Blockquote";
|
||||||
this.ContextMenuPath = "";
|
this.MainMenuPath = "F&ormat@5/Block"e@499";
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Blockquote";
|
this.Text = "Blockquote";
|
||||||
this.MainMenuPath = "F&ormat@5/Block"e@499";
|
this.SuppressMenuBitmap = true;
|
||||||
this.Text = "Blockquote";
|
}
|
||||||
this.SuppressMenuBitmap = true;
|
#endregion
|
||||||
}
|
}
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,55 +5,53 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandBold : Command
|
public class CommandBold : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandBold(IContainer container)
|
public CommandBold(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandBold()
|
public CommandBold()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandBold
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Bold";
|
||||||
|
this.MainMenuPath = "";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.CtrlB;
|
||||||
|
this.Text = "Bold";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandBold
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Bold";
|
|
||||||
this.MainMenuPath = "";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.CtrlB;
|
|
||||||
this.Text = "Bold";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,54 +5,52 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandBullets : Command
|
public class CommandBullets : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandBullets(IContainer container)
|
public CommandBullets(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandBullets()
|
public CommandBullets()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#region Component Designer generated code
|
||||||
|
/// <summary>
|
||||||
#region Component Designer generated code
|
/// Required method for Designer support - do not modify
|
||||||
/// <summary>
|
/// the contents of this method with the code editor.
|
||||||
/// Required method for Designer support - do not modify
|
/// </summary>
|
||||||
/// the contents of this method with the code editor.
|
private void InitializeComponent()
|
||||||
/// </summary>
|
{
|
||||||
private void InitializeComponent()
|
//
|
||||||
{
|
// CommandBullets
|
||||||
//
|
//
|
||||||
// CommandBullets
|
this.ContextMenuPath = "";
|
||||||
//
|
this.Identifier = "MindShare.ApplicationCore.Commands.Bullets";
|
||||||
this.ContextMenuPath = "";
|
this.MainMenuPath = "F&ormat@5/&Bullets@402";
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Bullets";
|
this.Text = "Bullets";
|
||||||
this.MainMenuPath = "F&ormat@5/&Bullets@402";
|
this.SuppressMenuBitmap = true;
|
||||||
this.Text = "Bullets";
|
}
|
||||||
this.SuppressMenuBitmap = true;
|
#endregion
|
||||||
}
|
}
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,57 +5,55 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandCheckSpelling : Command
|
public class CommandCheckSpelling : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandCheckSpelling(IContainer container)
|
public CommandCheckSpelling(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandCheckSpelling()
|
public CommandCheckSpelling()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandCheckSpelling
|
||||||
|
//
|
||||||
|
this.CommandBarButtonText = "";
|
||||||
|
this.ContextMenuPath = "";
|
||||||
|
this.MenuText = "Check &Spelling";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.CheckSpelling";
|
||||||
|
this.MainMenuPath = "&Tools@7/Check &Spelling...@100";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.F7;
|
||||||
|
this.Text = "Check Spelling";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandCheckSpelling
|
|
||||||
//
|
|
||||||
this.CommandBarButtonText = "";
|
|
||||||
this.ContextMenuPath = "";
|
|
||||||
this.MenuText = "Check &Spelling";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.CheckSpelling";
|
|
||||||
this.MainMenuPath = "&Tools@7/Check &Spelling...@100";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.F7;
|
|
||||||
this.Text = "Check Spelling";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,56 +5,54 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandClear.
|
/// Summary description for CommandClear.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandClear : Command
|
public class CommandClear : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandClear(IContainer container)
|
public CommandClear(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandClear()
|
public CommandClear()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandClear
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "-Clea&r@151";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Clear";
|
||||||
|
this.MainMenuPath = "&Edit@2/-Clea&r@151";
|
||||||
|
this.MenuText = "-Clea&r";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.Del;
|
||||||
|
this.Text = "Clear";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandClear
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "-Clea&r@151";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Clear";
|
|
||||||
this.MainMenuPath = "&Edit@2/-Clea&r@151";
|
|
||||||
this.MenuText = "-Clea&r";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.Del;
|
|
||||||
this.Text = "Clear";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,57 +5,55 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandMinimize.
|
/// Summary description for CommandMinimize.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandClose : Command
|
public class CommandClose : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandClose(IContainer container)
|
public CommandClose(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Add any constructor code after InitializeComponent call
|
// TODO: Add any constructor code after InitializeComponent call
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandClose()
|
public CommandClose()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Add any constructor code after InitializeComponent call
|
// TODO: Add any constructor code after InitializeComponent call
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandClose
|
||||||
|
//
|
||||||
|
this.AccessibleDescription = "";
|
||||||
|
this.ContextMenuPath = "-Close@20";
|
||||||
|
this.Identifier = "OpenLiveWriter.ApplicationFramework.CommandClose";
|
||||||
|
this.MainMenuPath = "&File@0/-&Close@500";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.AltF4;
|
||||||
|
this.Text = "Close";
|
||||||
|
this.VisibleOnMainMenu = true;
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandClose
|
|
||||||
//
|
|
||||||
this.AccessibleDescription = "";
|
|
||||||
this.ContextMenuPath = "-Close@20";
|
|
||||||
this.Identifier = "OpenLiveWriter.ApplicationFramework.CommandClose";
|
|
||||||
this.MainMenuPath = "&File@0/-&Close@500";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.AltF4;
|
|
||||||
this.Text = "Close";
|
|
||||||
this.VisibleOnMainMenu = true;
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,53 +8,51 @@ using System.Diagnostics;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandColorize.
|
/// Summary description for CommandColorize.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandColorize : Command
|
public class CommandColorize : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandColorize(System.ComponentModel.IContainer container)
|
public CommandColorize(System.ComponentModel.IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Add any constructor code after InitializeComponent call
|
// TODO: Add any constructor code after InitializeComponent call
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandColorize()
|
public CommandColorize()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Add any constructor code after InitializeComponent call
|
// TODO: Add any constructor code after InitializeComponent call
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandColorize
|
||||||
|
//
|
||||||
|
this.Description = "Change the color scheme of Open Live Writer";
|
||||||
|
this.Identifier = "OpenLiveWriter.Commands.Colorize";
|
||||||
|
this.Text = "Colorize";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandColorize
|
|
||||||
//
|
|
||||||
this.Description = "Change the color scheme of Open Live Writer";
|
|
||||||
this.Identifier = "OpenLiveWriter.Commands.Colorize";
|
|
||||||
this.Text = "Colorize";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,56 +5,54 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandCopy : Command
|
public class CommandCopy : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandCopy(IContainer container)
|
public CommandCopy(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandCopy()
|
public CommandCopy()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandCopy
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "&Copy@102";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Copy";
|
||||||
|
this.MainMenuPath = "&Edit@2/&Copy@102";
|
||||||
|
this.MenuText = "&Copy";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
|
||||||
|
this.Text = "Copy";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandCopy
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "&Copy@102";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Copy";
|
|
||||||
this.MainMenuPath = "&Edit@2/&Copy@102";
|
|
||||||
this.MenuText = "&Copy";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.CtrlC;
|
|
||||||
this.Text = "Copy";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,56 +5,54 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandCut : Command
|
public class CommandCut : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandCut(IContainer container)
|
public CommandCut(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandCut()
|
public CommandCut()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandCut
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "Cu&t@101";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Cut";
|
||||||
|
this.MainMenuPath = "&Edit@2/Cu&t@101";
|
||||||
|
this.MenuText = "Cu&t";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
|
||||||
|
this.Text = "Cut";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandCut
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "Cu&t@101";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Cut";
|
|
||||||
this.MainMenuPath = "&Edit@2/Cu&t@101";
|
|
||||||
this.MenuText = "Cu&t";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.CtrlX;
|
|
||||||
this.Text = "Cut";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,56 +5,54 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandDelete : Command
|
public class CommandDelete : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandDelete(IContainer container)
|
public CommandDelete(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandDelete()
|
public CommandDelete()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandDelete
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "-&Delete-@151";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Delete";
|
||||||
|
this.MainMenuPath = "&Edit@2/-&Delete-@151";
|
||||||
|
this.MenuText = "&Delete";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.Del;
|
||||||
|
this.Text = "Delete";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandDelete
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "-&Delete-@151";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Delete";
|
|
||||||
this.MainMenuPath = "&Edit@2/-&Delete-@151";
|
|
||||||
this.MenuText = "&Delete";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.Del;
|
|
||||||
this.Text = "Delete";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,56 +5,54 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandClear.
|
/// Summary description for CommandClear.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandFind : Command
|
public class CommandFind : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandFind(IContainer container)
|
public CommandFind(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandFind()
|
public CommandFind()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandFind
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "Fi&nd Text...@601";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Find";
|
||||||
|
this.MainMenuPath = "&Edit@2/Fi&nd Text...@601";
|
||||||
|
this.MenuText = "Fi&nd Text...";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
|
||||||
|
this.Text = "Find";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandFind
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "Fi&nd Text...@601";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Find";
|
|
||||||
this.MainMenuPath = "&Edit@2/Fi&nd Text...@601";
|
|
||||||
this.MenuText = "Fi&nd Text...";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.CtrlF;
|
|
||||||
this.Text = "Find";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,74 +5,73 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandFocusNextPane.
|
/// Summary description for CommandFocusNextPane.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandFocusNextPane : Command
|
public class CommandFocusNextPane : Command
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
|
||||||
public CommandFocusNextPane(IContainer container)
|
public CommandFocusNextPane(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
container.Add(this);
|
container.Add(this);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandFocusNextPane()
|
public CommandFocusNextPane()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandFocusNextPane
|
||||||
|
//
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.FocusNextPane";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.F6;
|
||||||
|
this.Text = "Next Pane";
|
||||||
|
this.VisibleOnCommandBar = false;
|
||||||
|
this.VisibleOnContextMenu = false;
|
||||||
|
|
||||||
#region Component Designer generated code
|
}
|
||||||
/// <summary>
|
#endregion
|
||||||
/// Required method for Designer support - do not modify
|
}
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandFocusNextPane
|
|
||||||
//
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.FocusNextPane";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.F6;
|
|
||||||
this.Text = "Next Pane";
|
|
||||||
this.VisibleOnCommandBar = false;
|
|
||||||
this.VisibleOnContextMenu = false;
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,75 +5,74 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandFocusPreviousPane.
|
/// Summary description for CommandFocusPreviousPane.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandFocusPreviousPane : Command
|
public class CommandFocusPreviousPane : Command
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Required designer variable.
|
/// Required designer variable.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Container components = null;
|
private Container components = null;
|
||||||
|
|
||||||
public CommandFocusPreviousPane(IContainer container)
|
public CommandFocusPreviousPane(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
container.Add(this);
|
container.Add(this);
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandFocusPreviousPane()
|
public CommandFocusPreviousPane()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Clean up any resources being used.
|
/// Clean up any resources being used.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected override void Dispose( bool disposing )
|
protected override void Dispose( bool disposing )
|
||||||
{
|
{
|
||||||
if( disposing )
|
if( disposing )
|
||||||
{
|
{
|
||||||
if(components != null)
|
if(components != null)
|
||||||
{
|
{
|
||||||
components.Dispose();
|
components.Dispose();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
base.Dispose( disposing );
|
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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandFocusPreviousPane
|
||||||
|
//
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.FocusPreviousPane";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.ShiftF6;
|
||||||
|
this.Text = "Previous Pane";
|
||||||
|
this.VisibleOnCommandBar = false;
|
||||||
|
this.VisibleOnContextMenu = false;
|
||||||
|
this.VisibleOnMainMenu = false;
|
||||||
|
|
||||||
#region Component Designer generated code
|
}
|
||||||
/// <summary>
|
#endregion
|
||||||
/// Required method for Designer support - do not modify
|
}
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandFocusPreviousPane
|
|
||||||
//
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.FocusPreviousPane";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.ShiftF6;
|
|
||||||
this.Text = "Previous Pane";
|
|
||||||
this.VisibleOnCommandBar = false;
|
|
||||||
this.VisibleOnContextMenu = false;
|
|
||||||
this.VisibleOnMainMenu = false;
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,55 +5,53 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandFont : Command
|
public class CommandFont : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandFont(IContainer container)
|
public CommandFont(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandFont()
|
public CommandFont()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandFont
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "-&Font...@120";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Font";
|
||||||
|
this.MainMenuPath = "F&ormat@5/&Font...@100";
|
||||||
|
this.MenuText = "-&Font...";
|
||||||
|
this.Text = "Font";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandFont
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "-&Font...@120";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Font";
|
|
||||||
this.MainMenuPath = "F&ormat@5/&Font...@100";
|
|
||||||
this.MenuText = "-&Font...";
|
|
||||||
this.Text = "Font";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,54 +5,52 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandFontColor : Command
|
public class CommandFontColor : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandFontColor(IContainer container)
|
public CommandFontColor(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandFontColor()
|
public CommandFontColor()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandFontColor
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.FontColor";
|
||||||
|
this.MainMenuPath = "F&ormat@5/Font &Color...@101";
|
||||||
|
this.Text = "Font Color";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandFontColor
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.FontColor";
|
|
||||||
this.MainMenuPath = "F&ormat@5/Font &Color...@101";
|
|
||||||
this.Text = "Font Color";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,54 +9,52 @@ using OpenLiveWriter.ApplicationFramework;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
public class CommandHelp : Command
|
public class CommandHelp : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandHelp(System.ComponentModel.IContainer container)
|
public CommandHelp(System.ComponentModel.IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Add any constructor code after InitializeComponent call
|
// TODO: Add any constructor code after InitializeComponent call
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandHelp()
|
public CommandHelp()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
// TODO: Add any constructor code after InitializeComponent call
|
// TODO: Add any constructor code after InitializeComponent call
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandHelp
|
||||||
|
//
|
||||||
|
this.CommandBarButtonText = "";
|
||||||
|
this.ContextMenuPath = "{0} &Help-@101";
|
||||||
|
this.Identifier = "OpenLiveWriter.Commands.Help";
|
||||||
|
this.MainMenuPath = "&Help@500/&{0} Help-@101";
|
||||||
|
this.MenuText = "{0} &Help";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.F1;
|
||||||
|
this.Text = "Help";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandHelp
|
|
||||||
//
|
|
||||||
this.CommandBarButtonText = "";
|
|
||||||
this.ContextMenuPath = "{0} &Help-@101";
|
|
||||||
this.Identifier = "OpenLiveWriter.Commands.Help";
|
|
||||||
this.MainMenuPath = "&Help@500/&{0} Help-@101";
|
|
||||||
this.MenuText = "{0} &Help";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.F1;
|
|
||||||
this.Text = "Help";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,55 +5,53 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandIndent : Command
|
public class CommandIndent : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandIndent(IContainer container)
|
public CommandIndent(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandIndent()
|
public CommandIndent()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
|
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
//
|
//
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandIndent
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "-&Increase Indent@110";
|
||||||
|
this.Identifier = "MindShare.ApplicationCore.Commands.Indent";
|
||||||
|
this.MainMenuPath = "F&ormat@5/&Indent@500/&Increase@100";
|
||||||
|
this.MenuText = "&Increase Indent";
|
||||||
|
this.Text = "Increase Indent";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandIndent
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "-&Increase Indent@110";
|
|
||||||
this.Identifier = "MindShare.ApplicationCore.Commands.Indent";
|
|
||||||
this.MainMenuPath = "F&ormat@5/&Indent@500/&Increase@100";
|
|
||||||
this.MenuText = "&Increase Indent";
|
|
||||||
this.Text = "Increase Indent";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -5,48 +5,46 @@ using System.ComponentModel;
|
||||||
|
|
||||||
namespace OpenLiveWriter.ApplicationFramework.Commands
|
namespace OpenLiveWriter.ApplicationFramework.Commands
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Summary description for CommandCopy.
|
/// Summary description for CommandCopy.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class CommandInsertLink : Command
|
public class CommandInsertLink : Command
|
||||||
{
|
{
|
||||||
|
|
||||||
public CommandInsertLink(IContainer container)
|
public CommandInsertLink(IContainer container)
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
public CommandInsertLink()
|
public CommandInsertLink()
|
||||||
{
|
{
|
||||||
///
|
///
|
||||||
/// Required for Windows.Forms Class Composition Designer support
|
/// Required for Windows.Forms Class Composition Designer support
|
||||||
///
|
///
|
||||||
InitializeComponent();
|
InitializeComponent();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#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()
|
||||||
|
{
|
||||||
|
//
|
||||||
|
// CommandInsertLink
|
||||||
|
//
|
||||||
|
this.ContextMenuPath = "-&Hyperlink...@130";
|
||||||
|
this.Identifier = "OpenLiveWriter.ApplicationFramework.Commands.InsertLink";
|
||||||
|
this.MainMenuPath = "&Insert@4/&Hyperlink...@100";
|
||||||
|
this.MenuText = "&Hyperlink...";
|
||||||
|
this.Shortcut = System.Windows.Forms.Shortcut.CtrlK;
|
||||||
|
this.Text = "Insert Hyperlink";
|
||||||
|
|
||||||
|
}
|
||||||
#region Component Designer generated code
|
#endregion
|
||||||
/// <summary>
|
}
|
||||||
/// Required method for Designer support - do not modify
|
|
||||||
/// the contents of this method with the code editor.
|
|
||||||
/// </summary>
|
|
||||||
private void InitializeComponent()
|
|
||||||
{
|
|
||||||
//
|
|
||||||
// CommandInsertLink
|
|
||||||
//
|
|
||||||
this.ContextMenuPath = "-&Hyperlink...@130";
|
|
||||||
this.Identifier = "OpenLiveWriter.ApplicationFramework.Commands.InsertLink";
|
|
||||||
this.MainMenuPath = "&Insert@4/&Hyperlink...@100";
|
|
||||||
this.MenuText = "&Hyperlink...";
|
|
||||||
this.Shortcut = System.Windows.Forms.Shortcut.CtrlK;
|
|
||||||
this.Text = "Insert Hyperlink";
|
|
||||||
|
|
||||||
}
|
|
||||||
#endregion
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue