summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2018-09-28 09:58:59 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2018-09-28 13:31:49 +0200
commit2fbb97367ac93eb11429382f31fa6417eec76f8d (patch)
tree91b03fca5308c5fbe19bb309192bb75591e1f810 /sfx2
parentd664a01f3be81572526d1136c261d86c12f5af90 (diff)
loplugin:unusedmethods
Change-Id: I5f9ef043d76c55f2c761fd08a2bc1dae66b675c8 Reviewed-on: https://gerrit.libreoffice.org/61073 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/dialog/itemconnect.cxx112
1 files changed, 0 insertions, 112 deletions
diff --git a/sfx2/source/dialog/itemconnect.cxx b/sfx2/source/dialog/itemconnect.cxx
index a3b9700db4b1..3b40dc46d82d 100644
--- a/sfx2/source/dialog/itemconnect.cxx
+++ b/sfx2/source/dialog/itemconnect.cxx
@@ -83,15 +83,6 @@ DummyWindowWrapper::DummyWindowWrapper( vcl::Window& rWindow ) :
{
}
-bool DummyWindowWrapper::IsControlDontKnow() const
-{
- return false;
-}
-
-void DummyWindowWrapper::SetControlDontKnow( bool )
-{
-}
-
void* DummyWindowWrapper::GetControlValue() const
{
return nullptr;
@@ -134,109 +125,6 @@ TriState ItemConnectionBase::GetShowState( bool bKnown ) const
}
-// Standard connections
-
-
-DummyItemConnection::DummyItemConnection( sal_uInt16 nSlot, vcl::Window& rWindow, ItemConnFlags nFlags ) :
- ItemConnectionBase( nFlags ),
- DummyWindowWrapper( rWindow ),
- mnSlot( nSlot )
-{
-}
-
-void DummyItemConnection::ApplyFlags( const SfxItemSet* pItemSet )
-{
- bool bKnown = ItemWrapperHelper::IsKnownItem( *pItemSet, mnSlot );
- ModifyControl( GetShowState( bKnown ) );
-}
-
-void DummyItemConnection::Reset( const SfxItemSet* )
-{
-}
-
-bool DummyItemConnection::FillItemSet( SfxItemSet& /*rDestSet*/, const SfxItemSet& /*rOldSet*/ )
-{
- return false; // item set not changed
-}
-
-
-// Array of connections
-
-
-class ItemConnectionArrayImpl
-{
-public:
- void Append( ItemConnectionBase* pConnection );
-
- void ApplyFlags( const SfxItemSet* pItemSet );
- void Reset( const SfxItemSet* pItemSet );
- bool FillItemSet( SfxItemSet& rDestSet, const SfxItemSet& rOldSet );
-
-private:
- typedef std::shared_ptr< ItemConnectionBase > ItemConnectionRef;
- typedef std::vector< ItemConnectionRef > ItemConnectionVector;
-
- ItemConnectionVector maVector;
-};
-
-void ItemConnectionArrayImpl::Append( ItemConnectionBase* pConnection )
-{
- if( pConnection )
- maVector.push_back( ItemConnectionRef( pConnection ) );
-}
-
-void ItemConnectionArrayImpl::ApplyFlags( const SfxItemSet* pItemSet )
-{
- for (auto const& itemConnection : maVector)
- itemConnection->DoApplyFlags( pItemSet );
-}
-
-void ItemConnectionArrayImpl::Reset( const SfxItemSet* pItemSet )
-{
- for (auto const& itemConnection : maVector)
- itemConnection->DoReset( pItemSet );
-}
-
-bool ItemConnectionArrayImpl::FillItemSet( SfxItemSet& rDestSet, const SfxItemSet& rOldSet )
-{
- bool bChanged = false;
- for (auto const& itemConnection : maVector)
- bChanged |= itemConnection->DoFillItemSet( rDestSet, rOldSet );
- return bChanged;
-}
-
-
-ItemConnectionArray::ItemConnectionArray() :
- ItemConnectionBase(ItemConnFlags::NONE),
- mxImpl( new ItemConnectionArrayImpl )
-{
-}
-
-ItemConnectionArray::~ItemConnectionArray()
-{
-}
-
-void ItemConnectionArray::AddConnection( ItemConnectionBase* pConnection )
-{
- mxImpl->Append( pConnection );
-}
-
-void ItemConnectionArray::ApplyFlags( const SfxItemSet* pItemSet )
-{
- mxImpl->ApplyFlags( pItemSet );
-}
-
-void ItemConnectionArray::Reset( const SfxItemSet* pItemSet )
-{
- mxImpl->Reset( pItemSet );
-}
-
-bool ItemConnectionArray::FillItemSet( SfxItemSet& rDestSet, const SfxItemSet& rOldSet )
-{
- return mxImpl->FillItemSet( rDestSet, rOldSet );
-}
-
-
} // namespace sfx
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */