21#include "com/sun/star/uno/Exception.hpp"
22#include "com/sun/star/uno/Reference.hxx"
23#include "com/sun/star/uno/Sequence.hxx"
24#include "com/sun/star/uno/XComponentContext.hpp"
25#include "com/sun/star/uno/XInterface.hpp"
30#include "rtl/ustring.h"
31#include "rtl/ustring.hxx"
33#include "uno/environment.h"
35#include "test/types/Data.hpp"
36#include "test/types/XServer.hpp"
44 virtual ::test::types::Data SAL_CALL getData() {
45 return ::test::types::Data(rtl::OUString(
"Hello"), 42);
57css::uno::Reference< css::uno::XInterface >
create(
58 css::uno::Reference< css::uno::XComponentContext >
const &)
64 return rtl::OUString(
"test.cpp.cppserver.Component");
68 return css::uno::Sequence< rtl::OUString >();
74 { CppServer::create, CppServer::getImplementationName,
75 CppServer::getSupportedServiceNames, ::cppu::createSingleComponentFactory,
77 { 0, 0, 0, 0, 0, 0 } };
82 void * serviceManager,
void * registryKey)
84 return ::cppu::component_writeInfoHelper(
85 serviceManager, registryKey, entries);
89 char const * implName,
void * serviceManager,
void * registryKey)
91 return ::cppu::component_getFactoryHelper(
92 implName, serviceManager, registryKey, entries);
OWeakObject &SAL_CALL operator=(const OWeakObject &)
SAL_DLLPUBLIC_EXPORT void *SAL_CALL component_getFactory(char const *implName, void *serviceManager, void *registryKey)
SAL_DLLPUBLIC_EXPORT::sal_Bool SAL_CALL component_writeInfo(void *serviceManager, void *registryKey)
css::uno::Sequence< OUString > getSupportedServiceNames()
OUString getImplementationName()
css::uno::Reference< css::deployment::XPackageRegistry > create(css::uno::Reference< css::deployment::XPackageRegistry > const &xRootRegistry, OUString const &context, OUString const &cachePath, css::uno::Reference< css::uno::XComponentContext > const &xComponentContext)