LibreOffice Module writerfilter (master) 1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
writerfilter::rtftok::RTFValue Class Reference

Value of an RTF keyword. More...

#include <rtfvalue.hxx>

Inheritance diagram for writerfilter::rtftok::RTFValue:
[legend]
Collaboration diagram for writerfilter::rtftok::RTFValue:
[legend]

Public Types

using Pointer_t = tools::SvRef< RTFValue >
 
- Public Types inherited from writerfilter::Value
typedef tools::SvRef< ValuePointer_t
 Pointer to a value. More...
 

Public Member Functions

 RTFValue ()
 
 RTFValue (int nValue)
 
 RTFValue (OUString sValue, bool bForce=false)
 
 RTFValue (const RTFSprms &rAttributes)
 
 RTFValue (const RTFSprms &rAttributes, const RTFSprms &rSprms)
 
 RTFValue (css::uno::Reference< css::drawing::XShape > xShape)
 
 RTFValue (css::uno::Reference< css::io::XInputStream > xStream)
 
 RTFValue (css::uno::Reference< css::embed::XEmbeddedObject > xObject)
 
 RTFValue (const RTFShape &aShape)
 
 RTFValue (const RTFPicture &rPicture)
 
 ~RTFValue () override
 
void setString (const OUString &sValue)
 
int getInt () const override
 Returns integer representation of the value. More...
 
OUString getString () const override
 Returns string representation of the value. More...
 
css::uno::Any getAny () const override
 Returns representation of the value as uno::Any. More...
 
writerfilter::Reference< Properties >::Pointer_t getProperties () override
 Returns properties of this value. More...
 
writerfilter::Reference< BinaryObj >::Pointer_t getBinary () override
 Returns binary object of this value. More...
 
std::string toString () const override
 Returns string representation of this value. More...
 
RTFValueClone () const
 
RTFValueCloneWithSprms (RTFSprms const &rAttributes, RTFSprms const &rSprms) const
 
RTFSprmsgetAttributes () const
 
RTFSprmsgetSprms () const
 
RTFShapegetShape () const
 
RTFPicturegetPicture () const
 
bool equals (const RTFValue &rOther) const
 
RTFValueoperator= (RTFValue const &rOther)=delete
 
virtual int getInt () const =0
 Returns integer representation of the value. More...
 
virtual OUString getString () const =0
 Returns string representation of the value. More...
 
virtual css::uno::Any getAny () const =0
 Returns representation of the value as uno::Any. More...
 
virtual writerfilter::Reference< Properties >::Pointer_t getProperties ()=0
 Returns properties of this value. More...
 
virtual writerfilter::Reference< BinaryObj >::Pointer_t getBinary ()=0
 Returns binary object of this value. More...
 
virtual std::string toString () const =0
 Returns string representation of this value. More...
 
- Public Member Functions inherited from SvRefBase
 SvRefBase ()
 
 SvRefBase (const SvRefBase &)
 
SvRefBaseoperator= (const SvRefBase &)
 
void RestoreNoDelete ()
 
void AddNextRef ()
 
void AddFirstRef ()
 
void ReleaseRef ()
 
unsigned int GetRefCount () const
 

Private Member Functions

 RTFValue (int nValue, OUString sValue, const RTFSprms *pAttributes, const RTFSprms *pSprms, css::uno::Reference< css::drawing::XShape > xShape, css::uno::Reference< css::io::XInputStream > xStream, css::uno::Reference< css::embed::XEmbeddedObject > xObject, bool bForceString, const RTFShape *pShape, const RTFPicture *pPicture)
 

Private Attributes

int m_nValue = 0
 
OUString m_sValue
 
tools::SvRef< RTFSprmsm_pAttributes
 
tools::SvRef< RTFSprmsm_pSprms
 
css::uno::Reference< css::drawing::XShape > m_xShape
 
css::uno::Reference< css::io::XInputStream > m_xStream
 
css::uno::Reference< css::embed::XEmbeddedObject > m_xObject
 
bool m_bForceString = false
 
tools::SvRef< RTFShapem_pShape
 
tools::SvRef< RTFPicturem_pPicture
 

Additional Inherited Members

- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Value of an RTF keyword.

Definition at line 32 of file rtfvalue.hxx.

Member Typedef Documentation

◆ Pointer_t

Definition at line 41 of file rtfvalue.hxx.

Constructor & Destructor Documentation

◆ RTFValue() [1/11]

writerfilter::rtftok::RTFValue::RTFValue ( int  nValue,
OUString  sValue,
const RTFSprms pAttributes,
const RTFSprms pSprms,
css::uno::Reference< css::drawing::XShape >  xShape,
css::uno::Reference< css::io::XInputStream >  xStream,
css::uno::Reference< css::embed::XEmbeddedObject >  xObject,
bool  bForceString,
const RTFShape pShape,
const RTFPicture pPicture 
)
private

◆ RTFValue() [2/11]

writerfilter::rtftok::RTFValue::RTFValue ( )

Definition at line 39 of file rtfvalue.cxx.

Referenced by Clone(), and CloneWithSprms().

◆ RTFValue() [3/11]

writerfilter::rtftok::RTFValue::RTFValue ( int  nValue)
explicit

Definition at line 41 of file rtfvalue.cxx.

References nValue.

◆ RTFValue() [4/11]

writerfilter::rtftok::RTFValue::RTFValue ( OUString  sValue,
bool  bForce = false 
)

Definition at line 46 of file rtfvalue.cxx.

◆ RTFValue() [5/11]

writerfilter::rtftok::RTFValue::RTFValue ( const RTFSprms rAttributes)
explicit

Definition at line 52 of file rtfvalue.cxx.

◆ RTFValue() [6/11]

writerfilter::rtftok::RTFValue::RTFValue ( const RTFSprms rAttributes,
const RTFSprms rSprms 
)

Definition at line 57 of file rtfvalue.cxx.

◆ RTFValue() [7/11]

writerfilter::rtftok::RTFValue::RTFValue ( css::uno::Reference< css::drawing::XShape >  xShape)
explicit

◆ RTFValue() [8/11]

writerfilter::rtftok::RTFValue::RTFValue ( css::uno::Reference< css::io::XInputStream >  xStream)
explicit

◆ RTFValue() [9/11]

writerfilter::rtftok::RTFValue::RTFValue ( css::uno::Reference< css::embed::XEmbeddedObject >  xObject)
explicit

◆ RTFValue() [10/11]

writerfilter::rtftok::RTFValue::RTFValue ( const RTFShape aShape)
explicit

Definition at line 78 of file rtfvalue.cxx.

◆ RTFValue() [11/11]

writerfilter::rtftok::RTFValue::RTFValue ( const RTFPicture rPicture)
explicit

Definition at line 83 of file rtfvalue.cxx.

◆ ~RTFValue()

writerfilter::rtftok::RTFValue::~RTFValue ( )
overridedefault

Member Function Documentation

◆ Clone()

RTFValue * writerfilter::rtftok::RTFValue::Clone ( ) const

◆ CloneWithSprms()

RTFValue * writerfilter::rtftok::RTFValue::CloneWithSprms ( RTFSprms const &  rAttributes,
RTFSprms const &  rSprms 
) const

◆ equals()

bool writerfilter::rtftok::RTFValue::equals ( const RTFValue rOther) const

Definition at line 164 of file rtfvalue.cxx.

References m_nValue, m_pAttributes, m_pSprms, and m_sValue.

◆ getAny()

uno::Any writerfilter::rtftok::RTFValue::getAny ( ) const
overridevirtual

Returns representation of the value as uno::Any.

Implements writerfilter::Value.

Definition at line 102 of file rtfvalue.cxx.

References m_bForceString, m_nValue, m_sValue, m_xObject, m_xShape, and m_xStream.

◆ getAttributes()

RTFSprms & writerfilter::rtftok::RTFValue::getAttributes ( ) const

Definition at line 206 of file rtfvalue.cxx.

References m_pAttributes.

Referenced by getProperties().

◆ getBinary()

writerfilter::Reference< BinaryObj >::Pointer_t writerfilter::rtftok::RTFValue::getBinary ( )
overridevirtual

Returns binary object of this value.

Implements writerfilter::Value.

Definition at line 137 of file rtfvalue.cxx.

◆ getInt()

int writerfilter::rtftok::RTFValue::getInt ( ) const
overridevirtual

Returns integer representation of the value.

Implements writerfilter::Value.

Definition at line 90 of file rtfvalue.cxx.

References m_nValue.

◆ getPicture()

RTFPicture & writerfilter::rtftok::RTFValue::getPicture ( ) const

Definition at line 125 of file rtfvalue.cxx.

References m_pPicture.

◆ getProperties()

writerfilter::Reference< Properties >::Pointer_t writerfilter::rtftok::RTFValue::getProperties ( )
overridevirtual

Returns properties of this value.

Implements writerfilter::Value.

Definition at line 132 of file rtfvalue.cxx.

References getAttributes(), and getSprms().

◆ getShape()

RTFShape & writerfilter::rtftok::RTFValue::getShape ( ) const

Definition at line 118 of file rtfvalue.cxx.

References m_pShape.

◆ getSprms()

RTFSprms & writerfilter::rtftok::RTFValue::getSprms ( ) const

Definition at line 213 of file rtfvalue.cxx.

References m_pSprms.

Referenced by getProperties().

◆ getString()

OUString writerfilter::rtftok::RTFValue::getString ( ) const
overridevirtual

Returns string representation of the value.

Implements writerfilter::Value.

Definition at line 92 of file rtfvalue.cxx.

References m_bForceString, m_nValue, and m_sValue.

◆ operator=()

RTFValue & writerfilter::rtftok::RTFValue::operator= ( RTFValue const &  rOther)
delete

◆ setString()

void writerfilter::rtftok::RTFValue::setString ( const OUString &  sValue)

Definition at line 100 of file rtfvalue.cxx.

References m_sValue.

◆ toString()

std::string writerfilter::rtftok::RTFValue::toString ( ) const
overridevirtual

Returns string representation of this value.

Implements writerfilter::Value.

Definition at line 143 of file rtfvalue.cxx.

References m_bForceString, m_nValue, m_sValue, and OUStringToOString().

Member Data Documentation

◆ m_bForceString

bool writerfilter::rtftok::RTFValue::m_bForceString = false
private

Definition at line 79 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), getAny(), getString(), and toString().

◆ m_nValue

int writerfilter::rtftok::RTFValue::m_nValue = 0
private

Definition at line 72 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), equals(), getAny(), getInt(), getString(), and toString().

◆ m_pAttributes

tools::SvRef<RTFSprms> writerfilter::rtftok::RTFValue::m_pAttributes
mutableprivate

Definition at line 74 of file rtfvalue.hxx.

Referenced by Clone(), equals(), and getAttributes().

◆ m_pPicture

tools::SvRef<RTFPicture> writerfilter::rtftok::RTFValue::m_pPicture
mutableprivate

Definition at line 81 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), and getPicture().

◆ m_pShape

tools::SvRef<RTFShape> writerfilter::rtftok::RTFValue::m_pShape
mutableprivate

Definition at line 80 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), and getShape().

◆ m_pSprms

tools::SvRef<RTFSprms> writerfilter::rtftok::RTFValue::m_pSprms
mutableprivate

Definition at line 75 of file rtfvalue.hxx.

Referenced by Clone(), equals(), and getSprms().

◆ m_sValue

OUString writerfilter::rtftok::RTFValue::m_sValue
private

Definition at line 73 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), equals(), getAny(), getString(), setString(), and toString().

◆ m_xObject

css::uno::Reference<css::embed::XEmbeddedObject> writerfilter::rtftok::RTFValue::m_xObject
private

Definition at line 78 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), and getAny().

◆ m_xShape

css::uno::Reference<css::drawing::XShape> writerfilter::rtftok::RTFValue::m_xShape
private

Definition at line 76 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), and getAny().

◆ m_xStream

css::uno::Reference<css::io::XInputStream> writerfilter::rtftok::RTFValue::m_xStream
private

Definition at line 77 of file rtfvalue.hxx.

Referenced by Clone(), CloneWithSprms(), and getAny().


The documentation for this class was generated from the following files: