StarObjectSmallGraphicInternal::SdrGraphic Class Reference documentation

Public Member Functions | Static Public Member Functions | Public Attributes | Friends | List of all members
StarObjectSmallGraphicInternal::SdrGraphic Class Reference

Internal: virtual class to store a Sdr graphic. More...

Inheritance diagram for StarObjectSmallGraphicInternal::SdrGraphic:

## Public Member Functions
| SdrGraphic (int id)
| constructor More...
| ~SdrGraphic () override
| destructor More...
std::string | getName () const override
| return the object name More...
void | updateStyle (StarState &state, STOFFListenerPtr) const
| try to update the graphic style More...
std::string | print () const override
| basic print function More...
Public Member Functions inherited from StarObjectSmallGraphicInternal::Graphic
| Graphic (int id)
| constructor More...
virtual | ~Graphic ()
| destructor More...
virtual bool | send (STOFFListenerPtr, STOFFPosition const &, StarObject &, bool)
| try to send the graphic to the listener More...

## Static Public Member Functions
static std::shared_ptr< StarItemPool > | getPool (StarObject &object)
| return a pool corresponding to an object More...

## Public Attributes
STOFFBox2i | m_bdbox
| the bdbox More...
int | m_layerId
| the layer id More...
STOFFVec2i | m_anchorPosition
| the anchor position More...
std::vector< GluePoint > | m_polygon
| a polygon More...
bool | m_flags [6]
| a list of flag More...
Public Attributes inherited from StarObjectSmallGraphicInternal::Graphic
int | m_identifier
| the type More...

## Friends
std::ostream & | operator<< (std::ostream &o, SdrGraphic const &graph)
| print object data More...

## Detailed Description

Internal: virtual class to store a Sdr graphic.

## Constructor & Destructor Documentation

## ◆ SdrGraphic()

StarObjectSmallGraphicInternal::SdrGraphic::SdrGraphic | ( | int | id | ) |
| inlineexplicit

constructor

## ◆ ~SdrGraphic()

StarObjectSmallGraphicInternal::SdrGraphic::~SdrGraphic | ( |  | ) |
| override

destructor

## Member Function Documentation

## ◆ getName()

std::string StarObjectSmallGraphicInternal::SdrGraphic::getName | ( |  | ) | const
| inlineoverridevirtual

return the object name

Implements StarObjectSmallGraphicInternal::Graphic.

## ◆ getPool()

static std::shared_ptr<StarItemPool> StarObjectSmallGraphicInternal::SdrGraphic::getPool | ( | StarObject & | object | ) |
| inlinestatic

return a pool corresponding to an object

Referenced by StarObjectSmallGraphicInternal::SdrGraphicRect::send(), StarObjectSmallGraphicInternal::SdrGraphicCaption::send(), StarObjectSmallGraphicInternal::SdrGraphicCircle::send(), StarObjectSmallGraphicInternal::SdrGraphicEdge::send(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicMeasure::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), StarObjectSmallGraphicInternal::SdrGraphicPath::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().

## ◆ print()

std::string StarObjectSmallGraphicInternal::SdrGraphic::print | ( |  | ) | const
| inlineoverridevirtual

basic print function

Reimplemented from StarObjectSmallGraphicInternal::Graphic.

Reimplemented in StarObjectSmallGraphicInternal::SdrGraphicUno, StarObjectSmallGraphicInternal::SdrGraphicPath, StarObjectSmallGraphicInternal::SdrGraphicPage, StarObjectSmallGraphicInternal::SdrGraphicOLE, StarObjectSmallGraphicInternal::SdrGraphicMeasure, StarObjectSmallGraphicInternal::SdrGraphicGraph, StarObjectSmallGraphicInternal::SdrGraphicEdge, StarObjectSmallGraphicInternal::SdrGraphicCircle, StarObjectSmallGraphicInternal::SdrGraphicCaption, StarObjectSmallGraphicInternal::SdrGraphicRect, StarObjectSmallGraphicInternal::SdrGraphicText, StarObjectSmallGraphicInternal::SdrGraphicGroup, and StarObjectSmallGraphicInternal::SdrGraphicAttribute.

Referenced by StarObjectSmallGraphicInternal::SdrGraphicAttribute::print(), StarObjectSmallGraphicInternal::SdrGraphicGroup::print(), and StarObjectSmallGraphicInternal::SdrGraphicPage::print().

## ◆ updateStyle()

void StarObjectSmallGraphicInternal::SdrGraphic::updateStyle | ( | StarState & | state,
|  | STOFFListenerPtr |
| ) |  | const
| inline

try to update the graphic style

Referenced by StarObjectSmallGraphicInternal::SdrGraphicAttribute::updateStyle().

## Friends And Related Function Documentation

## ◆ operator<<

std::ostream& operator<< | ( | std::ostream & | o,
|  | SdrGraphic const & | graph
| ) |  |
| friend

print object data

## Member Data Documentation

## ◆ m_anchorPosition

STOFFVec2i StarObjectSmallGraphicInternal::SdrGraphic::m_anchorPosition

the anchor position

Referenced by StarObjectSmallGraphic::readSVDRObjectHeader().

## ◆ m_bdbox

STOFFBox2i StarObjectSmallGraphicInternal::SdrGraphic::m_bdbox

the bdbox

Referenced by StarObjectSmallGraphic::readSVDRObjectHeader(), StarObjectSmallGraphicInternal::SdrGraphicGraph::send(), StarObjectSmallGraphicInternal::SdrGraphicOLE::send(), and StarObjectSmallGraphicInternal::SdrGraphicText::sendTextZone().

## ◆ m_flags

bool StarObjectSmallGraphicInternal::SdrGraphic::m_flags[6]

a list of flag

Referenced by StarObjectSmallGraphic::readSVDRObjectHeader(), SdrGraphic(), and updateStyle().

## ◆ m_layerId

int StarObjectSmallGraphicInternal::SdrGraphic::m_layerId

the layer id

Referenced by StarObjectSmallGraphic::readSVDRObjectHeader().

## ◆ m_polygon

std::vector<GluePoint> StarObjectSmallGraphicInternal::SdrGraphic::m_polygon

a polygon

Referenced by StarObjectSmallGraphic::readSVDRObjectHeader().

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

- StarObjectSmallGraphic.cxx