Kaydet (Commit) d10a61fe authored tarafından Varun Dhall's avatar Varun Dhall Kaydeden (comit) Michael Stahl

Removing unused SfxItemPool serialisation from sfx2

Change-Id: Ibb14fcd656f401cb9d2ad57ab63f6cfecf49807d
Reviewed-on: https://gerrit.libreoffice.org/40814Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
üst 544a9781
......@@ -81,8 +81,6 @@ public:
OUString &rText,
const IntlWrapper& ) const override;
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual SfxPoolItem* Create(SvStream &, sal_uInt16) const override;
virtual SvStream& Store(SvStream &, sal_uInt16 nItemVersion ) const override;
virtual sal_uInt16 GetVersion( sal_uInt16 nFileFormatVersion ) const override;
const SfxEventNamesList& GetEvents() const { return aEventsList;}
......
......@@ -72,8 +72,6 @@ public:
void SetType( SvxZoomType eNewType ) { eType = eNewType; }
virtual SfxPoolItem* Clone( SfxItemPool *pPool = nullptr ) const override;
virtual SfxPoolItem* Create( SvStream& rStrm, sal_uInt16 nVersion ) const override;
virtual SvStream& Store( SvStream& rStrm , sal_uInt16 nItemVersion ) const override;
virtual bool operator==( const SfxPoolItem& ) const override;
virtual bool QueryValue( css::uno::Any& rVal, sal_uInt8 nMemberId = 0 ) const override;
virtual bool PutValue( const css::uno::Any& rVal, sal_uInt8 nMemberId ) override;
......
......@@ -108,18 +108,6 @@ SfxPoolItem* SfxEventNamesItem::Clone( SfxItemPool *) const
return new SfxEventNamesItem(*this);
}
SfxPoolItem* SfxEventNamesItem::Create(SvStream &, sal_uInt16) const
{
OSL_FAIL("not streamable!");
return new SfxEventNamesItem(Which());
}
SvStream& SfxEventNamesItem::Store(SvStream &rStream, sal_uInt16 ) const
{
OSL_FAIL("not streamable!");
return rStream;
}
sal_uInt16 SfxEventNamesItem::GetVersion( sal_uInt16 ) const
{
OSL_FAIL("not streamable!");
......
......@@ -66,27 +66,6 @@ SfxPoolItem* SvxZoomItem::Clone( SfxItemPool * /*pPool*/ ) const
}
SfxPoolItem* SvxZoomItem::Create( SvStream& rStrm, sal_uInt16 /*nVersion*/ ) const
{
sal_uInt16 nValue;
sal_uInt16 nValSet;
sal_Int8 nType;
rStrm.ReadUInt16( nValue ).ReadUInt16( nValSet ).ReadSChar( nType );
SvxZoomItem* pNew = new SvxZoomItem( (SvxZoomType)nType, nValue, Which() );
pNew->SetValueSet( static_cast<SvxZoomEnableFlags>(nValSet) );
return pNew;
}
SvStream& SvxZoomItem::Store( SvStream& rStrm, sal_uInt16 /*nItemVersion*/ ) const
{
rStrm.WriteUInt16( GetValue() )
.WriteUInt16( static_cast<sal_uInt16>(nValueSet) )
.WriteSChar( static_cast<int>(eType) );
return rStrm;
}
bool SvxZoomItem::operator==( const SfxPoolItem& rAttr ) const
{
assert(SfxPoolItem::operator==(rAttr));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment