diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-17 13:23:23 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2016-10-18 06:15:55 +0000 |
commit | 292560a957498bed70b625c992ec6bcf631dceb3 (patch) | |
tree | 4b4c39fbabf370d870ac9a5b2c6154df2238599a /cui | |
parent | e64ea98801d20e5024da900a0ac8faaf565f4bf3 (diff) |
loplugin:unusedmethods
Change-Id: Icf773925c37dde8b7404edac9864e7b10fe113b4
Reviewed-on: https://gerrit.libreoffice.org/29968
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/inc/cuitabarea.hxx | 18 | ||||
-rw-r--r-- | cui/source/tabpages/tpcolor.cxx | 40 | ||||
-rw-r--r-- | cui/source/tabpages/tpgradnt.cxx | 62 |
3 files changed, 0 insertions, 120 deletions
diff --git a/cui/source/inc/cuitabarea.hxx b/cui/source/inc/cuitabarea.hxx index 21a8fb3b373a..52d4fce87273 100644 --- a/cui/source/inc/cuitabarea.hxx +++ b/cui/source/inc/cuitabarea.hxx @@ -82,11 +82,6 @@ class ButtonBox if(nPos != -1) SelectButtonImpl(nPos); } - void clear() - { - mnCurrentButton = NO_BUTTON_SELECTED; - maButtonList.clear(); - }; }; enum class PageType @@ -146,14 +141,6 @@ public: void SetNewColorList( XColorListRef const & pColorList ) { mpNewColorList = pColorList; } const XColorListRef& GetNewColorList() const { return mpNewColorList; } - - const XGradientListRef& GetNewGradientList() const - { return mpNewGradientList; } - - const XHatchListRef& GetNewHatchingList() const - { return mpNewHatchingList; } - - const XBitmapListRef& GetNewBitmapList() const { return mpNewBitmapList; } }; /************************************************************************/ @@ -430,7 +417,6 @@ private: DECL_LINK( ChangeAutoStepHdl_Impl, CheckBox&, void ); DECL_LINK( ModifiedSliderHdl_Impl, Slider*, void ); void ModifiedHdl_Impl(void*); - long CheckChanges_Impl(); void SetControlState_Impl( css::awt::GradientStyle eXGS ); sal_Int32 SearchGradientList(const OUString& rGradientName); @@ -605,7 +591,6 @@ public: void Construct(); static VclPtr<SfxTabPage> Create( vcl::Window*, const SfxItemSet* ); - static const sal_uInt16* GetRanges() { return pBitmapRanges; } virtual bool FillItemSet( SfxItemSet* ) override; virtual void Reset( const SfxItemSet * ) override; @@ -661,7 +646,6 @@ private: DECL_LINK( ClickRenameHdl_Impl, SvxPresetListBox*, void ); DECL_LINK( ClickDeleteHdl_Impl, SvxPresetListBox*, void ); - long CheckChanges_Impl(); sal_Int32 SearchPatternList(const OUString& rPatternName); public: @@ -802,8 +786,6 @@ public: void SetPropertyList( XPropertyListType t, const XPropertyListRef &xRef ); void SetPos( sal_Int32* pInPos ) { pPos = pInPos; } void SetColorList( const XColorListRef& pColList ); - void SaveToViewFrame( SfxViewFrame *pViewFrame ); - void SetupForViewFrame( SfxViewFrame *pViewFrame ); void SetColorChgd( ChangeType* pIn ) { pnColorListState = pIn; } diff --git a/cui/source/tabpages/tpcolor.cxx b/cui/source/tabpages/tpcolor.cxx index 9f06f9c56545..aa16ce6b11ba 100644 --- a/cui/source/tabpages/tpcolor.cxx +++ b/cui/source/tabpages/tpcolor.cxx @@ -760,46 +760,6 @@ void SvxColorTabPage::FillUserData() } -void SvxColorTabPage::SetupForViewFrame( SfxViewFrame *pViewFrame ) -{ - const OfaRefItem<XColorList> *pPtr = nullptr; - if ( pViewFrame != nullptr && pViewFrame->GetDispatcher() ) - pPtr = static_cast<const OfaRefItem<XColorList> *>(pViewFrame-> - GetDispatcher()->Execute( SID_GET_COLORLIST, - SfxCallMode::SYNCHRON )); - pColorList = pPtr ? pPtr->GetValue() : XColorList::GetStdColorList(); - - //SetPos( &pShadow->nUnknownPos ); - //SetColorChgd( &pShadow->nChangeType ); - Construct(); -} - -void SvxColorTabPage::SaveToViewFrame( SfxViewFrame *pViewFrame ) -{ - if( !pColorList.is() ) - return; - - if( !pViewFrame ) - return; - - // notify current viewframe that it uses the same color table - if ( !pViewFrame->GetDispatcher() ) - return; - - const OfaRefItem<XColorList> * pPtr; - pPtr = static_cast<const OfaRefItem<XColorList>*>(pViewFrame->GetDispatcher()->Execute( SID_GET_COLORLIST, SfxCallMode::SYNCHRON )); - if( pPtr ) - { - XColorListRef pReference = pPtr->GetValue(); - - if( pReference.is() && - pReference->GetPath() == pColorList->GetPath() && - pReference->GetName() == pColorList->GetName() ) - SfxObjectShell::Current()->PutItem( SvxColorListItem( pColorList, - SID_COLOR_TABLE ) ); - } -} - void SvxColorTabPage::SetPropertyList( XPropertyListType t, const XPropertyListRef &xRef ) { (void) t; diff --git a/cui/source/tabpages/tpgradnt.cxx b/cui/source/tabpages/tpgradnt.cxx index d1b50c738c42..68d28719dc77 100644 --- a/cui/source/tabpages/tpgradnt.cxx +++ b/cui/source/tabpages/tpgradnt.cxx @@ -252,68 +252,6 @@ DeactivateRC SvxGradientTabPage::DeactivatePage( SfxItemSet* _pSet ) return DeactivateRC::LeavePage; } -long SvxGradientTabPage::CheckChanges_Impl() -{ - // is used here in order to NOT lose changes - XGradient aTmpGradient( m_pLbColorFrom->GetSelectEntryColor(), - m_pLbColorTo->GetSelectEntryColor(), - (css::awt::GradientStyle) m_pLbGradientType->GetSelectEntryPos(), - static_cast<long>(m_pMtrAngle->GetValue() * 10), // should be changed in resource - (sal_uInt16) m_pMtrCenterX->GetValue(), - (sal_uInt16) m_pMtrCenterY->GetValue(), - (sal_uInt16) m_pMtrBorder->GetValue(), - (sal_uInt16) m_pMtrColorFrom->GetValue(), - (sal_uInt16) m_pMtrColorTo->GetValue() ); - - size_t nPos = m_pGradientLB->GetSelectItemPos(); - if( nPos != VALUESET_ITEM_NOTFOUND ) - { - XGradient aGradient = m_pGradientList->GetGradient( static_cast<sal_uInt16>(nPos) )->GetGradient(); - - if( !( aTmpGradient == aGradient ) ) - { - ResMgr& rMgr = CUI_MGR(); - Image aWarningBoxImage = WarningBox::GetStandardImage(); - ScopedVclPtrInstance<SvxMessDialog> aMessDlg( GetParentDialog(), - SVX_RESSTR( RID_SVXSTR_GRADIENT ), - CUI_RESSTR( RID_SVXSTR_ASK_CHANGE_GRADIENT ), - &aWarningBoxImage ); - assert(aMessDlg && "Dialog creation failed!"); - aMessDlg->SetButtonText( SvxMessDialogButton::N1, - OUString( ResId( RID_SVXSTR_CHANGE, rMgr ) ) ); - aMessDlg->SetButtonText( SvxMessDialogButton::N2, - OUString( ResId( RID_SVXSTR_ADD, rMgr ) ) ); - - short nRet = aMessDlg->Execute(); - - switch( nRet ) - { - case RET_BTN_1: - { - ClickModifyHdl_Impl( nullptr ); - } - break; - - case RET_BTN_2: - { - ClickAddHdl_Impl( nullptr ); - } - break; - - case RET_CANCEL: - break; - } - } - } - nPos = m_pGradientLB->GetSelectItemPos(); - if( nPos != VALUESET_ITEM_NOTFOUND ) - { - *m_pPos = static_cast<sal_Int32>(nPos); - } - return 0L; -} - - bool SvxGradientTabPage::FillItemSet( SfxItemSet* rSet ) { std::unique_ptr<XGradient> pXGradient; |