mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 05:53:27 -07:00
Code quality changes, and added the possibility to set the amount of colors for the Quantizer.
This commit is contained in:
parent
3b1560390b
commit
77a92d98c3
92 changed files with 690 additions and 653 deletions
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050F1D8-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLBodyElement {
|
||||
string scroll {
|
||||
set;
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050f3db-98b5-11cf-bb82-00aa00bdce0b"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLCurrentStyle {
|
||||
/// <summary><para><c>styleFloat</c> property of <c>IHTMLStyle</c> interface.</para></summary>
|
||||
string styleFloat {
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Greenshot.Interop.IE {
|
|||
[Guid("626FC520-A41E-11CF-A731-00A0C9082637")]
|
||||
[ComImport]
|
||||
[TypeLibType(TypeLibTypeFlags.FDual)]
|
||||
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLDocument {
|
||||
object Script {
|
||||
[return: MarshalAs(UnmanagedType.IDispatch)]
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Greenshot.Interop.IE {
|
|||
[Guid("332C4425-26CB-11D0-B483-00C04FD90119")]
|
||||
[ComImport]
|
||||
[TypeLibType(TypeLibTypeFlags.FDual)]
|
||||
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLDocument2 {
|
||||
IHTMLElement body {
|
||||
[DispId(1004)]
|
||||
|
|
|
@ -26,7 +26,7 @@ namespace Greenshot.Interop.IE {
|
|||
[Guid("3050F485-98B5-11CF-BB82-00AA00BDCE0B")]
|
||||
[ComImport]
|
||||
[TypeLibType(TypeLibTypeFlags.FDual)]
|
||||
[InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
[InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLDocument3 {
|
||||
IHTMLElement documentElement {
|
||||
[DispId(1075)]
|
||||
|
|
|
@ -23,7 +23,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
namespace Greenshot.Interop.IE {
|
||||
[ComVisible(true), Guid("3050f69a-98b5-11cf-bb82-00aa00bdce0b"),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch),
|
||||
TypeLibType(TypeLibTypeFlags.FDual)]
|
||||
public interface IHTMLDocument4 {
|
||||
[DispId(1090)]
|
||||
|
|
|
@ -23,7 +23,7 @@ using System.Runtime.InteropServices;
|
|||
|
||||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, ComVisible(true), Guid("3050f80c-98b5-11cf-bb82-00aa00bdce0b"),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch),
|
||||
TypeLibType(TypeLibTypeFlags.FDual)]
|
||||
public interface IHTMLDocument5 {
|
||||
[DispId(1102)]
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050F1FF-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLElement {
|
||||
[DispId(-2147417611)]
|
||||
void setAttribute([MarshalAs(UnmanagedType.BStr)] string strAttributeName, object AttributeValue, int lFlags);
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050F434-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLElement2 {
|
||||
[DispId(-2147417067)]
|
||||
[return: MarshalAs(UnmanagedType.IDispatch)]
|
||||
|
|
|
@ -25,7 +25,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport(), ComVisible(true),
|
||||
Guid("3050F21F-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch),
|
||||
TypeLibType(TypeLibTypeFlags.FDispatchable)]
|
||||
public interface IHTMLElementCollection : IEnumerable {
|
||||
new IEnumerator GetEnumerator();
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComVisible(true), ComImport(), Guid("3050f311-98b5-11cf-bb82-00aa00bdce0b"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLFrameBase {
|
||||
//dispinterface IHTMLFrameBase {
|
||||
// properties:
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport(), ComVisible(true),
|
||||
Guid("332C4426-26CB-11D0-B483-00C04FD90119"),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch),
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch),
|
||||
TypeLibType(TypeLibTypeFlags.FDispatchable)]
|
||||
public interface IHTMLFramesCollection2 {
|
||||
[DispId(0)]
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050F4A3-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLRect {
|
||||
int bottom {
|
||||
[DispId(1004)]
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050F35C-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLScreen {
|
||||
[DispId(1003)]
|
||||
int width {
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050F84A-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLScreen2 {
|
||||
int logicalXDPI {
|
||||
[DispId(1009)]
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace Greenshot.Interop.IE {
|
|||
// See: http://msdn.microsoft.com/en-us/library/aa768849%28v=vs.85%29.aspx
|
||||
[ComImport, Guid("3050f25A-98b5-11cf-bb82-00aa00bdce0b"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLSelectionObject {
|
||||
[return: MarshalAs(UnmanagedType.IDispatch)]
|
||||
[DispId(1001)]
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComImport, Guid("3050F25E-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLStyle {
|
||||
/// <summary><para><c>setAttribute</c> method of <c>IHTMLStyle</c> interface.</para></summary>
|
||||
/// <remarks><para>An original IDL definition of <c>setAttribute</c> method was the following: <c>HRESULT setAttribute (BSTR strAttributeName, VARIANT AttributeValue, [optional, defaultvalue(1)] long lFlags)</c>;</para></remarks>
|
||||
|
|
|
@ -25,7 +25,7 @@ namespace Greenshot.Interop.IE {
|
|||
// See: http://msdn.microsoft.com/en-us/library/aa741548%28v=vs.85%29.aspx
|
||||
[ComImport, Guid("3050F220-98B5-11CF-BB82-00AA00BDCE0B"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLTxtRange {
|
||||
[DispId(1006)]
|
||||
IHTMLElement parentElement();
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComVisible(true), ComImport(), Guid("332c4427-26cb-11d0-b483-00c04fd90119"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLWindow2 {
|
||||
[DispId(1156)]
|
||||
IHTMLScreen screen {
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComVisible(true), ComImport(), Guid("3050f4ae-98b5-11cf-bb82-00aa00bdce0b"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLWindow3 {
|
||||
[DispId(1170)]
|
||||
int screenLeft { get;}
|
||||
|
|
|
@ -24,7 +24,7 @@ using System.Runtime.InteropServices;
|
|||
namespace Greenshot.Interop.IE {
|
||||
[ComVisible(true), ComImport(), Guid("3050f6cf-98b5-11cf-bb82-00aa00bdce0b"),
|
||||
TypeLibType(TypeLibTypeFlags.FDual),
|
||||
InterfaceTypeAttribute(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
InterfaceType(ComInterfaceType.InterfaceIsIDispatch)]
|
||||
public interface IHTMLWindow4 {
|
||||
[DispId(1181)]
|
||||
IHTMLFrameBase frameElement {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue