34 #ifndef LIBMWAW_INTERNAL_H
35 #define LIBMWAW_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;
115 #define MWAW_DEBUG_MSG(M) printf M
117 #define MWAW_DEBUG_MSG(M)
147 uint8_t
readU8(librevenge::RVNGInputStream *input);
149 void appendUnicode(uint32_t val, librevenge::RVNGString &buffer);
173 MWAWColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a=255) :
174 m_value(uint32_t((a<<24)+(r<<16)+(g<<8)+b))
186 double w=1.-double(k)/255.;
188 ((
unsigned char)(255 * (1-
double(c)/255) * w),
189 (
unsigned char)(255 * (1-
double(m)/255) * w),
190 (
unsigned char)(255 * (1-
double(y)/255) * w)
196 double c=(1-((L>=128) ? (2*
double(L)-255) : (255-2*
double(L)))/255)*
198 double tmp=std::fmod((
double(H)*6/255),2)-1;
199 double x=c*(1-(tmp>0 ? tmp : -tmp));
200 unsigned char C=(
unsigned char)(255*c);
201 unsigned char M=(
unsigned char)(
double(L)-255*c/2);
202 unsigned char X=(
unsigned char)(255*x);
203 if (H<=42)
return MWAWColor((
unsigned char)(M+C),(
unsigned char)(M+X),(
unsigned char)M);
204 if (H<=85)
return MWAWColor((
unsigned char)(M+X),(
unsigned char)(M+C),(
unsigned char)M);
205 if (H<=127)
return MWAWColor((
unsigned char)M,(
unsigned char)(M+C),(
unsigned char)(M+X));
206 if (H<=170)
return MWAWColor((
unsigned char)M,(
unsigned char)(M+X),(
unsigned char)(M+C));
207 if (H<=212)
return MWAWColor((
unsigned char)(M+X),(
unsigned char)M,(
unsigned char)(M+C));
208 return MWAWColor((
unsigned char)(M+C),(
unsigned char)(M),(
unsigned char)(M+X));
232 return (
unsigned char)((
m_value>>24)&0xFF);
237 return (
unsigned char)(
m_value&0xFF);
242 return (
unsigned char)((
m_value>>16)&0xFF);
247 return (
unsigned char)((
m_value>>8)&0xFF);
257 return (
m_value&0xFFFFFF)==0xFFFFFF;
292 std::string
str()
const;
310 bool addTo(librevenge::RVNGPropertyList &propList, std::string which=
"")
const;
377 bool addTo(librevenge::RVNGPropertyList &propList)
const;
553 assert(c >= 0 && c <= 1);
554 return (c==0) ?
m_x :
m_y;
559 assert(c >= 0 && c <= 1);
560 return (c==0) ?
m_x :
m_y;
641 bool operator<(Vec2<T>
const &p)
const
648 if (
m_x < p.
m_x)
return -1;
649 if (
m_x > p.
m_x)
return 1;
650 if (
m_y < p.
m_y)
return -1;
651 if (
m_y > p.
m_y)
return 1;
657 if (
m_y < p.
m_y)
return -1;
658 if (
m_y > p.
m_y)
return 1;
659 if (
m_x < p.
m_x)
return -1;
660 if (
m_x > p.
m_x)
return 1;
665 friend std::ostream &operator<< (std::ostream &o, Vec2<T>
const &f)
667 o << f.m_x <<
"x" << f.m_y;
678 return s1.
cmp(s2) < 0;
684 typedef std::map<Vec2<T>, T,
struct PosSizeLtX>
MapX;
693 return s1.
cmpY(s2) < 0;
699 typedef std::map<Vec2<T>, T,
struct PosSizeLtY>
MapY;
729 for (
int c = 0; c < 3; c++)
m_val[c] = T(p[c]);
750 assert(c >= 0 && c <= 2);
756 assert(c >= 0 && c <= 2);
761 void set(T xx, T yy, T zz)
784 void add(T dx, T dy, T dz)
807 for (
int c = 0; c < 3; c++)
m_val[c] = T(
m_val[c]*scale);
842 bool operator<(Vec3<T>
const &p)
const
849 for (
int c = 0; c < 3; c++) {
851 if (diff)
return (diff < 0) ? -1 : 1;
857 friend std::ostream &operator<< (std::ostream &o, Vec3<T>
const &f)
859 o << f.m_val[0] <<
"x" << f.m_val[1] <<
"x" << f.m_val[2];
870 return s1.
cmp(s2) < 0;
905 for (
int c=0; c < 2; c++)
m_pt[c] = p[c];
933 assert(c >= 0 && c <= 1);
978 m_pt[0] = centerPt - 0.5*sz;
979 m_pt[1] = centerPt + (sz - 0.5*sz);
983 template <
class U>
void scale(U factor)
1027 bool operator<(Box2<T>
const &p)
const
1035 int diff =
m_pt[0].cmpY(p.
m_pt[0]);
1036 if (diff)
return diff;
1038 if (diff)
return diff;
1043 friend std::ostream &operator<< (std::ostream &o, Box2<T>
const &f)
1045 o <<
"(" << f.m_pt[0] <<
"<->" << f.m_pt[1] <<
")";
1056 return s1.
cmp(s2) < 0;
1062 typedef std::map<Box2<T>, T,
struct PosSizeLt>
Map;
Box2< long > Box2l
Box2 of long.
Definition: libmwaw_internal.hxx:1074
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:431
internal struct used to create sorted map, sorted by X, Y, Z
Definition: libmwaw_internal.hxx:866
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:517
Definition: libmwaw_internal.hxx:303
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:396
NumberingType
Definition: libmwaw_internal.hxx:160
Variable(T const &def)
constructor with a default value
Definition: libmwaw_internal.hxx:457
void set(Vec2< T > const &x, Vec2< T > const &y)
resets the data to minimum x and maximum y
Definition: libmwaw_internal.hxx:948
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:60
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:575
Definition: libmwaw_internal.hxx:163
MWAWColor & operator=(uint32_t argb)
operator=
Definition: libmwaw_internal.hxx:178
Definition: libmwaw_internal.hxx:160
Definition: libmwaw_internal.hxx:301
Vec3< int > Vec3i
Vec3 of int.
Definition: libmwaw_internal.hxx:886
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:205
Definition: libmwaw_internal.hxx:160
T m_x
first element
Definition: libmwaw_internal.hxx:701
void add(T dx, T dy, T dz)
increases the actuals values by dx, dy, dz
Definition: libmwaw_internal.hxx:784
Definition: libmwaw_internal.hxx:163
Definition: libmwaw_internal.hxx:160
std::string m_data
the database/link field ( if defined )
Definition: libmwaw_internal.hxx:366
bool operator!=(Vec3< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:837
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:716
Vec2< T > const & operator[](int c) const
the two extremum points which defined the box
Definition: libmwaw_internal.hxx:931
Definition: libmwaw_internal.hxx:353
Vec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:909
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:59
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:337
bool operator==(MWAWBorder const &orig) const
operator==
Definition: libmwaw_internal.hxx:317
Definition: libmwaw_internal.hxx:158
bool operator!=(Box2< T > const &p) const
comparison operator!=
Definition: libmwaw_internal.hxx:1022
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:1033
Definition: libmwaw_internal.hxx:163
void insert(Variable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:477
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:64
Vec3< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:805
friend Vec2< T > operator-(Vec2< T > const &p1, Vec2< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:617
Vec2< float > Vec2f
Vec2 of float.
Definition: libmwaw_internal.hxx:711
Definition: libmwaw_internal.hxx:353
Variable & operator=(Variable const &orig)
copy operator
Definition: libmwaw_internal.hxx:461
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:216
MWAWNote(Type type)
constructor
Definition: libmwaw_internal.hxx:388
bool operator>(MWAWColor const &c) const
operator>
Definition: libmwaw_internal.hxx:280
bool operator<(MWAWColor const &c) const
operator<
Definition: libmwaw_internal.hxx:270
friend Vec3< T > operator+(Vec3< T > const &p1, Vec3< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:812
Definition: libmwaw_internal.hxx:163
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:124
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:557
a link
Definition: libmwaw_internal.hxx:370
Vec3< T > & operator+=(Vec3< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:792
small class which defines a 2D Box
Definition: libmwaw_internal.hxx:893
void set(T xx, T yy, T zz)
resets the three elements
Definition: libmwaw_internal.hxx:761
internal struct used to create sorted map, sorted first min then max
Definition: libmwaw_internal.hxx:1052
shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:437
void resizeFromMin(Vec2< T > const &sz)
resize the box keeping the minimum
Definition: libmwaw_internal.hxx:965
Definition: libmwaw_internal.hxx:158
MWAWColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
constructor from color
Definition: libmwaw_internal.hxx:173
Definition: libmwaw_internal.hxx:353
Definition: libmwaw_internal.hxx:163
unsigned char getRed() const
returns the red value
Definition: libmwaw_internal.hxx:240
internal struct used to create sorted map, sorted by X
Definition: libmwaw_internal.hxx:674
std::map< Vec2< bool >, bool, struct PosSizeLtY > MapY
Definition: libmwaw_internal.hxx:699
bool operator==(MWAWColor const &c) const
operator==
Definition: libmwaw_internal.hxx:260
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:211
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:512
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:754
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:59
SubDocumentType
Definition: libmwaw_internal.hxx:163
Vec2< T > & operator+=(Vec2< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:588
Vec2< bool > Vec2b
Vec2 of bool.
Definition: libmwaw_internal.hxx:705
void set(T xx, T yy)
resets the two elements
Definition: libmwaw_internal.hxx:564
Variable & operator=(T const &val)
set a value
Definition: libmwaw_internal.hxx:470
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:102
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:990
Definition: libmwaw_internal.hxx:156
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:339
Definition: libmwaw_internal.hxx:156
Vec3< unsigned char > Vec3uc
Vec3 of unsigned char.
Definition: libmwaw_internal.hxx:884
Position
basic position enum
Definition: libmwaw_internal.hxx:156
Definition: libmwaw_internal.hxx:156
friend Vec3< T > operator-(Vec3< T > const &p1, Vec3< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:818
Type m_type
the note type
Definition: libmwaw_internal.hxx:392
Definition: libmwaw_internal.hxx:156
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if needed )
Definition: libmwaw_internal.cxx:213
Box2< float > Box2f
Box2 of float.
Definition: libmwaw_internal.hxx:1072
unsigned char getAlpha() const
returns the alpha value
Definition: libmwaw_internal.hxx:230
Vec2< T > & max()
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:924
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:47
Definition: libmwaw_internal.hxx:386
Type
the line repetition
Definition: libmwaw_internal.hxx:303
friend std::ostream & operator<<(std::ostream &o, MWAWColor const &c)
operator<< in the form #rrggbb
Definition: libmwaw_internal.cxx:193
Vec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:942
static MWAWColor colorFromCMYK(unsigned char c, unsigned char m, unsigned char y, unsigned char k)
return a color from a cmyk color ( basic)
Definition: libmwaw_internal.hxx:184
friend std::ostream & operator<<(std::ostream &o, MWAWBorder const &border)
operator<<
Definition: libmwaw_internal.cxx:327
the class to store a color
Definition: libmwaw_internal.hxx:167
Definition: libmwaw_internal.hxx:163
Definition: libmwaw_internal.hxx:139
Vec2< int > Vec2i
Vec2 of int.
Definition: libmwaw_internal.hxx:707
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:443
bool operator==(Vec2< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:631
Definition: libmwaw_internal.hxx:353
MWAWField(Type type)
basic constructor
Definition: libmwaw_internal.hxx:356
Vec3< float > Vec3f
Vec3 of float.
Definition: libmwaw_internal.hxx:888
Definition: libmwaw_internal.hxx:156
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:394
Style
the line style
Definition: libmwaw_internal.hxx:301
bool operator!=(Vec2< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:636
Definition: libmwaw_internal.hxx:160
T y() const
second element
Definition: libmwaw_internal.hxx:546
Vec2(T xx=0, T yy=0)
constructor
Definition: libmwaw_internal.hxx:536
Vec3(T xx=0, T yy=0, T zz=0)
constructor
Definition: libmwaw_internal.hxx:720
Type
enum to define note type
Definition: libmwaw_internal.hxx:386
MWAWLink()
basic constructor
Definition: libmwaw_internal.hxx:372
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:570
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:847
bool operator==(Vec3< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:832
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:343
int compare(MWAWBorder const &orig) const
compare two borders
Definition: libmwaw_internal.cxx:222
std::map< Box2< int >, int, struct PosSizeLt > Map
Definition: libmwaw_internal.hxx:1062
Class to store font.
Definition: MWAWFont.hxx:44
a border
Definition: libmwaw_internal.hxx:299
a class to define the parser state
Definition: MWAWParser.hxx:49
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:439
Definition: libmwaw_internal.hxx:163
Definition: libmwaw_internal.hxx:301
Definition: libmwaw_internal.hxx:353
Variable(Variable const &orig)
copy constructor
Definition: libmwaw_internal.hxx:459
Vec3< T > & operator-=(Vec3< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:798
Definition: libmwaw_internal.hxx:135
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
T const * operator->() const
operator*
Definition: libmwaw_internal.hxx:485
Variable()
constructor
Definition: libmwaw_internal.hxx:455
Type m_type
the type
Definition: libmwaw_internal.hxx:360
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:441
Definition: libmwaw_internal.hxx:160
Vec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:914
Definition: libmwaw_internal.hxx:160
bool m_set
a flag to know if the variable is set or not
Definition: libmwaw_internal.hxx:525
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:903
Box2< int > Box2i
Box2 of int.
Definition: libmwaw_internal.hxx:1070
internal struct used to create sorted map, sorted by Y
Definition: libmwaw_internal.hxx:689
bool operator!=(MWAWColor const &c) const
operator!=
Definition: libmwaw_internal.hxx:265
Vec2< T > m_pt[2]
the two extremities
Definition: libmwaw_internal.hxx:1066
T x() const
first element
Definition: libmwaw_internal.hxx:541
Definition: libmwaw_internal.hxx:301
bool operator>=(MWAWColor const &c) const
operator>=
Definition: libmwaw_internal.hxx:285
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:195
Definition: libmwaw_internal.hxx:158
void add(T dx, T dy)
increases the actuals values by dx and dy
Definition: libmwaw_internal.hxx:581
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:748
Definition: libmwaw_internal.hxx:131
std::map< Vec3< T >, T, struct PosSizeLt > Map
map of Vec3
Definition: libmwaw_internal.hxx:876
MWAWColor(uint32_t argb=0)
constructor
Definition: libmwaw_internal.hxx:169
bool addTo(librevenge::RVNGPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libmwaw_internal.cxx:234
bool operator()(Vec2< T > const &s1, Vec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:691
Definition: libmwaw_internal.hxx:303
Vec2< T > & operator-=(Vec2< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:595
Definition: libmwaw_internal.hxx:127
Vec2< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:603
Definition: libmwaw_internal.hxx:163
T & operator*()
operator*
Definition: libmwaw_internal.hxx:501
Definition: libmwaw_internal.hxx:353
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:179
int cmpY(Vec2< T > const &p) const
a comparison function: which first compares y then x
Definition: libmwaw_internal.hxx:655
a class which stores section properties
Definition: MWAWSection.hxx:45
unsigned char getBlue() const
returns the green value
Definition: libmwaw_internal.hxx:235
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:429
void setZ(T zz)
resets the third element
Definition: libmwaw_internal.hxx:778
bool operator!=(MWAWBorder const &orig) const
operator!=
Definition: libmwaw_internal.hxx:322
std::map< Vec2< bool >, bool, struct PosSizeLtX > MapX
Definition: libmwaw_internal.hxx:684
Definition: libmwaw_internal.hxx:158
Style m_style
the border style
Definition: libmwaw_internal.hxx:335
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:63
Definition: libmwaw_internal.hxx:353
unsigned char getGreen() const
returns the green value
Definition: libmwaw_internal.hxx:245
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:427
Definition: libmwaw_internal.hxx:386
an noop deleter used to transform a libwpd pointer in a false shared_ptr
Definition: libmwaw_internal.hxx:109
Vec2(Vec2< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:538
Definition: libmwaw_internal.hxx:158
bool operator==(Box2< T > const &p) const
comparison operator==
Definition: libmwaw_internal.hxx:1017
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
T y() const
second element
Definition: libmwaw_internal.hxx:738
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:423
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:551
bool operator()(Vec3< T > const &s1, Vec3< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:868
Definition: libmwaw_internal.hxx:160
T * operator->()
operator*
Definition: libmwaw_internal.hxx:490
T m_data
the value
Definition: libmwaw_internal.hxx:523
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:970
std::string m_HRef
the href field
Definition: libmwaw_internal.hxx:380
Definition: libmwaw_internal.hxx:301
void scale(U factor)
scales all points of the box by factor
Definition: libmwaw_internal.hxx:983
a field
Definition: libmwaw_internal.hxx:351
static MWAWColor colorFromHSL(unsigned char H, unsigned char S, unsigned char L)
return a color from a hsl color (basic)
Definition: libmwaw_internal.hxx:194
void setMax(Vec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:959
Box2< T > getUnion(Box2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:997
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:362
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:773
void setMin(Vec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:954
T z() const
third element
Definition: libmwaw_internal.hxx:743
bool operator<=(MWAWColor const &c) const
operator<=
Definition: libmwaw_internal.hxx:275
Definition: libmwaw_internal.hxx:303
Definition: libmwaw_internal.hxx:163
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:435
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libmwaw_internal.cxx:49
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:347
Box2(Vec2< T > minPt=Vec2< T >(), Vec2< T > maxPt=Vec2< T >())
constructor
Definition: libmwaw_internal.hxx:897
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:255
T m_val[3]
the values
Definition: libmwaw_internal.hxx:880
a note
Definition: libmwaw_internal.hxx:384
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:97
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:353
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:49
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:250
MWAWBorder()
constructor
Definition: libmwaw_internal.hxx:306
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
Box2f rotateBoxFromCenter(Box2f const &box, float angle)
rotate a bdox and returns the final bdbox
Definition: libmwaw_internal.cxx:362
small class which defines a vector with 2 elements
Definition: libmwaw_internal.hxx:532
bool operator()(Vec2< T > const &s1, Vec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:676
void operator()(T *)
Definition: libmwaw_internal.hxx:110
friend Vec2< T > operator*(U scale, Vec2< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:624
T const & operator*() const
operator*
Definition: libmwaw_internal.hxx:496
Vec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:937
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:768
Box2< T > getIntersection(Box2< T > const &box) const
returns the intersection between this and box
Definition: libmwaw_internal.hxx:1007
a small structure used to store the informations about a list
Definition: MWAWList.hxx:105
Definition: libmwaw_internal.hxx:301
the main class to read a Mac resource fork
Definition: MWAWRSRCParser.hxx:46
Definition: libmwaw_internal.hxx:158
uint32_t value() const
return the rgba value
Definition: libmwaw_internal.hxx:225
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:345
libmwaw::NumberingType m_numberingType
the number type ( for number field )
Definition: libmwaw_internal.hxx:364
T x() const
first element
Definition: libmwaw_internal.hxx:733
T m_y
second element
Definition: libmwaw_internal.hxx:701
Vec2< long > Vec2l
Vec2 of long.
Definition: libmwaw_internal.hxx:709
bool operator()(Box2< T > const &s1, Box2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:1054
Definition: libmwaw_internal.hxx:163
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:55
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:453
Definition: libmwaw_internal.hxx:156
int cmp(Vec2< T > const &p) const
a comparison function: which first compares x then y
Definition: libmwaw_internal.hxx:646
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:445
uint32_t m_value
the argb color
Definition: libmwaw_internal.hxx:295
Definition: libmwaw_internal.hxx:123
Vec3(Vec3< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:727
friend Vec3< T > operator*(U scale, Vec3< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:825
void resizeFromCenter(Vec2< T > const &sz)
resize the box keeping the center
Definition: libmwaw_internal.hxx:975
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:433
Vec2< T > & min()
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:919
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:312
friend Vec2< T > operator+(Vec2< T > const &p1, Vec2< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:611