Skip to content

Commit

Permalink
[Regular Commit]
Browse files Browse the repository at this point in the history
- fix/improve NetOffice.OutlookSecurity
- improve Google Translation addin(handle multi-line text)
- add concept test for NetOffice.OutlookSecurity

Imported from NetOffice 113336
https://netoffice.codeplex.com/SourceControl/changeset/113336
Legacy NetOffice Git repository commit 72d39156406711215cc5e2236c60f04862231cfa
  • Loading branch information
SebastianDotNet authored and jozefizso committed Apr 13, 2016
1 parent e3e1ecb commit 682f463
Show file tree
Hide file tree
Showing 9 changed files with 364 additions and 130 deletions.
33 changes: 33 additions & 0 deletions NetOffice.OutlookSecurity/ClickStrategy.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace NetOffice.OutlookSecurity
{
/// <summary>
/// Click strategy for the security dialog suppressor
/// </summary>
public enum ClickStrategy
{
/// <summary>
/// Move mouse to position, perform click and restore origin mouse position
/// </summary>
MoveTo = 0,

/// <summary>
/// Use SendMessage
/// </summary>
SendMessage = 1,

/// <summary>
/// Use PostMessage
/// </summary>
PostMessage = 2,

/// <summary>
/// Do nothing, Use Suppress.OnAction event to handle click at hand
/// </summary>
None = 3
}
}
1 change: 1 addition & 0 deletions NetOffice.OutlookSecurity/NetOffice.OutlookSecurity.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="ClickStrategy.cs" />
<Compile Include="Rect.cs" />
<Compile Include="SecurityDialog.cs" />
<Compile Include="SecurityDialogCheckBox.cs" />
Expand Down
4 changes: 2 additions & 2 deletions NetOffice.OutlookSecurity/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -32,5 +32,5 @@
// Sie können alle Werte angeben oder die standardmäßigen Build- und Revisionsnummern
// übernehmen, indem Sie "*" eingeben:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("1.1.0.0")]
[assembly: AssemblyFileVersion("1.1.0.0")]
[assembly: AssemblyVersion("1.2.0.0")]
[assembly: AssemblyFileVersion("1.2.0.0")]
20 changes: 19 additions & 1 deletion NetOffice.OutlookSecurity/SecurityDialog.cs
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,28 @@ internal SecurityDialog(IntPtr handle, string caption, string className, Rect di
/// </summary>
public string ClassName { get; internal set; }


/// <summary>
/// Dialog position/size
/// </summary>
public Rect Dimension { get; internal set; }

/// <summary>
/// Flag to keep information a TimeoutException was thrown for the dialog
/// </summary>
internal bool ExceptionThrown { get; set; }

/// <summary>
/// Flag to keep information checkbox is clicked for the dialog
/// </summary>
internal bool CheckBoxPassed { get; set; }

/// <summary>
/// Returns a System.String that represents the instance
/// </summary>
/// <returns>System.String</returns>
public override string ToString()
{
return String.Format("SecurityDialog {0}", Handle);
}
}
}
9 changes: 9 additions & 0 deletions NetOffice.OutlookSecurity/SecurityDialogCheckBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ internal SecurityDialogCheckBox(IntPtr handle, string caption, Rect dimension)
/// Control dimension
/// </summary>
public Rect Dimension { get; internal set; }

/// <summary>
/// Returns a System.String that represents the instance
/// </summary>
/// <returns>System.String</returns>
public override string ToString()
{
return String.Format("SecurityDialogCheckBox {0}", Handle);
}
}
}
9 changes: 9 additions & 0 deletions NetOffice.OutlookSecurity/SecurityDialogLeftButton.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,14 @@ internal SecurityDialogLeftButton(IntPtr handle, string caption, Rect dimension)
/// Button location/size
/// </summary>
public Rect Dimension { get; internal set; }

/// <summary>
/// Returns a System.String that represents the instance
/// </summary>
/// <returns>System.String</returns>
public override string ToString()
{
return String.Format("SecurityDialogLeftButton {0}", Handle);
}
}
}
Loading

0 comments on commit 682f463

Please sign in to comment.