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

Remove dead code

Change-Id: I59fb7843d5c9a6cf2873b6d668d0e9dccff316d2
üst 05c1c60a
...@@ -285,23 +285,6 @@ public: ...@@ -285,23 +285,6 @@ public:
@onerror - @onerror -
*/ */
virtual void SAL_CALL addContainerListener(
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener
) throw( ::com::sun::star::uno::RuntimeException );
/**_______________________________________________________________________________________________________
@short -
@descr -
@seealso -
@param -
@return -
@onerror -
*/
virtual void SAL_CALL removeControl( virtual void SAL_CALL removeControl(
const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& xControl const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XControl >& xControl
) throw( ::com::sun::star::uno::RuntimeException, std::exception ); ) throw( ::com::sun::star::uno::RuntimeException, std::exception );
...@@ -319,23 +302,6 @@ public: ...@@ -319,23 +302,6 @@ public:
@onerror - @onerror -
*/ */
virtual void SAL_CALL removeContainerListener(
const ::com::sun::star::uno::Reference< ::com::sun::star::container::XContainerListener >& xListener
) throw( ::com::sun::star::uno::RuntimeException );
/**_______________________________________________________________________________________________________
@short -
@descr -
@seealso -
@param -
@return -
@onerror -
*/
virtual void SAL_CALL setStatusText( virtual void SAL_CALL setStatusText(
const OUString& sStatusText const OUString& sStatusText
) throw( ::com::sun::star::uno::RuntimeException, std::exception ); ) throw( ::com::sun::star::uno::RuntimeException, std::exception );
...@@ -374,77 +340,6 @@ public: ...@@ -374,77 +340,6 @@ public:
throw( ::com::sun::star::uno::RuntimeException, std::exception ); throw( ::com::sun::star::uno::RuntimeException, std::exception );
// XUnoControlContainer
/**_______________________________________________________________________________________________________
@short -
@descr -
@seealso -
@param -
@return -
@onerror -
*/
virtual void SAL_CALL addTabController(
const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController >& xTabController
) throw( ::com::sun::star::uno::RuntimeException );
/**_______________________________________________________________________________________________________
@short -
@descr -
@seealso -
@param -
@return -
@onerror -
*/
virtual void SAL_CALL removeTabController(
const ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController >& xTabController
) throw( ::com::sun::star::uno::RuntimeException );
/**_______________________________________________________________________________________________________
@short -
@descr -
@seealso -
@param -
@return -
@onerror -
*/
virtual void SAL_CALL setTabControllers(
const ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > >& xTabControllers
) throw( ::com::sun::star::uno::RuntimeException );
/**_______________________________________________________________________________________________________
@short -
@descr -
@seealso -
@param -
@return -
@onerror -
*/
virtual ::com::sun::star::uno::Sequence< ::com::sun::star::uno::Reference< ::com::sun::star::awt::XTabController > > SAL_CALL getTabControllers()
throw( ::com::sun::star::uno::RuntimeException );
// XWindow // XWindow
......
...@@ -298,18 +298,6 @@ void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Re ...@@ -298,18 +298,6 @@ void SAL_CALL BaseContainerControl::addControl ( const OUString& rName, const Re
// XControlContainer // XControlContainer
void SAL_CALL BaseContainerControl::addContainerListener ( const Reference< XContainerListener > & rListener ) throw( RuntimeException )
{
// Ready for multithreading
MutexGuard aGuard ( m_aMutex ) ;
m_aListeners.addInterface ( ::getCppuType((const Reference< XContainerListener >*)0), rListener ) ;
}
// XControlContainer
void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl > & rControl ) throw( RuntimeException, std::exception ) void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl > & rControl ) throw( RuntimeException, std::exception )
{ {
if ( rControl.is() ) if ( rControl.is() )
...@@ -363,18 +351,6 @@ void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl > ...@@ -363,18 +351,6 @@ void SAL_CALL BaseContainerControl::removeControl ( const Reference< XControl >
// XControlContainer // XControlContainer
void SAL_CALL BaseContainerControl::removeContainerListener ( const Reference< XContainerListener > & rListener ) throw( RuntimeException )
{
// Ready for multithreading
MutexGuard aGuard ( m_aMutex ) ;
m_aListeners.removeInterface ( ::getCppuType((const Reference< XContainerListener >*)0), rListener ) ;
}
// XControlContainer
void SAL_CALL BaseContainerControl::setStatusText ( const OUString& rStatusText ) throw( RuntimeException, std::exception ) void SAL_CALL BaseContainerControl::setStatusText ( const OUString& rStatusText ) throw( RuntimeException, std::exception )
{ {
// go down to each parent // go down to each parent
...@@ -440,76 +416,6 @@ Sequence< Reference< XControl > > SAL_CALL BaseContainerControl::getControls () ...@@ -440,76 +416,6 @@ Sequence< Reference< XControl > > SAL_CALL BaseContainerControl::getControls ()
} }
// XUnoControlContainer
void SAL_CALL BaseContainerControl::addTabController ( const Reference< XTabController > & rTabController ) throw( RuntimeException )
{
// Ready for multithreading
MutexGuard aGuard (m_aMutex) ;
sal_uInt32 nOldCount = m_xTabControllerList.getLength () ;
Sequence< Reference< XTabController > > aNewList ( nOldCount + 1 ) ;
sal_uInt32 nCount = 0 ;
// Copy old elements of sequence to new list.
for ( nCount = 0; nCount < nOldCount; ++nCount )
{
aNewList.getArray () [nCount] = m_xTabControllerList.getConstArray () [nCount] ;
}
// Add new controller
aNewList.getArray () [nOldCount] = rTabController ;
// change old and new list
m_xTabControllerList = aNewList ;
}
// XUnoControlContainer
void SAL_CALL BaseContainerControl::removeTabController ( const Reference< XTabController > & rTabController ) throw( RuntimeException )
{
// Ready for multithreading
MutexGuard aGuard (m_aMutex) ;
sal_uInt32 nMaxCount = m_xTabControllerList.getLength () ;
sal_uInt32 nCount = 0 ;
// Search right tabcontroller ...
for ( nCount = 0; nCount < nMaxCount; ++nCount )
{
if ( m_xTabControllerList.getConstArray () [nCount] == rTabController )
{
// ... if is it found ... remove it from list.
m_xTabControllerList.getArray()[ nCount ].clear();
break ;
}
}
}
// XUnoControlContainer
void SAL_CALL BaseContainerControl::setTabControllers ( const Sequence< Reference< XTabController > >& rTabControllers ) throw( RuntimeException )
{
// Ready for multithreading
MutexGuard aGuard (m_aMutex) ;
m_xTabControllerList = rTabControllers ;
}
Sequence<Reference< XTabController > > SAL_CALL BaseContainerControl::getTabControllers () throw( RuntimeException )
{
// Ready for multithreading
MutexGuard aGuard (m_aMutex) ;
return m_xTabControllerList ;
}
// XWindow // XWindow
......
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