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__)
57typedef signed char int8_t;
58typedef unsigned char uint8_t;
59typedef signed short int16_t;
60typedef unsigned short uint16_t;
61typedef signed int int32_t;
62typedef unsigned int uint32_t;
63typedef unsigned __int64 uint64_t;
64typedef __int64 int64_t;
74# ifdef HAVE_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)
98using std::tr1::shared_ptr;
99#elif defined(SHAREDPTR_STD)
101using std::shared_ptr;
103#include <boost/shared_ptr.hpp>
104using 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)
157uint8_t
readU8(librevenge::RVNGInputStream *input);
159void 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);
272 return (
m_value&0xFFFFFF)==0xFFFFFF;
307 std::string
str()
const;
325 bool addTo(librevenge::RVNGPropertyList &propList, std::string which=
"")
const;
378 bool addTo(librevenge::RVNGPropertyList &propList)
const;
380 librevenge::RVNGString
getString()
const;
399 bool addTo(librevenge::RVNGPropertyList &propList)
const;
434 add(binaryData, type);
448 void add(librevenge::RVNGBinaryData
const &binaryData, std::string type=
"image/pict")
458 bool addTo(librevenge::RVNGPropertyList &propList)
const;
628 return (c==0) ?
m_x :
m_y;
634 return (c==0) ?
m_x :
m_y;
722 if (
m_x < p.
m_x)
return -1;
723 if (
m_x > p.
m_x)
return 1;
724 if (
m_y < p.
m_y)
return -1;
725 if (
m_y > p.
m_y)
return 1;
731 if (
m_y < p.
m_y)
return -1;
732 if (
m_y > p.
m_y)
return 1;
733 if (
m_x < p.
m_x)
return -1;
734 if (
m_x > p.
m_x)
return 1;
741 o << f.
m_x <<
"x" << f.
m_y;
752 return s1.
cmp(s2) < 0;
767 return s1.
cmpY(s2) < 0;
803 for (
int c = 0; c < 3; c++)
m_val[c] = T(p[c]);
835 void set(T xx, T yy, T zz)
858 void add(T dx, T dy, T dz)
881 for (
int c = 0; c < 3; c++)
m_val[c] = T(
m_val[c]*scale);
923 for (
int c = 0; c < 3; c++) {
944 return s1.
cmp(s2) < 0;
1051 m_data.first = centerPt - decal;
1052 m_data.second = centerPt + (sz - decal);
1122 o <<
"(" << f.
min() <<
"<->" << f.
max() <<
")";
1176 for (
int coord=0; coord<2; ++coord) {
1179 for (
int i=0; i<2; ++i)
1180 value+=row[i]*dir[i];
1196 for (
int row=0; row<2; ++row) {
1198 for (
int col=0; col<3; ++col) {
1200 for (
int i=0; i<3; ++i)
1201 value+=(*
this)[row][i]*(i==2 ? (col==2 ? 1.f : 0.f) : mat[i][col]);
1282bool convertDTFormat(std::string
const &dtFormat, librevenge::RVNGPropertyListVector &propVect);
small class which defines a 2D Box
Definition: libmwaw_internal.hxx:968
MWAWBox2(MWAWBox2< U > const &p)
generic constructor
Definition: libmwaw_internal.hxx:975
bool operator>(MWAWBox2< T > const &mat) const
operator>
Definition: libmwaw_internal.hxx:1110
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:985
void resizeFromCenter(MWAWVec2< T > const &sz)
resize the box keeping the center
Definition: libmwaw_internal.hxx:1047
MWAWVec2< T > & min()
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:990
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:980
void scale(U factor)
scales all points of the box by factor
Definition: libmwaw_internal.hxx:1056
bool operator==(MWAWBox2< T > const &mat) const
operator==
Definition: libmwaw_internal.hxx:1090
MWAWVec2< T > & max()
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:995
void setMin(MWAWVec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:1026
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1013
bool operator<=(MWAWBox2< T > const &mat) const
operator<=
Definition: libmwaw_internal.hxx:1105
friend std::ostream & operator<<(std::ostream &o, MWAWBox2< T > const &f)
print data in form X0xY0<->X1xY1
Definition: libmwaw_internal.hxx:1120
bool operator<(MWAWBox2< T > const &mat) const
operator<
Definition: libmwaw_internal.hxx:1100
bool operator!=(MWAWBox2< T > const &mat) const
operator!=
Definition: libmwaw_internal.hxx:1095
void set(MWAWVec2< T > const &x, MWAWVec2< T > const &y)
resets the data to minimum x and maximum y
Definition: libmwaw_internal.hxx:1020
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1063
bool operator>=(MWAWBox2< T > const &mat) const
operator>=
Definition: libmwaw_internal.hxx:1115
MWAWBox2< T > getIntersection(MWAWBox2< T > const &box) const
returns the intersection between this and box
Definition: libmwaw_internal.hxx:1080
void resizeFromMax(MWAWVec2< T > const &sz)
resize the box keeping the maximum
Definition: libmwaw_internal.hxx:1042
void resizeFromMin(MWAWVec2< T > const &sz)
resize the box keeping the minimum
Definition: libmwaw_internal.hxx:1037
MWAWVec2< T > const & operator[](int c) const
the two extremum points which defined the box
Definition: libmwaw_internal.hxx:1002
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1008
MWAWBox2(MWAWVec2< T > minPt=MWAWVec2< T >(), MWAWVec2< T > maxPt=MWAWVec2< T >())
constructor
Definition: libmwaw_internal.hxx:971
std::pair< MWAWVec2< T >, MWAWVec2< T > > m_data
the data
Definition: libmwaw_internal.hxx:1128
void setMax(MWAWVec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:1031
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1070
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:63
a font manager which can be used to store fonts, ...
Definition: MWAWFont.hxx:562
Class to store font.
Definition: MWAWFont.hxx:44
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:198
a small structure used to store the informations about a list
Definition: MWAWList.hxx:108
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:96
class to store the paragraph properties
Definition: MWAWParagraph.hxx:82
a class to define the parser state
Definition: MWAWParser.hxx:50
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
the main class to read a Mac resource fork
Definition: MWAWRSRCParser.hxx:47
a class which stores section properties
Definition: MWAWSection.hxx:46
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
small class which defines a vector with 2 elements
Definition: libmwaw_internal.hxx:607
friend MWAWVec2< T > operator+(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:685
friend std::ostream & operator<<(std::ostream &o, MWAWVec2< T > const &f)
operator<<: prints data in form "XxY"
Definition: libmwaw_internal.hxx:739
void add(T dx, T dy)
increases the actuals values by dx and dy
Definition: libmwaw_internal.hxx:655
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:625
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:649
MWAWVec2< T > & operator-=(MWAWVec2< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:669
T m_x
first element
Definition: libmwaw_internal.hxx:775
int cmp(MWAWVec2< T > const &p) const
a comparison function: which first compares x then y
Definition: libmwaw_internal.hxx:720
MWAWVec2< T > & operator+=(MWAWVec2< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:662
int cmpY(MWAWVec2< T > const &p) const
a comparison function: which first compares y then x
Definition: libmwaw_internal.hxx:729
bool operator<(MWAWVec2< T > const &p) const
comparison<: sort by y
Definition: libmwaw_internal.hxx:715
friend MWAWVec2< T > operator*(U scale, MWAWVec2< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:698
T y() const
second element
Definition: libmwaw_internal.hxx:620
std::map< MWAWVec2< T >, T, struct PosSizeLtY > MapY
map of MWAWVec2
Definition: libmwaw_internal.hxx:773
T x() const
first element
Definition: libmwaw_internal.hxx:615
bool operator==(MWAWVec2< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:705
void set(T xx, T yy)
resets the two elements
Definition: libmwaw_internal.hxx:638
MWAWVec2(T xx=0, T yy=0)
constructor
Definition: libmwaw_internal.hxx:610
MWAWVec2< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:677
T m_y
second element
Definition: libmwaw_internal.hxx:775
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:631
bool operator!=(MWAWVec2< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:710
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:644
std::map< MWAWVec2< T >, T, struct PosSizeLtX > MapX
map of MWAWVec2
Definition: libmwaw_internal.hxx:758
friend MWAWVec2< T > operator-(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:691
MWAWVec2(MWAWVec2< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:612
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:791
MWAWVec3< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:879
T z() const
third element
Definition: libmwaw_internal.hxx:817
MWAWVec3(T xx=0, T yy=0, T zz=0)
constructor
Definition: libmwaw_internal.hxx:794
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:822
MWAWVec3< T > & operator+=(MWAWVec3< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:866
friend MWAWVec3< T > operator*(U scale, MWAWVec3< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:899
T x() const
first element
Definition: libmwaw_internal.hxx:807
void add(T dx, T dy, T dz)
increases the actuals values by dx, dy, dz
Definition: libmwaw_internal.hxx:858
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:828
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:842
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:847
MWAWVec3< T > & operator-=(MWAWVec3< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:872
void setZ(T zz)
resets the third element
Definition: libmwaw_internal.hxx:852
friend MWAWVec3< T > operator-(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:892
friend std::ostream & operator<<(std::ostream &o, MWAWVec3< T > const &f)
operator<<: prints data in form "XxYxZ"
Definition: libmwaw_internal.hxx:931
std::map< MWAWVec3< T >, T, struct PosSizeLt > Map
map of MWAWVec3
Definition: libmwaw_internal.hxx:950
void set(T xx, T yy, T zz)
resets the three elements
Definition: libmwaw_internal.hxx:835
bool operator!=(MWAWVec3< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:911
bool operator==(MWAWVec3< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:906
friend MWAWVec3< T > operator+(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:886
MWAWVec3(MWAWVec3< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:801
T m_val[3]
the values
Definition: libmwaw_internal.hxx:954
T y() const
second element
Definition: libmwaw_internal.hxx:812
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:921
bool operator<(MWAWVec3< T > const &p) const
comparison<: which first compares x values, then y values then z values.
Definition: libmwaw_internal.hxx:916
Definition: libmwaw_internal.hxx:138
Definition: libmwaw_internal.hxx:146
Definition: libmwaw_internal.hxx:142
Definition: libmwaw_internal.hxx:134
Definition: libmwaw_internal.hxx:150
shared_ptr< MWAWFontManager > MWAWFontManagerPtr
a smart pointer of MWAWFontManager
Definition: libmwaw_internal.hxx:499
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:781
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1134
MWAWVec2< long > MWAWVec2l
MWAWVec2 of long.
Definition: libmwaw_internal.hxx:783
shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:505
shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:517
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1132
shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:513
shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:503
shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:511
MWAWBox2< long > MWAWBox2l
MWAWBox2 of long.
Definition: libmwaw_internal.hxx:1136
shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:509
shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:519
shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:495
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:785
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:779
shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:507
shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:515
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:962
MWAWVec3< int > MWAWVec3i
MWAWVec3 of int.
Definition: libmwaw_internal.hxx:960
#define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg)
Definition: libmwaw_internal.hxx:116
shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:501
MWAWVec3< unsigned char > MWAWVec3uc
MWAWVec3 of unsigned char.
Definition: libmwaw_internal.hxx:958
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
std::string writingModeToString(WritingMode mode)
a function to convert a writing mode in string lt-rb, ...
Definition: libmwaw_internal.cxx:183
WritingMode
the different writing mode
Definition: libmwaw_internal.hxx:175
@ WritingLeftBottom
Definition: libmwaw_internal.hxx:175
@ WritingLeftTop
Definition: libmwaw_internal.hxx:175
@ WritingInherited
Definition: libmwaw_internal.hxx:175
@ WritingRightBottom
Definition: libmwaw_internal.hxx:175
@ WritingRightTop
Definition: libmwaw_internal.hxx:175
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:105
SubDocumentType
Definition: libmwaw_internal.hxx:178
@ DOC_CHART
Definition: libmwaw_internal.hxx:178
@ DOC_CHART_ZONE
Definition: libmwaw_internal.hxx:178
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:178
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:178
@ DOC_NONE
Definition: libmwaw_internal.hxx:178
@ DOC_TABLE
Definition: libmwaw_internal.hxx:178
@ DOC_SHEET
Definition: libmwaw_internal.hxx:178
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:178
@ DOC_GRAPHIC_GROUP
Definition: libmwaw_internal.hxx:178
@ DOC_NOTE
Definition: libmwaw_internal.hxx:178
@ VMiddleBit
Definition: libmwaw_internal.hxx:168
@ LeftBit
Definition: libmwaw_internal.hxx:168
@ BottomBit
Definition: libmwaw_internal.hxx:168
@ HMiddleBit
Definition: libmwaw_internal.hxx:168
@ TopBit
Definition: libmwaw_internal.hxx:168
@ RightBit
Definition: libmwaw_internal.hxx:168
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
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libmwaw_internal.cxx:52
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:129
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
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
bool convertDTFormat(std::string const &dtFormat, librevenge::RVNGPropertyListVector &propVect)
convert a DTFormat in a propertyList
Definition: libmwaw_internal.cxx:315
NumberingType
Definition: libmwaw_internal.hxx:170
@ NONE
Definition: libmwaw_internal.hxx:170
@ BULLET
Definition: libmwaw_internal.hxx:170
@ LOWERCASE_ROMAN
Definition: libmwaw_internal.hxx:170
@ UPPERCASE_ROMAN
Definition: libmwaw_internal.hxx:170
@ LOWERCASE
Definition: libmwaw_internal.hxx:170
@ UPPERCASE
Definition: libmwaw_internal.hxx:170
@ ARABIC
Definition: libmwaw_internal.hxx:170
Position
basic position enum
Definition: libmwaw_internal.hxx:166
@ VMiddle
Definition: libmwaw_internal.hxx:166
@ Top
Definition: libmwaw_internal.hxx:166
@ Bottom
Definition: libmwaw_internal.hxx:166
@ HMiddle
Definition: libmwaw_internal.hxx:166
@ Left
Definition: libmwaw_internal.hxx:166
@ Right
Definition: libmwaw_internal.hxx:166
a border
Definition: libmwaw_internal.hxx:314
bool operator!=(MWAWBorder const &orig) const
operator!=
Definition: libmwaw_internal.hxx:337
Style m_style
the border style
Definition: libmwaw_internal.hxx:350
int compare(MWAWBorder const &orig) const
compare two borders
Definition: libmwaw_internal.cxx:420
MWAWBorder()
constructor
Definition: libmwaw_internal.hxx:321
Type
the line repetition
Definition: libmwaw_internal.hxx:318
@ Single
Definition: libmwaw_internal.hxx:318
@ Double
Definition: libmwaw_internal.hxx:318
@ Triple
Definition: libmwaw_internal.hxx:318
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:355
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:365
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:361
bool operator==(MWAWBorder const &orig) const
operator==
Definition: libmwaw_internal.hxx:332
Style
the line style
Definition: libmwaw_internal.hxx:316
@ Simple
Definition: libmwaw_internal.hxx:316
@ Dash
Definition: libmwaw_internal.hxx:316
@ Dot
Definition: libmwaw_internal.hxx:316
@ LargeDot
Definition: libmwaw_internal.hxx:316
@ None
Definition: libmwaw_internal.hxx:316
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:357
friend std::ostream & operator<<(std::ostream &o, MWAWBorder const &border)
operator<<
Definition: libmwaw_internal.cxx:529
bool addTo(librevenge::RVNGPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libmwaw_internal.cxx:432
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:363
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:327
the class to store a color
Definition: libmwaw_internal.hxx:182
unsigned char getGreen() const
returns the green value
Definition: libmwaw_internal.hxx:260
unsigned char getBlue() const
returns the green value
Definition: libmwaw_internal.hxx:250
bool operator<(MWAWColor const &c) const
operator<
Definition: libmwaw_internal.hxx:285
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:205
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
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:231
bool operator>(MWAWColor const &c) const
operator>
Definition: libmwaw_internal.hxx:295
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:226
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
uint32_t value() const
return the rgba value
Definition: libmwaw_internal.hxx:240
friend std::ostream & operator<<(std::ostream &o, MWAWColor const &c)
operator<< in the form #rrggbb
Definition: libmwaw_internal.cxx:219
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:270
bool operator>=(MWAWColor const &c) const
operator>=
Definition: libmwaw_internal.hxx:300
bool operator!=(MWAWColor const &c) const
operator!=
Definition: libmwaw_internal.hxx:280
bool operator<=(MWAWColor const &c) const
operator<=
Definition: libmwaw_internal.hxx:290
MWAWColor(uint32_t argb=0)
constructor
Definition: libmwaw_internal.hxx:184
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:231
uint32_t m_value
the argb color
Definition: libmwaw_internal.hxx:310
MWAWColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
constructor from color
Definition: libmwaw_internal.hxx:188
unsigned char getAlpha() const
returns the alpha value
Definition: libmwaw_internal.hxx:245
MWAWColor & operator=(uint32_t argb)
operator=
Definition: libmwaw_internal.hxx:193
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:265
bool operator==(MWAWColor const &c) const
operator==
Definition: libmwaw_internal.hxx:275
unsigned char getRed() const
returns the red value
Definition: libmwaw_internal.hxx:255
small class use to define a embedded object
Definition: libmwaw_internal.hxx:425
int cmp(MWAWEmbeddedObject const &pict) const
a comparison function
Definition: libmwaw_internal.cxx:595
MWAWEmbeddedObject(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
constructor
Definition: libmwaw_internal.hxx:431
~MWAWEmbeddedObject()
destructor
Definition: libmwaw_internal.cxx:564
bool isEmpty() const
return true if the picture contains no data
Definition: libmwaw_internal.hxx:439
std::vector< std::string > m_typeList
the picture type: one type by representation
Definition: libmwaw_internal.hxx:467
friend std::ostream & operator<<(std::ostream &o, MWAWEmbeddedObject const &pict)
operator<<
Definition: libmwaw_internal.cxx:620
MWAWEmbeddedObject()
empty constructor
Definition: libmwaw_internal.hxx:427
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist
Definition: libmwaw_internal.cxx:568
void add(librevenge::RVNGBinaryData const &binaryData, std::string type="image/pict")
add a picture
Definition: libmwaw_internal.hxx:448
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libmwaw_internal.hxx:465
a field
Definition: libmwaw_internal.hxx:369
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:371
@ PageCount
Definition: libmwaw_internal.hxx:371
@ Title
Definition: libmwaw_internal.hxx:371
@ Database
Definition: libmwaw_internal.hxx:371
@ None
Definition: libmwaw_internal.hxx:371
@ PageNumber
Definition: libmwaw_internal.hxx:371
@ Time
Definition: libmwaw_internal.hxx:371
@ Date
Definition: libmwaw_internal.hxx:371
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:386
libmwaw::NumberingType m_numberingType
the number type ( for number field )
Definition: libmwaw_internal.hxx:384
librevenge::RVNGString getString() const
returns a string corresponding to the field (if possible) */
Definition: libmwaw_internal.cxx:287
std::string m_data
the database/link field ( if defined )
Definition: libmwaw_internal.hxx:388
Type m_type
the type
Definition: libmwaw_internal.hxx:382
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if possible)
Definition: libmwaw_internal.cxx:239
MWAWField(Type type)
basic constructor
Definition: libmwaw_internal.hxx:374
a link
Definition: libmwaw_internal.hxx:392
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if needed )
Definition: libmwaw_internal.cxx:411
std::string m_HRef
the href field
Definition: libmwaw_internal.hxx:402
MWAWLink()
basic constructor
Definition: libmwaw_internal.hxx:394
a note
Definition: libmwaw_internal.hxx:406
Type
enum to define note type
Definition: libmwaw_internal.hxx:408
@ FootNote
Definition: libmwaw_internal.hxx:408
@ EndNote
Definition: libmwaw_internal.hxx:408
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:418
Type m_type
the note type
Definition: libmwaw_internal.hxx:414
MWAWNote(Type type)
constructor
Definition: libmwaw_internal.hxx:410
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:416
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:527
T & operator*()
operator*
Definition: libmwaw_internal.hxx:575
T const & operator*() const
operator*
Definition: libmwaw_internal.hxx:570
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:551
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:586
T m_data
the value
Definition: libmwaw_internal.hxx:597
T const * operator->() const
operator*
Definition: libmwaw_internal.hxx:559
MWAWVariable()
constructor
Definition: libmwaw_internal.hxx:529
MWAWVariable(T const &def)
constructor with a default value
Definition: libmwaw_internal.hxx:531
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:591
bool m_set
a flag to know if the variable is set or not
Definition: libmwaw_internal.hxx:599
MWAWVariable & operator=(MWAWVariable const &orig)
copy operator
Definition: libmwaw_internal.hxx:535
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:581
MWAWVariable(MWAWVariable const &orig)
copy constructor
Definition: libmwaw_internal.hxx:533
MWAWVariable & operator=(T const &val)
set a value
Definition: libmwaw_internal.hxx:544
T * operator->()
operator*
Definition: libmwaw_internal.hxx:564
internal struct used to create sorted map, sorted by X
Definition: libmwaw_internal.hxx:748
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:750
internal struct used to create sorted map, sorted by Y
Definition: libmwaw_internal.hxx:763
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:765
internal struct used to create sorted map, sorted by X, Y, Z
Definition: libmwaw_internal.hxx:940
bool operator()(MWAWVec3< T > const &s1, MWAWVec3< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:942
an noop deleter used to transform a libwpd pointer in a false shared_ptr
Definition: libmwaw_internal.hxx:109
void operator()(T *)
Definition: libmwaw_internal.hxx:110