34 #ifndef STAR_GRAPHIC_STRUCT 35 # define STAR_GRAPHIC_STRUCT 150 STOFF_DEBUG_MSG((
"StarObjectSmallGraphicStruct::StarPolygon::Point::operator<< unexpected flag\n"));
151 o <<
":[##" << point.
m_flags <<
"]";
185 void addToPath(librevenge::RVNGPropertyListVector &path,
bool isClosed,
double relUnit,
STOFFVec2f const &decal)
const;
187 bool convert(librevenge::RVNGString &path, librevenge::RVNGString &viewbox,
double relUnit,
STOFFVec2f const &decal)
const;
friend std::ostream & operator<<(std::ostream &o, Point const &point)
operator<<
Definition: StarGraphicStruct.hxx:134
the main class to read/.
Definition: StarBitmap.hxx:62
bool convert(librevenge::RVNGString &path, librevenge::RVNGString &viewbox, double relUnit, STOFFVec2f const &decal) const
convert a path in a string and update the bdbox
Definition: StarGraphicStruct.cxx:716
a structure to keep a point and a flag
Definition: StarGraphicStruct.hxx:126
bool read(StarZone &zone, long lastPos=-1)
try to read a graphic, give lastPos if you are sure of the end graphic position
Definition: StarGraphicStruct.cxx:549
librevenge::RVNGString m_filterName
the filter name
Definition: StarGraphicStruct.hxx:98
bool getPattern(STOFFEmbeddedObject &object, STOFFVec2i &sz) const
try to return a pattern corresponding to the brush
Definition: StarGraphicStruct.cxx:434
STOFFColor m_fillColor
the fill color
Definition: StarGraphicStruct.hxx:89
StarGraphic()
constructor
Definition: StarGraphicStruct.hxx:108
STOFFEmbeddedObject m_object
the embedded object
Definition: StarGraphicStruct.hxx:116
bool hasUniqueColor() const
returns true is the brush has unique color
Definition: StarGraphicStruct.hxx:72
#define STOFF_DEBUG_MSG(M)
Definition: libstaroffice_internal.hxx:129
std::shared_ptr< StarBitmap > m_bitmap
the bitmap
Definition: StarGraphicStruct.hxx:118
Point(STOFFVec2i point=STOFFVec2i(), int flag=0)
constructor
Definition: StarGraphicStruct.hxx:128
StarPolygon()
contructor
Definition: StarGraphicStruct.hxx:161
Class to store a brush.
Definition: StarGraphicStruct.hxx:51
Class to store a polygon.
Definition: StarGraphicStruct.hxx:122
void addToPath(librevenge::RVNGPropertyListVector &path, bool isClosed, double relUnit, STOFFVec2f const &decal) const
add the polygon to a path
Definition: StarGraphicStruct.cxx:678
STOFFVec2i m_point
the point
Definition: StarGraphicStruct.hxx:156
bool getColor(STOFFColor &color) const
try to return a color corresponding to the brush
Definition: StarGraphicStruct.cxx:420
STOFFColor m_color
the color
Definition: StarGraphicStruct.hxx:87
StarBrush()
constructor
Definition: StarGraphicStruct.hxx:55
std::string m_extra
extra data
Definition: StarGraphicStruct.hxx:100
int m_style
the brush style(pattern): BRUSH_NULL, BRUSH_SOLID, BRUSH_HORZ, BRUSH_VERT, BRUSH_CROSS,...
Definition: StarGraphicStruct.hxx:92
int m_flags
the flags
Definition: StarGraphicStruct.hxx:158
friend std::ostream & operator<<(std::ostream &o, StarBrush const &brush)
operator<<
Definition: StarGraphicStruct.cxx:463
bool isEmpty() const
returns true if the brush is empty
Definition: StarGraphicStruct.hxx:67
librevenge::RVNGString m_linkName
the link name
Definition: StarGraphicStruct.hxx:96
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:408
friend std::ostream & operator<<(std::ostream &o, StarPolygon const &poly)
operator<<
Definition: StarGraphicStruct.cxx:731
a name use to define basic StarOffice graphic structure
Definition: StarGraphicStruct.cxx:50
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:763
Class to store a graphic.
Definition: StarGraphicStruct.hxx:104
the class to store a color
Definition: libstaroffice_internal.hxx:189
std::vector< Point > m_points
the list of points
Definition: StarGraphicStruct.hxx:191
int m_transparency
the transparency
Definition: StarGraphicStruct.hxx:85
bool empty() const
returns true if the polygon is empty
Definition: StarGraphicStruct.hxx:175
bool hasSpecialPoints() const
check if a polygon has special point
Definition: StarGraphicStruct.hxx:166
an object corresponding to an OLE directory
Definition: StarObject.hxx:64
a zone in a StarOffice file
Definition: StarZone.hxx:56
int m_position
the position(none, lt, mt, rt, lm, mm, rm, lb, mb, rb, area, tiled)
Definition: StarGraphicStruct.hxx:94
size_t size() const
returns true if the polygon is empty
Definition: StarGraphicStruct.hxx:180
bool read(StarZone &zone, int nVers, long endPos, StarObject &document)
try to read a brush
Definition: StarGraphicStruct.cxx:498