MWAWEmbeddedObject Struct Reference

small class use to define a embedded object More...

#include <libmwaw_internal.hxx>

Public Member Functions

 MWAWEmbeddedObject ()
 empty constructor
 
 MWAWEmbeddedObject (librevenge::RVNGBinaryData const &binaryData, std::string const &type="image/pict")
 constructor
 
 MWAWEmbeddedObject (MWAWEmbeddedObject const &)=default
 
MWAWEmbeddedObjectoperator= (MWAWEmbeddedObject const &)=default
 
MWAWEmbeddedObjectoperator= (MWAWEmbeddedObject &&)=default
 
 ~MWAWEmbeddedObject ()
 destructor
 
bool isEmpty () const
 return true if the picture contains no data
 
void add (librevenge::RVNGBinaryData const &binaryData, std::string const &type="image/pict")
 add a picture
 
bool addTo (librevenge::RVNGPropertyList &propList) const
 add the link property to proplist
 
int cmp (MWAWEmbeddedObject const &pict) const
 a comparison function
 

Public Attributes

std::vector< librevenge::RVNGBinaryData > m_dataList
 the picture content: one data by representation
 
std::vector< std::string > m_typeList
 the picture type: one type by representation
 

Friends

std::ostream & operator<< (std::ostream &o, MWAWEmbeddedObject const &pict)
 operator<<
 

Detailed Description

small class use to define a embedded object

Note
mainly used to store picture

Constructor & Destructor Documentation

◆ MWAWEmbeddedObject() [1/3]

MWAWEmbeddedObject::MWAWEmbeddedObject ( )
inline

empty constructor

◆ MWAWEmbeddedObject() [2/3]

MWAWEmbeddedObject::MWAWEmbeddedObject ( librevenge::RVNGBinaryData const &  binaryData,
std::string const &  type = "image/pict" 
)
inline

constructor

◆ MWAWEmbeddedObject() [3/3]

MWAWEmbeddedObject::MWAWEmbeddedObject ( MWAWEmbeddedObject const &  )
default

◆ ~MWAWEmbeddedObject()

MWAWEmbeddedObject::~MWAWEmbeddedObject ( )

destructor

Member Function Documentation

◆ add()

void MWAWEmbeddedObject::add ( librevenge::RVNGBinaryData const &  binaryData,
std::string const &  type = "image/pict" 
)
inline

◆ addTo()

bool MWAWEmbeddedObject::addTo ( librevenge::RVNGPropertyList &  propList) const

◆ cmp()

int MWAWEmbeddedObject::cmp ( MWAWEmbeddedObject const &  pict) const

a comparison function

Referenced by MWAWGraphicStyle::Pattern::cmp().

◆ isEmpty()

◆ operator=() [1/2]

MWAWEmbeddedObject & MWAWEmbeddedObject::operator= ( MWAWEmbeddedObject &&  )
default

◆ operator=() [2/2]

MWAWEmbeddedObject & MWAWEmbeddedObject::operator= ( MWAWEmbeddedObject const &  )
default

Friends And Related Function Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream &  o,
MWAWEmbeddedObject const &  pict 
)
friend

operator<<

Member Data Documentation

◆ m_dataList

◆ m_typeList

std::vector<std::string> MWAWEmbeddedObject::m_typeList

the picture type: one type by representation

Referenced by add(), MWAWGraphicStyle::addTo(), addTo(), and cmp().


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

Generated on Thu Jan 19 2023 00:00:00 for libmwaw by doxygen 1.9.6