diff options
Diffstat (limited to 'writerfilter/source/rtftok/rtfvalue.cxx')
-rw-r--r-- | writerfilter/source/rtftok/rtfvalue.cxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/writerfilter/source/rtftok/rtfvalue.cxx b/writerfilter/source/rtftok/rtfvalue.cxx index 5d038828a031..adf7a7781e10 100644 --- a/writerfilter/source/rtftok/rtfvalue.cxx +++ b/writerfilter/source/rtftok/rtfvalue.cxx @@ -223,10 +223,18 @@ RTFValue* RTFValue::Clone() return new RTFValue(m_nValue, m_sValue, *m_pAttributes, *m_pSprms, m_xShape, m_xStream, m_xObject, m_bForceString, *m_pShape); } +RTFValue* RTFValue::CloneWithSprms( + RTFSprms const& rAttributes, RTFSprms const& rSprms) +{ + return new RTFValue(m_nValue, m_sValue, rAttributes, rSprms, m_xShape, m_xStream, m_xObject, m_bForceString, *m_pShape); +} + bool RTFValue::equals(RTFValue& rOther) { if (m_nValue != rOther.m_nValue) return false; + if (m_sValue != rOther.m_sValue) + return false; if (m_pAttributes->size() != rOther.m_pAttributes->size()) return false; else if (!m_pAttributes->equals(rOther)) |