LibreOffice Module writerfilter (master) 1
Public Types | Public Member Functions | Private Attributes | List of all members
writerfilter::ooxml::OOXMLProperty Class Referencefinal

#include <OOXMLPropertySet.hxx>

Inheritance diagram for writerfilter::ooxml::OOXMLProperty:
[legend]
Collaboration diagram for writerfilter::ooxml::OOXMLProperty:
[legend]

Public Types

enum  Type_t {
  SPRM ,
  ATTRIBUTE
}
 
typedef tools::SvRef< OOXMLPropertyPointer_t
 
- Public Types inherited from writerfilter::Sprm
typedef tools::SvRef< SprmPointer_t
 

Public Member Functions

 OOXMLProperty (Id id, OOXMLValue::Pointer_t pValue, Type_t eType)
 
 OOXMLProperty (const OOXMLProperty &rSprm)=delete
 
virtual ~OOXMLProperty () override
 
sal_uInt32 getId () const override
 Returns id of the SPRM. More...
 
Value::Pointer_t getValue () override
 Returns value of the SPRM. More...
 
writerfilter::Reference< Properties >::Pointer_t getProps () override
 Returns reference to properties contained in the SPRM. More...
 
std::string getName () const override
 Returns name of sprm. More...
 
std::string toString () const override
 Returns string representation of sprm. More...
 
void resolve (Properties &rProperties)
 
virtual sal_uInt32 getId () const =0
 Returns id of the SPRM. More...
 
virtual Value::Pointer_t getValue ()=0
 Returns value of the SPRM. More...
 
virtual writerfilter::Reference< Properties >::Pointer_t getProps ()=0
 Returns reference to properties contained in the SPRM. More...
 
virtual std::string getName () const =0
 Returns name of sprm. More...
 
virtual std::string toString () const =0
 Returns string representation of sprm. 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 Attributes

Id mId
 
OOXMLValue::Pointer_t mpValue
 
Type_t meType
 

Additional Inherited Members

- Protected Member Functions inherited from writerfilter::Sprm
 ~Sprm () override
 
- Protected Member Functions inherited from SvRefBase
virtual ~SvRefBase () COVERITY_NOEXCEPT_FALSE
 

Detailed Description

Definition at line 52 of file OOXMLPropertySet.hxx.

Member Typedef Documentation

◆ Pointer_t

Definition at line 55 of file OOXMLPropertySet.hxx.

Member Enumeration Documentation

◆ Type_t

Enumerator
SPRM 
ATTRIBUTE 

Definition at line 56 of file OOXMLPropertySet.hxx.

Constructor & Destructor Documentation

◆ OOXMLProperty() [1/2]

writerfilter::ooxml::OOXMLProperty::OOXMLProperty ( Id  id,
OOXMLValue::Pointer_t  pValue,
OOXMLProperty::Type_t  eType 
)

Definition at line 34 of file OOXMLPropertySet.cxx.

References eType, and meType.

◆ OOXMLProperty() [2/2]

writerfilter::ooxml::OOXMLProperty::OOXMLProperty ( const OOXMLProperty rSprm)
delete

◆ ~OOXMLProperty()

writerfilter::ooxml::OOXMLProperty::~OOXMLProperty ( )
overridevirtual

Definition at line 40 of file OOXMLPropertySet.cxx.

Member Function Documentation

◆ getId()

sal_uInt32 writerfilter::ooxml::OOXMLProperty::getId ( ) const
overridevirtual

Returns id of the SPRM.

Implements writerfilter::Sprm.

Definition at line 44 of file OOXMLPropertySet.cxx.

References mId.

◆ getName()

std::string writerfilter::ooxml::OOXMLProperty::getName ( ) const
overridevirtual

Returns name of sprm.

Implements writerfilter::Sprm.

Definition at line 72 of file OOXMLPropertySet.cxx.

References writerfilter::ooxml::fastTokenToId(), mId, and writerfilter::QNameToString().

Referenced by toString().

◆ getProps()

writerfilter::Reference< Properties >::Pointer_t writerfilter::ooxml::OOXMLProperty::getProps ( )
overridevirtual

Returns reference to properties contained in the SPRM.

Implements writerfilter::Sprm.

Definition at line 61 of file OOXMLPropertySet.cxx.

References mpValue.

◆ getValue()

Value::Pointer_t writerfilter::ooxml::OOXMLProperty::getValue ( )
overridevirtual

Returns value of the SPRM.

Implements writerfilter::Sprm.

Definition at line 49 of file OOXMLPropertySet.cxx.

References mpValue.

Referenced by resolve().

◆ resolve()

void writerfilter::ooxml::OOXMLProperty::resolve ( writerfilter::Properties rProperties)

◆ toString()

std::string writerfilter::ooxml::OOXMLProperty::toString ( ) const
overridevirtual

Returns string representation of sprm.

Implements writerfilter::Sprm.

Definition at line 92 of file OOXMLPropertySet.cxx.

References getName(), and mpValue.

Member Data Documentation

◆ meType

Type_t writerfilter::ooxml::OOXMLProperty::meType
private

Definition at line 65 of file OOXMLPropertySet.hxx.

Referenced by resolve().

◆ mId

Id writerfilter::ooxml::OOXMLProperty::mId
private

Definition at line 63 of file OOXMLPropertySet.hxx.

Referenced by getId(), getName(), and resolve().

◆ mpValue

OOXMLValue::Pointer_t writerfilter::ooxml::OOXMLProperty::mpValue
mutableprivate

Definition at line 64 of file OOXMLPropertySet.hxx.

Referenced by getProps(), getValue(), and toString().


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