winrt-Windows.UI.Xaml.Printing 2.0.1__tar.gz → 2.2.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/PKG-INFO +7 -6
- winrt_windows_ui_xaml_printing-2.2.0/all-requirements.txt +6 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/py.Windows.UI.Xaml.Printing.cpp +552 -137
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/pyproject.toml +3 -2
- winrt_windows_ui_xaml_printing-2.2.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/requirements.txt +2 -2
- winrt_windows_ui_xaml_printing-2.2.0/winrt/_winrt_windows_ui_xaml_printing.pyi +80 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/winrt/windows/ui/xaml/printing/__init__.py +1 -1
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/winrt_Windows.UI.Xaml.Printing.egg-info/PKG-INFO +7 -6
- winrt_windows_ui_xaml_printing-2.2.0/winrt_Windows.UI.Xaml.Printing.egg-info/requires.txt +7 -0
- winrt_windows_ui_xaml_printing-2.0.1/all-requirements.txt +0 -5
- winrt_windows_ui_xaml_printing-2.0.1/pywinrt-version.txt +0 -1
- winrt_windows_ui_xaml_printing-2.0.1/winrt/_winrt_windows_ui_xaml_printing.pyi +0 -70
- winrt_windows_ui_xaml_printing-2.0.1/winrt_Windows.UI.Xaml.Printing.egg-info/requires.txt +0 -6
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/README.md +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/setup.cfg +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/setup.py +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/winrt/windows/ui/xaml/printing/py.typed +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/winrt_Windows.UI.Xaml.Printing.egg-info/SOURCES.txt +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/winrt_Windows.UI.Xaml.Printing.egg-info/dependency_links.txt +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/winrt_Windows.UI.Xaml.Printing.egg-info/top_level.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Xaml.Printing
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Graphics.Printing[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.UI.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics.Printing[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Core[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI.Xaml[all]==2.2.0; extra == "all"
|
|
20
21
|
|
|
21
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
23
|
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
// WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
3
|
#include "py.Windows.UI.Xaml.Printing.h"
|
|
4
4
|
|
|
5
|
-
|
|
6
5
|
namespace py::cpp::Windows::UI::Xaml::Printing
|
|
7
6
|
{
|
|
8
7
|
// ----- AddPagesEventArgs class --------------------
|
|
@@ -20,7 +19,7 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
20
19
|
{
|
|
21
20
|
try
|
|
22
21
|
{
|
|
23
|
-
winrt::Windows::UI::Xaml::Printing::AddPagesEventArgs instance{
|
|
22
|
+
winrt::Windows::UI::Xaml::Printing::AddPagesEventArgs instance{};
|
|
24
23
|
return py::wrap(instance, type);
|
|
25
24
|
}
|
|
26
25
|
catch (...)
|
|
@@ -46,14 +45,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
46
45
|
|
|
47
46
|
static PyObject* AddPagesEventArgs_get_PrintTaskOptions(py::wrapper::Windows::UI::Xaml::Printing::AddPagesEventArgs* self, void* /*unused*/) noexcept
|
|
48
47
|
{
|
|
49
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.AddPagesEventArgs", L"PrintTaskOptions"))
|
|
50
|
-
{
|
|
51
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
52
|
-
return nullptr;
|
|
53
|
-
}
|
|
54
|
-
|
|
55
48
|
try
|
|
56
49
|
{
|
|
50
|
+
static std::optional<bool> is_property_present{};
|
|
51
|
+
|
|
52
|
+
if (!is_property_present.has_value())
|
|
53
|
+
{
|
|
54
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.AddPagesEventArgs", L"PrintTaskOptions");
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
if (!is_property_present.value())
|
|
58
|
+
{
|
|
59
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
60
|
+
return nullptr;
|
|
61
|
+
}
|
|
62
|
+
|
|
57
63
|
return py::convert(self->obj.PrintTaskOptions());
|
|
58
64
|
}
|
|
59
65
|
catch (...)
|
|
@@ -98,23 +104,20 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
98
104
|
{ }
|
|
99
105
|
};
|
|
100
106
|
|
|
101
|
-
static PyType_Slot _type_slots_AddPagesEventArgs[] =
|
|
102
|
-
{
|
|
107
|
+
static PyType_Slot _type_slots_AddPagesEventArgs[] = {
|
|
103
108
|
{ Py_tp_new, reinterpret_cast<void*>(_new_AddPagesEventArgs) },
|
|
104
109
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AddPagesEventArgs) },
|
|
105
110
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AddPagesEventArgs) },
|
|
106
111
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AddPagesEventArgs) },
|
|
107
|
-
{ }
|
|
112
|
+
{ }
|
|
108
113
|
};
|
|
109
114
|
|
|
110
|
-
static PyType_Spec type_spec_AddPagesEventArgs =
|
|
111
|
-
{
|
|
115
|
+
static PyType_Spec type_spec_AddPagesEventArgs = {
|
|
112
116
|
"winrt._winrt_windows_ui_xaml_printing.AddPagesEventArgs",
|
|
113
117
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::AddPagesEventArgs),
|
|
114
118
|
0,
|
|
115
119
|
Py_TPFLAGS_DEFAULT,
|
|
116
|
-
_type_slots_AddPagesEventArgs
|
|
117
|
-
};
|
|
120
|
+
_type_slots_AddPagesEventArgs};
|
|
118
121
|
|
|
119
122
|
// ----- GetPreviewPageEventArgs class --------------------
|
|
120
123
|
|
|
@@ -131,7 +134,7 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
131
134
|
{
|
|
132
135
|
try
|
|
133
136
|
{
|
|
134
|
-
winrt::Windows::UI::Xaml::Printing::GetPreviewPageEventArgs instance{
|
|
137
|
+
winrt::Windows::UI::Xaml::Printing::GetPreviewPageEventArgs instance{};
|
|
135
138
|
return py::wrap(instance, type);
|
|
136
139
|
}
|
|
137
140
|
catch (...)
|
|
@@ -157,14 +160,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
157
160
|
|
|
158
161
|
static PyObject* GetPreviewPageEventArgs_get_PageNumber(py::wrapper::Windows::UI::Xaml::Printing::GetPreviewPageEventArgs* self, void* /*unused*/) noexcept
|
|
159
162
|
{
|
|
160
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.GetPreviewPageEventArgs", L"PageNumber"))
|
|
161
|
-
{
|
|
162
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
163
|
-
return nullptr;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
163
|
try
|
|
167
164
|
{
|
|
165
|
+
static std::optional<bool> is_property_present{};
|
|
166
|
+
|
|
167
|
+
if (!is_property_present.has_value())
|
|
168
|
+
{
|
|
169
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.GetPreviewPageEventArgs", L"PageNumber");
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
if (!is_property_present.value())
|
|
173
|
+
{
|
|
174
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
175
|
+
return nullptr;
|
|
176
|
+
}
|
|
177
|
+
|
|
168
178
|
return py::convert(self->obj.PageNumber());
|
|
169
179
|
}
|
|
170
180
|
catch (...)
|
|
@@ -209,23 +219,20 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
209
219
|
{ }
|
|
210
220
|
};
|
|
211
221
|
|
|
212
|
-
static PyType_Slot _type_slots_GetPreviewPageEventArgs[] =
|
|
213
|
-
{
|
|
222
|
+
static PyType_Slot _type_slots_GetPreviewPageEventArgs[] = {
|
|
214
223
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GetPreviewPageEventArgs) },
|
|
215
224
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GetPreviewPageEventArgs) },
|
|
216
225
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GetPreviewPageEventArgs) },
|
|
217
226
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GetPreviewPageEventArgs) },
|
|
218
|
-
{ }
|
|
227
|
+
{ }
|
|
219
228
|
};
|
|
220
229
|
|
|
221
|
-
static PyType_Spec type_spec_GetPreviewPageEventArgs =
|
|
222
|
-
{
|
|
230
|
+
static PyType_Spec type_spec_GetPreviewPageEventArgs = {
|
|
223
231
|
"winrt._winrt_windows_ui_xaml_printing.GetPreviewPageEventArgs",
|
|
224
232
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::GetPreviewPageEventArgs),
|
|
225
233
|
0,
|
|
226
234
|
Py_TPFLAGS_DEFAULT,
|
|
227
|
-
_type_slots_GetPreviewPageEventArgs
|
|
228
|
-
};
|
|
235
|
+
_type_slots_GetPreviewPageEventArgs};
|
|
229
236
|
|
|
230
237
|
// ----- PaginateEventArgs class --------------------
|
|
231
238
|
|
|
@@ -242,7 +249,7 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
242
249
|
{
|
|
243
250
|
try
|
|
244
251
|
{
|
|
245
|
-
winrt::Windows::UI::Xaml::Printing::PaginateEventArgs instance{
|
|
252
|
+
winrt::Windows::UI::Xaml::Printing::PaginateEventArgs instance{};
|
|
246
253
|
return py::wrap(instance, type);
|
|
247
254
|
}
|
|
248
255
|
catch (...)
|
|
@@ -268,14 +275,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
268
275
|
|
|
269
276
|
static PyObject* PaginateEventArgs_get_CurrentPreviewPageNumber(py::wrapper::Windows::UI::Xaml::Printing::PaginateEventArgs* self, void* /*unused*/) noexcept
|
|
270
277
|
{
|
|
271
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PaginateEventArgs", L"CurrentPreviewPageNumber"))
|
|
272
|
-
{
|
|
273
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
274
|
-
return nullptr;
|
|
275
|
-
}
|
|
276
|
-
|
|
277
278
|
try
|
|
278
279
|
{
|
|
280
|
+
static std::optional<bool> is_property_present{};
|
|
281
|
+
|
|
282
|
+
if (!is_property_present.has_value())
|
|
283
|
+
{
|
|
284
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PaginateEventArgs", L"CurrentPreviewPageNumber");
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
if (!is_property_present.value())
|
|
288
|
+
{
|
|
289
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
290
|
+
return nullptr;
|
|
291
|
+
}
|
|
292
|
+
|
|
279
293
|
return py::convert(self->obj.CurrentPreviewPageNumber());
|
|
280
294
|
}
|
|
281
295
|
catch (...)
|
|
@@ -287,14 +301,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
287
301
|
|
|
288
302
|
static PyObject* PaginateEventArgs_get_PrintTaskOptions(py::wrapper::Windows::UI::Xaml::Printing::PaginateEventArgs* self, void* /*unused*/) noexcept
|
|
289
303
|
{
|
|
290
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PaginateEventArgs", L"PrintTaskOptions"))
|
|
291
|
-
{
|
|
292
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
293
|
-
return nullptr;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
304
|
try
|
|
297
305
|
{
|
|
306
|
+
static std::optional<bool> is_property_present{};
|
|
307
|
+
|
|
308
|
+
if (!is_property_present.has_value())
|
|
309
|
+
{
|
|
310
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PaginateEventArgs", L"PrintTaskOptions");
|
|
311
|
+
}
|
|
312
|
+
|
|
313
|
+
if (!is_property_present.value())
|
|
314
|
+
{
|
|
315
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
316
|
+
return nullptr;
|
|
317
|
+
}
|
|
318
|
+
|
|
298
319
|
return py::convert(self->obj.PrintTaskOptions());
|
|
299
320
|
}
|
|
300
321
|
catch (...)
|
|
@@ -340,23 +361,20 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
340
361
|
{ }
|
|
341
362
|
};
|
|
342
363
|
|
|
343
|
-
static PyType_Slot _type_slots_PaginateEventArgs[] =
|
|
344
|
-
{
|
|
364
|
+
static PyType_Slot _type_slots_PaginateEventArgs[] = {
|
|
345
365
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PaginateEventArgs) },
|
|
346
366
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaginateEventArgs) },
|
|
347
367
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PaginateEventArgs) },
|
|
348
368
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PaginateEventArgs) },
|
|
349
|
-
{ }
|
|
369
|
+
{ }
|
|
350
370
|
};
|
|
351
371
|
|
|
352
|
-
static PyType_Spec type_spec_PaginateEventArgs =
|
|
353
|
-
{
|
|
372
|
+
static PyType_Spec type_spec_PaginateEventArgs = {
|
|
354
373
|
"winrt._winrt_windows_ui_xaml_printing.PaginateEventArgs",
|
|
355
374
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::PaginateEventArgs),
|
|
356
375
|
0,
|
|
357
376
|
Py_TPFLAGS_DEFAULT,
|
|
358
|
-
_type_slots_PaginateEventArgs
|
|
359
|
-
};
|
|
377
|
+
_type_slots_PaginateEventArgs};
|
|
360
378
|
|
|
361
379
|
// ----- PrintDocument class --------------------
|
|
362
380
|
|
|
@@ -373,7 +391,7 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
373
391
|
{
|
|
374
392
|
try
|
|
375
393
|
{
|
|
376
|
-
winrt::Windows::UI::Xaml::Printing::PrintDocument instance{
|
|
394
|
+
winrt::Windows::UI::Xaml::Printing::PrintDocument instance{};
|
|
377
395
|
return py::wrap(instance, type);
|
|
378
396
|
}
|
|
379
397
|
catch (...)
|
|
@@ -403,14 +421,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
403
421
|
|
|
404
422
|
if (arg_count == 1)
|
|
405
423
|
{
|
|
406
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPage", 1))
|
|
407
|
-
{
|
|
408
|
-
py::set_arg_count_version_error(1);
|
|
409
|
-
return nullptr;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
424
|
try
|
|
413
425
|
{
|
|
426
|
+
static std::optional<bool> is_overload_present{};
|
|
427
|
+
|
|
428
|
+
if (!is_overload_present.has_value())
|
|
429
|
+
{
|
|
430
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPage", 1);
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
if (!is_overload_present.value())
|
|
434
|
+
{
|
|
435
|
+
py::set_arg_count_version_error(1);
|
|
436
|
+
return nullptr;
|
|
437
|
+
}
|
|
438
|
+
|
|
414
439
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::UIElement>(args, 0);
|
|
415
440
|
|
|
416
441
|
self->obj.AddPage(param0);
|
|
@@ -435,15 +460,61 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
435
460
|
|
|
436
461
|
if (arg_count == 0)
|
|
437
462
|
{
|
|
438
|
-
|
|
463
|
+
try
|
|
439
464
|
{
|
|
440
|
-
|
|
465
|
+
static std::optional<bool> is_overload_present{};
|
|
466
|
+
|
|
467
|
+
if (!is_overload_present.has_value())
|
|
468
|
+
{
|
|
469
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPagesComplete", 0);
|
|
470
|
+
}
|
|
471
|
+
|
|
472
|
+
if (!is_overload_present.value())
|
|
473
|
+
{
|
|
474
|
+
py::set_arg_count_version_error(0);
|
|
475
|
+
return nullptr;
|
|
476
|
+
}
|
|
477
|
+
|
|
478
|
+
self->obj.AddPagesComplete();
|
|
479
|
+
Py_RETURN_NONE;
|
|
480
|
+
}
|
|
481
|
+
catch (...)
|
|
482
|
+
{
|
|
483
|
+
py::to_PyErr();
|
|
441
484
|
return nullptr;
|
|
442
485
|
}
|
|
486
|
+
}
|
|
487
|
+
else
|
|
488
|
+
{
|
|
489
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
490
|
+
return nullptr;
|
|
491
|
+
}
|
|
492
|
+
}
|
|
443
493
|
|
|
494
|
+
static PyObject* PrintDocument_ClearValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
495
|
+
{
|
|
496
|
+
auto arg_count = PyTuple_Size(args);
|
|
497
|
+
|
|
498
|
+
if (arg_count == 1)
|
|
499
|
+
{
|
|
444
500
|
try
|
|
445
501
|
{
|
|
446
|
-
|
|
502
|
+
static std::optional<bool> is_overload_present{};
|
|
503
|
+
|
|
504
|
+
if (!is_overload_present.has_value())
|
|
505
|
+
{
|
|
506
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ClearValue", 1);
|
|
507
|
+
}
|
|
508
|
+
|
|
509
|
+
if (!is_overload_present.value())
|
|
510
|
+
{
|
|
511
|
+
py::set_arg_count_version_error(1);
|
|
512
|
+
return nullptr;
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
516
|
+
|
|
517
|
+
self->obj.ClearValue(param0);
|
|
447
518
|
Py_RETURN_NONE;
|
|
448
519
|
}
|
|
449
520
|
catch (...)
|
|
@@ -459,20 +530,103 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
459
530
|
}
|
|
460
531
|
}
|
|
461
532
|
|
|
462
|
-
static PyObject*
|
|
533
|
+
static PyObject* PrintDocument_GetAnimationBaseValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
463
534
|
{
|
|
464
535
|
auto arg_count = PyTuple_Size(args);
|
|
465
536
|
|
|
466
|
-
if (arg_count ==
|
|
537
|
+
if (arg_count == 1)
|
|
467
538
|
{
|
|
468
|
-
|
|
539
|
+
try
|
|
469
540
|
{
|
|
470
|
-
|
|
541
|
+
static std::optional<bool> is_overload_present{};
|
|
542
|
+
|
|
543
|
+
if (!is_overload_present.has_value())
|
|
544
|
+
{
|
|
545
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetAnimationBaseValue", 1);
|
|
546
|
+
}
|
|
547
|
+
|
|
548
|
+
if (!is_overload_present.value())
|
|
549
|
+
{
|
|
550
|
+
py::set_arg_count_version_error(1);
|
|
551
|
+
return nullptr;
|
|
552
|
+
}
|
|
553
|
+
|
|
554
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
555
|
+
|
|
556
|
+
return py::convert(self->obj.GetAnimationBaseValue(param0));
|
|
557
|
+
}
|
|
558
|
+
catch (...)
|
|
559
|
+
{
|
|
560
|
+
py::to_PyErr();
|
|
471
561
|
return nullptr;
|
|
472
562
|
}
|
|
563
|
+
}
|
|
564
|
+
else
|
|
565
|
+
{
|
|
566
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
567
|
+
return nullptr;
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
static PyObject* PrintDocument_GetValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
572
|
+
{
|
|
573
|
+
auto arg_count = PyTuple_Size(args);
|
|
473
574
|
|
|
575
|
+
if (arg_count == 1)
|
|
576
|
+
{
|
|
474
577
|
try
|
|
475
578
|
{
|
|
579
|
+
static std::optional<bool> is_overload_present{};
|
|
580
|
+
|
|
581
|
+
if (!is_overload_present.has_value())
|
|
582
|
+
{
|
|
583
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetValue", 1);
|
|
584
|
+
}
|
|
585
|
+
|
|
586
|
+
if (!is_overload_present.value())
|
|
587
|
+
{
|
|
588
|
+
py::set_arg_count_version_error(1);
|
|
589
|
+
return nullptr;
|
|
590
|
+
}
|
|
591
|
+
|
|
592
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
593
|
+
|
|
594
|
+
return py::convert(self->obj.GetValue(param0));
|
|
595
|
+
}
|
|
596
|
+
catch (...)
|
|
597
|
+
{
|
|
598
|
+
py::to_PyErr();
|
|
599
|
+
return nullptr;
|
|
600
|
+
}
|
|
601
|
+
}
|
|
602
|
+
else
|
|
603
|
+
{
|
|
604
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
605
|
+
return nullptr;
|
|
606
|
+
}
|
|
607
|
+
}
|
|
608
|
+
|
|
609
|
+
static PyObject* PrintDocument_InvalidatePreview(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
610
|
+
{
|
|
611
|
+
auto arg_count = PyTuple_Size(args);
|
|
612
|
+
|
|
613
|
+
if (arg_count == 0)
|
|
614
|
+
{
|
|
615
|
+
try
|
|
616
|
+
{
|
|
617
|
+
static std::optional<bool> is_overload_present{};
|
|
618
|
+
|
|
619
|
+
if (!is_overload_present.has_value())
|
|
620
|
+
{
|
|
621
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"InvalidatePreview", 0);
|
|
622
|
+
}
|
|
623
|
+
|
|
624
|
+
if (!is_overload_present.value())
|
|
625
|
+
{
|
|
626
|
+
py::set_arg_count_version_error(0);
|
|
627
|
+
return nullptr;
|
|
628
|
+
}
|
|
629
|
+
|
|
476
630
|
self->obj.InvalidatePreview();
|
|
477
631
|
Py_RETURN_NONE;
|
|
478
632
|
}
|
|
@@ -489,20 +643,104 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
489
643
|
}
|
|
490
644
|
}
|
|
491
645
|
|
|
492
|
-
static PyObject*
|
|
646
|
+
static PyObject* PrintDocument_ReadLocalValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
647
|
+
{
|
|
648
|
+
auto arg_count = PyTuple_Size(args);
|
|
649
|
+
|
|
650
|
+
if (arg_count == 1)
|
|
651
|
+
{
|
|
652
|
+
try
|
|
653
|
+
{
|
|
654
|
+
static std::optional<bool> is_overload_present{};
|
|
655
|
+
|
|
656
|
+
if (!is_overload_present.has_value())
|
|
657
|
+
{
|
|
658
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ReadLocalValue", 1);
|
|
659
|
+
}
|
|
660
|
+
|
|
661
|
+
if (!is_overload_present.value())
|
|
662
|
+
{
|
|
663
|
+
py::set_arg_count_version_error(1);
|
|
664
|
+
return nullptr;
|
|
665
|
+
}
|
|
666
|
+
|
|
667
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
668
|
+
|
|
669
|
+
return py::convert(self->obj.ReadLocalValue(param0));
|
|
670
|
+
}
|
|
671
|
+
catch (...)
|
|
672
|
+
{
|
|
673
|
+
py::to_PyErr();
|
|
674
|
+
return nullptr;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
else
|
|
678
|
+
{
|
|
679
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
680
|
+
return nullptr;
|
|
681
|
+
}
|
|
682
|
+
}
|
|
683
|
+
|
|
684
|
+
static PyObject* PrintDocument_RegisterPropertyChangedCallback(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
493
685
|
{
|
|
494
686
|
auto arg_count = PyTuple_Size(args);
|
|
495
687
|
|
|
496
688
|
if (arg_count == 2)
|
|
497
689
|
{
|
|
498
|
-
|
|
690
|
+
try
|
|
499
691
|
{
|
|
500
|
-
|
|
692
|
+
static std::optional<bool> is_overload_present{};
|
|
693
|
+
|
|
694
|
+
if (!is_overload_present.has_value())
|
|
695
|
+
{
|
|
696
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"RegisterPropertyChangedCallback", 2);
|
|
697
|
+
}
|
|
698
|
+
|
|
699
|
+
if (!is_overload_present.value())
|
|
700
|
+
{
|
|
701
|
+
py::set_arg_count_version_error(2);
|
|
702
|
+
return nullptr;
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
706
|
+
auto param1 = py::convert_to<winrt::Windows::UI::Xaml::DependencyPropertyChangedCallback>(args, 1);
|
|
707
|
+
|
|
708
|
+
return py::convert(self->obj.RegisterPropertyChangedCallback(param0, param1));
|
|
709
|
+
}
|
|
710
|
+
catch (...)
|
|
711
|
+
{
|
|
712
|
+
py::to_PyErr();
|
|
501
713
|
return nullptr;
|
|
502
714
|
}
|
|
715
|
+
}
|
|
716
|
+
else
|
|
717
|
+
{
|
|
718
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
719
|
+
return nullptr;
|
|
720
|
+
}
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
static PyObject* PrintDocument_SetPreviewPage(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
724
|
+
{
|
|
725
|
+
auto arg_count = PyTuple_Size(args);
|
|
503
726
|
|
|
727
|
+
if (arg_count == 2)
|
|
728
|
+
{
|
|
504
729
|
try
|
|
505
730
|
{
|
|
731
|
+
static std::optional<bool> is_overload_present{};
|
|
732
|
+
|
|
733
|
+
if (!is_overload_present.has_value())
|
|
734
|
+
{
|
|
735
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"SetPreviewPage", 2);
|
|
736
|
+
}
|
|
737
|
+
|
|
738
|
+
if (!is_overload_present.value())
|
|
739
|
+
{
|
|
740
|
+
py::set_arg_count_version_error(2);
|
|
741
|
+
return nullptr;
|
|
742
|
+
}
|
|
743
|
+
|
|
506
744
|
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
507
745
|
auto param1 = py::convert_to<winrt::Windows::UI::Xaml::UIElement>(args, 1);
|
|
508
746
|
|
|
@@ -528,18 +766,65 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
528
766
|
|
|
529
767
|
if (arg_count == 2)
|
|
530
768
|
{
|
|
531
|
-
|
|
769
|
+
try
|
|
770
|
+
{
|
|
771
|
+
static std::optional<bool> is_overload_present{};
|
|
772
|
+
|
|
773
|
+
if (!is_overload_present.has_value())
|
|
774
|
+
{
|
|
775
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"SetPreviewPageCount", 2);
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
if (!is_overload_present.value())
|
|
779
|
+
{
|
|
780
|
+
py::set_arg_count_version_error(2);
|
|
781
|
+
return nullptr;
|
|
782
|
+
}
|
|
783
|
+
|
|
784
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
785
|
+
auto param1 = py::convert_to<winrt::Windows::UI::Xaml::Printing::PreviewPageCountType>(args, 1);
|
|
786
|
+
|
|
787
|
+
self->obj.SetPreviewPageCount(param0, param1);
|
|
788
|
+
Py_RETURN_NONE;
|
|
789
|
+
}
|
|
790
|
+
catch (...)
|
|
532
791
|
{
|
|
533
|
-
py::
|
|
792
|
+
py::to_PyErr();
|
|
534
793
|
return nullptr;
|
|
535
794
|
}
|
|
795
|
+
}
|
|
796
|
+
else
|
|
797
|
+
{
|
|
798
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
799
|
+
return nullptr;
|
|
800
|
+
}
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
static PyObject* PrintDocument_SetValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
804
|
+
{
|
|
805
|
+
auto arg_count = PyTuple_Size(args);
|
|
536
806
|
|
|
807
|
+
if (arg_count == 2)
|
|
808
|
+
{
|
|
537
809
|
try
|
|
538
810
|
{
|
|
539
|
-
|
|
540
|
-
auto param1 = py::convert_to<winrt::Windows::UI::Xaml::Printing::PreviewPageCountType>(args, 1);
|
|
811
|
+
static std::optional<bool> is_overload_present{};
|
|
541
812
|
|
|
542
|
-
|
|
813
|
+
if (!is_overload_present.has_value())
|
|
814
|
+
{
|
|
815
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"SetValue", 2);
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
if (!is_overload_present.value())
|
|
819
|
+
{
|
|
820
|
+
py::set_arg_count_version_error(2);
|
|
821
|
+
return nullptr;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
825
|
+
auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
|
|
826
|
+
|
|
827
|
+
self->obj.SetValue(param0, param1);
|
|
543
828
|
Py_RETURN_NONE;
|
|
544
829
|
}
|
|
545
830
|
catch (...)
|
|
@@ -555,16 +840,63 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
555
840
|
}
|
|
556
841
|
}
|
|
557
842
|
|
|
558
|
-
static PyObject*
|
|
843
|
+
static PyObject* PrintDocument_UnregisterPropertyChangedCallback(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
559
844
|
{
|
|
560
|
-
|
|
845
|
+
auto arg_count = PyTuple_Size(args);
|
|
846
|
+
|
|
847
|
+
if (arg_count == 2)
|
|
561
848
|
{
|
|
562
|
-
|
|
849
|
+
try
|
|
850
|
+
{
|
|
851
|
+
static std::optional<bool> is_overload_present{};
|
|
852
|
+
|
|
853
|
+
if (!is_overload_present.has_value())
|
|
854
|
+
{
|
|
855
|
+
is_overload_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"UnregisterPropertyChangedCallback", 2);
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
if (!is_overload_present.value())
|
|
859
|
+
{
|
|
860
|
+
py::set_arg_count_version_error(2);
|
|
861
|
+
return nullptr;
|
|
862
|
+
}
|
|
863
|
+
|
|
864
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
865
|
+
auto param1 = py::convert_to<int64_t>(args, 1);
|
|
866
|
+
|
|
867
|
+
self->obj.UnregisterPropertyChangedCallback(param0, param1);
|
|
868
|
+
Py_RETURN_NONE;
|
|
869
|
+
}
|
|
870
|
+
catch (...)
|
|
871
|
+
{
|
|
872
|
+
py::to_PyErr();
|
|
873
|
+
return nullptr;
|
|
874
|
+
}
|
|
875
|
+
}
|
|
876
|
+
else
|
|
877
|
+
{
|
|
878
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
563
879
|
return nullptr;
|
|
564
880
|
}
|
|
881
|
+
}
|
|
565
882
|
|
|
883
|
+
static PyObject* PrintDocument_get_DocumentSource(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, void* /*unused*/) noexcept
|
|
884
|
+
{
|
|
566
885
|
try
|
|
567
886
|
{
|
|
887
|
+
static std::optional<bool> is_property_present{};
|
|
888
|
+
|
|
889
|
+
if (!is_property_present.has_value())
|
|
890
|
+
{
|
|
891
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"DocumentSource");
|
|
892
|
+
}
|
|
893
|
+
|
|
894
|
+
if (!is_property_present.value())
|
|
895
|
+
{
|
|
896
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
897
|
+
return nullptr;
|
|
898
|
+
}
|
|
899
|
+
|
|
568
900
|
return py::convert(self->obj.DocumentSource());
|
|
569
901
|
}
|
|
570
902
|
catch (...)
|
|
@@ -576,14 +908,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
576
908
|
|
|
577
909
|
static PyObject* PrintDocument_get_DocumentSourceProperty(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
578
910
|
{
|
|
579
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"DocumentSourceProperty"))
|
|
580
|
-
{
|
|
581
|
-
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
582
|
-
return nullptr;
|
|
583
|
-
}
|
|
584
|
-
|
|
585
911
|
try
|
|
586
912
|
{
|
|
913
|
+
static std::optional<bool> is_property_present{};
|
|
914
|
+
|
|
915
|
+
if (!is_property_present.has_value())
|
|
916
|
+
{
|
|
917
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"DocumentSourceProperty");
|
|
918
|
+
}
|
|
919
|
+
|
|
920
|
+
if (!is_property_present.value())
|
|
921
|
+
{
|
|
922
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
923
|
+
return nullptr;
|
|
924
|
+
}
|
|
925
|
+
|
|
587
926
|
return py::convert(winrt::Windows::UI::Xaml::Printing::PrintDocument::DocumentSourceProperty());
|
|
588
927
|
}
|
|
589
928
|
catch (...)
|
|
@@ -593,16 +932,49 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
593
932
|
}
|
|
594
933
|
}
|
|
595
934
|
|
|
596
|
-
static PyObject*
|
|
935
|
+
static PyObject* PrintDocument_get_Dispatcher(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, void* /*unused*/) noexcept
|
|
597
936
|
{
|
|
598
|
-
|
|
937
|
+
try
|
|
599
938
|
{
|
|
600
|
-
|
|
939
|
+
static std::optional<bool> is_property_present{};
|
|
940
|
+
|
|
941
|
+
if (!is_property_present.has_value())
|
|
942
|
+
{
|
|
943
|
+
is_property_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.DependencyObject", L"Dispatcher");
|
|
944
|
+
}
|
|
945
|
+
|
|
946
|
+
if (!is_property_present.value())
|
|
947
|
+
{
|
|
948
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
949
|
+
return nullptr;
|
|
950
|
+
}
|
|
951
|
+
|
|
952
|
+
return py::convert(self->obj.Dispatcher());
|
|
953
|
+
}
|
|
954
|
+
catch (...)
|
|
955
|
+
{
|
|
956
|
+
py::to_PyErr();
|
|
601
957
|
return nullptr;
|
|
602
958
|
}
|
|
959
|
+
}
|
|
603
960
|
|
|
961
|
+
static PyObject* PrintDocument_add_AddPages(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
962
|
+
{
|
|
604
963
|
try
|
|
605
964
|
{
|
|
965
|
+
static std::optional<bool> is_event_present{};
|
|
966
|
+
|
|
967
|
+
if (!is_event_present.has_value())
|
|
968
|
+
{
|
|
969
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPages");
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
if (!is_event_present.value())
|
|
973
|
+
{
|
|
974
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
975
|
+
return nullptr;
|
|
976
|
+
}
|
|
977
|
+
|
|
606
978
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Printing::AddPagesEventHandler>(arg);
|
|
607
979
|
|
|
608
980
|
return py::convert(self->obj.AddPages(param0));
|
|
@@ -616,14 +988,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
616
988
|
|
|
617
989
|
static PyObject* PrintDocument_remove_AddPages(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
618
990
|
{
|
|
619
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPages"))
|
|
620
|
-
{
|
|
621
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
622
|
-
return nullptr;
|
|
623
|
-
}
|
|
624
|
-
|
|
625
991
|
try
|
|
626
992
|
{
|
|
993
|
+
static std::optional<bool> is_event_present{};
|
|
994
|
+
|
|
995
|
+
if (!is_event_present.has_value())
|
|
996
|
+
{
|
|
997
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPages");
|
|
998
|
+
}
|
|
999
|
+
|
|
1000
|
+
if (!is_event_present.value())
|
|
1001
|
+
{
|
|
1002
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1003
|
+
return nullptr;
|
|
1004
|
+
}
|
|
1005
|
+
|
|
627
1006
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
628
1007
|
|
|
629
1008
|
self->obj.AddPages(param0);
|
|
@@ -638,14 +1017,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
638
1017
|
|
|
639
1018
|
static PyObject* PrintDocument_add_GetPreviewPage(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
640
1019
|
{
|
|
641
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"GetPreviewPage"))
|
|
642
|
-
{
|
|
643
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
644
|
-
return nullptr;
|
|
645
|
-
}
|
|
646
|
-
|
|
647
1020
|
try
|
|
648
1021
|
{
|
|
1022
|
+
static std::optional<bool> is_event_present{};
|
|
1023
|
+
|
|
1024
|
+
if (!is_event_present.has_value())
|
|
1025
|
+
{
|
|
1026
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"GetPreviewPage");
|
|
1027
|
+
}
|
|
1028
|
+
|
|
1029
|
+
if (!is_event_present.value())
|
|
1030
|
+
{
|
|
1031
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1032
|
+
return nullptr;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
649
1035
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Printing::GetPreviewPageEventHandler>(arg);
|
|
650
1036
|
|
|
651
1037
|
return py::convert(self->obj.GetPreviewPage(param0));
|
|
@@ -659,14 +1045,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
659
1045
|
|
|
660
1046
|
static PyObject* PrintDocument_remove_GetPreviewPage(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
661
1047
|
{
|
|
662
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"GetPreviewPage"))
|
|
663
|
-
{
|
|
664
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
665
|
-
return nullptr;
|
|
666
|
-
}
|
|
667
|
-
|
|
668
1048
|
try
|
|
669
1049
|
{
|
|
1050
|
+
static std::optional<bool> is_event_present{};
|
|
1051
|
+
|
|
1052
|
+
if (!is_event_present.has_value())
|
|
1053
|
+
{
|
|
1054
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"GetPreviewPage");
|
|
1055
|
+
}
|
|
1056
|
+
|
|
1057
|
+
if (!is_event_present.value())
|
|
1058
|
+
{
|
|
1059
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1060
|
+
return nullptr;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
670
1063
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
671
1064
|
|
|
672
1065
|
self->obj.GetPreviewPage(param0);
|
|
@@ -681,14 +1074,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
681
1074
|
|
|
682
1075
|
static PyObject* PrintDocument_add_Paginate(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
683
1076
|
{
|
|
684
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"Paginate"))
|
|
685
|
-
{
|
|
686
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
687
|
-
return nullptr;
|
|
688
|
-
}
|
|
689
|
-
|
|
690
1077
|
try
|
|
691
1078
|
{
|
|
1079
|
+
static std::optional<bool> is_event_present{};
|
|
1080
|
+
|
|
1081
|
+
if (!is_event_present.has_value())
|
|
1082
|
+
{
|
|
1083
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"Paginate");
|
|
1084
|
+
}
|
|
1085
|
+
|
|
1086
|
+
if (!is_event_present.value())
|
|
1087
|
+
{
|
|
1088
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1089
|
+
return nullptr;
|
|
1090
|
+
}
|
|
1091
|
+
|
|
692
1092
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Printing::PaginateEventHandler>(arg);
|
|
693
1093
|
|
|
694
1094
|
return py::convert(self->obj.Paginate(param0));
|
|
@@ -702,14 +1102,21 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
702
1102
|
|
|
703
1103
|
static PyObject* PrintDocument_remove_Paginate(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
704
1104
|
{
|
|
705
|
-
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"Paginate"))
|
|
706
|
-
{
|
|
707
|
-
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
708
|
-
return nullptr;
|
|
709
|
-
}
|
|
710
|
-
|
|
711
1105
|
try
|
|
712
1106
|
{
|
|
1107
|
+
static std::optional<bool> is_event_present{};
|
|
1108
|
+
|
|
1109
|
+
if (!is_event_present.has_value())
|
|
1110
|
+
{
|
|
1111
|
+
is_event_present = winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"Paginate");
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
if (!is_event_present.value())
|
|
1115
|
+
{
|
|
1116
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
1117
|
+
return nullptr;
|
|
1118
|
+
}
|
|
1119
|
+
|
|
713
1120
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
714
1121
|
|
|
715
1122
|
self->obj.Paginate(param0);
|
|
@@ -749,9 +1156,16 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
749
1156
|
static PyMethodDef _methods_PrintDocument[] = {
|
|
750
1157
|
{ "add_page", reinterpret_cast<PyCFunction>(PrintDocument_AddPage), METH_VARARGS, nullptr },
|
|
751
1158
|
{ "add_pages_complete", reinterpret_cast<PyCFunction>(PrintDocument_AddPagesComplete), METH_VARARGS, nullptr },
|
|
1159
|
+
{ "clear_value", reinterpret_cast<PyCFunction>(PrintDocument_ClearValue), METH_VARARGS, nullptr },
|
|
1160
|
+
{ "get_animation_base_value", reinterpret_cast<PyCFunction>(PrintDocument_GetAnimationBaseValue), METH_VARARGS, nullptr },
|
|
1161
|
+
{ "get_value", reinterpret_cast<PyCFunction>(PrintDocument_GetValue), METH_VARARGS, nullptr },
|
|
752
1162
|
{ "invalidate_preview", reinterpret_cast<PyCFunction>(PrintDocument_InvalidatePreview), METH_VARARGS, nullptr },
|
|
1163
|
+
{ "read_local_value", reinterpret_cast<PyCFunction>(PrintDocument_ReadLocalValue), METH_VARARGS, nullptr },
|
|
1164
|
+
{ "register_property_changed_callback", reinterpret_cast<PyCFunction>(PrintDocument_RegisterPropertyChangedCallback), METH_VARARGS, nullptr },
|
|
753
1165
|
{ "set_preview_page", reinterpret_cast<PyCFunction>(PrintDocument_SetPreviewPage), METH_VARARGS, nullptr },
|
|
754
1166
|
{ "set_preview_page_count", reinterpret_cast<PyCFunction>(PrintDocument_SetPreviewPageCount), METH_VARARGS, nullptr },
|
|
1167
|
+
{ "set_value", reinterpret_cast<PyCFunction>(PrintDocument_SetValue), METH_VARARGS, nullptr },
|
|
1168
|
+
{ "unregister_property_changed_callback", reinterpret_cast<PyCFunction>(PrintDocument_UnregisterPropertyChangedCallback), METH_VARARGS, nullptr },
|
|
755
1169
|
{ "add_add_pages", reinterpret_cast<PyCFunction>(PrintDocument_add_AddPages), METH_O, nullptr },
|
|
756
1170
|
{ "remove_add_pages", reinterpret_cast<PyCFunction>(PrintDocument_remove_AddPages), METH_O, nullptr },
|
|
757
1171
|
{ "add_get_preview_page", reinterpret_cast<PyCFunction>(PrintDocument_add_GetPreviewPage), METH_O, nullptr },
|
|
@@ -765,26 +1179,24 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
765
1179
|
|
|
766
1180
|
static PyGetSetDef _getset_PrintDocument[] = {
|
|
767
1181
|
{ "document_source", reinterpret_cast<getter>(PrintDocument_get_DocumentSource), nullptr, nullptr, nullptr },
|
|
1182
|
+
{ "dispatcher", reinterpret_cast<getter>(PrintDocument_get_Dispatcher), nullptr, nullptr, nullptr },
|
|
768
1183
|
{ }
|
|
769
1184
|
};
|
|
770
1185
|
|
|
771
|
-
static PyType_Slot _type_slots_PrintDocument[] =
|
|
772
|
-
{
|
|
1186
|
+
static PyType_Slot _type_slots_PrintDocument[] = {
|
|
773
1187
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PrintDocument) },
|
|
774
1188
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PrintDocument) },
|
|
775
1189
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PrintDocument) },
|
|
776
1190
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PrintDocument) },
|
|
777
|
-
{ }
|
|
1191
|
+
{ }
|
|
778
1192
|
};
|
|
779
1193
|
|
|
780
|
-
static PyType_Spec type_spec_PrintDocument =
|
|
781
|
-
{
|
|
1194
|
+
static PyType_Spec type_spec_PrintDocument = {
|
|
782
1195
|
"winrt._winrt_windows_ui_xaml_printing.PrintDocument",
|
|
783
1196
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument),
|
|
784
1197
|
0,
|
|
785
1198
|
Py_TPFLAGS_DEFAULT,
|
|
786
|
-
_type_slots_PrintDocument
|
|
787
|
-
};
|
|
1199
|
+
_type_slots_PrintDocument};
|
|
788
1200
|
|
|
789
1201
|
static PyGetSetDef getset_PrintDocument_Static[] = {
|
|
790
1202
|
{ "document_source_property", reinterpret_cast<getter>(PrintDocument_get_DocumentSourceProperty), nullptr, nullptr, nullptr },
|
|
@@ -813,20 +1225,19 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
813
1225
|
};
|
|
814
1226
|
|
|
815
1227
|
// ----- Windows.UI.Xaml.Printing Initialization --------------------
|
|
816
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Xaml::Printing");
|
|
817
1228
|
|
|
1229
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Xaml.Printing");
|
|
818
1230
|
|
|
819
|
-
static PyModuleDef module_def
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
1231
|
+
static PyModuleDef module_def = {
|
|
1232
|
+
PyModuleDef_HEAD_INIT,
|
|
1233
|
+
"_winrt_windows_ui_xaml_printing",
|
|
1234
|
+
module_doc,
|
|
1235
|
+
0,
|
|
1236
|
+
nullptr,
|
|
1237
|
+
nullptr,
|
|
1238
|
+
nullptr,
|
|
1239
|
+
nullptr,
|
|
1240
|
+
nullptr};
|
|
830
1241
|
} // py::cpp::Windows::UI::Xaml::Printing
|
|
831
1242
|
|
|
832
1243
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_printing(void) noexcept
|
|
@@ -858,17 +1269,20 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_printing(void) noexcept
|
|
|
858
1269
|
return nullptr;
|
|
859
1270
|
}
|
|
860
1271
|
|
|
861
|
-
|
|
1272
|
+
py::pytype_handle AddPagesEventArgs_type{py::register_python_type(module.get(), &type_spec_AddPagesEventArgs, object_bases.get(), nullptr)};
|
|
1273
|
+
if (!AddPagesEventArgs_type)
|
|
862
1274
|
{
|
|
863
1275
|
return nullptr;
|
|
864
1276
|
}
|
|
865
1277
|
|
|
866
|
-
|
|
1278
|
+
py::pytype_handle GetPreviewPageEventArgs_type{py::register_python_type(module.get(), &type_spec_GetPreviewPageEventArgs, object_bases.get(), nullptr)};
|
|
1279
|
+
if (!GetPreviewPageEventArgs_type)
|
|
867
1280
|
{
|
|
868
1281
|
return nullptr;
|
|
869
1282
|
}
|
|
870
1283
|
|
|
871
|
-
|
|
1284
|
+
py::pytype_handle PaginateEventArgs_type{py::register_python_type(module.get(), &type_spec_PaginateEventArgs, object_bases.get(), nullptr)};
|
|
1285
|
+
if (!PaginateEventArgs_type)
|
|
872
1286
|
{
|
|
873
1287
|
return nullptr;
|
|
874
1288
|
}
|
|
@@ -879,7 +1293,8 @@ PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_printing(void) noexcept
|
|
|
879
1293
|
return nullptr;
|
|
880
1294
|
}
|
|
881
1295
|
|
|
882
|
-
|
|
1296
|
+
py::pytype_handle PrintDocument_type{py::register_python_type(module.get(), &type_spec_PrintDocument, object_bases.get(), reinterpret_cast<PyTypeObject*>(type_PrintDocument_Static.get()))};
|
|
1297
|
+
if (!PrintDocument_type)
|
|
883
1298
|
{
|
|
884
1299
|
return nullptr;
|
|
885
1300
|
}
|
{winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/pyproject.toml
RENAMED
|
@@ -16,7 +16,7 @@ classifiers = [
|
|
|
16
16
|
"Intended Audience :: Developers",
|
|
17
17
|
]
|
|
18
18
|
dynamic = ["version", "dependencies", "optional-dependencies"]
|
|
19
|
-
requires-python = ">=3.9,<3.
|
|
19
|
+
requires-python = ">=3.9,<3.14"
|
|
20
20
|
|
|
21
21
|
[project.urls]
|
|
22
22
|
# Homepage = "https://github.com/pywinrt/pywinrt"
|
|
@@ -36,7 +36,8 @@ optional-dependencies.all = { file = "all-requirements.txt" }
|
|
|
36
36
|
# use local winrt-sdk build dependency
|
|
37
37
|
environment = { PYTHONPATH="../winrt-sdk/src" }
|
|
38
38
|
# don't install winrt-sdk from PyPI
|
|
39
|
-
build-frontend = { name = "build", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
39
|
+
build-frontend = { name = "build[uv]", args = ["--skip-dependency-check", "--no-isolation"] }
|
|
40
|
+
before-build = "uv pip install setuptools"
|
|
40
41
|
# don't build for PyPy
|
|
41
42
|
skip = "pp*"
|
|
42
43
|
# suppress warnings about ARM64 testing
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.2.0
|
{winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.2.0}/requirements.txt
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.2.0
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.2.0
|
|
2
|
+
|
|
3
|
+
import datetime
|
|
4
|
+
import sys
|
|
5
|
+
import types
|
|
6
|
+
import typing
|
|
7
|
+
import uuid as _uuid
|
|
8
|
+
from builtins import property as _property
|
|
9
|
+
|
|
10
|
+
import winrt._winrt
|
|
11
|
+
import winrt.system
|
|
12
|
+
import winrt.windows.foundation as windows_foundation
|
|
13
|
+
import winrt.windows.graphics.printing as windows_graphics_printing
|
|
14
|
+
import winrt.windows.ui.core as windows_ui_core
|
|
15
|
+
import winrt.windows.ui.xaml as windows_ui_xaml
|
|
16
|
+
|
|
17
|
+
from winrt.windows.ui.xaml.printing import PreviewPageCountType
|
|
18
|
+
from winrt.windows.ui.xaml.printing import AddPagesEventHandler, GetPreviewPageEventHandler, PaginateEventHandler
|
|
19
|
+
|
|
20
|
+
Self = typing.TypeVar('Self')
|
|
21
|
+
|
|
22
|
+
@typing.final
|
|
23
|
+
class AddPagesEventArgs(winrt.system.Object):
|
|
24
|
+
@staticmethod
|
|
25
|
+
def _from(obj: winrt.system.Object, /) -> AddPagesEventArgs: ...
|
|
26
|
+
def __new__(cls: typing.Type[AddPagesEventArgs]) -> AddPagesEventArgs: ...
|
|
27
|
+
@_property
|
|
28
|
+
def print_task_options(self) -> typing.Optional[windows_graphics_printing.PrintTaskOptions]: ...
|
|
29
|
+
|
|
30
|
+
@typing.final
|
|
31
|
+
class GetPreviewPageEventArgs(winrt.system.Object):
|
|
32
|
+
@staticmethod
|
|
33
|
+
def _from(obj: winrt.system.Object, /) -> GetPreviewPageEventArgs: ...
|
|
34
|
+
def __new__(cls: typing.Type[GetPreviewPageEventArgs]) -> GetPreviewPageEventArgs: ...
|
|
35
|
+
@_property
|
|
36
|
+
def page_number(self) -> winrt.system.Int32: ...
|
|
37
|
+
|
|
38
|
+
@typing.final
|
|
39
|
+
class PaginateEventArgs(winrt.system.Object):
|
|
40
|
+
@staticmethod
|
|
41
|
+
def _from(obj: winrt.system.Object, /) -> PaginateEventArgs: ...
|
|
42
|
+
def __new__(cls: typing.Type[PaginateEventArgs]) -> PaginateEventArgs: ...
|
|
43
|
+
@_property
|
|
44
|
+
def current_preview_page_number(self) -> winrt.system.Int32: ...
|
|
45
|
+
@_property
|
|
46
|
+
def print_task_options(self) -> typing.Optional[windows_graphics_printing.PrintTaskOptions]: ...
|
|
47
|
+
|
|
48
|
+
@typing.final
|
|
49
|
+
class PrintDocument_Static(type):
|
|
50
|
+
@_property
|
|
51
|
+
def document_source_property(cls) -> typing.Optional[windows_ui_xaml.DependencyProperty]: ...
|
|
52
|
+
|
|
53
|
+
@typing.final
|
|
54
|
+
class PrintDocument(winrt.system.Object, metaclass=PrintDocument_Static):
|
|
55
|
+
@staticmethod
|
|
56
|
+
def _from(obj: winrt.system.Object, /) -> PrintDocument: ...
|
|
57
|
+
def __new__(cls: typing.Type[PrintDocument]) -> PrintDocument: ...
|
|
58
|
+
def add_page(self, page_visual: typing.Optional[windows_ui_xaml.UIElement], /) -> None: ...
|
|
59
|
+
def add_pages_complete(self) -> None: ...
|
|
60
|
+
def clear_value(self, dp: typing.Optional[windows_ui_xaml.DependencyProperty], /) -> None: ...
|
|
61
|
+
def get_animation_base_value(self, dp: typing.Optional[windows_ui_xaml.DependencyProperty], /) -> typing.Optional[winrt.system.Object]: ...
|
|
62
|
+
def get_value(self, dp: typing.Optional[windows_ui_xaml.DependencyProperty], /) -> typing.Optional[winrt.system.Object]: ...
|
|
63
|
+
def invalidate_preview(self) -> None: ...
|
|
64
|
+
def read_local_value(self, dp: typing.Optional[windows_ui_xaml.DependencyProperty], /) -> typing.Optional[winrt.system.Object]: ...
|
|
65
|
+
def register_property_changed_callback(self, dp: typing.Optional[windows_ui_xaml.DependencyProperty], callback: typing.Optional[windows_ui_xaml.DependencyPropertyChangedCallback], /) -> winrt.system.Int64: ...
|
|
66
|
+
def set_preview_page(self, page_number: winrt.system.Int32, page_visual: typing.Optional[windows_ui_xaml.UIElement], /) -> None: ...
|
|
67
|
+
def set_preview_page_count(self, count: winrt.system.Int32, type: PreviewPageCountType, /) -> None: ...
|
|
68
|
+
def set_value(self, dp: typing.Optional[windows_ui_xaml.DependencyProperty], value: typing.Optional[winrt.system.Object], /) -> None: ...
|
|
69
|
+
def unregister_property_changed_callback(self, dp: typing.Optional[windows_ui_xaml.DependencyProperty], token: winrt.system.Int64, /) -> None: ...
|
|
70
|
+
def add_add_pages(self, handler: typing.Optional[AddPagesEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
71
|
+
def remove_add_pages(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
72
|
+
def add_get_preview_page(self, handler: typing.Optional[GetPreviewPageEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
73
|
+
def remove_get_preview_page(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
74
|
+
def add_paginate(self, handler: typing.Optional[PaginateEventHandler], /) -> windows_foundation.EventRegistrationToken: ...
|
|
75
|
+
def remove_paginate(self, token: windows_foundation.EventRegistrationToken, /) -> None: ...
|
|
76
|
+
@_property
|
|
77
|
+
def document_source(self) -> typing.Optional[windows_graphics_printing.IPrintDocumentSource]: ...
|
|
78
|
+
@_property
|
|
79
|
+
def dispatcher(self) -> typing.Optional[windows_ui_core.CoreDispatcher]: ...
|
|
80
|
+
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: winrt-Windows.UI.Xaml.Printing
|
|
3
|
-
Version: 2.0
|
|
3
|
+
Version: 2.2.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -10,13 +10,14 @@ Classifier: Operating System :: Microsoft :: Windows
|
|
|
10
10
|
Classifier: Programming Language :: Python :: 3
|
|
11
11
|
Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
|
-
Requires-Python: <3.
|
|
13
|
+
Requires-Python: <3.14,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.2.0
|
|
16
16
|
Provides-Extra: all
|
|
17
|
-
Requires-Dist: winrt-Windows.Foundation[all]==2.0
|
|
18
|
-
Requires-Dist: winrt-Windows.Graphics.Printing[all]==2.0
|
|
19
|
-
Requires-Dist: winrt-Windows.UI.
|
|
17
|
+
Requires-Dist: winrt-Windows.Foundation[all]==2.2.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics.Printing[all]==2.2.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Core[all]==2.2.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI.Xaml[all]==2.2.0; extra == "all"
|
|
20
21
|
|
|
21
22
|
<!-- warning: Please don't edit this file. It was automatically generated. -->
|
|
22
23
|
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
2.0.1
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.0.1
|
|
2
|
-
|
|
3
|
-
import datetime
|
|
4
|
-
import sys
|
|
5
|
-
import types
|
|
6
|
-
import typing
|
|
7
|
-
import uuid as _uuid
|
|
8
|
-
from builtins import property as _property
|
|
9
|
-
|
|
10
|
-
import winrt._winrt
|
|
11
|
-
import winrt.system
|
|
12
|
-
import winrt.windows.foundation
|
|
13
|
-
import winrt.windows.graphics.printing
|
|
14
|
-
import winrt.windows.ui.xaml
|
|
15
|
-
|
|
16
|
-
from winrt.windows.ui.xaml.printing import PreviewPageCountType
|
|
17
|
-
from winrt.windows.ui.xaml.printing import AddPagesEventHandler, GetPreviewPageEventHandler, PaginateEventHandler
|
|
18
|
-
|
|
19
|
-
Self = typing.TypeVar('Self')
|
|
20
|
-
|
|
21
|
-
@typing.final
|
|
22
|
-
class AddPagesEventArgs(winrt.system.Object):
|
|
23
|
-
@staticmethod
|
|
24
|
-
def _from(obj: winrt.system.Object, /) -> AddPagesEventArgs: ...
|
|
25
|
-
def __new__(cls: typing.Type[AddPagesEventArgs]) -> AddPagesEventArgs:...
|
|
26
|
-
@_property
|
|
27
|
-
def print_task_options(self) -> typing.Optional[winrt.windows.graphics.printing.PrintTaskOptions]: ...
|
|
28
|
-
|
|
29
|
-
@typing.final
|
|
30
|
-
class GetPreviewPageEventArgs(winrt.system.Object):
|
|
31
|
-
@staticmethod
|
|
32
|
-
def _from(obj: winrt.system.Object, /) -> GetPreviewPageEventArgs: ...
|
|
33
|
-
def __new__(cls: typing.Type[GetPreviewPageEventArgs]) -> GetPreviewPageEventArgs:...
|
|
34
|
-
@_property
|
|
35
|
-
def page_number(self) -> winrt.system.Int32: ...
|
|
36
|
-
|
|
37
|
-
@typing.final
|
|
38
|
-
class PaginateEventArgs(winrt.system.Object):
|
|
39
|
-
@staticmethod
|
|
40
|
-
def _from(obj: winrt.system.Object, /) -> PaginateEventArgs: ...
|
|
41
|
-
def __new__(cls: typing.Type[PaginateEventArgs]) -> PaginateEventArgs:...
|
|
42
|
-
@_property
|
|
43
|
-
def current_preview_page_number(self) -> winrt.system.Int32: ...
|
|
44
|
-
@_property
|
|
45
|
-
def print_task_options(self) -> typing.Optional[winrt.windows.graphics.printing.PrintTaskOptions]: ...
|
|
46
|
-
|
|
47
|
-
@typing.final
|
|
48
|
-
class PrintDocument_Static(type):
|
|
49
|
-
@_property
|
|
50
|
-
def document_source_property(cls) -> typing.Optional[winrt.windows.ui.xaml.DependencyProperty]: ...
|
|
51
|
-
|
|
52
|
-
@typing.final
|
|
53
|
-
class PrintDocument(winrt.system.Object, metaclass=PrintDocument_Static):
|
|
54
|
-
@staticmethod
|
|
55
|
-
def _from(obj: winrt.system.Object, /) -> PrintDocument: ...
|
|
56
|
-
def __new__(cls: typing.Type[PrintDocument]) -> PrintDocument:...
|
|
57
|
-
def add_page(self, page_visual: typing.Optional[winrt.windows.ui.xaml.UIElement], /) -> None: ...
|
|
58
|
-
def add_pages_complete(self) -> None: ...
|
|
59
|
-
def invalidate_preview(self) -> None: ...
|
|
60
|
-
def set_preview_page(self, page_number: winrt.system.Int32, page_visual: typing.Optional[winrt.windows.ui.xaml.UIElement], /) -> None: ...
|
|
61
|
-
def set_preview_page_count(self, count: winrt.system.Int32, type: PreviewPageCountType, /) -> None: ...
|
|
62
|
-
def add_add_pages(self, handler: typing.Optional[AddPagesEventHandler], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
63
|
-
def remove_add_pages(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
64
|
-
def add_get_preview_page(self, handler: typing.Optional[GetPreviewPageEventHandler], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
65
|
-
def remove_get_preview_page(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
66
|
-
def add_paginate(self, handler: typing.Optional[PaginateEventHandler], /) -> winrt.windows.foundation.EventRegistrationToken: ...
|
|
67
|
-
def remove_paginate(self, token: winrt.windows.foundation.EventRegistrationToken, /) -> None: ...
|
|
68
|
-
@_property
|
|
69
|
-
def document_source(self) -> typing.Optional[winrt.windows.graphics.printing.IPrintDocumentSource]: ...
|
|
70
|
-
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|