objc2_app_kit/generated/
NSPrintInfo.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-core-foundation")]
7use objc2_core_foundation::*;
8use objc2_foundation::*;
9
10use crate::*;
11
12/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nspaperorientation?language=objc)
13// NS_ENUM
14#[repr(transparent)]
15#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
16pub struct NSPaperOrientation(pub NSInteger);
17impl NSPaperOrientation {
18    #[doc(alias = "NSPaperOrientationPortrait")]
19    pub const Portrait: Self = Self(0);
20    #[doc(alias = "NSPaperOrientationLandscape")]
21    pub const Landscape: Self = Self(1);
22}
23
24unsafe impl Encode for NSPaperOrientation {
25    const ENCODING: Encoding = NSInteger::ENCODING;
26}
27
28unsafe impl RefEncode for NSPaperOrientation {
29    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
30}
31
32/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintingpaginationmode?language=objc)
33// NS_ENUM
34#[repr(transparent)]
35#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
36pub struct NSPrintingPaginationMode(pub NSUInteger);
37impl NSPrintingPaginationMode {
38    #[doc(alias = "NSPrintingPaginationModeAutomatic")]
39    pub const Automatic: Self = Self(0);
40    #[doc(alias = "NSPrintingPaginationModeFit")]
41    pub const Fit: Self = Self(1);
42    #[doc(alias = "NSPrintingPaginationModeClip")]
43    pub const Clip: Self = Self(2);
44}
45
46unsafe impl Encode for NSPrintingPaginationMode {
47    const ENCODING: Encoding = NSUInteger::ENCODING;
48}
49
50unsafe impl RefEncode for NSPrintingPaginationMode {
51    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
52}
53
54/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintinfoattributekey?language=objc)
55// NS_TYPED_EXTENSIBLE_ENUM
56pub type NSPrintInfoAttributeKey = NSString;
57
58extern "C" {
59    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintpapername?language=objc)
60    pub static NSPrintPaperName: &'static NSPrintInfoAttributeKey;
61}
62
63extern "C" {
64    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintpapersize?language=objc)
65    pub static NSPrintPaperSize: &'static NSPrintInfoAttributeKey;
66}
67
68extern "C" {
69    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintorientation?language=objc)
70    pub static NSPrintOrientation: &'static NSPrintInfoAttributeKey;
71}
72
73extern "C" {
74    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintscalingfactor?language=objc)
75    pub static NSPrintScalingFactor: &'static NSPrintInfoAttributeKey;
76}
77
78extern "C" {
79    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintleftmargin?language=objc)
80    pub static NSPrintLeftMargin: &'static NSPrintInfoAttributeKey;
81}
82
83extern "C" {
84    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintrightmargin?language=objc)
85    pub static NSPrintRightMargin: &'static NSPrintInfoAttributeKey;
86}
87
88extern "C" {
89    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprinttopmargin?language=objc)
90    pub static NSPrintTopMargin: &'static NSPrintInfoAttributeKey;
91}
92
93extern "C" {
94    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintbottommargin?language=objc)
95    pub static NSPrintBottomMargin: &'static NSPrintInfoAttributeKey;
96}
97
98extern "C" {
99    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprinthorizontallycentered?language=objc)
100    pub static NSPrintHorizontallyCentered: &'static NSPrintInfoAttributeKey;
101}
102
103extern "C" {
104    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintverticallycentered?language=objc)
105    pub static NSPrintVerticallyCentered: &'static NSPrintInfoAttributeKey;
106}
107
108extern "C" {
109    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprinthorizontalpagination?language=objc)
110    pub static NSPrintHorizontalPagination: &'static NSPrintInfoAttributeKey;
111}
112
113extern "C" {
114    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintverticalpagination?language=objc)
115    pub static NSPrintVerticalPagination: &'static NSPrintInfoAttributeKey;
116}
117
118extern "C" {
119    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintprinter?language=objc)
120    pub static NSPrintPrinter: &'static NSPrintInfoAttributeKey;
121}
122
123extern "C" {
124    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintcopies?language=objc)
125    pub static NSPrintCopies: &'static NSPrintInfoAttributeKey;
126}
127
128extern "C" {
129    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintallpages?language=objc)
130    pub static NSPrintAllPages: &'static NSPrintInfoAttributeKey;
131}
132
133extern "C" {
134    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintfirstpage?language=objc)
135    pub static NSPrintFirstPage: &'static NSPrintInfoAttributeKey;
136}
137
138extern "C" {
139    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintlastpage?language=objc)
140    pub static NSPrintLastPage: &'static NSPrintInfoAttributeKey;
141}
142
143extern "C" {
144    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintmustcollate?language=objc)
145    pub static NSPrintMustCollate: &'static NSPrintInfoAttributeKey;
146}
147
148extern "C" {
149    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintreversepageorder?language=objc)
150    pub static NSPrintReversePageOrder: &'static NSPrintInfoAttributeKey;
151}
152
153extern "C" {
154    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintjobdisposition?language=objc)
155    pub static NSPrintJobDisposition: &'static NSPrintInfoAttributeKey;
156}
157
158extern "C" {
159    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintpagesacross?language=objc)
160    pub static NSPrintPagesAcross: &'static NSPrintInfoAttributeKey;
161}
162
163extern "C" {
164    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintpagesdown?language=objc)
165    pub static NSPrintPagesDown: &'static NSPrintInfoAttributeKey;
166}
167
168extern "C" {
169    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprinttime?language=objc)
170    pub static NSPrintTime: &'static NSPrintInfoAttributeKey;
171}
172
173extern "C" {
174    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintdetailederrorreporting?language=objc)
175    pub static NSPrintDetailedErrorReporting: &'static NSPrintInfoAttributeKey;
176}
177
178extern "C" {
179    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintfaxnumber?language=objc)
180    pub static NSPrintFaxNumber: &'static NSPrintInfoAttributeKey;
181}
182
183extern "C" {
184    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintprintername?language=objc)
185    pub static NSPrintPrinterName: &'static NSPrintInfoAttributeKey;
186}
187
188extern "C" {
189    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintselectiononly?language=objc)
190    pub static NSPrintSelectionOnly: &'static NSPrintInfoAttributeKey;
191}
192
193extern "C" {
194    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintjobsavingurl?language=objc)
195    pub static NSPrintJobSavingURL: &'static NSPrintInfoAttributeKey;
196}
197
198extern "C" {
199    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintjobsavingfilenameextensionhidden?language=objc)
200    pub static NSPrintJobSavingFileNameExtensionHidden: &'static NSPrintInfoAttributeKey;
201}
202
203extern "C" {
204    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintheaderandfooter?language=objc)
205    pub static NSPrintHeaderAndFooter: &'static NSPrintInfoAttributeKey;
206}
207
208/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintjobdispositionvalue?language=objc)
209// NS_TYPED_ENUM
210pub type NSPrintJobDispositionValue = NSString;
211
212extern "C" {
213    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintspooljob?language=objc)
214    pub static NSPrintSpoolJob: &'static NSPrintJobDispositionValue;
215}
216
217extern "C" {
218    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintpreviewjob?language=objc)
219    pub static NSPrintPreviewJob: &'static NSPrintJobDispositionValue;
220}
221
222extern "C" {
223    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintsavejob?language=objc)
224    pub static NSPrintSaveJob: &'static NSPrintJobDispositionValue;
225}
226
227extern "C" {
228    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintcanceljob?language=objc)
229    pub static NSPrintCancelJob: &'static NSPrintJobDispositionValue;
230}
231
232/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintinfosettingkey?language=objc)
233pub type NSPrintInfoSettingKey = NSString;
234
235extern_class!(
236    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintinfo?language=objc)
237    #[unsafe(super(NSObject))]
238    #[derive(Debug, PartialEq, Eq, Hash)]
239    pub struct NSPrintInfo;
240);
241
242extern_conformance!(
243    unsafe impl NSCoding for NSPrintInfo {}
244);
245
246extern_conformance!(
247    unsafe impl NSCopying for NSPrintInfo {}
248);
249
250unsafe impl CopyingHelper for NSPrintInfo {
251    type Result = Self;
252}
253
254extern_conformance!(
255    unsafe impl NSObjectProtocol for NSPrintInfo {}
256);
257
258impl NSPrintInfo {
259    extern_methods!(
260        #[unsafe(method(sharedPrintInfo))]
261        #[unsafe(method_family = none)]
262        pub fn sharedPrintInfo() -> Retained<NSPrintInfo>;
263
264        /// Setter for [`sharedPrintInfo`][Self::sharedPrintInfo].
265        #[unsafe(method(setSharedPrintInfo:))]
266        #[unsafe(method_family = none)]
267        pub fn setSharedPrintInfo(shared_print_info: &NSPrintInfo);
268
269        /// # Safety
270        ///
271        /// `attributes` generic should be of the correct type.
272        #[unsafe(method(initWithDictionary:))]
273        #[unsafe(method_family = init)]
274        pub unsafe fn initWithDictionary(
275            this: Allocated<Self>,
276            attributes: &NSDictionary<NSPrintInfoAttributeKey, AnyObject>,
277        ) -> Retained<Self>;
278
279        /// # Safety
280        ///
281        /// `coder` possibly has further requirements.
282        #[unsafe(method(initWithCoder:))]
283        #[unsafe(method_family = init)]
284        pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Retained<Self>;
285
286        #[unsafe(method(init))]
287        #[unsafe(method_family = init)]
288        pub fn init(this: Allocated<Self>) -> Retained<Self>;
289
290        /// # Safety
291        ///
292        /// The returned generic should be of the correct type.
293        #[unsafe(method(dictionary))]
294        #[unsafe(method_family = none)]
295        pub unsafe fn dictionary(
296            &self,
297        ) -> Retained<NSMutableDictionary<NSPrintInfoAttributeKey, AnyObject>>;
298
299        #[cfg(feature = "NSPrinter")]
300        #[unsafe(method(paperName))]
301        #[unsafe(method_family = none)]
302        pub fn paperName(&self) -> Option<Retained<NSPrinterPaperName>>;
303
304        #[cfg(feature = "NSPrinter")]
305        /// Setter for [`paperName`][Self::paperName].
306        ///
307        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
308        #[unsafe(method(setPaperName:))]
309        #[unsafe(method_family = none)]
310        pub fn setPaperName(&self, paper_name: Option<&NSPrinterPaperName>);
311
312        #[unsafe(method(paperSize))]
313        #[unsafe(method_family = none)]
314        pub fn paperSize(&self) -> NSSize;
315
316        /// Setter for [`paperSize`][Self::paperSize].
317        #[unsafe(method(setPaperSize:))]
318        #[unsafe(method_family = none)]
319        pub fn setPaperSize(&self, paper_size: NSSize);
320
321        #[unsafe(method(orientation))]
322        #[unsafe(method_family = none)]
323        pub fn orientation(&self) -> NSPaperOrientation;
324
325        /// Setter for [`orientation`][Self::orientation].
326        #[unsafe(method(setOrientation:))]
327        #[unsafe(method_family = none)]
328        pub fn setOrientation(&self, orientation: NSPaperOrientation);
329
330        #[cfg(feature = "objc2-core-foundation")]
331        #[unsafe(method(scalingFactor))]
332        #[unsafe(method_family = none)]
333        pub fn scalingFactor(&self) -> CGFloat;
334
335        #[cfg(feature = "objc2-core-foundation")]
336        /// Setter for [`scalingFactor`][Self::scalingFactor].
337        #[unsafe(method(setScalingFactor:))]
338        #[unsafe(method_family = none)]
339        pub fn setScalingFactor(&self, scaling_factor: CGFloat);
340
341        #[cfg(feature = "objc2-core-foundation")]
342        #[unsafe(method(leftMargin))]
343        #[unsafe(method_family = none)]
344        pub fn leftMargin(&self) -> CGFloat;
345
346        #[cfg(feature = "objc2-core-foundation")]
347        /// Setter for [`leftMargin`][Self::leftMargin].
348        #[unsafe(method(setLeftMargin:))]
349        #[unsafe(method_family = none)]
350        pub fn setLeftMargin(&self, left_margin: CGFloat);
351
352        #[cfg(feature = "objc2-core-foundation")]
353        #[unsafe(method(rightMargin))]
354        #[unsafe(method_family = none)]
355        pub fn rightMargin(&self) -> CGFloat;
356
357        #[cfg(feature = "objc2-core-foundation")]
358        /// Setter for [`rightMargin`][Self::rightMargin].
359        #[unsafe(method(setRightMargin:))]
360        #[unsafe(method_family = none)]
361        pub fn setRightMargin(&self, right_margin: CGFloat);
362
363        #[cfg(feature = "objc2-core-foundation")]
364        #[unsafe(method(topMargin))]
365        #[unsafe(method_family = none)]
366        pub fn topMargin(&self) -> CGFloat;
367
368        #[cfg(feature = "objc2-core-foundation")]
369        /// Setter for [`topMargin`][Self::topMargin].
370        #[unsafe(method(setTopMargin:))]
371        #[unsafe(method_family = none)]
372        pub fn setTopMargin(&self, top_margin: CGFloat);
373
374        #[cfg(feature = "objc2-core-foundation")]
375        #[unsafe(method(bottomMargin))]
376        #[unsafe(method_family = none)]
377        pub fn bottomMargin(&self) -> CGFloat;
378
379        #[cfg(feature = "objc2-core-foundation")]
380        /// Setter for [`bottomMargin`][Self::bottomMargin].
381        #[unsafe(method(setBottomMargin:))]
382        #[unsafe(method_family = none)]
383        pub fn setBottomMargin(&self, bottom_margin: CGFloat);
384
385        #[unsafe(method(isHorizontallyCentered))]
386        #[unsafe(method_family = none)]
387        pub fn isHorizontallyCentered(&self) -> bool;
388
389        /// Setter for [`isHorizontallyCentered`][Self::isHorizontallyCentered].
390        #[unsafe(method(setHorizontallyCentered:))]
391        #[unsafe(method_family = none)]
392        pub fn setHorizontallyCentered(&self, horizontally_centered: bool);
393
394        #[unsafe(method(isVerticallyCentered))]
395        #[unsafe(method_family = none)]
396        pub fn isVerticallyCentered(&self) -> bool;
397
398        /// Setter for [`isVerticallyCentered`][Self::isVerticallyCentered].
399        #[unsafe(method(setVerticallyCentered:))]
400        #[unsafe(method_family = none)]
401        pub fn setVerticallyCentered(&self, vertically_centered: bool);
402
403        #[unsafe(method(horizontalPagination))]
404        #[unsafe(method_family = none)]
405        pub fn horizontalPagination(&self) -> NSPrintingPaginationMode;
406
407        /// Setter for [`horizontalPagination`][Self::horizontalPagination].
408        #[unsafe(method(setHorizontalPagination:))]
409        #[unsafe(method_family = none)]
410        pub fn setHorizontalPagination(&self, horizontal_pagination: NSPrintingPaginationMode);
411
412        #[unsafe(method(verticalPagination))]
413        #[unsafe(method_family = none)]
414        pub fn verticalPagination(&self) -> NSPrintingPaginationMode;
415
416        /// Setter for [`verticalPagination`][Self::verticalPagination].
417        #[unsafe(method(setVerticalPagination:))]
418        #[unsafe(method_family = none)]
419        pub fn setVerticalPagination(&self, vertical_pagination: NSPrintingPaginationMode);
420
421        #[unsafe(method(jobDisposition))]
422        #[unsafe(method_family = none)]
423        pub fn jobDisposition(&self) -> Retained<NSPrintJobDispositionValue>;
424
425        /// Setter for [`jobDisposition`][Self::jobDisposition].
426        ///
427        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
428        #[unsafe(method(setJobDisposition:))]
429        #[unsafe(method_family = none)]
430        pub fn setJobDisposition(&self, job_disposition: &NSPrintJobDispositionValue);
431
432        #[cfg(feature = "NSPrinter")]
433        #[unsafe(method(printer))]
434        #[unsafe(method_family = none)]
435        pub fn printer(&self) -> Retained<NSPrinter>;
436
437        #[cfg(feature = "NSPrinter")]
438        /// Setter for [`printer`][Self::printer].
439        ///
440        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
441        #[unsafe(method(setPrinter:))]
442        #[unsafe(method_family = none)]
443        pub fn setPrinter(&self, printer: &NSPrinter);
444
445        #[unsafe(method(setUpPrintOperationDefaultValues))]
446        #[unsafe(method_family = none)]
447        pub fn setUpPrintOperationDefaultValues(&self);
448
449        #[unsafe(method(imageablePageBounds))]
450        #[unsafe(method_family = none)]
451        pub fn imageablePageBounds(&self) -> NSRect;
452
453        #[unsafe(method(localizedPaperName))]
454        #[unsafe(method_family = none)]
455        pub fn localizedPaperName(&self) -> Option<Retained<NSString>>;
456
457        #[cfg(feature = "NSPrinter")]
458        #[unsafe(method(defaultPrinter))]
459        #[unsafe(method_family = none)]
460        pub fn defaultPrinter() -> Option<Retained<NSPrinter>>;
461
462        /// # Safety
463        ///
464        /// The returned generic should be of the correct type.
465        #[unsafe(method(printSettings))]
466        #[unsafe(method_family = none)]
467        pub unsafe fn printSettings(
468            &self,
469        ) -> Retained<NSMutableDictionary<NSPrintInfoSettingKey, AnyObject>>;
470
471        #[unsafe(method(PMPrintSession))]
472        #[unsafe(method_family = none)]
473        pub fn PMPrintSession(&self) -> NonNull<c_void>;
474
475        #[unsafe(method(PMPageFormat))]
476        #[unsafe(method_family = none)]
477        pub fn PMPageFormat(&self) -> NonNull<c_void>;
478
479        #[unsafe(method(PMPrintSettings))]
480        #[unsafe(method_family = none)]
481        pub fn PMPrintSettings(&self) -> NonNull<c_void>;
482
483        #[unsafe(method(updateFromPMPageFormat))]
484        #[unsafe(method_family = none)]
485        pub fn updateFromPMPageFormat(&self);
486
487        #[unsafe(method(updateFromPMPrintSettings))]
488        #[unsafe(method_family = none)]
489        pub fn updateFromPMPrintSettings(&self);
490
491        #[unsafe(method(isSelectionOnly))]
492        #[unsafe(method_family = none)]
493        pub fn isSelectionOnly(&self) -> bool;
494
495        /// Setter for [`isSelectionOnly`][Self::isSelectionOnly].
496        #[unsafe(method(setSelectionOnly:))]
497        #[unsafe(method_family = none)]
498        pub fn setSelectionOnly(&self, selection_only: bool);
499
500        #[cfg(feature = "NSPDFInfo")]
501        #[unsafe(method(takeSettingsFromPDFInfo:))]
502        #[unsafe(method_family = none)]
503        pub fn takeSettingsFromPDFInfo(&self, in_pdf_info: &NSPDFInfo);
504    );
505}
506
507/// Methods declared on superclass `NSObject`.
508impl NSPrintInfo {
509    extern_methods!(
510        #[unsafe(method(new))]
511        #[unsafe(method_family = new)]
512        pub fn new() -> Retained<Self>;
513    );
514}
515
516impl DefaultRetained for NSPrintInfo {
517    #[inline]
518    fn default_retained() -> Retained<Self> {
519        Self::new()
520    }
521}
522
523/// NSDeprecated.
524impl NSPrintInfo {
525    extern_methods!(
526        #[cfg(feature = "NSPrinter")]
527        #[deprecated = "NSPrintInfo's implementation has no effect"]
528        #[unsafe(method(setDefaultPrinter:))]
529        #[unsafe(method_family = none)]
530        pub fn setDefaultPrinter(printer: Option<&NSPrinter>);
531
532        #[cfg(feature = "NSPrinter")]
533        #[deprecated = "Use -[NSPrinter pageSizeForPaper:] instead"]
534        #[unsafe(method(sizeForPaperName:))]
535        #[unsafe(method_family = none)]
536        pub fn sizeForPaperName(name: Option<&NSPrinterPaperName>) -> NSSize;
537    );
538}
539
540extern "C" {
541    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintformname?language=objc)
542    #[deprecated = "NSPrintInfo does not recognize this attribute"]
543    pub static NSPrintFormName: &'static NSString;
544}
545
546extern "C" {
547    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintjobfeatures?language=objc)
548    #[deprecated = "NSPrintInfo does not recognize this attribute. -[NSPrintInfo setUpPrintOperationDefaultValues] sets a default value of an empty dictionary"]
549    pub static NSPrintJobFeatures: &'static NSString;
550}
551
552extern "C" {
553    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintmanualfeed?language=objc)
554    #[deprecated = "NSPrintInfo does not recognize this attribute"]
555    pub static NSPrintManualFeed: &'static NSString;
556}
557
558extern "C" {
559    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintpagespersheet?language=objc)
560    #[deprecated = "NSPrintInfo does not recognize this attribute. -[NSPrintInfo setUpPrintOperationDefaultValues] sets a default value of 1"]
561    pub static NSPrintPagesPerSheet: &'static NSString;
562}
563
564extern "C" {
565    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintpaperfeed?language=objc)
566    #[deprecated = "NSPrintInfo does not recognize this attribute"]
567    pub static NSPrintPaperFeed: &'static NSString;
568}
569
570extern "C" {
571    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintsavepath?language=objc)
572    #[deprecated = "Use NSPrintJobSavingURL instead"]
573    pub static NSPrintSavePath: &'static NSString;
574}
575
576/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsprintingorientation?language=objc)
577// NS_ENUM
578#[deprecated]
579#[repr(transparent)]
580#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
581pub struct NSPrintingOrientation(pub NSUInteger);
582impl NSPrintingOrientation {
583    #[doc(alias = "NSPortraitOrientation")]
584    #[deprecated]
585    pub const PortraitOrientation: Self = Self(0);
586    #[doc(alias = "NSLandscapeOrientation")]
587    #[deprecated]
588    pub const LandscapeOrientation: Self = Self(1);
589}
590
591unsafe impl Encode for NSPrintingOrientation {
592    const ENCODING: Encoding = NSUInteger::ENCODING;
593}
594
595unsafe impl RefEncode for NSPrintingOrientation {
596    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
597}
598
599/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsautopagination?language=objc)
600#[deprecated]
601pub static NSAutoPagination: NSPrintingPaginationMode =
602    NSPrintingPaginationMode(NSPrintingPaginationMode::Automatic.0);
603
604/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsfitpagination?language=objc)
605#[deprecated]
606pub static NSFitPagination: NSPrintingPaginationMode =
607    NSPrintingPaginationMode(NSPrintingPaginationMode::Fit.0);
608
609/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsclippagination?language=objc)
610#[deprecated]
611pub static NSClipPagination: NSPrintingPaginationMode =
612    NSPrintingPaginationMode(NSPrintingPaginationMode::Clip.0);