Kaydet (Commit) 2dde51e1 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

Remove odd service names (that duplicate type names)

Looks like no code instantiated these via those odd service names (except for
ProgressMonitor/StatusIndicator instantiating ProgressBar via odd
"com.sun.star.awt.XProgressBar" service name until that got cleaned up in the
previous commit).

Also looks like no code instantiates them via their implementation names either
(in which case ProgressBar/ProgressMonitor/StatusIndicator would be dead code),
but maybe there is code that dynamically constructs those implemenation names
and calls creeateInstance on them?  So best leave the implementations in for
now...

Change-Id: I20b92345e343b1f776387f63d9b02a5b0a47fe21
üst f8db395a
......@@ -339,9 +339,7 @@ Reference< XControlModel > SAL_CALL ProgressBar::getModel() throw( RuntimeExcept
const Sequence< OUString > ProgressBar::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames( 1 );
seqServiceNames[0] = "com.sun.star.awt.XProgressBar";
return seqServiceNames ;
return css::uno::Sequence<OUString>();
}
//____________________________________________________________________________________________________________
......
......@@ -628,9 +628,7 @@ void SAL_CALL ProgressMonitor::setPosSize ( sal_Int32 nX, sal_Int32 nY, sal_Int3
const Sequence< OUString > ProgressMonitor::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames( 1 );
seqServiceNames[0] = "com.sun.star.awt.XProgressMonitor";
return seqServiceNames ;
return css::uno::Sequence<OUString>();
}
//____________________________________________________________________________________________________________
......
......@@ -400,9 +400,7 @@ void SAL_CALL StatusIndicator::setPosSize (
const Sequence< OUString > StatusIndicator::impl_getStaticSupportedServiceNames()
{
Sequence< OUString > seqServiceNames( 1 );
seqServiceNames[0] = "com.sun.star.task.XStatusIndicator";
return seqServiceNames ;
return css::uno::Sequence<OUString>();
}
//____________________________________________________________________________________________________________
......
......@@ -22,13 +22,7 @@
<implementation name="stardiv.UnoControls.FrameControl">
<service name="com.sun.star.frame.FrameControl"/>
</implementation>
<implementation name="stardiv.UnoControls.ProgressBar">
<service name="com.sun.star.awt.XProgressBar"/>
</implementation>
<implementation name="stardiv.UnoControls.ProgressMonitor">
<service name="com.sun.star.awt.XProgressMonitor"/>
</implementation>
<implementation name="stardiv.UnoControls.StatusIndicator">
<service name="com.sun.star.task.XStatusIndicator"/>
</implementation>
<implementation name="stardiv.UnoControls.ProgressBar"/>
<implementation name="stardiv.UnoControls.ProgressMonitor"/>
<implementation name="stardiv.UnoControls.StatusIndicator"/>
</component>
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