unusedcode: SvtSlideSorterBarOptions::*ListenerLink

Change-Id: I7e396b9ed7f3d64c0b085448fdea562e3d740084
This commit is contained in:
Matúš Kukan
2012-09-21 12:46:06 +02:00
parent a481a40961
commit 96afd76fc4
3 changed files with 0 additions and 53 deletions

View File

@@ -34,7 +34,6 @@
is faster and smaller then a complete implementation!
*/
class SvtSlideSorterBarOptions_Impl;
class Link;
/** collect informations about sidebar group
@@ -56,9 +55,6 @@ class SVT_DLLPUBLIC SvtSlideSorterBarOptions: public utl::detail::Options
SvtSlideSorterBarOptions();
virtual ~SvtSlideSorterBarOptions();
void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink );
bool GetVisibleImpressView() const;
void SetVisibleImpressView( bool bVisible );
bool GetVisibleOutlineView() const;

View File

@@ -23,16 +23,9 @@
#include <tools/debug.hxx>
#include <com/sun/star/uno/Any.hxx>
#include <com/sun/star/uno/Sequence.hxx>
#include <tools/link.hxx>
#include <rtl/logfile.hxx>
#include <rtl/instance.hxx>
#include "itemholder2.hxx"
#include <svtools/imgdef.hxx>
#include <vcl/svapp.hxx>
#include <list>
using namespace ::utl;
using namespace ::rtl;
@@ -59,8 +52,6 @@ using namespace ::com::sun::star;
class SvtSlideSorterBarOptions_Impl : public ConfigItem
{
private:
::std::list<Link> aList;
Sequence< OUString > m_seqPropertyNames;
public:
@@ -102,10 +93,6 @@ class SvtSlideSorterBarOptions_Impl : public ConfigItem
bool m_bVisibleSlideSorterView;
bool m_bVisibleDrawView;
void AddListenerLink( const Link& rLink );
void RemoveListenerLink( const Link& rLink );
void CallListeners();
private:
/** return list of key names of our configuration management which represent oue module tree
@@ -268,33 +255,9 @@ void SvtSlideSorterBarOptions_Impl::Load( const Sequence< OUString >& rPropertyN
}
}
void SvtSlideSorterBarOptions_Impl::AddListenerLink( const Link& rLink )
{
aList.push_back( rLink );
}
void SvtSlideSorterBarOptions_Impl::RemoveListenerLink( const Link& rLink )
{
for ( ::std::list<Link>::iterator iter = aList.begin(); iter != aList.end(); ++iter )
{
if ( *iter == rLink )
{
aList.erase(iter);
break;
}
}
}
void SvtSlideSorterBarOptions_Impl::CallListeners()
{
for ( ::std::list<Link>::const_iterator iter = aList.begin(); iter != aList.end(); ++iter )
iter->Call( this );
}
void SvtSlideSorterBarOptions_Impl::Notify( const Sequence< OUString >& rPropertyNames )
{
Load( rPropertyNames );
CallListeners();
}
void SvtSlideSorterBarOptions_Impl::Commit()
@@ -462,14 +425,4 @@ Mutex & SvtSlideSorterBarOptions::GetInitMutex()
return theSvtSlideSorterBarOptionsMutex::get();
}
void SvtSlideSorterBarOptions::AddListenerLink( const Link& rLink )
{
m_pDataContainer->AddListenerLink( rLink );
}
void SvtSlideSorterBarOptions::RemoveListenerLink( const Link& rLink )
{
m_pDataContainer->RemoveListenerLink( rLink );
}
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */

View File

@@ -6,8 +6,6 @@ ScVbaFormat<ooo::vba::excel::XRange>::setNumberFormat(com::sun::star::lang::Loca
ScVbaFormat<ooo::vba::excel::XStyle>::getAddIndent()
ScVbaFormat<ooo::vba::excel::XStyle>::setAddIndent(com::sun::star::uno::Any const&)
ScVbaFormat<ooo::vba::excel::XStyle>::setNumberFormat(com::sun::star::lang::Locale, rtl::OUString const&)
SvtSlideSorterBarOptions::AddListenerLink(Link const&)
SvtSlideSorterBarOptions::RemoveListenerLink(Link const&)
SvtUserOptions::SetCompany(rtl::OUString const&)
SvtUserOptions::SetCountry(rtl::OUString const&)
SvtUserOptions::SetFax(rtl::OUString const&)