include/sfx2/objitem.hxx    |    3 +++
 sfx2/source/doc/objitem.cxx |   10 ++++++++++
 2 files changed, 13 insertions(+)

New commits:
commit 8fb4889840a6c79f6bad7bb7a322d86b751cdd93
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Mon Oct 11 14:12:48 2021 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Mon Oct 11 17:10:10 2021 +0200

    Related: tdf#145033 don't print "There is no implementation..." warning
    
    don't output "There is no implementation for QueryValue for this item!"
    for SfxObjectItem
    
    Change-Id: Ib4b944efa7e9d152d662ed447d8c02ec24d58391
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/123392
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/include/sfx2/objitem.hxx b/include/sfx2/objitem.hxx
index 7fb199c88ab1..17b7f0cf1de2 100644
--- a/include/sfx2/objitem.hxx
+++ b/include/sfx2/objitem.hxx
@@ -36,6 +36,9 @@ public:
     virtual bool             operator==( const SfxPoolItem& ) const override;
     virtual SfxObjectItem*   Clone( SfxItemPool *pPool = nullptr ) const 
override;
 
+    virtual bool             QueryValue(css::uno::Any&, sal_uInt8 nMemberId = 
0) const override;
+    virtual bool             PutValue(const css::uno::Any&, sal_uInt8) 
override;
+
     SfxShell*                GetShell() const
                              { return _pSh; }
 };
diff --git a/sfx2/source/doc/objitem.cxx b/sfx2/source/doc/objitem.cxx
index 7165a475e291..e776e6608788 100644
--- a/sfx2/source/doc/objitem.cxx
+++ b/sfx2/source/doc/objitem.cxx
@@ -84,4 +84,14 @@ SfxObjectItem* SfxObjectItem::Clone( SfxItemPool *) const
     return new SfxObjectItem( *this );
 }
 
+bool SfxObjectItem::QueryValue(css::uno::Any&, sal_uInt8) const
+{
+    return false;
+}
+
+bool SfxObjectItem::PutValue(const css::uno::Any&, sal_uInt8)
+{
+  return false;
+}
+
 /* vim:set shiftwidth=4 softtabstop=4 expandtab: */

Reply via email to