objc2_application_services/generated/PrintCore/
PMPrintSettingsKeys.rs1use core::ffi::*;
4use core::ptr::NonNull;
5#[cfg(feature = "objc2")]
6use objc2::__framework_prelude::*;
7
8use crate::*;
9
10pub const kPMCopiesStr: &CStr =
12 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCopies\0") };
13pub const kPMCopyCollateStr: &CStr = unsafe {
15 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCopyCollate\0")
16};
17pub const kPMOutputOrderStr: &CStr =
19 unsafe { CStr::from_bytes_with_nul_unchecked(b"OutputOrder\0") };
20pub const kPMPageSetStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"page-set\0") };
22pub const kPMMirrorStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"mirror\0") };
24pub const kPMPrintSelectionOnlyStr: &CStr = unsafe {
26 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPrintSelectionOnly\0")
27};
28pub const kPMBorderStr: &CStr =
30 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMBorder\0") };
31pub const kPMBorderTypeStr: &CStr =
33 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMBorderType\0") };
34pub const kPMLayoutNUpStr: &CStr =
36 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutNUp\0") };
37pub const kPMLayoutRowsStr: &CStr =
39 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutRows\0") };
40pub const kPMLayoutColumnsStr: &CStr = unsafe {
42 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutColumns\0")
43};
44pub const kPMLayoutDirectionStr: &CStr = unsafe {
46 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutDirection\0")
47};
48pub const kPMLayoutTileOrientationStr: &CStr = unsafe {
50 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMLayoutTileOrientation\0")
51};
52pub const kPMJobStateStr: &CStr =
54 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobState\0") };
55pub const kPMJobHoldUntilTimeStr: &CStr = unsafe {
57 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobHoldUntilTime\0")
58};
59pub const kPMJobPriorityStr: &CStr = unsafe {
61 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMJobPriority\0")
62};
63pub const kPMDuplexingStr: &CStr =
65 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMDuplexing\0") };
66pub const kPMColorSyncProfileIDStr: &CStr = unsafe {
68 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMColorSyncProfileID\0")
69};
70pub const kPMPrimaryPaperFeedStr: &CStr = unsafe {
72 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPrimaryPaperFeed\0")
73};
74pub const kPMSecondaryPaperFeedStr: &CStr = unsafe {
76 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMSecondaryPaperFeed\0")
77};
78pub const kPMPSErrorHandlerStr: &CStr = unsafe {
80 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPSErrorHandler\0")
81};
82pub const kPMPSTraySwitchStr: &CStr = unsafe {
84 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMPSTraySwitch\0")
85};
86pub const kPMTotalBeginPagesStr: &CStr = unsafe {
88 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMTotalBeginPages\0")
89};
90pub const kPMTotalSidesImagedStr: &CStr = unsafe {
92 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMTotalSidesImaged\0")
93};
94pub const kPMFitToPageStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"fit-to-page\0") };
96pub const kPMUseOptionalPINStr: &CStr = unsafe {
98 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMUseOptionalPIN\0")
99};
100pub const kPMUseOptionalAccountIDStr: &CStr = unsafe {
102 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMUseOptionalAccountID\0")
103};
104pub const kPMFaxNumberStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"phone\0") };
106pub const kPMFaxToStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxTo\0") };
108pub const kPMFaxPrefixStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxPrefix\0") };
110pub const kPMFaxSubjectStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSubject\0") };
112pub const kPMFaxCoverSheetStr: &CStr =
114 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxCoverSheet\0") };
115pub const kPMFaxCoverSheetMessageStr: &CStr =
117 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxCoverSheetMessage\0") };
118pub const kPMFaxToneDialingStr: &CStr =
120 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxToneDialing\0") };
121pub const kPMFaxUseSoundStr: &CStr =
123 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxUseSound\0") };
124pub const kPMFaxWaitForDialToneStr: &CStr =
126 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxWaitForDialTone\0") };
127pub const kPMFaxToLabelStr: &CStr = unsafe { CStr::from_bytes_with_nul_unchecked(b"faxToLabel\0") };
129pub const kPMFaxFromLabelStr: &CStr =
131 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxFromLabel\0") };
132pub const kPMFaxDateLabelStr: &CStr =
134 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxDateLabel\0") };
135pub const kPMFaxSubjectLabelStr: &CStr =
137 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSubjectLabel\0") };
138pub const kPMFaxSheetsLabelStr: &CStr =
140 unsafe { CStr::from_bytes_with_nul_unchecked(b"faxSheetsLabel\0") };
141pub const kPMCoverPageStr: &CStr =
143 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCoverPage\0") };
144pub const kPMCoverPageDefault: c_uint = kPMCoverPageNone;
146pub const kPMCoverPageSourceStr: &CStr = unsafe {
148 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMCoverPageSource\0")
149};
150pub const kPMDestinationPrinterIDStr: &CStr =
152 unsafe { CStr::from_bytes_with_nul_unchecked(b"DestinationPrinterID\0") };
153pub const kPMInlineWorkflowStr: &CStr =
155 unsafe { CStr::from_bytes_with_nul_unchecked(b"inlineWorkflow\0") };
156pub const kPMPageToPaperMappingTypeStr: &CStr =
158 unsafe { CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingType\0") };
159pub const kPMPageToPaperMediaNameStr: &CStr = unsafe {
161 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingMediaName\0")
162};
163pub const kPMPageToPaperMappingAllowScalingUpStr: &CStr = unsafe {
165 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PageToPaperMappingAllowScalingUp\0")
166};
167pub const kPMCustomProfilePathStr: &CStr =
169 unsafe { CStr::from_bytes_with_nul_unchecked(b"PMCustomProfilePath\0") };
170pub const kPMVendorColorMatchingStr: &CStr =
172 unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_VendorColorMatching\0") };
173pub const kPMApplicationColorMatchingStr: &CStr =
175 unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_ApplicationColorMatching\0") };
176pub const kPMColorMatchingModeStr: &CStr =
178 unsafe { CStr::from_bytes_with_nul_unchecked(b"AP_ColorMatchingMode\0") };
179pub const kPMDestinationTypeStr: &CStr = unsafe {
181 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMDestinationType\0")
182};
183pub const kPMOutputFilenameStr: &CStr = unsafe {
185 CStr::from_bytes_with_nul_unchecked(b"com.apple.print.PrintSettings.PMOutputFilename\0")
186};
187pub const kPMCoverPageNone: c_uint = 1;
189pub const kPMCoverPageBefore: c_uint = 2;
191pub const kPMCoverPageAfter: c_uint = 3;
193
194#[repr(transparent)]
196#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
197pub struct PMPageToPaperMappingType(pub c_uint);
198impl PMPageToPaperMappingType {
199 #[doc(alias = "kPMPageToPaperMappingNone")]
200 pub const None: Self = Self(1);
201 #[doc(alias = "kPMPageToPaperMappingScaleToFit")]
202 pub const ScaleToFit: Self = Self(2);
203}
204
205#[cfg(feature = "objc2")]
206unsafe impl Encode for PMPageToPaperMappingType {
207 const ENCODING: Encoding = c_uint::ENCODING;
208}
209
210#[cfg(feature = "objc2")]
211unsafe impl RefEncode for PMPageToPaperMappingType {
212 const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
213}