Merge branch 'master' into google-blogger

This commit is contained in:
Will Duff 2015-12-12 02:23:30 -08:00
commit bd34aecf68
1168 changed files with 33115 additions and 37395 deletions

3
.gitignore vendored
View File

@ -198,3 +198,6 @@ FakesAssemblies/
# Visual Studio 6 workspace options file
*.opt
#Visual Studio specific files
*.VC.opendb

View File

@ -42,7 +42,7 @@ Open Live Writer proudly uses the [MIT License](license.txt).
### History
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
many popular releases of Windows Live Writer.

View File

@ -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.
using System;
@ -82,7 +82,6 @@ namespace BlogRunner
XmlDocument providers = new XmlDocument();
providers.Load(providersPath);
foreach (XmlElement provider in providers.SelectNodes("/providers/provider"))
{
string providerId = provider.SelectSingleNode("id/text()").Value;

View File

@ -1,13 +1,13 @@
namespace BlogRunnerGui
namespace BlogRunnerGui
{
partial class FileInput
{
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
/// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
@ -22,8 +22,8 @@
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
@ -34,9 +34,9 @@
this.openFileDialog1 = new System.Windows.Forms.OpenFileDialog();
this.saveFileDialog1 = new System.Windows.Forms.SaveFileDialog();
this.SuspendLayout();
//
//
// label1
//
//
this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.label1.AutoSize = true;
@ -45,9 +45,9 @@
this.label1.Size = new System.Drawing.Size(35, 13);
this.label1.TabIndex = 0;
this.label1.Text = "label1";
//
//
// textBox1
//
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(0, 16);
@ -55,9 +55,9 @@
this.textBox1.Size = new System.Drawing.Size(211, 20);
this.textBox1.TabIndex = 1;
this.textBox1.TextChanged += new System.EventHandler(this.textBox1_TextChanged);
//
//
// button1
//
//
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.Name = "button1";
@ -66,13 +66,13 @@
this.button1.Text = "Browse...";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
//
// openFileDialog1
//
//
this.openFileDialog1.FileName = "openFileDialog1";
//
//
// FileInput
//
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.Controls.Add(this.button1);

View File

@ -1,4 +1,4 @@
namespace BlogRunnerGui
namespace BlogRunnerGui
{
partial class Form1
{
@ -42,9 +42,9 @@
this.fileBlogProviders = new BlogRunnerGui.FileInput();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
//
// groupBox1
//
//
this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.groupBox1.Controls.Add(this.btnSelectNone);
@ -56,9 +56,9 @@
this.groupBox1.TabIndex = 3;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "Providers";
//
//
// btnSelectNone
//
//
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.Name = "btnSelectNone";
@ -67,9 +67,9 @@
this.btnSelectNone.Text = "Select &None";
this.btnSelectNone.UseVisualStyleBackColor = true;
this.btnSelectNone.Click += new System.EventHandler(this.btnSelectNone_Click);
//
//
// btnSelectAll
//
//
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.Name = "btnSelectAll";
@ -78,9 +78,9 @@
this.btnSelectAll.Text = "Select &All";
this.btnSelectAll.UseVisualStyleBackColor = true;
this.btnSelectAll.Click += new System.EventHandler(this.btnSelectAll_Click);
//
//
// listProviders
//
//
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.Right)));
@ -91,18 +91,18 @@
this.listProviders.Size = new System.Drawing.Size(427, 124);
this.listProviders.TabIndex = 0;
this.listProviders.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.listProviders_ItemCheck);
//
//
// label1
//
//
this.label1.AutoSize = true;
this.label1.Location = new System.Drawing.Point(9, 326);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(77, 13);
this.label1.TabIndex = 4;
this.label1.Text = "Command Line";
//
//
// textBox1
//
//
this.textBox1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.textBox1.Location = new System.Drawing.Point(12, 342);
@ -112,9 +112,9 @@
this.textBox1.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;
this.textBox1.Size = new System.Drawing.Size(439, 67);
this.textBox1.TabIndex = 5;
//
//
// btnRun
//
//
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.Name = "btnRun";
@ -123,9 +123,9 @@
this.btnRun.Text = "&Run";
this.btnRun.UseVisualStyleBackColor = true;
this.btnRun.Click += new System.EventHandler(this.btnRun_Click);
//
//
// btnClose
//
//
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.Location = new System.Drawing.Point(376, 441);
@ -135,9 +135,9 @@
this.btnClose.Text = "Close";
this.btnClose.UseVisualStyleBackColor = true;
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
//
// chkVerbose
//
//
this.chkVerbose.AutoSize = true;
this.chkVerbose.Location = new System.Drawing.Point(12, 445);
this.chkVerbose.Name = "chkVerbose";
@ -146,9 +146,9 @@
this.chkVerbose.Text = "Enable &verbose logging";
this.chkVerbose.UseVisualStyleBackColor = true;
this.chkVerbose.CheckedChanged += new System.EventHandler(this.chkVerbose_CheckedChanged);
//
//
// fileOutput
//
//
this.fileOutput.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.fileOutput.DialogStyle = BlogRunnerGui.DialogStyle.Save;
@ -159,9 +159,9 @@
this.fileOutput.TabIndex = 2;
this.fileOutput.Text = "&Output file path (optional)";
this.fileOutput.PathChanged += new System.EventHandler(this.fileOutput_PathChanged);
//
//
// fileConfig
//
//
this.fileConfig.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.fileConfig.DialogStyle = BlogRunnerGui.DialogStyle.Open;
@ -172,9 +172,9 @@
this.fileConfig.TabIndex = 1;
this.fileConfig.Text = "Path to &Config.xml";
this.fileConfig.PathChanged += new System.EventHandler(this.fileConfig_PathChanged);
//
//
// fileBlogProviders
//
//
this.fileBlogProviders.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
| System.Windows.Forms.AnchorStyles.Right)));
this.fileBlogProviders.DialogStyle = BlogRunnerGui.DialogStyle.Open;
@ -185,9 +185,9 @@
this.fileBlogProviders.TabIndex = 0;
this.fileBlogProviders.Text = "Path to Blog&Providers.xml";
this.fileBlogProviders.PathChanged += new System.EventHandler(this.fileBlogProviders_PathChanged);
//
//
// Form1
//
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.CancelButton = this.btnClose;

View File

@ -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.
using System;
@ -192,7 +192,6 @@ namespace BlogRunnerGui
const string SETTING_OUTPUT = "output";
const string SETTING_PROVIDER = "provider";
class BlogProviderItem
{
public readonly string Id;

View File

@ -17,7 +17,6 @@ namespace OpenLiveWriter.Test
private readonly ContentEditorFactory factory;
private readonly IContentEditor editor;
public CanvasForm()
{
InitializeComponent();
@ -117,7 +116,7 @@ namespace OpenLiveWriter.Test
public void WriteEvent(string eventName)
{
}
public void OnKeyboardLanguageChanged()
@ -130,11 +129,11 @@ namespace OpenLiveWriter.Test
}
public void OnGotFocus()
{
{
}
public void OnLostFocus()
{
{
}
public void OnIsPhotoMailChanged(bool fNewIsPhotoMailValue)
@ -212,7 +211,7 @@ namespace OpenLiveWriter.Test
public void DragLeave()
{
}
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);
}
[DllImport("KERNEL32.DLL", CharSet=CharSet.Auto, EntryPoint="LoadLibrary")]
public static extern IntPtr LoadLibrary(String lpFileName);
}

View File

@ -1,4 +1,4 @@
namespace OpenLiveWriter.Test
namespace OpenLiveWriter.Test
{
partial class CanvasForm
{
@ -34,9 +34,9 @@
this.buttonSource = new System.Windows.Forms.Button();
this.buttonPlain = new System.Windows.Forms.Button();
this.SuspendLayout();
//
//
// panelCanvas
//
//
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.Right)));
@ -44,9 +44,9 @@
this.panelCanvas.Name = "panelCanvas";
this.panelCanvas.Size = new System.Drawing.Size(439, 392);
this.panelCanvas.TabIndex = 0;
//
//
// buttonEdit
//
//
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.Name = "buttonEdit";
@ -55,9 +55,9 @@
this.buttonEdit.Text = "Edit";
this.buttonEdit.UseVisualStyleBackColor = true;
this.buttonEdit.Click += new System.EventHandler(this.buttonEdit_Click);
//
//
// buttonPreview
//
//
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.Name = "buttonPreview";
@ -66,9 +66,9 @@
this.buttonPreview.Text = "Preview";
this.buttonPreview.UseVisualStyleBackColor = true;
this.buttonPreview.Click += new System.EventHandler(this.buttonPreview_Click);
//
//
// buttonSource
//
//
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.Name = "buttonSource";
@ -77,9 +77,9 @@
this.buttonSource.Text = "Source";
this.buttonSource.UseVisualStyleBackColor = true;
this.buttonSource.Click += new System.EventHandler(this.buttonSource_Click);
//
//
// buttonPlain
//
//
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.Name = "buttonPlain";
@ -88,9 +88,9 @@
this.buttonPlain.Text = "Plain";
this.buttonPlain.UseVisualStyleBackColor = true;
this.buttonPlain.Click += new System.EventHandler(this.buttonPlain_Click);
//
//
// CanvasForm
//
//
this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);
this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
this.ClientSize = new System.Drawing.Size(566, 390);

View File

@ -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.
using System;
@ -15,7 +15,7 @@ namespace OpenLiveWriter.Test
/// <summary>
/// The main entry point for the application.
/// </summary>
[STAThread]
[STAThread]
static void Main()
{

View File

@ -122,7 +122,6 @@ namespace LocUtil
return 1;
}
if (!ParseCommandXml(transformedCommandFiles, pairsLoc, pairsNonLoc, typeof(Command), "/Commands/Command", "Command.{0}.{1}", out commandIds))
return 1;
HashSet dialogIds;
@ -144,7 +143,7 @@ namespace LocUtil
Console.WriteLine("Generating CommandId enum file " + cenum);
// commandId: command name
// ribbonValues: command name --> resource id
// ribbonValues: command name --> resource id
commandIds.AddAll(ribbonIds);
if (!GenerateEnum(commandIds, "CommandId", cenum, null, ribbonValues))
return 1;
@ -258,7 +257,6 @@ namespace LocUtil
// HACK: hard-code wizard height
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"));
@ -298,16 +296,16 @@ namespace LocUtil
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)
{
const string TEMPLATE = @"namespace OpenLiveWriter.Localization
{{
public enum {0}
{{
None,
{1}
}}
public enum {0}
{{
None,
{1}
}}
}}
";
@ -369,9 +367,9 @@ namespace LocUtil
else if (values == null)
{
const string DESC_TEMPLATE = @"/// <summary>
/// {0}
/// </summary>
{1}";
/// {0}
/// </summary>
{1}";
ArrayList descs = new ArrayList();
foreach (string command in commandList.ToArray())
{
@ -501,7 +499,6 @@ namespace LocUtil
propTable.Add(prop.Name, prop);
}
ids = new HashSet();
foreach (string relativeInputFile in inputFiles)
@ -531,7 +528,6 @@ namespace LocUtil
string name = attr.Name;
if (name == "DebugOnly" || name == "Identifier")
continue;

View File

@ -12,7 +12,7 @@ namespace OpenLiveWriter.Api
{
/// <summary>
/// <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
/// not enabled then a preview image which links to an external web-page is included
/// on the page.
@ -22,7 +22,7 @@ namespace OpenLiveWriter.Api
/// 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
/// feed item within a feed reader).
/// </para>
/// </para>
/// </summary>
public class AdaptiveHtmlObject
{
@ -72,8 +72,8 @@ namespace OpenLiveWriter.Api
/// <summary>
/// <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
/// size different from its actual size (the image will be scaled by the browser to
/// <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
/// the specified size.</para>
/// </summary>
public Size PreviewImageSize
@ -132,7 +132,7 @@ namespace OpenLiveWriter.Api
onLoadScript = HtmlServices.HtmlEncode(onLoadScript);
string onLoadAttribute = String.Format(CultureInfo.InvariantCulture, "onload=\"{0}\"", onLoadScript);
// generate the upgradable image html
// generate the upgradable image html
StringBuilder downgradableHtml = new StringBuilder();
downgradableHtml.AppendFormat(CultureInfo.InvariantCulture, "<div id=\"{0}\" style=\"margin: 0px; padding: 0px; display: inline;\">", containerId);
downgradableHtml.Append(GenerateHtml(onLoadAttribute));
@ -184,4 +184,3 @@ namespace OpenLiveWriter.Api
}
}

View File

@ -9,20 +9,20 @@ namespace OpenLiveWriter.Api
{
/// <summary>
/// <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>
/// <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
/// 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
/// 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
/// the respective methods).</para>
/// </summary>
public class ContentSource : WriterPlugin
{
/// <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.
/// </summary>
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
@ -52,8 +52,8 @@ namespace OpenLiveWriter.Api
/// <summary>
/// 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
/// into the editor. Plugin classes which override this method must also be declared with
/// 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 UrlContentSourceAttribute.
/// </summary>
/// <param name="url">Url to create content from.</param>

View File

@ -10,10 +10,10 @@ namespace OpenLiveWriter.Api
/// of a post when the post is being previewed or published.
/// </summary>
/// <remarks>
/// There is a single instance of a given FooterPlugin created
/// for each Open Live Writer process. The implementation of FooterPlugin
/// objects must therefore be stateless (the context required to carry out the
/// responsibilities of the various methods are passed as parameters to the
/// There is a single instance of a given FooterPlugin created
/// for each Open Live Writer process. The implementation of FooterPlugin
/// objects must therefore be stateless (the context required to carry out the
/// responsibilities of the various methods are passed as parameters to the
/// respective methods).
/// </remarks>
public abstract class HeaderFooterSource : WriterPlugin
@ -35,13 +35,13 @@ namespace OpenLiveWriter.Api
};
/// <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
/// work.
/// </summary>
/// <remarks>
/// Since new posts don't have permalinks until after they are
/// posted to the server, returning true may cause Writer to
/// Since new posts don't have permalinks until after they are
/// posted to the server, returning true may cause Writer to
/// perform an extra publish operation. Therefore, only return
/// true if it is absolutely necessary for your plugin to function
/// correctly.
@ -53,7 +53,7 @@ namespace OpenLiveWriter.Api
/// the blog post when the editor is switched to Preview mode.
/// </summary>
/// <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>
/// property on the <c>ISmartContent</c> parameter.
/// </remarks>
@ -71,7 +71,7 @@ namespace OpenLiveWriter.Api
/// the blog post during publishing.
/// </summary>
/// <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>
/// property on the <c>ISmartContent</c> parameter.
/// </remarks>

View File

@ -9,7 +9,7 @@ using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.Api
{
/// <summary>
/// Provides the ability to capture HTML content into a Bitmap.
/// Provides the ability to capture HTML content into a Bitmap.
/// </summary>
public class HtmlScreenCapture
{
@ -53,7 +53,7 @@ namespace OpenLiveWriter.Api
public event HtmlDocumentAvailableHandler HtmlDocumentAvailable;
/// <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
/// whether the page is fully loaded and ready for capture.
/// </summary>
@ -98,7 +98,6 @@ namespace OpenLiveWriter.Api
private HtmlScreenCaptureCore _htmlScreenCapture;
}
/// <summary>
/// Provides data for the HtmlScreenCaptureAvailable event.
/// </summary>
@ -123,8 +122,8 @@ namespace OpenLiveWriter.Api
private Bitmap _bitmap;
/// <summary>
/// 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
/// 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
/// 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.
/// </summary>
@ -159,10 +158,10 @@ namespace OpenLiveWriter.Api
}
private object _document;
/// <summary>
/// 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
/// documents that load in stages, such as documents that use embedded JavaScript to
/// <summary>
/// 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
/// documents that load in stages, such as documents that use embedded JavaScript to
/// fetch and render additional content after the main document has loaded.
/// </summary>
public bool DocumentReady
@ -184,5 +183,4 @@ namespace OpenLiveWriter.Api
/// </summary>
public delegate void HtmlDocumentAvailableHandler(object sender, HtmlDocumentAvailableEventArgs e);
}

View File

@ -55,7 +55,7 @@ namespace OpenLiveWriter.Api
/// <param name="operation">An operation that transforms text.</param>
/// <returns>The transformed HTML.</returns>
/// <example>This example replaces the word "foo" with the word "bar".
///
///
/// <code>string newHtml = TransformHtmlText(html, true,
/// (text) => { Regex.Replace(text, @"\bfoo\b", "bar") });</code>
/// </example>

View File

@ -6,8 +6,8 @@ using System.Windows.Forms;
namespace OpenLiveWriter.Api
{
public interface ILiveClipboardOptionsEditor
{
void EditLiveClipboardOptions(IWin32Window dialogOwner) ;
}
public interface ILiveClipboardOptionsEditor
{
void EditLiveClipboardOptions(IWin32Window dialogOwner) ;
}
}

View File

@ -14,7 +14,7 @@ namespace OpenLiveWriter.Api
{
/// <summary>
/// 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.
/// </summary>
string Id { get; }

View File

@ -68,11 +68,11 @@ namespace OpenLiveWriter.Api
string HomepageUrl { get; }
/// <summary>
/// Gets the detected background color of the publishing
/// Gets the detected background color of the publishing
/// context, or null if none is available.
/// </summary>
/// <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.
/// </remarks>
Color? BodyBackgroundColor { get; }
@ -83,7 +83,5 @@ namespace OpenLiveWriter.Api
IPostInfo PostInfo { get; }
}
}

View File

@ -38,7 +38,6 @@ namespace OpenLiveWriter.Api
}
}
/// <summary>
/// SmartContent object alignment.
/// </summary>
@ -119,7 +118,7 @@ namespace OpenLiveWriter.Api
/// <summary>
/// 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.
/// </summary>
public interface ISupportingFiles
@ -195,6 +194,5 @@ namespace OpenLiveWriter.Api
string[] Filenames { get; }
}
}

View File

@ -32,7 +32,6 @@ namespace OpenLiveWriter.Api
void UpdateStatusBar(Image image, string statusText);
}
/// <summary>
/// Event handler that is fired when a content is resized.
/// </summary>

View File

@ -3,11 +3,10 @@
using System;
namespace OpenLiveWriter.Api
{
/// <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.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]

View File

@ -7,7 +7,7 @@ using System.Reflection;
namespace OpenLiveWriter.Api
{
/// <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
/// Clipboard data.
/// </summary>
@ -18,7 +18,7 @@ namespace OpenLiveWriter.Api
/// Initialize a new instance of a LiveClipboardContentSourceAttribute
/// </summary>
/// <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 &lt;lc:format&gt; tag)</param>
public LiveClipboardContentSourceAttribute(string name, string contentType)
{
@ -46,7 +46,7 @@ namespace OpenLiveWriter.Api
private string _name = String.Empty;
/// <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 &lt;lc:format&gt; tag)
/// </summary>
public string ContentType
@ -68,7 +68,7 @@ namespace OpenLiveWriter.Api
/// <summary>
/// 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
/// then the image specified in the WriterPlugin attribute is used.
/// then the image specified in the WriterPlugin attribute is used.
/// </summary>
public string ImagePath
{
@ -107,7 +107,7 @@ namespace OpenLiveWriter.Api
private string _description = String.Empty;
/// <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 &lt;lc:format&gt; tag). Optional (required only
/// for formats which require additional disambiguration of the contentType
/// attribute).

View File

@ -11,12 +11,12 @@ using OpenLiveWriter.Controls;
namespace OpenLiveWriter.Api
{
/// <summary>
/// Provides diagnostic services (logging and error display) to plugins.
/// Provides diagnostic services (logging and error display) to plugins.
/// </summary>
public sealed class PluginDiagnostics
{
/// <summary>
/// Notify the user that an error has occurred.
/// Notify the user that an error has occurred.
/// </summary>
/// <param name="title">Error title (used as the error caption).</param>
/// <param name="description">Error description (displayed within a scrolling
@ -31,7 +31,7 @@ namespace OpenLiveWriter.Api
}
/// <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
/// the unexpected exception in the Open Live Writer log file.
/// </summary>

View File

@ -12,7 +12,6 @@ using System.Runtime.InteropServices;
using OpenLiveWriter.Interop.Windows;
using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.Api
{
/// <summary>
@ -28,7 +27,7 @@ namespace OpenLiveWriter.Api
/// <summary>
/// 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.
/// </summary>
CacheIfAvailable,
@ -46,7 +45,6 @@ namespace OpenLiveWriter.Api
Reload
}
/// <summary>
/// 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
@ -148,7 +146,7 @@ namespace OpenLiveWriter.Api
/// Retreive the resource (with no timeout).
/// </summary>
/// <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>
public Stream GetResponse()
{
@ -156,11 +154,11 @@ namespace OpenLiveWriter.Api
}
/// <summary>
/// Retrieve the resource with the specified timeout (in ms).
/// Retrieve the resource with the specified timeout (in ms).
/// </summary>
/// <param name="timeoutMs">Timeout (in ms) for the request.</param>
/// <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>
public Stream GetResponse(int timeoutMs)
{

View File

@ -11,17 +11,17 @@ namespace OpenLiveWriter.Api
/// uploaded to the server either as a published post or as a draft.
/// </summary>
/// <remarks>
/// There is a single instance of a given PublishNotificationHook created
/// for each Open Live Writer process. The implementation of PublishNotificationHook
/// objects must therefore be stateless (the context required to carry out the
/// responsibilities of the various methods are passed as parameters to the
/// There is a single instance of a given PublishNotificationHook created
/// for each Open Live Writer process. The implementation of PublishNotificationHook
/// objects must therefore be stateless (the context required to carry out the
/// responsibilities of the various methods are passed as parameters to the
/// respective methods).
/// </remarks>
public abstract class PublishNotificationHook : WriterPlugin
{
/// <summary>
/// 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.
/// </summary>
/// <param name="dialogOwner">Owner for any dialog boxes shown.</param>

View File

@ -12,7 +12,7 @@ namespace OpenLiveWriter.Api
/// <summary>
/// <para>Sidebar editor for SmartContent</para>
/// <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>
/// </summary>
public class SmartContentEditor : UserControl
@ -46,7 +46,6 @@ namespace OpenLiveWriter.Api
}
private ISmartContent _selectedContent;
/// <summary>
/// Notification that the currently selected SmartContent object
/// has changed. The editor should adapt its state to the current
@ -81,12 +80,11 @@ namespace OpenLiveWriter.Api
ContentEdited(this, EventArgs.Empty);
}
private void InitializeComponent()
{
//
//
// SmartContentEditor
//
//
this.Name = "SmartContentEditor";
this.Size = new System.Drawing.Size(200, 500);

View File

@ -10,20 +10,20 @@ namespace OpenLiveWriter.Api
{
/// <summary>
/// <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>
/// <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
/// 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
/// 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
/// the respective methods).</para>
/// </summary>
public abstract class SmartContentSource : WriterPlugin
{
/// <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.
/// </summary>
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
@ -53,8 +53,8 @@ namespace OpenLiveWriter.Api
/// <summary>
/// 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
/// into the editor. Plugin classes which override this method must also be declared with the
/// 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
/// UrlContentSourceAttribute.
/// </summary>
/// <param name="url">Url to create content from.</param>
@ -66,10 +66,9 @@ namespace OpenLiveWriter.Api
throw new NotImplementedException("SmartContentSource.CreateContentFromUrl");
}
/// <summary>
/// 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.
/// </summary>
/// <param name="content">SmartContent object to generate HTML for.</param>
@ -119,7 +118,7 @@ namespace OpenLiveWriter.Api
}
/// <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
/// should update the ISmartContent object as appropriate based on the new size.
/// The editor will first call this method and then call the GenerateEditorHtml
@ -132,7 +131,7 @@ namespace OpenLiveWriter.Api
}
/// <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
/// new size. The editor will first call this method and then call the GenerateEditorHtml
/// method to update the display based on the new size.
@ -171,7 +170,7 @@ namespace OpenLiveWriter.Api
PreserveAspectRatio = 2,
/// <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
/// 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.
@ -185,7 +184,7 @@ namespace OpenLiveWriter.Api
public class ResizeOptions
{
/// <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)
/// 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
@ -200,9 +199,9 @@ namespace OpenLiveWriter.Api
private string _resizableElementId = null;
/// <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
/// 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>
public double AspectRatio
{

View File

@ -19,7 +19,7 @@ namespace OpenLiveWriter.Api
public delegate TResult Task<TParam, TResult>(TParam arg);
/// <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.
/// </summary>
public delegate void Task();
@ -32,12 +32,12 @@ namespace OpenLiveWriter.Api
/// <summary>
/// Executes a potentially long-running task on a background thread
/// while keeping the UI thread running responsively. This method
/// does not return until the task has completed executing. Any
/// exception thrown by the task will be re-thrown on the calling
/// does not return until the task has completed executing. Any
/// exception thrown by the task will be re-thrown on the calling
/// thread.
/// </summary>
/// <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
/// message loop, the task is simply executed on the current thread.
/// </remarks>
@ -54,15 +54,15 @@ namespace OpenLiveWriter.Api
/// <summary>
/// <para>Executes a potentially long-running task on a background thread
/// while keeping the UI thread running responsively. This method
/// does not return until the task has completed executing. Any
/// exception thrown by the task will be re-thrown on the calling
/// thread.</para>
/// does not return until the task has completed executing. Any
/// exception thrown by the task will be re-thrown on the calling
/// thread.</para>
/// <para>This overload takes an argument and returns a result.
/// The argument is passed to the task, and the value returned
/// by the task is returned by this method.</para>
/// </summary>
/// <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
/// message loop, the task is simply executed on the current thread.
/// </remarks>
@ -79,7 +79,6 @@ namespace OpenLiveWriter.Api
{
TResult result = default(TResult);
if (Application.MessageLoop)
{
Exception e = null;

View File

@ -8,10 +8,10 @@ using System.Text.RegularExpressions;
namespace OpenLiveWriter.Api
{
/// <summary>
/// Attribute applied to ContentSource and SmartContentSource classes which override the
/// 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"
/// button or a URL that is pasted or dragged into the editor.
/// Attribute applied to ContentSource and SmartContentSource classes which override the
/// 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"
/// 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.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
@ -49,7 +49,7 @@ namespace OpenLiveWriter.Api
private string _urlPattern;
/// <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.
/// Defaults to false.
/// </summary>
@ -95,7 +95,6 @@ namespace OpenLiveWriter.Api
}
private string _progressMessage = String.Empty;
private bool ValidateRegex(string pattern)
{
try

View File

@ -9,7 +9,7 @@ using Microsoft.Win32;
namespace OpenLiveWriter.Api
{
/// <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.
/// </summary>
public sealed class WriterApplication
@ -63,7 +63,6 @@ namespace OpenLiveWriter.Api
_application.ShowOptions(optionsPage);
}
[ComImport]
[Guid("366FF6CE-CA04-433D-8522-741094458839")]
private class OpenLiveWriterApplicationClass { } // implements IOpenLiveWriterApplication

View File

@ -13,7 +13,7 @@ namespace OpenLiveWriter.Api
{
/// <summary>
/// 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.
/// </summary>
/// <param name="pluginOptions">Plugin options.</param>
@ -23,7 +23,7 @@ namespace OpenLiveWriter.Api
}
/// <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).
/// </summary>
/// <param name="dialogOwner">Owner for the options dialog.</param>

View File

@ -7,7 +7,7 @@ using System.Globalization;
namespace OpenLiveWriter.Api
{
/// <summary>
/// Attribute which should be applied to all classes derived from WriterPlugin.
/// Attribute which should be applied to all classes derived from WriterPlugin.
/// </summary>
[AttributeUsage(AttributeTargets.Class)]
public class WriterPluginAttribute : Attribute
@ -38,7 +38,6 @@ namespace OpenLiveWriter.Api
ImagePath = imagePath;
}
/// <summary>
/// Unique ID for the plugin (should be a GUID without leading and trailing braces)
/// </summary>
@ -82,13 +81,13 @@ namespace OpenLiveWriter.Api
/// <summary>
/// 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.
/// </summary>
/// <remarks>
/// 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
/// 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.
/// </remarks>
public string ImagePath
@ -160,7 +159,6 @@ namespace OpenLiveWriter.Api
}
private bool _hasEditableOptions = false;
private bool ValidateGuid(string id)
{
try

View File

@ -10,129 +10,129 @@ using System.Windows.Forms;
namespace Project31.ApplicationFramework
{
/// <summary>
/// Application control.
/// </summary>
public class ApplicationControl : System.Windows.Forms.UserControl, ICommandManager, ISelectionManager
{
/// <summary>
/// The set of active commands, keyed by command identifier.
/// </summary>
private Hashtable commandTable = new Hashtable();
/// <summary>
/// Application control.
/// </summary>
public class ApplicationControl : System.Windows.Forms.UserControl, ICommandManager, ISelectionManager
{
/// <summary>
/// The set of active commands, keyed by command identifier.
/// </summary>
private Hashtable commandTable = new Hashtable();
/// <summary>
/// The set of selected objects.
/// </summary>
private ArrayList selectionList = new ArrayList();
/// <summary>
/// The set of selected objects.
/// </summary>
private ArrayList selectionList = new ArrayList();
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Occurs when the selection changes.
/// </summary>
public event EventHandler SelectionChanged;
/// <summary>
/// Occurs when the selection changes.
/// </summary>
public event EventHandler SelectionChanged;
/// <summary>
/// Initializes a new instance of the ApplicationControl class.
/// </summary>
public ApplicationControl()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the ApplicationControl class.
/// </summary>
public ApplicationControl()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
#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()
{
components = new System.ComponentModel.Container();
}
#endregion
/// <interface>ICommandManager</interface>
/// <summary>
/// Activates the specified command list.
/// </summary>
/// <param name="commandList">The CommandList to activate.</param>
public void ActivateCommandList(CommandList commandList)
{
// Add all the commands from this command provider to the command table.
foreach (Command command in commandList.Commands)
commandTable.Add(command.Identifier, command);
}
/// <interface>ICommandManager</interface>
/// <summary>
/// Activates the specified command list.
/// </summary>
/// <param name="commandList">The CommandList to activate.</param>
public void ActivateCommandList(CommandList commandList)
{
// Add all the commands from this command provider to the command table.
foreach (Command command in commandList.Commands)
commandTable.Add(command.Identifier, command);
}
/// <interface>ICommandManager</interface>
/// <summary>
/// Deactivates the specified command list.
/// </summary>
/// <param name="commandList">The CommandList to deactivate.</param>
public void DeactivateCommandList(CommandList commandList)
{
// Remove all the commands from this command provider from the command table.
foreach (Command command in commandList.Commands)
commandTable.Remove(command.Identifier);
}
/// <interface>ICommandManager</interface>
/// <summary>
/// Deactivates the specified command list.
/// </summary>
/// <param name="commandList">The CommandList to deactivate.</param>
public void DeactivateCommandList(CommandList commandList)
{
// Remove all the commands from this command provider from the command table.
foreach (Command command in commandList.Commands)
commandTable.Remove(command.Identifier);
}
/// <interface>ISelectionManager</interface>
/// <summary>
/// Clears the current selection.
/// </summary>
public void ClearSelection()
{
// Clear the selection list.
selectionList.Clear();
/// <interface>ISelectionManager</interface>
/// <summary>
/// Clears the current selection.
/// </summary>
public void ClearSelection()
{
// Clear the selection list.
selectionList.Clear();
// Raise the SelectionChanged event.
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);
}
// Raise the SelectionChanged event.
OnSelectionChanged(EventArgs.Empty);
}
/// <interface>ISelectionManager</interface>
/// <summary>
/// Sets the selection.
/// </summary>
/// <param name="selectableObject">The ISelectableObject value to select.</param>
public void SetSelection(ISelectableObject selectableObject)
{
}
/// <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>
/// Sets the selection.
/// </summary>
/// <param name="selectableObject">The array of ISelectableObject values to select.</param>
public void SetSelection(ISelectableObject[] selectableObjects)
{
}
}
/// <interface>ISelectionManager</interface>
/// <summary>
/// Sets the selection.
/// </summary>
/// <param name="selectableObject">The ISelectableObject value to select.</param>
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)
{
}
}
}

View File

@ -85,9 +85,9 @@ namespace OpenLiveWriter.ApplicationFramework
private void InitializeComponent()
{
this.SuspendLayout();
//
//
// ApplicationForm
//
//
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
this.ClientSize = new System.Drawing.Size(442, 422);
this.Name = "ApplicationForm";
@ -111,7 +111,6 @@ namespace OpenLiveWriter.ApplicationFramework
SizeChanged -= new EventHandler(ApplicationForm_SizeChanged);
}
/// <summary>
/// Disposed a menu and all of its submenu items.
/// </summary>
@ -252,7 +251,6 @@ namespace OpenLiveWriter.ApplicationFramework
private IntPtr _hMainMenuBitmap = IntPtr.Zero;
private IntPtr _hMainMenuBrushBitmap = IntPtr.Zero;
void IMainMenuBackgroundPainter.PaintBackground(Graphics g, Rectangle menuItemBounds)
{
if (ColorizedResources.Instance.CustomMainMenuPainting)
@ -276,7 +274,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
try
{
GraphicsState graphicsState = g.Save();
@ -342,8 +339,8 @@ namespace OpenLiveWriter.ApplicationFramework
/*
Rectangle destinationRect = new Rectangle(
frameWidth,
frameHeight + SystemInformation.CaptionHeight + SystemInformation.MenuHeight - 1,
frameWidth,
frameHeight + SystemInformation.CaptionHeight + SystemInformation.MenuHeight - 1,
ClientSize.Width, 1) ;
*/
// takes into account narrow window sizes where the main menu items start stacking vertically

View File

@ -5,16 +5,16 @@ using System;
namespace Project31.ApplicationFramework
{
/// <summary>
/// ApplicationGlobalContext for for the ApplicationFramework.
/// </summary>
public class ApplicationGlobalContext
{
/// <summary>
/// Initializes a new instance of the ApplicationGlobalContext class.
/// </summary>
private ApplicationGlobalContext()
{
}
}
/// <summary>
/// ApplicationGlobalContext for for the ApplicationFramework.
/// </summary>
public class ApplicationGlobalContext
{
/// <summary>
/// Initializes a new instance of the ApplicationGlobalContext class.
/// </summary>
private ApplicationGlobalContext()
{
}
}
}

View File

@ -15,7 +15,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
public class ApplicationStyle : Component
{
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
@ -471,7 +471,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// The primary workspace command bar text color.
/// </summary>
@ -1242,7 +1241,7 @@ namespace OpenLiveWriter.ApplicationFramework
InitializeComponent();
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -1259,8 +1258,8 @@ namespace OpenLiveWriter.ApplicationFramework
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()

View File

@ -10,85 +10,85 @@ using System.Windows.Forms;
namespace Project31.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleBlue : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public class ApplicationStyleBlue : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public ApplicationStyleBlue()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
public ApplicationStyleBlue()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ApplicationStyleBlue
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.InactiveSelectionColor = System.Drawing.SystemColors.Control;
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.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(223)), ((System.Byte)(247)));
#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()
{
//
// ApplicationStyleBlue
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.InactiveSelectionColor = System.Drawing.SystemColors.Control;
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.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(183)), ((System.Byte)(203)), ((System.Byte)(245)));
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(223)), ((System.Byte)(247)));
}
#endregion
}
}
#endregion
}
}

View File

@ -10,81 +10,81 @@ using System.Windows.Forms;
namespace Project31.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleBronze : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public class ApplicationStyleBronze : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public ApplicationStyleBronze()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
public ApplicationStyleBronze()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ApplicationStyleBronze
//
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.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
this.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.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.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
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.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.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(238)), ((System.Byte)(238)), ((System.Byte)(222)));
#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()
{
//
// ApplicationStyleBronze
//
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.ActiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(181)), ((System.Byte)(193)), ((System.Byte)(196)));
this.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.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.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.LinkApplicationFont = new System.Drawing.Font("Tahoma", 8.25F, System.Drawing.FontStyle.Underline);
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.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.PrimaryWorkspaceCommandBarBottomColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
this.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(222)), ((System.Byte)(220)), ((System.Byte)(191)));
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(238)), ((System.Byte)(238)), ((System.Byte)(222)));
}
#endregion
}
}
#endregion
}
}

View File

@ -10,85 +10,85 @@ using System.Windows.Forms;
namespace Project31.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleGreen : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public class ApplicationStyleGreen : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public ApplicationStyleGreen()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
public ApplicationStyleGreen()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ApplicationStyleGreen
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.InactiveSelectionColor = System.Drawing.SystemColors.Control;
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.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
#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()
{
//
// ApplicationStyleGreen
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.InactiveSelectionColor = System.Drawing.SystemColors.Control;
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.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(189)), ((System.Byte)(189)), ((System.Byte)(189)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
this.SmallApplicationFont = new System.Drawing.Font("Tahoma", 6.75F);
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
}
#endregion
}
}
#endregion
}
}

View File

@ -7,107 +7,107 @@ using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleLavender : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public class ApplicationStyleLavender : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
/// <summary>
/// Initializes a new insance of the ApplicationStyleSienna class.
/// </summary>
public ApplicationStyleLavender()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Initializes a new insance of the ApplicationStyleSienna class.
/// </summary>
public ApplicationStyleLavender()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ApplicationStyleLavender
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Lavender";
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.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.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(238)));
#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()
{
//
// ApplicationStyleLavender
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Lavender";
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.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.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(186)), ((System.Byte)(188)), ((System.Byte)(226)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(238)));
}
#endregion
}
#endregion
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Lavender.png");
}
}
}
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Lavender.png");
}
}
}
}

View File

@ -6,64 +6,60 @@ using OpenLiveWriter.ApplicationFramework.Preferences;
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
/// <summary>
/// Provides application management service.
/// </summary>
public sealed class ApplicationStyleManager
{
/// <summary>
/// Provides application management service.
/// </summary>
public sealed class ApplicationStyleManager
{
/// <summary>
/// Gets or sets the ApplicationStyle object
/// </summary>
public static ApplicationStyle ApplicationStyle
{
get
{
return ApplicationManager.ApplicationStyle;
}
}
/// <summary>
/// Gets or sets the ApplicationStyle object
/// </summary>
public static ApplicationStyle ApplicationStyle
{
get
{
return ApplicationManager.ApplicationStyle;
}
}
#region ApplicatonStyle access/monitoring
#region ApplicatonStyle access/monitoring
public static event EventHandler ApplicationStyleChanged
{
add
{
ApplicationStylePreferences.PreferencesChanged += value ;
}
remove
{
ApplicationStylePreferences.PreferencesChanged -= value ;
}
}
public static event EventHandler ApplicationStyleChanged
{
add
{
ApplicationStylePreferences.PreferencesChanged += value ;
}
remove
{
ApplicationStylePreferences.PreferencesChanged -= value ;
}
}
public static void CheckForApplicationStyleChanges()
{
ApplicationStylePreferences.CheckForChanges() ;
}
public static void CheckForApplicationStyleChanges()
{
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 ;
/// 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
#endregion
}
}
}

View File

@ -10,144 +10,144 @@ using OpenLiveWriter.ApplicationFramework.Preferences ;
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
/// <summary>
/// Appearance preferences.
/// </summary>
public class ApplicationStylePreferences : OpenLiveWriter.ApplicationFramework.Preferences.Preferences
{
#region Static & Constant Declarations
/// <summary>
/// Appearance preferences.
/// </summary>
public class ApplicationStylePreferences : OpenLiveWriter.ApplicationFramework.Preferences.Preferences
{
#region Static & Constant Declarations
/// <summary>
/// The AppearancePreferences sub-key.
/// </summary>
private const string PREFERENCES_SUB_KEY = "Appearance";
/// <summary>
/// The AppearancePreferences sub-key.
/// </summary>
private const string PREFERENCES_SUB_KEY = "Appearance";
/// <summary>
/// The ApplicationStyleTypeName key.
/// </summary>
private const string APPLICATION_STYLE_TYPE_NAME = "ApplicationStyleTypeName";
/// <summary>
/// The ApplicationStyleTypeName key.
/// </summary>
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>
/// The ApplicationStyle Type.
/// </summary>
private Type applicationStyleType;
#endregion
#region Class Initialization & Termination
/// <summary>
/// The ApplicationStyle Type.
/// </summary>
private Type applicationStyleType;
/// <summary>
/// Initializes a new instance of the AppearancePreferences class.
/// </summary>
public ApplicationStylePreferences(bool monitorChanges) : base(PREFERENCES_SUB_KEY, monitorChanges)
{
}
#endregion
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>
/// Gets or sets the ApplicationStyle Type.
/// </summary>
public Type ApplicationStyleType
{
get
{
return typeof(ApplicationStyleSkyBlue);
#endregion Class Initialization & Termination
// 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();
}
}
}
#region Public Properties
#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>
/// 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;
}
#endregion Public Properties
// Set the new application style.
if (ApplicationManager.ApplicationStyle.GetType() != applicationStyleType)
ApplicationManager.ApplicationStyle = Activator.CreateInstance(applicationStyleType) as ApplicationStyle;
}
#region Protected Methods
/// <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";
}
/// <summary>
/// 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");
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
}
}

View File

@ -9,245 +9,245 @@ using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
/// <summary>
/// Appearance preferences panel.
/// </summary>
public class ApplicationStylePreferencesPanel : PreferencesPanel
{
#region Static & Constant Declarations
/// <summary>
/// Appearance preferences panel.
/// </summary>
public class ApplicationStylePreferencesPanel : PreferencesPanel
{
#region Static & Constant Declarations
/// <summary>
/// The types of ApplicationStyle objects provided by the system.
/// </summary>
private Type[] applicationStyleTypes = new Type[]
{
typeof(ApplicationStyleSkyBlue),
};
/// <summary>
/// The types of ApplicationStyle objects provided by the system.
/// </summary>
private Type[] applicationStyleTypes = new Type[]
{
typeof(ApplicationStyleSkyBlue),
};
#endregion Static & Constant Declarations
#endregion Static & Constant Declarations
#region Private Member Variables
#region Private Member Variables
/// <summary>
/// The AppearancePreferences object.
/// </summary>
private ApplicationStylePreferences applicationStylePreferences;
/// <summary>
/// The AppearancePreferences object.
/// </summary>
private ApplicationStylePreferences applicationStylePreferences;
#endregion Private Member Variables
#region Windows Form Designer generated code
#endregion Private Member Variables
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 Windows Form Designer generated code
#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>
/// Initializes a new instance of the AppearancePreferencesPanel class.
/// </summary>
public ApplicationStylePreferencesPanel() : this(new ApplicationStylePreferences(false))
{
}
#region Class Initialization & Termination
public ApplicationStylePreferencesPanel(ApplicationStylePreferences preferences)
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
/// <summary>
/// Initializes a new instance of the AppearancePreferencesPanel class.
/// </summary>
public ApplicationStylePreferencesPanel() : this(new ApplicationStylePreferences(false))
{
}
// Set the panel bitmap.
PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.ApplicationStyleSmall.png");
public ApplicationStylePreferencesPanel(ApplicationStylePreferences preferences)
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
// Instantiate the MicroViewPreferences object and initialize the controls.
applicationStylePreferences = preferences;
applicationStylePreferences.PreferencesModified += new EventHandler(appearancePreferences_PreferencesModified);
// Set the panel bitmap.
PanelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.ApplicationStyleSmall.png");
// Initialize the application styles listbox.
InitializeApplicationStyles();
}
// Instantiate the MicroViewPreferences object and initialize the controls.
applicationStylePreferences = preferences;
applicationStylePreferences.PreferencesModified += new EventHandler(appearancePreferences_PreferencesModified);
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
// Initialize the application styles listbox.
InitializeApplicationStyles();
}
#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
/// <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);
#endregion Class Initialization & Termination
}
#endregion
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.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>
/// Saves the PreferencesPanel.
/// </summary>
public override void Save()
{
if (applicationStylePreferences.IsModified())
applicationStylePreferences.Save();
}
#region Public Methods
#endregion Public Methods
/// <summary>
/// Saves the PreferencesPanel.
/// </summary>
public override void Save()
{
if (applicationStylePreferences.IsModified())
applicationStylePreferences.Save();
}
#region Private Methods
#endregion Public 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 Methods
#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>
/// 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);
}
#region Private Event Handlers
/// <summary>
/// listBoxApplicationStyles_SelectedIndexChanged 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 listBoxApplicationStyles_SelectedIndexChanged(object sender, EventArgs e)
{
// If the list box is empty, just ignore the event.
if (listBoxApplicationStyles.Items.Count == 0)
return;
/// <summary>
/// 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);
}
// Update state.
ApplicationStyle applicationStyle = (ApplicationStyle)listBoxApplicationStyles.SelectedItem;
pictureBoxPreview.Image = applicationStyle.PreviewImage;
applicationStylePreferences.ApplicationStyleType = applicationStyle.GetType();
}
/// <summary>
/// listBoxApplicationStyles_SelectedIndexChanged 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 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
}
}

View File

@ -7,107 +7,107 @@ using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleSienna : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public class ApplicationStyleSienna : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
/// <summary>
/// Initializes a new insance of the ApplicationStyleSienna class.
/// </summary>
public ApplicationStyleSienna()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Initializes a new insance of the ApplicationStyleSienna class.
/// </summary>
public ApplicationStyleSienna()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ApplicationStyleSienna
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Sienna";
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.InactiveTabHighlightColor = System.Drawing.Color.White;
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
#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()
{
//
// ApplicationStyleSienna
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Sienna";
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.InactiveTabHighlightColor = System.Drawing.Color.White;
this.InactiveTabLowlightColor = System.Drawing.Color.FromArgb(((System.Byte)(214)), ((System.Byte)(208)), ((System.Byte)(181)));
this.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(226)), ((System.Byte)(221)), ((System.Byte)(176)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(227)), ((System.Byte)(224)), ((System.Byte)(202)));
}
#endregion
}
#endregion
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sienna.png");
}
}
}
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sienna.png");
}
}
}
}

View File

@ -9,7 +9,7 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleSkyBlue : ApplicationStyle
{
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
@ -20,7 +20,7 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
InitializeComponent();
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -36,15 +36,15 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
//
// ApplicationStyleSkyBlue
//
//
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.ActiveTabHighlightColor = System.Drawing.Color.FromArgb(((System.Byte)(243)), ((System.Byte)(243)), ((System.Byte)(243)));

View File

@ -7,104 +7,104 @@ using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleSterling : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public class ApplicationStyleSterling : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public ApplicationStyleSterling()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
public ApplicationStyleSterling()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ApplicationStyleSterling
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Sterling";
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.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.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(222)), ((System.Byte)(227)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(240)), ((System.Byte)(243)));
#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()
{
//
// ApplicationStyleSterling
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Sterling";
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.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.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(217)), ((System.Byte)(222)), ((System.Byte)(227)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(237)), ((System.Byte)(240)), ((System.Byte)(243)));
}
#endregion
}
#endregion
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sterling.png");
}
}
}
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Sterling.png");
}
}
}
}

View File

@ -7,104 +7,104 @@ using OpenLiveWriter.CoreServices;
namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
{
public class ApplicationStyleWintergreen : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public class ApplicationStyleWintergreen : ApplicationStyle
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public ApplicationStyleWintergreen()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
public ApplicationStyleWintergreen()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
// ApplicationStyleWintergreen
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Wintergreen";
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.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.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
#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()
{
//
// ApplicationStyleWintergreen
//
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.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.ActiveTabTextColor = System.Drawing.Color.Black;
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.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.DisplayName = "Wintergreen";
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.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.InactiveTabTextColor = System.Drawing.Color.Black;
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.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.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.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.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.PrimaryWorkspaceCommandBarBottomLayoutMargin = 3;
this.PrimaryWorkspaceCommandBarDisabledTextColor = System.Drawing.Color.Gray;
this.PrimaryWorkspaceCommandBarLeftLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarRightLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarSeparatorLayoutMargin = 2;
this.PrimaryWorkspaceCommandBarTextColor = System.Drawing.Color.Black;
this.PrimaryWorkspaceCommandBarTopBevelFirstLineColor = 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.PrimaryWorkspaceCommandBarTopLayoutMargin = 2;
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.SecondaryWorkspaceTopColor = System.Drawing.Color.FromArgb(((System.Byte)(193)), ((System.Byte)(234)), ((System.Byte)(228)));
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.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.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.ToolWindowTitleBarTopColor = System.Drawing.Color.FromArgb(((System.Byte)(126)), ((System.Byte)(166)), ((System.Byte)(237)));
this.WindowColor = System.Drawing.Color.White;
this.WorkspacePaneControlColor = System.Drawing.Color.FromArgb(((System.Byte)(204)), ((System.Byte)(224)), ((System.Byte)(221)));
}
#endregion
}
#endregion
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Wintergreen.png");
}
}
}
/// <summary>
/// Gets or sets the preview image of the ApplicationStyle.
/// </summary>
public override Image PreviewImage
{
get
{
return ResourceHelper.LoadAssemblyResourceBitmap("ApplicationStyles.Images.Wintergreen.png");
}
}
}
}

View File

@ -23,7 +23,7 @@ namespace Project31.ApplicationFramework
}
/// <summary>
///
///
/// </summary>
public class ApplicationWorkspaceColumnLightweightControl : Project31.Controls.LightweightControl
{
@ -41,7 +41,7 @@ namespace Project31.ApplicationFramework
/// Required designer cruft.
/// </summary>
private System.ComponentModel.IContainer components = null;
/// <summary>
/// The vertical splitter lightweight control.
/// </summary>
@ -160,7 +160,7 @@ namespace Project31.ApplicationFramework
/// The vertical splitter style.
/// </summary>
private VerticalSplitterStyle verticalSplitterStyle = VerticalSplitterStyle.None;
/// <summary>
/// Gets or sets the vertical splitter style.
/// </summary>
@ -412,7 +412,7 @@ namespace Project31.ApplicationFramework
{
if( disposing )
{
if (components != null)
if (components != null)
{
components.Dispose();
}
@ -430,16 +430,16 @@ namespace Project31.ApplicationFramework
this.components = new System.ComponentModel.Container();
this.splitterLightweightControlVertical = new Project31.ApplicationFramework.SplitterLightweightControl(this.components);
this.splitterLightweightControlHorizontal = new Project31.ApplicationFramework.SplitterLightweightControl(this.components);
//
//
// splitterLightweightControlVertical
//
//
this.splitterLightweightControlVertical.LightweightControlContainerControl = this;
this.splitterLightweightControlVertical.Orientation = Project31.ApplicationFramework.SplitterLightweightControl.SplitterOrientation.Vertical;
this.splitterLightweightControlVertical.SplitterEndMove += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlVertical_SplitterEndMove);
this.splitterLightweightControlVertical.SplitterMoving += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlVertical_SplitterMoving);
//
//
// splitterLightweightControlHorizontal
//
//
this.splitterLightweightControlHorizontal.LightweightControlContainerControl = this;
this.splitterLightweightControlHorizontal.Orientation = Project31.ApplicationFramework.SplitterLightweightControl.SplitterOrientation.Horizontal;
this.splitterLightweightControlHorizontal.SplitterEndMove += new Project31.ApplicationFramework.LightweightSplitterEventHandler(this.splitterLightweightControlHorizontal_SplitterEndMove);
@ -466,7 +466,7 @@ namespace Project31.ApplicationFramework
if (MinimumColumnWidthChanged != null)
MinimumColumnWidthChanged(this, e);
}
/// <summary>
/// Raises the PreferredColumnWidthChanged event.
/// </summary>
@ -495,10 +495,10 @@ namespace Project31.ApplicationFramework
{
// Call the base class's method so that registered delegates receive the event.
base.OnLayout(e);
// Obtain the layout rectangle.
Rectangle layoutRectangle = VirtualClientRectangle;
// Layout the vertical splitter lightweight control and adjust the layout rectangle.
if (verticalSplitterStyle == VerticalSplitterStyle.None)
{
@ -527,7 +527,7 @@ namespace Project31.ApplicationFramework
layoutRectangle.Height);
layoutRectangle.Width -= verticalSplitterWidth;
}
// Layout the upper and lower pane lightweight controls.
if (upperPaneLightweightControl != null && upperPaneLightweightControl.Visible &&
lowerPaneLightweightControl != null && lowerPaneLightweightControl.Visible)
@ -544,7 +544,7 @@ namespace Project31.ApplicationFramework
// Only the upper pane lightweight control is visible.
upperPaneLightweightControl.VirtualBounds = layoutRectangle;
lowerPaneLightweightControl.VirtualBounds = Rectangle.Empty;
splitterLightweightControlHorizontal.Visible = false;
splitterLightweightControlHorizontal.Visible = false;
splitterLightweightControlHorizontal.VirtualBounds = Rectangle.Empty;
}
else
@ -557,9 +557,9 @@ namespace Project31.ApplicationFramework
layoutRectangle.Y,
layoutRectangle.Width,
horizontalSplitterLayoutPosition);
// Layout the horizontal splitter lightweight control.
splitterLightweightControlHorizontal.Visible = true;
splitterLightweightControlHorizontal.Visible = true;
splitterLightweightControlHorizontal.VirtualBounds = new Rectangle( layoutRectangle.X,
upperPaneLightweightControl.VirtualBounds.Bottom,
layoutRectangle.Width,
@ -618,7 +618,7 @@ namespace Project31.ApplicationFramework
{
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);
}
}
@ -630,7 +630,7 @@ namespace Project31.ApplicationFramework
{
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);
}
}
@ -656,7 +656,7 @@ namespace Project31.ApplicationFramework
return (int)(PaneLayoutHeight*horizontalSplitterPosition);
}
}
/// <summary>
/// Gets the minimum layout position of the horizontal splitter.
/// </summary>
@ -736,8 +736,8 @@ namespace Project31.ApplicationFramework
if (HorizontalSplitterLayoutPosition+e.Position > MaximumHorizontalSplitterLayoutPosition)
e.Position = MaximumHorizontalSplitterLayoutPosition-horizontalSplitterLayoutPosition;
}
}
}
/// <summary>
/// splitterLightweightControlVertical_SplitterEndMove event handler.
/// </summary>
@ -831,4 +831,3 @@ namespace Project31.ApplicationFramework
}
}

View File

@ -12,118 +12,118 @@ using Project31.Controls;
namespace Project31.ApplicationFramework
{
/// <summary>
/// ApplicationWorkspaceColumnPaneLightweightControl. Internal helper class used by
/// ApplicationWorkspaceColumnLightweightControl.
/// </summary>
internal class ApplicationWorkspaceColumnPaneLightweightControl : LightweightControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// ApplicationWorkspaceColumnPaneLightweightControl. Internal helper class used by
/// ApplicationWorkspaceColumnLightweightControl.
/// </summary>
internal class ApplicationWorkspaceColumnPaneLightweightControl : LightweightControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// The control.
/// </summary>
private Control control;
/// <summary>
/// The control.
/// </summary>
private Control control;
/// <summary>
/// Gets or sets the control.
/// </summary>
public Control Control
{
get
{
return control;
}
set
{
if (control != value)
{
if (control != null)
control.Parent = null;
/// <summary>
/// Gets or sets the control.
/// </summary>
public Control Control
{
get
{
return control;
}
set
{
if (control != value)
{
if (control != null)
control.Parent = null;
control = value;
control = value;
PerformLayout();
Invalidate();
}
}
}
PerformLayout();
Invalidate();
}
}
}
/// <summary>
/// Initializes a new instance of the DummyPaneLightweightControl class.
/// </summary>
/// <param name="container"></param>
public ApplicationWorkspaceColumnPaneLightweightControl(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the DummyPaneLightweightControl class.
/// </summary>
/// <param name="container"></param>
public ApplicationWorkspaceColumnPaneLightweightControl(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the DummyPaneLightweightControl class.
/// </summary>
public ApplicationWorkspaceColumnPaneLightweightControl()
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the DummyPaneLightweightControl class.
/// </summary>
public ApplicationWorkspaceColumnPaneLightweightControl()
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
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()
{
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// ApplicationWorkspaceColumnPaneLightweightControl
//
this.Visible = false;
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
#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()
{
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
// ApplicationWorkspaceColumnPaneLightweightControl
//
this.Visible = false;
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
}
#endregion
}
#endregion
protected override void OnLayout(EventArgs e)
{
// Call the base class's method so that registered delegates receive the event.
base.OnLayout(e);
protected override void OnLayout(EventArgs e)
{
// Call the base class's method so that registered delegates receive the event.
base.OnLayout(e);
// Layout the control.
if (control != null)
{
//
if (control.Parent != Parent)
control.Parent = Parent;
// Layout the control.
if (control != null)
{
//
if (control.Parent != Parent)
control.Parent = Parent;
//
Rectangle layoutRectangle = VirtualClientRectangle;
layoutRectangle.Inflate(-1, -1);
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);
//
Rectangle layoutRectangle = VirtualClientRectangle;
layoutRectangle.Inflate(-1, -1);
control.Bounds = VirtualClientRectangleToParent(layoutRectangle);
}
}
// Solid background color.
using (SolidBrush backgroundBrush = new SolidBrush(ApplicationManager.ApplicationStyle.BorderColor))
e.Graphics.FillRectangle(backgroundBrush, VirtualClientRectangle);
}
}
/// <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.
using (SolidBrush backgroundBrush = new SolidBrush(ApplicationManager.ApplicationStyle.BorderColor))
e.Graphics.FillRectangle(backgroundBrush, VirtualClientRectangle);
}
}
}

View File

@ -11,99 +11,98 @@ using System.Windows.Forms;
namespace Project31.ApplicationFramework
{
/// <summary>
/// ApplicationCommandBar lightweight control. Provides the CommandBarLightweightControl for
/// the ApplicationWorkspace.
/// </summary>
public class ApplicationWorkspaceCommandBarLightweightControl : CommandBarLightweightControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// ApplicationCommandBar lightweight control. Provides the CommandBarLightweightControl for
/// the ApplicationWorkspace.
/// </summary>
public class ApplicationWorkspaceCommandBarLightweightControl : CommandBarLightweightControl
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
/// </summary>
public ApplicationWorkspaceCommandBarLightweightControl()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
/// </summary>
public ApplicationWorkspaceCommandBarLightweightControl()
{
// This call is required by the Windows.Forms Form Designer.
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
/// </summary>
/// <param name="container"></param>
public ApplicationWorkspaceCommandBarLightweightControl(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the ApplicationCommandBarLightweightControl class.
/// </summary>
/// <param name="container"></param>
public ApplicationWorkspaceCommandBarLightweightControl(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
InitializeComponent();
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
#endregion
#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()
{
components = new System.ComponentModel.Container();
}
#endregion
/// <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)
{
// Fill the background.
if (ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor == ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor)
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor))
e.Graphics.FillRectangle(solidBrush, VirtualClientRectangle);
else
using (LinearGradientBrush linearGradientBrush = new LinearGradientBrush(VirtualClientRectangle, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor, LinearGradientMode.Vertical))
e.Graphics.FillRectangle(linearGradientBrush, VirtualClientRectangle);
/// <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)
{
// Fill the background.
if (ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor == ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor)
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor))
e.Graphics.FillRectangle(solidBrush, VirtualClientRectangle);
else
using (LinearGradientBrush linearGradientBrush = new LinearGradientBrush(VirtualClientRectangle, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopColor, ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarBottomColor, LinearGradientMode.Vertical))
e.Graphics.FillRectangle(linearGradientBrush, VirtualClientRectangle);
// Draw the first line of the top bevel.
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopBevelFirstLineColor))
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 top bevel.
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopBevelFirstLineColor))
e.Graphics.FillRectangle(solidBrush, 0, 0, VirtualWidth, 1);
// Draw the first line of the bottom bevel.
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);
// Draw the second line of the top bevel.
using (SolidBrush solidBrush = new SolidBrush(ApplicationManager.ApplicationStyle.ApplicationWorkspaceCommandBarTopBevelSecondLineColor))
e.Graphics.FillRectangle(solidBrush, 0, 1, VirtualWidth, 1);
// Call the base class's method so that registered delegates receive the event.
base.OnPaint(e);
}
// Draw the first line of the bottom bevel.
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);
}
}
}

View File

@ -23,7 +23,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
private const int BORDER_SIZE = 1;
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
@ -45,7 +45,7 @@ namespace OpenLiveWriter.ApplicationFramework
private Control control;
/// <summary>
///
///
/// </summary>
private bool themeBorder = false;
@ -73,7 +73,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// <summary>
/// True if bottom border should not be used.
/// </summary>
private bool suppressBottomBorder;
private bool suppressBottomBorder;
/// <summary>
/// The right inset.
@ -96,7 +96,7 @@ namespace OpenLiveWriter.ApplicationFramework
themeBorderColor = SystemColors.ControlDark;
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -114,17 +114,17 @@ namespace OpenLiveWriter.ApplicationFramework
#endregion Class Initialization & Termination
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.focusWatchingUserControl = new OpenLiveWriter.Controls.FocusWatchingUserControl();
this.SuspendLayout();
//
//
// focusWatchingUserControl
//
//
this.focusWatchingUserControl.Anchor = System.Windows.Forms.AnchorStyles.None;
this.focusWatchingUserControl.BackColor = System.Drawing.SystemColors.Window;
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.TabStop = false;
//this.focusWatchingUserControl.TabIndex = 0;
//
//
// BorderControl
//
//
this.Controls.Add(this.focusWatchingUserControl);
this.Name = "BorderControl";
this.ResumeLayout(false);
@ -145,7 +145,7 @@ namespace OpenLiveWriter.ApplicationFramework
#region Public Properties
/// <summary>
/// Gets or sets
/// Gets or sets
/// </summary>
public Control Control
{
@ -317,7 +317,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
#endregion Public Properties
#region Protected Methods

View File

@ -30,15 +30,15 @@ namespace OpenLiveWriter.ApplicationFramework
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
//
// ColorDefaultColorControl
//
//
this.Name = "ColorDefaultColorControl";
this.Size = new System.Drawing.Size(108, 24);
}

View File

@ -30,18 +30,18 @@ namespace OpenLiveWriter.ApplicationFramework
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
//
// ColorDialogLauncherControl
//
//
this.Name = "ColorDialogLauncherControl";
this.Size = new System.Drawing.Size(108, 24);
this.Text = "&More Colors…";
this.Text = "&More Colors…";
}
#endregion

View File

@ -122,34 +122,34 @@ namespace OpenLiveWriter.ApplicationFramework
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.SuspendLayout();
//
//
// colorPresets
//
//
this.colorPresets.Location = new System.Drawing.Point(11, 39);
this.colorPresets.Name = "colorPresets";
this.colorPresets.Size = new System.Drawing.Size(96, 72);
this.colorPresets.TabIndex = 1;
this.colorPresets.TabStop = true;
//
//
// colorDefaultColorControl
//
//
this.colorDefaultColorControl.Location = new System.Drawing.Point(5, 5);
this.colorDefaultColorControl.Name = "colorDefaultColorControl";
this.colorDefaultColorControl.Size = new System.Drawing.Size(108, 32);
this.colorDefaultColorControl.TabIndex = 0;
this.colorDefaultColorControl.TabStop = true;
//
//
// colorDialogLauncherControl
//
//
this.colorDialogLauncherControl.Location = new System.Drawing.Point(5, 112);
this.colorDialogLauncherControl.Name = "colorDialogLauncherControl";
this.colorDialogLauncherControl.Size = new System.Drawing.Size(108, 24);
this.colorDialogLauncherControl.TabIndex = 2;
this.colorDialogLauncherControl.TabStop = true;
//
//
// ColorPickerForm
//
//
this.AutoScaleMode = AutoScaleMode.None;
this.AutoScaleBaseSize = new System.Drawing.Size(5, 14);
this.BackColor = System.Drawing.SystemColors.Window;
@ -177,7 +177,7 @@ namespace OpenLiveWriter.ApplicationFramework
// Borderless windows show in the alt+tab window, so this fakes
// out windows into thinking its a tool window (which doesn't
// show up in the alt+tab window).
createParams.ExStyle |= 0x00000080; // WS_EX_TOOLWINDOW
createParams.ExStyle |= 0x00000080; // WS_EX_TOOLWINDOW
return createParams;
}
@ -274,10 +274,9 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
public abstract class IColorPickerSubControl : System.Windows.Forms.UserControl
{
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
protected System.ComponentModel.Container components = null;
@ -291,8 +290,8 @@ namespace OpenLiveWriter.ApplicationFramework
/// <summary>
/// Raised by a subcontrol to inform ColorPickerForm that it should navigate
/// (either for forward or backward) to the next control.
/// </summary>
public event NavigateEventHandler _Navigate;
/// </summary>
public event NavigateEventHandler _Navigate;
/// <summary>
/// Called by a subcontrol (derived class of IColorPickerSubControl) to raise the _Navigate event
@ -319,13 +318,13 @@ namespace OpenLiveWriter.ApplicationFramework
/// <summary>
/// Used by ColorPickerForm to facilitate navigation (up/down arrow keys) across the color picker menu.
/// </summary>
/// </summary>
public virtual void SelectControl(bool forward)
{
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
{
get { return _color; }
@ -363,7 +362,7 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)

View File

@ -23,7 +23,7 @@ namespace OpenLiveWriter.ApplicationFramework
private bool m_hover = false;
private bool m_pressed = false;
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
@ -64,7 +64,7 @@ namespace OpenLiveWriter.ApplicationFramework
public event ColorSelectedEventHandler ColorSelected;
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -80,15 +80,15 @@ namespace OpenLiveWriter.ApplicationFramework
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
//
// ColorPopup
//
//
this.Name = "ColorPopup";
this.Size = new System.Drawing.Size(150, 40);
this.Text = "&Color Scheme";
@ -128,8 +128,6 @@ namespace OpenLiveWriter.ApplicationFramework
Invalidate();
}
const int PADDING = 6;
const int GUTTER_SIZE = 3;
const int COLOR_SIZE = 14;

View File

@ -352,23 +352,23 @@ namespace OpenLiveWriter.ApplicationFramework
}
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
//
//
// ColorPresetControl
//
//
this.Name = "ColorPresetControl";
this.Size = new System.Drawing.Size(96, 72);
this.tableLayout = new System.Windows.Forms.TableLayoutPanel();
this.SuspendLayout();
//
//
// tableLayout
//
//
this.tableLayout.RowCount = 3;
this.tableLayout.ColumnCount = 4;
this.tableLayout.Location = new System.Drawing.Point(0, 0);

View File

@ -97,7 +97,6 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
private bool visibleOnMainMenu = true;
/// <summary>
/// A value indicating whether the command should be visible on a command bar
/// </summary>
@ -298,7 +297,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
private static readonly object CommandBarButtonContextMenuDefinitionKey = new object();
/// <summary>
/// Occurs when the CommandBarButtonContextMenuDefinition should be shown.
@ -367,7 +365,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// The VisibleOnCommandBarChanged event key.
/// </summary>
@ -743,7 +740,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Gets or sets a value indicating whether the command should be visible on a command bar
/// </summary>
@ -769,7 +765,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Gets or sets A value indicating whether the Shortcut of the command should be shown when the
/// command appears on a menu.
@ -1061,8 +1056,8 @@ namespace OpenLiveWriter.ApplicationFramework
// set the value
commandBarButtonBitmapEnabled = value;
// since other command bar states can be auto-derivied from enabled we
// need to null them out so they can be updated
// since other command bar states can be auto-derivied from enabled we
// need to null them out so they can be updated
commandBarButtonBitmapSelected = null;
commandBarButtonBitmapPushed = null;
commandBarButtonBitmapDisabled = null;
@ -1186,10 +1181,9 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Gets or sets the command bar button mini form factory
/// </summary>
/// </summary>
public ICommandContextMenuControlHandler CommandBarButtonContextMenuControlHandler
{
get
@ -1254,9 +1248,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
private bool commandBarButtonContextMenuInvalidateParent = false;
/// <summary>
/// Gets or sets the command text.
/// </summary>
@ -1846,7 +1837,6 @@ namespace OpenLiveWriter.ApplicationFramework
RaiseEvent(VisibleOnMainMenuChangedEventKey, e);
}
/// <summary>
/// Raises the VisibleOnCommandBarChanged event.
/// </summary>
@ -1918,7 +1908,7 @@ namespace OpenLiveWriter.ApplicationFramework
return false;
}
#endregion Private Methods
#endregion Private Methods
#region IComparable Members
@ -1938,11 +1928,11 @@ namespace OpenLiveWriter.ApplicationFramework
throw new ArgumentException("object is not a Command");
}
#endregion
#endregion
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.
Error // The ribbon APIs to set and invalidate this command have return an failing error code.
}

View File

@ -14,7 +14,6 @@ using OpenLiveWriter.Controls;
using OpenLiveWriter.CoreServices;
using OpenLiveWriter.Localization.Bidi;
namespace OpenLiveWriter.ApplicationFramework
{
/// <summary>
@ -71,7 +70,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// <summary>
/// The offset at which to paint the context menu arrow.
/// </summary>
/// </summary>
private const int CONTEXT_MENU_ARROW_OFFSET = 3;
/// <summary>
@ -159,9 +158,9 @@ namespace OpenLiveWriter.ApplicationFramework
public CommandBarButtonLightweightControl(CommandBarLightweightControl commandBarLightweightControl, string commandIdentifier, bool rightAligned)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
InitializeComponent();
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
InitializeComponent();
InitializeObject();
// Set the command bar lightweight control.
@ -180,7 +179,7 @@ namespace OpenLiveWriter.ApplicationFramework
UpdateCommand();
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -204,9 +203,9 @@ namespace OpenLiveWriter.ApplicationFramework
private void InitializeComponent()
{
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
//
// CommandBarButtonLightweightControl
//
//
this.Visible = false;
((System.ComponentModel.ISupportInitialize)(this)).EndInit();
@ -400,7 +399,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
private int SnapButtonHeight(int height)
{
// large buttons always occupy 42 pixels
@ -1054,7 +1052,7 @@ namespace OpenLiveWriter.ApplicationFramework
// Locate the command.
Command updateCommand = commandBarLightweightControl.CommandManager.Get(commandIdentifier);
// Set the command.
// Set the command.
Command = updateCommand;
}
@ -1091,7 +1089,7 @@ namespace OpenLiveWriter.ApplicationFramework
// Note that the context menu is showing.
StartShowContextMenu();
// create the mini-form
// create the mini-form
CommandContextMenuMiniForm miniForm = new CommandContextMenuMiniForm(Win32WindowImpl.ForegroundWin32Window, Command);
miniForm.Location = PositionMenu(menuLocation, alternativeLocation, miniForm.Size);
@ -1159,7 +1157,6 @@ namespace OpenLiveWriter.ApplicationFramework
EndShowContextMenu();
}
/// <summary>
/// Initialize state/UI for context menu
/// </summary>
@ -1177,7 +1174,7 @@ namespace OpenLiveWriter.ApplicationFramework
ContextMenuShowing = 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
// its background correctly unless the entire control is invalidated)
if (Command != null)
@ -1201,7 +1198,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
private static ColorMatrix _highContrastColorMatrix;
#endregion Private Methods
#region Private Event Handlers
@ -1255,7 +1251,7 @@ namespace OpenLiveWriter.ApplicationFramework
#endregion Private Event Handlers
/// <summary>
/// Commands can implement this interface to provide
/// Commands can implement this interface to provide
/// dynamic command bar button images.
/// </summary>
public interface ICustomButtonBitmapPaint
@ -1265,8 +1261,6 @@ namespace OpenLiveWriter.ApplicationFramework
void Paint(BidiGraphics g, Rectangle bounds, DrawState drawState);
}
public override bool DoDefaultAction()
{
if (ContextMenuUserInterface || DropDownContextMenuUserInterface)

View File

@ -18,7 +18,7 @@ namespace OpenLiveWriter.ApplicationFramework
{
#region Private Member Variables
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
@ -50,7 +50,7 @@ namespace OpenLiveWriter.ApplicationFramework
InitializeObject();
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -68,8 +68,8 @@ namespace OpenLiveWriter.ApplicationFramework
#endregion Class Initialization & Termination
#region Component Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
@ -143,7 +143,6 @@ namespace OpenLiveWriter.ApplicationFramework
private int _offSetSpacing = 0;
#endregion Public Properties
#region Public Methods
@ -224,7 +223,6 @@ namespace OpenLiveWriter.ApplicationFramework
previous = Previous.Separator;
}
if (lightweightControl is CommandBarButtonLightweightControl)
{
//if (((CommandBarButtonLightweightControl)lightweightControl).DropDownContextMenuUserInterface)

View File

@ -15,7 +15,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
public class CommandBarControl : LightweightControlContainerControl
{
/// <summary>
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
@ -62,8 +62,7 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -78,8 +77,8 @@ namespace OpenLiveWriter.ApplicationFramework
base.Dispose(disposing);
}
/// <summary>
/// Required method for Designer support - do not modify
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()

View File

@ -122,13 +122,13 @@ namespace OpenLiveWriter.ApplicationFramework
{
// 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
// 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.
// 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
// 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.
SyncControlLocation();
@ -144,7 +144,7 @@ namespace OpenLiveWriter.ApplicationFramework
// Call the base class's method so that registered delegates receive the event.
base.OnLightweightControlContainerControlChanged(e);
//
//
if (control.Parent != Parent)
control.Parent = Parent;

View File

@ -150,7 +150,7 @@ namespace OpenLiveWriter.ApplicationFramework
{
/// <summary>
/// Private data.
/// </summary>
/// </summary>
private IEnumerator baseEnumerator;
private IEnumerable temp;

View File

@ -152,13 +152,13 @@ namespace OpenLiveWriter.ApplicationFramework
((System.ComponentModel.ISupportInitialize)(this.leftContainer)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this.rightContainer)).BeginInit();
((System.ComponentModel.ISupportInitialize)(this)).BeginInit();
//
//
// leftContainer
//
//
this.leftContainer.LightweightControlContainerControl = this;
//
//
// rightContainer
//
//
this.rightContainer.LightweightControlContainerControl = this;
((System.ComponentModel.ISupportInitialize)(this.leftContainer)).EndInit();
((System.ComponentModel.ISupportInitialize)(this.rightContainer)).EndInit();
@ -221,7 +221,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// <summary>
/// Gets or sets the bottom bevel style.
/// </summary>
///
///
[
Category("Appearance"),
DefaultValue(BevelStyle.DoubleLine),
@ -410,7 +410,6 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
protected bool UseHighContrastMode
{
get { return SystemInformation.HighContrast; }

View File

@ -107,7 +107,6 @@ namespace OpenLiveWriter.ApplicationFramework
// Call the base class's method so that registered delegates receive the event.
base.OnPaint(e);
// Paint the left line.
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);

View File

@ -106,7 +106,7 @@ namespace OpenLiveWriter.ApplicationFramework
if (entered)
Leave();
// If activated, deactivate.
// If activated, deactivate.
if (activated)
Deactivate();
@ -240,7 +240,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
public void Activate()
{
Debug.Assert(!activated, "CommandContextManager already activated. Call Brian.");
Debug.Assert(!activated, "CommandContextManager already activated.");
if (!activated)
{
commandManager.Add(activatedCommandCollection);
@ -248,13 +248,12 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Clears the "Activated" state of the CommandContextManager.
/// </summary>
public void Deactivate()
{
Debug.Assert(activated, "CommandContextManager not activated. Call Brian.");
Debug.Assert(activated, "CommandContextManager not activated.");
if (activated)
{
commandManager.Remove(activatedCommandCollection);
@ -270,13 +269,12 @@ namespace OpenLiveWriter.ApplicationFramework
}
}
/// <summary>
/// Set the "Entered" state of the CommandContextManager.
/// </summary>
public void Enter()
{
//Debug.Assert(!entered, "CommandContextManager already entered. Call Brian.");
//Debug.Assert(!entered, "CommandContextManager already entered.");
if (!entered)
{
commandManager.Add(enteredCommandCollection);
@ -289,7 +287,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
public void Leave()
{
//Debug.Assert(entered, "CommandContextManager not entered. Call Brian.");
//Debug.Assert(entered, "CommandContextManager not entered.");
if (entered)
{
commandManager.Remove(enteredCommandCollection);

View File

@ -78,7 +78,6 @@ namespace OpenLiveWriter.ApplicationFramework
return command;
}
/// <summary>
/// Shows a CommandContextMenu modally.
/// </summary>
@ -309,8 +308,6 @@ namespace OpenLiveWriter.ApplicationFramework
MenuItems.AddRange(commandMenuBuilder.CreateMenuItems());
}
/// <summary>
/// Displays the CommandContextMenu at the specified location and returns the command that
/// was selected by the user.
@ -368,7 +365,7 @@ namespace OpenLiveWriter.ApplicationFramework
// Return the command that the user selected.
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;
}

View File

@ -48,7 +48,6 @@ namespace OpenLiveWriter.ApplicationFramework
#endregion Public Events
#region Class Initialization & Termination
/// <summary>

View File

@ -17,33 +17,33 @@ namespace OpenLiveWriter.ApplicationFramework
internal class CommandContextMenuMiniForm : BaseForm
{
/* NOTE: When being shown in the context of the browser (or any non .NET
* application) this form will not handle any dialog level keyboard
* commands (tab, enter, escape, alt-mnenonics, etc.). This is because
* 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
* has the message loop has no idea it needs to route keyboard events'
* to us. There are several possible workarounds:
*
* (1) Create and show this form on its own thread with its own
* message loop. In this case all calls from the form back
* to the main UI thread would need to be marshalled.
*
* (2) Manually process keyboard events in the low-level
* ProcessKeyPreview override (see commented out method below)
*
* (3) Change the implementation of the mini-form to be a modal
* dialog. The only problem here is we would need to capture
* mouse input so that clicks outside of the modal dialog onto
* the IE window result in the window being dismissed. We were
* not able to get this to work (couldn't capture the mouse)
* in experimenting with this implementation.
*
* 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
* 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.
*
*/
* application) this form will not handle any dialog level keyboard
* commands (tab, enter, escape, alt-mnenonics, etc.). This is because
* 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
* has the message loop has no idea it needs to route keyboard events'
* to us. There are several possible workarounds:
*
* (1) Create and show this form on its own thread with its own
* message loop. In this case all calls from the form back
* to the main UI thread would need to be marshalled.
*
* (2) Manually process keyboard events in the low-level
* ProcessKeyPreview override (see commented out method below)
*
* (3) Change the implementation of the mini-form to be a modal
* dialog. The only problem here is we would need to capture
* mouse input so that clicks outside of the modal dialog onto
* the IE window result in the window being dismissed. We were
* not able to get this to work (couldn't capture the mouse)
* in experimenting with this implementation.
*
* 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
* 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.
*
*/
public CommandContextMenuMiniForm(IWin32Window parentFrame, Command command)
{
@ -69,7 +69,7 @@ namespace OpenLiveWriter.ApplicationFramework
SetStyle(ControlStyles.DoubleBuffer, true);
SetStyle(ControlStyles.AllPaintingInWmPaint, true);
// create and initialize the context menu control
// create and initialize the context menu control
Control commandContextMenuControl = _contextMenuControlHandler.CreateControl();
commandContextMenuControl.TabIndex = 0;
commandContextMenuControl.BackColor = BACKGROUND_COLOR;
@ -92,7 +92,7 @@ namespace OpenLiveWriter.ApplicationFramework
_actionButton.ToolTip = _contextMenuControlHandler.ButtonText;
_actionButton.AutoSizeWidth = 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
Width = HORIZONTAL_INSET + commandContextMenuControl.Width + HORIZONTAL_INSET;
@ -104,7 +104,6 @@ namespace OpenLiveWriter.ApplicationFramework
Controls.Add(_actionButton);
}
/// <summary>
/// Override out Activated event to allow parent form to retains its 'activated'
/// look (caption bar color, etc.) even when we are active
@ -116,12 +115,10 @@ namespace OpenLiveWriter.ApplicationFramework
base.OnActivated(e);
// 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);
}
/// <summary>
/// Automatically close when the form is deactivated
/// </summary>
@ -133,7 +130,7 @@ namespace OpenLiveWriter.ApplicationFramework
// set a timer that will result in the closing of the form
// (we do this because if actually call Close right here it
// 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
// form to go away almost instantly
Timer closeDelayTimer = new Timer();
@ -158,7 +155,6 @@ namespace OpenLiveWriter.ApplicationFramework
Cancel();
}
// handle painting
protected override void OnPaint(PaintEventArgs e)
{
@ -196,8 +192,6 @@ namespace OpenLiveWriter.ApplicationFramework
miniFormBevelBitmap.Height));
}
/// <summary>
/// Prevent background painting (supports double-buffering)
/// </summary>
@ -207,22 +201,19 @@ namespace OpenLiveWriter.ApplicationFramework
}
/*
protected override bool ProcessKeyPreview(ref Message m)
{
// NOTE: this is the only keyboard "event" which appears
// to get called when our form is shown in the browser.
// if we want to support tab, esc, enter, mnemonics, etc.
// without creating a new thread/message-loop for this
// form (see comment at the top) then this is where we
// would do the manual processing
return base.ProcessKeyPreview (ref m);
}
*/
protected override bool ProcessKeyPreview(ref Message m)
{
// NOTE: this is the only keyboard "event" which appears
// to get called when our form is shown in the browser.
// if we want to support tab, esc, enter, mnemonics, etc.
// without creating a new thread/message-loop for this
// form (see comment at the top) then this is where we
// would do the manual processing
return base.ProcessKeyPreview (ref m);
}
*/
/// <summary>
/// User clicked the action button
@ -234,7 +225,6 @@ namespace OpenLiveWriter.ApplicationFramework
Execute();
}
/// <summary>
/// Cancel the mini-form
/// </summary>
@ -243,7 +233,6 @@ namespace OpenLiveWriter.ApplicationFramework
Close();
}
/// <summary>
/// Execute the command
/// </summary>
@ -259,7 +248,6 @@ namespace OpenLiveWriter.ApplicationFramework
_contextMenuControlHandler.Execute(userInput);
}
/// <summary>
/// Handle to parent frame window
/// </summary>
@ -275,7 +263,6 @@ namespace OpenLiveWriter.ApplicationFramework
/// </summary>
private ICommandContextMenuControlHandler _contextMenuControlHandler;
/// <summary>
/// Button user clicks to take action
/// </summary>
@ -293,6 +280,5 @@ namespace OpenLiveWriter.ApplicationFramework
private const int BUTTON_VERTICAL_PAD = 3;
private static readonly Color BACKGROUND_COLOR = Color.FromArgb(244, 243, 238);
}
}

View File

@ -12,422 +12,422 @@ using Project31.MindShare.CoreServices;
namespace Project31.ApplicationFramework
{
/// <summary>
/// Represents a command in the Project31.ApplicationFramework.
/// </summary>
[
DesignTimeVisible(false),
ToolboxItem(false)
]
public class CommandInstance : Component
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Represents a command in the Project31.ApplicationFramework.
/// </summary>
[
DesignTimeVisible(false),
ToolboxItem(false)
]
public class CommandInstance : Component
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Menu bitmap for the enabled state.
/// </summary>
private CommandDefinition commandDefinition;
/// <summary>
/// Menu bitmap for the enabled state.
/// </summary>
private CommandDefinition commandDefinition;
/// <summary>
/// Gets or sets the menu bitmap for the enabled state.
/// </summary>
[
Category("Appearance"),
Localizable(false),
DefaultValue(null),
Description("Specifies the menu bitmap for the enabled state.")
]
public Bitmap MenuBitmapEnabled
{
get
{
return menuBitmapEnabled;
}
/// <summary>
/// Gets or sets the menu bitmap for the enabled state.
/// </summary>
[
Category("Appearance"),
Localizable(false),
DefaultValue(null),
Description("Specifies the menu bitmap for the enabled state.")
]
public Bitmap MenuBitmapEnabled
{
get
{
return menuBitmapEnabled;
}
set
{
menuBitmapEnabled = value;
}
}
set
{
menuBitmapEnabled = value;
}
}
/// <summary>
/// Menu bitmap for the disabled state.
/// </summary>
private Bitmap menuBitmapDisabled;
/// <summary>
/// Menu bitmap for the disabled state.
/// </summary>
private Bitmap menuBitmapDisabled;
/// <summary>
/// Gets or sets the menu bitmap for the disabled state.
/// </summary>
[
Category("Appearance"),
Localizable(false),
DefaultValue(null),
Description("Specifies the menu bitmap for the disabled state.")
]
public Bitmap MenuBitmapDisabled
{
get
{
return menuBitmapDisabled;
}
/// <summary>
/// Gets or sets the menu bitmap for the disabled state.
/// </summary>
[
Category("Appearance"),
Localizable(false),
DefaultValue(null),
Description("Specifies the menu bitmap for the disabled state.")
]
public Bitmap MenuBitmapDisabled
{
get
{
return menuBitmapDisabled;
}
set
{
menuBitmapDisabled = value;
}
}
set
{
menuBitmapDisabled = value;
}
}
/// <summary>
/// Menu bitmap for the selected state.
/// </summary>
private Bitmap menuBitmapSelected;
/// <summary>
/// Menu bitmap for the selected state.
/// </summary>
private Bitmap menuBitmapSelected;
/// <summary>
/// Gets or sets the menu selected bitmap.
/// </summary>
[
Category("Appearance"),
Localizable(false),
DefaultValue(null),
Description("Specifies the menu bitmap for the selected state.")
]
public Bitmap MenuBitmapSelected
{
get
{
return menuBitmapSelected;
}
/// <summary>
/// Gets or sets the menu selected bitmap.
/// </summary>
[
Category("Appearance"),
Localizable(false),
DefaultValue(null),
Description("Specifies the menu bitmap for the selected state.")
]
public Bitmap MenuBitmapSelected
{
get
{
return menuBitmapSelected;
}
set
{
menuBitmapSelected = value;
}
}
set
{
menuBitmapSelected = value;
}
}
/// <summary>
/// The menu shortcut of the command.
/// </summary>
private Shortcut menuShortcut;
/// <summary>
/// The menu shortcut of the command.
/// </summary>
private Shortcut menuShortcut;
/// <summary>
/// Gets or sets the menu shortcut of the command.
/// </summary>
[
Category("Behavior"),
DefaultValue(Shortcut.None),
Description("Specifies the menu shortcut of the command.")
]
public Shortcut MenuShortcut
{
get
{
return menuShortcut;
}
set
{
menuShortcut = value;
}
}
/// <summary>
/// Gets or sets the menu shortcut of the command.
/// </summary>
[
Category("Behavior"),
DefaultValue(Shortcut.None),
Description("Specifies the menu shortcut of the command.")
]
public Shortcut MenuShortcut
{
get
{
return menuShortcut;
}
set
{
menuShortcut = value;
}
}
/// <summary>
/// A value indicating whether the menu shortcut should be shown for the command.
/// </summary>
private bool showMenuShortcut;
/// <summary>
/// A value indicating whether the menu shortcut should be shown for the command.
/// </summary>
private bool showMenuShortcut;
/// <summary>
/// Gets or sets a value indicating whether the menu shortcut should be shown for the command.
/// </summary>
[
Category("Behavior"),
DefaultValue(false),
Description("Specifies whether the menu shortcut should be shown for the command.")
]
public bool ShowMenuShortcut
{
get
{
return showMenuShortcut;
}
set
{
showMenuShortcut = value;
}
}
/// <summary>
/// Gets or sets a value indicating whether the menu shortcut should be shown for the command.
/// </summary>
[
Category("Behavior"),
DefaultValue(false),
Description("Specifies whether the menu shortcut should be shown for the command.")
]
public bool ShowMenuShortcut
{
get
{
return showMenuShortcut;
}
set
{
showMenuShortcut = value;
}
}
/// <summary>
/// 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.
/// </summary>
private string text;
/// <summary>
/// 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.
/// </summary>
private string text;
/// <summary>
/// Gets or sets the command text.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the text that is associated with the command.")
]
public string Text
{
get
{
return text;
}
set
{
text = value;
}
}
/// <summary>
/// Gets or sets the command text.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the text that is associated with the command.")
]
public string Text
{
get
{
return text;
}
set
{
text = value;
}
}
/// <summary>
/// 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.
/// </summary>
private string description;
/// <summary>
/// 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.
/// </summary>
private string description;
/// <summary>
/// Gets or sets the command description.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the description for the command.")
]
public string Description
{
get
{
return description;
}
set
{
description = value;
}
}
/// <summary>
/// Gets or sets the command description.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the description for the command.")
]
public string Description
{
get
{
return description;
}
set
{
description = value;
}
}
/// <summary>
/// Command bar button bitmap for the disabled state.
/// </summary>
private Bitmap commandBarButtonBitmapDisabled;
/// <summary>
/// Command bar button bitmap for the disabled state.
/// </summary>
private Bitmap commandBarButtonBitmapDisabled;
/// <summary>
/// Gets or sets the command bar button bitmap for the disabled state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the disabled state.")
]
public Bitmap CommandBarButtonBitmapDisabled
{
get
{
return commandBarButtonBitmapDisabled;
}
/// <summary>
/// Gets or sets the command bar button bitmap for the disabled state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the disabled state.")
]
public Bitmap CommandBarButtonBitmapDisabled
{
get
{
return commandBarButtonBitmapDisabled;
}
set
{
commandBarButtonBitmapDisabled = value;
}
}
set
{
commandBarButtonBitmapDisabled = value;
}
}
/// <summary>
/// Command bar button bitmap for the enabled state.
/// </summary>
private Bitmap commandBarButtonBitmapEnabled;
/// <summary>
/// Command bar button bitmap for the enabled state.
/// </summary>
private Bitmap commandBarButtonBitmapEnabled;
/// <summary>
/// Gets or sets the command bar button bitmap for the enabled state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the enabled state.")
]
public Bitmap CommandBarButtonBitmapEnabled
{
get
{
return commandBarButtonBitmapEnabled;
}
/// <summary>
/// Gets or sets the command bar button bitmap for the enabled state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the enabled state.")
]
public Bitmap CommandBarButtonBitmapEnabled
{
get
{
return commandBarButtonBitmapEnabled;
}
set
{
commandBarButtonBitmapEnabled = value;
}
}
set
{
commandBarButtonBitmapEnabled = value;
}
}
/// <summary>
/// Command bar button bitmap for the pushed state.
/// </summary>
private Bitmap commandBarButtonBitmapPushed;
/// <summary>
/// Command bar button bitmap for the pushed state.
/// </summary>
private Bitmap commandBarButtonBitmapPushed;
/// <summary>
/// Gets or sets the command bar button bitmap for the pushed state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the pushed state.")
]
public Bitmap CommandBarButtonBitmapPushed
{
get
{
return commandBarButtonBitmapPushed;
}
/// <summary>
/// Gets or sets the command bar button bitmap for the pushed state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the pushed state.")
]
public Bitmap CommandBarButtonBitmapPushed
{
get
{
return commandBarButtonBitmapPushed;
}
set
{
commandBarButtonBitmapPushed = value;
}
}
set
{
commandBarButtonBitmapPushed = value;
}
}
/// <summary>
/// Command bar button bitmap for the rollover state.
/// </summary>
private Bitmap commandBarButtonBitmapRollover;
/// <summary>
/// Command bar button bitmap for the rollover state.
/// </summary>
private Bitmap commandBarButtonBitmapRollover;
/// <summary>
/// Gets or sets the command bar button bitmap for the rollover state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the rollover state.")
]
public Bitmap CommandBarButtonBitmapRollover
{
get
{
return commandBarButtonBitmapRollover;
}
/// <summary>
/// Gets or sets the command bar button bitmap for the rollover state.
/// </summary>
[
Category("Appearance"),
Localizable(true),
DefaultValue(null),
Description("Specifies the command bar button bitmap for the rollover state.")
]
public Bitmap CommandBarButtonBitmapRollover
{
get
{
return commandBarButtonBitmapRollover;
}
set
{
commandBarButtonBitmapRollover = value;
}
}
set
{
commandBarButtonBitmapRollover = value;
}
}
/// <summary>
/// A value indicating whether the command is enabled or not (i.e. can respond to user interaction).
/// </summary>
private bool enabled = true;
/// <summary>
/// A value indicating whether the command is enabled or not (i.e. can respond to user interaction).
/// </summary>
private bool enabled = true;
/// <summary>
/// Gets or sets a value indicating whether the command is enabled or not (i.e. can respond to user interaction).
/// </summary>
[
Category("Behavior"),
DefaultValue(true),
Description("Specifies whether the command is enabled by default.")
]
public bool Enabled
{
get
{
return enabled;
}
set
{
// Set the value.
enabled = value;
/// <summary>
/// Gets or sets a value indicating whether the command is enabled or not (i.e. can respond to user interaction).
/// </summary>
[
Category("Behavior"),
DefaultValue(true),
Description("Specifies whether the command is enabled by default.")
]
public bool Enabled
{
get
{
return enabled;
}
set
{
// Set the value.
enabled = value;
// Fire the enabled changed event.
OnEnabledChanged(EventArgs.Empty);
}
}
// Fire the enabled changed event.
OnEnabledChanged(EventArgs.Empty);
}
}
/// <summary>
/// Occurs when the command is executed.
/// </summary>
[
Category("Action"),
Description("Occurs when the command is executed.")
]
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>
/// Occurs when the command is executed.
/// </summary>
[
Category("Action"),
Description("Occurs when the command is executed.")
]
public event EventHandler Execute;
/// <summary>
/// Initializes a new instance of the Command class.
/// </summary>
/// <param name="container"></param>
public CommandDefinition(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
InitializeComponent();
}
/// <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>
/// Initializes a new instance of the Command class.
/// </summary>
public CommandDefinition()
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the Command class.
/// </summary>
/// <param name="container"></param>
public CommandDefinition(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
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()
{
components = new System.ComponentModel.Container();
}
#endregion
/// <summary>
/// Initializes a new instance of the Command class.
/// </summary>
public CommandDefinition()
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
InitializeComponent();
}
/// <summary>
/// This method can be called to raise the Execute event
/// </summary>
public void PerformExecute()
{
Debug.Assert(Enabled, "Command is disabled.", "It is illogical to execute a command that is disabled.");
OnExecute(EventArgs.Empty);
}
#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()
{
components = new System.ComponentModel.Container();
}
#endregion
/// <summary>
/// Raises the Execute event.
/// </summary>
protected void OnExecute(EventArgs e)
{
if (Execute != null)
Execute(this, e);
else
UnderConstructionForm.Show();
}
/// <summary>
/// This method can be called to raise the Execute event
/// </summary>
public void PerformExecute()
{
Debug.Assert(Enabled, "Command is disabled.", "It is illogical to execute a command that is disabled.");
OnExecute(EventArgs.Empty);
}
/// <summary>
/// Raises the EnabledChanged event.
/// </summary>
protected void OnEnabledChanged(EventArgs e)
{
if (EnabledChanged != null)
EnabledChanged(this, e);
}
}
/// <summary>
/// Raises the Execute event.
/// </summary>
protected void OnExecute(EventArgs e)
{
if (Execute != null)
Execute(this, e);
else
UnderConstructionForm.Show();
}
/// <summary>
/// Raises the EnabledChanged event.
/// </summary>
protected void OnEnabledChanged(EventArgs e)
{
if (EnabledChanged != null)
EnabledChanged(this, e);
}
}
}

View File

@ -12,90 +12,90 @@ using Project31.CoreServices;
namespace Project31.ApplicationFramework
{
/// <summary>
/// Summary description for CommandList.
/// </summary>
[Designer(typeof(ComponentRootDesigner), typeof(IRootDesigner))]
public class CommandList : Component
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// Summary description for CommandList.
/// </summary>
[Designer(typeof(ComponentRootDesigner), typeof(IRootDesigner))]
public class CommandList : Component
{
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
/// <summary>
/// The command collection for this command list.
/// </summary>
private CommandCollection commands = new CommandCollection();
/// <summary>
/// The command collection for this command list.
/// </summary>
private CommandCollection commands = new CommandCollection();
/// <summary>
/// Gets or sets the command collection for this command list.
/// </summary>
[
Localizable(true),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
]
public CommandCollection Commands
{
get
{
return commands;
}
set
{
commands = value;
}
}
/// <summary>
/// Gets or sets the command collection for this command list.
/// </summary>
[
Localizable(true),
DesignerSerializationVisibility(DesignerSerializationVisibility.Content)
]
public CommandCollection Commands
{
get
{
return commands;
}
set
{
commands = value;
}
}
/// <summary>
/// Initializes a new instance of the CommandList class.
/// </summary>
/// <param name="container">Component container.</param>
public CommandList(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the CommandList class.
/// </summary>
/// <param name="container">Component container.</param>
public CommandList(System.ComponentModel.IContainer container)
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
container.Add(this);
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the CommandList class.
/// </summary>
public CommandList()
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
InitializeComponent();
}
/// <summary>
/// Initializes a new instance of the CommandList class.
/// </summary>
public CommandList()
{
/// <summary>
/// Required for Windows.Forms Class Composition Designer support
/// </summary>
InitializeComponent();
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
components = new System.ComponentModel.Container();
}
/// <summary>
/// Helper to enable all the commands in the command list.
/// </summary>
public void Enable()
{
foreach (Command command in commands)
command.Enabled = true;
}
/// <summary>
/// Helper to enable all the commands in the command list.
/// </summary>
public void Enable()
{
foreach (Command command in commands)
command.Enabled = true;
}
/// <summary>
/// Helper to disable all the commands in the command list.
/// </summary>
public void Disable()
{
foreach (Command command in commands)
command.Enabled = false;
}
}
/// <summary>
/// Helper to disable all the commands in the command list.
/// </summary>
public void Disable()
{
foreach (Command command in commands)
command.Enabled = false;
}
}
}

View File

@ -118,9 +118,9 @@ namespace OpenLiveWriter.ApplicationFramework
/// 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
/// 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
/// 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.
/// </summary>
private bool commandShortcutTableIsStale = true;
@ -201,7 +201,7 @@ namespace OpenLiveWriter.ApplicationFramework
InitializeComponent();
}
/// <summary>
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose(bool disposing)
@ -508,9 +508,9 @@ namespace OpenLiveWriter.ApplicationFramework
}
/// <summary>
/// Instructs the command manager to ignore the shortcut until
/// Instructs the command manager to ignore the shortcut until
/// UnignoreShortcut is called.
///
///
/// LIMITATION: You cannot currently ignore an AdvancedShortcut
/// (i.e. one based on Keys instead of Shortcut).
/// </summary>
@ -596,7 +596,6 @@ namespace OpenLiveWriter.ApplicationFramework
if (command != null)
return command;
Shortcut shortcut = KeyboardHelper.MapToShortcut(commandShortcut);
if (shortcut != Shortcut.None && !ShouldIgnore(shortcut))
return (Command)commandShortcutTable[shortcut];

View File

@ -59,7 +59,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// <summary>
/// Initializes a new instance of the CommandMenuBuilder class.
/// </summary>
/// </summary>
public CommandMenuBuilder(MenuType menuType)
{
this.menuType = menuType;
@ -146,7 +146,7 @@ namespace OpenLiveWriter.ApplicationFramework
/// <summary>
/// Helper to parse a menu path entry describing a menu item in the form:
/// [-]text@position
///
///
/// '-' Optional. Specifies that a separator menu item should be inserted before the
/// menu item item.
/// text Menu item text (i.e. &File)

View File

@ -8,81 +8,81 @@ using System.Windows.Forms;
namespace Project31.ApplicationFramework
{
/// <summary>
/// Provides "event bridging" between MenuItem objects and Command objects.
/// </summary>
internal class CommandMenuItemEventBridge
{
#region Private Member Variables & Properties
/// <summary>
/// The Command for this Command to MenuItem event bridge.
/// </summary>
private Command command;
/// <summary>
/// Provides "event bridging" between MenuItem objects and Command objects.
/// </summary>
internal class CommandMenuItemEventBridge
{
#region Private Member Variables & Properties
/// <summary>
/// The Command for this Command to MenuItem event bridge.
/// </summary>
private Command command;
/// <summary>
/// The MenuItem for this Command to MenuItem event bridge.
/// </summary>
private MenuItem menuItem;
#endregion
/// <summary>
/// The MenuItem for this Command to MenuItem event bridge.
/// </summary>
private MenuItem menuItem;
#endregion
#region Class Initialization & Termination
/// <summary>
/// Initializes a new instance of the CommandMenuItemEventBridge class.
/// </summary>
/// <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>
public CommandMenuItemEventBridge(Command command, MenuItem menuItem)
{
// Set the command.
this.command = command;
#region Class Initialization & Termination
/// <summary>
/// Initializes a new instance of the CommandMenuItemEventBridge class.
/// </summary>
/// <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>
public CommandMenuItemEventBridge(Command command, MenuItem menuItem)
{
// Set the command.
this.command = command;
// Set the menu item.
this.menuItem = menuItem;
// Set the menu item.
this.menuItem = menuItem;
// Add event handlers for the command events.
command.EnabledChanged += new EventHandler(command_EnabledChanged);
// Add event handlers for the command events.
command.EnabledChanged += new EventHandler(command_EnabledChanged);
// Add event handlers for the menu item events.
menuItem.Click += new EventHandler(menuItem_Click);
}
#endregion
// Add event handlers for the menu item events.
menuItem.Click += new EventHandler(menuItem_Click);
}
#endregion
#region Public Methods
/// <summary>
/// The enabled property of the command changed.
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">Event parameters.</param>
public void Disconnect()
{
// Add event handlers for command events.
command.EnabledChanged -= new EventHandler(command_EnabledChanged);
#region Public Methods
/// <summary>
/// The enabled property of the command changed.
/// </summary>
/// <param name="sender">Sender of the event.</param>
/// <param name="e">Event parameters.</param>
public void Disconnect()
{
// Add event handlers for command events.
command.EnabledChanged -= new EventHandler(command_EnabledChanged);
// Bridge menu item events.
menuItem.Click -= new EventHandler(menuItem_Click);
}
#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;
}
// Bridge menu item events.
menuItem.Click -= new EventHandler(menuItem_Click);
}
#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
}
#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>
/// 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
}
}

View File

@ -121,7 +121,7 @@ namespace OpenLiveWriter.ApplicationFramework
}
/// <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>
/// <returns>Text to draw.</returns>
protected override string MenuText()
@ -223,6 +223,5 @@ namespace OpenLiveWriter.ApplicationFramework
Visible = command.VisibleOnMainMenu;
}
}
}

View File

@ -50,20 +50,19 @@ namespace OpenLiveWriter.ApplicationFramework
return ResourceHelper.LoadBitmap(commandId + "_" + bitmapType);
}
/// <summary>
/// Parses the structure of the main menu into a hashtable whose keys are
/// command identifier strings and values are localized MainMenuPath strings.
///
///
/// The structure is stored as a string in PropertiesNonLoc.resx under
/// 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)
///
///
/// Each menu or sub-menu is surrounded by parentheses. The first
/// item after the open-parenthesis is the title of that 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
/// under the name "MainMenu.[menu]", for example "MainMenu.File". The localized
/// text for each command is under the name "Command.[command].MenuText", for

View File

@ -8,171 +8,171 @@ using System.Diagnostics;
namespace Project31.ApplicationFramework
{
/// <summary>
/// Provides command table management.
/// </summary>
public class CommandTable : IEnumerable
{
/// <summary>
/// The set of active commands, keyed by command identifier.
/// </summary>
private Hashtable commandTable = new Hashtable();
/// <summary>
/// Provides command table management.
/// </summary>
public class CommandTable : IEnumerable
{
/// <summary>
/// The set of active commands, keyed by command identifier.
/// </summary>
private Hashtable commandTable = new Hashtable();
/// <summary>
/// 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
/// to be loaded. Once loaded, it is maintained.
/// </summary>
private Hashtable shortcutTable = null;
/// <summary>
/// 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
/// to be loaded. Once loaded, it is maintained.
/// </summary>
private Hashtable shortcutTable = null;
/// <summary>
/// Initializes a new instance of the CommandTable class.
/// </summary>
public CommandTable()
{
}
/// <summary>
/// Initializes a new instance of the CommandTable class.
/// </summary>
public CommandTable()
{
}
/// <summary>
/// Clears the command table.
/// </summary>
public void Clear()
{
commandTable.Clear();
if (shortcutTable != null)
shortcutTable.Clear();
}
/// <summary>
/// Clears the command table.
/// </summary>
public void Clear()
{
commandTable.Clear();
if (shortcutTable != null)
shortcutTable.Clear();
}
/// <summary>
/// Adds the specified command.
/// </summary>
/// <param name="command">The command to add.</param>
public void AddCommand(Command command)
{
// 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(!commandTable.Contains(command.Identifier), "Duplicate command encountered.", String.Format("Command {0} already exists.", command.Identifier));
/// <summary>
/// Adds the specified command.
/// </summary>
/// <param name="command">The command to add.</param>
public void AddCommand(Command command)
{
// 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(!commandTable.Contains(command.Identifier), "Duplicate command encountered.", String.Format("Command {0} already exists.", command.Identifier));
// Add the command to the command table.
commandTable[command.Identifier] = command;
// Add the command to the command table.
commandTable[command.Identifier] = command;
// Add the shortcut for the command to the shortcut table.
AddShortcut(command);
}
// Add the shortcut for the command to the shortcut table.
AddShortcut(command);
}
/// <summary>
/// Removes the specified command.
/// </summary>
/// <param name="command">The command to remove.</param>
public void RemoveCommand(Command command)
{
// 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
// down a running system.
Debug.Assert(commandTable.Contains(command.Identifier), "Command not found.", String.Format("Command {0} does not exist.", command.Identifier));
/// <summary>
/// Removes the specified command.
/// </summary>
/// <param name="command">The command to remove.</param>
public void RemoveCommand(Command command)
{
// 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
// down a running system.
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.
commandTable.Remove(command.Identifier);
// Remove the command from the command table.
commandTable.Remove(command.Identifier);
// Remove the shortcut for the command from the shortcut table.
RemoveShortcut(command);
}
// Remove the shortcut for the command from the shortcut table.
RemoveShortcut(command);
}
/// <summary>
/// Adds the specified command list.
/// </summary>
/// <param name="commandList">The CommandList to add.</param>
public void AddCommandList(CommandList commandList)
{
// Add all the commands to the command table.
foreach (Command command in commandList.Commands)
AddCommand(command);
}
/// <summary>
/// Adds the specified command list.
/// </summary>
/// <param name="commandList">The CommandList to add.</param>
public void AddCommandList(CommandList commandList)
{
// Add all the commands to the command table.
foreach (Command command in commandList.Commands)
AddCommand(command);
}
/// <summary>
/// Removes the specified command list.
/// </summary>
/// <param name="commandProvider">The CommandList to remove.</param>
public void RemoveCommandList(CommandList commandList)
{
// Remove all the commands from the command table.
foreach (Command command in commandList.Commands)
RemoveCommand(command);
}
/// <summary>
/// Removes the specified command list.
/// </summary>
/// <param name="commandProvider">The CommandList to remove.</param>
public void RemoveCommandList(CommandList commandList)
{
// Remove all the commands from the command table.
foreach (Command command in commandList.Commands)
RemoveCommand(command);
}
/// <summary>
/// Gets the command with the specified command identifier.
/// </summary>
/// <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>
public Command GetCommand(string commandIdentifier)
{
return (Command)commandTable[commandIdentifier];
}
/// <summary>
/// Gets the command with the specified command identifier.
/// </summary>
/// <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>
public Command GetCommand(string commandIdentifier)
{
return (Command)commandTable[commandIdentifier];
}
/// <summary>
/// Gets the command with the specified shortcut.
/// </summary>
/// <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>
public Command GetCommand(Shortcut shortcut)
{
// If the shortcut table has not been built, build it.
if (shortcutTable == null)
{
// Instantiate the shortcut table.
shortcutTable = new Hashtable();
/// <summary>
/// Gets the command with the specified shortcut.
/// </summary>
/// <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>
public Command GetCommand(Shortcut shortcut)
{
// If the shortcut table has not been built, build it.
if (shortcutTable == null)
{
// Instantiate the shortcut table.
shortcutTable = new Hashtable();
// Load all the commands into the shortcut table.
foreach (Command command in this)
AddShortcut(command);
}
// Return the command with the specified shortcut.
return (Command)shortcutTable[shortcut];
}
// Load all the commands into the shortcut table.
foreach (Command command in this)
AddShortcut(command);
}
/// <summary>
/// Returns an enumerator that can iterate through a collection.
/// </summary>
/// <returns>An IEnumerator that can be used to iterate through the collection.</returns>
public IEnumerator GetEnumerator()
{
return commandTable.Values.GetEnumerator();
}
// Return the command with the specified shortcut.
return (Command)shortcutTable[shortcut];
}
/// <summary>
/// Adds the specified command to the shortcut table.
/// </summary>
/// <param name="command">The command to add to the shortcut table.</param>
private void AddShortcut(Command command)
{
// If we have a shortcut table, and the command has a shortcut, add it.
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>
/// Returns an enumerator that can iterate through a collection.
/// </summary>
/// <returns>An IEnumerator that can be used to iterate through the collection.</returns>
public IEnumerator GetEnumerator()
{
return commandTable.Values.GetEnumerator();
}
/// <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);
}
}
}
/// <summary>
/// Adds the specified command to the shortcut table.
/// </summary>
/// <param name="command">The command to add to the shortcut table.</param>
private void AddShortcut(Command command)
{
// If we have a shortcut table, and the command has a shortcut, add it.
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>
/// 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);
}
}
}
}

View File

@ -9,48 +9,47 @@ using OpenLiveWriter.ApplicationFramework;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAbout : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAbout : Command
{
public CommandAbout(System.ComponentModel.IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAbout(System.ComponentModel.IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
}
}
public CommandAbout()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAbout()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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";
}
}
#endregion
}
#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";
}
#endregion
}
}

View File

@ -5,54 +5,52 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAlignCenter : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAlignCenter : Command
{
public CommandAlignCenter(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAlignCenter(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandAlignCenter()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAlignCenter()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,54 +5,52 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAlignLeft : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAlignLeft : Command
{
public CommandAlignLeft(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAlignLeft(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandAlignLeft()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAlignLeft()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,54 +5,52 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAlignRight : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandAlignRight : Command
{
public CommandAlignRight(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAlignRight(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandAlignRight()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandAlignRight()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,54 +5,52 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandBlockquote : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandBlockquote : Command
{
public CommandBlockquote(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandBlockquote(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandBlockquote()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandBlockquote()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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()
{
//
// CommandBlockquote
//
this.ContextMenuPath = "";
this.Identifier = "MindShare.ApplicationCore.Commands.Blockquote";
this.MainMenuPath = "F&ormat@5/Block&quote@499";
this.Text = "Blockquote";
this.SuppressMenuBitmap = true;
}
#endregion
}
#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()
{
//
// CommandBlockquote
//
this.ContextMenuPath = "";
this.Identifier = "MindShare.ApplicationCore.Commands.Blockquote";
this.MainMenuPath = "F&ormat@5/Block&quote@499";
this.Text = "Blockquote";
this.SuppressMenuBitmap = true;
}
#endregion
}
}

View File

@ -5,55 +5,53 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandBold : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandBold : Command
{
public CommandBold(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandBold(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandBold()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandBold()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,54 +5,52 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandBullets : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandBullets : Command
{
public CommandBullets(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandBullets(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandBullets()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandBullets()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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()
{
//
// CommandBullets
//
this.ContextMenuPath = "";
this.Identifier = "MindShare.ApplicationCore.Commands.Bullets";
this.MainMenuPath = "F&ormat@5/&Bullets@402";
this.Text = "Bullets";
this.SuppressMenuBitmap = true;
}
#endregion
}
#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()
{
//
// CommandBullets
//
this.ContextMenuPath = "";
this.Identifier = "MindShare.ApplicationCore.Commands.Bullets";
this.MainMenuPath = "F&ormat@5/&Bullets@402";
this.Text = "Bullets";
this.SuppressMenuBitmap = true;
}
#endregion
}
}

View File

@ -5,57 +5,55 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandCheckSpelling : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandCheckSpelling : Command
{
public CommandCheckSpelling(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandCheckSpelling(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandCheckSpelling()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandCheckSpelling()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,56 +5,54 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandClear.
/// </summary>
public class CommandClear : Command
{
/// <summary>
/// Summary description for CommandClear.
/// </summary>
public class CommandClear : Command
{
public CommandClear(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandClear(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandClear()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandClear()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,57 +5,55 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandMinimize.
/// </summary>
public class CommandClose : Command
{
/// <summary>
/// Summary description for CommandMinimize.
/// </summary>
public class CommandClose : Command
{
public CommandClose(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandClose(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
//
// TODO: Add any constructor code after InitializeComponent call
//
}
public CommandClose()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandClose()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -8,53 +8,51 @@ using System.Diagnostics;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandColorize.
/// </summary>
public class CommandColorize : Command
{
/// <summary>
/// Summary description for CommandColorize.
/// </summary>
public class CommandColorize : Command
{
public CommandColorize(System.ComponentModel.IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandColorize(System.ComponentModel.IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
//
// TODO: Add any constructor code after InitializeComponent call
//
}
public CommandColorize()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandColorize()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,56 +5,54 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandCopy : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandCopy : Command
{
public CommandCopy(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandCopy(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandCopy()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandCopy()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,56 +5,54 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandCut : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandCut : Command
{
public CommandCut(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandCut(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandCut()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandCut()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,56 +5,54 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandDelete : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandDelete : Command
{
public CommandDelete(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandDelete(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandDelete()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandDelete()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,56 +5,54 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandClear.
/// </summary>
public class CommandFind : Command
{
/// <summary>
/// Summary description for CommandClear.
/// </summary>
public class CommandFind : Command
{
public CommandFind(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFind(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandFind()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFind()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,74 +5,73 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandFocusNextPane.
/// </summary>
public class CommandFocusNextPane : Command
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
/// <summary>
/// Summary description for CommandFocusNextPane.
/// </summary>
public class CommandFocusNextPane : Command
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public CommandFocusNextPane(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
container.Add(this);
InitializeComponent();
public CommandFocusNextPane(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
container.Add(this);
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandFocusNextPane()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFocusNextPane()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <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>
/// 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
}
}
#endregion
}
}

View File

@ -5,75 +5,74 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandFocusPreviousPane.
/// </summary>
public class CommandFocusPreviousPane : Command
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
/// <summary>
/// Summary description for CommandFocusPreviousPane.
/// </summary>
public class CommandFocusPreviousPane : Command
{
/// <summary>
/// Required designer variable.
/// </summary>
private Container components = null;
public CommandFocusPreviousPane(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
container.Add(this);
InitializeComponent();
public CommandFocusPreviousPane(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
container.Add(this);
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandFocusPreviousPane()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFocusPreviousPane()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
/// <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
/// <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>
/// 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
}
}
#endregion
}
}

View File

@ -5,55 +5,53 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandFont : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandFont : Command
{
public CommandFont(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFont(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandFont()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFont()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,54 +5,52 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandFontColor : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandFontColor : Command
{
public CommandFontColor(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFontColor(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandFontColor()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandFontColor()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -9,54 +9,52 @@ using OpenLiveWriter.ApplicationFramework;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
public class CommandHelp : Command
{
public class CommandHelp : Command
{
public CommandHelp(System.ComponentModel.IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandHelp(System.ComponentModel.IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
//
// TODO: Add any constructor code after InitializeComponent call
//
}
public CommandHelp()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandHelp()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,55 +5,53 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandIndent : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandIndent : Command
{
public CommandIndent(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandIndent(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
//
//
//
}
//
//
//
}
public CommandIndent()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
public CommandIndent()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

View File

@ -5,48 +5,46 @@ using System.ComponentModel;
namespace OpenLiveWriter.ApplicationFramework.Commands
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandInsertLink : Command
{
/// <summary>
/// Summary description for CommandCopy.
/// </summary>
public class CommandInsertLink : Command
{
public CommandInsertLink(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
}
public CommandInsertLink(IContainer container)
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
}
public CommandInsertLink()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
InitializeComponent();
}
public CommandInsertLink()
{
///
/// Required for Windows.Forms Class Composition Designer support
///
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
/// <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
}
}
#endregion
}
}

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