diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-04 20:45:36 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2013-11-04 20:48:52 +0100 |
commit | 0ae2fe26d06d957f7dc93cdc24ee22f266e36093 (patch) | |
tree | 8d8b20181138f560f3fb18cc8019107b04787fea | |
parent | 2f75a279ccff70aa276e16e8c709c8b4b2924103 (diff) |
writerfilter: remove unused DffOPTHandler in doctok
Change-Id: Ie067a77b7d61f59117826ab21c979688c1e3c2df
-rw-r--r-- | writerfilter/source/doctok/Dff.cxx | 60 |
1 files changed, 0 insertions, 60 deletions
diff --git a/writerfilter/source/doctok/Dff.cxx b/writerfilter/source/doctok/Dff.cxx index a2dd0777c2f5..1c71787a24cb 100644 --- a/writerfilter/source/doctok/Dff.cxx +++ b/writerfilter/source/doctok/Dff.cxx @@ -198,70 +198,10 @@ sal_uInt32 DffRecord::getShapeId() return nResult; } -class DffOPTHandler : public Properties -{ - map<int, WW8ValueSharedPointer_t> mMap; - int nId; - -public: - DffOPTHandler() : nId(0) {} - virtual ~DffOPTHandler() {} - - virtual void attribute(Id name, Value & val) - { - switch (name) - { - case NS_rtf::LN_shppid: - nId = val.getInt(); - break; - case NS_rtf::LN_shpvalue: - { - WW8Value & rTmpVal = dynamic_cast<WW8Value &>(val); - WW8ValueSharedPointer_t - pVal(dynamic_cast<WW8Value *>(rTmpVal.clone())); - mMap[nId] = pVal; - } - } - } - - virtual void sprm(Sprm & /*sprm_*/) - { - } - - WW8ValueSharedPointer_t & getValue(int nId_) - { - return mMap[nId_]; - } - -}; - sal_uInt32 DffRecord::getShapeBid() { sal_uInt32 nResult = 0; - if (getShapeType() == 75) - { - Records_t aRecords = findRecords(0xf00b); - - if (!aRecords.empty()) - { - DffOPTHandler aHandler; - DffOPT * pOpts = dynamic_cast<DffOPT*>((*aRecords.begin()).get()); - - sal_uInt32 nCount = pOpts->get_property_count(); - - for (sal_uInt32 n = 0; n < nCount; ++n) - { - pOpts->get_property(n)->resolve(aHandler); - } - - WW8ValueSharedPointer_t pVal = aHandler.getValue(260); - - if (pVal.get() != NULL) - nResult = pVal->getInt(); - } - } - return nResult; } |