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;
113 #if defined(__clang__) || defined(__GNUC__) 114 # define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg) __attribute__((__format__(__printf__, fmt, arg))) 116 # define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg) 125 #define MWAW_DEBUG_MSG(M) libmwaw::printDebugMsg M 127 #define MWAW_DEBUG_MSG(M) 157 uint8_t
readU8(librevenge::RVNGInputStream *input);
159 void appendUnicode(uint32_t val, librevenge::RVNGString &buffer);
188 MWAWColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a=255) :
189 m_value(uint32_t((a<<24)+(r<<16)+(g<<8)+b))
201 double w=1.-
static_cast<double>(k)/255.;
203 (static_cast<unsigned char>(255 * (1-static_cast<double>(c)/255) * w),
204 static_cast<unsigned char>(255 * (1-static_cast<double>(m)/255) * w),
205 static_cast<unsigned char>(255 * (1-static_cast<double>(y)/255) * w)
211 double c=(1-((L>=128) ? (2*static_cast<double>(L)-255) : (255-2*static_cast<double>(L)))/255)*
212 static_cast<double>(S)/255;
213 double tmp=std::fmod((static_cast<double>(H)*6/255),2)-1;
214 double x=c*(1-(tmp>0 ? tmp : -tmp));
215 unsigned char C=
static_cast<unsigned char>(255*c);
216 unsigned char M=
static_cast<unsigned char>(
static_cast<double>(L)-255*c/2);
217 unsigned char X=
static_cast<unsigned char>(255*x);
218 if (H<=42)
return MWAWColor(static_cast<unsigned char>(M+C),static_cast<unsigned char>(M+X),static_cast<unsigned char>(M));
219 if (H<=85)
return MWAWColor(static_cast<unsigned char>(M+X),static_cast<unsigned char>(M+C),static_cast<unsigned char>(M));
220 if (H<=127)
return MWAWColor(static_cast<unsigned char>(M),static_cast<unsigned char>(M+C),static_cast<unsigned char>(M+X));
221 if (H<=170)
return MWAWColor(static_cast<unsigned char>(M),static_cast<unsigned char>(M+X),static_cast<unsigned char>(M+C));
222 if (H<=212)
return MWAWColor(static_cast<unsigned char>(M+X),static_cast<unsigned char>(M),static_cast<unsigned char>(M+C));
223 return MWAWColor(static_cast<unsigned char>(M+C),static_cast<unsigned char>(M),static_cast<unsigned char>(M+X));
247 return static_cast<unsigned char>((m_value>>24)&0xFF);
252 return static_cast<unsigned char>(m_value&0xFF);
257 return static_cast<unsigned char>((m_value>>16)&0xFF);
262 return static_cast<unsigned char>((m_value>>8)&0xFF);
267 return (m_value&0xFFFFFF)==0;
272 return (m_value&0xFFFFFF)==0xFFFFFF;
277 return (c.
m_value&0xFFFFFF)==(m_value&0xFFFFFF);
282 return !operator==(c);
287 return (c.
m_value&0xFFFFFF)<(m_value&0xFFFFFF);
292 return (c.
m_value&0xFFFFFF)<=(m_value&0xFFFFFF);
297 return !operator<=(c);
302 return !operator<(c);
307 std::string str()
const;
316 enum Style { None, Simple, Dot, LargeDot, Dash };
318 enum Type { Single, Double, Triple };
321 MWAWBorder() : m_style(Simple), m_type(Single), m_width(1), m_widthsList(), m_color(
MWAWColor::black()), m_extra(
"") { }
325 bool addTo(librevenge::RVNGPropertyList &propList, std::string which=
"")
const;
329 return m_style==None || m_width <= 0;
334 return !operator!=(orig);
371 enum Type { None, PageCount, PageNumber, Date, Time, Title, Database };
378 bool addTo(librevenge::RVNGPropertyList &propList)
const;
380 librevenge::RVNGString getString()
const;
399 bool addTo(librevenge::RVNGPropertyList &propList)
const;
408 enum Type { FootNote, EndNote };
432 std::string type=
"image/pict") : m_dataList(), m_typeList()
434 add(binaryData, type);
441 for (
size_t i=0; i<m_dataList.size(); ++i) {
442 if (!m_dataList[i].empty())
448 void add(librevenge::RVNGBinaryData
const &binaryData, std::string type=
"image/pict")
450 size_t pos=m_dataList.size();
451 if (pos<m_typeList.size()) pos=m_typeList.size();
452 m_dataList.resize(pos+1);
453 m_dataList[pos]=binaryData;
454 m_typeList.resize(pos+1);
455 m_typeList[pos]=type;
458 bool addTo(librevenge::RVNGPropertyList &propList)
const;
607 explicit MWAWVec2(T xx=0,T yy=0) : m_x(xx), m_y(yy) { }
625 return (c==0) ? m_x : m_y;
631 return (c==0) ? m_x : m_y;
712 bool operator<(MWAWVec2<T>
const &p)
const 719 if (m_x < p.
m_x)
return -1;
720 if (m_x > p.
m_x)
return 1;
721 if (m_y < p.
m_y)
return -1;
722 if (m_y > p.
m_y)
return 1;
728 if (m_y < p.
m_y)
return -1;
729 if (m_y > p.
m_y)
return 1;
730 if (m_x < p.
m_x)
return -1;
731 if (m_x > p.
m_x)
return 1;
736 friend std::ostream &operator<< (std::ostream &o, MWAWVec2<T>
const &f)
738 o << f.m_x <<
"x" << f.m_y;
749 return s1.
cmp(s2) < 0;
755 typedef std::map<MWAWVec2<T>, T,
struct PosSizeLtX>
MapX;
764 return s1.
cmpY(s2) < 0;
770 typedef std::map<MWAWVec2<T>, T,
struct PosSizeLtY>
MapY;
800 for (
int c = 0; c < 3; c++) m_val[c] = T(p[c]);
832 void set(T xx, T yy, T zz)
855 void add(T dx, T dy, T dz)
865 for (
int c = 0; c < 3; c++) m_val[c] = T(m_val[c]+p.
m_val[c]);
871 for (
int c = 0; c < 3; c++) m_val[c] = T(m_val[c]-p.
m_val[c]);
878 for (
int c = 0; c < 3; c++) m_val[c] = T(m_val[c]*scale);
913 bool operator<(MWAWVec3<T>
const &p)
const 920 for (
int c = 0; c < 3; c++) {
921 if (m_val[c]<p.
m_val[c])
return -1;
922 if (m_val[c]>p.
m_val[c])
return 1;
928 friend std::ostream &operator<< (std::ostream &o, MWAWVec3<T>
const &f)
930 o << f.m_val[0] <<
"x" << f.m_val[1] <<
"x" << f.m_val[2];
941 return s1.
cmp(s2) < 0;
947 typedef std::map<MWAWVec3<T>, T,
struct PosSizeLt>
Map;
984 return m_data.second;
994 return m_data.second;
1002 return c==0 ? m_data.first : m_data.second;
1007 return m_data.second-m_data.first;
1012 return MWAWVec2<T>((m_data.first.x()+m_data.second.x())/2,
1013 (m_data.first.y()+m_data.second.y())/2);
1036 m_data.second = m_data.first+sz;
1041 m_data.first = m_data.second-sz;
1048 m_data.first = centerPt - decal;
1049 m_data.second = centerPt + (sz - decal);
1055 m_data.first *= factor;
1056 m_data.second *= factor;
1063 m_data.second +=
MWAWVec2<T>(val-(val/2),val-(val/2));
1071 m_data.first[1]<box.
m_data.first[1]?m_data.first[1] : box.
m_data.first[1]);
1073 m_data.second[1]>box.
m_data.second[1]?m_data.second[1] : box.
m_data.second[1]);
1081 m_data.first[1]>box.
m_data.first[1]?m_data.first[1] : box.
m_data.first[1]);
1083 m_data.second[1]<box.
m_data.second[1]?m_data.second[1] : box.
m_data.second[1]);
1089 return m_data==mat.
m_data;
1094 return m_data!=mat.
m_data;
1097 bool operator<(MWAWBox2<T>
const &mat)
const 1099 return m_data<mat.m_data;
1102 bool operator<=(MWAWBox2<T>
const &mat)
const 1104 return m_data<=mat.m_data;
1109 return m_data>mat.
m_data;
1114 return m_data>=mat.
m_data;
1117 friend std::ostream &operator<< (std::ostream &o, MWAWBox2<T>
const &f)
1119 o <<
"(" << f.min() <<
"<->" << f.max() <<
")";
1147 return m_isIdentity;
1160 return c==0 ? m_data.first : m_data.second;
1165 if (m_isIdentity)
return pt;
1166 return multiplyDirection(pt)+
MWAWVec2f(m_data.first[2],m_data.second[2]);
1171 if (m_isIdentity)
return dir;
1173 for (
int coord=0; coord<2; ++coord) {
1174 MWAWVec3f const &row=coord==0 ? m_data.first : m_data.second;
1176 for (
int i=0; i<2; ++i)
1177 value+=row[i]*dir[i];
1185 if (m_isIdentity)
return box;
1193 for (
int row=0; row<2; ++row) {
1195 for (
int col=0; col<3; ++col) {
1197 for (
int i=0; i<3; ++i)
1198 value+=(*
this)[row][i]*(i==2 ? (col==2 ? 1.f : 0.f) : mat[i][col]);
1215 return m_data==mat.
m_data;
1220 return m_data!=mat.
m_data;
1225 return m_data<mat.
m_data;
1230 return m_data<=mat.
m_data;
1235 return m_data>mat.
m_data;
1240 return m_data>=mat.
m_data;
1279 bool convertDTFormat(std::string
const &dtFormat, librevenge::RVNGPropertyListVector &propVect);
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:502
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:646
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:418
MWAWVec3< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:876
bool isEmpty() const
return true if the picture contains no data
Definition: libmwaw_internal.hxx:439
NumberingType
Definition: libmwaw_internal.hxx:170
bool operator!=(MWAWVec3< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:908
T const & operator*() const
operator*
Definition: libmwaw_internal.hxx:567
MWAWVec2< T > & operator-=(MWAWVec2< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:666
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
Definition: libmwaw_internal.hxx:178
bool operator()(MWAWVec3< T > const &s1, MWAWVec3< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:939
MWAWColor & operator=(uint32_t argb)
operator=
Definition: libmwaw_internal.hxx:193
Definition: libmwaw_internal.hxx:170
Definition: libmwaw_internal.hxx:170
MWAWVec3< int > MWAWVec3i
MWAWVec3 of int.
Definition: libmwaw_internal.hxx:957
std::map< MWAWVec2< bool >, bool, struct PosSizeLtX > MapX
Definition: libmwaw_internal.hxx:755
Definition: libmwaw_internal.hxx:178
Definition: libmwaw_internal.hxx:170
std::string m_data
the database/link field ( if defined )
Definition: libmwaw_internal.hxx:388
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:59
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:355
bool operator==(MWAWBorder const &orig) const
operator==
Definition: libmwaw_internal.hxx:332
Definition: libmwaw_internal.hxx:168
bool operator==(MWAWVec2< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:702
std::ostream & operator<<(std::ostream &o, Shape const &shape)
Definition: BeagleWksDRParser.cxx:98
int cmp(MWAWVec2< T > const &p) const
a comparison function: which first compares x then y
Definition: libmwaw_internal.hxx:717
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:95
MWAWBox2f rotateBoxFromCenter(MWAWBox2f const &box, float angle)
rotate a bdox and returns the final bdbox, angle is given in degree
Definition: libmwaw_internal.cxx:697
T & operator*()
operator*
Definition: libmwaw_internal.hxx:572
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libmwaw_internal.hxx:465
Definition: libmwaw_internal.hxx:178
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:64
MWAWVec2< T > const & operator[](int c) const
the two extremum points which defined the box
Definition: libmwaw_internal.hxx:999
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
MWAWNote(Type type)
constructor
Definition: libmwaw_internal.hxx:410
bool operator>(MWAWBox2< T > const &mat) const
operator>
Definition: libmwaw_internal.hxx:1107
bool operator>(MWAWColor const &c) const
operator>
Definition: libmwaw_internal.hxx:295
bool operator<(MWAWColor const &c) const
operator<
Definition: libmwaw_internal.hxx:285
MWAWVec2(T xx=0, T yy=0)
constructor
Definition: libmwaw_internal.hxx:607
Definition: libmwaw_internal.hxx:178
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:129
a link
Definition: libmwaw_internal.hxx:392
T m_data
the value
Definition: libmwaw_internal.hxx:594
shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:508
bool convertDTFormat(std::string const &dtFormat, librevenge::RVNGPropertyListVector &propVect)
convert a DTFormat in a propertyList
Definition: libmwaw_internal.cxx:315
Definition: libmwaw_internal.hxx:168
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1060
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:622
T * operator->()
operator*
Definition: libmwaw_internal.hxx:561
MWAWColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
constructor from color
Definition: libmwaw_internal.hxx:188
T z() const
third element
Definition: libmwaw_internal.hxx:814
void add(T dx, T dy, T dz)
increases the actuals values by dx, dy, dz
Definition: libmwaw_internal.hxx:855
Definition: libmwaw_internal.hxx:178
unsigned char getRed() const
returns the red value
Definition: libmwaw_internal.hxx:255
MWAWVariable(T const &def)
constructor with a default value
Definition: libmwaw_internal.hxx:528
void add(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
add a picture
Definition: libmwaw_internal.hxx:448
void resizeFromMax(MWAWVec2< T > const &sz)
resize the box keeping the maximum
Definition: libmwaw_internal.hxx:1039
bool operator==(MWAWColor const &c) const
operator==
Definition: libmwaw_internal.hxx:275
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
std::map< MWAWVec3< int >, int, struct PosSizeLt > Map
Definition: libmwaw_internal.hxx:947
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
MWAWVec3< T > & operator-=(MWAWVec3< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:869
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:548
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:59
SubDocumentType
Definition: libmwaw_internal.hxx:178
friend MWAWVec3< T > operator*(U scale, MWAWVec3< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:896
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:105
Definition: libmwaw_internal.hxx:166
bool operator==(MWAWBox2< T > const &mat) const
operator==
Definition: libmwaw_internal.hxx:1087
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:778
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
Definition: libmwaw_internal.hxx:166
MWAWVec2(MWAWVec2< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:609
friend MWAWVec2< T > operator-(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:688
Position
basic position enum
Definition: libmwaw_internal.hxx:166
Definition: libmwaw_internal.hxx:166
MWAWVec2< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:674
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1129
Type m_type
the note type
Definition: libmwaw_internal.hxx:414
void add(T dx, T dy)
increases the actuals values by dx and dy
Definition: libmwaw_internal.hxx:652
Definition: libmwaw_internal.hxx:166
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:628
bool operator!=(MWAWBox2< T > const &mat) const
operator!=
Definition: libmwaw_internal.hxx:1092
unsigned char getAlpha() const
returns the alpha value
Definition: libmwaw_internal.hxx:245
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:787
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:50
Type
the line repetition
Definition: libmwaw_internal.hxx:318
Definition: libmwaw_internal.hxx:175
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:199
the class to store a color
Definition: libmwaw_internal.hxx:182
Definition: libmwaw_internal.hxx:178
bool operator>=(MWAWBox2< T > const &mat) const
operator>=
Definition: libmwaw_internal.hxx:1112
Definition: libmwaw_internal.hxx:149
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:514
friend MWAWVec3< T > operator-(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:889
MWAWField(Type type)
basic constructor
Definition: libmwaw_internal.hxx:374
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:825
Definition: libmwaw_internal.hxx:166
Definition: libmwaw_internal.hxx:175
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:416
Style
the line style
Definition: libmwaw_internal.hxx:316
T x() const
first element
Definition: libmwaw_internal.hxx:612
Definition: libmwaw_internal.hxx:170
Type
enum to define note type
Definition: libmwaw_internal.hxx:408
MWAWLink()
basic constructor
Definition: libmwaw_internal.hxx:394
T m_y
second element
Definition: libmwaw_internal.hxx:772
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:361
MWAWVec2f rotatePointAroundCenter(MWAWVec2f const &point, MWAWVec2f const ¢er, float angle)
rotate a point around center, angle is given in degree
Definition: libmwaw_internal.cxx:689
T y() const
second element
Definition: libmwaw_internal.hxx:617
Class to store font.
Definition: MWAWFont.hxx:43
a border
Definition: libmwaw_internal.hxx:314
small class which defines a 2D Box
Definition: libmwaw_internal.hxx:964
Definition: libmwaw_internal.hxx:175
MWAWVariable & operator=(T const &val)
set a value
Definition: libmwaw_internal.hxx:541
MWAWVec2< T > & min()
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:987
T m_val[3]
the values
Definition: libmwaw_internal.hxx:951
a class to define the parser state
Definition: MWAWParser.hxx:49
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:510
bool m_set
a flag to know if the variable is set or not
Definition: libmwaw_internal.hxx:596
Definition: libmwaw_internal.hxx:178
int cmpY(MWAWVec2< T > const &p) const
a comparison function: which first compares y then x
Definition: libmwaw_internal.hxx:726
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1005
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:641
bool operator==(MWAWVec3< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:903
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:977
MWAWEmbeddedObject(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
constructor
Definition: libmwaw_internal.hxx:431
Definition: libmwaw_internal.hxx:145
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:65
Type m_type
the type
Definition: libmwaw_internal.hxx:382
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:782
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:512
Definition: libmwaw_internal.hxx:170
MWAWVariable & operator=(MWAWVariable const &orig)
copy operator
Definition: libmwaw_internal.hxx:532
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:959
bool operator!=(MWAWVec2< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:707
MWAWVec2< T > & operator+=(MWAWVec2< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:659
MWAWBox2(MWAWBox2< U > const &p)
generic constructor
Definition: libmwaw_internal.hxx:972
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:776
Definition: libmwaw_internal.hxx:170
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
T x() const
first element
Definition: libmwaw_internal.hxx:804
bool operator!=(MWAWColor const &c) const
operator!=
Definition: libmwaw_internal.hxx:280
bool operator>=(MWAWColor const &c) const
operator>=
Definition: libmwaw_internal.hxx:300
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:168
internal struct used to create sorted map, sorted by X, Y, Z
Definition: libmwaw_internal.hxx:937
std::vector< std::string > m_typeList
the picture type: one type by representation
Definition: libmwaw_internal.hxx:467
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1067
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:839
Definition: libmwaw_internal.hxx:141
MWAWColor(uint32_t argb=0)
constructor
Definition: libmwaw_internal.hxx:184
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
void resizeFromCenter(MWAWVec2< T > const &sz)
resize the box keeping the center
Definition: libmwaw_internal.hxx:1044
#define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg)
Definition: libmwaw_internal.hxx:116
Definition: libmwaw_internal.hxx:137
Definition: libmwaw_internal.hxx:178
Definition: libmwaw_internal.hxx:175
MWAWBox2< T > getIntersection(MWAWBox2< T > const &box) const
returns the intersection between this and box
Definition: libmwaw_internal.hxx:1077
a class which stores section properties
Definition: MWAWSection.hxx:45
unsigned char getBlue() const
returns the green value
Definition: libmwaw_internal.hxx:250
MWAWVec3(MWAWVec3< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:798
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:500
bool operator!=(MWAWBorder const &orig) const
operator!=
Definition: libmwaw_internal.hxx:337
MWAWEmbeddedObject()
empty constructor
Definition: libmwaw_internal.hxx:427
MWAWBox2(MWAWVec2< T > minPt=MWAWVec2< T >(), MWAWVec2< T > maxPt=MWAWVec2< T >())
constructor
Definition: libmwaw_internal.hxx:968
friend MWAWVec2< T > operator+(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:682
std::string writingModeToString(WritingMode mode)
a function to convert a writing mode in string lt-rb, ...
Definition: libmwaw_internal.cxx:183
Definition: libmwaw_internal.hxx:168
Style m_style
the border style
Definition: libmwaw_internal.hxx:350
friend MWAWVec3< T > operator+(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:883
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:62
unsigned char getGreen() const
returns the green value
Definition: libmwaw_internal.hxx:260
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:498
void setZ(T zz)
resets the third element
Definition: libmwaw_internal.hxx:849
MWAWVec3< unsigned char > MWAWVec3uc
MWAWVec3 of unsigned char.
Definition: libmwaw_internal.hxx:955
MWAWVec2< T > & max()
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:992
an noop deleter used to transform a libwpd pointer in a false shared_ptr
Definition: libmwaw_internal.hxx:109
Definition: libmwaw_internal.hxx:168
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:45
MWAWVec3(T xx=0, T yy=0, T zz=0)
constructor
Definition: libmwaw_internal.hxx:791
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:494
Definition: libmwaw_internal.hxx:170
std::pair< MWAWVec2< T >, MWAWVec2< T > > m_data
the data
Definition: libmwaw_internal.hxx:1125
internal struct used to create sorted map, sorted by Y
Definition: libmwaw_internal.hxx:760
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1131
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
std::string m_HRef
the href field
Definition: libmwaw_internal.hxx:402
void setMax(MWAWVec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:1028
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:588
a field
Definition: libmwaw_internal.hxx:369
static MWAWColor colorFromHSL(unsigned char H, unsigned char S, unsigned char L)
return a color from a hsl color (basic)
Definition: libmwaw_internal.hxx:209
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:982
std::map< MWAWVec2< bool >, bool, struct PosSizeLtY > MapY
Definition: libmwaw_internal.hxx:770
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
MWAWVariable(MWAWVariable const &orig)
copy constructor
Definition: libmwaw_internal.hxx:530
bool operator<=(MWAWColor const &c) const
operator<=
Definition: libmwaw_internal.hxx:290
Definition: libmwaw_internal.hxx:178
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:506
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libmwaw_internal.cxx:52
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:365
WritingMode
the different writing mode
Definition: libmwaw_internal.hxx:175
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
a note
Definition: libmwaw_internal.hxx:406
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:371
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:265
MWAWVec2< long > MWAWVec2l
MWAWVec2 of long.
Definition: libmwaw_internal.hxx:780
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:762
MWAWBorder()
constructor
Definition: libmwaw_internal.hxx:321
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
void operator()(T *)
Definition: libmwaw_internal.hxx:110
T m_x
first element
Definition: libmwaw_internal.hxx:772
void scale(U factor)
scales all points of the box by factor
Definition: libmwaw_internal.hxx:1053
MWAWBox2< long > MWAWBox2l
MWAWBox2 of long.
Definition: libmwaw_internal.hxx:1133
Definition: libmwaw_internal.hxx:175
a small structure used to store the informations about a list
Definition: MWAWList.hxx:105
the main class to read a Mac resource fork
Definition: MWAWRSRCParser.hxx:46
Definition: libmwaw_internal.hxx:168
uint32_t value() const
return the rgba value
Definition: libmwaw_internal.hxx:240
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
MWAWVec3< T > & operator+=(MWAWVec3< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:863
libmwaw::NumberingType m_numberingType
the number type ( for number field )
Definition: libmwaw_internal.hxx:384
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:583
Definition: libmwaw_internal.hxx:178
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:819
MWAWVariable()
constructor
Definition: libmwaw_internal.hxx:526
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:55
friend MWAWVec2< T > operator*(U scale, MWAWVec2< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:695
internal struct used to create sorted map, sorted by X
Definition: libmwaw_internal.hxx:745
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:524
int cmp(MWAWVec3< T > const &p) const
a comparison function: which first compares x values, then y values then z values.
Definition: libmwaw_internal.hxx:918
Definition: libmwaw_internal.hxx:166
void resizeFromMin(MWAWVec2< T > const &sz)
resize the box keeping the minimum
Definition: libmwaw_internal.hxx:1034
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:516
uint32_t m_value
the argb color
Definition: libmwaw_internal.hxx:310
T const * operator->() const
operator*
Definition: libmwaw_internal.hxx:556
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:747
Definition: libmwaw_internal.hxx:133
small class which defines a vector with 2 elements
Definition: libmwaw_internal.hxx:603
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1010
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:504
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:844
void setMin(MWAWVec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:1023
T y() const
second element
Definition: libmwaw_internal.hxx:809
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:327