Reorg usings.

This commit is contained in:
soukoku 2014-04-17 19:11:11 -04:00
parent b6ee9dfed9
commit 72760ddad2
56 changed files with 46 additions and 129 deletions

View File

@ -2,9 +2,7 @@
using NTwain.Values;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace NTwain.Data
{

View File

@ -1,9 +1,6 @@
using NTwain.Values;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace NTwain.Data
{

View File

@ -1,9 +1,9 @@
// This file contains all the structs defined in the twain.h file.
using NTwain.Values;
using System;
using System.Runtime.InteropServices;
using NTwain.Values;
using TW_BOOL = System.UInt16; // unsigned short
// The following TWAIN basic types are mapped with "using"
// to aid in mapping against the twain.h file using copy-paste.
// Consumers will not see those names.
@ -11,19 +11,15 @@ using NTwain.Values;
// use HandleRef instead?
using TW_HANDLE = System.IntPtr; // HANDLE, todo: should really be uintptr?
using TW_MEMREF = System.IntPtr; // LPVOID
// iffy
using TW_UINTPTR = System.UIntPtr; // UINT_PTR
using TW_INT8 = System.SByte; // char
using TW_INT16 = System.Int16; // short
using TW_INT32 = System.Int32; // long
using TW_UINT8 = System.Byte; // unsigned char
using TW_INT8 = System.SByte; // char
using TW_MEMREF = System.IntPtr; // LPVOID
using TW_UINT16 = System.UInt16; // unsigned short
using TW_UINT32 = System.UInt32; // unsigned long
using TW_BOOL = System.UInt16; // unsigned short
using TW_UINT8 = System.Byte; // unsigned char
// iffy
using TW_UINTPTR = System.UIntPtr; // UINT_PTR

View File

@ -6,16 +6,16 @@ namespace NTwain
/// <summary>
/// Contains event data after whatever data from the source has been transferred.
/// </summary>
public class DataTransferredEventArgs : EventArgs
{
/// <summary>
/// Gets pointer to the complete data if the transfer was native.
/// The data will be freed once the event handler ends
/// so consumers must complete whatever processing before then.
public class DataTransferredEventArgs : EventArgs
{
/// <summary>
/// Gets pointer to the complete data if the transfer was native.
/// The data will be freed once the event handler ends
/// so consumers must complete whatever processing before then.
/// For image type this data is DIB (Windows), PICT (old Mac), and TIFF (Linux/OSX).
/// </summary>
/// <value>The data pointer.</value>
public IntPtr NativeData { get; internal set; }
/// </summary>
/// <value>The data pointer.</value>
public IntPtr NativeData { get; internal set; }
/// <summary>
/// Gets the file path to the complete data if the transfer was file or memory-file.
@ -50,5 +50,5 @@ namespace NTwain
/// The extended image information.
/// </value>
public TWExtImageInfo ExImageInfo { get; internal set; }
}
}
}

View File

@ -1,5 +1,5 @@
using System;
using NTwain.Data;
using NTwain.Data;
using System;
namespace NTwain
{

View File

@ -1,9 +1,4 @@
using NTwain.Data;
using NTwain.Triplets;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NTwain.Triplets;
namespace NTwain
{

View File

@ -1,5 +1,4 @@
using NTwain.Data;
using NTwain.Triplets;
using System;
using System.ComponentModel;
namespace NTwain

View File

@ -1,10 +1,6 @@
using NTwain.Data;
using NTwain.Properties;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace NTwain
{

View File

@ -1,10 +1,7 @@
using NTwain.Properties;
using NTwain.Triplets;
using System;
using System.Collections.Generic;
using System.Diagnostics;
using System.Linq;
using System.Text;
using System.Threading;
using System.Windows.Interop;
using System.Windows.Threading;

View File

@ -1,8 +1,5 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.InteropServices;
using System.Text;
namespace NTwain
{

View File

@ -1,8 +1,8 @@
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Resources;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;
[assembly: AssemblyTitle("NTwain")]
[assembly: AssemblyDescription("Library containing the TWAIN API for dotnet.")]

View File

@ -1,9 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NTwain
namespace NTwain
{
class TentativeStateCommitable : ICommitable
{

View File

@ -1,9 +1,6 @@
using NTwain.Data;
using NTwain.Values;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NTwain
{

View File

@ -1,8 +1,5 @@
using System;
using NTwain.Data;
using NTwain.Values;
using System.Collections.Generic;
using System.Linq;
using NTwain.Data;
using System;
namespace NTwain
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,7 +1,5 @@
using System;
using NTwain.Data;
using NTwain.Values;
using System.Runtime.InteropServices;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,4 @@
using System;
using NTwain.Data;
using NTwain.Values;
using NTwain.Values;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using System;
using NTwain.Data;
using NTwain.Values;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using System;
using NTwain.Data;
using NTwain.Values;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,6 +1,5 @@
using NTwain.Data;
using NTwain.Values;
using System;
namespace NTwain.Triplets
{

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
using NTwain.Data;
using NTwain.Data;
using NTwain.Values;
using System;
using System.Runtime.InteropServices;
namespace NTwain.Triplets
{

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
using NTwain.Data;
using NTwain.Data;
using NTwain.Values;
using System;
using System.Runtime.InteropServices;
namespace NTwain.Triplets
{

View File

@ -1,7 +1,7 @@
using System;
using System.Runtime.InteropServices;
using NTwain.Data;
using NTwain.Data;
using NTwain.Values;
using System;
using System.Runtime.InteropServices;
namespace NTwain.Triplets
{

View File

@ -1,8 +1,6 @@
using System;
using System.Runtime.InteropServices;
using NTwain.Data;
using NTwain.Data;
using NTwain.Values;
using System.IO;
using System;
namespace NTwain.Triplets
{

View File

@ -1,8 +1,4 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using NTwain.Values;
namespace NTwain.Triplets
{

View File

@ -7,12 +7,8 @@ using System.Collections.Generic;
using System.ComponentModel;
using System.Diagnostics;
using System.IO;
using System.Linq;
using System.Runtime.InteropServices;
using System.Security.Permissions;
using System.Text;
using System.Threading;
using System.Windows.Threading;
namespace NTwain
{

View File

@ -1,9 +1,7 @@
using NTwain.Data;
using NTwain.Values;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NTwain
{

View File

@ -1,6 +1,6 @@
using System;
using NTwain.Values;
using System;
using System.Runtime.Serialization;
using NTwain.Values;
using System.Security.Permissions;
namespace NTwain

View File

@ -1,5 +1,5 @@
using System;
using NTwain.Data;
using NTwain.Data;
using System;
namespace NTwain.Values
{

View File

@ -2,7 +2,6 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
namespace NTwain.Values
{