34 #ifndef LIBMWAW_INTERNAL_H 35 #define LIBMWAW_INTERNAL_H 48 #define M_PI 3.14159265358979323846 51 #include <librevenge-stream/librevenge-stream.h> 52 #include <librevenge/librevenge.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;
112 #if defined(__clang__) || defined(__GNUC__) 113 # define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg) __attribute__((__format__(__printf__, fmt, arg))) 115 # define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg) 124 #define MWAW_DEBUG_MSG(M) libmwaw::printDebugMsg M 126 #define MWAW_DEBUG_MSG(M) 156 uint8_t
readU8(librevenge::RVNGInputStream *input);
158 void appendUnicode(uint32_t val, librevenge::RVNGString &buffer);
182 MWAWColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a=255) :
183 m_value(uint32_t((a<<24)+(r<<16)+(g<<8)+b))
195 double w=1.-double(k)/255.;
197 ((
unsigned char)(255 * (1-
double(c)/255) * w),
198 (
unsigned char)(255 * (1-
double(m)/255) * w),
199 (
unsigned char)(255 * (1-
double(y)/255) * w)
205 double c=(1-((L>=128) ? (2*
double(L)-255) : (255-2*
double(L)))/255)*
207 double tmp=std::fmod((
double(H)*6/255),2)-1;
208 double x=c*(1-(tmp>0 ? tmp : -tmp));
209 unsigned char C=(
unsigned char)(255*c);
210 unsigned char M=(
unsigned char)(
double(L)-255*c/2);
211 unsigned char X=(
unsigned char)(255*x);
212 if (H<=42)
return MWAWColor((
unsigned char)(M+C),(
unsigned char)(M+X),(
unsigned char)M);
213 if (H<=85)
return MWAWColor((
unsigned char)(M+X),(
unsigned char)(M+C),(
unsigned char)M);
214 if (H<=127)
return MWAWColor((
unsigned char)M,(
unsigned char)(M+C),(
unsigned char)(M+X));
215 if (H<=170)
return MWAWColor((
unsigned char)M,(
unsigned char)(M+X),(
unsigned char)(M+C));
216 if (H<=212)
return MWAWColor((
unsigned char)(M+X),(
unsigned char)M,(
unsigned char)(M+C));
217 return MWAWColor((
unsigned char)(M+C),(
unsigned char)(M),(
unsigned char)(M+X));
241 return (
unsigned char)((m_value>>24)&0xFF);
246 return (
unsigned char)(m_value&0xFF);
251 return (
unsigned char)((m_value>>16)&0xFF);
256 return (
unsigned char)((m_value>>8)&0xFF);
261 return (m_value&0xFFFFFF)==0;
266 return (m_value&0xFFFFFF)==0xFFFFFF;
271 return (c.
m_value&0xFFFFFF)==(m_value&0xFFFFFF);
276 return !operator==(c);
281 return (c.
m_value&0xFFFFFF)<(m_value&0xFFFFFF);
286 return (c.
m_value&0xFFFFFF)<=(m_value&0xFFFFFF);
291 return !operator<=(c);
296 return !operator<(c);
301 std::string str()
const;
310 enum Style { None, Simple, Dot, LargeDot, Dash };
312 enum Type { Single, Double, Triple };
315 MWAWBorder() : m_style(Simple), m_type(Single), m_width(1), m_widthsList(), m_color(
MWAWColor::black()), m_extra(
"") { }
319 bool addTo(librevenge::RVNGPropertyList &propList, std::string which=
"")
const;
323 return m_style==None || m_width <= 0;
328 return !operator!=(orig);
362 enum Type { None, PageCount, PageNumber, Date, Time, Title, Database };
386 bool addTo(librevenge::RVNGPropertyList &propList)
const;
395 enum Type { FootNote, EndNote };
419 std::string type=
"image/pict") : m_dataList(), m_typeList()
421 add(binaryData, type);
430 for (
size_t i=0; i<m_dataList.size(); ++i) {
431 if (!m_dataList[i].empty())
437 void add(librevenge::RVNGBinaryData
const &binaryData, std::string type=
"image/pict")
439 size_t pos=m_dataList.size();
440 if (pos<m_typeList.size()) pos=m_typeList.size();
441 m_dataList.resize(pos+1);
442 m_dataList[pos]=binaryData;
443 m_typeList.resize(pos+1);
444 m_typeList[pos]=type;
447 bool addTo(librevenge::RVNGPropertyList &propList)
const;
614 return (c==0) ? m_x : m_y;
620 return (c==0) ? m_x : m_y;
701 bool operator<(MWAWVec2<T>
const &p)
const 708 if (m_x < p.
m_x)
return -1;
709 if (m_x > p.
m_x)
return 1;
710 if (m_y < p.
m_y)
return -1;
711 if (m_y > p.
m_y)
return 1;
717 if (m_y < p.
m_y)
return -1;
718 if (m_y > p.
m_y)
return 1;
719 if (m_x < p.
m_x)
return -1;
720 if (m_x > p.
m_x)
return 1;
725 friend std::ostream &operator<< (std::ostream &o, MWAWVec2<T>
const &f)
727 o << f.m_x <<
"x" << f.m_y;
738 return s1.
cmp(s2) < 0;
744 typedef std::map<MWAWVec2<T>, T,
struct PosSizeLtX>
MapX;
753 return s1.
cmpY(s2) < 0;
759 typedef std::map<MWAWVec2<T>, T,
struct PosSizeLtY>
MapY;
789 for (
int c = 0; c < 3; c++) m_val[c] = T(p[c]);
821 void set(T xx, T yy, T zz)
844 void add(T dx, T dy, T dz)
854 for (
int c = 0; c < 3; c++) m_val[c] = T(m_val[c]+p.
m_val[c]);
860 for (
int c = 0; c < 3; c++) m_val[c] = T(m_val[c]-p.
m_val[c]);
867 for (
int c = 0; c < 3; c++) m_val[c] = T(m_val[c]*scale);
902 bool operator<(MWAWVec3<T>
const &p)
const 909 for (
int c = 0; c < 3; c++) {
910 T diff = m_val[c]-p.
m_val[c];
911 if (diff)
return (diff < 0) ? -1 : 1;
917 friend std::ostream &operator<< (std::ostream &o, MWAWVec3<T>
const &f)
919 o << f.m_val[0] <<
"x" << f.m_val[1] <<
"x" << f.m_val[2];
930 return s1.
cmp(s2) < 0;
965 for (
int c=0; c < 2; c++) m_pt[c] = p[c];
999 return m_pt[1]-m_pt[0];
1004 return 0.5*(m_pt[0]+m_pt[1]);
1027 m_pt[1] = m_pt[0]+sz;
1032 m_pt[0] = m_pt[1]-sz;
1038 m_pt[0] = centerPt - 0.5*sz;
1039 m_pt[1] = centerPt + (sz - 0.5*sz);
1061 m_pt[0][1]<box.
m_pt[0][1]?m_pt[0][1] : box.
m_pt[0][1]);
1063 m_pt[1][1]>box.
m_pt[1][1]?m_pt[1][1] : box.
m_pt[1][1]);
1071 m_pt[0][1]>box.
m_pt[0][1]?m_pt[0][1] : box.
m_pt[0][1]);
1073 m_pt[1][1]<box.
m_pt[1][1]?m_pt[1][1] : box.
m_pt[1][1]);
1087 bool operator<(MWAWBox2<T>
const &p)
const 1095 int diff = m_pt[0].cmpY(p.
m_pt[0]);
1096 if (diff)
return diff;
1097 diff = m_pt[1].cmpY(p.
m_pt[1]);
1098 if (diff)
return diff;
1103 friend std::ostream &operator<< (std::ostream &o, MWAWBox2<T>
const &f)
1105 o <<
"(" << f.m_pt[0] <<
"<->" << f.m_pt[1] <<
")";
1116 return s1.
cmp(s2) < 0;
1122 typedef std::map<MWAWBox2<T>, T,
struct PosSizeLt>
Map;
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:491
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:635
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:405
MWAWVec3< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:865
bool isEmpty() const
return true if the picture contains no data
Definition: libmwaw_internal.hxx:428
NumberingType
Definition: libmwaw_internal.hxx:169
bool operator!=(MWAWVec3< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:897
T const & operator*() const
operator*
Definition: libmwaw_internal.hxx:556
MWAWVec2< T > & operator-=(MWAWVec2< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:655
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:62
Definition: libmwaw_internal.hxx:172
bool operator()(MWAWVec3< T > const &s1, MWAWVec3< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:928
MWAWColor & operator=(uint32_t argb)
operator=
Definition: libmwaw_internal.hxx:187
Definition: libmwaw_internal.hxx:169
Definition: libmwaw_internal.hxx:169
MWAWVec3< int > MWAWVec3i
MWAWVec3 of int.
Definition: libmwaw_internal.hxx:946
std::map< MWAWVec2< bool >, bool, struct PosSizeLtX > MapX
Definition: libmwaw_internal.hxx:744
Definition: libmwaw_internal.hxx:172
Definition: libmwaw_internal.hxx:169
std::string m_data
the database/link field ( if defined )
Definition: libmwaw_internal.hxx:375
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:59
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:346
bool operator==(MWAWBorder const &orig) const
operator==
Definition: libmwaw_internal.hxx:326
Definition: libmwaw_internal.hxx:167
bool operator==(MWAWVec2< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:691
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:706
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:439
T & operator*()
operator*
Definition: libmwaw_internal.hxx:561
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libmwaw_internal.hxx:454
Definition: libmwaw_internal.hxx:172
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:991
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:225
MWAWNote(Type type)
constructor
Definition: libmwaw_internal.hxx:397
bool operator>(MWAWColor const &c) const
operator>
Definition: libmwaw_internal.hxx:289
bool operator<(MWAWColor const &c) const
operator<
Definition: libmwaw_internal.hxx:279
MWAWVec2(T xx=0, T yy=0)
constructor
Definition: libmwaw_internal.hxx:596
Definition: libmwaw_internal.hxx:172
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:126
a link
Definition: libmwaw_internal.hxx:379
T m_data
the value
Definition: libmwaw_internal.hxx:583
shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:497
Definition: libmwaw_internal.hxx:167
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1050
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:611
T * operator->()
operator*
Definition: libmwaw_internal.hxx:550
MWAWColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
constructor from color
Definition: libmwaw_internal.hxx:182
T z() const
third element
Definition: libmwaw_internal.hxx:803
void add(T dx, T dy, T dz)
increases the actuals values by dx, dy, dz
Definition: libmwaw_internal.hxx:844
Definition: libmwaw_internal.hxx:172
unsigned char getRed() const
returns the red value
Definition: libmwaw_internal.hxx:249
MWAWVariable(T const &def)
constructor with a default value
Definition: libmwaw_internal.hxx:517
void add(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
add a picture
Definition: libmwaw_internal.hxx:437
void resizeFromMax(MWAWVec2< T > const &sz)
resize the box keeping the maximum
Definition: libmwaw_internal.hxx:1030
bool operator==(MWAWColor const &c) const
operator==
Definition: libmwaw_internal.hxx:269
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:220
std::map< MWAWVec3< T >, T, struct PosSizeLt > Map
map of MWAWVec3
Definition: libmwaw_internal.hxx:936
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:47
MWAWVec3< T > & operator-=(MWAWVec3< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:858
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:537
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:59
SubDocumentType
Definition: libmwaw_internal.hxx:172
friend MWAWVec3< T > operator*(U scale, MWAWVec3< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:885
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:104
Definition: libmwaw_internal.hxx:165
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:767
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:348
Definition: libmwaw_internal.hxx:165
MWAWVec2(MWAWVec2< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:598
friend MWAWVec2< T > operator-(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:677
Position
basic position enum
Definition: libmwaw_internal.hxx:165
Definition: libmwaw_internal.hxx:165
MWAWVec2< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:663
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1130
Type m_type
the note type
Definition: libmwaw_internal.hxx:401
void add(T dx, T dy)
increases the actuals values by dx and dy
Definition: libmwaw_internal.hxx:641
Definition: libmwaw_internal.hxx:165
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:617
unsigned char getAlpha() const
returns the alpha value
Definition: libmwaw_internal.hxx:239
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:776
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:49
Type
the line repetition
Definition: libmwaw_internal.hxx:312
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:193
the class to store a color
Definition: libmwaw_internal.hxx:176
Definition: libmwaw_internal.hxx:172
Definition: libmwaw_internal.hxx:148
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:503
friend MWAWVec3< T > operator-(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:878
MWAWField(Type type)
basic constructor
Definition: libmwaw_internal.hxx:365
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:814
Definition: libmwaw_internal.hxx:165
internal struct used to create sorted map, sorted first min then max
Definition: libmwaw_internal.hxx:1112
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:403
Style
the line style
Definition: libmwaw_internal.hxx:310
T x() const
first element
Definition: libmwaw_internal.hxx:601
Definition: libmwaw_internal.hxx:169
Type
enum to define note type
Definition: libmwaw_internal.hxx:395
MWAWLink()
basic constructor
Definition: libmwaw_internal.hxx:381
T m_y
second element
Definition: libmwaw_internal.hxx:761
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:352
MWAWVec2f rotatePointAroundCenter(MWAWVec2f const &point, MWAWVec2f const ¢er, float angle)
rotate a point around center, angle is given in degree
Definition: libmwaw_internal.cxx:431
T y() const
second element
Definition: libmwaw_internal.hxx:606
Class to store font.
Definition: MWAWFont.hxx:43
a border
Definition: libmwaw_internal.hxx:308
small class which defines a 2D Box
Definition: libmwaw_internal.hxx:953
MWAWVariable & operator=(T const &val)
set a value
Definition: libmwaw_internal.hxx:530
MWAWVec2< T > & min()
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:979
T m_val[3]
the values
Definition: libmwaw_internal.hxx:940
a class to define the parser state
Definition: MWAWParser.hxx:49
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:499
bool m_set
a flag to know if the variable is set or not
Definition: libmwaw_internal.hxx:585
Definition: libmwaw_internal.hxx:172
int cmpY(MWAWVec2< T > const &p) const
a comparison function: which first compares y then x
Definition: libmwaw_internal.hxx:715
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:997
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:630
bool operator==(MWAWVec3< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:892
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:969
MWAWEmbeddedObject(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
constructor
Definition: libmwaw_internal.hxx:418
Definition: libmwaw_internal.hxx:144
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:369
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:771
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:501
Definition: libmwaw_internal.hxx:169
MWAWVariable & operator=(MWAWVariable const &orig)
copy operator
Definition: libmwaw_internal.hxx:521
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:948
bool operator!=(MWAWVec2< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:696
MWAWVec2< T > m_pt[2]
the two extremities
Definition: libmwaw_internal.hxx:1126
MWAWVec2< T > & operator+=(MWAWVec2< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:648
MWAWBox2(MWAWBox2< U > const &p)
generic constructor
Definition: libmwaw_internal.hxx:963
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:765
Definition: libmwaw_internal.hxx:169
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:41
int cmp(MWAWBox2< T > const &p) const
comparison function : fist sorts min by Y,X values then max extremity
Definition: libmwaw_internal.hxx:1093
T x() const
first element
Definition: libmwaw_internal.hxx:793
virtual ~MWAWEmbeddedObject()
destructor
Definition: libmwaw_internal.hxx:424
bool operator!=(MWAWColor const &c) const
operator!=
Definition: libmwaw_internal.hxx:274
bool operator>=(MWAWColor const &c) const
operator>=
Definition: libmwaw_internal.hxx:294
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:167
internal struct used to create sorted map, sorted by X, Y, Z
Definition: libmwaw_internal.hxx:926
std::vector< std::string > m_typeList
the picture type: one type by representation
Definition: libmwaw_internal.hxx:456
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1057
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:828
Definition: libmwaw_internal.hxx:140
MWAWColor(uint32_t argb=0)
constructor
Definition: libmwaw_internal.hxx:178
small class use to define a embedded object
Definition: libmwaw_internal.hxx:412
void resizeFromCenter(MWAWVec2< T > const &sz)
resize the box keeping the center
Definition: libmwaw_internal.hxx:1035
#define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg)
Definition: libmwaw_internal.hxx:115
Definition: libmwaw_internal.hxx:136
Definition: libmwaw_internal.hxx:172
MWAWBox2< T > getIntersection(MWAWBox2< T > const &box) const
returns the intersection between this and box
Definition: libmwaw_internal.hxx:1067
a class which stores section properties
Definition: MWAWSection.hxx:45
unsigned char getBlue() const
returns the green value
Definition: libmwaw_internal.hxx:244
MWAWVec3(MWAWVec3< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:787
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:489
bool operator!=(MWAWBorder const &orig) const
operator!=
Definition: libmwaw_internal.hxx:331
MWAWEmbeddedObject()
empty constructor
Definition: libmwaw_internal.hxx:414
MWAWBox2(MWAWVec2< T > minPt=MWAWVec2< T >(), MWAWVec2< T > maxPt=MWAWVec2< T >())
constructor
Definition: libmwaw_internal.hxx:957
friend MWAWVec2< T > operator+(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:671
Definition: libmwaw_internal.hxx:167
Style m_style
the border style
Definition: libmwaw_internal.hxx:344
friend MWAWVec3< T > operator+(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:872
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:254
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:487
void setZ(T zz)
resets the third element
Definition: libmwaw_internal.hxx:838
MWAWVec3< unsigned char > MWAWVec3uc
MWAWVec3 of unsigned char.
Definition: libmwaw_internal.hxx:944
MWAWVec2< T > & max()
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:984
an noop deleter used to transform a libwpd pointer in a false shared_ptr
Definition: libmwaw_internal.hxx:108
Definition: libmwaw_internal.hxx:167
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:780
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:483
Definition: libmwaw_internal.hxx:169
internal struct used to create sorted map, sorted by Y
Definition: libmwaw_internal.hxx:749
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1132
class to store the paragraph properties
Definition: MWAWParagraph.hxx:81
std::string m_HRef
the href field
Definition: libmwaw_internal.hxx:389
void setMax(MWAWVec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:1019
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:577
a field
Definition: libmwaw_internal.hxx:360
static MWAWColor colorFromHSL(unsigned char H, unsigned char S, unsigned char L)
return a color from a hsl color (basic)
Definition: libmwaw_internal.hxx:203
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:974
std::map< MWAWVec2< bool >, bool, struct PosSizeLtY > MapY
Definition: libmwaw_internal.hxx:759
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:371
MWAWVariable(MWAWVariable const &orig)
copy constructor
Definition: libmwaw_internal.hxx:519
bool operator<=(MWAWColor const &c) const
operator<=
Definition: libmwaw_internal.hxx:284
Definition: libmwaw_internal.hxx:172
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:495
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libmwaw_internal.cxx:51
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:356
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:264
std::map< MWAWBox2< int >, int, struct PosSizeLt > Map
Definition: libmwaw_internal.hxx:1122
a note
Definition: libmwaw_internal.hxx:393
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:362
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:259
MWAWVec2< long > MWAWVec2l
MWAWVec2 of long.
Definition: libmwaw_internal.hxx:769
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:751
MWAWBorder()
constructor
Definition: libmwaw_internal.hxx:315
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:46
bool operator!=(MWAWBox2< T > const &p) const
comparison operator!=
Definition: libmwaw_internal.hxx:1082
bool operator==(MWAWBox2< T > const &p) const
comparison operator==
Definition: libmwaw_internal.hxx:1077
void operator()(T *)
Definition: libmwaw_internal.hxx:109
T m_x
first element
Definition: libmwaw_internal.hxx:761
void scale(U factor)
scales all points of the box by factor
Definition: libmwaw_internal.hxx:1043
MWAWBox2< long > MWAWBox2l
MWAWBox2 of long.
Definition: libmwaw_internal.hxx:1134
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:167
uint32_t value() const
return the rgba value
Definition: libmwaw_internal.hxx:234
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:354
MWAWVec3< T > & operator+=(MWAWVec3< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:852
libmwaw::NumberingType m_numberingType
the number type ( for number field )
Definition: libmwaw_internal.hxx:373
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:572
Definition: libmwaw_internal.hxx:172
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:808
bool operator()(MWAWBox2< T > const &s1, MWAWBox2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:1114
MWAWVariable()
constructor
Definition: libmwaw_internal.hxx:515
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:684
internal struct used to create sorted map, sorted by X
Definition: libmwaw_internal.hxx:734
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:513
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:907
Definition: libmwaw_internal.hxx:165
void resizeFromMin(MWAWVec2< T > const &sz)
resize the box keeping the minimum
Definition: libmwaw_internal.hxx:1025
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:505
uint32_t m_value
the argb color
Definition: libmwaw_internal.hxx:304
T const * operator->() const
operator*
Definition: libmwaw_internal.hxx:545
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:736
Definition: libmwaw_internal.hxx:132
small class which defines a vector with 2 elements
Definition: libmwaw_internal.hxx:592
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1002
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:493
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:833
void setMin(MWAWVec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:1014
T y() const
second element
Definition: libmwaw_internal.hxx:798
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:321