mirror of
https://github.com/kidfromjupiter/nearby.git
synced 2026-09-15 15:16:12 -04:00
2622 lines
156 KiB
C++
2622 lines
156 KiB
C++
// WARNING: Please don't edit this file. It was generated by C++/WinRT v2.0.250303.1
|
|
|
|
#pragma once
|
|
#ifndef WINRT_Windows_Graphics_Printing_OptionDetails_H
|
|
#define WINRT_Windows_Graphics_Printing_OptionDetails_H
|
|
#include "winrt/base.h"
|
|
static_assert(winrt::check_version(CPPWINRT_VERSION, "2.0.250303.1"), "Mismatched C++/WinRT headers.");
|
|
#define CPPWINRT_VERSION "2.0.250303.1"
|
|
#include "winrt/Windows.Graphics.Printing.h"
|
|
#include "winrt/impl/Windows.Foundation.2.h"
|
|
#include "winrt/impl/Windows.Foundation.Collections.2.h"
|
|
#include "winrt/impl/Windows.Graphics.Printing.2.h"
|
|
#include "winrt/impl/Windows.Storage.Streams.2.h"
|
|
#include "winrt/impl/Windows.Graphics.Printing.OptionDetails.2.h"
|
|
namespace winrt::impl
|
|
{
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBindingOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBindingOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBindingOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBindingOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBorderingOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBorderingOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBorderingOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintBorderingOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCollationOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCollationOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCollationOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCollationOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintColorModeOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintColorModeOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintColorModeOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintColorModeOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCopiesOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCopiesOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCopiesOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCopiesOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemDetails<D>::ItemId() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ItemId(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_ItemId(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemDetails<D>::ItemDisplayName(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_ItemDisplayName(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_ItemDisplayName(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemDetails<D>::ItemDisplayName() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ItemDisplayName(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_ItemDisplayName(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemListOptionDetails<D>::AddItem(param::hstring const& itemId, param::hstring const& displayName) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->AddItem(*(void**)(&itemId), *(void**)(&displayName)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->AddItem(*(void**)(&itemId), *(void**)(&displayName)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemListOptionDetails2<D>::AddItem(param::hstring const& itemId, param::hstring const& displayName, param::hstring const& description, winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType const& icon) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails2>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->AddItem(*(void**)(&itemId), *(void**)(&displayName), *(void**)(&description), *(void**)(&icon)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails2>**)this;
|
|
check_hresult(_winrt_abi_type->AddItem(*(void**)(&itemId), *(void**)(&displayName), *(void**)(&description), *(void**)(&icon)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemListOptionDetails3<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemListOptionDetails3<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemListOptionDetails3<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomItemListOptionDetails3<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomOptionDetails<D>::DisplayName(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_DisplayName(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomOptionDetails<D>::DisplayName() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_DisplayName(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_DisplayName(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomTextOptionDetails<D>::MaxCharacters(uint32_t value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_MaxCharacters(value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_MaxCharacters(value));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomTextOptionDetails<D>::MaxCharacters() const
|
|
{
|
|
uint32_t value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_MaxCharacters(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_MaxCharacters(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomTextOptionDetails2<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomTextOptionDetails2<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomTextOptionDetails2<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomTextOptionDetails2<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomToggleOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomToggleOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomToggleOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintCustomToggleOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintDuplexOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintDuplexOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintDuplexOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintDuplexOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintHolePunchOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintHolePunchOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintHolePunchOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintHolePunchOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintItemListOptionDetails<D>::Items() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintItemListOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintItemListOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintItemListOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Items(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintItemListOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Items(&value));
|
|
}
|
|
return winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Foundation::IInspectable>{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaSizeOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaSizeOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaSizeOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaSizeOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaTypeOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaTypeOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaTypeOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintMediaTypeOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintNumberOptionDetails<D>::MinValue() const
|
|
{
|
|
uint32_t value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_MinValue(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_MinValue(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintNumberOptionDetails<D>::MaxValue() const
|
|
{
|
|
uint32_t value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_MaxValue(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_MaxValue(&value));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::OptionId() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_OptionId(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_OptionId(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::OptionType() const
|
|
{
|
|
winrt::Windows::Graphics::Printing::OptionDetails::PrintOptionType value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_OptionType(reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_OptionType(reinterpret_cast<int32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::ErrorText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_ErrorText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_ErrorText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::ErrorText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_ErrorText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_ErrorText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::State(winrt::Windows::Graphics::Printing::OptionDetails::PrintOptionStates const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_State(static_cast<uint32_t>(value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_State(static_cast<uint32_t>(value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::State() const
|
|
{
|
|
winrt::Windows::Graphics::Printing::OptionDetails::PrintOptionStates value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_State(reinterpret_cast<uint32_t*>(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_State(reinterpret_cast<uint32_t*>(&value)));
|
|
}
|
|
return value;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::Value() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Value(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Value(&value));
|
|
}
|
|
return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOptionDetails<D>::TrySetValue(winrt::Windows::Foundation::IInspectable const& value) const
|
|
{
|
|
bool succeeded{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->TrySetValue(*(void**)(&value), &succeeded));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->TrySetValue(*(void**)(&value), &succeeded));
|
|
}
|
|
return succeeded;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOrientationOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOrientationOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOrientationOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintOrientationOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintPageRangeOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintPageRangeOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintPageRangeOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintPageRangeOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintQualityOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintQualityOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintQualityOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintQualityOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintStapleOptionDetails<D>::WarningText(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_WarningText(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintStapleOptionDetails<D>::WarningText() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_WarningText(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintStapleOptionDetails<D>::Description(param::hstring const& value) const
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->put_Description(*(void**)(&value)));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintStapleOptionDetails<D>::Description() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Description(&value));
|
|
}
|
|
return hstring{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionChangedEventArgs<D>::OptionId() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionChangedEventArgs>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionChangedEventArgs, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionChangedEventArgs>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_OptionId(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionChangedEventArgs>**)this;
|
|
check_hresult(_winrt_abi_type->get_OptionId(&value));
|
|
}
|
|
return winrt::Windows::Foundation::IInspectable{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::Options() const
|
|
{
|
|
void* value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_Options(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_Options(&value));
|
|
}
|
|
return winrt::Windows::Foundation::Collections::IMapView<hstring, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>{ value, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::CreateItemListOption(param::hstring const& optionId, param::hstring const& displayName) const
|
|
{
|
|
void* itemListOption{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->CreateItemListOption(*(void**)(&optionId), *(void**)(&displayName), &itemListOption));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->CreateItemListOption(*(void**)(&optionId), *(void**)(&displayName), &itemListOption));
|
|
}
|
|
return winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomItemListOptionDetails{ itemListOption, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::CreateTextOption(param::hstring const& optionId, param::hstring const& displayName) const
|
|
{
|
|
void* textOption{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->CreateTextOption(*(void**)(&optionId), *(void**)(&displayName), &textOption));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->CreateTextOption(*(void**)(&optionId), *(void**)(&displayName), &textOption));
|
|
}
|
|
return winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomTextOptionDetails{ textOption, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::OptionChanged(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails, winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionChangedEventArgs> const& eventHandler) const
|
|
{
|
|
winrt::event_token eventCookie{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->add_OptionChanged(*(void**)(&eventHandler), put_abi(eventCookie)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->add_OptionChanged(*(void**)(&eventHandler), put_abi(eventCookie)));
|
|
}
|
|
return eventCookie;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::OptionChanged(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails, winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionChangedEventArgs> const& eventHandler) const
|
|
{
|
|
return impl::make_event_revoker<D, OptionChanged_revoker>(this, OptionChanged(eventHandler));
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::OptionChanged(winrt::event_token const& eventCookie) const noexcept
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)&_winrt_casted_result;
|
|
_winrt_abi_type->remove_OptionChanged(impl::bind_in(eventCookie));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)this;
|
|
_winrt_abi_type->remove_OptionChanged(impl::bind_in(eventCookie));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::BeginValidation(winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails, winrt::Windows::Foundation::IInspectable> const& eventHandler) const
|
|
{
|
|
winrt::event_token eventCookie{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->add_BeginValidation(*(void**)(&eventHandler), put_abi(eventCookie)));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->add_BeginValidation(*(void**)(&eventHandler), put_abi(eventCookie)));
|
|
}
|
|
return eventCookie;
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::BeginValidation(auto_revoke_t, winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails, winrt::Windows::Foundation::IInspectable> const& eventHandler) const
|
|
{
|
|
return impl::make_event_revoker<D, BeginValidation_revoker>(this, BeginValidation(eventHandler));
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails<D>::BeginValidation(winrt::event_token const& eventCookie) const noexcept
|
|
{
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)&_winrt_casted_result;
|
|
_winrt_abi_type->remove_BeginValidation(impl::bind_in(eventCookie));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>**)this;
|
|
_winrt_abi_type->remove_BeginValidation(impl::bind_in(eventCookie));
|
|
}
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetails2<D>::CreateToggleOption(param::hstring const& optionId, param::hstring const& displayName) const
|
|
{
|
|
void* toggleOption{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails2>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails2, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails2>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->CreateToggleOption(*(void**)(&optionId), *(void**)(&displayName), &toggleOption));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails2>**)this;
|
|
check_hresult(_winrt_abi_type->CreateToggleOption(*(void**)(&optionId), *(void**)(&displayName), &toggleOption));
|
|
}
|
|
return winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomToggleOptionDetails{ toggleOption, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTaskOptionDetailsStatic<D>::GetFromPrintTaskOptions(winrt::Windows::Graphics::Printing::PrintTaskOptions const& printTaskOptions) const
|
|
{
|
|
void* printTaskOptionDetails{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetailsStatic>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetailsStatic, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetailsStatic>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->GetFromPrintTaskOptions(*(void**)(&printTaskOptions), &printTaskOptionDetails));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetailsStatic>**)this;
|
|
check_hresult(_winrt_abi_type->GetFromPrintTaskOptions(*(void**)(&printTaskOptions), &printTaskOptionDetails));
|
|
}
|
|
return winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails{ printTaskOptionDetails, take_ownership_from_abi };
|
|
}
|
|
template <typename D> auto consume_Windows_Graphics_Printing_OptionDetails_IPrintTextOptionDetails<D>::MaxCharacters() const
|
|
{
|
|
uint32_t value{};
|
|
if constexpr (!std::is_same_v<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTextOptionDetails>)
|
|
{
|
|
winrt::hresult _winrt_cast_result_code;
|
|
auto const _winrt_casted_result = impl::try_as_with_reason<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTextOptionDetails, D const*>(static_cast<D const*>(this), _winrt_cast_result_code);
|
|
check_hresult(_winrt_cast_result_code);
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTextOptionDetails>**)&_winrt_casted_result;
|
|
check_hresult(_winrt_abi_type->get_MaxCharacters(&value));
|
|
}
|
|
else
|
|
{
|
|
auto const _winrt_abi_type = *(abi_t<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTextOptionDetails>**)this;
|
|
check_hresult(_winrt_abi_type->get_MaxCharacters(&value));
|
|
}
|
|
return value;
|
|
}
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails>
|
|
{
|
|
int32_t __stdcall get_ItemId(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().ItemId());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_ItemDisplayName(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().ItemDisplayName(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_ItemDisplayName(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().ItemDisplayName());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails>
|
|
{
|
|
int32_t __stdcall AddItem(void* itemId, void* displayName) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().AddItem(*reinterpret_cast<hstring const*>(&itemId), *reinterpret_cast<hstring const*>(&displayName));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails2> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails2>
|
|
{
|
|
int32_t __stdcall AddItem(void* itemId, void* displayName, void* description, void* icon) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().AddItem(*reinterpret_cast<hstring const*>(&itemId), *reinterpret_cast<hstring const*>(&displayName), *reinterpret_cast<hstring const*>(&description), *reinterpret_cast<winrt::Windows::Storage::Streams::IRandomAccessStreamWithContentType const*>(&icon));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails>
|
|
{
|
|
int32_t __stdcall put_DisplayName(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().DisplayName(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_DisplayName(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().DisplayName());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails>
|
|
{
|
|
int32_t __stdcall put_MaxCharacters(uint32_t value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().MaxCharacters(value);
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_MaxCharacters(uint32_t* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<uint32_t>(this->shim().MaxCharacters());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintItemListOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintItemListOptionDetails>
|
|
{
|
|
int32_t __stdcall get_Items(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Foundation::Collections::IVectorView<winrt::Windows::Foundation::IInspectable>>(this->shim().Items());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails>
|
|
{
|
|
int32_t __stdcall get_MinValue(uint32_t* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<uint32_t>(this->shim().MinValue());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_MaxValue(uint32_t* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<uint32_t>(this->shim().MaxValue());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>
|
|
{
|
|
int32_t __stdcall get_OptionId(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().OptionId());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_OptionType(int32_t* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Graphics::Printing::OptionDetails::PrintOptionType>(this->shim().OptionType());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_ErrorText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().ErrorText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_ErrorText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().ErrorText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_State(uint32_t value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().State(*reinterpret_cast<winrt::Windows::Graphics::Printing::OptionDetails::PrintOptionStates const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_State(uint32_t* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Graphics::Printing::OptionDetails::PrintOptionStates>(this->shim().State());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Value(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Foundation::IInspectable>(this->shim().Value());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall TrySetValue(void* value, bool* succeeded) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
*succeeded = detach_from<bool>(this->shim().TrySetValue(*reinterpret_cast<winrt::Windows::Foundation::IInspectable const*>(&value)));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails>
|
|
{
|
|
int32_t __stdcall put_WarningText(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().WarningText(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_WarningText(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().WarningText());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall put_Description(void* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().Description(*reinterpret_cast<hstring const*>(&value));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall get_Description(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<hstring>(this->shim().Description());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionChangedEventArgs> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionChangedEventArgs>
|
|
{
|
|
int32_t __stdcall get_OptionId(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Foundation::IInspectable>(this->shim().OptionId());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails>
|
|
{
|
|
int32_t __stdcall get_Options(void** value) noexcept final try
|
|
{
|
|
clear_abi(value);
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<winrt::Windows::Foundation::Collections::IMapView<hstring, winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails>>(this->shim().Options());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall CreateItemListOption(void* optionId, void* displayName, void** itemListOption) noexcept final try
|
|
{
|
|
clear_abi(itemListOption);
|
|
typename D::abi_guard guard(this->shim());
|
|
*itemListOption = detach_from<winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomItemListOptionDetails>(this->shim().CreateItemListOption(*reinterpret_cast<hstring const*>(&optionId), *reinterpret_cast<hstring const*>(&displayName)));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall CreateTextOption(void* optionId, void* displayName, void** textOption) noexcept final try
|
|
{
|
|
clear_abi(textOption);
|
|
typename D::abi_guard guard(this->shim());
|
|
*textOption = detach_from<winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomTextOptionDetails>(this->shim().CreateTextOption(*reinterpret_cast<hstring const*>(&optionId), *reinterpret_cast<hstring const*>(&displayName)));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall add_OptionChanged(void* eventHandler, winrt::event_token* eventCookie) noexcept final try
|
|
{
|
|
zero_abi<winrt::event_token>(eventCookie);
|
|
typename D::abi_guard guard(this->shim());
|
|
*eventCookie = detach_from<winrt::event_token>(this->shim().OptionChanged(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails, winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionChangedEventArgs> const*>(&eventHandler)));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall remove_OptionChanged(winrt::event_token eventCookie) noexcept final
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().OptionChanged(*reinterpret_cast<winrt::event_token const*>(&eventCookie));
|
|
return 0;
|
|
}
|
|
int32_t __stdcall add_BeginValidation(void* eventHandler, winrt::event_token* eventCookie) noexcept final try
|
|
{
|
|
zero_abi<winrt::event_token>(eventCookie);
|
|
typename D::abi_guard guard(this->shim());
|
|
*eventCookie = detach_from<winrt::event_token>(this->shim().BeginValidation(*reinterpret_cast<winrt::Windows::Foundation::TypedEventHandler<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails, winrt::Windows::Foundation::IInspectable> const*>(&eventHandler)));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
int32_t __stdcall remove_BeginValidation(winrt::event_token eventCookie) noexcept final
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
this->shim().BeginValidation(*reinterpret_cast<winrt::event_token const*>(&eventCookie));
|
|
return 0;
|
|
}
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails2> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails2>
|
|
{
|
|
int32_t __stdcall CreateToggleOption(void* optionId, void* displayName, void** toggleOption) noexcept final try
|
|
{
|
|
clear_abi(toggleOption);
|
|
typename D::abi_guard guard(this->shim());
|
|
*toggleOption = detach_from<winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomToggleOptionDetails>(this->shim().CreateToggleOption(*reinterpret_cast<hstring const*>(&optionId), *reinterpret_cast<hstring const*>(&displayName)));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetailsStatic> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetailsStatic>
|
|
{
|
|
int32_t __stdcall GetFromPrintTaskOptions(void* printTaskOptions, void** printTaskOptionDetails) noexcept final try
|
|
{
|
|
clear_abi(printTaskOptionDetails);
|
|
typename D::abi_guard guard(this->shim());
|
|
*printTaskOptionDetails = detach_from<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails>(this->shim().GetFromPrintTaskOptions(*reinterpret_cast<winrt::Windows::Graphics::Printing::PrintTaskOptions const*>(&printTaskOptions)));
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
#endif
|
|
template <typename D>
|
|
struct produce<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTextOptionDetails> : produce_base<D, winrt::Windows::Graphics::Printing::OptionDetails::IPrintTextOptionDetails>
|
|
{
|
|
int32_t __stdcall get_MaxCharacters(uint32_t* value) noexcept final try
|
|
{
|
|
typename D::abi_guard guard(this->shim());
|
|
*value = detach_from<uint32_t>(this->shim().MaxCharacters());
|
|
return 0;
|
|
}
|
|
catch (...) { return to_hresult(); }
|
|
};
|
|
}
|
|
WINRT_EXPORT namespace winrt::Windows::Graphics::Printing::OptionDetails
|
|
{
|
|
constexpr auto operator|(PrintOptionStates const left, PrintOptionStates const right) noexcept
|
|
{
|
|
return static_cast<PrintOptionStates>(impl::to_underlying_type(left) | impl::to_underlying_type(right));
|
|
}
|
|
constexpr auto operator|=(PrintOptionStates& left, PrintOptionStates const right) noexcept
|
|
{
|
|
left = left | right;
|
|
return left;
|
|
}
|
|
constexpr auto operator&(PrintOptionStates const left, PrintOptionStates const right) noexcept
|
|
{
|
|
return static_cast<PrintOptionStates>(impl::to_underlying_type(left) & impl::to_underlying_type(right));
|
|
}
|
|
constexpr auto operator&=(PrintOptionStates& left, PrintOptionStates const right) noexcept
|
|
{
|
|
left = left & right;
|
|
return left;
|
|
}
|
|
constexpr auto operator~(PrintOptionStates const value) noexcept
|
|
{
|
|
return static_cast<PrintOptionStates>(~impl::to_underlying_type(value));
|
|
}
|
|
constexpr auto operator^(PrintOptionStates const left, PrintOptionStates const right) noexcept
|
|
{
|
|
return static_cast<PrintOptionStates>(impl::to_underlying_type(left) ^ impl::to_underlying_type(right));
|
|
}
|
|
constexpr auto operator^=(PrintOptionStates& left, PrintOptionStates const right) noexcept
|
|
{
|
|
left = left ^ right;
|
|
return left;
|
|
}
|
|
inline auto PrintTaskOptionDetails::GetFromPrintTaskOptions(winrt::Windows::Graphics::Printing::PrintTaskOptions const& printTaskOptions)
|
|
{
|
|
return impl::call_factory<PrintTaskOptionDetails, IPrintTaskOptionDetailsStatic>([&](IPrintTaskOptionDetailsStatic const& f) { return f.GetFromPrintTaskOptions(printTaskOptions); });
|
|
}
|
|
}
|
|
namespace std
|
|
{
|
|
#ifndef WINRT_LEAN_AND_MEAN
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBindingOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintBorderingOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCollationOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintColorModeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCopiesOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails2> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomItemListOptionDetails3> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomTextOptionDetails2> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintCustomToggleOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintDuplexOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintHolePunchOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintItemListOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaSizeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintMediaTypeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintNumberOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintOrientationOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintPageRangeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintQualityOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintStapleOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionChangedEventArgs> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetails2> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTaskOptionDetailsStatic> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::IPrintTextOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintBindingOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintBorderingOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintCollationOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintColorModeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintCopiesOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomItemDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomItemListOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomTextOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintCustomToggleOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintDuplexOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintHolePunchOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintMediaSizeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintMediaTypeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintOrientationOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintPageRangeOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintQualityOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintStapleOptionDetails> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionChangedEventArgs> : winrt::impl::hash_base {};
|
|
template<> struct hash<winrt::Windows::Graphics::Printing::OptionDetails::PrintTaskOptionDetails> : winrt::impl::hash_base {};
|
|
#endif
|
|
#ifdef __cpp_lib_format
|
|
#endif
|
|
}
|
|
#endif
|