34 #ifndef LIBSTAROFFICE_INTERNAL_H
35 #define LIBSTAROFFICE_INTERNAL_H
49 #define M_PI 3.14159265358979323846
52 #include <librevenge-stream/librevenge-stream.h>
53 #include <librevenge/librevenge.h>
55 #if defined(_MSC_VER) || defined(__DJGPP__)
57 typedef signed char int8_t;
58 typedef unsigned char uint8_t;
59 typedef signed short int16_t;
60 typedef unsigned short uint16_t;
61 typedef signed int int32_t;
62 typedef unsigned int uint32_t;
63 typedef unsigned __int64 uint64_t;
64 typedef __int64 int64_t;
74 # ifdef HAVE_INTTYPES_H
75 # include <inttypes.h>
82 # include <inttypes.h>
91 # define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
92 # define localtime_r(tp,tmp) (localtime(tp)?(*(tmp)=*localtime(tp),(tmp)):0)
96 #if defined(SHAREDPTR_TR1)
98 using std::tr1::shared_ptr;
99 #elif defined(SHAREDPTR_STD)
101 using std::shared_ptr;
103 #include <boost/shared_ptr.hpp>
104 using boost::shared_ptr;
113 #if defined(__clang__) || defined(__GNUC__)
114 # define LIBSTOFF_ATTRIBUTE_PRINTF(fmt, arg) __attribute__((__format__(__printf__, fmt, arg)))
116 # define LIBSTOFF_ATTRIBUTE_PRINTF(fmt, arg)
125 #define STOFF_DEBUG_MSG(M) libstoff::printDebugMsg M
127 #define STOFF_DEBUG_MSG(M)
157 uint8_t
readU8(librevenge::RVNGInputStream *input);
159 void appendUnicode(uint32_t val, librevenge::RVNGString &buffer);
161 librevenge::RVNGString
getString(std::vector<uint32_t>
const &unicode);
185 STOFFColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a=255) :
186 m_value(uint32_t((a<<24)+(r<<16)+(g<<8)+b))
198 double w=1.-double(k)/255.;
200 ((
unsigned char)(255 * (1-
double(c)/255) * w),
201 (
unsigned char)(255 * (1-
double(m)/255) * w),
202 (
unsigned char)(255 * (1-
double(y)/255) * w)
208 double c=(1-((L>=128) ? (2*
double(L)-255) : (255-2*
double(L)))/255)*
210 double tmp=std::fmod((
double(H)*6/255),2)-1;
211 double x=c*(1-(tmp>0 ? tmp : -tmp));
212 unsigned char C=(
unsigned char)(255*c);
213 unsigned char M=(
unsigned char)(
double(L)-255*c/2);
214 unsigned char X=(
unsigned char)(255*x);
215 if (H<=42)
return STOFFColor((
unsigned char)(M+C),(
unsigned char)(M+X),(
unsigned char)M);
216 if (H<=85)
return STOFFColor((
unsigned char)(M+X),(
unsigned char)(M+C),(
unsigned char)M);
217 if (H<=127)
return STOFFColor((
unsigned char)M,(
unsigned char)(M+C),(
unsigned char)(M+X));
218 if (H<=170)
return STOFFColor((
unsigned char)M,(
unsigned char)(M+X),(
unsigned char)(M+C));
219 if (H<=212)
return STOFFColor((
unsigned char)(M+X),(
unsigned char)M,(
unsigned char)(M+C));
220 return STOFFColor((
unsigned char)(M+C),(
unsigned char)(M),(
unsigned char)(M+X));
244 return (
unsigned char)((
m_value>>24)&0xFF);
254 return (
unsigned char)(
m_value&0xFF);
259 return (
unsigned char)((
m_value>>16)&0xFF);
264 return (
unsigned char)((
m_value>>8)&0xFF);
274 return (
m_value&0xFFFFFF)==0xFFFFFF;
309 std::string
str()
const;
322 bool addTo(librevenge::RVNGPropertyList &propList, std::string which=
"")
const;
362 bool addTo(librevenge::RVNGPropertyList &propList)
const;
364 librevenge::RVNGString
getString()
const;
383 bool addTo(librevenge::RVNGPropertyList &propList)
const;
418 add(binaryData, type);
434 void add(librevenge::RVNGBinaryData
const &binaryData, std::string type=
"image/pict")
444 bool addTo(librevenge::RVNGPropertyList &propList)
const;
601 return (c==0) ?
m_x :
m_y;
607 return (c==0) ?
m_x :
m_y;
688 bool operator<(STOFFVec2<T>
const &p)
const
695 if (
m_x < p.
m_x)
return -1;
696 if (
m_x > p.
m_x)
return 1;
697 if (
m_y < p.
m_y)
return -1;
698 if (
m_y > p.
m_y)
return 1;
704 if (
m_y < p.
m_y)
return -1;
705 if (
m_y > p.
m_y)
return 1;
706 if (
m_x < p.
m_x)
return -1;
707 if (
m_x > p.
m_x)
return 1;
712 friend std::ostream &operator<< (std::ostream &o, STOFFVec2<T>
const &f)
714 o << f.m_x <<
"x" << f.m_y;
725 return s1.
cmp(s2) < 0;
731 typedef std::map<STOFFVec2<T>, T,
struct PosSizeLtX>
MapX;
740 return s1.
cmpY(s2) < 0;
746 typedef std::map<STOFFVec2<T>, T,
struct PosSizeLtY>
MapY;
776 for (
int c = 0; c < 3; c++)
m_val[c] = T(p[c]);
808 void set(T xx, T yy, T zz)
831 void add(T dx, T dy, T dz)
854 for (
int c = 0; c < 3; c++)
m_val[c] = T(
m_val[c]*scale);
889 bool operator<(STOFFVec3<T>
const &p)
const
896 for (
int c = 0; c < 3; c++) {
904 friend std::ostream &operator<< (std::ostream &o, STOFFVec3<T>
const &f)
906 o << f.m_val[0] <<
"x" << f.m_val[1] <<
"x" << f.m_val[2];
917 return s1.
cmp(s2) < 0;
923 typedef std::map<STOFFVec3<T>, T,
struct PosSizeLt>
Map;
954 for (
int c=0; c < 2; c++)
m_pt[c] = p[c];
1027 m_pt[0] = centerPt - 0.5*sz;
1028 m_pt[1] = centerPt + (sz - 0.5*sz);
1076 bool operator<(STOFFBox2<T>
const &p)
const
1084 int diff =
m_pt[0].cmpY(p.
m_pt[0]);
1085 if (diff)
return diff;
1087 if (diff)
return diff;
1092 friend std::ostream &operator<< (std::ostream &o, STOFFBox2<T>
const &f)
1094 o <<
"(" << f.m_pt[0] <<
"<->" << f.m_pt[1] <<
")";
1105 return s1.
cmp(s2) < 0;
1111 typedef std::map<STOFFBox2<T>, T,
struct PosSizeLt>
Map;
1134 float getScaleFactor(librevenge::RVNGUnit orig, librevenge::RVNGUnit dest);
Definition: libstaroffice_internal.hxx:168
STOFFVec3< float > STOFFVec3f
STOFFVec3 of float.
Definition: libstaroffice_internal.hxx:937
std::vector< std::string > m_typeList
the picture type: one type by representation
Definition: libstaroffice_internal.hxx:455
friend STOFFVec2< T > operator*(U scale, STOFFVec2< T > const &p1)
generic operator*
Definition: libstaroffice_internal.hxx:671
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libstaroffice_internal.hxx:1039
an noop deleter used to transform a libwpd pointer in a false shared_ptr
Definition: libstaroffice_internal.hxx:109
friend std::ostream & operator<<(std::ostream &o, STOFFColor const &c)
operator<< in the form #rrggbb
Definition: libstaroffice_internal.cxx:214
bool isEmpty() const
returns true if the border is empty
Definition: libstaroffice_internal.hxx:324
bool isBlack() const
return true if the color is black
Definition: libstaroffice_internal.hxx:267
void set(STOFFVec2< T > const &x, STOFFVec2< T > const &y)
resets the data to minimum x and maximum y
Definition: libstaroffice_internal.hxx:997
void setZ(T zz)
resets the third element
Definition: libstaroffice_internal.hxx:825
Type m_type
the note type
Definition: libstaroffice_internal.hxx:398
std::string m_data
the database/link field ( if defined )
Definition: libstaroffice_internal.hxx:372
std::map< STOFFVec3< bool >, bool, struct PosSizeLt > Map
Definition: libstaroffice_internal.hxx:923
STOFFVec3< T > & operator+=(STOFFVec3< T > const &p)
operator+=
Definition: libstaroffice_internal.hxx:839
Definition: libstaroffice_internal.hxx:170
internal struct used to create sorted map, sorted by X
Definition: libstaroffice_internal.hxx:721
Definition: libstaroffice_internal.hxx:355
Definition: libstaroffice_internal.hxx:168
static STOFFColor black()
return the back color
Definition: libstaroffice_internal.hxx:223
shared_ptr< STOFFInputStream > STOFFInputStreamPtr
a smart pointer of STOFFInputStream
Definition: libstaroffice_internal.hxx:482
bool isEmpty() const
return true if the picture contains no data
Definition: libstaroffice_internal.hxx:425
void setX(T xx)
resets the first element
Definition: libstaroffice_internal.hxx:617
friend STOFFVec2< T > operator+(STOFFVec2< T > const &p1, STOFFVec2< T > const &p2)
operator+
Definition: libstaroffice_internal.hxx:658
T & operator[](int c)
operator[]
Definition: libstaroffice_internal.hxx:604
STOFFVec2< long > STOFFVec2l
STOFFVec2 of long.
Definition: libstaroffice_internal.hxx:756
STOFFVec2f rotatePointAroundCenter(STOFFVec2f const &point, STOFFVec2f const ¢er, float angle)
rotate a point around center, angle is given in degree
Definition: libstaroffice_internal.cxx:451
Type m_type
the type
Definition: libstaroffice_internal.hxx:366
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if possible)
Definition: libstaroffice_internal.cxx:234
a border line
Definition: libstaroffice_internal.hxx:316
friend STOFFVec2< T > operator-(STOFFVec2< T > const &p1, STOFFVec2< T > const &p2)
operator-
Definition: libstaroffice_internal.hxx:664
STOFFBox2< T > getUnion(STOFFBox2< T > const &box) const
returns the union between this and box
Definition: libstaroffice_internal.hxx:1046
librevenge::RVNGString getString() const
returns a string corresponding to the field (if possible) */
Definition: libstaroffice_internal.cxx:259
STOFFBorderLine()
constructor
Definition: libstaroffice_internal.hxx:318
Definition: libstaroffice_internal.hxx:172
Definition: libstaroffice_internal.hxx:170
STOFFVec2< T > & max()
the maximum 2D point (in x and in y)
Definition: libstaroffice_internal.hxx:973
Definition: libstaroffice_internal.hxx:141
bool operator!=(STOFFVec3< T > const &p) const
comparison!=
Definition: libstaroffice_internal.hxx:884
bool operator()(STOFFVec2< T > const &s1, STOFFVec2< T > const &s2) const
comparaison function
Definition: libstaroffice_internal.hxx:723
std::string numberingValueToString(NumberingType type, int value)
Definition: libstaroffice_internal.cxx:145
void insert(STOFFVariable const &orig)
update the current value if orig is set
Definition: libstaroffice_internal.hxx:524
Definition: libstaroffice_internal.hxx:170
Definition: libstaroffice_internal.hxx:175
a generic variable template: value + flag to know if the variable is set
Definition: libstaroffice_internal.hxx:500
Definition: libstaroffice_internal.hxx:172
unsigned char getGreen() const
returns the green value
Definition: libstaroffice_internal.hxx:262
small class which defines a 2D Box
Definition: libstaroffice_internal.hxx:942
std::map< STOFFVec2< bool >, bool, struct PosSizeLtX > MapX
Definition: libstaroffice_internal.hxx:731
small class which defines a vector with 2 elements
Definition: libstaroffice_internal.hxx:579
STOFFVec3< bool > STOFFVec3b
STOFFVec3 of bool.
Definition: libstaroffice_internal.hxx:931
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if needed )
Definition: libstaroffice_internal.cxx:298
STOFFField(Type type)
basic constructor
Definition: libstaroffice_internal.hxx:358
Definition: libstaroffice_internal.hxx:168
int cmp(STOFFVec2< T > const &p) const
a comparison function: which first compares x then y
Definition: libstaroffice_internal.hxx:693
int m_outWidth
the outline width in TWIP
Definition: libstaroffice_internal.hxx:343
void resizeFromCenter(STOFFVec2< T > const &sz)
resize the box keeping the center
Definition: libstaroffice_internal.hxx:1024
STOFFVec2< T > m_pt[2]
the two extremities
Definition: libstaroffice_internal.hxx:1115
T m_x
first element
Definition: libstaroffice_internal.hxx:748
shared_ptr< STOFFSpreadsheetListener > STOFFSpreadsheetListenerPtr
a smart pointer of STOFFSpreadsheetListener
Definition: libstaroffice_internal.hxx:490
T x() const
first element
Definition: libstaroffice_internal.hxx:780
static STOFFColor barycenter(float alpha, STOFFColor const &colA, float beta, STOFFColor const &colB)
return alpha*colA+beta*colB
Definition: libstaroffice_internal.cxx:200
STOFFColor & operator=(uint32_t argb)
operator=
Definition: libstaroffice_internal.hxx:190
Definition: libstaroffice_internal.hxx:175
int cmp(STOFFBox2< T > const &p) const
comparison function : fist sorts min by Y,X values then max extremity
Definition: libstaroffice_internal.hxx:1082
bool operator!=(STOFFBorderLine const &orig) const
operator!=
Definition: libstaroffice_internal.hxx:334
bool isWhite() const
return true if the color is white
Definition: libstaroffice_internal.hxx:272
STOFFVariable()
constructor
Definition: libstaroffice_internal.hxx:502
STOFFColor m_color
the border color
Definition: libstaroffice_internal.hxx:347
int m_inWidth
the inline width in TWIP
Definition: libstaroffice_internal.hxx:345
STOFFBox2< long > STOFFBox2l
STOFFBox2 of long.
Definition: libstaroffice_internal.hxx:1123
Definition: libstaroffice_internal.hxx:175
unsigned char getAlpha() const
returns the alpha value
Definition: libstaroffice_internal.hxx:242
a link
Definition: libstaroffice_internal.hxx:376
uint32_t m_value
the argb color
Definition: libstaroffice_internal.hxx:312
Definition: libstaroffice_internal.hxx:172
T m_val[3]
the values
Definition: libstaroffice_internal.hxx:927
Definition: libstaroffice_internal.hxx:355
bool operator==(STOFFColor const &c) const
operator==
Definition: libstaroffice_internal.hxx:277
bool addTo(librevenge::RVNGPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libstaroffice_internal.cxx:307
Definition: libstaroffice_internal.hxx:172
Definition: libstaroffice_internal.hxx:392
unsigned char getBlue() const
returns the green value
Definition: libstaroffice_internal.hxx:252
Definition: libstaroffice_internal.hxx:170
STOFFBox2(STOFFBox2< U > const &p)
generic constructor
Definition: libstaroffice_internal.hxx:952
a class to define the parser state
Definition: STOFFParser.hxx:49
STOFFVariable & operator=(STOFFVariable const &orig)
copy operator
Definition: libstaroffice_internal.hxx:508
STOFFVec2< T > center() const
the box center
Definition: libstaroffice_internal.hxx:991
NumberingType
Definition: libstaroffice_internal.hxx:172
void scale(U factor)
scales all points of the box by factor
Definition: libstaroffice_internal.hxx:1032
friend STOFFVec3< T > operator+(STOFFVec3< T > const &p1, STOFFVec3< T > const &p2)
operator+
Definition: libstaroffice_internal.hxx:859
STOFFVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libstaroffice_internal.hxx:958
T const & operator*() const
operator*
Definition: libstaroffice_internal.hxx:543
STOFFBox2< T > getIntersection(STOFFBox2< T > const &box) const
returns the intersection between this and box
Definition: libstaroffice_internal.hxx:1056
Definition: libstaroffice_internal.hxx:355
internal struct used to create sorted map, sorted by X, Y, Z
Definition: libstaroffice_internal.hxx:913
uint32_t value() const
return the rgba value
Definition: libstaroffice_internal.hxx:237
void add(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
add a picture
Definition: libstaroffice_internal.hxx:434
Definition: libstaroffice_internal.hxx:172
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libstaroffice_internal.cxx:81
STOFFVec2(T xx=0, T yy=0)
constructor
Definition: libstaroffice_internal.hxx:583
bool operator==(STOFFVec3< T > const &p) const
comparison==
Definition: libstaroffice_internal.hxx:879
STOFFVariable & operator=(T const &val)
set a value
Definition: libstaroffice_internal.hxx:517
void set(T xx, T yy)
resets the two elements
Definition: libstaroffice_internal.hxx:611
STOFFVec2< T > size() const
the box size
Definition: libstaroffice_internal.hxx:986
bool operator>=(STOFFColor const &c) const
operator>=
Definition: libstaroffice_internal.hxx:302
T m_data
the value
Definition: libstaroffice_internal.hxx:570
STOFFBox2< int > STOFFBox2i
STOFFBox2 of int.
Definition: libstaroffice_internal.hxx:1119
void setMax(STOFFVec2< T > const &y)
resets the maximum point
Definition: libstaroffice_internal.hxx:1008
a note
Definition: libstaroffice_internal.hxx:390
shared_ptr< STOFFListener > STOFFListenerPtr
a smart pointer of STOFFListener
Definition: libstaroffice_internal.hxx:484
STOFFVec2< T > const & operator[](int c) const
the two extremum points which defined the box
Definition: libstaroffice_internal.hxx:980
STOFFVec3< unsigned char > STOFFVec3uc
STOFFVec3 of unsigned char.
Definition: libstaroffice_internal.hxx:933
STOFFBox2(STOFFVec2< T > minPt=STOFFVec2< T >(), STOFFVec2< T > maxPt=STOFFVec2< T >())
constructor
Definition: libstaroffice_internal.hxx:946
Definition: libstaroffice_internal.hxx:175
unsigned char getRed() const
returns the red value
Definition: libstaroffice_internal.hxx:257
STOFFVec3< int > STOFFVec3i
STOFFVec3 of int.
Definition: libstaroffice_internal.hxx:935
class to store the paragraph properties
Definition: STOFFParagraph.hxx:47
Definition: libstaroffice_internal.hxx:145
STOFFVec2< T > & operator-=(STOFFVec2< T > const &p)
operator-=
Definition: libstaroffice_internal.hxx:642
Definition: libstaroffice_internal.hxx:175
Definition: libstaroffice_internal.hxx:133
void resizeFromMax(STOFFVec2< T > const &sz)
resize the box keeping the maximum
Definition: libstaroffice_internal.hxx:1019
bool operator()(STOFFVec3< T > const &s1, STOFFVec3< T > const &s2) const
comparaison function
Definition: libstaroffice_internal.hxx:915
friend STOFFVec3< T > operator*(U scale, STOFFVec3< T > const &p1)
generic operator*
Definition: libstaroffice_internal.hxx:872
std::string m_HRef
the href field
Definition: libstaroffice_internal.hxx:386
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: STOFFSpreadsheetListener.hxx:64
STOFFColor(uint32_t argb=0)
constructor
Definition: libstaroffice_internal.hxx:181
std::string numberingTypeToString(NumberingType type)
Definition: libstaroffice_internal.cxx:123
bool operator==(STOFFBorderLine const &orig) const
operator==
Definition: libstaroffice_internal.hxx:329
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libstaroffice_internal.cxx:52
void setAlpha(unsigned char alpha)
reset the alpha value
Definition: libstaroffice_internal.hxx:247
STOFFVariable(STOFFVariable const &orig)
copy constructor
Definition: libstaroffice_internal.hxx:506
bool operator!=(STOFFBox2< T > const &p) const
comparison operator!=
Definition: libstaroffice_internal.hxx:1071
int cmpY(STOFFVec2< T > const &p) const
a comparison function: which first compares y then x
Definition: libstaroffice_internal.hxx:702
std::map< STOFFVec2< bool >, bool, struct PosSizeLtY > MapY
Definition: libstaroffice_internal.hxx:746
#define LIBSTOFF_ATTRIBUTE_PRINTF(fmt, arg)
Definition: libstaroffice_internal.hxx:116
shared_ptr< STOFFListManager > STOFFListManagerPtr
a smart pointer of STOFFListManager
Definition: libstaroffice_internal.hxx:486
Definition: libstaroffice_internal.hxx:175
STOFFColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
constructor from color
Definition: libstaroffice_internal.hxx:185
small class which defines a vector with 3 elements
Definition: libstaroffice_internal.hxx:763
void setMin(STOFFVec2< T > const &x)
resets the minimum point
Definition: libstaroffice_internal.hxx:1003
void setY(T yy)
resets the second element
Definition: libstaroffice_internal.hxx:820
bool operator()(STOFFBox2< T > const &s1, STOFFBox2< T > const &s2) const
comparaison function
Definition: libstaroffice_internal.hxx:1103
STOFFVec2< bool > STOFFVec2b
STOFFVec2 of bool.
Definition: libstaroffice_internal.hxx:752
void setY(T yy)
resets the second element
Definition: libstaroffice_internal.hxx:622
T y() const
second element
Definition: libstaroffice_internal.hxx:593
T y() const
second element
Definition: libstaroffice_internal.hxx:785
T x() const
first element
Definition: libstaroffice_internal.hxx:588
Definition: libstaroffice_internal.hxx:170
STOFFVec2< T > & operator+=(STOFFVec2< T > const &p)
operator+=
Definition: libstaroffice_internal.hxx:635
SubDocumentType
Definition: libstaroffice_internal.hxx:175
shared_ptr< STOFFSubDocument > STOFFSubDocumentPtr
a smart pointer of STOFFSubDocument
Definition: libstaroffice_internal.hxx:492
void resizeFromMin(STOFFVec2< T > const &sz)
resize the box keeping the minimum
Definition: libstaroffice_internal.hxx:1014
Definition: libstaroffice_internal.hxx:168
Type
enum to define note type
Definition: libstaroffice_internal.hxx:392
This class contains the code needed to create Graphic document.
Definition: STOFFGraphicListener.hxx:59
a class which stores section properties
Definition: STOFFSection.hxx:45
librevenge::RVNGString getString(std::vector< uint32_t > const &unicode)
transform a unicode string in a RNVGString
Definition: libstaroffice_internal.cxx:63
bool operator!=(STOFFVec2< T > const &p) const
comparison!=
Definition: libstaroffice_internal.hxx:683
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libstaroffice_internal.hxx:453
Definition: libstaroffice_internal.hxx:168
a small structure used to store the informations about a list
Definition: STOFFList.hxx:115
bool operator!=(STOFFColor const &c) const
operator!=
Definition: libstaroffice_internal.hxx:282
a field
Definition: libstaroffice_internal.hxx:353
a structure used to define a picture shape
Definition: STOFFGraphicShape.hxx:45
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libstaroffice_internal.cxx:50
Definition: libstaroffice_internal.hxx:355
small class use to define a embedded object
Definition: libstaroffice_internal.hxx:409
T & operator[](int c)
operator[]
Definition: libstaroffice_internal.hxx:801
STOFFVec3(STOFFVec3< U > const &p)
generic copy constructor
Definition: libstaroffice_internal.hxx:774
friend std::ostream & operator<<(std::ostream &o, STOFFEmbeddedObject const &pict)
operator<<
Definition: libstaroffice_internal.cxx:408
T operator[](int c) const
operator[]
Definition: libstaroffice_internal.hxx:795
Definition: libstaroffice_internal.hxx:355
STOFFBox2f rotateBoxFromCenter(STOFFBox2f const &box, float angle)
rotate a bdox and returns the final bdbox, angle is given in degree
Definition: libstaroffice_internal.cxx:459
T & operator*()
operator*
Definition: libstaroffice_internal.hxx:548
internal struct used to create sorted map, sorted by Y
Definition: libstaroffice_internal.hxx:736
friend STOFFVec3< T > operator-(STOFFVec3< T > const &p1, STOFFVec3< T > const &p2)
operator-
Definition: libstaroffice_internal.hxx:865
int cmp(STOFFEmbeddedObject const &pict) const
a comparison function
Definition: libstaroffice_internal.cxx:383
libstoff::NumberingType m_numberingType
the number type ( for number field )
Definition: libstaroffice_internal.hxx:370
Definition: libstaroffice_internal.hxx:149
STOFFVec2< int > STOFFVec2i
STOFFVec2 of int.
Definition: libstaroffice_internal.hxx:754
friend std::ostream & operator<<(std::ostream &o, STOFFBorderLine const &border)
operator<<
Definition: libstaroffice_internal.cxx:333
STOFFLink()
basic constructor
Definition: libstaroffice_internal.hxx:378
bool operator<=(STOFFColor const &c) const
operator<=
Definition: libstaroffice_internal.hxx:292
STOFFVec3< T > & operator*=(U scale)
generic operator*=
Definition: libstaroffice_internal.hxx:852
int cmp(STOFFVec3< T > const &p) const
a comparison function: which first compares x values, then y values then z values.
Definition: libstaroffice_internal.hxx:894
int m_number
the note number if defined
Definition: libstaroffice_internal.hxx:402
Definition: libstaroffice_internal.hxx:175
void add(T dx, T dy)
increases the actuals values by dx and dy
Definition: libstaroffice_internal.hxx:628
int m_distance
the border distance
Definition: libstaroffice_internal.hxx:349
STOFFVec2(STOFFVec2< U > const &p)
generic copy constructor
Definition: libstaroffice_internal.hxx:585
Type
Defines some basic type for field.
Definition: libstaroffice_internal.hxx:355
Definition: libstaroffice_internal.hxx:175
the class to store a color
Definition: libstaroffice_internal.hxx:179
Class to store font.
Definition: STOFFFont.hxx:43
Position
basic position enum
Definition: libstaroffice_internal.hxx:168
Definition: libstaroffice_internal.hxx:355
std::map< STOFFBox2< int >, int, struct PosSizeLt > Map
Definition: libstaroffice_internal.hxx:1111
void setSet(bool newVal)
define if the variable is set
Definition: libstaroffice_internal.hxx:564
std::string str() const
print the color in the form #rrggbb
Definition: libstaroffice_internal.cxx:226
bool operator==(STOFFBox2< T > const &p) const
comparison operator==
Definition: libstaroffice_internal.hxx:1066
abstract class used to store a subdocument (with a comparison function)
Definition: STOFFSubDocument.hxx:41
STOFFVariable(T const &def)
constructor with a default value
Definition: libstaroffice_internal.hxx:504
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist
Definition: libstaroffice_internal.cxx:356
shared_ptr< STOFFParserState > STOFFParserStatePtr
a smart pointer of STOFFParserState
Definition: libstaroffice_internal.hxx:488
internal struct used to create sorted map, sorted first min then max
Definition: libstaroffice_internal.hxx:1101
STOFFVec3< T > & operator-=(STOFFVec3< T > const &p)
operator-=
Definition: libstaroffice_internal.hxx:845
void set(T xx, T yy, T zz)
resets the three elements
Definition: libstaroffice_internal.hxx:808
Definition: libstaroffice_internal.hxx:175
Definition: libstaroffice_internal.hxx:137
bool operator==(STOFFVec2< T > const &p) const
comparison==
Definition: libstaroffice_internal.hxx:678
librevenge::RVNGString m_label
the note label
Definition: libstaroffice_internal.hxx:400
Definition: libstaroffice_internal.hxx:172
STOFFVec3(T xx=0, T yy=0, T zz=0)
constructor
Definition: libstaroffice_internal.hxx:767
STOFFVec2< T > & min()
the minimum 2D point (in x and in y)
Definition: libstaroffice_internal.hxx:968
virtual ~STOFFEmbeddedObject()
destructor
Definition: libstaroffice_internal.hxx:421
shared_ptr< STOFFGraphicListener > STOFFGraphicListenerPtr
a smart pointer of STOFFGraphicListener
Definition: libstaroffice_internal.hxx:478
T m_y
second element
Definition: libstaroffice_internal.hxx:748
void setX(T xx)
resets the first element
Definition: libstaroffice_internal.hxx:815
A class which defines the page properties.
Definition: STOFFPageSpan.hxx:74
Definition: libstaroffice_internal.hxx:392
bool isSet() const
return true if the variable is set
Definition: libstaroffice_internal.hxx:559
Definition: libstaroffice_internal.hxx:170
STOFFVec2< T > & operator*=(U scale)
generic operator*=
Definition: libstaroffice_internal.hxx:650
bool operator>(STOFFColor const &c) const
operator>
Definition: libstaroffice_internal.hxx:297
bool convertToDateTime(uint32_t date, uint32_t time, std::string &dateTime)
convert a date/time in a date time format
Definition: libstaroffice_internal.cxx:425
void operator()(T *)
Definition: libstaroffice_internal.hxx:110
basic class to store an entry in a file This contained :
Definition: STOFFEntry.hxx:46
Definition: libstaroffice_internal.hxx:168
static STOFFColor colorFromHSL(unsigned char H, unsigned char S, unsigned char L)
return a color from a hsl color (basic)
Definition: libstaroffice_internal.hxx:206
STOFFVec2< float > STOFFVec2f
STOFFVec2 of float.
Definition: libstaroffice_internal.hxx:758
static STOFFColor colorFromCMYK(unsigned char c, unsigned char m, unsigned char y, unsigned char k)
return a color from a cmyk color ( basic)
Definition: libstaroffice_internal.hxx:196
bool operator()(STOFFVec2< T > const &s1, STOFFVec2< T > const &s2) const
comparaison function
Definition: libstaroffice_internal.hxx:738
STOFFVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libstaroffice_internal.hxx:963
T const * operator->() const
operator*
Definition: libstaroffice_internal.hxx:532
virtual class which defines the ancestor of all main zone parser
Definition: STOFFParser.hxx:87
bool operator<(STOFFColor const &c) const
operator<
Definition: libstaroffice_internal.hxx:287
T * operator->()
operator*
Definition: libstaroffice_internal.hxx:537
This class contains a virtual interface to all listener.
Definition: STOFFListener.hxx:49
Class to store a graphic style.
Definition: STOFFGraphicStyle.hxx:44
STOFFEmbeddedObject(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
constructor
Definition: libstaroffice_internal.hxx:415
STOFFBox2< float > STOFFBox2f
STOFFBox2 of float.
Definition: libstaroffice_internal.hxx:1121
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: STOFFPosition.hxx:47
T operator[](int c) const
operator[]
Definition: libstaroffice_internal.hxx:598
Definition: libstaroffice_internal.hxx:172
bool addAsFillImageTo(librevenge::RVNGPropertyList &propList) const
add the link property to a graph style as bitmap
Definition: libstaroffice_internal.cxx:344
Definition: libstaroffice_internal.hxx:175
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libstaroffice_internal.hxx:368
Definition: libstaroffice_internal.hxx:355
STOFFNote(Type type)
constructor
Definition: libstaroffice_internal.hxx:394
static STOFFColor white()
return the white color
Definition: libstaroffice_internal.hxx:228
bool m_set
a flag to know if the variable is set or not
Definition: libstaroffice_internal.hxx:572
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: STOFFList.hxx:205
T z() const
third element
Definition: libstaroffice_internal.hxx:790
float getScaleFactor(librevenge::RVNGUnit orig, librevenge::RVNGUnit dest)
factor to convert from one unit to other
Definition: libstaroffice_internal.cxx:479
STOFFEmbeddedObject()
empty constructor
Definition: libstaroffice_internal.hxx:411
void add(T dx, T dy, T dz)
increases the actuals values by dx, dy, dz
Definition: libstaroffice_internal.hxx:831