21#include <com/sun/star/beans/NamedValue.hpp>
30#include <Cocoa/Cocoa.h>
40 if (pWindow->GetType() != WindowType::WORKWINDOW)
42 css::uno::RuntimeException aException;
43 aException.Message =
"not a work window";
54 css::uno::Sequence<css::beans::NamedValue> aProps;
55 if (rHandle >>= aProps)
57 for (
const css::beans::NamedValue& rProp : std::as_const(aProps))
59 if (rProp.Name ==
"WINDOW")
61 else if (rProp.Name ==
"XEMBED")
62 rProp.Value >>= bXEmbed;
70 css::uno::RuntimeException aException;
71 aException.Message =
"incorrect window handle type";
78 aSysParentData.hWnd =
reinterpret_cast<HWND
>(
nHandle);
80 aSysParentData.pView =
reinterpret_cast<NSView*
>(
nHandle);
91 static_cast<WorkWindow*
>(pWindow.
get())->SetPluginParent(&aSysParentData);
vcl::Window * GetWindow() const
void SetSystemParent_Impl(const css::uno::Any &rHandle)
helper method to set a window handle into a SystemParentData struct
reference_type * get() const