Kaydet (Commit) 0ae2fe26 authored tarafından Miklos Vajna's avatar Miklos Vajna

writerfilter: remove unused DffOPTHandler in doctok

Change-Id: Ie067a77b7d61f59117826ab21c979688c1e3c2df
üst 2f75a279
......@@ -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;
}
......
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