24#include <com/sun/star/frame/Desktop.hpp>
25#include <com/sun/star/frame/TaskCreator.hpp>
26#include <com/sun/star/lang/XSingleServiceFactory.hpp>
27#include <com/sun/star/beans/NamedValue.hpp>
58 css::uno::Reference< css::lang::XSingleServiceFactory > xCreator;
64 catch(
const css::uno::Exception&)
72 xCreator = css::frame::TaskCreator::create(
m_xContext);
74 css::uno::Sequence< css::uno::Any > lArgs
76 css::uno::Any(css::beans::NamedValue(
ARGUMENT_PARENTFRAME, css::uno::Any(css::uno::Reference< css::frame::XFrame >( css::frame::Desktop::create(
m_xContext ), css::uno::UNO_QUERY_THROW)))) ,
83 css::uno::Reference< css::frame::XFrame > xTask(xCreator->createInstanceWithArguments(lArgs), css::uno::UNO_QUERY_THROW);
css::uno::Reference< css::frame::XFrame > createTask(const OUString &sName, const utl::MediaDescriptor &rDescriptor)
css::uno::Reference< css::uno::XComponentContext > m_xContext
TaskCreator(css::uno::Reference< css::uno::XComponentContext > xContext)
css::uno::Reference< css::uno::XComponentContext > m_xContext
constexpr OUStringLiteral IMPLEMENTATIONNAME_FWK_TASKCREATOR
constexpr OUStringLiteral ARGUMENT_PARENTFRAME
[XFrame] if it's set, it will be used as parent frame for the new created frame.
constexpr OUStringLiteral ARGUMENT_FRAMENAME
[OUString] if it's not a special name (beginning with "_" ... which are not allowed here!...
constexpr OUStringLiteral ARGUMENT_CREATETOPWINDOW
[bool] If not "ContainerWindow" property is set it force creation of a top level window as new contai...
constexpr OUStringLiteral ARGUMENT_HIDDENFORCONVERSION
[bool] enable/disable if the frame is explicitly requested to be hidden Default = OFF !
constexpr OUStringLiteral ARGUMENT_MAKEVISIBLE
[bool] If it's set to true we will make the new created frame visible.
constexpr OUStringLiteral ARGUMENT_SUPPORTPERSISTENTWINDOWSTATE
[bool] enable/disable special mode, where this frame will be part of the persistent window state feat...