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 <caolanm@redhat.com>
diff --git a/include/sfx2/objitem.hxx b/include/sfx2/objitem.hxx
index 7fb199c..17b7f0c 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 7165a47..e776e66 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: */