12#include <com/sun/star/embed/XEmbeddedObject.hpp>
18RTFValue::RTFValue(
int nValue, OUString sValue,
const RTFSprms* pAttributes,
const RTFSprms* pSprms,
19 uno::Reference<drawing::XShape> xShape, uno::Reference<io::XInputStream> xStream,
20 uno::Reference<embed::XEmbeddedObject> xObject,
bool bForceString,
21 const RTFShape* pShape,
const RTFPicture* pPicture)
23 , m_sValue(
std::move(sValue))
24 , m_xShape(
std::move(xShape))
26 , m_xObject(
std::move(xObject))
27 , m_bForceString(bForceString)
30 m_pAttributes =
new RTFSprms(*pAttributes);
32 m_pSprms =
new RTFSprms(*pSprms);
34 m_pShape =
new RTFShape(*pShape);
36 m_pPicture =
new RTFPicture(*pPicture);
39RTFValue::RTFValue() {}
41RTFValue::RTFValue(
int nValue)
47 : m_sValue(
std::move(sValue))
48 , m_bForceString(bForce)
53 : m_pAttributes(new
RTFSprms(rAttributes))
58 : m_pAttributes(new
RTFSprms(rAttributes))
64 : m_xShape(
std::move(xShape))
74 : m_xObject(
std::move(xObject))
114 ret <<= static_cast<sal_Int32>(
m_nValue);
148 return std::string(OString::number(
m_nValue));
tools::SvRef< Reference< T > > Pointer_t
Pointer to reference.
Stores the properties of a picture.
Sends RTFSprm instances to DomainMapper.
Stores the properties of a shape.
A list of RTFSprm with a copy constructor that performs a deep copy.
writerfilter::Reference< BinaryObj >::Pointer_t getBinary() override
Returns binary object of this value.
RTFValue * CloneWithSprms(RTFSprms const &rAttributes, RTFSprms const &rSprms) const
css::uno::Reference< css::drawing::XShape > m_xShape
tools::SvRef< RTFShape > m_pShape
tools::SvRef< RTFSprms > m_pAttributes
tools::SvRef< RTFPicture > m_pPicture
RTFSprms & getAttributes() const
css::uno::Any getAny() const override
Returns representation of the value as uno::Any.
RTFShape & getShape() const
void setString(const OUString &sValue)
std::string toString() const override
Returns string representation of this value.
css::uno::Reference< css::embed::XEmbeddedObject > m_xObject
RTFSprms & getSprms() const
tools::SvRef< RTFSprms > m_pSprms
RTFPicture & getPicture() const
int getInt() const override
Returns integer representation of the value.
css::uno::Reference< css::io::XInputStream > m_xStream
OUString getString() const override
Returns string representation of the value.
bool equals(const RTFValue &rOther) const
writerfilter::Reference< Properties >::Pointer_t getProperties() override
Returns properties of this value.
OString OUStringToOString(std::u16string_view str, ConnectionSettings const *settings)
Reference< XStream > m_xStream