diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-12 12:19:04 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-04-12 14:50:16 +0200 |
commit | 3df141b2084d3abc1587ef24d2b371b779bb3d50 (patch) | |
tree | 2d24947c36901ec68ad0be2d85fd55d4542e1006 /sfx2/source | |
parent | 7811a0e581ca34f59daf4210c568f818d8c9dfdd (diff) |
loplugin:unusedmethods
Change-Id: Ie90e53583484ee4f378ec92634adf3be7cd9ecbb
Reviewed-on: https://gerrit.libreoffice.org/70650
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source')
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.cxx | 38 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.hxx | 14 | ||||
-rw-r--r-- | sfx2/source/dialog/basedlgs.cxx | 18 | ||||
-rw-r--r-- | sfx2/source/dialog/tabdlg.cxx | 63 |
4 files changed, 1 insertions, 132 deletions
diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index 405b874c1d51..fcab3b5acfb0 100644 --- a/sfx2/source/control/thumbnailviewacc.cxx +++ b/sfx2/source/control/thumbnailviewacc.cxx @@ -596,44 +596,6 @@ const uno::Sequence< sal_Int8 >& SfxThumbnailViewAcc::getUnoTunnelId() return theSfxValueSetAccUnoTunnelId::get().getSeq(); } -SfxThumbnailViewAcc* SfxThumbnailViewAcc::getImplementation( const uno::Reference< uno::XInterface >& rxData ) - throw() -{ - try - { - uno::Reference< lang::XUnoTunnel > xUnoTunnel( rxData, uno::UNO_QUERY ); - return( xUnoTunnel.is() ? reinterpret_cast<SfxThumbnailViewAcc*>(sal::static_int_cast<sal_IntPtr>(xUnoTunnel->getSomething( SfxThumbnailViewAcc::getUnoTunnelId() ))) : nullptr ); - } - catch(const css::uno::Exception&) - { - return nullptr; - } -} - -void SfxThumbnailViewAcc::GetFocus() -{ - mbIsFocused = true; - - // Broadcast the state change. - css::uno::Any aOldState, aNewState; - aNewState <<= css::accessibility::AccessibleStateType::FOCUSED; - FireAccessibleEvent( - css::accessibility::AccessibleEventId::STATE_CHANGED, - aOldState, aNewState); -} - -void SfxThumbnailViewAcc::LoseFocus() -{ - mbIsFocused = false; - - // Broadcast the state change. - css::uno::Any aOldState, aNewState; - aOldState <<= css::accessibility::AccessibleStateType::FOCUSED; - FireAccessibleEvent( - css::accessibility::AccessibleEventId::STATE_CHANGED, - aOldState, aNewState); -} - uno::Reference< accessibility::XAccessibleContext > SAL_CALL SfxThumbnailViewAcc::getAccessibleContext() { ThrowIfDisposed(); diff --git a/sfx2/source/control/thumbnailviewacc.hxx b/sfx2/source/control/thumbnailviewacc.hxx index 0cc51229165a..d47f94c9bd4a 100644 --- a/sfx2/source/control/thumbnailviewacc.hxx +++ b/sfx2/source/control/thumbnailviewacc.hxx @@ -172,22 +172,8 @@ public: const css::uno::Any& rOldValue, const css::uno::Any& rNewValue ); - bool HasAccessibleListeners() const { return( mxEventListeners.size() > 0 ); } - - static SfxThumbnailViewAcc* getImplementation( const css::uno::Reference< css::uno::XInterface >& rxData ) throw(); - public: - /** Called by the corresponding ValueSet when it gets the focus. - Stores the new focus state and broadcasts a state change event. - */ - void GetFocus(); - - /** Called by the corresponding ValueSet when it loses the focus. - Stores the new focus state and broadcasts a state change event. - */ - void LoseFocus(); - // XAccessible virtual css::uno::Reference< css::accessibility::XAccessibleContext > SAL_CALL getAccessibleContext( ) override; diff --git a/sfx2/source/dialog/basedlgs.cxx b/sfx2/source/dialog/basedlgs.cxx index f6f3e1b5a46a..230b165cee0f 100644 --- a/sfx2/source/dialog/basedlgs.cxx +++ b/sfx2/source/dialog/basedlgs.cxx @@ -44,11 +44,6 @@ using namespace ::com::sun::star::uno; #define USERITEM_NAME "UserItem" -SingleTabDlgImpl::SingleTabDlgImpl() - : m_pSfxPage(nullptr) -{ -} - class SfxModelessDialog_Impl : public SfxListener { public: @@ -122,8 +117,7 @@ void SfxModalDialog::GetDialogData_Impl() } SfxModalDialog::SfxModalDialog(vcl::Window *pParent, const OUString& rID, const OUString& rUIXMLDescription ) -: ModalDialog(pParent, rID, rUIXMLDescription), - pInputSet(nullptr) +: ModalDialog(pParent, rID, rUIXMLDescription) { SetInstallLOKNotifierHdl(LINK(this, SfxModalDialog, InstallLOKNotifierHdl)); GetDialogData_Impl(); @@ -147,16 +141,6 @@ void SfxModalDialog::dispose() ModalDialog::dispose(); } -void SfxModalDialog::CreateOutputItemSet( const SfxItemSet& rSet ) -{ - DBG_ASSERT( !pOutputSet, "Double creation of OutputSet!" ); - if (!pOutputSet) - { - pOutputSet.reset(new SfxItemSet( rSet )); - pOutputSet->ClearItem(); - } -} - void SfxModelessDialog::StateChanged( StateChangedType nStateChange ) { if ( nStateChange == StateChangedType::InitShow ) diff --git a/sfx2/source/dialog/tabdlg.cxx b/sfx2/source/dialog/tabdlg.cxx index d1f9426aff2b..8c918cae923f 100644 --- a/sfx2/source/dialog/tabdlg.cxx +++ b/sfx2/source/dialog/tabdlg.cxx @@ -630,51 +630,6 @@ void SfxTabDialog::AddTabPage m_pImpl->aData.push_back( new Data_Impl(nId, "", pCreateFunc, nullptr ) ); } -void SfxTabDialog::RemoveTabPage( sal_uInt16 nId ) - -/* [Description] - - Delete the TabPage with ID nId -*/ - -{ - sal_uInt16 nPos = 0; - m_pTabCtrl->RemovePage( nId ); - Data_Impl* pDataObject = Find( m_pImpl->aData, nId, &nPos ); - - if ( pDataObject ) - { - if ( pDataObject->pTabPage ) - { - pDataObject->pTabPage->FillUserData(); - OUString aPageData( pDataObject->pTabPage->GetUserData() ); - if ( !aPageData.isEmpty() ) - { - // save settings of this page (user data) - OUString sConfigId = OStringToOUString(pDataObject->pTabPage->GetConfigId(), - RTL_TEXTENCODING_UTF8); - if (sConfigId.isEmpty()) - { - SAL_WARN("sfx.dialog", "Tabpage needs to be converted to .ui format"); - sConfigId = OUString::number(pDataObject->nId); - } - - SvtViewOptions aPageOpt(EViewType::TabPage, sConfigId); - aPageOpt.SetUserItem( USERITEM_NAME, makeAny( aPageData ) ); - } - - pDataObject->pTabPage.disposeAndClear(); - } - - delete pDataObject; - m_pImpl->aData.erase( m_pImpl->aData.begin() + nPos ); - } - else - { - SAL_INFO( "sfx.dialog", "TabPage-Id not known" ); - } -} - void SfxTabDialog::PageCreated /* [Description] @@ -1271,24 +1226,6 @@ void SfxTabDialog::SetPageName(sal_uInt16 nPageId, const OString& rName) const m_pTabCtrl->SetPageName(nPageId, rName); } -void SfxTabDialog::SetInputSet( const SfxItemSet* pInSet ) - -/* [Description] - - With this method the Input-Set can subsequently be set initially or re-set. -*/ - -{ - bool bSet = ( m_pSet != nullptr ); - m_pSet.reset(pInSet ? new SfxItemSet(*pInSet) : nullptr); - - if (!bSet && !m_pExampleSet && !m_pOutSet && m_pSet) - { - m_pExampleSet = new SfxItemSet( *m_pSet ); - m_pOutSet.reset(new SfxItemSet( *m_pSet->GetPool(), m_pSet->GetRanges() )); - } -} - FactoryFunction SfxTabDialog::GetUITestFactory() const { return SfxTabDialogUIObject::create; |