Kaydet (Commit) 15fd3644 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Un-inline use of szServiceName2_UnoControlEdit

...as it is not marked SAL_DLLPUBLIC_EXPORT unlike the class it is used in
so at least Clang would complain.

Change-Id: I59886caead24bca4cd4c0e47edb0eaac349eb213
üst 4dd7c036
......@@ -183,7 +183,8 @@ public:
void SAL_CALL getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) throw(::com::sun::star::uno::RuntimeException);
// XServiceInfo
DECLIMPL_SERVICEINFO_DERIVED( UnoEditControl, UnoControlBase, szServiceName2_UnoControlEdit )
::rtl::OUString SAL_CALL getImplementationName( ) throw(::com::sun::star::uno::RuntimeException);
::com::sun::star::uno::Sequence< ::rtl::OUString > SAL_CALL getSupportedServiceNames() throw(::com::sun::star::uno::RuntimeException);
sal_Bool SAL_CALL setModel(const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControlModel >& Model) throw ( ::com::sun::star::uno::RuntimeException );
};
......
......@@ -484,6 +484,18 @@ void UnoEditControl::getColumnsAndLines( sal_Int16& nCols, sal_Int16& nLines ) t
Impl_getColumnsAndLines( nCols, nLines );
}
::rtl::OUString UnoEditControl::getImplementationName( ) throw(uno::RuntimeException)
{
return ::rtl::OUString( "stardiv.Toolkit.UnoEditControl" );
}
uno::Sequence< ::rtl::OUString > UnoEditControl::getSupportedServiceNames() throw(uno::RuntimeException)
{
uno::Sequence< ::rtl::OUString > aNames = UnoControlBase::getSupportedServiceNames( );
aNames.realloc( aNames.getLength() + 1 );
aNames[ aNames.getLength() - 1 ] = ::rtl::OUString::createFromAscii( szServiceName2_UnoControlEdit );
return aNames;
}
// ----------------------------------------------------
// class UnoControlFileControlModel
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment