Kaydet (Commit) 3093732c authored tarafından Arnaud Versini's avatar Arnaud Versini Kaydeden (comit) Noel Grandin

basic: SbxBase should be abstract

Change-Id: Ief4297e5c64cfb29645463aca3cc677dc06fc95a
Reviewed-on: https://gerrit.libreoffice.org/28112Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noelgrandin@gmail.com>
üst f8f68042
...@@ -78,10 +78,6 @@ SbxClassType SbxBase::GetClass() const ...@@ -78,10 +78,6 @@ SbxClassType SbxBase::GetClass() const
return SbxClassType::DontCare; return SbxClassType::DontCare;
} }
void SbxBase::Clear()
{
}
bool SbxBase::IsFixed() const bool SbxBase::IsFixed() const
{ {
return IsSet( SbxFlagBits::Fixed ); return IsSet( SbxFlagBits::Fixed );
...@@ -268,16 +264,6 @@ bool SbxBase::Store( SvStream& rStrm ) ...@@ -268,16 +264,6 @@ bool SbxBase::Store( SvStream& rStrm )
return true; return true;
} }
bool SbxBase::LoadData( SvStream&, sal_uInt16 )
{
return false;
}
bool SbxBase::StoreData( SvStream& ) const
{
return false;
}
bool SbxBase::LoadCompleted() bool SbxBase::LoadCompleted()
{ {
return true; return true;
......
...@@ -38,14 +38,13 @@ class SvStream; ...@@ -38,14 +38,13 @@ class SvStream;
virtual sal_uInt16 GetVersion() const override { return nVer; } \ virtual sal_uInt16 GetVersion() const override { return nVer; } \
virtual sal_uInt16 GetSbxId() const override { return nSbxId; } virtual sal_uInt16 GetSbxId() const override { return nSbxId; }
class SbxBase;
class SbxFactory; class SbxFactory;
class SbxObject; class SbxObject;
class BASIC_DLLPUBLIC SbxBase : virtual public SvRefBase class BASIC_DLLPUBLIC SbxBase : virtual public SvRefBase
{ {
virtual bool LoadData( SvStream&, sal_uInt16 ); virtual bool LoadData( SvStream&, sal_uInt16 ) = 0;
virtual bool StoreData( SvStream& ) const; virtual bool StoreData( SvStream& ) const = 0;
protected: protected:
SbxFlagBits nFlags; // Flag-Bits SbxFlagBits nFlags; // Flag-Bits
...@@ -54,9 +53,9 @@ protected: ...@@ -54,9 +53,9 @@ protected:
SbxBase& operator=( const SbxBase& ); SbxBase& operator=( const SbxBase& );
virtual ~SbxBase(); virtual ~SbxBase();
virtual sal_uInt32 GetCreator() const { return 0; } virtual sal_uInt32 GetCreator() const = 0 ;
virtual sal_uInt16 GetVersion() const { return 0; } virtual sal_uInt16 GetVersion() const = 0;
virtual sal_uInt16 GetSbxId() const { return 0; } virtual sal_uInt16 GetSbxId() const = 0;
public: public:
inline void SetFlags( SbxFlagBits n ); inline void SetFlags( SbxFlagBits n );
...@@ -77,7 +76,7 @@ public: ...@@ -77,7 +76,7 @@ public:
virtual SbxDataType GetType() const; virtual SbxDataType GetType() const;
virtual SbxClassType GetClass() const; virtual SbxClassType GetClass() const;
virtual void Clear(); virtual void Clear() = 0;
static SbxBase* Load( SvStream& ); static SbxBase* Load( SvStream& );
bool Store( SvStream& ); bool Store( SvStream& );
......
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