fdo#46808, Adapt sdb::TableDefinition UNO service to new style

The service already existed, it just did not have an IDL file

Change-Id: Iaac84da8baa3a060eef339d8e477f86ca49fae08
This commit is contained in:
Noel Grandin
2013-01-09 17:21:03 +02:00
parent 29f17580a5
commit 614e31aa24
9 changed files with 74 additions and 11 deletions

View File

@@ -91,6 +91,22 @@ OComponentDefinition_Impl::~OComponentDefinition_Impl()
DBG_NAME(OComponentDefinition)
void OComponentDefinition::initialize( const Sequence< Any >& aArguments ) throw(Exception)
{
OUString rName;
if( (aArguments.getLength() == 1) && (aArguments[0] >>= rName) )
{
Sequence< Any > aNewArgs(1);
PropertyValue aValue;
aValue.Name = PROPERTY_NAME;
aValue.Value <<= rName;
aNewArgs[0] <<= aValue;
OContentHelper::initialize(aNewArgs);
}
else
OContentHelper::initialize(aArguments);
}
void OComponentDefinition::registerProperties()
{
m_xColumnPropertyListener = ::comphelper::ImplementationReference<OColumnPropertyListener,XPropertyChangeListener>(new OColumnPropertyListener(this));
@@ -161,7 +177,7 @@ OUString OComponentDefinition::getImplementationName_static( ) throw(RuntimeExc
Sequence< ::rtl::OUString > OComponentDefinition::getSupportedServiceNames_static( ) throw(RuntimeException)
{
Sequence< ::rtl::OUString > aServices(2);
aServices.getArray()[0] = SERVICE_SDB_TABLEDEFINITION;
aServices.getArray()[0] = ::rtl::OUString("com.sun.star.sdb.TableDefinition");
aServices.getArray()[1] = ::rtl::OUString("com.sun.star.ucb.Content");
return aServices;