Fix spelling errors in comments (#663)
Changes an example to use example.net and adds a trailing slash
This commit is contained in:
parent
74a39a18a1
commit
87c151e9b1
|
@ -27,7 +27,7 @@ namespace BlogRunner.Core
|
|||
|
||||
public void RunTests(Provider provider, Blog blog, XmlElement providerEl)
|
||||
{
|
||||
using (new BlogClientUIContextSilentMode()) //supress prompting for credentials
|
||||
using (new BlogClientUIContextSilentMode()) //suppress prompting for credentials
|
||||
{
|
||||
TemporaryBlogCredentials credentials = new TemporaryBlogCredentials();
|
||||
credentials.Username = blog.Username;
|
||||
|
|
|
@ -36,7 +36,7 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create content using the contents of a LiveClipboad Xml document. Plugin classes which override
|
||||
/// Create content using the contents of a LiveClipboard Xml document. Plugin classes which override
|
||||
/// this method must also be declared with the LiveClipboardContentSourceAttribute.
|
||||
/// </summary>
|
||||
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
|
||||
|
|
|
@ -54,7 +54,7 @@ namespace OpenLiveWriter.Api
|
|||
|
||||
/// <summary>
|
||||
/// Indicates that a a candidate screen capture is available. This event
|
||||
/// allows subscribers to examine the screen captue bitmap in order to determine
|
||||
/// allows subscribers to examine the screen capture bitmap in order to determine
|
||||
/// whether the page is fully loaded and ready for capture.
|
||||
/// </summary>
|
||||
public event HtmlScreenCaptureAvailableHandler HtmlScreenCaptureAvailable;
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace OpenLiveWriter.Api
|
|||
Unknown,
|
||||
|
||||
/// <summary>
|
||||
/// The feature is suported.
|
||||
/// The feature is supported.
|
||||
/// </summary>
|
||||
Yes,
|
||||
|
||||
|
|
|
@ -157,7 +157,7 @@ namespace OpenLiveWriter.Api
|
|||
/// Add an image to the list of supporting files.
|
||||
/// </summary>
|
||||
/// <param name="fileName">Name of supporting file.</param>
|
||||
/// <param name="image">Souce image</param>
|
||||
/// <param name="image">Source image</param>
|
||||
/// <param name="imageFormat">Source image format</param>
|
||||
void AddImage(string fileName, Image image, ImageFormat imageFormat);
|
||||
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace OpenLiveWriter.Api
|
|||
/// <summary>
|
||||
/// Initialize a new instance of an InsertableContentSourceAttribute.
|
||||
/// </summary>
|
||||
/// <param name="menuText">Text used to describe the insertable contnet on the Insert menu.</param>
|
||||
/// <param name="menuText">Text used to describe the insertable content on the Insert menu.</param>
|
||||
public InsertableContentSourceAttribute(string menuText)
|
||||
{
|
||||
MenuText = menuText;
|
||||
|
@ -23,7 +23,7 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Text used to describe the insertable contnet on the Insert menu.
|
||||
/// Text used to describe the insertable content on the Insert menu.
|
||||
/// </summary>
|
||||
public string MenuText
|
||||
{
|
||||
|
|
|
@ -88,7 +88,7 @@ namespace OpenLiveWriter.Api
|
|||
|
||||
/// <summary>
|
||||
/// End-user presentable description of the data format handled by this ContentSource.
|
||||
/// (used within the Live Clipbaord Preferences panel (Optional).
|
||||
/// (used within the Live Clipboard Preferences panel (Optional).
|
||||
/// </summary>
|
||||
public string Description
|
||||
{
|
||||
|
@ -109,7 +109,7 @@ namespace OpenLiveWriter.Api
|
|||
/// <summary>
|
||||
/// Content sub-type handled by this content source. (corresponds to the
|
||||
/// type attribute of the <lc:format> tag). Optional (required only
|
||||
/// for formats which require additional disambiguration of the contentType
|
||||
/// for formats which require additional disambiguation of the contentType
|
||||
/// attribute).
|
||||
/// </summary>
|
||||
public string Type
|
||||
|
|
|
@ -44,7 +44,7 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Log an error that has occured (writes to the Open Live Writer log file
|
||||
/// Log an error that has occurred (writes to the Open Live Writer log file
|
||||
/// (located at C:\Documents and Settings\%USER%\Application Data\Open Live Writer).
|
||||
/// </summary>
|
||||
/// <param name="message">Error message to log.</param>
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace OpenLiveWriter.Api
|
|||
BypassCache,
|
||||
|
||||
/// <summary>
|
||||
/// Read from the Internet cache if possible, otherwise retreive
|
||||
/// Read from the Internet cache if possible, otherwise retrieve
|
||||
/// from the network. If the request is successful then write the
|
||||
/// response to the Internet cache.
|
||||
/// </summary>
|
||||
|
@ -34,12 +34,12 @@ namespace OpenLiveWriter.Api
|
|||
|
||||
/// <summary>
|
||||
/// Attempt to read the requested resource from the Internet cache
|
||||
/// (in no case attempt to retreive the resource from the network).
|
||||
/// (in no case attempt to retrieve the resource from the network).
|
||||
/// </summary>
|
||||
CacheOnly,
|
||||
|
||||
/// <summary>
|
||||
/// Attempt to retreive the requested resource from the network. If
|
||||
/// Attempt to retrieve the requested resource from the network. If
|
||||
/// the request is successful then write the response to the Internet cache.
|
||||
/// </summary>
|
||||
Reload
|
||||
|
@ -143,7 +143,7 @@ namespace OpenLiveWriter.Api
|
|||
private byte[] _postData;
|
||||
|
||||
/// <summary>
|
||||
/// Retreive the resource (with no timeout).
|
||||
/// Retrieve 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
|
||||
|
|
|
@ -13,7 +13,7 @@ namespace OpenLiveWriter.Api
|
|||
/// <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
|
||||
/// stateless and assume that they will be the editor for mutliple distince SmartContent objects.</para>
|
||||
/// stateless and assume that they will be the editor for multiple distince SmartContent objects.</para>
|
||||
/// </summary>
|
||||
public class SmartContentEditor : UserControl
|
||||
{
|
||||
|
|
|
@ -37,7 +37,7 @@ namespace OpenLiveWriter.Api
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Create content using the contents of a LiveClipboad Xml document. Plugin classes which override
|
||||
/// Create content using the contents of a LiveClipboard Xml document. Plugin classes which override
|
||||
/// this method must also be declared with the LiveClipboardContentSourceAttribute.
|
||||
/// </summary>
|
||||
/// <param name="dialogOwner">Owner for any dialogs shown.</param>
|
||||
|
@ -90,7 +90,7 @@ namespace OpenLiveWriter.Api
|
|||
/// <summary>
|
||||
/// Create a new SmartContentEditor for this ContentSource. The SmartContentEditor is the control
|
||||
/// that appears in the Sidebar whenever a SmartContent object created by this content source
|
||||
/// is selected within the PostEditor. This method must be overriden by all subclasses of SmartContentSource.
|
||||
/// is selected within the PostEditor. This method must be overridden by all subclasses of SmartContentSource.
|
||||
/// </summary>
|
||||
/// <param name="editorSite">Interface to the SmartContentEditor's site.</param>
|
||||
/// <returns>A new instance of a class derived from SmartContentEditor.</returns>
|
||||
|
@ -132,7 +132,7 @@ namespace OpenLiveWriter.Api
|
|||
|
||||
/// <summary>
|
||||
/// Notification that the sizing of an object is complete. The implementation of
|
||||
/// this method should update the ISmartContent object as approriate based on the
|
||||
/// this method should update the ISmartContent object as appropriate 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.
|
||||
/// </summary>
|
||||
|
@ -156,14 +156,14 @@ namespace OpenLiveWriter.Api
|
|||
|
||||
/// <summary>
|
||||
/// SmartContentSource is resizable (size grippers will appear when the object is selected within the editor).
|
||||
/// If this flag is specified as part of ResizeCapabilties then the OnResizeComplete method should also be
|
||||
/// If this flag is specified as part of ResizeCapabilities then the OnResizeComplete method should also be
|
||||
/// overridden to update the ISmartContent as necessary with the new size of the SmartContent object.
|
||||
/// </summary>
|
||||
Resizable = 1,
|
||||
|
||||
/// <summary>
|
||||
/// Preserve the aspect ratio of the object during resizing. The default aspect ratio to be enforced is the
|
||||
/// ratio of the object prior to resizing. If the desired aspect ratio is staticly known it is highly recommended
|
||||
/// ratio of the object prior to resizing. If the desired aspect ratio is statically known it is highly recommended
|
||||
/// that this ratio be specified within an override of the OnResizeStart method (will eliminate the problem
|
||||
/// of "creeping" change to the aspect ratios with continued resizing).
|
||||
/// </summary>
|
||||
|
@ -171,7 +171,7 @@ namespace OpenLiveWriter.Api
|
|||
|
||||
/// <summary>
|
||||
/// Update the appearance of the smart content object in realtime as the user resizes the object. If this
|
||||
/// flag is specified then the OnResizing method should be overriden to update the state of the ISmartContent
|
||||
/// flag is specified then the OnResizing method should be overridden 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.
|
||||
/// </summary>
|
||||
|
@ -199,8 +199,8 @@ namespace OpenLiveWriter.Api
|
|||
private string _resizableElementId = null;
|
||||
|
||||
/// <summary>
|
||||
/// 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
|
||||
/// Aspect ratio to be enforced if the ResizeCapabilities.PreserveAspectRatio flag is specified. If the
|
||||
/// desired aspect ratio is statically 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).
|
||||
/// </summary>
|
||||
public double AspectRatio
|
||||
|
|
|
@ -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 ability 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
|
||||
|
|
|
@ -124,7 +124,7 @@ namespace OpenLiveWriter.Api
|
|||
private string _description = String.Empty;
|
||||
|
||||
/// <summary>
|
||||
/// URL of the publisher for the Plugin (linked to from Plugins Preferneces panel). Optional.
|
||||
/// URL of the publisher for the Plugin (linked to from Plugins Preferences panel). Optional.
|
||||
/// </summary>
|
||||
public string PublisherUrl
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
|||
private Container components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new insance of the ApplicationStyleSienna class.
|
||||
/// Initializes a new instance of the ApplicationStyleSienna class.
|
||||
/// </summary>
|
||||
public ApplicationStyleLavender()
|
||||
{
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace OpenLiveWriter.ApplicationFramework.ApplicationStyles
|
|||
private Container components = null;
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new insance of the ApplicationStyleSienna class.
|
||||
/// Initializes a new instance of the ApplicationStyleSienna class.
|
||||
/// </summary>
|
||||
public ApplicationStyleSienna()
|
||||
{
|
||||
|
|
|
@ -1004,7 +1004,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Set the text.
|
||||
commandBarButtonText = value;
|
||||
|
||||
// Fire the CommandBarButtonTextChangd event.
|
||||
// Fire the CommandBarButtonTextChanged event.
|
||||
OnCommandBarButtonTextChanged(EventArgs.Empty);
|
||||
}
|
||||
}
|
||||
|
@ -1056,7 +1056,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// set the value
|
||||
commandBarButtonBitmapEnabled = value;
|
||||
|
||||
// since other command bar states can be auto-derivied from enabled we
|
||||
// since other command bar states can be auto-derived from enabled we
|
||||
// need to null them out so they can be updated
|
||||
commandBarButtonBitmapSelected = null;
|
||||
commandBarButtonBitmapPushed = null;
|
||||
|
|
|
@ -1064,7 +1064,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
{
|
||||
if (Command != null)
|
||||
{
|
||||
// calcualte point to show context menu at as well as alternative point
|
||||
// calculate point to show context menu at as well as alternative point
|
||||
// in the case where the menu might go off the right edge of the screen
|
||||
Point menuLocation = VirtualClientPointToScreen(new Point(0, VirtualHeight));
|
||||
int alternativeLocation = VirtualClientPointToScreen(new Point(VirtualWidth, VirtualHeight)).X;
|
||||
|
|
|
@ -8,7 +8,7 @@ using OpenLiveWriter.Controls;
|
|||
namespace OpenLiveWriter.ApplicationFramework
|
||||
{
|
||||
/// <summary>
|
||||
/// Command bar control entry. Allows any control to be added to a command bar defintion.
|
||||
/// Command bar control entry. Allows any control to be added to a command bar definition.
|
||||
/// </summary>
|
||||
[
|
||||
DesignTimeVisible(false),
|
||||
|
|
|
@ -68,10 +68,10 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Run the context menu.
|
||||
Command command = commandContextMenu.ShowModal(parentWindow, position, alternateXPosition);
|
||||
|
||||
// Restore our parent window's contetx menu.
|
||||
// Restore our parent window's context menu.
|
||||
parentWindow.ContextMenu = parentContextMenu;
|
||||
|
||||
// Dipose of the context menu.
|
||||
// Dispose of the context menu.
|
||||
commandContextMenu.Dispose();
|
||||
|
||||
// Return the selected command.
|
||||
|
@ -120,10 +120,10 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Run the context menu.
|
||||
Command command = commandContextMenu.ShowModal(parentWindow, position, alternateXPosition);
|
||||
|
||||
// Restore our parent window's contetx menu.
|
||||
// Restore our parent window's context menu.
|
||||
parentWindow.ContextMenu = parentContextMenu;
|
||||
|
||||
// Dipose of the context menu.
|
||||
// Dispose of the context menu.
|
||||
commandContextMenu.Dispose();
|
||||
|
||||
// Return the selected command.
|
||||
|
@ -159,10 +159,10 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Run the context menu.
|
||||
Command command = commandContextMenu.ShowModal(parentWindow, position, alternateXPosition);
|
||||
|
||||
// Restore our parent window's contetx menu.
|
||||
// Restore our parent window's context menu.
|
||||
parentWindow.ContextMenu = parentContextMenu;
|
||||
|
||||
// Dipose of the context menu.
|
||||
// Dispose of the context menu.
|
||||
commandContextMenu.Dispose();
|
||||
|
||||
// Return the selected command.
|
||||
|
|
|
@ -18,7 +18,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
{
|
||||
/* 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
|
||||
* commands (tab, enter, escape, alt-mnemonics, 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'
|
||||
|
@ -131,7 +131,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// (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
|
||||
// winodw -- this allows the mouse event to trigger and the
|
||||
// window -- this allows the mouse event to trigger and the
|
||||
// form to go away almost instantly
|
||||
Timer closeDelayTimer = new Timer();
|
||||
closeDelayTimer.Tick += new EventHandler(closeDelayTimer_Tick);
|
||||
|
@ -158,7 +158,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// handle painting
|
||||
protected override void OnPaint(PaintEventArgs e)
|
||||
{
|
||||
// get refrence to graphics context
|
||||
// get reference to graphics context
|
||||
Graphics g = e.Graphics;
|
||||
|
||||
// fill background
|
||||
|
@ -273,7 +273,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
/// </summary>
|
||||
private readonly Bitmap miniFormBevelBitmap = ResourceHelper.LoadAssemblyResourceBitmap("Images.CommandBar.MiniFormBevel.png");
|
||||
|
||||
// layout and drawing contants
|
||||
// layout and drawing constants
|
||||
private const int HEADER_INSET = 2;
|
||||
private const int HEADER_HEIGHT = 17;
|
||||
private const int HORIZONTAL_INSET = 10;
|
||||
|
|
|
@ -109,7 +109,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
|
||||
/// <summary>
|
||||
/// The cross-referenced set of active Shortcuts. Keyed by Command.Shortcut. This table
|
||||
/// is not contructed or maintained until it is first used.
|
||||
/// is not constructed or maintained until it is first used.
|
||||
/// </summary>
|
||||
private Hashtable commandShortcutTable = null;
|
||||
|
||||
|
@ -127,14 +127,14 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
|
||||
/// <summary>
|
||||
/// The cross-referenced set of active AcceleratorMnemonic values. Keyed by Command.AcceleratorMnemonic.
|
||||
/// This table is not contructed or maintained until it is first used.
|
||||
/// This table is not constructed or maintained until it is first used.
|
||||
/// </summary>
|
||||
private Hashtable acceleratorMnemonicTable = null;
|
||||
|
||||
/// <summary>
|
||||
/// The cross-referenced set of active CommandBarButtonContextMenuAcceleratorMnemonic
|
||||
/// values. Keyed by Command.CommandBarButtonContextMenuAcceleratorMnemonic. This table is
|
||||
/// not contructed or maintained until it is first used.
|
||||
/// not constructed or maintained until it is first used.
|
||||
/// </summary>
|
||||
private Hashtable commandBarButtonContextMenuAcceleratorMnemonicTable = null;
|
||||
|
||||
|
|
|
@ -58,7 +58,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
private void InitializeComponent()
|
||||
{
|
||||
//
|
||||
// NoValidHyperlinkSpecifiedDisplayMesssage
|
||||
// NoValidHyperlinkSpecifiedDisplayMessage
|
||||
//
|
||||
this.Text = "You must specify a valid hyperlink.";
|
||||
this.Title = "Hyperlink Not Specified";
|
||||
|
|
|
@ -85,7 +85,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// add the command to our internal list
|
||||
_commands.Add(command);
|
||||
|
||||
// add the command to the system command manaager
|
||||
// add the command to the system command manager
|
||||
Context.CommandManager.Add(command);
|
||||
}
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ namespace Project31.ApplicationFramework
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Menu mergers and aquisitions.
|
||||
/// Menu mergers and acquisitions.
|
||||
/// </summary>
|
||||
internal class MergeMenu
|
||||
{
|
||||
|
|
|
@ -337,7 +337,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
Size textSize = MeasureMenuItemText(e.Graphics, MenuText());
|
||||
|
||||
// Determine the size of the shortcut. If this item does not show a shortcut,
|
||||
// measure a defauly shortcut so it aligns with other menu entries.
|
||||
// measure a default shortcut so it aligns with other menu entries.
|
||||
Size shortcutSize;
|
||||
if (ShowShortcut && Shortcut != Shortcut.None)
|
||||
shortcutSize = MeasureShortcutMenuItemText(e.Graphics, FormatShortcutString(Shortcut));
|
||||
|
@ -528,7 +528,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Fill the menu item with the system-defined menu color.
|
||||
g.FillRectangle(SystemBrushes.Menu, bounds);
|
||||
|
||||
// Fill the bitmap area with the system-defind control color.
|
||||
// Fill the bitmap area with the system-defined control color.
|
||||
Rectangle bitmapAreaRectangle = new Rectangle(bounds.X,
|
||||
bounds.Y,
|
||||
STANDARD_BITMAP_AREA_WIDTH,
|
||||
|
@ -561,7 +561,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Calculate the text area rectangle. This area excludes an area at the right
|
||||
// edge of the menu item where the system draws the cascade indicator. It would
|
||||
// have been better if MenuItem let us draw the indicator (we did say "OwnerDraw"
|
||||
// afterall), but this is just how it works.
|
||||
// after all), but this is just how it works.
|
||||
Rectangle textAreaRectangle = new Rectangle(bounds.X + STANDARD_BITMAP_AREA_WIDTH + STANDARD_TEXT_PADDING,
|
||||
bounds.Y,
|
||||
bounds.Width - (STANDARD_BITMAP_AREA_WIDTH + STANDARD_TEXT_PADDING + STANDARD_RIGHT_EDGE_PAD),
|
||||
|
|
|
@ -81,7 +81,7 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
|
|||
/// Initializes a new instance of the Preferences class (optionally enable change monitoring)
|
||||
/// </summary>
|
||||
/// <param name="subKey">sub-key name</param>
|
||||
/// <param name="monitorChanges">specifies whether the creator intendes to monitor
|
||||
/// <param name="monitorChanges">specifies whether the creator intends to monitor
|
||||
/// this prefs object for changes by calling the CheckForChanges method</param>
|
||||
public Preferences(string subKey, bool monitorChanges)
|
||||
{
|
||||
|
|
|
@ -204,7 +204,7 @@ namespace OpenLiveWriter.ApplicationFramework.Preferences
|
|||
/// <param name="e">An EventArgs that contains the event data.</param>
|
||||
private void preferences_PreferencesModified(object sender, EventArgs e)
|
||||
{
|
||||
// Raise the Modified evebt.
|
||||
// Raise the Modified event.
|
||||
OnModified(EventArgs.Empty);
|
||||
}
|
||||
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
|
||||
public static Bitmap GetGalleryItemImageFromCommand(CommandManager commandManager, CommandId commandId)
|
||||
{
|
||||
// @RIBBON TODO: Deal with high constrast appropriately
|
||||
// @RIBBON TODO: Deal with high contrast appropriately
|
||||
Command command = commandManager.Get(commandId);
|
||||
if (command != null)
|
||||
return command.LargeImage;
|
||||
|
|
|
@ -263,7 +263,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
}
|
||||
|
||||
// overrideable methods used to customize the UI of the satellite form
|
||||
// overridable methods used to customize the UI of the satellite form
|
||||
//protected virtual CommandBarDefinition FirstCommandBarDefinition { get { return null; } }
|
||||
|
||||
protected virtual Control CreateMainControl() { return null; }
|
||||
|
@ -276,7 +276,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// get{ return _commandBarControl; }
|
||||
//}
|
||||
|
||||
// overrieable processing methods
|
||||
// overridable processing methods
|
||||
protected virtual void OnBackgroundTimerTick() { }
|
||||
|
||||
// override to let base know if the main menu is visible
|
||||
|
|
|
@ -417,7 +417,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
|
||||
#region Private Event Handlers
|
||||
/// <summary>
|
||||
/// Propogates the mouse event from the attached control.
|
||||
/// Propagates the mouse event from the attached control.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
@ -427,7 +427,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Propogates the mouse event from the attached control.
|
||||
/// Propagates the mouse event from the attached control.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
@ -437,7 +437,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Propogates the mouse event from the attached control.
|
||||
/// Propagates the mouse event from the attached control.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
@ -447,7 +447,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Propogates the mouse event from the attached control.
|
||||
/// Propagates the mouse event from the attached control.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
@ -457,7 +457,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Propogates the mouse event from the attached control.
|
||||
/// Propagates the mouse event from the attached control.
|
||||
/// </summary>
|
||||
/// <param name="sender"></param>
|
||||
/// <param name="e"></param>
|
||||
|
|
|
@ -68,12 +68,12 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
private bool drawSideAndBottomTabPageBorders = true;
|
||||
|
||||
/// <summary>
|
||||
/// A value indicating whether the tab selecter area is scrollable.
|
||||
/// A value indicating whether the tab selector area is scrollable.
|
||||
/// </summary>
|
||||
private bool scrollableTabSelectorArea = false;
|
||||
|
||||
/// <summary>
|
||||
/// A value indicating whether the tab selecter area will allow tab text/bitmaps to be clipped.
|
||||
/// A value indicating whether the tab selector area will allow tab text/bitmaps to be clipped.
|
||||
/// </summary>
|
||||
private bool allowTabClipping = false;
|
||||
|
||||
|
@ -297,7 +297,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value indicating whether the tab selecter area is scrollable.
|
||||
/// Gets or sets a value indicating whether the tab selector area is scrollable.
|
||||
/// </summary>
|
||||
[
|
||||
Category("Appearance"),
|
||||
|
@ -324,7 +324,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets whether the tab selecter area will allow tab text/bitmaps to be clipped.
|
||||
/// Gets or sets whether the tab selector area will allow tab text/bitmaps to be clipped.
|
||||
/// If false, text or bitmaps will be dropped to shrink the tab size.
|
||||
/// </summary>
|
||||
[
|
||||
|
@ -749,7 +749,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
x += previousTabEntry.IsSelected ? -PAD + 1 : -1;
|
||||
int y = Math.Max(0, tabSelectorAreaSize.Height - tabEntry.TabSelectorLightweightControl.VirtualBounds.Height);
|
||||
|
||||
// Latout the tab entry.
|
||||
// Layout the tab entry.
|
||||
tabEntry.TabSelectorLightweightControl.VirtualLocation = new Point(x - tabScrollerPosition, y);
|
||||
|
||||
// Adjust the x offset to account for the tab entry.
|
||||
|
|
|
@ -8,8 +8,8 @@ using System.Windows.Forms;
|
|||
namespace OpenLiveWriter.ApplicationFramework
|
||||
{
|
||||
/// <summary>
|
||||
/// Helper control for TabLightwieightControl. The TabPageContainer provides the
|
||||
/// container control below the tabs and is the parent of the TabPage controls of the TabLightwieightControl
|
||||
/// Helper control for TabLightweightControl. The TabPageContainer provides the
|
||||
/// container control below the tabs and is the parent of the TabPage controls of the TabLightweightControl
|
||||
/// are shown/hidden.
|
||||
/// </summary>
|
||||
public class TabPageContainerControl : UserControl
|
||||
|
|
|
@ -27,7 +27,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
private Timer timerAutoScroll;
|
||||
|
||||
/// <summary>
|
||||
/// A value indicating wheter auto-scroll occurred. This value is used to suppress the
|
||||
/// A value indicating whether auto-scroll occurred. This value is used to suppress the
|
||||
/// Scroll event, which we do not want to fire if we auto-scrolled.
|
||||
/// </summary>
|
||||
private bool autoScrollOccurred = false;
|
||||
|
@ -206,7 +206,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
1,
|
||||
faceRectangle.Height - 1);
|
||||
|
||||
// Draw the botom edge.
|
||||
// Draw the bottom edge.
|
||||
e.Graphics.FillRectangle(solidBrush,
|
||||
faceRectangle.X,
|
||||
faceRectangle.Bottom - 1,
|
||||
|
|
|
@ -675,7 +675,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Make the command bar visible before getting height.
|
||||
FirstCommandBarLightweightControl.Visible = true;
|
||||
|
||||
// Obtaing the height and lay it out.
|
||||
// Obtain the height and lay it out.
|
||||
int firstCommandBarHeight = FirstCommandBarLightweightControl.DefaultVirtualSize.Height;
|
||||
FirstCommandBarLightweightControl.VirtualBounds = new Rectangle(0, commandBarAreaHeight, Width, firstCommandBarHeight);
|
||||
|
||||
|
@ -700,7 +700,7 @@ namespace OpenLiveWriter.ApplicationFramework
|
|||
// Make the command bar visible before getting height.
|
||||
SecondCommandBarLightweightControl.Visible = true;
|
||||
|
||||
// Obtaing the height and lay it out.
|
||||
// Obtain the height and lay it out.
|
||||
int secondCommandBarHeight = SecondCommandBarLightweightControl.DefaultVirtualSize.Height;
|
||||
SecondCommandBarLightweightControl.VirtualBounds = new Rectangle(0, commandBarAreaHeight, Width, secondCommandBarHeight);
|
||||
|
||||
|
|
|
@ -43,7 +43,7 @@ namespace OpenLiveWriter.BlogClient
|
|||
/// <summary>
|
||||
/// Class used to install and remove (on dispose) the UI context for the currently
|
||||
/// running thread. To enforce the idiom of install/remove this is the ONLY
|
||||
/// suppported mechanism for manipulating the UI context. This class should be
|
||||
/// supported mechanism for manipulating the UI context. This class should be
|
||||
/// instantiated under a "using" statement on every thread that will call
|
||||
/// BlogClient code. Further, every time a new dialog box which may call blog
|
||||
/// client code (e.g. OpenPost, UpdateTemplate, etc.) should also construct
|
||||
|
|
|
@ -192,7 +192,7 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
|
||||
// If this chunk starts with a <p> tag--either because
|
||||
// it always did (like <p class="foo">, which doesn't get
|
||||
// dropped either by WordPress or by our regexes above), or
|
||||
// dropped either by WordPress or by our regexs above), or
|
||||
// because we added one just now--we want to end it with
|
||||
// a </p> if necessary.
|
||||
if (Regex.IsMatch(chunk, @"<p(?:\s|>)") && !Regex.IsMatch(chunk, @"</p>"))
|
||||
|
|
|
@ -180,7 +180,7 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
|
||||
// Some weblog providers (such as Drupal) actually return the mt category struct for
|
||||
// metaWeblog.getCategories. In this case the parsing above would have failed to
|
||||
// extract either a name or an id. Parse out the values here if necesssary
|
||||
// extract either a name or an id. Parse out the values here if necessary
|
||||
|
||||
// populate the name field if we haven't gotten it another way
|
||||
if (catName == null)
|
||||
|
@ -273,7 +273,7 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
return false;
|
||||
|
||||
// we support inline category addition and we don't require a special
|
||||
// api for heirarchical categories (inline api can't handle parent specification)
|
||||
// api for hierarchical categories (inline api can't handle parent specification)
|
||||
if (Options.SupportsNewCategoriesInline && !Options.SupportsHierarchicalCategories)
|
||||
return false;
|
||||
|
||||
|
|
|
@ -199,7 +199,7 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
return attachSettings.AttachmentUrl;
|
||||
}
|
||||
|
||||
//SharePoint blogIDs are formatted: webguid#listguid
|
||||
//SharePoint blogIDs are formatted: webguid#listGuid
|
||||
public static string SharepointBlogIdToListGuid(string blogId)
|
||||
{
|
||||
int listGuidIndex = blogId.IndexOf("#", StringComparison.OrdinalIgnoreCase);
|
||||
|
|
|
@ -178,7 +178,7 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
protected virtual void BeforeHttpRequest(HttpWebRequest request)
|
||||
{
|
||||
// WARNING: Derived classes do not currently make it a practice to call this method
|
||||
// so don't count on the code executing if the method is overriden!
|
||||
// so don't count on the code executing if the method is overridden!
|
||||
}
|
||||
|
||||
public virtual BlogPostCategory[] SuggestCategories(string blogId, string partialCategoryName)
|
||||
|
@ -300,7 +300,7 @@ namespace OpenLiveWriter.BlogClient.Clients
|
|||
/// If the date does not have a timezone designator then it will be presumed to be in the
|
||||
/// local time zone of this PC. This method is virtual so that for weblogs that produce
|
||||
/// undesignated date/time strings in some other timezone (like the timezone of the
|
||||
/// hosting providor) subclasses can do whatever offset is appropriate.
|
||||
/// hosting provider) subclasses can do whatever offset is appropriate.
|
||||
/// </summary>
|
||||
/// <param name="xmlNode"></param>
|
||||
/// <returns></returns>
|
||||
|
|
|
@ -181,7 +181,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
// try explicit detection of templates
|
||||
BlogEditingTemplateFiles templateFiles = SafeGetTemplates(new ProgressTick(progress, 50, 100));
|
||||
|
||||
// see if we got the FramedTempalte
|
||||
// see if we got the FramedTemplate
|
||||
if (templateFiles.FramedTemplate != null)
|
||||
blogTemplateFiles.Add(templateFiles.FramedTemplate);
|
||||
else
|
||||
|
@ -216,7 +216,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
_blogTemplateFiles = blogTemplateFiles.ToArray(typeof(BlogEditingTemplateFile)) as BlogEditingTemplateFile[];
|
||||
|
||||
// if we got at least one template by some method then clear any exception
|
||||
// that occurs so we can at least update that tempalte
|
||||
// that occurs so we can at least update that template
|
||||
_exception = null;
|
||||
}
|
||||
|
||||
|
@ -388,7 +388,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
blogTemplateFiles = GetBlogTemplateFiles(progress, regionLocatorStrategy, templateStrategies, targetTemplateTypes);
|
||||
progress.UpdateProgress(100, 100);
|
||||
|
||||
//if any exception occured along the way, clear them since one of the template strategies
|
||||
//if any exception occurred along the way, clear them since one of the template strategies
|
||||
//was successful.
|
||||
_exception = null;
|
||||
}
|
||||
|
@ -428,7 +428,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
|
||||
}
|
||||
|
||||
// return the detected tempaltes
|
||||
// return the detected templates
|
||||
return blogTemplateFiles;
|
||||
}
|
||||
|
||||
|
|
|
@ -923,7 +923,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
//IE won't return some attributes (like class) using IHTMLElement.getAttribute(),
|
||||
//so if the value is null, try to get the value directly from the DOM Attribute.
|
||||
//Note: we can't use the DOM value by default, because IE will rewrite the value
|
||||
//to contain a fully-qualified path on some attribures (like src and href).
|
||||
//to contain a fully-qualified path on some attributes (like src and href).
|
||||
attrValue = attr.nodeValue as string;
|
||||
|
||||
if (attrValue == null)
|
||||
|
@ -1134,7 +1134,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
// vertical-align: baseline;
|
||||
// }
|
||||
//
|
||||
// But when we replace "position: relative;" with "postion: inherit", superscript doesn't
|
||||
// But when we replace "position: relative;" with "position: inherit", superscript doesn't
|
||||
// display correctly. We'll check to make sure we don't replace the position in this case.
|
||||
|
||||
int currentOpeningParenthesis = textUpToCapture.LastIndexOf('{');
|
||||
|
|
|
@ -204,7 +204,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
ProgressTick tick = new ProgressTick(progress, 50, 100);
|
||||
MemoryStream memStream = new MemoryStream();
|
||||
IHTMLDocument2 doc2 = null;
|
||||
// WinLive 221984: Theme detection timing out intermitantly on WordPress.com
|
||||
// WinLive 221984: Theme detection timing out intermittently on WordPress.com
|
||||
// The temp post *often* takes more than a minute to show up on the blog home page.
|
||||
// The download progress dialog has a cancel button, we'll try a lot before giving up.
|
||||
for (int i = 0; i < 30 && doc2 == null; i++)
|
||||
|
@ -393,7 +393,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
|
||||
private static bool IsSmartContent(IHTMLElement element)
|
||||
{
|
||||
// search up the parent heirarchy
|
||||
// search up the parent hierarchy
|
||||
while (element != null)
|
||||
{
|
||||
if (0 == String.Compare(element.tagName, "div", StringComparison.OrdinalIgnoreCase))
|
||||
|
|
|
@ -39,7 +39,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
|
||||
protected override object DetectBlogService(IProgressHost progressHost)
|
||||
{
|
||||
using (BlogClientUIContextSilentMode uiContextScope = new BlogClientUIContextSilentMode()) //supress prompting for credentials
|
||||
using (BlogClientUIContextSilentMode uiContextScope = new BlogClientUIContextSilentMode()) //suppress prompting for credentials
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -488,7 +488,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
|
||||
protected override object DetectBlogService(IProgressHost progressHost)
|
||||
{
|
||||
using (BlogClientUIContextSilentMode uiContextScope = new BlogClientUIContextSilentMode()) //supress prompting for credentials
|
||||
using (BlogClientUIContextSilentMode uiContextScope = new BlogClientUIContextSilentMode()) //suppress prompting for credentials
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -604,7 +604,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
35);
|
||||
|
||||
// add settings downloading (note: this operation will be a no-op
|
||||
// in the case where we don't succesfully detect a weblog)
|
||||
// in the case where we don't successfully detect a weblog)
|
||||
AddProgressOperation(
|
||||
new ProgressOperation(DetectWeblogSettings),
|
||||
new ProgressOperationCompleted(DetectWeblogSettingsCompleted),
|
||||
|
@ -915,7 +915,7 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
|
||||
private object DetectWeblogSettings(IProgressHost progressHost)
|
||||
{
|
||||
using (BlogClientUIContextSilentMode uiContextScope = new BlogClientUIContextSilentMode()) //supress prompting for credentials
|
||||
using (BlogClientUIContextSilentMode uiContextScope = new BlogClientUIContextSilentMode()) //suppress prompting for credentials
|
||||
{
|
||||
// no-op if we don't have a blog-id to work with
|
||||
if (HostBlogId == String.Empty)
|
||||
|
|
|
@ -291,8 +291,8 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Any setting that is derivaed from the homepage html needs to be in this function. This function is turned
|
||||
/// on and off when detecting blog seetings through the IncludeHomePageSettings. None of these checks will be run
|
||||
/// Any setting that is derived from the homepage html needs to be in this function. This function is turned
|
||||
/// on and off when detecting blog settings through the IncludeHomePageSettings. None of these checks will be run
|
||||
/// if the internet is not active. As each check is made, it does not need to be applied back the _content until the end
|
||||
/// at which time it will write the settings back to the registry.
|
||||
/// </summary>
|
||||
|
|
|
@ -208,9 +208,9 @@ namespace OpenLiveWriter.BlogClient.Detection
|
|||
{
|
||||
Trace.Fail("Exception attempting to read RSD file: " + ex.ToString());
|
||||
|
||||
// don't re-propagate exceptions here becaus we found that TypePad's
|
||||
// don't re-propagate exceptions here because we found that TypePad's
|
||||
// RSD file was returning bogus HTTP crap at the end of the response
|
||||
// and the XML parser cholking on this caused us to fail autodetection
|
||||
// and the XML parser choking on this caused us to fail autodetection
|
||||
}
|
||||
|
||||
// if we got at least one API then return the service description
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace OpenLiveWriter.BlogClient.Providers
|
|||
{
|
||||
public BlogClientOptions()
|
||||
{
|
||||
// accept default options (see private data declaratoins for defaults)
|
||||
// accept default options (see private data declarations for defaults)
|
||||
}
|
||||
|
||||
public bool SupportsHttps
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace OpenLiveWriter.BlogClient.Providers
|
|||
if (postApiUrl.Length == 0)
|
||||
throw new ArgumentException("Invalid PostApiUrl");
|
||||
|
||||
// visibiilty flag
|
||||
// visibility flag
|
||||
bool visible = BlogClientOptions.ReadBool(NodeText(providerNode.SelectSingleNode("visible")), true); ;
|
||||
|
||||
// auto-detection
|
||||
|
|
|
@ -16,7 +16,7 @@
|
|||
// autogenerated file:
|
||||
//
|
||||
// (1) Changed the version of SHDocVw it imports to OpenLiveWriter.Interop.SHDocVw;
|
||||
// (2) Commented out its assembly version attribute (because we alrady have one
|
||||
// (2) Commented out its assembly version attribute (because we already have one
|
||||
// defined in AssemblyInfo.cs); and
|
||||
// (3) Changed its namespace to OpenLiveWriter.BrowserControl.
|
||||
//
|
||||
|
|
|
@ -136,7 +136,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
/// </summary>
|
||||
public override void Execute()
|
||||
{
|
||||
// go back (ignore excpetion thrown if the history list doesn't have
|
||||
// go back (ignore exception thrown if the history list doesn't have
|
||||
// a page to go back to)
|
||||
try
|
||||
{
|
||||
|
@ -168,7 +168,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
/// </summary>
|
||||
public override void Execute()
|
||||
{
|
||||
// go forward (ignore excpetion thrown if the history list doesn't have
|
||||
// go forward (ignore exception thrown if the history list doesn't have
|
||||
// a page to go forward to)
|
||||
try
|
||||
{
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
public class ExplorerBrowserControl : UserControl, IBrowserControl
|
||||
{
|
||||
/// <summary>
|
||||
/// Intialize BrowserControl
|
||||
/// Initialize BrowserControl
|
||||
/// </summary>
|
||||
public ExplorerBrowserControl()
|
||||
{
|
||||
|
@ -131,7 +131,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
|
||||
/// <summary>
|
||||
/// Title of current document (normally use for window caption display).
|
||||
/// You should retreive/update this value whenever the TitleChanged
|
||||
/// You should retrieve/update this value whenever the TitleChanged
|
||||
/// event is fired.
|
||||
/// </summary>
|
||||
public string Title
|
||||
|
@ -141,7 +141,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
private string m_title;
|
||||
|
||||
/// <summary>
|
||||
/// StatusText (normally displayed in status bar). You should retreive/update
|
||||
/// StatusText (normally displayed in status bar). You should retrieve/update
|
||||
/// this value whenever the StatusTextChanged event is fired.
|
||||
/// </summary>
|
||||
public string StatusText
|
||||
|
@ -153,7 +153,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
/// <summary>
|
||||
/// Property indicating the encryption level of the currently displayed document.
|
||||
/// The EncryptionLevelChanged event will be fired whenever this property
|
||||
/// changes valiue.
|
||||
/// changes value.
|
||||
/// </summary>
|
||||
public EncryptionLevel EncryptionLevel
|
||||
{
|
||||
|
@ -162,7 +162,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
private EncryptionLevel m_encryptionLevel;
|
||||
|
||||
/// <summary>
|
||||
/// Size of text displayed by the browser control. Before usin g this
|
||||
/// Size of text displayed by the browser control. Before using this
|
||||
/// property you should query the TextSizeSupported property to make
|
||||
/// sure that the currently displayed document supports TextSize.
|
||||
/// </summary>
|
||||
|
@ -199,7 +199,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
// verify that we are being called correctly
|
||||
if (TextSizeSupported)
|
||||
{
|
||||
// perepare Execute paramters
|
||||
// prepare Execute parameters
|
||||
object input = value;
|
||||
object output = null;
|
||||
|
||||
|
@ -460,8 +460,8 @@ namespace OpenLiveWriter.BrowserControl
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Event that fires when a download operation is completed. Applications shoudl
|
||||
/// use this event to update thier visual 'busy' indicator.
|
||||
/// Event that fires when a download operation is completed. Applications should
|
||||
/// use this event to update their visual 'busy' indicator.
|
||||
/// </summary>
|
||||
public event EventHandler DownloadComplete;
|
||||
|
||||
|
@ -859,7 +859,7 @@ namespace OpenLiveWriter.BrowserControl
|
|||
private void AxWebBrowser_CommandStateChange(
|
||||
object sender, DWebBrowserEvents2_CommandStateChangeEvent e)
|
||||
{
|
||||
// constatns representing possible command state changes
|
||||
// constants representing possible command state changes
|
||||
const int CSC_UPDATECOMMANDS = -1;
|
||||
const int CSC_NAVIGATEFORWARD = 1;
|
||||
const int CSC_NAVIGATEBACK = 2;
|
||||
|
|
|
@ -27,13 +27,13 @@ namespace OpenLiveWriter.BrowserControl
|
|||
|
||||
/// <summary>
|
||||
/// Title of current document (normally use for window caption display).
|
||||
/// You should retreive/update this value whenever the TitleChanged
|
||||
/// You should retrieve/update this value whenever the TitleChanged
|
||||
/// event is fired.
|
||||
/// </summary>
|
||||
string Title { get; }
|
||||
|
||||
/// <summary>
|
||||
/// StatusText (normally displayed in status bar). You should retreive/update
|
||||
/// StatusText (normally displayed in status bar). You should retrieve/update
|
||||
/// this value whenever the StatusTextChanged event is fired.
|
||||
/// </summary>
|
||||
string StatusText { get; }
|
||||
|
@ -41,12 +41,12 @@ namespace OpenLiveWriter.BrowserControl
|
|||
/// <summary>
|
||||
/// Property indicating the encryption level of the currently displayed document.
|
||||
/// The EncryptionLevelChanged event will be fired whenever this property
|
||||
/// changes valiue.
|
||||
/// changes value.
|
||||
/// </summary>
|
||||
EncryptionLevel EncryptionLevel { get; }
|
||||
|
||||
/// <summary>
|
||||
/// Size of text displayed by the browser control. Before usin g this
|
||||
/// Size of text displayed by the browser control. Before using this
|
||||
/// property you should query the TextSizeSupported property to make
|
||||
/// sure that the currently displayed document supports TextSize.
|
||||
/// </summary>
|
||||
|
@ -152,8 +152,8 @@ namespace OpenLiveWriter.BrowserControl
|
|||
event EventHandler DownloadBegin;
|
||||
|
||||
/// <summary>
|
||||
/// Event that fires when a download operation is completed. Applications shoudl
|
||||
/// use this event to update thier visual 'busy' indicator.
|
||||
/// Event that fires when a download operation is completed. Applications should
|
||||
/// use this event to update their visual 'busy' indicator.
|
||||
/// </summary>
|
||||
event EventHandler DownloadComplete;
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace OpenLiveWriter.Controls
|
|||
private const int HORIZONTAL_TEXT_PAD = 3;
|
||||
|
||||
/// <summary>
|
||||
/// The vertcial text pad.
|
||||
/// The vertical text pad.
|
||||
/// </summary>
|
||||
private const int VERTICAL_TEXT_PAD = -1;
|
||||
|
||||
|
@ -126,13 +126,13 @@ namespace OpenLiveWriter.Controls
|
|||
private IContainer components;
|
||||
|
||||
/// <summary>
|
||||
/// A value which indicates how the BitmapButton should automcatically determine its
|
||||
/// A value which indicates how the BitmapButton should automatically determine its
|
||||
/// width.
|
||||
/// </summary>
|
||||
private bool autoSizeWidth;
|
||||
|
||||
/// <summary>
|
||||
/// A value which indicates how the BitmapButton should automcatically determine its
|
||||
/// A value which indicates how the BitmapButton should automatically determine its
|
||||
/// height.
|
||||
/// </summary>
|
||||
private bool autoSizeHeight;
|
||||
|
@ -298,7 +298,7 @@ namespace OpenLiveWriter.Controls
|
|||
#region Public Properties
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value which indicates whether the BitmapButton should automcatically
|
||||
/// Gets or sets a value which indicates whether the BitmapButton should automatically
|
||||
/// determine its size.
|
||||
/// </summary>
|
||||
[
|
||||
|
@ -325,7 +325,7 @@ namespace OpenLiveWriter.Controls
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Gets or sets a value which indicates whether the BitmapButton should automcatically
|
||||
/// Gets or sets a value which indicates whether the BitmapButton should automatically
|
||||
/// determine its size.
|
||||
/// </summary>
|
||||
[
|
||||
|
|
|
@ -73,7 +73,7 @@ namespace OpenLiveWriter.Controls
|
|||
|
||||
// Navigate to about:blank for installation of ui customizations. Note that this step is CRITICAL
|
||||
// to ensuring that not only our custom ui hooks get installed but also to ensure that our DLCTL
|
||||
// options (which control security) are registered prior to the fectching of the content.
|
||||
// options (which control security) are registered prior to the fetching of the content.
|
||||
_explorerBrowserControl.DocumentComplete += new BrowserDocumentEventHandler(_explorerBrowserControl_AboutBlankDocumentComplete);
|
||||
_explorerBrowserControl.Navigate("about:blank");
|
||||
}
|
||||
|
|
|
@ -59,7 +59,7 @@ namespace OpenLiveWriter.Controls
|
|||
|
||||
BidiGraphics g = new BidiGraphics(e.Graphics, ClientRectangle);
|
||||
|
||||
//get the rectanlge representing the text in the label
|
||||
//get the rectangle representing the text in the label
|
||||
Rectangle textRectangle = GetMeasuredTextRectangle();
|
||||
|
||||
//paint the line bevels to the left and right of the text
|
||||
|
|
|
@ -114,7 +114,7 @@ namespace OpenLiveWriter.Controls
|
|||
g.DrawLine(pen, area.Left, area.Bottom - 1, area.Right, area.Bottom - 1);
|
||||
}
|
||||
|
||||
// focus rectange if necessary
|
||||
// focus rectangle if necessary
|
||||
e.DrawFocusRectangle();
|
||||
}
|
||||
|
||||
|
|
|
@ -773,7 +773,7 @@ namespace OpenLiveWriter.Controls
|
|||
#region Class Initialization & Termination
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new insatnce of the LightweightControl class.
|
||||
/// Initializes a new instance of the LightweightControl class.
|
||||
/// </summary>
|
||||
public LightweightControl(IContainer container)
|
||||
{
|
||||
|
@ -786,7 +786,7 @@ namespace OpenLiveWriter.Controls
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new insatnce of the LightweightControl class.
|
||||
/// Initializes a new instance of the LightweightControl class.
|
||||
/// </summary>
|
||||
public LightweightControl()
|
||||
{
|
||||
|
@ -2191,7 +2191,7 @@ namespace OpenLiveWriter.Controls
|
|||
|
||||
#region Accessibility
|
||||
/// <summary>
|
||||
/// Returns a list of all the accessible controls contained in this control (includes decendents).
|
||||
/// Returns a list of all the accessible controls contained in this control (includes descendants).
|
||||
/// </summary>
|
||||
/// <returns></returns>
|
||||
public LightweightControl[] GetAccessibleControls()
|
||||
|
|
|
@ -40,7 +40,7 @@ namespace OpenLiveWriter.Controls
|
|||
/// Initializes a new instance of <see cref='OpenLiveWriter.Controls.LightweightControlCollection'/> containing any array of <see cref='OpenLiveWriter.Controls.LightweightControl'/> objects.
|
||||
/// </summary>
|
||||
/// <param name='value'>
|
||||
/// A array of <see cref='OpenLiveWriter.Controls.LightweightControl'/> objects with which to intialize the collection
|
||||
/// A array of <see cref='OpenLiveWriter.Controls.LightweightControl'/> objects with which to initialize the collection
|
||||
/// </param>
|
||||
public LightweightControlCollection(LightweightControl[] value)
|
||||
{
|
||||
|
|
|
@ -57,12 +57,12 @@ namespace OpenLiveWriter.Controls
|
|||
Off,
|
||||
|
||||
/// <summary>
|
||||
/// Drag-and-drop auto-scroll is occuring in the up direction.
|
||||
/// Drag-and-drop auto-scroll is occurring in the up direction.
|
||||
/// </summary>
|
||||
Up,
|
||||
|
||||
/// <summary>
|
||||
/// Drag-and-drop auto-scroll is occuring in the down direction.
|
||||
/// Drag-and-drop auto-scroll is occurring in the down direction.
|
||||
/// </summary>
|
||||
Down
|
||||
}
|
||||
|
@ -1520,7 +1520,7 @@ namespace OpenLiveWriter.Controls
|
|||
#region Protected Methods
|
||||
/// <summary>
|
||||
/// Fires a click event so that subscribers to the LightweightContainerControl.Click event will receive it
|
||||
/// (reguardless of whether there is a mouseLightweightControl active)
|
||||
/// (regardless of whether there is a mouseLightweightControl active)
|
||||
/// </summary>
|
||||
/// <param name="evt"></param>
|
||||
protected void OnLightweightContainerControlClick(EventArgs evt)
|
||||
|
@ -1733,7 +1733,7 @@ namespace OpenLiveWriter.Controls
|
|||
// it, translate the virtual client point to be relative to the location of the
|
||||
// lightweight control and recursively ask the lightweight control to return the
|
||||
// lightweight control at the virtual client point. This will find the innermost
|
||||
// lightweight control, at the top of the Z order, that contains the virual client
|
||||
// lightweight control, at the top of the Z order, that contains the virtual client
|
||||
// point.
|
||||
if (lightweightControl.Visible && lightweightControl.VirtualBounds.Contains(point))
|
||||
{
|
||||
|
@ -1776,7 +1776,7 @@ namespace OpenLiveWriter.Controls
|
|||
// lightweight control and recursively ask the lightweight control to return the
|
||||
// lightweight control at the virtual client point that supports drag-and-drop
|
||||
// events. This will find the innermost lightweight control, at the top of the
|
||||
// Z order, that contains the virual client point and supports drag-and-drop events.
|
||||
// Z order, that contains the virtual client point and supports drag-and-drop events.
|
||||
if (lightweightControl.Visible && lightweightControl.AllowDrop && lightweightControl.VirtualBounds.Contains(point))
|
||||
{
|
||||
// Translate the virtual point to be relative to the location of the lightweight control.
|
||||
|
@ -1819,7 +1819,7 @@ namespace OpenLiveWriter.Controls
|
|||
// lightweight control and recursively ask the lightweight control to return the
|
||||
// lightweight control at the virtual client point that supports mouse wheel
|
||||
// events. This will find the innermost lightweight control, at the top of the
|
||||
// Z order that contains the virual client point and supports mouse wheel events.
|
||||
// Z order that contains the virtual client point and supports mouse wheel events.
|
||||
if (lightweightControl.Visible && lightweightControl.VirtualBounds.Contains(point))
|
||||
{
|
||||
// Translate the virtual point to be relative to the location of the lightweight control.
|
||||
|
|
|
@ -37,11 +37,11 @@ namespace OpenLiveWriter.Controls
|
|||
{
|
||||
DataObjectMeister meister = new DataObjectMeister(Clipboard.GetDataObject());
|
||||
|
||||
// if there is no text data then surpress paste
|
||||
// if there is no text data then suppress paste
|
||||
if (meister.TextData == null)
|
||||
return;
|
||||
|
||||
// if the text-data can't be parsed into an integer then supress paste
|
||||
// if the text-data can't be parsed into an integer then suppress paste
|
||||
try
|
||||
{
|
||||
int.Parse(meister.TextData.Text, CultureInfo.InvariantCulture);
|
||||
|
|
|
@ -99,7 +99,7 @@ namespace OpenLiveWriter.Controls
|
|||
|
||||
// NOTE: there is at least one report from a developer of this technique not working
|
||||
// (see comments at http://www.thecodeproject.com/cs/miscctrl/FileDialogExtender.asp).
|
||||
// it is very likely that this technique is fragile accross OS version and/or
|
||||
// it is very likely that this technique is fragile across OS version and/or
|
||||
// installed shell customizations.
|
||||
}
|
||||
|
||||
|
|
|
@ -136,7 +136,7 @@ namespace OpenLiveWriter.Controls
|
|||
// draw caption
|
||||
g.DrawText(item.Name, e.Font, layoutRectangle, textColor, TextFormatFlags.EndEllipsis | TextFormatFlags.HorizontalCenter | TextFormatFlags.WordBreak);
|
||||
|
||||
// draw focus rectange if necessary
|
||||
// draw focus rectangle if necessary
|
||||
e.DrawFocusRectangle();
|
||||
}
|
||||
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace OpenLiveWriter.Controls
|
|||
/// Implements a "tracking" ToolTip (using the native Win32 tooltip api). A
|
||||
/// tracking tooltip can be positioned anywhere on the screen irrespective
|
||||
/// of parent controls, etc. Normally you should use NOT use this class and
|
||||
/// instead shoould use the .NET ToolTip class -- this class is used for
|
||||
/// instead should use the .NET ToolTip class -- this class is used for
|
||||
/// scenarios where you are hosting a non .NET window (e.g. MSHTML editor)
|
||||
/// that fully occludes your .NET control and therefore prevents the display
|
||||
/// of .NET tooltips.
|
||||
|
@ -35,12 +35,12 @@ namespace OpenLiveWriter.Controls
|
|||
cp.ClassName = WINDOW_CLASS.TOOLTIPS;
|
||||
cp.Style = unchecked((int)(WS.POPUP | TTS.ALWAYSTIP | TTS.NOPREFIX));
|
||||
|
||||
// create the winow
|
||||
// create the window
|
||||
CreateHandle(cp);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Set the location (in screen coordiantes) of the tooltip. This location will
|
||||
/// Set the location (in screen coordinates) of the tooltip. This location will
|
||||
/// be reflected the next time the tooltip is shown
|
||||
/// </summary>
|
||||
public Point Location
|
||||
|
@ -209,7 +209,7 @@ namespace OpenLiveWriter.Controls
|
|||
private const int TTF_RTLREADING = 0x0004;
|
||||
|
||||
/// <summary>
|
||||
/// Set the location (in screen coordiantes) of the tooltip for the tool
|
||||
/// Set the location (in screen coordinates) of the tooltip for the tool
|
||||
/// </summary>
|
||||
public Point Location
|
||||
{
|
||||
|
|
|
@ -434,7 +434,7 @@ namespace OpenLiveWriter.Controls.Wizard
|
|||
private WizardSubStep nextWizardSubStep;
|
||||
/// <summary>
|
||||
/// A next substep that will be automatically added once this step advances.
|
||||
/// This can be used to easily chaing substeps together without lots of Next() callbacks.
|
||||
/// This can be used to easily chain substeps together without lots of Next() callbacks.
|
||||
/// </summary>
|
||||
public WizardSubStep NextWizardSubStep
|
||||
{
|
||||
|
|
|
@ -305,7 +305,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Determines whether any element of an array satisifies a condition.
|
||||
/// Determines whether any element of an array satisfies a condition.
|
||||
/// </summary>
|
||||
/// <param name="array">The array to test.</param>
|
||||
/// <param name="predicate">A function to test each element for a condition.</param>
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
// Copyright (c) .NET Foundation. All rights reserved.
|
||||
// Licensed under the MIT license. See LICENSE file in the project root for details.
|
||||
|
||||
/// AsyncOperation.cs - A base class for asyncronous, cancellable operations
|
||||
/// AsyncOperation.cs - A base class for asynchronous, cancellable operations
|
||||
///
|
||||
/// This base class is designed to be used by lengthy operations that wish to
|
||||
/// support cancellation. The class is based heavily the Ian Griffiths article
|
||||
|
@ -9,13 +9,13 @@
|
|||
/// Threads" on pg. 68 of the Feb 2003 MSDN Magazine:
|
||||
/// http://msdn.microsoft.com/msdnmag/issues/03/02/Multithreading/default.aspx
|
||||
///
|
||||
/// To create a new class that supports cancellable, asychronous operations:
|
||||
/// To create a new class that supports cancellable, asynchronous operations:
|
||||
///
|
||||
/// (1) Derive a new class from AsyncOperation.
|
||||
///
|
||||
/// (2) Implement a constructor that forwards an ISynchronizeInvoke instance
|
||||
/// on the base class and accepts whatever custom initialization parameters
|
||||
/// are requried for the class.
|
||||
/// are required for the class.
|
||||
///
|
||||
/// (2) Override the DoWork() method to perform the actual background work.
|
||||
///
|
||||
|
@ -465,7 +465,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Delegeate for handling Progress notification
|
||||
/// Delegate for handling Progress notification
|
||||
/// </summary>
|
||||
public delegate void ProgressUpdatedEventHandler(object sender, ProgressUpdatedEventArgs progressUpdatedHandler);
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
//support for bidi languages
|
||||
if (BidiHelper.IsRightToLeft)
|
||||
{
|
||||
//this one is making the 3rd toolbar shorter/missing buttons and preventing the html editro from loading
|
||||
//this one is making the 3rd toolbar shorter/missing buttons and preventing the html editor from loading
|
||||
RightToLeft = RightToLeft.Yes;
|
||||
RightToLeftLayout = true;
|
||||
//the two of them together make the words in the status bar and start screen go backwards
|
||||
|
|
|
@ -7,7 +7,7 @@ using System.Text.RegularExpressions;
|
|||
|
||||
namespace OpenLiveWriter.CoreServices
|
||||
{
|
||||
#if FALSE // imprve code coverage number
|
||||
#if FALSE // improve code coverage number
|
||||
///<summary>
|
||||
/// Summary description for CommandLineHelper.
|
||||
/// </summary>
|
||||
|
|
|
@ -258,7 +258,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts an input string into a nice value for an AccessibileName.
|
||||
/// Converts an input string into a nice value for an AccessibleName.
|
||||
/// </summary>
|
||||
/// <param name="val"></param>
|
||||
/// <returns></returns>
|
||||
|
|
|
@ -17,7 +17,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
{
|
||||
/// <summary>
|
||||
/// Utility function to extract an array of file contents file descriptors from
|
||||
/// an IDataObject instnace
|
||||
/// an IDataObject instance
|
||||
/// </summary>
|
||||
/// <param name="dataObject">data object to extract descriptors from</param>
|
||||
/// <returns>array of file descriptors</returns>
|
||||
|
|
|
@ -262,7 +262,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
new FileStream(destFileName, FileMode.Create, FileAccess.ReadWrite);
|
||||
using (destination)
|
||||
{
|
||||
// use Win32 WriteFile so we can blast the entire unamanged memory
|
||||
// use Win32 WriteFile so we can blast the entire unmanaged memory
|
||||
// block in a single call (if we wanted to use managed file io
|
||||
// methods we would have to copy the entire memory block into
|
||||
// unmanaged memory first)
|
||||
|
|
|
@ -16,7 +16,7 @@ using OpenLiveWriter.Interop.Windows;
|
|||
namespace OpenLiveWriter.CoreServices
|
||||
{
|
||||
/// <summary>
|
||||
/// HTMLData is a Mindshare Data Object that conatins HTML text fragments.
|
||||
/// HTMLData is a Mindshare Data Object that contains HTML text fragments.
|
||||
/// It includes an html document based upon the HTML DOM (IHTMLDocument2) as well
|
||||
/// as various properties derived from the HTML fragment contained in the IDataObject.
|
||||
/// </summary>
|
||||
|
@ -524,7 +524,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
byteCount++;
|
||||
} while (b != 0 && byteCount < maxArraySize);
|
||||
|
||||
// allocate a byte array and copy the unmanged memory to it
|
||||
// allocate a byte array and copy the unmanaged memory to it
|
||||
byte[] bytes = new byte[byteCount];
|
||||
Marshal.Copy(htmlBytes, bytes, 0, byteCount);
|
||||
|
||||
|
|
|
@ -12,7 +12,7 @@ using mshtml;
|
|||
namespace OpenLiveWriter.CoreServices
|
||||
{
|
||||
/// <summary>
|
||||
/// HTMLDataObject is a Mindshare Data Object that conatins HTML text fragments.
|
||||
/// HTMLDataObject is a Mindshare Data Object that contains HTML text fragments.
|
||||
/// It includes an html document based upon the HTML DOM (IHTMLDocument2) as well
|
||||
/// as various properties derived from the HTML fragment contained in the IDataObject.
|
||||
/// </summary>
|
||||
|
|
|
@ -232,7 +232,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
|
||||
private LiveClipboardData(XmlDocument xmlDocument)
|
||||
{
|
||||
// save a refrence to the document
|
||||
// save a reference to the document
|
||||
_xmlDocument = xmlDocument;
|
||||
|
||||
// create namespace manager
|
||||
|
|
|
@ -98,7 +98,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// </summary>
|
||||
/// <param name="clipFormat">Name of clipboard format requested</param>
|
||||
/// <param name="types">type(s) requested</param>
|
||||
/// <returns>true if the subseqent call to GetData would likely be
|
||||
/// <returns>true if the subsequent call to GetData would likely be
|
||||
/// successful, otherwise false</returns>
|
||||
public bool QueryGetData(string clipFormat, TYMED types)
|
||||
{
|
||||
|
@ -131,7 +131,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// the data in. The method will return an OleStgMedium for the type(s)
|
||||
/// requested if it is available, otherwise it will return null.
|
||||
/// If a single type is requested then the return value can be safely
|
||||
/// cast to the requested OleStgMedium subclasss. If multiple types
|
||||
/// cast to the requested OleStgMedium subclass. If multiple types
|
||||
/// are requested then the return value will represent the object's
|
||||
/// preferred storage representation and client code will need to use
|
||||
/// the 'is' operator to determine what type was returned.
|
||||
|
@ -151,12 +151,12 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// the data in. The method will return an OleStgMedium for the type(s)
|
||||
/// requested if it is available, otherwise it will return null.
|
||||
/// If a single type is requested then the return value can be safely
|
||||
/// cast to the requested OleStgMedium subclasss. If multiple types
|
||||
/// cast to the requested OleStgMedium subclass. If multiple types
|
||||
/// are requested then the return value will represent the object's
|
||||
/// preferred storage representation and client code will need to use
|
||||
/// the 'is' operator to determine what type was returned.
|
||||
/// </summary>
|
||||
/// <param name="lindex">Index of item to retreive</param>
|
||||
/// <param name="lindex">Index of item to retrieve</param>
|
||||
/// <param name="clipFormat">Name of clipboard format requested</param>
|
||||
/// <param name="types">type(s) requested</param>
|
||||
/// <returns>OleStgMedium instance if format and requested storage type
|
||||
|
@ -233,7 +233,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
BindingFlags.Public | BindingFlags.NonPublic |
|
||||
BindingFlags.Instance);
|
||||
|
||||
// retreive and return the value
|
||||
// retrieve and return the value
|
||||
if (fld != null)
|
||||
return fld.GetValue(source);
|
||||
else
|
||||
|
|
|
@ -30,7 +30,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// Helper function to populate the contents of a FORMATETC structure
|
||||
/// using the passed clipboard format and type(s).
|
||||
/// </summary>
|
||||
/// <param name="lindex">Index of item to retreive</param>
|
||||
/// <param name="lindex">Index of item to retrieve</param>
|
||||
/// <param name="clipFormat">Name of clipboard format requested</param>
|
||||
/// <param name="types">type(s) requested</param>
|
||||
/// <param name="formatEtc">FORMATETC structure to be populated</param>
|
||||
|
@ -69,7 +69,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
{
|
||||
// asking for .NET object types in GetDataPresent when the drag source is
|
||||
// another .NET application can result in an exception related to the
|
||||
// convertion of System.__ComObject to System.Type (no idea why).
|
||||
// conversion of System.__ComObject to System.Type (no idea why).
|
||||
try
|
||||
{
|
||||
if (obj == null)
|
||||
|
|
|
@ -11,7 +11,7 @@ using OpenLiveWriter.Interop.Windows;
|
|||
namespace OpenLiveWriter.CoreServices
|
||||
{
|
||||
/// <summary>
|
||||
/// General purpose implementation of an Ole DataObject that accepts arbirary
|
||||
/// General purpose implementation of an Ole DataObject that accepts arbitrary
|
||||
/// binary data (the .NET IDataObject implementation does not allow you to pass
|
||||
/// arbitrary binary data so if you want to do this you need a class like this).
|
||||
/// This implementation does not support advise sinks.
|
||||
|
@ -103,7 +103,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
{
|
||||
// For now we don't support this method. MFC uses the internal method
|
||||
// AfxCopyStgMedium to implement this -- if we absolutely positively
|
||||
// need to suppport this then we should base are implementation on
|
||||
// need to support this then we should base are implementation on
|
||||
// that code (source is the file atlmfc\src\mfc\olemisc.cpp)
|
||||
return HRESULT.E_NOTIMPL;
|
||||
}
|
||||
|
@ -139,7 +139,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// caller uses the supplied value of pFormatetcOut, unless the value supplied
|
||||
/// is NULL. This value is NULL if the method returns DATA_S_SAMEFORMATETC.
|
||||
/// The TYMED member is not significant in this case and should be ignored</param>
|
||||
/// <returns>S_OK if the logically equivilant structure was provided,
|
||||
/// <returns>S_OK if the logically equivalent structure was provided,
|
||||
/// otherwise returns DATA_S_SAMEFORMATETC indicating the structures
|
||||
/// are the same (in this case pFormatEtcOut is NULL)</returns>
|
||||
public int GetCanonicalFormatEtc(ref FORMATETC pFormatEtcIn, ref FORMATETC pFormatEtcOut)
|
||||
|
|
|
@ -178,7 +178,7 @@ namespace Project31.CoreServices
|
|||
/// <summary>
|
||||
/// Determines whether the referrer list contains a specific referrer
|
||||
/// </summary>
|
||||
/// <param name="referrer">The refrerrer</param>
|
||||
/// <param name="referrer">The referrer</param>
|
||||
/// <returns>true if it contains the referrer, otherwise false</returns>
|
||||
private bool ContainsReferrer(string referrer)
|
||||
{
|
||||
|
|
|
@ -52,7 +52,7 @@ namespace OpenLiveWriter.CoreServices.Diagnostics
|
|||
/// <summary>
|
||||
/// Gets an array of BufferingTraceListenerEntry objects starting at the specified index.
|
||||
/// </summary>
|
||||
/// <param name="index">The index at which to return BufferingTraceListenerEntry obejcts. This value is updated.</param>
|
||||
/// <param name="index">The index at which to return BufferingTraceListenerEntry objects. This value is updated.</param>
|
||||
/// <returns>An array of BufferingTraceListenerEntry objects, or null.</returns>
|
||||
public BufferingTraceListenerEntry[] GetEntries(ref int index)
|
||||
{
|
||||
|
|
|
@ -784,7 +784,7 @@ namespace OpenLiveWriter.CoreServices.Diagnostics
|
|||
// Clear the log.
|
||||
listViewLog.Items.Clear();
|
||||
|
||||
// Reset the sequece number.
|
||||
// Reset the sequence number.
|
||||
lastEventIndex = firstEventIndex;
|
||||
|
||||
LoadEntries();
|
||||
|
@ -817,7 +817,7 @@ namespace OpenLiveWriter.CoreServices.Diagnostics
|
|||
// Clear the log.
|
||||
listViewLog.Items.Clear();
|
||||
|
||||
// Reset the sequece number.
|
||||
// Reset the sequence number.
|
||||
firstEventIndex = lastEventIndex = 0;
|
||||
|
||||
LoadEntries();
|
||||
|
@ -879,7 +879,7 @@ namespace OpenLiveWriter.CoreServices.Diagnostics
|
|||
// Build the strings to be copied to the clipboard.
|
||||
foreach (ListViewItem listViewItem in selectedListViewItemCollection)
|
||||
{
|
||||
// Append an extra line inbetween entries.
|
||||
// Append an extra line in between entries.
|
||||
if (stringBuilder.Length != 0)
|
||||
stringBuilder.Append("\r\n");
|
||||
|
||||
|
|
|
@ -10,7 +10,7 @@ namespace OpenLiveWriter.CoreServices.Diagnostics
|
|||
{
|
||||
/// <summary>
|
||||
/// Top Level exception handling delegate.
|
||||
/// rovides conveniences for registering default handlers; RegisterWindowsHandler() for
|
||||
/// provides conveniences for registering default handlers; RegisterWindowsHandler() for
|
||||
/// GUI apps, RegisterConsoleHandler()for non-GUI apps.
|
||||
/// </summary>
|
||||
public class UnexpectedErrorDelegate
|
||||
|
|
|
@ -28,7 +28,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// </returns>
|
||||
public static ArrayList ListRecursive(string path)
|
||||
{
|
||||
// enumerate directories (use file system standard separator, probabaly backslash)
|
||||
// enumerate directories (use file system standard separator, probably backslash)
|
||||
return ListRecursive(path, false);
|
||||
}
|
||||
|
||||
|
@ -156,7 +156,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Abstract class which iterates recursively over a directory and its subdirctories.
|
||||
/// Abstract class which iterates recursively over a directory and its subdirectories.
|
||||
/// Subclasses are notified of the directories and files found via the OnSubdirectory
|
||||
/// and OnFile virtual methods. These can be overridden to provide custom functionality
|
||||
/// such as enumeration, copying, compression, etc.
|
||||
|
@ -211,7 +211,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
// determine the absolute path of this directory
|
||||
string absolutePath = Path.Combine(RootPath, relativePath);
|
||||
|
||||
// retreive a list of the files and sort them
|
||||
// retrieve a list of the files and sort them
|
||||
string[] files;
|
||||
try
|
||||
{
|
||||
|
@ -243,7 +243,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
|
||||
if (m_includeSubfolders)
|
||||
{
|
||||
// retreive a list of the sub-directories and sort them
|
||||
// retrieve a list of the sub-directories and sort them
|
||||
string[] directories;
|
||||
try
|
||||
{
|
||||
|
@ -336,7 +336,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Retreive an alphabetically sorted list of all the files contained within
|
||||
/// Retrieve an alphabetically sorted list of all the files contained within
|
||||
/// the directory and its sub-directories
|
||||
/// </summary>
|
||||
/// <returns>An ArrayList of file names (represented as string objects)</returns>
|
||||
|
@ -367,7 +367,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
m_files.Add(file);
|
||||
}
|
||||
|
||||
// flag indicating whether we should convert OS path separators to URI separtors
|
||||
// flag indicating whether we should convert OS path separators to URI separators
|
||||
bool m_useUriSeparator;
|
||||
|
||||
// storage for list of files
|
||||
|
@ -376,8 +376,8 @@ namespace OpenLiveWriter.CoreServices
|
|||
|
||||
/// <summary>
|
||||
/// Class which recursively copies the contents of one directory to another. Note
|
||||
/// that this class provides a thin-layer over file system calls -- low-level files
|
||||
/// ystem exceptions may be thrown from this class and they should be caught and
|
||||
/// that this class provides a thin-layer over file system calls -- low-level file
|
||||
/// system exceptions may be thrown from this class and they should be caught and
|
||||
/// handled appropriately.
|
||||
/// </summary>
|
||||
public class DirectoryCopier : DirectoryIterator
|
||||
|
|
|
@ -368,9 +368,9 @@ namespace OpenLiveWriter.CoreServices
|
|||
// Do not call Path.GetFileName() and like methods on originalFileName
|
||||
// since these will throw exceptions if originalFileName has system-illegal characters
|
||||
// in it, such as ", |, <, >, etc.
|
||||
if (originalFileName.Length == 0 || // empty string gets guidded
|
||||
originalFileName[0] != '.' || // non-".htaccess"-like names get guidded
|
||||
Regex.IsMatch(originalFileName, @"^\.+$")) // ".", "..", "...", etc. gets guidded
|
||||
if (originalFileName.Length == 0 || // empty string gets guided
|
||||
originalFileName[0] != '.' || // non-".htaccess"-like names get guided
|
||||
Regex.IsMatch(originalFileName, @"^\.+$")) // ".", "..", "...", etc. gets guided
|
||||
noExt = TrimFileAndReplaceWithGuidIfEmpty(noExt, null);
|
||||
}
|
||||
|
||||
|
|
|
@ -354,7 +354,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
|
||||
if (HasArea(bottomRightRectangle))
|
||||
{
|
||||
// Botom right.
|
||||
// Bottom right.
|
||||
graphics.DrawImage(image,
|
||||
new Rectangle(rectangle.Right - bottomRightRectangle.Width, rectangle.Bottom - bottomRightRectangle.Height, bottomRightRectangle.Width, bottomRightRectangle.Height),
|
||||
bottomRightRectangle,
|
||||
|
@ -373,7 +373,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// <summary>
|
||||
/// Draws a composited image border. Note that because it would be too computationally
|
||||
/// expensive, it is ASSUMED that the rectangle supplied is large enough to draw the border
|
||||
/// witout
|
||||
/// without
|
||||
/// </summary>
|
||||
/// <remarks>
|
||||
/// Note that because it would be too computationally expensive, it is assumed that images
|
||||
|
|
|
@ -49,7 +49,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
// <a href=news.html>
|
||||
// <a href= news.html>
|
||||
//
|
||||
// If we don't require the quoting or equals sign, we'll occassionally hose absolute paths like:
|
||||
// If we don't require the quoting or equals sign, we'll occasionally hose absolute paths like:
|
||||
// http://www.goo.com/hello/world/index.html
|
||||
// when we're replacing a relative path like: index.html
|
||||
// see: http://www.cs.tut.fi/~jkorpela/html/iframe.html for an example
|
||||
|
@ -100,8 +100,8 @@ namespace OpenLiveWriter.CoreServices
|
|||
html = Regex.Replace(html, pattern4, "Url(" + newUrl + ")", RegexOptions.IgnoreCase);
|
||||
#endif
|
||||
|
||||
// When an absolute path doesn't end with a file or a slash (i.e. http://www.realultimatepower.net)
|
||||
// converting it to a Uri automatically adds the trailing slash (i.e. http://www.realtultimatepower.net).
|
||||
// When an absolute path doesn't end with a file or a slash (i.e. http://www.example.net)
|
||||
// converting it to a Uri automatically adds the trailing slash (i.e. http://www.example.net/).
|
||||
// When we fix up this escaping, we need to account for the fact that the source may lack the trailing
|
||||
// slash, but should still be replaced with the new url. This is hacked in below.
|
||||
if (url.EndsWith("/", StringComparison.OrdinalIgnoreCase))
|
||||
|
@ -273,7 +273,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
}
|
||||
|
||||
// didin't find a feed
|
||||
// didn't find a feed
|
||||
return false;
|
||||
}
|
||||
catch (Exception e)
|
||||
|
@ -1483,7 +1483,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
#endif
|
||||
|
||||
/// <summary>
|
||||
/// Flags that control how tag attribute mataching is performed when using getAttribute on an HTMLDOMNode
|
||||
/// Flags that control how tag attribute matching is performed when using getAttribute on an HTMLDOMNode
|
||||
/// </summary>
|
||||
public struct HTMLAttributeFlags
|
||||
{
|
||||
|
|
|
@ -593,7 +593,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Get the left of the elment relative to the body
|
||||
/// Get the left of the element relative to the body
|
||||
/// </summary>
|
||||
/// <param name="element">element to get left of</param>
|
||||
/// <returns>left of element relative to the body</returns>
|
||||
|
@ -675,7 +675,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// <returns>link element (or null if this element or one of its parents are not a link)</returns>
|
||||
public static IHTMLAnchorElement GetContainingAnchorElement(IHTMLElement element)
|
||||
{
|
||||
// search up the parent heirarchy
|
||||
// search up the parent hierarchy
|
||||
while (element != null)
|
||||
{
|
||||
// if it is an anchor that has an HREF (exclude anchors with only NAME)
|
||||
|
|
|
@ -121,7 +121,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// </summary>
|
||||
public string Charset
|
||||
{
|
||||
// Don't get tricked by the charset attribut on IHTMLMetaElement
|
||||
// Don't get tricked by the charset attribute on IHTMLMetaElement
|
||||
// This sets an attribute 'charset' rather than the charset
|
||||
// property in content type
|
||||
get
|
||||
|
|
|
@ -15,7 +15,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// <summary>
|
||||
/// Constructs a new HTMLMetaDataRequest
|
||||
/// </summary>
|
||||
/// <param name="url">The URL from which to get the HTML Metadat</param>
|
||||
/// <param name="url">The URL from which to get the HTML Metadata</param>
|
||||
public HTMLMetaDataRequest(string url)
|
||||
{
|
||||
m_url = url;
|
||||
|
|
|
@ -23,7 +23,7 @@ namespace OpenLiveWriter.CoreServices.HTML
|
|||
Smart content sources call SmartContentInsertionHelper to do their insertion. Both of
|
||||
these paths allow "raw" access to HTML insertion. We will ultimately need to provide a
|
||||
service to plugins to do security and formatting oriented transformations of HTML
|
||||
that they retreive "from the wild".
|
||||
that they retrieve "from the wild".
|
||||
*/
|
||||
|
||||
public class HtmlCleaner
|
||||
|
|
|
@ -736,7 +736,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
m_resourceElements.Add(HTMLTokens.Img, HTMLTokens.Src);
|
||||
m_resourceElements.Add(HTMLTokens.Object, HTMLTokens.Src);
|
||||
m_resourceElements.Add(HTMLTokens.Embed, HTMLTokens.Src);
|
||||
m_resourceElements.Add(HTMLTokens.Param, HTMLTokens.Value); //required for movies embeded using object tag
|
||||
m_resourceElements.Add(HTMLTokens.Param, HTMLTokens.Value); //required for movies embedded using object tag
|
||||
m_resourceElements.Add(HTMLTokens.Script, HTMLTokens.Src);
|
||||
m_resourceElements.Add(HTMLTokens.Body, HTMLTokens.Background);
|
||||
m_resourceElements.Add(HTMLTokens.Input, HTMLTokens.Src);
|
||||
|
|
|
@ -226,7 +226,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// </summary>
|
||||
public string Charset
|
||||
{
|
||||
// Don't get tricked by the charset attribut on IHTMLMetaElement
|
||||
// Don't get tricked by the charset attribute on IHTMLMetaElement
|
||||
// This sets an attribute 'charset' rather than the charset
|
||||
// property in content type
|
||||
get
|
||||
|
|
|
@ -24,7 +24,7 @@ namespace Project31.CoreServices
|
|||
/// </summary>
|
||||
public WebPageDownloader()
|
||||
{
|
||||
// create the undelrying control
|
||||
// create the underlying control
|
||||
browserControl = new ExplorerBrowserControl() ;
|
||||
|
||||
// set us as the client site
|
||||
|
|
|
@ -161,7 +161,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
signal.Signal();
|
||||
Application.Run(_applicationContext);
|
||||
|
||||
// propragate exceptions that happened inside the AppContext
|
||||
// propagate exceptions that happened inside the AppContext
|
||||
if (_applicationContext.Exception != null)
|
||||
throw _applicationContext.Exception;
|
||||
}
|
||||
|
@ -246,7 +246,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
private byte[] _capturedBitmap;
|
||||
private Dictionary<string, ElementCaptureProperties> _elementCaptureProperties = new Dictionary<string, ElementCaptureProperties>();
|
||||
|
||||
// error that occured during processing
|
||||
// error that occurred during processing
|
||||
private Exception _exception;
|
||||
private FormLifetimeApplicationContext _applicationContext;
|
||||
|
||||
|
|
|
@ -320,9 +320,9 @@ namespace OpenLiveWriter.CoreServices
|
|||
|
||||
/// <summary>
|
||||
/// Map the specified Shortcut value to a Keys value (note: this operation is a reverse
|
||||
/// lookup in a hashtable so may be slighly expensive)
|
||||
/// lookup in a hashtable so may be slightly expensive)
|
||||
/// </summary>
|
||||
/// <param name="shortcut">Shorcut value to map</param>
|
||||
/// <param name="shortcut">Shortcut value to map</param>
|
||||
/// <returns>Keys that the Shortcut maps to</returns>
|
||||
public static Keys MapToKeys(Shortcut shortcut)
|
||||
{
|
||||
|
|
|
@ -120,7 +120,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
catch (Exception ex)
|
||||
{
|
||||
Trace.WriteLine("Caught exception while handling keyboard hook: " + ex.ToString());
|
||||
return new IntPtr(1); // supress key from editor
|
||||
return new IntPtr(1); // suppress key from editor
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -131,7 +131,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
|
||||
/// <summary>
|
||||
/// Delegate for KeyboardProc (hold on to a reference to it so that it
|
||||
/// isn't garbarge collected)
|
||||
/// isn't garbage collected)
|
||||
/// </summary>
|
||||
private User32.HookDelegate m_hookDelegate;
|
||||
}
|
||||
|
|
|
@ -16,7 +16,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
/// Summary description for mimeHelper.
|
||||
///
|
||||
/// Mime-types was originally defined in RFC 1341. After that a series of
|
||||
/// improvment has been made. Some of this can be found in RFC 1521
|
||||
/// improvement has been made. Some of this can be found in RFC 1521
|
||||
/// and RFC 1522.
|
||||
/// </summary>
|
||||
public class MimeHelper
|
||||
|
@ -431,7 +431,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
"text/plain"};
|
||||
|
||||
/// <summary>
|
||||
/// Returns the quoted printable character type for a given chacacter
|
||||
/// Returns the quoted printable character type for a given character
|
||||
/// </summary>
|
||||
/// <param name="ascii">the character to determine type</param>
|
||||
/// <returns>the character type</returns>
|
||||
|
|
|
@ -77,7 +77,7 @@ namespace ImageManipulation
|
|||
/// <summary>
|
||||
/// Retrieve the palette for the quantized image
|
||||
/// </summary>
|
||||
/// <param name="original">Any old palette, this is overrwritten</param>
|
||||
/// <param name="original">Any old palette, this is overwritten</param>
|
||||
/// <returns>The new color palette</returns>
|
||||
protected override ColorPalette GetPalette(ColorPalette original)
|
||||
{
|
||||
|
@ -132,7 +132,7 @@ namespace ImageManipulation
|
|||
// Check if this request is for the same color as the last
|
||||
if (_previousColor == pixel->ARGB)
|
||||
{
|
||||
// If so, check if I have a previous node setup. This will only ocurr if the first color in the image
|
||||
// If so, check if I have a previous node setup. This will only occur if the first color in the image
|
||||
// happens to be black, with an alpha component of zero.
|
||||
if (null == _previousNode)
|
||||
{
|
||||
|
|
|
@ -34,7 +34,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
private long splitPerformanceCounter;
|
||||
|
||||
/// <summary>
|
||||
/// Static initialization of the PerformaceCounter class.
|
||||
/// Static initialization of the PerformanceCounter class.
|
||||
/// </summary>
|
||||
static PerformanceTimer()
|
||||
{
|
||||
|
@ -50,7 +50,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the PerformaceTimer class.
|
||||
/// Initializes a new instance of the PerformanceTimer class.
|
||||
/// </summary>
|
||||
public PerformanceTimer()
|
||||
{
|
||||
|
@ -58,7 +58,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
|
||||
/// <summary>
|
||||
/// Initializes a new instance of the PerformaceTimer class.
|
||||
/// Initializes a new instance of the PerformanceTimer class.
|
||||
/// </summary>
|
||||
public PerformanceTimer(string name)
|
||||
{
|
||||
|
@ -104,7 +104,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
// Calculate the split time.
|
||||
double splitTime = ((endPerformanceCounter - splitPerformanceCounter) * performanceCounterFrequency);
|
||||
|
||||
// Set the new split performace counter.
|
||||
// Set the new split performance counter.
|
||||
splitPerformanceCounter = endPerformanceCounter;
|
||||
|
||||
// Return the split time.
|
||||
|
|
|
@ -9,7 +9,7 @@ namespace OpenLiveWriter.CoreServices.Progress
|
|||
public interface IProgressHost
|
||||
{
|
||||
/// <summary>
|
||||
/// Notifies the host that progess has been made.
|
||||
/// Notifies the host that progress has been made.
|
||||
/// </summary>
|
||||
/// <param name="complete">a number indicating what fraction of the total expected progress has been made
|
||||
/// (note: this number should always be less than the total)</param>
|
||||
|
@ -18,14 +18,14 @@ namespace OpenLiveWriter.CoreServices.Progress
|
|||
void UpdateProgress(int complete, int total, string message);
|
||||
|
||||
/// <summary>
|
||||
/// Notifies the host that progess has been made.
|
||||
/// Notifies the host that progress has been made.
|
||||
/// </summary>
|
||||
/// <param name="complete">a number indicating what fraction of the total expected progress has been made</param>
|
||||
/// <param name="total">the total expected progress that the operation will perform.</param>
|
||||
void UpdateProgress(int complete, int total);
|
||||
|
||||
/// <summary>
|
||||
/// Notifies the host that progess has been made.
|
||||
/// Notifies the host that progress has been made.
|
||||
/// </summary>
|
||||
/// <param name="message">a message describing the current progress</param>
|
||||
void UpdateProgress(string message);
|
||||
|
|
|
@ -172,7 +172,7 @@ namespace ImageManipulation
|
|||
for (int col = 0; col < width; col++, pSourcePixel++, pDestinationPixel++)
|
||||
{
|
||||
// Check if this is the same as the last pixel. If so use that value
|
||||
// rather than calculating it again. This is an inexpensive optimisation.
|
||||
// rather than calculating it again. This is an inexpensive optimization.
|
||||
if (*pPreviousPixel != *pSourcePixel)
|
||||
{
|
||||
// Quantize the pixel
|
||||
|
@ -222,7 +222,7 @@ namespace ImageManipulation
|
|||
/// <summary>
|
||||
/// Retrieve the palette for the quantized image
|
||||
/// </summary>
|
||||
/// <param name="original">Any old palette, this is overrwritten</param>
|
||||
/// <param name="original">Any old palette, this is overwritten</param>
|
||||
/// <returns>The new color palette</returns>
|
||||
protected abstract ColorPalette GetPalette(ColorPalette original);
|
||||
|
||||
|
|
|
@ -92,7 +92,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
private Thread monitorThread;
|
||||
|
||||
/// <summary>
|
||||
/// Initializesd the fixed set of monitor events.
|
||||
/// Initializes the fixed set of monitor events.
|
||||
/// </summary>
|
||||
private void InitFixedMonitorEvents()
|
||||
{
|
||||
|
@ -130,7 +130,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
}
|
||||
/// <summary>
|
||||
/// Register a method for callbacks when the specified registry key is changed.
|
||||
/// Note: this operation does not recursively register for notifcations from subkeys!
|
||||
/// Note: this operation does not recursively register for notifications from subkeys!
|
||||
/// </summary>
|
||||
/// <param name="hkey">the HKEY constant (HKEY.CURRENT_USER or HKEY.CLASSES_ROOT)</param>
|
||||
/// <param name="key">the registry key path (example: @"Software\AppDataLow\Software\Onfolio\Preferences\Appearance"</param>
|
||||
|
@ -203,7 +203,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
return GetRegistryKeyMonitor(hkey, key, false);
|
||||
}
|
||||
/// <summary>
|
||||
/// Retreives the RegistryKeyMonitor associated with the specified registry key
|
||||
/// Retrieves the RegistryKeyMonitor associated with the specified registry key
|
||||
/// </summary>
|
||||
/// <param name="key"></param>
|
||||
/// <returns></returns>
|
||||
|
@ -415,7 +415,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
Kernel32.INFINITE);
|
||||
if (result >= 0 && result < FIXED_MONITOR_EVENTS.Length)
|
||||
{
|
||||
//a FIXED_MONITOR_EVENT occured, so handle it.
|
||||
//a FIXED_MONITOR_EVENT occurred, so handle it.
|
||||
if (result == MONITOR_HANDLES_UPDATED_INDEX)
|
||||
{
|
||||
//the monitorHandlesUpdatedEvent was signalled, so reset it and re-loop
|
||||
|
@ -441,7 +441,7 @@ namespace OpenLiveWriter.CoreServices
|
|||
while ((result >= WAIT.OBJECT_0 && result <= (WAIT.OBJECT_0 + monitorHandles.Length - 1))
|
||||
&& !(result >= 0 && result < FIXED_MONITOR_EVENTS.Length))
|
||||
{
|
||||
//a registry change event occured, so add the monitor to the notification list.
|
||||
//a registry change event occurred, so add the monitor to the notification list.
|
||||
RegistryKeyMonitor keyMonitor = monitors[result - FIXED_MONITOR_EVENTS.Length];
|
||||
regChangeList[keyMonitor.FullKey] = keyMonitor;
|
||||
|
||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue