diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-30 13:42:09 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2023-08-30 21:33:35 +0200 |
commit | dbe8597ce4f8c503ac10836570a76a607b2ebb9c (patch) | |
tree | fe1a276f6bcaa851830eca59a48ae95f056bc988 /include | |
parent | 7379decd74f9f66011f0023d8903430293dc0532 (diff) |
use concrete type for ThumbnailViewItem::mxAcc
avoid some unnecessary casting
Change-Id: I86d48cb463f4e9a1661025fa6e1f4f8c03d61eaf
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156287
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'include')
-rw-r--r-- | include/sfx2/thumbnailviewitem.hxx | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/include/sfx2/thumbnailviewitem.hxx b/include/sfx2/thumbnailviewitem.hxx index 64644b772d64..7c84b344a8a0 100644 --- a/include/sfx2/thumbnailviewitem.hxx +++ b/include/sfx2/thumbnailviewitem.hxx @@ -27,6 +27,7 @@ namespace com::sun::star::accessibility { class XAccessible; } namespace drawinglayer::primitive2d { class Primitive2DContainer; } +class ThumbnailViewItemAcc; #define THUMBNAILVIEW_ITEM_NONEITEM 0xFFFE @@ -76,7 +77,7 @@ public: BitmapEx maPreview1; OUString maTitle; OUString maHelpText; - css::uno::Reference< css::accessibility::XAccessible > mxAcc; + rtl::Reference< ThumbnailViewItemAcc > mxAcc; bool mbPinnedDocumentHighlighted; BitmapEx maPinnedDocumentBitmap; @@ -86,6 +87,9 @@ public: virtual ~ThumbnailViewItem (); + ThumbnailViewItem& operator=( ThumbnailViewItem const & ) = delete; // MSVC workaround + ThumbnailViewItem( ThumbnailViewItem const & ) = delete; // MSVC workaround + bool isVisible () const { return mbVisible; } void show (bool bVisible); @@ -115,7 +119,7 @@ public: void setTitle (const OUString& rTitle); - css::uno::Reference< css::accessibility::XAccessible > const & + rtl::Reference< ThumbnailViewItemAcc > const & GetAccessible( bool bIsTransientChildrenDisabled ); void setDrawArea (const tools::Rectangle &area); |