diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-09 13:00:48 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2019-05-09 14:31:12 +0200 |
commit | 7f6d5dfb2244468e2faa7be05d4258692c6e84dc (patch) | |
tree | 8c03b0980c003a66f2a2683920c1557a3ada6e8e /sfx2 | |
parent | b4009daccd11e416865efd5fd3c205c46691bb12 (diff) |
loplugin:unusedmethods
Change-Id: I7b4d2e5e611935284e2902b0089950768dfb7717
Reviewed-on: https://gerrit.libreoffice.org/72036
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2')
-rw-r--r-- | sfx2/source/control/templatelocalview.cxx | 507 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailview.cxx | 99 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.cxx | 25 | ||||
-rw-r--r-- | sfx2/source/control/thumbnailviewacc.hxx | 4 |
4 files changed, 0 insertions, 635 deletions
diff --git a/sfx2/source/control/templatelocalview.cxx b/sfx2/source/control/templatelocalview.cxx index f4ee597b98ea..80232e4205e2 100644 --- a/sfx2/source/control/templatelocalview.cxx +++ b/sfx2/source/control/templatelocalview.cxx @@ -195,18 +195,6 @@ void TemplateLocalView::showRegion(TemplateContainerItem const *pItem) maOpenRegionHdl.Call(nullptr); } -void TemplateLocalView::showRegion(const OUString &rName) -{ - for (auto const & pRegion : maRegions) - { - if (pRegion->maTitle == rName) - { - showRegion(pRegion.get()); - break; - } - } -} - TemplateContainerItem* TemplateLocalView::getRegion(OUString const & rName) { for (auto const & pRegion : maRegions) @@ -216,29 +204,6 @@ TemplateContainerItem* TemplateLocalView::getRegion(OUString const & rName) return nullptr; } -void TemplateLocalView::createContextMenu(const bool bIsDefault) -{ - ScopedVclPtrInstance<PopupMenu> pItemMenu; - pItemMenu->InsertItem(MNI_OPEN,SfxResId(STR_OPEN)); - pItemMenu->InsertItem(MNI_EDIT,SfxResId(STR_EDIT_TEMPLATE)); - - if(!bIsDefault) - pItemMenu->InsertItem(MNI_DEFAULT_TEMPLATE,SfxResId(STR_DEFAULT_TEMPLATE)); - else - pItemMenu->InsertItem(MNI_DEFAULT_TEMPLATE,SfxResId(STR_RESET_DEFAULT)); - - pItemMenu->InsertSeparator(); - pItemMenu->InsertItem(MNI_RENAME,SfxResId(STR_RENAME)); - pItemMenu->InsertItem(MNI_DELETE,SfxResId(STR_DELETE)); - pItemMenu->InsertSeparator(); - deselectItems(); - maSelectedItem->setSelection(true); - maItemStateHdl.Call(maSelectedItem); - pItemMenu->SetSelectHdl(LINK(this, TemplateLocalView, ContextMenuSelectHdl)); - pItemMenu->Execute(this, tools::Rectangle(maPosition,Size(1,1)), PopupMenuFlags::ExecuteDown); - Invalidate(); -} - IMPL_LINK(TemplateLocalView, ContextMenuSelectHdl, Menu*, pMenu, bool) { sal_uInt16 nMenuId = pMenu->GetCurItemId(); @@ -289,448 +254,11 @@ IMPL_LINK(TemplateLocalView, ContextMenuSelectHdl, Menu*, pMenu, bool) return false; } -sal_uInt16 TemplateLocalView::getRegionId(size_t pos) const -{ - assert(pos < maRegions.size()); - - return maRegions[pos]->mnId; -} - -sal_uInt16 TemplateLocalView::getRegionId(OUString const & sRegion) const -{ - for (auto const & pRegion : maRegions) - { - if (pRegion->maTitle == sRegion) - return pRegion->mnId; - } - - return 0; -} - OUString TemplateLocalView::getRegionName(const sal_uInt16 nRegionId) const { return mpDocTemplates->GetRegionName(nRegionId); } -OUString TemplateLocalView::getRegionItemName(const sal_uInt16 nItemId) const -{ - for (auto const & pRegion : maRegions) - { - if (pRegion->mnId == nItemId) - return pRegion->maTitle; - } - - return OUString(); -} - -std::vector<OUString> TemplateLocalView::getFolderNames() -{ - size_t n = maRegions.size(); - std::vector<OUString> ret(n); - - for (size_t i = 0; i < n; ++i) - ret[i] = maRegions[i]->maTitle; - - return ret; -} - -std::vector<TemplateItemProperties> -TemplateLocalView::getFilteredItems(const std::function<bool (const TemplateItemProperties&)> &rFunc) const -{ - std::vector<TemplateItemProperties> aItems; - - if (mnCurRegionId) - { - TemplateContainerItem *pFolderItem = maRegions[mnCurRegionId-1].get(); - - for (TemplateItemProperties & rItemProps : pFolderItem->maTemplates) - { - if (rFunc(rItemProps)) - aItems.push_back(rItemProps); - } - } - else - { - for (auto const & pFolderItem : maRegions) - { - for (const TemplateItemProperties & rItemProps : pFolderItem->maTemplates) - { - if (rFunc(rItemProps)) - aItems.push_back(rItemProps); - } - } - } - - return aItems; -} - -sal_uInt16 TemplateLocalView::createRegion(const OUString &rName) -{ - sal_uInt16 nRegionId = mpDocTemplates->GetRegionCount(); // Next regionId - sal_uInt16 nItemId = getNextItemId(); - - if (!mpDocTemplates->InsertDir(rName,nRegionId)) - return 0; - - // Insert to the region cache list and to the thumbnail item list - std::unique_ptr<TemplateContainerItem> pItem(new TemplateContainerItem( nItemId )); - pItem->mnRegionId = nRegionId; - pItem->maTitle = rName; - - maRegions.push_back(std::move(pItem)); - - return nItemId; -} - -bool TemplateLocalView::renameRegion(const OUString &rTitle, const OUString &rNewTitle) -{ - TemplateContainerItem *pRegion = getRegion(rTitle); - - if(pRegion) - { - sal_uInt16 nRegionId = pRegion->mnRegionId; - return mpDocTemplates->SetName( rNewTitle, nRegionId, USHRT_MAX/*nDocId*/ ); - } - return false; -} - -bool TemplateLocalView::removeRegion(const sal_uInt16 nItemId) -{ - sal_uInt16 nRegionId = USHRT_MAX; - - // Remove from the region cache list - for (auto pRegionIt = maRegions.begin(); pRegionIt != maRegions.end();) - { - if ( (*pRegionIt)->mnId == nItemId ) - { - if (!mpDocTemplates->Delete((*pRegionIt)->mnRegionId,USHRT_MAX)) - return false; - - nRegionId = (*pRegionIt)->mnRegionId; - - pRegionIt = maRegions.erase(pRegionIt); - } - else - { - // Synchronize regions cache ids with SfxDocumentTemplates - if (nRegionId != USHRT_MAX && (*pRegionIt)->mnRegionId > nRegionId) - --(*pRegionIt)->mnRegionId; - - ++pRegionIt; - } - } - - if (nRegionId == USHRT_MAX) - return false; - - // Synchronize view regions ids with SfxDocumentTemplates - for (auto const& region : maRegions) - { - if (region->mnRegionId > nRegionId) - --region->mnRegionId; - } - - return true; -} - -bool TemplateLocalView::removeTemplate (const sal_uInt16 nItemId, const sal_uInt16 nSrcItemId) -{ - for (auto const & pRegion : maRegions) - { - if (pRegion->mnId == nSrcItemId) - { - TemplateContainerItem *pItem = pRegion.get(); - auto pIter = std::find_if(pItem->maTemplates.begin(), pItem->maTemplates.end(), - [nItemId](const TemplateItemProperties& rTemplate) { return rTemplate.nId == nItemId; }); - if (pIter != pItem->maTemplates.end()) - { - if (!mpDocTemplates->Delete(pItem->mnRegionId,pIter->nDocId)) - return false; - - pIter = pItem->maTemplates.erase(pIter); - - if (pRegion->mnRegionId == mnCurRegionId-1) - { - RemoveItem(nItemId); - Invalidate(); - } - - // Update Doc Idx for all templates that follow - for (; pIter != pItem->maTemplates.end(); ++pIter) - pIter->nDocId = pIter->nDocId - 1; - } - - CalculateItemPositions(); - break; - } - } - - return true; -} - -bool TemplateLocalView::moveTemplate (const ThumbnailViewItem *pItem, const sal_uInt16 nSrcItem, - const sal_uInt16 nTargetItem) -{ - TemplateContainerItem *pTarget = nullptr; - TemplateContainerItem *pSrc = nullptr; - - for (auto const & pRegion : maRegions) - { - if (pRegion->mnId == nTargetItem) - pTarget = pRegion.get(); - else if (pRegion->mnId == nSrcItem) - pSrc = pRegion.get(); - } - - if (pTarget && pSrc) - { - sal_uInt16 nSrcRegionId = pSrc->mnRegionId; - sal_uInt16 nTargetRegion = pTarget->mnRegionId; - sal_uInt16 nTargetIdx = mpDocTemplates->GetCount(nTargetRegion); // Next Idx - - const TemplateViewItem *pViewItem = static_cast<const TemplateViewItem*>(pItem); - - bool bCopy = !mpDocTemplates->Move(nTargetRegion,nTargetIdx,nSrcRegionId,pViewItem->mnDocId); - - if (bCopy) - { - OUString sQuery = SfxResId(STR_MSG_QUERY_COPY).replaceFirst("$1", pViewItem->maTitle).replaceFirst("$2", - getRegionName(nTargetRegion)); - - std::unique_ptr<weld::MessageDialog> xQueryDlg(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Question, VclButtonsType::YesNo, sQuery)); - if (xQueryDlg->run() != RET_YES) - return false; - - if (!mpDocTemplates->Copy(nTargetRegion,nTargetIdx,nSrcRegionId,pViewItem->mnDocId)) - return false; - } - // move template to destination - - TemplateItemProperties aTemplateItem; - aTemplateItem.nId = nTargetIdx + 1; - aTemplateItem.nDocId = nTargetIdx; - aTemplateItem.nRegionId = nTargetRegion; - aTemplateItem.aName = pViewItem->maTitle; - aTemplateItem.aPath = mpDocTemplates->GetPath(nTargetRegion,nTargetIdx); - aTemplateItem.aRegionName = pViewItem->maHelpText; - aTemplateItem.aThumbnail = pViewItem->maPreview1; - - pTarget->maTemplates.push_back(aTemplateItem); - - if (!bCopy) - { - // remove template from region cached data - - std::vector<TemplateItemProperties>::iterator aIter; - for (aIter = pSrc->maTemplates.begin(); aIter != pSrc->maTemplates.end();) - { - if (aIter->nDocId == pViewItem->mnDocId) - { - aIter = pSrc->maTemplates.erase(aIter); - } - else - { - // Keep region document id synchronized with SfxDocumentTemplates - if (aIter->nDocId > pViewItem->mnDocId) - --aIter->nDocId; - - ++aIter; - } - } - - // Keep view document id synchronized with SfxDocumentTemplates - for (auto const& item : mItemList) - { - auto pTemplateViewItem = static_cast<TemplateViewItem*>(item.get()); - if (pTemplateViewItem->mnDocId > pViewItem->mnDocId) - --pTemplateViewItem->mnDocId; - } - } - - CalculateItemPositions(); - Invalidate(); - - return true; - } - - return false; -} - -void TemplateLocalView::moveTemplates(const std::set<const ThumbnailViewItem*, selection_cmp_fn> &rItems, - const sal_uInt16 nTargetItem) -{ - TemplateContainerItem *pTarget = nullptr; - TemplateContainerItem *pSrc = nullptr; - - for (auto const & pRegion : maRegions) - { - if (pRegion->mnId == nTargetItem) - pTarget = pRegion.get(); - } - - if (!pTarget) - return; - - bool refresh = false; - - sal_uInt16 nTargetRegion = pTarget->mnRegionId; - sal_uInt16 nTargetIdx = mpDocTemplates->GetCount(nTargetRegion); // Next Idx - std::vector<sal_uInt16> aItemIds; // List of moved items ids (also prevents the invalidation of rItems iterators when we remove them as we go) - - std::set<const ThumbnailViewItem*,selection_cmp_fn>::const_iterator aSelIter; - for ( aSelIter = rItems.begin(); aSelIter != rItems.end(); ++aSelIter, ++nTargetIdx ) - { - const TemplateViewItem *pViewItem = static_cast<const TemplateViewItem*>(*aSelIter); - sal_uInt16 nSrcRegionId = pViewItem->mnRegionId; - - for (auto const & pRegion : maRegions) - { - if (pRegion->mnRegionId == nSrcRegionId) - pSrc = pRegion.get(); - } - - if(pSrc) - { - bool bCopy = !mpDocTemplates->Move(nTargetRegion,nTargetIdx,nSrcRegionId,pViewItem->mnDocId); - - if (bCopy) - { - OUString sQuery = SfxResId(STR_MSG_QUERY_COPY).replaceFirst("$1", pViewItem->maTitle).replaceFirst("$2", - getRegionName(nTargetRegion)); - std::unique_ptr<weld::MessageDialog> xQueryDlg(Application::CreateMessageDialog(GetFrameWeld(), VclMessageType::Question, VclButtonsType::YesNo, sQuery)); - if (xQueryDlg->run() != RET_YES) - { - OUString sMsg(SfxResId(STR_MSG_ERROR_LOCAL_MOVE)); - sMsg = sMsg.replaceFirst("$1",getRegionName(nTargetRegion)); - std::unique_ptr<weld::MessageDialog> xBox(Application::CreateMessageDialog(GetFrameWeld(), - VclMessageType::Warning, VclButtonsType::Ok, sMsg.replaceFirst( "$2",pViewItem->maTitle))); - xBox->run(); - - return; //return if any single move operation fails - } - - if (!mpDocTemplates->Copy(nTargetRegion,nTargetIdx,nSrcRegionId,pViewItem->mnDocId)) - { - continue; - } - } - - // move template to destination - - TemplateItemProperties aTemplateItem; - aTemplateItem.nId = nTargetIdx + 1; - aTemplateItem.nDocId = nTargetIdx; - aTemplateItem.nRegionId = nTargetRegion; - aTemplateItem.aName = pViewItem->maTitle; - aTemplateItem.aPath = mpDocTemplates->GetPath(nTargetRegion,nTargetIdx); - aTemplateItem.aRegionName = pViewItem->maHelpText; - aTemplateItem.aThumbnail = pViewItem->maPreview1; - - pTarget->maTemplates.push_back(aTemplateItem); - - if (!bCopy) - { - // remove template from region cached data - - std::vector<TemplateItemProperties>::iterator pPropIter; - for (pPropIter = pSrc->maTemplates.begin(); pPropIter != pSrc->maTemplates.end();) - { - if (pPropIter->nDocId == pViewItem->mnDocId) - { - pPropIter = pSrc->maTemplates.erase(pPropIter); - aItemIds.push_back(pViewItem->mnDocId + 1);//mnid - } - else - { - // Keep region document id synchronized with SfxDocumentTemplates - if (pPropIter->nDocId > pViewItem->mnDocId) - --pPropIter->nDocId; - - ++pPropIter; - } - } - - // Keep view document id synchronized with SfxDocumentTemplates - for (auto const& item : mItemList) - { - auto pTemplateViewItem = static_cast<TemplateViewItem*>(item.get()); - if (pTemplateViewItem->mnDocId > pViewItem->mnDocId) - --pTemplateViewItem->mnDocId; - } - } - } - - refresh = true; - } - - // Remove items from the current view - for (auto const& itemId : aItemIds) - RemoveItem(itemId); - - if (refresh) - { - CalculateItemPositions(); - Invalidate(); - } -} - -bool TemplateLocalView::copyFrom (TemplateContainerItem *pItem, const OUString &rPath) -{ - sal_uInt16 nId = 1; - sal_uInt16 nDocId = 0; - sal_uInt16 nRegionId = pItem->mnRegionId; - OUString aPath(rPath); - - if (!pItem->maTemplates.empty()) - { - nId = pItem->maTemplates.back().nId+1; - nDocId = pItem->maTemplates.back().nDocId+1; - } - - if (mpDocTemplates->CopyFrom(nRegionId,nDocId,aPath)) - { - TemplateItemProperties aTemplate; - aTemplate.nId = nId; - aTemplate.nDocId = nDocId; - aTemplate.nRegionId = nRegionId; - aTemplate.aName = aPath; - aTemplate.aThumbnail = TemplateLocalView::fetchThumbnail(rPath, - TEMPLATE_THUMBNAIL_MAX_WIDTH, - TEMPLATE_THUMBNAIL_MAX_HEIGHT); - aTemplate.aPath = rPath; - aTemplate.aRegionName = getRegionName(nRegionId); - - pItem->maTemplates.push_back(aTemplate); - - CalculateItemPositions(); - - return true; - } - - return false; -} - -bool TemplateLocalView::exportTo(const sal_uInt16 nItemId, const sal_uInt16 nRegionItemId, const OUString &rName) -{ - for (auto const & pRegItem : maRegions) - { - if (pRegItem->mnId == nRegionItemId) - { - for (auto const& elem : pRegItem->maTemplates) - { - if (elem.nId == nItemId) - { - return mpDocTemplates->CopyTo(pRegItem->mnRegionId,elem.nDocId,rName); - } - } - - break; - } - } - - return false; -} - bool TemplateLocalView::renameItem(ThumbnailViewItem* pItem, const OUString& sNewTitle) { sal_uInt16 nRegionId = 0; @@ -901,11 +429,6 @@ void TemplateLocalView::KeyInput( const KeyEvent& rKEvt ) } -void TemplateLocalView::setOpenRegionHdl(const Link<void*,void> &rLink) -{ - maOpenRegionHdl = rLink; -} - void TemplateLocalView::setCreateContextMenuHdl(const Link<ThumbnailViewItem*,void> &rLink) { maCreateContextMenuHdl = rLink; @@ -921,16 +444,6 @@ void TemplateLocalView::setEditTemplateHdl(const Link<ThumbnailViewItem*,void> & maEditTemplateHdl = rLink; } -void TemplateLocalView::setDeleteTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink) -{ - maDeleteTemplateHdl = rLink; -} - -void TemplateLocalView::setDefaultTemplateHdl(const Link<ThumbnailViewItem*,void> &rLink) -{ - maDefaultTemplateHdl = rLink; -} - BitmapEx TemplateLocalView::scaleImg (const BitmapEx &rImg, long width, long height) { BitmapEx aImg = rImg; @@ -969,20 +482,6 @@ bool TemplateLocalView::IsDefaultTemplate(const OUString& rPath) return false; } -void TemplateLocalView::RemoveDefaultTemplateIcon(const OUString& rPath) -{ - for (std::unique_ptr<ThumbnailViewItem>& pItem : mItemList) - { - TemplateViewItem* pViewItem = dynamic_cast<TemplateViewItem*>(pItem.get()); - if (pViewItem && pViewItem->getPath().match(rPath)) - { - pViewItem->showDefaultIcon(false); - Invalidate(); - return; - } - } -} - BitmapEx TemplateLocalView::getDefaultThumbnail( const OUString& rPath ) { BitmapEx aImg; @@ -1694,12 +1193,6 @@ void SfxTemplateLocalView::insertItems(const std::vector<TemplateItemProperties> updateItems(std::move(aItems)); } -void SfxTemplateLocalView::updateThumbnailDimensions(long itemMaxSize) -{ - mnThumbnailWidth = itemMaxSize; - mnThumbnailHeight = itemMaxSize; -} - bool SfxTemplateLocalView::MouseButtonDown( const MouseEvent& rMEvt ) { GrabFocus(); diff --git a/sfx2/source/control/thumbnailview.cxx b/sfx2/source/control/thumbnailview.cxx index b3a2d9f141b9..2343aeee11f7 100644 --- a/sfx2/source/control/thumbnailview.cxx +++ b/sfx2/source/control/thumbnailview.cxx @@ -1159,11 +1159,6 @@ void ThumbnailView::ShowTooltips( bool bShowTooltips ) mbShowTooltips = bShowTooltips; } -void ThumbnailView::SetMultiSelectionEnabled( bool bIsMultiSelectionEnabled ) -{ - mbIsMultiSelectionEnabled = bIsMultiSelectionEnabled; -} - void ThumbnailView::filterItems(const std::function<bool (const ThumbnailViewItem*)> &func) { mnFirstLine = 0; // start at the top of the list instead of the current position @@ -2390,98 +2385,4 @@ void SfxThumbnailView::filterItems(const std::function<bool (const ThumbnailView Invalidate(); } -BitmapEx SfxThumbnailView::readThumbnail(const OUString &msURL) -{ - using namespace ::com::sun::star; - using namespace ::com::sun::star::uno; - - // Load the thumbnail from a template document. - uno::Reference<io::XInputStream> xIStream; - - uno::Reference< uno::XComponentContext > xContext(::comphelper::getProcessComponentContext()); - try - { - uno::Reference<lang::XSingleServiceFactory> xStorageFactory = embed::StorageFactory::create(xContext); - - uno::Sequence<uno::Any> aArgs (2); - aArgs[0] <<= msURL; - aArgs[1] <<= embed::ElementModes::READ; - uno::Reference<embed::XStorage> xDocStorage ( - xStorageFactory->createInstanceWithArguments(aArgs), - uno::UNO_QUERY); - - try - { - if (xDocStorage.is()) - { - uno::Reference<embed::XStorage> xStorage ( - xDocStorage->openStorageElement( - "Thumbnails", - embed::ElementModes::READ)); - if (xStorage.is()) - { - uno::Reference<io::XStream> xThumbnailCopy ( - xStorage->cloneStreamElement("thumbnail.png")); - if (xThumbnailCopy.is()) - xIStream = xThumbnailCopy->getInputStream(); - } - } - } - catch (const uno::Exception& rException) - { - SAL_WARN("sfx", - "caught exception while trying to access Thumbnail/thumbnail.png of " - << msURL << ": " << rException); - } - - try - { - // An (older) implementation had a bug - The storage - // name was "Thumbnail" instead of "Thumbnails". The - // old name is still used as fallback but this code can - // be removed soon. - if ( ! xIStream.is()) - { - uno::Reference<embed::XStorage> xStorage ( - xDocStorage->openStorageElement( "Thumbnail", - embed::ElementModes::READ)); - if (xStorage.is()) - { - uno::Reference<io::XStream> xThumbnailCopy ( - xStorage->cloneStreamElement("thumbnail.png")); - if (xThumbnailCopy.is()) - xIStream = xThumbnailCopy->getInputStream(); - } - } - } - catch (const uno::Exception& rException) - { - SAL_WARN("sfx", - "caught exception while trying to access Thumbnails/thumbnail.png of " - << msURL << ": " << rException); - } - } - catch (const uno::Exception& rException) - { - SAL_WARN("sfx", - "caught exception while trying to access thumbnail of " - << msURL << ": " << rException); - } - - // Extract the image from the stream. - BitmapEx aThumbnail; - if (xIStream.is()) - { - std::unique_ptr<SvStream> pStream ( - ::utl::UcbStreamHelper::CreateStream (xIStream)); - vcl::PNGReader aReader (*pStream); - aThumbnail = aReader.Read (); - } - - // Note that the preview is returned without scaling it to the desired - // width. This gives the caller the chance to take advantage of a - // possibly larger resolution then was asked for. - return aThumbnail; -} - /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/sfx2/source/control/thumbnailviewacc.cxx b/sfx2/source/control/thumbnailviewacc.cxx index 8a802525c75d..a659920c4ef3 100644 --- a/sfx2/source/control/thumbnailviewacc.cxx +++ b/sfx2/source/control/thumbnailviewacc.cxx @@ -560,31 +560,6 @@ SfxThumbnailViewAcc::~SfxThumbnailViewAcc() { } -void SfxThumbnailViewAcc::FireAccessibleEvent( short nEventId, const uno::Any& rOldValue, const uno::Any& rNewValue ) -{ - if( !nEventId ) - return; - - ::std::vector< uno::Reference< accessibility::XAccessibleEventListener > > aTmpListeners( mxEventListeners ); - accessibility::AccessibleEventObject aEvtObject; - - aEvtObject.EventId = nEventId; - aEvtObject.Source = static_cast<uno::XWeak*>(this); - aEvtObject.NewValue = rNewValue; - aEvtObject.OldValue = rOldValue; - - for (auto const& tmpListener : aTmpListeners) - { - try - { - tmpListener->notifyEvent( aEvtObject ); - } - catch(const uno::Exception&) - { - } - } -} - namespace { class theSfxValueSetAccUnoTunnelId : public rtl::Static< UnoTunnelIdInit, theSfxValueSetAccUnoTunnelId > {}; diff --git a/sfx2/source/control/thumbnailviewacc.hxx b/sfx2/source/control/thumbnailviewacc.hxx index 577c11941a47..5eab7ffd9255 100644 --- a/sfx2/source/control/thumbnailviewacc.hxx +++ b/sfx2/source/control/thumbnailviewacc.hxx @@ -168,10 +168,6 @@ public: SfxThumbnailViewAcc( SfxThumbnailView* pParent ); virtual ~SfxThumbnailViewAcc() override; - void FireAccessibleEvent( short nEventId, - const css::uno::Any& rOldValue, - const css::uno::Any& rNewValue ); - public: // XAccessible |