From 2367cfe03fa3e6be055fc65bed33faed108478ed Mon Sep 17 00:00:00 2001 From: Miklos Vajna Date: Fri, 25 Oct 2013 21:33:40 +0200 Subject: writerfilter: unused WW8SttbTableResource class Change-Id: I54d7dc0f4dfac803ba6c474c36d22607d7da2e5b --- writerfilter/source/doctok/WW8Sttbf.cxx | 27 --------------------------- writerfilter/source/doctok/WW8Sttbf.hxx | 13 ------------- 2 files changed, 40 deletions(-) diff --git a/writerfilter/source/doctok/WW8Sttbf.cxx b/writerfilter/source/doctok/WW8Sttbf.cxx index 68b1c92cb4f5..8f586d25285b 100644 --- a/writerfilter/source/doctok/WW8Sttbf.cxx +++ b/writerfilter/source/doctok/WW8Sttbf.cxx @@ -68,33 +68,6 @@ OUString WW8Sttbf::getEntry(sal_uInt32 nPos) const return getString(getEntryOffset(nPos)); } -WW8SttbTableResource::WW8SttbTableResource(WW8Sttbf::Pointer_t pSttbf) -: mpSttbf(pSttbf) -{ -} - -WW8SttbTableResource::~WW8SttbTableResource() -{ -} - -void WW8SttbTableResource::resolve(Table & rTable) -{ - sal_uInt32 nCount = mpSttbf->getEntryCount(); - - for (sal_uInt32 n = 0; n < nCount; n++) - { - WW8StringValue::Pointer_t pVal(new WW8StringValue(mpSttbf->getEntry(n))); - ::writerfilter::Reference::Pointer_t pProps(new WW8StringProperty(0, pVal)); - - rTable.entry(n, pProps); - } -} - -string WW8SttbTableResource::getType() const -{ - return "WW8SttbTableResource"; -} - SAL_WNODEPRECATED_DECLARATIONS_PUSH WW8StringProperty::WW8StringProperty(sal_uInt32 nId, WW8StringValue::Pointer_t pValue) : mnId(nId), mpValue(pValue) diff --git a/writerfilter/source/doctok/WW8Sttbf.hxx b/writerfilter/source/doctok/WW8Sttbf.hxx index 8f588424bde7..81add1cfb283 100644 --- a/writerfilter/source/doctok/WW8Sttbf.hxx +++ b/writerfilter/source/doctok/WW8Sttbf.hxx @@ -79,19 +79,6 @@ public: OUString getEntry(sal_uInt32 nPos) const; }; -class WW8SttbTableResource : public ::writerfilter::Reference -{ - WW8Sttbf::Pointer_t mpSttbf; - -public: - WW8SttbTableResource(WW8Sttbf::Pointer_t pSttbf); - virtual ~WW8SttbTableResource(); - - void resolve(Table & rTable); - - string getType() const; -}; - class WW8StringProperty : public ::writerfilter::Reference { sal_uInt32 mnId; -- cgit