[Libreoffice-commits] core.git: include/svx svx/source

Caolán McNamara caolanm at redhat.com
Wed Apr 15 08:38:45 PDT 2015


 include/svx/bmpmask.hxx        |   21 ---------------------
 svx/source/dialog/_bmpmask.cxx |   21 ---------------------
 2 files changed, 42 deletions(-)

New commits:
commit ec2f7dfe225104515db87645dfeb1e1924a05d6f
Author: Caolán McNamara <caolanm at redhat.com>
Date:   Wed Apr 15 16:35:59 2015 +0100

    and now SvxBmpMaskSelectItem is unused
    
    Change-Id: I76993ffb0dd347afe4f114431e8c12922d5c6882

diff --git a/include/svx/bmpmask.hxx b/include/svx/bmpmask.hxx
index 752b0b4..8e5b3f1 100644
--- a/include/svx/bmpmask.hxx
+++ b/include/svx/bmpmask.hxx
@@ -31,27 +31,6 @@
 
 /*************************************************************************
 |*
-|*  class SvxBmpMaskSelectItem
-|*
-\************************************************************************/
-class SvxBmpMask;
-
-class SAL_WARN_UNUSED SvxBmpMaskSelectItem : public SfxControllerItem
-{
-private:
-    SvxBmpMask  &rBmpMask;
-
-protected:
-    virtual void StateChanged( sal_uInt16 nSID, SfxItemState eState,
-                               const SfxPoolItem* pState ) SAL_OVERRIDE;
-
-public:
-    SvxBmpMaskSelectItem( sal_uInt16 nId, SvxBmpMask& rMask,
-                          SfxBindings& rBindings );
-};
-
-/*************************************************************************
-|*
 |* Derivative from SfxChildWindow as 'container' for Float
 |*
 \************************************************************************/
diff --git a/svx/source/dialog/_bmpmask.cxx b/svx/source/dialog/_bmpmask.cxx
index c4a2822..f49fd93 100644
--- a/svx/source/dialog/_bmpmask.cxx
+++ b/svx/source/dialog/_bmpmask.cxx
@@ -337,27 +337,6 @@ void ColorWindow::Paint( const Rectangle &/*Rect*/ )
     SetFillColor( rOldFillColor );
 }
 
-SvxBmpMaskSelectItem::SvxBmpMaskSelectItem( sal_uInt16 nId_, SvxBmpMask& rMask,
-                                            SfxBindings& rBindings ) :
-            SfxControllerItem   ( nId_, rBindings ),
-            rBmpMask            ( rMask)
-{
-}
-
-
-
-void SvxBmpMaskSelectItem::StateChanged( sal_uInt16 nSID, SfxItemState /*eState*/,
-                                         const SfxPoolItem* pItem )
-{
-    if ( ( nSID == SID_BMPMASK_EXEC ) && pItem )
-    {
-        const SfxBoolItem* pStateItem = PTR_CAST( SfxBoolItem, pItem );
-        assert(pStateItem); //SfxBoolItem erwartet
-        if (pStateItem)
-            rBmpMask.SetExecState( pStateItem->GetValue() );
-    }
-}
-
 SvxBmpMaskChildWindow::SvxBmpMaskChildWindow(vcl::Window* pParent_, sal_uInt16 nId,
                                              SfxBindings* pBindings,
                                              SfxChildWinInfo* pInfo)


More information about the Libreoffice-commits mailing list