diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2014-10-16 08:12:19 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2014-10-16 08:13:33 +0200 |
commit | aef6ab2098f065f1cee102538776dd99d9db3b0f (patch) | |
tree | a7521309cb9263e07e3f62c498b2cca4432d052a /include/tools | |
parent | d2ed493a4c0285ff711fcbb86abe6f7025cfd072 (diff) |
Strip svidl down to what is still used
...the generated .ilb, .lst, and .sid outputs requested by SdiTarget were
apparently unused.
Change-Id: I1abb2abc7945070451fce4a98a11d955515e3f63
Diffstat (limited to 'include/tools')
-rw-r--r-- | include/tools/pstm.hxx | 48 |
1 files changed, 0 insertions, 48 deletions
diff --git a/include/tools/pstm.hxx b/include/tools/pstm.hxx index fc5f65995bdf..d5b1572250f6 100644 --- a/include/tools/pstm.hxx +++ b/include/tools/pstm.hxx @@ -98,54 +98,6 @@ public: TOOLS_DLLPUBLIC friend SvPersistStream& operator >> ( SvPersistStream & rStm, SvPersistBase *& rpObj ); }; -typedef tools::SvRef<SvPersistBase> SvPersistBaseRef; - -class SvPersistListWriteable -{ -public: - virtual ~SvPersistListWriteable() {} - virtual size_t size() const = 0; - virtual SvPersistBase* GetPersistBase(size_t idx) const = 0; -}; - -class SvPersistListReadable -{ -public: - virtual ~SvPersistListReadable() {} - virtual void push_back(SvPersistBase* p) = 0; -}; - -void TOOLS_DLLPUBLIC WritePersistListObjects(const SvPersistListWriteable& rList, SvPersistStream & rStm, bool bOnlyStreamed = false ); - -void TOOLS_DLLPUBLIC ReadObjects( SvPersistListReadable& rLst, SvPersistStream & rStm); - -// <T> has to be a subtype of "SvPersistBase*" -template<typename T> -class SvDeclPersistList : public SvRefMemberList<T>, - public SvPersistListWriteable, - public SvPersistListReadable -{ -public: - // implement the reader/writer adapter methods - size_t size() const SAL_OVERRIDE { return SvRefMemberList<T>::size(); } - SvPersistBase* GetPersistBase(size_t idx) const SAL_OVERRIDE { return SvRefMemberList<T>::operator[](idx); } - void push_back(SvPersistBase* p) SAL_OVERRIDE { SvRefMemberList<T>::push_back(static_cast<T>(p)); } - void WriteObjects(SvPersistStream & rStm, bool bOnlyStreamed ) const { WritePersistListObjects(*this, rStm, bOnlyStreamed); } -}; - -template<typename T> -SvPersistStream& WriteSvDeclPersistList(SvPersistStream &rStm, const SvDeclPersistList<T> &rLst) -{ - WritePersistListObjects( rLst, rStm ); - return rStm; -}; - -template<typename T> -SvPersistStream& operator >> (SvPersistStream &rStm, SvDeclPersistList<T> &rLst) -{ - ReadObjects( rLst, rStm ); - return rStm; -}; typedef UniqueIndex<SvPersistBase> SvPersistUIdx; typedef std::map<SvPersistBase*, sal_uIntPtr> PersistBaseMap; |