34 #ifndef LIBMWAW_INTERNAL_H
35 #define LIBMWAW_INTERNAL_H
48 #define M_PI 3.14159265358979323846
51 #include <libwpd-stream/libwpd-stream.h>
52 #include <libwpd/libwpd.h>
54 #if defined(_MSC_VER) || defined(__DJGPP__)
56 typedef signed char int8_t;
57 typedef unsigned char uint8_t;
58 typedef signed short int16_t;
59 typedef unsigned short uint16_t;
60 typedef signed int int32_t;
61 typedef unsigned int uint32_t;
62 typedef unsigned __int64 uint64_t;
63 typedef __int64 int64_t;
73 # ifdef HAVE_INTTYPES_H
74 # include <inttypes.h>
81 # include <inttypes.h>
90 # define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
91 # define localtime_r(tp,tmp) (localtime(tp)?(*(tmp)=*localtime(tp),(tmp)):0)
95 #if defined(SHAREDPTR_TR1)
97 using std::tr1::shared_ptr;
98 #elif defined(SHAREDPTR_STD)
100 using std::shared_ptr;
102 #include <boost/shared_ptr.hpp>
103 using boost::shared_ptr;
114 #define MWAW_DEBUG_MSG(M) printf M
116 #define MWAW_DEBUG_MSG(M)
146 uint8_t
readU8(WPXInputStream *input);
171 MWAWColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a=0) :
172 m_value(uint32_t((a<<24)+(r<<16)+(g<<8)+b)) {
201 return (
m_value&0xFFFFFF)==0xFFFFFF;
230 std::string
str()
const;
248 bool addTo(WPXPropertyList &propList, std::string which=
"")
const;
413 T
const &
get()
const {
453 assert(c >= 0 && c <= 1);
454 return (c==0) ?
m_x :
m_y;
458 assert(c >= 0 && c <= 1);
459 return (c==0) ?
m_x :
m_y;
528 bool operator<(Vec2<T>
const &p)
const {
534 if (diff < 0)
return -1;
535 if (diff > 0)
return 1;
537 if (diff < 0)
return -1;
538 if (diff > 0)
return 1;
544 if (diff < 0)
return -1;
545 if (diff > 0)
return 1;
547 if (diff < 0)
return -1;
548 if (diff > 0)
return 1;
553 friend std::ostream &operator<< (std::ostream &o, Vec2<T>
const &f) {
554 o << f.m_x <<
"x" << f.m_y;
564 return s1.
cmp(s2) < 0;
570 typedef std::map<Vec2<T>, T,
struct PosSizeLtX>
MapX;
578 return s1.
cmpY(s2) < 0;
584 typedef std::map<Vec2<T>, T,
struct PosSizeLtY>
MapY;
612 for (
int c = 0; c < 3; c++)
m_val[c] = T(p[c]);
629 assert(c >= 0 && c <= 2);
634 assert(c >= 0 && c <= 2);
639 void set(T xx, T yy, T zz) {
658 void add(T dx, T dy, T dz) {
677 for (
int c = 0; c < 3; c++)
m_val[c] = T(
m_val[c]*scale);
707 bool operator<(Vec3<T>
const &p)
const {
712 for (
int c = 0; c < 3; c++) {
714 if (diff)
return (diff < 0) ? -1 : 1;
720 friend std::ostream &operator<< (std::ostream &o, Vec3<T>
const &f) {
721 o << f.m_val[0] <<
"x" << f.m_val[1] <<
"x" << f.m_val[2];
731 return s1.
cmp(s2) < 0;
764 for (
int c=0; c < 2; c++)
m_pt[c] = p[c];
788 assert(c >= 0 && c <= 1);
825 m_pt[0] = centerPt - 0.5*sz;
826 m_pt[1] = centerPt + (sz - 0.5*sz);
830 template <
class U>
void scale(U factor) {
868 bool operator<(Box2<T>
const &p)
const {
875 if (diff)
return diff;
877 if (diff)
return diff;
882 friend std::ostream &operator<< (std::ostream &o, Box2<T>
const &f) {
883 o <<
"(" << f.m_pt[0] <<
"<->" << f.m_pt[1] <<
")";
893 return s1.
cmp(s2) < 0;
899 typedef std::map<Box2<T>, T,
struct PosSizeLt>
Map;
Box2< long > Box2l
Box2 of long.
Definition: libmwaw_internal.hxx:911
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:350
internal struct used to create sorted map, sorted by X, Y, Z
Definition: libmwaw_internal.hxx:728
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:421
Definition: libmwaw_internal.hxx:241
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:315
NumberingType
Definition: libmwaw_internal.hxx:159
void set(Vec2< T > const &x, Vec2< T > const &y)
resets the data to minimum x and maximum y
Definition: libmwaw_internal.hxx:801
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:472
Definition: libmwaw_internal.hxx:162
MWAWColor & operator=(uint32_t argb)
operator=
Definition: libmwaw_internal.hxx:175
Definition: libmwaw_internal.hxx:159
Definition: libmwaw_internal.hxx:239
Vec3< int > Vec3i
Vec3 of int.
Definition: libmwaw_internal.hxx:747
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:200
Definition: libmwaw_internal.hxx:159
T m_x
first element
Definition: libmwaw_internal.hxx:586
void add(T dx, T dy, T dz)
increases the actuals values by dx, dy, dz
Definition: libmwaw_internal.hxx:658
Definition: libmwaw_internal.hxx:162
Definition: libmwaw_internal.hxx:159
std::string m_data
the database/link field ( if defined )
Definition: libmwaw_internal.hxx:300
bool operator!=(Vec3< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:703
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:601
Vec2< T > const & operator[](int c) const
the two extremum points which defined the box
Definition: libmwaw_internal.hxx:787
Definition: libmwaw_internal.hxx:288
Vec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:768
void appendUnicode(uint32_t val, WPXString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:60
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:272
bool operator==(MWAWBorder const &orig) const
operator==
Definition: libmwaw_internal.hxx:254
Definition: libmwaw_internal.hxx:157
bool operator!=(Box2< T > const &p) const
comparison operator!=
Definition: libmwaw_internal.hxx:864
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
int cmp(Box2< T > const &p) const
comparison function : fist sorts min by Y,X values then max extremity
Definition: libmwaw_internal.hxx:873
Definition: libmwaw_internal.hxx:162
void insert(Variable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:388
Vec3< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:676
friend Vec2< T > operator-(Vec2< T > const &p1, Vec2< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:508
Vec2< float > Vec2f
Vec2 of float.
Definition: libmwaw_internal.hxx:596
Definition: libmwaw_internal.hxx:288
Variable & operator=(Variable const &orig)
copy operator
Definition: libmwaw_internal.hxx:374
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:184
MWAWNote(Type type)
constructor
Definition: libmwaw_internal.hxx:308
bool operator>(MWAWColor const &c) const
operator>
Definition: libmwaw_internal.hxx:220
bool operator<(MWAWColor const &c) const
operator<
Definition: libmwaw_internal.hxx:212
friend Vec3< T > operator+(Vec3< T > const &p1, Vec3< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:682
Definition: libmwaw_internal.hxx:162
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:119
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:457
Vec3< T > & operator+=(Vec3< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:665
small class which defines a 2D Box
Definition: libmwaw_internal.hxx:754
void set(T xx, T yy, T zz)
resets the three elements
Definition: libmwaw_internal.hxx:639
internal struct used to create sorted map, sorted first min then max
Definition: libmwaw_internal.hxx:890
void resizeFromMin(Vec2< T > const &sz)
resize the box keeping the minimum
Definition: libmwaw_internal.hxx:815
Definition: libmwaw_internal.hxx:157
uint8_t readU8(WPXInputStream *input)
Definition: libmwaw_internal.cxx:49
Definition: libmwaw_internal.hxx:288
internal struct used to create sorted map, sorted by X
Definition: libmwaw_internal.hxx:561
std::map< Vec2< int >, int, struct PosSizeLtY > MapY
Definition: libmwaw_internal.hxx:584
bool operator==(MWAWColor const &c) const
operator==
Definition: libmwaw_internal.hxx:204
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:180
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:417
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:633
This class contains the minimal code needed to write a Graphic sub document.
Definition: MWAWGraphicListener.hxx:60
SubDocumentType
Definition: libmwaw_internal.hxx:162
Vec2< T > & operator+=(Vec2< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:483
Vec2< bool > Vec2b
Vec2 of bool.
Definition: libmwaw_internal.hxx:590
void set(T xx, T yy)
resets the two elements
Definition: libmwaw_internal.hxx:463
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:97
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:836
Definition: libmwaw_internal.hxx:155
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:274
Definition: libmwaw_internal.hxx:155
Vec3< unsigned char > Vec3uc
Vec3 of unsigned char.
Definition: libmwaw_internal.hxx:745
Position
basic position enum
Definition: libmwaw_internal.hxx:155
Definition: libmwaw_internal.hxx:155
friend Vec3< T > operator-(Vec3< T > const &p1, Vec3< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:687
Type m_type
the note type
Definition: libmwaw_internal.hxx:311
Definition: libmwaw_internal.hxx:155
Box2< float > Box2f
Box2 of float.
Definition: libmwaw_internal.hxx:909
Vec2< T > & max()
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:780
Definition: libmwaw_internal.hxx:306
Type
the line repetition
Definition: libmwaw_internal.hxx:241
friend std::ostream & operator<<(std::ostream &o, MWAWColor const &c)
operator<< in the form #rrggbb
Definition: libmwaw_internal.cxx:188
Vec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:796
friend std::ostream & operator<<(std::ostream &o, MWAWBorder const &border)
operator<<
Definition: libmwaw_internal.cxx:312
the class to store a color
Definition: libmwaw_internal.hxx:166
Definition: libmwaw_internal.hxx:138
Vec2< int > Vec2i
Vec2 of int.
Definition: libmwaw_internal.hxx:592
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:358
bool operator==(Vec2< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:520
Definition: libmwaw_internal.hxx:288
MWAWField(Type type)
basic constructor
Definition: libmwaw_internal.hxx:291
MWAWColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=0)
constructor from color
Definition: libmwaw_internal.hxx:171
Vec3< float > Vec3f
Vec3 of float.
Definition: libmwaw_internal.hxx:749
Definition: libmwaw_internal.hxx:155
Style
the line style
Definition: libmwaw_internal.hxx:239
bool operator!=(Vec2< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:524
Definition: libmwaw_internal.hxx:159
T y() const
second element
Definition: libmwaw_internal.hxx:448
Vec2(T xx=0, T yy=0)
constructor
Definition: libmwaw_internal.hxx:439
Vec3(T xx=0, T yy=0, T zz=0)
constructor
Definition: libmwaw_internal.hxx:605
Type
enum to define note type
Definition: libmwaw_internal.hxx:306
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:468
int cmp(Vec3< T > const &p) const
a comparison function: which first compares x values, then y values then z values.
Definition: libmwaw_internal.hxx:711
bool operator==(Vec3< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:699
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:278
int compare(MWAWBorder const &orig) const
compare two borders
Definition: libmwaw_internal.cxx:208
std::map< Box2< int >, int, struct PosSizeLt > Map
Definition: libmwaw_internal.hxx:899
a border
Definition: libmwaw_internal.hxx:237
a class to define the parser state
Definition: MWAWParser.hxx:51
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:354
Definition: libmwaw_internal.hxx:162
WPXString m_label
the note label
Definition: libmwaw_internal.hxx:313
Definition: libmwaw_internal.hxx:239
Definition: libmwaw_internal.hxx:288
Variable(Variable const &orig)
copy constructor
Definition: libmwaw_internal.hxx:372
Vec3< T > & operator-=(Vec3< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:670
Definition: libmwaw_internal.hxx:134
main class used to define the final interface to generate picture
Definition: MWAWGraphicInterface.hxx:52
Variable(T def)
constructor with a default value
Definition: libmwaw_internal.hxx:370
T const * operator->() const
operator*
Definition: libmwaw_internal.hxx:395
Variable()
constructor
Definition: libmwaw_internal.hxx:368
Type m_type
the type
Definition: libmwaw_internal.hxx:294
Definition: libmwaw_internal.hxx:159
Vec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:772
Definition: libmwaw_internal.hxx:159
bool m_set
a flag to know if the variable is set or not
Definition: libmwaw_internal.hxx:428
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
Box2(Box2< U > const &p)
generic constructor
Definition: libmwaw_internal.hxx:763
Box2< int > Box2i
Box2 of int.
Definition: libmwaw_internal.hxx:907
internal struct used to create sorted map, sorted by Y
Definition: libmwaw_internal.hxx:575
bool operator!=(MWAWColor const &c) const
operator!=
Definition: libmwaw_internal.hxx:208
Vec2< T > m_pt[2]
the two extremities
Definition: libmwaw_internal.hxx:903
T x() const
first element
Definition: libmwaw_internal.hxx:444
Definition: libmwaw_internal.hxx:239
bool operator>=(MWAWColor const &c) const
operator>=
Definition: libmwaw_internal.hxx:224
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:187
Definition: libmwaw_internal.hxx:157
void add(T dx, T dy)
increases the actuals values by dx and dy
Definition: libmwaw_internal.hxx:477
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:628
Definition: libmwaw_internal.hxx:130
std::map< Vec3< T >, T, struct PosSizeLt > Map
map of Vec3
Definition: libmwaw_internal.hxx:737
MWAWColor(uint32_t argb=0)
constructor
Definition: libmwaw_internal.hxx:168
bool operator()(Vec2< T > const &s1, Vec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:577
Definition: libmwaw_internal.hxx:241
Vec2< T > & operator-=(Vec2< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:489
Definition: libmwaw_internal.hxx:126
Vec2< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:496
T & operator*()
operator*
Definition: libmwaw_internal.hxx:408
Definition: libmwaw_internal.hxx:288
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:174
int cmpY(Vec2< T > const &p) const
a comparison function: which first compares y then x
Definition: libmwaw_internal.hxx:542
a class which stores section properties
Definition: MWAWSection.hxx:45
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:348
void setZ(T zz)
resets the third element
Definition: libmwaw_internal.hxx:653
bool operator!=(MWAWBorder const &orig) const
operator!=
Definition: libmwaw_internal.hxx:258
std::map< Vec2< int >, int, struct PosSizeLtX > MapX
Definition: libmwaw_internal.hxx:570
Definition: libmwaw_internal.hxx:157
Style m_style
the border style
Definition: libmwaw_internal.hxx:270
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:63
Definition: libmwaw_internal.hxx:288
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:346
Definition: libmwaw_internal.hxx:306
an noop deleter used to transform a libwpd pointer in a false shared_ptr
Definition: libmwaw_internal.hxx:108
Vec2(Vec2< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:441
Definition: libmwaw_internal.hxx:157
bool operator==(Box2< T > const &p) const
comparison operator==
Definition: libmwaw_internal.hxx:860
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
T y() const
second element
Definition: libmwaw_internal.hxx:620
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:344
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:452
bool operator()(Vec3< T > const &s1, Vec3< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:730
Definition: libmwaw_internal.hxx:159
T * operator->()
operator*
Definition: libmwaw_internal.hxx:399
Definition: libmwaw_internal.hxx:288
T m_data
the value
Definition: libmwaw_internal.hxx:426
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
void resizeFromMax(Vec2< T > const &sz)
resize the box keeping the maximum
Definition: libmwaw_internal.hxx:819
shared_ptr< MWAWContentListener > MWAWContentListenerPtr
a smart pointer of MWAWContentListener
Definition: libmwaw_internal.hxx:340
Definition: libmwaw_internal.hxx:239
void scale(U factor)
scales all points of the box by factor
Definition: libmwaw_internal.hxx:830
a field
Definition: libmwaw_internal.hxx:286
void setMax(Vec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:810
Box2< T > getUnion(Box2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:842
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:296
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:649
void setMin(Vec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:806
T z() const
third element
Definition: libmwaw_internal.hxx:624
bool operator<=(MWAWColor const &c) const
operator<=
Definition: libmwaw_internal.hxx:216
Definition: libmwaw_internal.hxx:241
Definition: libmwaw_internal.hxx:162
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:356
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:282
Box2(Vec2< T > minPt=Vec2< T >(), Vec2< T > maxPt=Vec2< T >())
constructor
Definition: libmwaw_internal.hxx:758
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:200
T m_val[3]
the values
Definition: libmwaw_internal.hxx:741
a note
Definition: libmwaw_internal.hxx:304
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:89
Class to define the position of an object (textbox, picture, ..) in the document. ...
Definition: MWAWPosition.hxx:47
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:288
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:46
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:196
MWAWBorder()
constructor
Definition: libmwaw_internal.hxx:244
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool addTo(WPXPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libmwaw_internal.cxx:220
Box2f rotateBoxFromCenter(Box2f const &box, float angle)
rotate a bdox and returns the final bdbox
Definition: libmwaw_internal.cxx:347
small class which defines a vector with 2 elements
Definition: libmwaw_internal.hxx:435
bool operator()(Vec2< T > const &s1, Vec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:563
void operator()(T *)
Definition: libmwaw_internal.hxx:109
This class contents the main functions needed to create a Writer Document.
Definition: MWAWContentListener.hxx:57
friend Vec2< T > operator*(U scale, Vec2< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:514
T const & operator*() const
operator*
Definition: libmwaw_internal.hxx:404
Vec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:792
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:645
Box2< T > getIntersection(Box2< T > const &box) const
returns the intersection between this and box
Definition: libmwaw_internal.hxx:851
a small structure used to store the informations about a list
Definition: MWAWList.hxx:103
Definition: libmwaw_internal.hxx:239
the main class to read a Mac resource fork
Definition: MWAWRSRCParser.hxx:48
Definition: libmwaw_internal.hxx:157
uint32_t value() const
return the rgba value
Definition: libmwaw_internal.hxx:192
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:280
libmwaw::NumberingType m_numberingType
the number type ( for number field )
Definition: libmwaw_internal.hxx:298
T x() const
first element
Definition: libmwaw_internal.hxx:616
T m_y
second element
Definition: libmwaw_internal.hxx:586
Vec2< long > Vec2l
Vec2 of long.
Definition: libmwaw_internal.hxx:594
bool operator()(Box2< T > const &s1, Box2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:892
Definition: libmwaw_internal.hxx:162
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:366
Definition: libmwaw_internal.hxx:155
int cmp(Vec2< T > const &p) const
a comparison function: which first compares x then y
Definition: libmwaw_internal.hxx:532
uint32_t m_value
the argb color
Definition: libmwaw_internal.hxx:233
Variable & operator=(T val)
set a value
Definition: libmwaw_internal.hxx:382
Definition: libmwaw_internal.hxx:122
Vec3(Vec3< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:611
friend Vec3< T > operator*(U scale, Vec3< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:693
void resizeFromCenter(Vec2< T > const &sz)
resize the box keeping the center
Definition: libmwaw_internal.hxx:823
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:352
Vec2< T > & min()
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:776
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:250
friend Vec2< T > operator+(Vec2< T > const &p1, Vec2< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:503