Merge branch 'master' into google-blogger
This commit is contained in:
commit
bd34aecf68
|
@ -198,3 +198,6 @@ FakesAssemblies/
|
|||
|
||||
# Visual Studio 6 workspace options file
|
||||
*.opt
|
||||
|
||||
#Visual Studio specific files
|
||||
*.VC.opendb
|
||||
|
|
|
@ -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.
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace BlogRunnerGui
|
||||
namespace BlogRunnerGui
|
||||
{
|
||||
partial class FileInput
|
||||
{
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace BlogRunnerGui
|
||||
namespace BlogRunnerGui
|
||||
{
|
||||
partial class Form1
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -17,7 +17,6 @@ namespace OpenLiveWriter.Test
|
|||
private readonly ContentEditorFactory factory;
|
||||
private readonly IContentEditor editor;
|
||||
|
||||
|
||||
public CanvasForm()
|
||||
{
|
||||
InitializeComponent();
|
||||
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
namespace OpenLiveWriter.Test
|
||||
namespace OpenLiveWriter.Test
|
||||
{
|
||||
partial class CanvasForm
|
||||
{
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
@ -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"));
|
||||
|
@ -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;
|
||||
|
||||
|
|
|
@ -184,4 +184,3 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -98,7 +98,6 @@ namespace OpenLiveWriter.Api
|
|||
private HtmlScreenCaptureCore _htmlScreenCapture;
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Provides data for the HtmlScreenCaptureAvailable event.
|
||||
/// </summary>
|
||||
|
@ -184,5 +183,4 @@ namespace OpenLiveWriter.Api
|
|||
/// </summary>
|
||||
public delegate void HtmlDocumentAvailableHandler(object sender, HtmlDocumentAvailableEventArgs e);
|
||||
|
||||
|
||||
}
|
||||
|
|
|
@ -83,7 +83,5 @@ namespace OpenLiveWriter.Api
|
|||
IPostInfo PostInfo { get; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -38,7 +38,6 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// SmartContent object alignment.
|
||||
/// </summary>
|
||||
|
@ -195,6 +194,5 @@ namespace OpenLiveWriter.Api
|
|||
string[] Filenames { get; }
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
using System;
|
||||
|
||||
|
||||
namespace OpenLiveWriter.Api
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -12,7 +12,6 @@ using System.Runtime.InteropServices;
|
|||
using OpenLiveWriter.Interop.Windows;
|
||||
using OpenLiveWriter.CoreServices;
|
||||
|
||||
|
||||
namespace OpenLiveWriter.Api
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -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
|
||||
|
|
|
@ -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,7 +80,6 @@ namespace OpenLiveWriter.Api
|
|||
ContentEdited(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
|
||||
private void InitializeComponent()
|
||||
{
|
||||
//
|
||||
|
|
|
@ -66,7 +66,6 @@ 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
|
||||
|
|
|
@ -79,7 +79,6 @@ namespace OpenLiveWriter.Api
|
|||
{
|
||||
TResult result = default(TResult);
|
||||
|
||||
|
||||
if (Application.MessageLoop)
|
||||
{
|
||||
Exception e = null;
|
||||
|
|
|
@ -95,7 +95,6 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
private string _progressMessage = String.Empty;
|
||||
|
||||
|
||||
private bool ValidateRegex(string pattern)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -63,7 +63,6 @@ namespace OpenLiveWriter.Api
|
|||
_application.ShowOptions(optionsPage);
|
||||
}
|
||||
|
||||
|
||||
[ComImport]
|
||||
[Guid("366FF6CE-CA04-433D-8522-741094458839")]
|
||||
private class OpenLiveWriterApplicationClass { } // implements IOpenLiveWriterApplication
|
||||
|
|
|
@ -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>
|
||||
|
@ -160,7 +159,6 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
private bool _hasEditableOptions = false;
|
||||
|
||||
|
||||
private bool ValidateGuid(string id)
|
||||
{
|
||||
try
|
||||
|
|
|
@ -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();
|
||||
|
|
|
@ -471,7 +471,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// The primary workspace command bar text color.
|
||||
/// </summary>
|
||||
|
|
|
@ -42,8 +42,6 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
|||
ApplicationStylePreferences.CheckForChanges() ;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// Get the ApplicationStylePreferences instance for the current thread
|
||||
/// </summary>
|
||||
private static ApplicationStylePreferences ApplicationStylePreferences
|
||||
|
@ -61,8 +59,6 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
|||
private static ApplicationStylePreferences _applicationStylePreferences ;
|
||||
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
}
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -831,4 +831,3 @@ namespace Project31.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -104,6 +104,5 @@ namespace Project31.ApplicationFramework
|
|||
base.OnPaint(e);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -317,7 +317,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
#endregion Public Properties
|
||||
|
||||
#region Protected Methods
|
||||
|
|
|
@ -41,7 +41,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
//
|
||||
this.Name = "ColorDialogLauncherControl";
|
||||
this.Size = new System.Drawing.Size(108, 24);
|
||||
this.Text = "&More Colors…";
|
||||
this.Text = "&More Colors…";
|
||||
}
|
||||
#endregion
|
||||
|
||||
|
|
|
@ -274,7 +274,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public abstract class IColorPickerSubControl : System.Windows.Forms.UserControl
|
||||
{
|
||||
/// <summary>
|
||||
|
|
|
@ -128,8 +128,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
Invalidate();
|
||||
}
|
||||
|
||||
|
||||
|
||||
const int PADDING = 6;
|
||||
const int GUTTER_SIZE = 3;
|
||||
const int COLOR_SIZE = 14;
|
||||
|
|
|
@ -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.
|
||||
|
@ -1186,7 +1181,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets the command bar button mini form factory
|
||||
/// </summary>
|
||||
|
@ -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>
|
||||
|
|
|
@ -14,7 +14,6 @@ using OpenLiveWriter.Controls;
|
|||
using OpenLiveWriter.CoreServices;
|
||||
using OpenLiveWriter.Localization.Bidi;
|
||||
|
||||
|
||||
namespace OpenLiveWriter.ApplicationFramework
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -400,7 +399,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private int SnapButtonHeight(int height)
|
||||
{
|
||||
// large buttons always occupy 42 pixels
|
||||
|
@ -1159,7 +1157,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
EndShowContextMenu();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Initialize state/UI for context menu
|
||||
/// </summary>
|
||||
|
@ -1201,7 +1198,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
private static ColorMatrix _highContrastColorMatrix;
|
||||
|
||||
|
||||
#endregion Private Methods
|
||||
|
||||
#region Private Event Handlers
|
||||
|
@ -1265,8 +1261,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
void Paint(BidiGraphics g, Rectangle bounds, DrawState drawState);
|
||||
}
|
||||
|
||||
|
||||
|
||||
public override bool DoDefaultAction()
|
||||
{
|
||||
if (ContextMenuUserInterface || DropDownContextMenuUserInterface)
|
||||
|
|
|
@ -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)
|
||||
|
|
|
@ -62,7 +62,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
|
|
|
@ -410,7 +410,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
protected bool UseHighContrastMode
|
||||
{
|
||||
get { return SystemInformation.HighContrast; }
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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);
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -48,7 +48,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
|
||||
#endregion Public Events
|
||||
|
||||
|
||||
#region Class Initialization & Termination
|
||||
|
||||
/// <summary>
|
||||
|
|
|
@ -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
|
||||
|
@ -120,8 +119,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
User32.SendMessage(_parentFrame.Handle, WM.NCACTIVATE, new UIntPtr(1), IntPtr.Zero);
|
||||
}
|
||||
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Automatically close when the form is deactivated
|
||||
/// </summary>
|
||||
|
@ -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,9 +201,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
/*
|
||||
protected override bool ProcessKeyPreview(ref Message m)
|
||||
{
|
||||
|
@ -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);
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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];
|
||||
|
|
|
@ -223,6 +223,5 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
Visible = command.VisibleOnMainMenu;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -50,7 +50,6 @@ 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.
|
||||
|
|
|
@ -31,7 +31,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
///
|
||||
InitializeComponent();
|
||||
|
||||
|
||||
}
|
||||
|
||||
#region Component Designer generated code
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -38,8 +38,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -55,7 +55,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -55,7 +55,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -36,8 +36,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -27,8 +27,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
InitializeComponent();
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -38,8 +38,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -29,8 +29,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -29,8 +29,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -29,8 +29,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -39,8 +39,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -38,8 +38,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -35,8 +35,6 @@ namespace OpenLiveWriter.ApplicationFramework.Commands
|
|||
//
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -16,7 +16,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
_parentControl = parentControl;
|
||||
}
|
||||
|
||||
|
||||
public bool HasFocus
|
||||
{
|
||||
get
|
||||
|
@ -192,14 +191,12 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
AggressiveCommandStateChanged(this, EventArgs.Empty);
|
||||
}
|
||||
|
||||
|
||||
private TextBoxBase FindFocusedTextBox()
|
||||
{
|
||||
Control focusedControl = ControlHelper.FindFocused(_parentControl);
|
||||
return focusedControl as TextBoxBase;
|
||||
}
|
||||
|
||||
|
||||
private Control _parentControl;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -50,7 +50,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -50,7 +50,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
base.Dispose( disposing );
|
||||
}
|
||||
|
||||
|
||||
#region Component Designer generated code
|
||||
/// <summary>
|
||||
/// Required method for Designer support - do not modify
|
||||
|
|
|
@ -23,7 +23,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
InitializeCommands();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Get the underlying command identifiers managed by this dynamic command menu
|
||||
/// (this would allow us to embed these commands within the scope of a context-menu definition)
|
||||
|
@ -41,8 +40,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
// <summary>
|
||||
/// Clean up any resources being used.
|
||||
/// </summary>
|
||||
|
@ -57,8 +54,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void InitializeCommands()
|
||||
{
|
||||
Context.CommandManager.BeginUpdate();
|
||||
|
@ -110,7 +105,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
Context.CommandManager.EndUpdate();
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// BeforeShowInMenu to dynamically update the contents of the window menu
|
||||
/// </summary>
|
||||
|
@ -165,15 +159,12 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
private void command_Execute(object sender, EventArgs ea)
|
||||
{
|
||||
// notify context
|
||||
Context.CommandExecuted((sender as Command).Tag as IMenuCommandObject);
|
||||
}
|
||||
|
||||
|
||||
private void commandMore_Execute(object sender, EventArgs ea)
|
||||
{
|
||||
using (DynamicCommandMenuOverflowForm form = new DynamicCommandMenuOverflowForm(Context.GetMenuCommandObjects()))
|
||||
|
@ -191,14 +182,12 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
private IDynamicCommandMenuContext Context
|
||||
{
|
||||
get { return _context; }
|
||||
}
|
||||
private IDynamicCommandMenuContext _context;
|
||||
|
||||
|
||||
private ArrayList _commands = new ArrayList();
|
||||
|
||||
private Command commandMore;
|
||||
|
@ -207,9 +196,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
public interface IDynamicCommandMenuContext
|
||||
{
|
||||
/// <summary>
|
||||
|
@ -235,7 +221,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
void CommandExecuted(IMenuCommandObject menuCommandObject);
|
||||
}
|
||||
|
||||
|
||||
public interface IMenuCommandObject
|
||||
{
|
||||
Bitmap Image { get; }
|
||||
|
@ -245,7 +230,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
string CaptionNoMnemonic { get; }
|
||||
}
|
||||
|
||||
|
||||
public class DynamicCommandMenuOptions
|
||||
{
|
||||
public DynamicCommandMenuOptions(string mainMenuBasePath, int menuMergeOffset)
|
||||
|
@ -253,7 +237,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
{
|
||||
}
|
||||
|
||||
|
||||
public DynamicCommandMenuOptions(
|
||||
string mainMenuBasePath, int menuMergeOffset,
|
||||
string moreCommandsMenuCaption, string moreCommandsDialogTitle)
|
||||
|
@ -281,7 +264,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
/// </summary>
|
||||
public readonly int MenuMergeOffset;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Menu caption to be used if more commands are available than are displayable on the menu
|
||||
/// (you can display up to 9 on the menu). If null then no 'More' option is provided.
|
||||
|
@ -293,7 +275,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
/// </summary>
|
||||
public readonly string MoreCommandsDialogTitle;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Maximum number of commands to show on the menu (must be from 1 to 9)
|
||||
/// </summary>
|
||||
|
@ -313,7 +294,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
private int _maxCommandsShownOnMenu;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Should we add numeric Mnemonics to the commands
|
||||
/// </summary>
|
||||
|
@ -325,8 +305,5 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
public bool SeparatorBegin;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
|
|
@ -41,7 +41,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
listBoxCommands.SelectedIndex = 0;
|
||||
}
|
||||
|
||||
|
||||
public IMenuCommandObject SelectedObject
|
||||
{
|
||||
get
|
||||
|
@ -58,7 +57,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
DialogResult = DialogResult.OK;
|
||||
}
|
||||
|
||||
|
||||
private class MenuCommandObjectListBoxAdapter
|
||||
{
|
||||
public MenuCommandObjectListBoxAdapter(IMenuCommandObject menuCommandObject)
|
||||
|
@ -151,6 +149,5 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
#endregion
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
|
@ -235,7 +235,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
Layout(this, ea);
|
||||
}
|
||||
|
||||
|
||||
public void OnKeyboardLanguageChanged()
|
||||
{
|
||||
}
|
||||
|
@ -243,6 +242,3 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -66,7 +66,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
VirtualTransparency.VirtualPaint(this, e);
|
||||
}
|
||||
|
||||
|
||||
public bool Faded
|
||||
{
|
||||
get { return _faded; }
|
||||
|
|
|
@ -96,9 +96,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
{
|
||||
|
||||
|
@ -131,7 +128,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
if (!selected && !SystemInformation.HighContrast)
|
||||
{
|
||||
|
|
|
@ -179,8 +179,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
PerformLayout();
|
||||
Invalidate();
|
||||
|
||||
|
||||
|
||||
if (selectedIndex >= 0 && SelectedTabChanged != null)
|
||||
SelectedTabChanged(this, new SelectedTabChangedEventArgs(selectedIndex));
|
||||
}
|
||||
|
@ -219,7 +217,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
GraphicsHelper.TileFillScaledImageHorizontally(g, ColorizedResources.Instance.DropShadowBitmap, new Rectangle(0, 0, ShadowWidth, ColorizedResources.Instance.DropShadowBitmap.Height));
|
||||
}
|
||||
|
||||
|
||||
base.OnPaint(e);
|
||||
}
|
||||
|
||||
|
|
|
@ -708,7 +708,6 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
return KeyboardHelper.FormatShortcutString(shortcut);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
internal interface IMainMenuBackgroundPainter
|
||||
|
|
|
@ -18,8 +18,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
|
|||
{
|
||||
#region Static & Constant Declarations
|
||||
|
||||
|
||||
|
||||
#endregion Static & Constant Declarations
|
||||
|
||||
#region Private Member Variables
|
||||
|
@ -201,7 +199,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
|
|||
|
||||
#region Private Methods
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Configure change monitoring for this prefs object
|
||||
/// </summary>
|
||||
|
@ -242,7 +239,6 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Monitor changes in the registry key for this prefs object
|
||||
/// </summary>
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue