winrt-Windows.UI.Xaml.Printing 2.0.1__tar.gz → 2.1.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.1.0}/PKG-INFO +6 -5
- winrt_windows_ui_xaml_printing-2.1.0/all-requirements.txt +6 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/py.Windows.UI.Xaml.Printing.cpp +365 -129
- winrt_windows_ui_xaml_printing-2.1.0/pywinrt-version.txt +1 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/requirements.txt +2 -2
- winrt_windows_ui_xaml_printing-2.1.0/winrt/_winrt_windows_ui_xaml_printing.pyi +80 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/winrt/windows/ui/xaml/printing/__init__.py +1 -1
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/winrt_Windows.UI.Xaml.Printing.egg-info/PKG-INFO +6 -5
- winrt_windows_ui_xaml_printing-2.1.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.1.0}/README.md +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/pyproject.toml +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/setup.cfg +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/setup.py +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/winrt/windows/ui/xaml/printing/py.typed +0 -0
- {winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.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.1.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.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,11 +12,12 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.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.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics.Printing[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Core[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.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.1.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 --------------------
|
|
@@ -46,14 +45,14 @@ 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
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.AddPagesEventArgs", L"PrintTaskOptions"))
|
|
51
|
+
{
|
|
52
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
53
|
+
return nullptr;
|
|
54
|
+
}
|
|
55
|
+
|
|
57
56
|
return py::convert(self->obj.PrintTaskOptions());
|
|
58
57
|
}
|
|
59
58
|
catch (...)
|
|
@@ -98,23 +97,20 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
98
97
|
{ }
|
|
99
98
|
};
|
|
100
99
|
|
|
101
|
-
static PyType_Slot _type_slots_AddPagesEventArgs[] =
|
|
102
|
-
{
|
|
100
|
+
static PyType_Slot _type_slots_AddPagesEventArgs[] = {
|
|
103
101
|
{ Py_tp_new, reinterpret_cast<void*>(_new_AddPagesEventArgs) },
|
|
104
102
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_AddPagesEventArgs) },
|
|
105
103
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_AddPagesEventArgs) },
|
|
106
104
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_AddPagesEventArgs) },
|
|
107
|
-
{ }
|
|
105
|
+
{ }
|
|
108
106
|
};
|
|
109
107
|
|
|
110
|
-
static PyType_Spec type_spec_AddPagesEventArgs =
|
|
111
|
-
{
|
|
108
|
+
static PyType_Spec type_spec_AddPagesEventArgs = {
|
|
112
109
|
"winrt._winrt_windows_ui_xaml_printing.AddPagesEventArgs",
|
|
113
110
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::AddPagesEventArgs),
|
|
114
111
|
0,
|
|
115
112
|
Py_TPFLAGS_DEFAULT,
|
|
116
|
-
_type_slots_AddPagesEventArgs
|
|
117
|
-
};
|
|
113
|
+
_type_slots_AddPagesEventArgs};
|
|
118
114
|
|
|
119
115
|
// ----- GetPreviewPageEventArgs class --------------------
|
|
120
116
|
|
|
@@ -157,14 +153,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
157
153
|
|
|
158
154
|
static PyObject* GetPreviewPageEventArgs_get_PageNumber(py::wrapper::Windows::UI::Xaml::Printing::GetPreviewPageEventArgs* self, void* /*unused*/) noexcept
|
|
159
155
|
{
|
|
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
156
|
try
|
|
167
157
|
{
|
|
158
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.GetPreviewPageEventArgs", L"PageNumber"))
|
|
159
|
+
{
|
|
160
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
161
|
+
return nullptr;
|
|
162
|
+
}
|
|
163
|
+
|
|
168
164
|
return py::convert(self->obj.PageNumber());
|
|
169
165
|
}
|
|
170
166
|
catch (...)
|
|
@@ -209,23 +205,20 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
209
205
|
{ }
|
|
210
206
|
};
|
|
211
207
|
|
|
212
|
-
static PyType_Slot _type_slots_GetPreviewPageEventArgs[] =
|
|
213
|
-
{
|
|
208
|
+
static PyType_Slot _type_slots_GetPreviewPageEventArgs[] = {
|
|
214
209
|
{ Py_tp_new, reinterpret_cast<void*>(_new_GetPreviewPageEventArgs) },
|
|
215
210
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_GetPreviewPageEventArgs) },
|
|
216
211
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_GetPreviewPageEventArgs) },
|
|
217
212
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_GetPreviewPageEventArgs) },
|
|
218
|
-
{ }
|
|
213
|
+
{ }
|
|
219
214
|
};
|
|
220
215
|
|
|
221
|
-
static PyType_Spec type_spec_GetPreviewPageEventArgs =
|
|
222
|
-
{
|
|
216
|
+
static PyType_Spec type_spec_GetPreviewPageEventArgs = {
|
|
223
217
|
"winrt._winrt_windows_ui_xaml_printing.GetPreviewPageEventArgs",
|
|
224
218
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::GetPreviewPageEventArgs),
|
|
225
219
|
0,
|
|
226
220
|
Py_TPFLAGS_DEFAULT,
|
|
227
|
-
_type_slots_GetPreviewPageEventArgs
|
|
228
|
-
};
|
|
221
|
+
_type_slots_GetPreviewPageEventArgs};
|
|
229
222
|
|
|
230
223
|
// ----- PaginateEventArgs class --------------------
|
|
231
224
|
|
|
@@ -268,14 +261,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
268
261
|
|
|
269
262
|
static PyObject* PaginateEventArgs_get_CurrentPreviewPageNumber(py::wrapper::Windows::UI::Xaml::Printing::PaginateEventArgs* self, void* /*unused*/) noexcept
|
|
270
263
|
{
|
|
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
264
|
try
|
|
278
265
|
{
|
|
266
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PaginateEventArgs", L"CurrentPreviewPageNumber"))
|
|
267
|
+
{
|
|
268
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
269
|
+
return nullptr;
|
|
270
|
+
}
|
|
271
|
+
|
|
279
272
|
return py::convert(self->obj.CurrentPreviewPageNumber());
|
|
280
273
|
}
|
|
281
274
|
catch (...)
|
|
@@ -287,14 +280,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
287
280
|
|
|
288
281
|
static PyObject* PaginateEventArgs_get_PrintTaskOptions(py::wrapper::Windows::UI::Xaml::Printing::PaginateEventArgs* self, void* /*unused*/) noexcept
|
|
289
282
|
{
|
|
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
283
|
try
|
|
297
284
|
{
|
|
285
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PaginateEventArgs", L"PrintTaskOptions"))
|
|
286
|
+
{
|
|
287
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
288
|
+
return nullptr;
|
|
289
|
+
}
|
|
290
|
+
|
|
298
291
|
return py::convert(self->obj.PrintTaskOptions());
|
|
299
292
|
}
|
|
300
293
|
catch (...)
|
|
@@ -340,23 +333,20 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
340
333
|
{ }
|
|
341
334
|
};
|
|
342
335
|
|
|
343
|
-
static PyType_Slot _type_slots_PaginateEventArgs[] =
|
|
344
|
-
{
|
|
336
|
+
static PyType_Slot _type_slots_PaginateEventArgs[] = {
|
|
345
337
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PaginateEventArgs) },
|
|
346
338
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PaginateEventArgs) },
|
|
347
339
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PaginateEventArgs) },
|
|
348
340
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PaginateEventArgs) },
|
|
349
|
-
{ }
|
|
341
|
+
{ }
|
|
350
342
|
};
|
|
351
343
|
|
|
352
|
-
static PyType_Spec type_spec_PaginateEventArgs =
|
|
353
|
-
{
|
|
344
|
+
static PyType_Spec type_spec_PaginateEventArgs = {
|
|
354
345
|
"winrt._winrt_windows_ui_xaml_printing.PaginateEventArgs",
|
|
355
346
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::PaginateEventArgs),
|
|
356
347
|
0,
|
|
357
348
|
Py_TPFLAGS_DEFAULT,
|
|
358
|
-
_type_slots_PaginateEventArgs
|
|
359
|
-
};
|
|
349
|
+
_type_slots_PaginateEventArgs};
|
|
360
350
|
|
|
361
351
|
// ----- PrintDocument class --------------------
|
|
362
352
|
|
|
@@ -403,14 +393,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
403
393
|
|
|
404
394
|
if (arg_count == 1)
|
|
405
395
|
{
|
|
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
396
|
try
|
|
413
397
|
{
|
|
398
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPage", 1))
|
|
399
|
+
{
|
|
400
|
+
py::set_arg_count_version_error(1);
|
|
401
|
+
return nullptr;
|
|
402
|
+
}
|
|
403
|
+
|
|
414
404
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::UIElement>(args, 0);
|
|
415
405
|
|
|
416
406
|
self->obj.AddPage(param0);
|
|
@@ -435,15 +425,47 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
435
425
|
|
|
436
426
|
if (arg_count == 0)
|
|
437
427
|
{
|
|
438
|
-
|
|
428
|
+
try
|
|
429
|
+
{
|
|
430
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPagesComplete", 0))
|
|
431
|
+
{
|
|
432
|
+
py::set_arg_count_version_error(0);
|
|
433
|
+
return nullptr;
|
|
434
|
+
}
|
|
435
|
+
|
|
436
|
+
self->obj.AddPagesComplete();
|
|
437
|
+
Py_RETURN_NONE;
|
|
438
|
+
}
|
|
439
|
+
catch (...)
|
|
439
440
|
{
|
|
440
|
-
py::
|
|
441
|
+
py::to_PyErr();
|
|
441
442
|
return nullptr;
|
|
442
443
|
}
|
|
444
|
+
}
|
|
445
|
+
else
|
|
446
|
+
{
|
|
447
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
448
|
+
return nullptr;
|
|
449
|
+
}
|
|
450
|
+
}
|
|
443
451
|
|
|
452
|
+
static PyObject* PrintDocument_ClearValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
453
|
+
{
|
|
454
|
+
auto arg_count = PyTuple_Size(args);
|
|
455
|
+
|
|
456
|
+
if (arg_count == 1)
|
|
457
|
+
{
|
|
444
458
|
try
|
|
445
459
|
{
|
|
446
|
-
|
|
460
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ClearValue", 1))
|
|
461
|
+
{
|
|
462
|
+
py::set_arg_count_version_error(1);
|
|
463
|
+
return nullptr;
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
467
|
+
|
|
468
|
+
self->obj.ClearValue(param0);
|
|
447
469
|
Py_RETURN_NONE;
|
|
448
470
|
}
|
|
449
471
|
catch (...)
|
|
@@ -459,20 +481,82 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
459
481
|
}
|
|
460
482
|
}
|
|
461
483
|
|
|
462
|
-
static PyObject*
|
|
484
|
+
static PyObject* PrintDocument_GetAnimationBaseValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
463
485
|
{
|
|
464
486
|
auto arg_count = PyTuple_Size(args);
|
|
465
487
|
|
|
466
|
-
if (arg_count ==
|
|
488
|
+
if (arg_count == 1)
|
|
489
|
+
{
|
|
490
|
+
try
|
|
491
|
+
{
|
|
492
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetAnimationBaseValue", 1))
|
|
493
|
+
{
|
|
494
|
+
py::set_arg_count_version_error(1);
|
|
495
|
+
return nullptr;
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
499
|
+
|
|
500
|
+
return py::convert(self->obj.GetAnimationBaseValue(param0));
|
|
501
|
+
}
|
|
502
|
+
catch (...)
|
|
503
|
+
{
|
|
504
|
+
py::to_PyErr();
|
|
505
|
+
return nullptr;
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
else
|
|
509
|
+
{
|
|
510
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
511
|
+
return nullptr;
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
|
|
515
|
+
static PyObject* PrintDocument_GetValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
516
|
+
{
|
|
517
|
+
auto arg_count = PyTuple_Size(args);
|
|
518
|
+
|
|
519
|
+
if (arg_count == 1)
|
|
467
520
|
{
|
|
468
|
-
|
|
521
|
+
try
|
|
469
522
|
{
|
|
470
|
-
|
|
523
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"GetValue", 1))
|
|
524
|
+
{
|
|
525
|
+
py::set_arg_count_version_error(1);
|
|
526
|
+
return nullptr;
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
530
|
+
|
|
531
|
+
return py::convert(self->obj.GetValue(param0));
|
|
532
|
+
}
|
|
533
|
+
catch (...)
|
|
534
|
+
{
|
|
535
|
+
py::to_PyErr();
|
|
471
536
|
return nullptr;
|
|
472
537
|
}
|
|
538
|
+
}
|
|
539
|
+
else
|
|
540
|
+
{
|
|
541
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
542
|
+
return nullptr;
|
|
543
|
+
}
|
|
544
|
+
}
|
|
473
545
|
|
|
546
|
+
static PyObject* PrintDocument_InvalidatePreview(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
547
|
+
{
|
|
548
|
+
auto arg_count = PyTuple_Size(args);
|
|
549
|
+
|
|
550
|
+
if (arg_count == 0)
|
|
551
|
+
{
|
|
474
552
|
try
|
|
475
553
|
{
|
|
554
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"InvalidatePreview", 0))
|
|
555
|
+
{
|
|
556
|
+
py::set_arg_count_version_error(0);
|
|
557
|
+
return nullptr;
|
|
558
|
+
}
|
|
559
|
+
|
|
476
560
|
self->obj.InvalidatePreview();
|
|
477
561
|
Py_RETURN_NONE;
|
|
478
562
|
}
|
|
@@ -489,20 +573,83 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
489
573
|
}
|
|
490
574
|
}
|
|
491
575
|
|
|
492
|
-
static PyObject*
|
|
576
|
+
static PyObject* PrintDocument_ReadLocalValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
577
|
+
{
|
|
578
|
+
auto arg_count = PyTuple_Size(args);
|
|
579
|
+
|
|
580
|
+
if (arg_count == 1)
|
|
581
|
+
{
|
|
582
|
+
try
|
|
583
|
+
{
|
|
584
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"ReadLocalValue", 1))
|
|
585
|
+
{
|
|
586
|
+
py::set_arg_count_version_error(1);
|
|
587
|
+
return nullptr;
|
|
588
|
+
}
|
|
589
|
+
|
|
590
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
591
|
+
|
|
592
|
+
return py::convert(self->obj.ReadLocalValue(param0));
|
|
593
|
+
}
|
|
594
|
+
catch (...)
|
|
595
|
+
{
|
|
596
|
+
py::to_PyErr();
|
|
597
|
+
return nullptr;
|
|
598
|
+
}
|
|
599
|
+
}
|
|
600
|
+
else
|
|
601
|
+
{
|
|
602
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
603
|
+
return nullptr;
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
|
|
607
|
+
static PyObject* PrintDocument_RegisterPropertyChangedCallback(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
493
608
|
{
|
|
494
609
|
auto arg_count = PyTuple_Size(args);
|
|
495
610
|
|
|
496
611
|
if (arg_count == 2)
|
|
497
612
|
{
|
|
498
|
-
|
|
613
|
+
try
|
|
499
614
|
{
|
|
500
|
-
|
|
615
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"RegisterPropertyChangedCallback", 2))
|
|
616
|
+
{
|
|
617
|
+
py::set_arg_count_version_error(2);
|
|
618
|
+
return nullptr;
|
|
619
|
+
}
|
|
620
|
+
|
|
621
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
622
|
+
auto param1 = py::convert_to<winrt::Windows::UI::Xaml::DependencyPropertyChangedCallback>(args, 1);
|
|
623
|
+
|
|
624
|
+
return py::convert(self->obj.RegisterPropertyChangedCallback(param0, param1));
|
|
625
|
+
}
|
|
626
|
+
catch (...)
|
|
627
|
+
{
|
|
628
|
+
py::to_PyErr();
|
|
501
629
|
return nullptr;
|
|
502
630
|
}
|
|
631
|
+
}
|
|
632
|
+
else
|
|
633
|
+
{
|
|
634
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
635
|
+
return nullptr;
|
|
636
|
+
}
|
|
637
|
+
}
|
|
503
638
|
|
|
639
|
+
static PyObject* PrintDocument_SetPreviewPage(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
640
|
+
{
|
|
641
|
+
auto arg_count = PyTuple_Size(args);
|
|
642
|
+
|
|
643
|
+
if (arg_count == 2)
|
|
644
|
+
{
|
|
504
645
|
try
|
|
505
646
|
{
|
|
647
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"SetPreviewPage", 2))
|
|
648
|
+
{
|
|
649
|
+
py::set_arg_count_version_error(2);
|
|
650
|
+
return nullptr;
|
|
651
|
+
}
|
|
652
|
+
|
|
506
653
|
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
507
654
|
auto param1 = py::convert_to<winrt::Windows::UI::Xaml::UIElement>(args, 1);
|
|
508
655
|
|
|
@@ -528,18 +675,51 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
528
675
|
|
|
529
676
|
if (arg_count == 2)
|
|
530
677
|
{
|
|
531
|
-
|
|
678
|
+
try
|
|
679
|
+
{
|
|
680
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"SetPreviewPageCount", 2))
|
|
681
|
+
{
|
|
682
|
+
py::set_arg_count_version_error(2);
|
|
683
|
+
return nullptr;
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
auto param0 = py::convert_to<int32_t>(args, 0);
|
|
687
|
+
auto param1 = py::convert_to<winrt::Windows::UI::Xaml::Printing::PreviewPageCountType>(args, 1);
|
|
688
|
+
|
|
689
|
+
self->obj.SetPreviewPageCount(param0, param1);
|
|
690
|
+
Py_RETURN_NONE;
|
|
691
|
+
}
|
|
692
|
+
catch (...)
|
|
532
693
|
{
|
|
533
|
-
py::
|
|
694
|
+
py::to_PyErr();
|
|
534
695
|
return nullptr;
|
|
535
696
|
}
|
|
697
|
+
}
|
|
698
|
+
else
|
|
699
|
+
{
|
|
700
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
701
|
+
return nullptr;
|
|
702
|
+
}
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
static PyObject* PrintDocument_SetValue(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
706
|
+
{
|
|
707
|
+
auto arg_count = PyTuple_Size(args);
|
|
536
708
|
|
|
709
|
+
if (arg_count == 2)
|
|
710
|
+
{
|
|
537
711
|
try
|
|
538
712
|
{
|
|
539
|
-
|
|
540
|
-
|
|
713
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"SetValue", 2))
|
|
714
|
+
{
|
|
715
|
+
py::set_arg_count_version_error(2);
|
|
716
|
+
return nullptr;
|
|
717
|
+
}
|
|
541
718
|
|
|
542
|
-
|
|
719
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
720
|
+
auto param1 = py::convert_to<winrt::Windows::Foundation::IInspectable>(args, 1);
|
|
721
|
+
|
|
722
|
+
self->obj.SetValue(param0, param1);
|
|
543
723
|
Py_RETURN_NONE;
|
|
544
724
|
}
|
|
545
725
|
catch (...)
|
|
@@ -555,16 +735,49 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
555
735
|
}
|
|
556
736
|
}
|
|
557
737
|
|
|
558
|
-
static PyObject*
|
|
738
|
+
static PyObject* PrintDocument_UnregisterPropertyChangedCallback(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* args) noexcept
|
|
559
739
|
{
|
|
560
|
-
|
|
740
|
+
auto arg_count = PyTuple_Size(args);
|
|
741
|
+
|
|
742
|
+
if (arg_count == 2)
|
|
743
|
+
{
|
|
744
|
+
try
|
|
745
|
+
{
|
|
746
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsMethodPresent(L"Windows.UI.Xaml.DependencyObject", L"UnregisterPropertyChangedCallback", 2))
|
|
747
|
+
{
|
|
748
|
+
py::set_arg_count_version_error(2);
|
|
749
|
+
return nullptr;
|
|
750
|
+
}
|
|
751
|
+
|
|
752
|
+
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::DependencyProperty>(args, 0);
|
|
753
|
+
auto param1 = py::convert_to<int64_t>(args, 1);
|
|
754
|
+
|
|
755
|
+
self->obj.UnregisterPropertyChangedCallback(param0, param1);
|
|
756
|
+
Py_RETURN_NONE;
|
|
757
|
+
}
|
|
758
|
+
catch (...)
|
|
759
|
+
{
|
|
760
|
+
py::to_PyErr();
|
|
761
|
+
return nullptr;
|
|
762
|
+
}
|
|
763
|
+
}
|
|
764
|
+
else
|
|
561
765
|
{
|
|
562
|
-
|
|
766
|
+
py::set_invalid_arg_count_error(arg_count);
|
|
563
767
|
return nullptr;
|
|
564
768
|
}
|
|
769
|
+
}
|
|
565
770
|
|
|
771
|
+
static PyObject* PrintDocument_get_DocumentSource(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, void* /*unused*/) noexcept
|
|
772
|
+
{
|
|
566
773
|
try
|
|
567
774
|
{
|
|
775
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"DocumentSource"))
|
|
776
|
+
{
|
|
777
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
778
|
+
return nullptr;
|
|
779
|
+
}
|
|
780
|
+
|
|
568
781
|
return py::convert(self->obj.DocumentSource());
|
|
569
782
|
}
|
|
570
783
|
catch (...)
|
|
@@ -576,14 +789,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
576
789
|
|
|
577
790
|
static PyObject* PrintDocument_get_DocumentSourceProperty(PyObject* /*unused*/, void* /*unused*/) noexcept
|
|
578
791
|
{
|
|
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
792
|
try
|
|
586
793
|
{
|
|
794
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"DocumentSourceProperty"))
|
|
795
|
+
{
|
|
796
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
797
|
+
return nullptr;
|
|
798
|
+
}
|
|
799
|
+
|
|
587
800
|
return py::convert(winrt::Windows::UI::Xaml::Printing::PrintDocument::DocumentSourceProperty());
|
|
588
801
|
}
|
|
589
802
|
catch (...)
|
|
@@ -593,16 +806,35 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
593
806
|
}
|
|
594
807
|
}
|
|
595
808
|
|
|
596
|
-
static PyObject*
|
|
809
|
+
static PyObject* PrintDocument_get_Dispatcher(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, void* /*unused*/) noexcept
|
|
597
810
|
{
|
|
598
|
-
|
|
811
|
+
try
|
|
812
|
+
{
|
|
813
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsPropertyPresent(L"Windows.UI.Xaml.DependencyObject", L"Dispatcher"))
|
|
814
|
+
{
|
|
815
|
+
PyErr_SetString(PyExc_AttributeError, "property is not available in this version of Windows");
|
|
816
|
+
return nullptr;
|
|
817
|
+
}
|
|
818
|
+
|
|
819
|
+
return py::convert(self->obj.Dispatcher());
|
|
820
|
+
}
|
|
821
|
+
catch (...)
|
|
599
822
|
{
|
|
600
|
-
|
|
823
|
+
py::to_PyErr();
|
|
601
824
|
return nullptr;
|
|
602
825
|
}
|
|
826
|
+
}
|
|
603
827
|
|
|
828
|
+
static PyObject* PrintDocument_add_AddPages(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
829
|
+
{
|
|
604
830
|
try
|
|
605
831
|
{
|
|
832
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPages"))
|
|
833
|
+
{
|
|
834
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
835
|
+
return nullptr;
|
|
836
|
+
}
|
|
837
|
+
|
|
606
838
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Printing::AddPagesEventHandler>(arg);
|
|
607
839
|
|
|
608
840
|
return py::convert(self->obj.AddPages(param0));
|
|
@@ -616,14 +848,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
616
848
|
|
|
617
849
|
static PyObject* PrintDocument_remove_AddPages(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
618
850
|
{
|
|
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
851
|
try
|
|
626
852
|
{
|
|
853
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"AddPages"))
|
|
854
|
+
{
|
|
855
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
856
|
+
return nullptr;
|
|
857
|
+
}
|
|
858
|
+
|
|
627
859
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
628
860
|
|
|
629
861
|
self->obj.AddPages(param0);
|
|
@@ -638,14 +870,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
638
870
|
|
|
639
871
|
static PyObject* PrintDocument_add_GetPreviewPage(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
640
872
|
{
|
|
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
873
|
try
|
|
648
874
|
{
|
|
875
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"GetPreviewPage"))
|
|
876
|
+
{
|
|
877
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
878
|
+
return nullptr;
|
|
879
|
+
}
|
|
880
|
+
|
|
649
881
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Printing::GetPreviewPageEventHandler>(arg);
|
|
650
882
|
|
|
651
883
|
return py::convert(self->obj.GetPreviewPage(param0));
|
|
@@ -659,14 +891,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
659
891
|
|
|
660
892
|
static PyObject* PrintDocument_remove_GetPreviewPage(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
661
893
|
{
|
|
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
894
|
try
|
|
669
895
|
{
|
|
896
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"GetPreviewPage"))
|
|
897
|
+
{
|
|
898
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
899
|
+
return nullptr;
|
|
900
|
+
}
|
|
901
|
+
|
|
670
902
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
671
903
|
|
|
672
904
|
self->obj.GetPreviewPage(param0);
|
|
@@ -681,14 +913,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
681
913
|
|
|
682
914
|
static PyObject* PrintDocument_add_Paginate(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
683
915
|
{
|
|
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
916
|
try
|
|
691
917
|
{
|
|
918
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"Paginate"))
|
|
919
|
+
{
|
|
920
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
921
|
+
return nullptr;
|
|
922
|
+
}
|
|
923
|
+
|
|
692
924
|
auto param0 = py::convert_to<winrt::Windows::UI::Xaml::Printing::PaginateEventHandler>(arg);
|
|
693
925
|
|
|
694
926
|
return py::convert(self->obj.Paginate(param0));
|
|
@@ -702,14 +934,14 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
702
934
|
|
|
703
935
|
static PyObject* PrintDocument_remove_Paginate(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument* self, PyObject* arg) noexcept
|
|
704
936
|
{
|
|
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
937
|
try
|
|
712
938
|
{
|
|
939
|
+
if (!winrt::Windows::Foundation::Metadata::ApiInformation::IsEventPresent(L"Windows.UI.Xaml.Printing.PrintDocument", L"Paginate"))
|
|
940
|
+
{
|
|
941
|
+
PyErr_SetString(PyExc_AttributeError, "event is not available in this version of Windows");
|
|
942
|
+
return nullptr;
|
|
943
|
+
}
|
|
944
|
+
|
|
713
945
|
auto param0 = py::convert_to<winrt::event_token>(arg);
|
|
714
946
|
|
|
715
947
|
self->obj.Paginate(param0);
|
|
@@ -749,9 +981,16 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
749
981
|
static PyMethodDef _methods_PrintDocument[] = {
|
|
750
982
|
{ "add_page", reinterpret_cast<PyCFunction>(PrintDocument_AddPage), METH_VARARGS, nullptr },
|
|
751
983
|
{ "add_pages_complete", reinterpret_cast<PyCFunction>(PrintDocument_AddPagesComplete), METH_VARARGS, nullptr },
|
|
984
|
+
{ "clear_value", reinterpret_cast<PyCFunction>(PrintDocument_ClearValue), METH_VARARGS, nullptr },
|
|
985
|
+
{ "get_animation_base_value", reinterpret_cast<PyCFunction>(PrintDocument_GetAnimationBaseValue), METH_VARARGS, nullptr },
|
|
986
|
+
{ "get_value", reinterpret_cast<PyCFunction>(PrintDocument_GetValue), METH_VARARGS, nullptr },
|
|
752
987
|
{ "invalidate_preview", reinterpret_cast<PyCFunction>(PrintDocument_InvalidatePreview), METH_VARARGS, nullptr },
|
|
988
|
+
{ "read_local_value", reinterpret_cast<PyCFunction>(PrintDocument_ReadLocalValue), METH_VARARGS, nullptr },
|
|
989
|
+
{ "register_property_changed_callback", reinterpret_cast<PyCFunction>(PrintDocument_RegisterPropertyChangedCallback), METH_VARARGS, nullptr },
|
|
753
990
|
{ "set_preview_page", reinterpret_cast<PyCFunction>(PrintDocument_SetPreviewPage), METH_VARARGS, nullptr },
|
|
754
991
|
{ "set_preview_page_count", reinterpret_cast<PyCFunction>(PrintDocument_SetPreviewPageCount), METH_VARARGS, nullptr },
|
|
992
|
+
{ "set_value", reinterpret_cast<PyCFunction>(PrintDocument_SetValue), METH_VARARGS, nullptr },
|
|
993
|
+
{ "unregister_property_changed_callback", reinterpret_cast<PyCFunction>(PrintDocument_UnregisterPropertyChangedCallback), METH_VARARGS, nullptr },
|
|
755
994
|
{ "add_add_pages", reinterpret_cast<PyCFunction>(PrintDocument_add_AddPages), METH_O, nullptr },
|
|
756
995
|
{ "remove_add_pages", reinterpret_cast<PyCFunction>(PrintDocument_remove_AddPages), METH_O, nullptr },
|
|
757
996
|
{ "add_get_preview_page", reinterpret_cast<PyCFunction>(PrintDocument_add_GetPreviewPage), METH_O, nullptr },
|
|
@@ -765,26 +1004,24 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
765
1004
|
|
|
766
1005
|
static PyGetSetDef _getset_PrintDocument[] = {
|
|
767
1006
|
{ "document_source", reinterpret_cast<getter>(PrintDocument_get_DocumentSource), nullptr, nullptr, nullptr },
|
|
1007
|
+
{ "dispatcher", reinterpret_cast<getter>(PrintDocument_get_Dispatcher), nullptr, nullptr, nullptr },
|
|
768
1008
|
{ }
|
|
769
1009
|
};
|
|
770
1010
|
|
|
771
|
-
static PyType_Slot _type_slots_PrintDocument[] =
|
|
772
|
-
{
|
|
1011
|
+
static PyType_Slot _type_slots_PrintDocument[] = {
|
|
773
1012
|
{ Py_tp_new, reinterpret_cast<void*>(_new_PrintDocument) },
|
|
774
1013
|
{ Py_tp_dealloc, reinterpret_cast<void*>(_dealloc_PrintDocument) },
|
|
775
1014
|
{ Py_tp_methods, reinterpret_cast<void*>(_methods_PrintDocument) },
|
|
776
1015
|
{ Py_tp_getset, reinterpret_cast<void*>(_getset_PrintDocument) },
|
|
777
|
-
{ }
|
|
1016
|
+
{ }
|
|
778
1017
|
};
|
|
779
1018
|
|
|
780
|
-
static PyType_Spec type_spec_PrintDocument =
|
|
781
|
-
{
|
|
1019
|
+
static PyType_Spec type_spec_PrintDocument = {
|
|
782
1020
|
"winrt._winrt_windows_ui_xaml_printing.PrintDocument",
|
|
783
1021
|
sizeof(py::wrapper::Windows::UI::Xaml::Printing::PrintDocument),
|
|
784
1022
|
0,
|
|
785
1023
|
Py_TPFLAGS_DEFAULT,
|
|
786
|
-
_type_slots_PrintDocument
|
|
787
|
-
};
|
|
1024
|
+
_type_slots_PrintDocument};
|
|
788
1025
|
|
|
789
1026
|
static PyGetSetDef getset_PrintDocument_Static[] = {
|
|
790
1027
|
{ "document_source_property", reinterpret_cast<getter>(PrintDocument_get_DocumentSourceProperty), nullptr, nullptr, nullptr },
|
|
@@ -813,20 +1050,19 @@ namespace py::cpp::Windows::UI::Xaml::Printing
|
|
|
813
1050
|
};
|
|
814
1051
|
|
|
815
1052
|
// ----- Windows.UI.Xaml.Printing Initialization --------------------
|
|
816
|
-
PyDoc_STRVAR(module_doc, "Windows::UI::Xaml::Printing");
|
|
817
1053
|
|
|
1054
|
+
PyDoc_STRVAR(module_doc, "Windows.UI.Xaml.Printing");
|
|
818
1055
|
|
|
819
|
-
static PyModuleDef module_def
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
1056
|
+
static PyModuleDef module_def = {
|
|
1057
|
+
PyModuleDef_HEAD_INIT,
|
|
1058
|
+
"_winrt_windows_ui_xaml_printing",
|
|
1059
|
+
module_doc,
|
|
1060
|
+
0,
|
|
1061
|
+
nullptr,
|
|
1062
|
+
nullptr,
|
|
1063
|
+
nullptr,
|
|
1064
|
+
nullptr,
|
|
1065
|
+
nullptr};
|
|
830
1066
|
} // py::cpp::Windows::UI::Xaml::Printing
|
|
831
1067
|
|
|
832
1068
|
PyMODINIT_FUNC PyInit__winrt_windows_ui_xaml_printing(void) noexcept
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
2.1.0
|
{winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.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.1.0
|
|
2
2
|
|
|
3
|
-
winrt-runtime==2.0
|
|
3
|
+
winrt-runtime==2.1.0
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
# WARNING: Please don't edit this file. It was generated by Python/WinRT v2.1.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.1.0
|
|
4
4
|
Summary: Python projection of Windows Runtime (WinRT) APIs
|
|
5
5
|
License: MIT
|
|
6
6
|
Project-URL: Documentation, https://pywinrt.readthedocs.io
|
|
@@ -12,11 +12,12 @@ Classifier: Programming Language :: Python :: Implementation :: CPython
|
|
|
12
12
|
Classifier: Intended Audience :: Developers
|
|
13
13
|
Requires-Python: <3.13,>=3.9
|
|
14
14
|
Description-Content-Type: text/markdown
|
|
15
|
-
Requires-Dist: winrt-runtime==2.0
|
|
15
|
+
Requires-Dist: winrt-runtime==2.1.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.1.0; extra == "all"
|
|
18
|
+
Requires-Dist: winrt-Windows.Graphics.Printing[all]==2.1.0; extra == "all"
|
|
19
|
+
Requires-Dist: winrt-Windows.UI.Core[all]==2.1.0; extra == "all"
|
|
20
|
+
Requires-Dist: winrt-Windows.UI.Xaml[all]==2.1.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
|
{winrt_windows_ui_xaml_printing-2.0.1 → winrt_windows_ui_xaml_printing-2.1.0}/pyproject.toml
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|