Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
207 changes: 70 additions & 137 deletions SharpIpp/Model/Finishings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,142 +3,75 @@
public enum Finishings
{
Unsupported,

/// <summary>
/// Perform no finishing
/// </summary>
None = 3,

/// <summary>
/// Bind the document(s) with one or more staples. The
/// exact number and placement of the staples is site-
/// defined.
/// </summary>
Staple = 4,

/// <summary>
/// This value indicates that holes are required in the
/// finished document. The exact number and placement of the
/// holes is site-defined The punch specification MAY be
/// satisfied (in a site- and implementation-specific manner)
/// either by drilling/punching, or by substituting pre-
/// drilled media.
/// </summary>
Punch = 5,

/// <summary>
/// This value is specified when it is desired to select
/// a non-printed (or pre-printed) cover for the document.
/// This does not supplant the specification of a printed
/// cover (on cover stock medium) by the document itself.
/// </summary>
Cover = 6,

/// <summary>
/// This value indicates that a binding is to be applied
/// to the document; the type and placement of the binding is
/// site-defined.
/// </summary>
Bind = 7,

/// <summary>
/// Bind the document(s) with one or more
/// staples (wire stitches) along the middle fold. The exact
/// number and placement of the staples and the middle fold
/// is implementation and/or site-defined.
/// </summary>
SaddleStitch = 8,

/// <summary>
/// Bind the document(s) with one or more staples
/// (wire stitches) along one edge. The exact number and
/// placement of the staples is implementation and/or site-
/// defined.
/// </summary>
EdgeStitch = 9,

/// <summary>
/// Bind the document(s) with one or more
/// staples in the top left corner.
/// </summary>
StapleTopLeft = 20,

/// <summary>
/// Bind the document(s) with one or more
/// staples in the bottom left corner.
/// </summary>
StapleBottomLeft = 21,

/// <summary>
/// Bind the document(s) with one or more
/// staples in the top right corner.
/// </summary>
StapleTopRight = 22,

/// <summary>
/// Bind the document(s) with one or more
/// staples in the bottom right corner.
/// </summary>
StapleBottomRight = 23,

/// <summary>
/// Bind the document(s) with one or more
/// staples (wire stitches) along the left edge. The exact
/// number and placement of the staples is implementation
/// and/or site-defined.
/// </summary>
EdgeStitchLeft = 24,

/// <summary>
/// Bind the document(s) with one or more
/// staples (wire stitches) along the top edge. The exact
/// number and placement of the staples is implementation
/// and/or site-defined.
/// </summary>
EdgeStitchTop = 25,

/// <summary>
/// Bind the document(s) with one or more
/// staples (wire stitches) along the right edge. The exact
/// number and placement of the staples is implementation
/// and/or site-defined.
/// </summary>
EdgeStitchRight = 26,

/// <summary>
/// Bind the document(s) with one or more
/// staples (wire stitches) along the bottom edge. The exact
/// number and placement of the staples is implementation
/// and/or site-defined.
/// </summary>
EdgeStitchBottom = 27,

/// <summary>
/// Bind the document(s) with two staples
/// (wire stitches) along the left edge assuming a portrait
/// document (see above).
/// </summary>
StapleDualLeft = 28,

/// <summary>
/// Bind the document(s) with two staples
/// (wire stitches) along the top edge assuming a portrait
/// document (see above).
/// </summary>
StapleDualTop = 29,

/// <summary>
/// Bind the document(s) with two staples
/// (wire stitches) along the right edge assuming a portrait
/// document (see above).
/// </summary>
StapleDualRight = 30,

/// <summary>
/// Bind the document(s) with two staples
/// (wire stitches) along the bottom edge assuming a portrait
/// document (see above).
/// </summary>
StapleDualBottom = 31
none=3,
staple=4,
punch=5,
cover=6,
bind=7,
saddle_stitch=8,
edge_stitch=9,
fold=10,
trim=11,
bale=12,
booklet_maker=13,
jog_offset=14,
coat=15,
laminate=16,
staple_top_left=20,
staple_bottom_left=21,
staple_top_right=22,
staple_bottom_right=23,
edge_stitch_left=24,
edge_stitch_top=25,
edge_stitch_right=26,
edge_stitch_bottom=27,
staple_dual_left=28,
staple_dual_top=29,
staple_dual_right=30,
staple_dual_bottom=31,
staple_triple_left=32,
staple_triple_top=33,
staple_triple_right=34,
staple_triple_bottom=35,
bind_left=50,
bind_top=51,
bind_right=52,
bind_bottom=53,
trim_after_pages=60,
trim_after_documents=61,
trim_after_copies=62,
trim_after_job=63,
punch_top_left=70,
punch_bottom_left=71,
punch_top_right=72,
punch_bottom_right=73,
punch_dual_left=74,
punch_dual_top=75,
punch_dual_right=76,
punch_dual_bottom=77,
punch_triple_left=78,
punch_triple_top=79,
punch_triple_right=80,
punch_triple_bottom=81,
punch_quad_left=82,
punch_quad_top=83,
punch_quad_right=84,
punch_quad_bottom=85,
punch_multiple_left=86,
punch_multiple_top=87,
punch_multiple_right=88,
punch_multiple_bottom=89,
fold_accordion=90,
fold_double_gate=91,
fold_gate=92,
fold_half=93,
fold_half_z=94,
fold_left_gate=95,
fold_letter=96,
fold_parallel=97,
fold_poster=98,
fold_right_gate=99,
fold_z=100,
fold_engineering_z=101
}
}
116 changes: 97 additions & 19 deletions SharpIpp/Model/IppOperation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,24 +5,102 @@
/// </summary>
public enum IppOperation : short
{
Reserved1 = 0x0000,
Reserved2 = 0x0001,
PrintJob = 0x0002,
PrintUri = 0x0003,
ValidateJob = 0x0004,
CreateJob = 0x0005,
SendDocument = 0x0006,
SendUri = 0x0007,
CancelJob = 0x0008,
GetJobAttributes = 0x0009,
GetJobs = 0x000A,
GetPrinterAttributes = 0x000B,
HoldJob = 0x000C,
ReleaseJob = 0x000D,
RestartJob = 0x000E,
ReservedForAFutureOperation = 0x000F,
PausePrinter = 0x0010,
ResumePrinter = 0x0011,
PurgeJobs = 0x0012
Reserved=0x0001,
Print_Job=0x0002,
Print_URI=0x0003,
Validate_Job=0x0004,
Create_Job=0x0005,
Send_Document=0x0006,
Send_URI=0x0007,
Cancel_Job=0x0008,
Get_Job_Attributes=0x0009,
Get_Jobs=0x000A,
Get_Printer_Attributes=0x000B,
Hold_Job=0x000C,
Release_Job=0x000D,
Restart_Job=0x000E,
Pause_Printer=0x0010,
Resume_Printer=0x0011,
Purge_Jobs=0x0012,
Set_Printer_Attributes=0x0013,
Set_Job_Attributes=0x0014,
Get_Printer_Supported_Values=0x0015,
Create_Printer_Subscriptions=0x0016,
Create_Job_Subscriptions=0x0017,
Get_Subscription_Attributes=0x0018,
Get_Subscriptions=0x0019,
Renew_Subscription=0x001A,
Cancel_Subscription=0x001B,
Get_Notifications=0x001C,
Get_Resource_Attributes=0x001E,
Get_Resources=0x0020,
Enable_Printer=0x0022,
Disable_Printer=0x0023,
Pause_Printer_After_Current_Job=0x0024,
Hold_New_Jobs=0x0025,
Release_Held_New_Jobs=0x0026,
Deactivate_Printer=0x0027,
Activate_Printer=0x0028,
Restart_Printer=0x0029,
Shutdown_Printer=0x002A,
Startup_Printer=0x002B,
Reprocess_Job=0x002C,
Cancel_Current_Job=0x002D,
Suspend_Current_Job=0x002E,
Resume_Job=0x002F,
Promote_Job=0x0030,
Schedule_Job_After=0x0031,
Cancel_Document=0x0033,
Get_Document_Attributes=0x0034,
Get_Documents=0x0035,
Set_Document_Attributes=0x0037,
Cancel_Jobs=0x0038,
Cancel_My_Jobs=0x0039,
Resubmit_Job=0x003A,
Close_Job=0x003B,
Identify_Printer=0x003C,
Validate_Document=0x003D,
Add_Document_Images=0x003E,
Acknowledge_Document=0x003F,
Acknowledge_Identify_Printer=0x0040,
Acknowledge_Job=0x0041,
Fetch_Document=0x0042,
Fetch_Job=0x0043,
Get_Output_Device_Attributes=0x0044,
Update_Active_Jobs=0x0045,
Deregister_Output_Device=0x0046,
Update_Document_Status=0x0047,
Update_Job_Status=0x0048,
Update_Output_Device_Attributes=0x0049,
Get_Next_Document_Data=0x004A,
Allocate_Printer_Resources=0x004B,
Create_Printer=0x004C,
Deallocate_Printer_Resources=0x004D,
Delete_Printer=0x004E,
Get_Printers=0x004F,
Shutdown_One_Printer=0x0050,
Startup_One_Printer=0x0051,
Cancel_Resource=0x0052,
Create_Resource=0x0053,
Install_Resource=0x0054,
Send_Resource_Data=0x0055,
Set_Resource_Attributes=0x0056,
Create_Resource_Subscriptions=0x0057,
Create_System_Subscriptions=0x0058,
Disable_All_Printers=0x0059,
Enable_All_Printers=0x005A,
Get_System_Attributes=0x005B,
Get_System_Supported_Values=0x005C,
Pause_All_Printers=0x005D,
Pause_All_Printers_After_Current_Job=0x005E,
Register_Output_Device=0x005F,
Restart_System=0x0060,
Resume_All_Printers=0x0061,
Set_System_Attributes=0x0062,
Shutdown_All_Printers=0x0063,
Startup_All_Printers=0x0064,
Get_Printer_Resources=0x0065,
Get_User_Printer_Attributes=0x0066,
Restart_One_Printer=0x0067
}
}