-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.h
More file actions
176 lines (147 loc) · 8.38 KB
/
Copy pathexample.h
File metadata and controls
176 lines (147 loc) · 8.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
#ifndef __MC_EXEC_PRINTING__
#define __MC_EXEC_PRINTING__
#ifndef __MC_SYSDEFS__
#include "sysdefs.h"
#endif
struct MCErrorRef;
struct MCDataRef;
typedef intset_t MCPrintingPrinterFeatures;
enum /* MCPrintingPrinterFeatures */
{
kMCPrintingPrinterFeaturesCollate,
kMCPrintingPrinterFeaturesCopies,
kMCPrintingPrinterFeaturesColor,
kMCPrintingPrinterFeaturesDuplex,
};
enum MCPrintingPrinterPageOrientation
{
kMCPrintingPrinterPageOrientationPortrait,
kMCPrintingPrinterPageOrientationReversePortrait,
kMCPrintingPrinterPageOrientationLandscape,
kMCPrintingPrinterPageOrientationReverseLandscape,
};
enum MCPrintingPrinterJobDuplex
{
kMCPrintingPrinterJobDuplexNone,
kMCPrintingPrinterJobDuplexShortEdge,
kMCPrintingPrinterJobDuplexLongEdge,
};
enum MCPrintingPrinterLinkType
{
kMCPrintingPrinterLinkTypeUnspecified,
kMCPrintingPrinterLinkTypeAnchor,
kMCPrintingPrinterLinkTypeURL,
};
//////////
enum MCPrintingPrinterPageRangeRepType
{
kMCPrintingPrinterPageRangeRepTypeAll,
kMCPrintingPrinterPageRangeRepTypeCurrent,
kMCPrintingPrinterPageRangeRepTypeSelection,
kMCPrintingPrinterPageRangeRepTypeCustom,
};
struct MCPrintingPrinterPageRangeRep
{
MCPrintingPrinterPageRangeRepType type;
union
{
MCStringRef custom;
};
};
struct MCPrintingPrinterPageRange;
void MCPrintingPrinterPageRangeMeasure(size_t& r_size_in_bytes);
void MCPrintingPrinterPageRangeFinalize(MCPrintingPrinterPageRange& value);
bool MCPrintingPrinterPageRangeCopy(const MCPrintingPrinterPageRange& src_value, MCPrintingPrinterPageRange& dst_value);
void MCPrintingPrinterPageRangeEncode(MCExecContext& ctxt, MCPrintingPrinterPageRangeRep rep, MCPrintingPrinterPageRange& value, MCErrorRef*& r_error);
void MCPrintingPrinterPageRangeDecode(MCExecContext& ctxt, MCPrintingPrinterPageRange value, MCPrintingPrinterPageRangeRep& rep, MCErrorRef*& r_error);
//////////
enum MCPrintingPrinterDeviceOutputRepType
{
kMCPrintingPrinterDeviceOutputRepTypeDevice,
kMCPrintingPrinterDeviceOutputRepTypePreview,
kMCPrintingPrinterDeviceOutputRepTypeSystem,
kMCPrintingPrinterDeviceOutputRepTypeCustom,
};
struct MCPrintingPrinterDeviceOutputRep
{
MCPrintingPrinterDeviceOutputRepType type;
union
{
MCStringRef custom;
};
};
struct MCPrintingPrinterDeviceOutput;
void MCPrintingPrinterDeviceOutputMeasure(size_t& r_size_in_bytes);
void MCPrintingPrinterDeviceOutputFinalize(MCPrintingPrinterDeviceOutput& value);
bool MCPrintingPrinterDeviceOutputCopy(const MCPrintingPrinterDeviceOutput& src_value, MCPrintingPrinterDeviceOutput& dst_value);
void MCPrintingPrinterDeviceOutputEncode(MCExecContext& ctxt, MCPrintingPrinterDeviceOutputRep rep, MCPrintingPrinterDeviceOutput& value, MCErrorRef*& r_error);
void MCPrintingPrinterDeviceOutputDecode(MCExecContext& ctxt, const MCPrintingPrinterDeviceOutput value, MCPrintingPrinterDeviceOutputRep& rep, MCErrorRef*& r_error);
//////////
void MCPrintingExecAnswerPageSetup(MCExecContext &ctxt, bool p_is_sheet);
void MCPrintingExecAnswerPrinter(MCExecContext &ctxt, bool p_is_sheet);
void MCPrintingExecCancelPrinting(MCExecContext& ctxt);
void MCPrintingExecResetPrinting(MCExecContext& ctxt);
void MCPrintingExecPrintAnchor(MCExecContext& ctxt, MCStringRef name, MCPoint location);
void MCPrintingExecPrintLink(MCExecContext& ctxt, MCPrintingPrinterLinkType type, MCRectangle area);
void MCPrintingExecPrintNativeBookmark(MCExecContext& ctxt, MCStringRef title, MCPoint location, integer_t level, bool initially_closed);
void MCPrintingExecPrintUnicodeBookmark(MCExecContext& ctxt, MCDataRef title, MCPoint location, integer_t level, bool initially_closed);
void MCPrintingExecPrintBreak(MCExecContext& ctxt);
void MCPrintingExecPrintAllCards(MCExecContext& ctxt, MCStack *stack, bool only_marked);
void MCPrintingExecPrintRectOfAllCards(MCExecContext& ctxt, MCStack *stack, bool p_only_marked, MCPoint from, MCPoint to);
void MCPrintingExecPrintCard(MCExecContext& ctxt, MCCard *target);
void MCPrintingExecPrintRectOfCard(MCExecContext& ctxt, MCCard *target, MCPoint from, MCPoint to);
void MCPrintingExecPrintSomeCards(MCExecContext& ctxt, integer_t count);
void MCPrintingExecPrintRectOfSomeCards(MCExecContext& ctxt, integer_t count, MCPoint from, MCPoint to);
void MCPrintingExecPrintCardIntoRect(MCExecContext& ctxt, MCCard *card, MCRectangle destination);
void MCPrintingExecPrintRectOfCardIntoRect(MCExecContext& ctxt, MCCard *card, MCPoint from, MCPoint to, MCRectangle destination);
void MCPrintingExecClosePrinting(MCExecContext& ctxt);
void MCPrintingExecOpenPrintingToDestination(MCExecContext& ctxt, MCStringRef p_destination, MCStringRef p_filename, MCArrayRef* p_options);
void MCPrintingExecOpenPrinting(MCExecContext& ctxt);
void MCPrintingExecOpenPrintingWithDialog(MCExecContext& ctxt, bool p_as_sheet);
void MCPrintingGetPrinterNames(MCExecContext& ctxt, MCStringRef& r_printers);
void MCPrintingGetPrintDeviceFeatures(MCExecContext& ctxt, MCPrintingPrinterFeatures& r_features);
void MCPrintingSetPrintDeviceOutput(MCExecContext& ctxt, const MCPrintingPrinterDeviceOutput& output);
void MCPrintingGetPrintDeviceOutput(MCExecContext& ctxt, MCPrintingPrinterDeviceOutput& r_output);
void MCPrintingGetPrintDeviceRectangle(MCExecContext& ctxt, MCRectangle &r_rectangle);
void MCPrintingGetPrintDeviceRectangle(MCExecContext& ctxt, MCRectangle &r_rectangle);
void MCPrintingGetPrintDeviceSettings(MCExecContext& ctxt, MCDataRef &r_settings);
void MCPrintingSetPrintDeviceSettings(MCExecContext& ctxt, MCDataRef p_settings);
void MCPrintingGetPrintDeviceName(MCExecContext& ctxt, MCStringRef &r_name);
void MCPrintingSetPrintDeviceName(MCExecContext& ctxt, MCStringRef p_name);
void MCPrintingGetPrintPageOrientation(MCExecContext& ctxt, MCPrintingPrinterPageOrientation& r_orientation);
void MCPrintingSetPrintPageOrientation(MCExecContext& ctxt, MCPrintingPrinterPageOrientation orientation);
void MCPrintingSetPrintJobRanges(MCExecContext& ctxt, const MCPrintingPrinterPageRange& p_ranges);
void MCPrintingGetPrintJobRanges(MCExecContext& ctxt, MCPrintingPrinterPageRange& r_ranges);
void MCPrintingSetPrintPageSize(MCExecContext& ctxt, integer_t* p_value, uindex_t p_size);
void MCPrintingGetPrintPageSize(MCExecContext& ctxt, integer_t* r_value, uindex_t p_size);
void MCPrintingSetPrintPageScale(MCExecContext& ctxt, double p_value);
void MCPrintingGetPrintPageScale(MCExecContext& ctxt, double &r_value);
void MCPrintingGetPrintPageRectangle(MCExecContext& ctxt, MCRectangle &r_value);
void MCPrintingGetPrintJobName(MCExecContext& ctxt, MCStringRef &r_value);
void MCPrintingSetPrintJobName(MCExecContext& ctxt, MCStringRef p_value);
void MCPrintingGetPrintJobCopies(MCExecContext& ctxt, integer_t &r_value);
void MCPrintingSetPrintJobCopies(MCExecContext& ctxt, integer_t p_value);
void MCPrintingGetPrintJobDuplex(MCExecContext& ctxt, MCPrintingPrinterJobDuplex& r_value);
void MCPrintingSetPrintJobDuplex(MCExecContext& ctxt, MCPrintingPrinterJobDuplex p_value);
void MCPrintingGetPrintJobCollate(MCExecContext& ctxt, bool &r_value);
void MCPrintingSetPrintJobCollate(MCExecContext& ctxt, bool p_value);
void MCPrintingGetPrintJobColor(MCExecContext& ctxt, bool &r_value);
void MCPrintingSetPrintJobColor(MCExecContext& ctxt, bool p_value);
void MCPrintingGetPrintJobPage(MCExecContext& ctxt, integer_t &r_value);
void MCPrintingGetPrintCardBorders(MCExecContext& ctxt, bool &r_card_borders);
void MCPrintingSetPrintCardBorders(MCExecContext& ctxt, bool p_card_borders);
void MCPrintingGetPrintGutters(MCExecContext& ctxt, integer_t* r_gutters, uindex_t p_size);
void MCPrintingSetPrintGutters(MCExecContext& ctxt, integer_t* p_gutters, uindex_t p_size);
void MCPrintingGetPrintMargins(MCExecContext& ctxt, integer_t* r_margins, uindex_t p_size);
void MCPrintingSetPrintMargins(MCExecContext& ctxt, integer_t* p_margins, uindex_t p_size);
void MCPrintingGetPrintRowsFirst(MCExecContext& ctxt, bool &r_rows_first);
void MCPrintingSetPrintRowsFirst(MCExecContext& ctxt, bool p_rows_first);
void MCPrintingGetPrintScale(MCExecContext& ctxt, double &r_scale);
void MCPrintingSetPrintScale(MCExecContext& ctxt, double p_scale);
void MCPrintingGetPrintRotated(MCExecContext& ctxt, bool &r_rotated);
void MCPrintingSetPrintRotated(MCExecContext& ctxt, bool p_rotated);
void MCPrintingGetPrintCommand(MCExecContext& ctxt, MCStringRef &r_command);
void MCPrintingSetPrintCommand(MCExecContext& ctxt, MCStringRef p_command);
void MCPrintingGetPrintFontTable(MCExecContext& ctxt, MCStringRef &r_table);
void MCPrintingSetPrintFontTable(MCExecContext& ctxt, MCStringRef p_table);
#endif