20#include <com/sun/star/embed/XHatchWindowFactory.hpp>
21#include <com/sun/star/lang/IllegalArgumentException.hpp>
22#include <com/sun/star/lang/XServiceInfo.hpp>
23#include <com/sun/star/uno/XComponentContext.hpp>
34class OHatchWindowFactory :
public ::cppu::WeakImplHelper<
35 embed::XHatchWindowFactory,
39 OHatchWindowFactory() {}
42 virtual uno::Reference< embed::XHatchWindow > SAL_CALL createHatchWindowInstance(
const uno::Reference< awt::XWindowPeer >& xParent,
const awt::Rectangle& aBounds,
const awt::Size& aSize )
override;
50uno::Reference< embed::XHatchWindow > SAL_CALL OHatchWindowFactory::createHatchWindowInstance(
51 const uno::Reference< awt::XWindowPeer >& xParent,
52 const awt::Rectangle& aBounds,
53 const awt::Size& aHandlerSize )
56 throw lang::IllegalArgumentException();
60 pResult->initializeWindow( xParent, aBounds, aHandlerSize );
64OUString SAL_CALL OHatchWindowFactory::getImplementationName()
66 return "com.sun.star.comp.embed.HatchWindowFactory";
69sal_Bool SAL_CALL OHatchWindowFactory::supportsService(
const OUString& ServiceName )
74uno::Sequence< OUString > SAL_CALL OHatchWindowFactory::getSupportedServiceNames()
76 return {
"com.sun.star.embed.HatchWindowFactory",
"com.sun.star.comp.embed.HatchWindowFactory" };
81extern "C" SAL_DLLPUBLIC_EXPORT css::uno::XInterface *
83 css::uno::XComponentContext *,
84 css::uno::Sequence<css::uno::Any>
const &)
86 return cppu::acquire(
new OHatchWindowFactory);
SAL_DLLPUBLIC_EXPORT css::uno::XInterface * com_sun_star_comp_embed_HatchWindowFactory_get_implementation(css::uno::XComponentContext *, css::uno::Sequence< css::uno::Any > const &)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
bool CPPUHELPER_DLLPUBLIC supportsService(css::lang::XServiceInfo *implementation, rtl::OUString const &name)