Go to the documentation of this file.
34 #ifndef LIBMWAW_INTERNAL_H
35 #define LIBMWAW_INTERNAL_H
52 #define M_PI 3.14159265358979323846
55 #include <librevenge-stream/librevenge-stream.h>
56 #include <librevenge/librevenge.h>
58 #if defined(_MSC_VER) || defined(__DJGPP__)
60 typedef signed char int8_t;
61 typedef unsigned char uint8_t;
62 typedef signed short int16_t;
63 typedef unsigned short uint16_t;
64 typedef signed int int32_t;
65 typedef unsigned int uint32_t;
66 typedef unsigned __int64 uint64_t;
67 typedef __int64 int64_t;
77 # ifdef HAVE_INTTYPES_H
78 # include <inttypes.h>
85 # include <inttypes.h>
94 # define gmtime_r(tp,tmp) (gmtime(tp)?(*(tmp)=*gmtime(tp),(tmp)):0)
95 # define localtime_r(tp,tmp) (localtime(tp)?(*(tmp)=*localtime(tp),(tmp)):0)
105 #if defined(HAVE_FUNC_ATTRIBUTE_FORMAT)
106 # define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg) __attribute__((format(printf, fmt, arg)))
108 # define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg)
111 #define MWAW_N_ELEMENTS(m) sizeof(m)/sizeof(m[0])
113 #if defined(HAVE_CLANG_ATTRIBUTE_FALLTHROUGH)
114 # define MWAW_FALLTHROUGH [[clang::fallthrough]]
115 #elif defined(HAVE_GCC_ATTRIBUTE_FALLTHROUGH)
116 # define MWAW_FALLTHROUGH __attribute__((fallthrough))
118 # define MWAW_FALLTHROUGH ((void) 0)
127 #define MWAW_DEBUG_MSG(M) libmwaw::printDebugMsg M
129 #define MWAW_DEBUG_MSG(M)
159 uint8_t
readU8(librevenge::RVNGInputStream *input);
161 void appendUnicode(uint32_t val, librevenge::RVNGString &buffer);
167 return (x < 0 && y < std::numeric_limits<T>::lowest() - x)
168 || (x > 0 && y > std::numeric_limits<T>::max() - x);
199 MWAWColor(
unsigned char r,
unsigned char g,
unsigned char b,
unsigned char a=255)
200 :
m_value(uint32_t((a<<24)+(r<<16)+(g<<8)+b))
220 double w=1.-
static_cast<double>(k)/255.;
222 (
static_cast<unsigned char>(255 * (1-
static_cast<double>(c)/255) * w),
223 static_cast<unsigned char>(255 * (1-
static_cast<double>(m)/255) * w),
224 static_cast<unsigned char>(255 * (1-
static_cast<double>(y)/255) * w)
230 double c=(1-((L>=128) ? (2*
static_cast<double>(L)-255) : (255-2*
static_cast<double>(L)))/255)*
231 static_cast<double>(S)/255;
232 double tmp=std::fmod((
static_cast<double>(H)*6/255),2)-1;
233 double x=c*(1-(tmp>0 ? tmp : -tmp));
234 auto C=
static_cast<unsigned char>(255*c);
235 auto M=
static_cast<unsigned char>(
static_cast<double>(L)-255*c/2);
236 auto X=
static_cast<unsigned char>(255*x);
237 if (H<=42)
return MWAWColor(
static_cast<unsigned char>(M+C),
static_cast<unsigned char>(M+X),
static_cast<unsigned char>(M));
238 if (H<=85)
return MWAWColor(
static_cast<unsigned char>(M+X),
static_cast<unsigned char>(M+C),
static_cast<unsigned char>(M));
239 if (H<=127)
return MWAWColor(
static_cast<unsigned char>(M),
static_cast<unsigned char>(M+C),
static_cast<unsigned char>(M+X));
240 if (H<=170)
return MWAWColor(
static_cast<unsigned char>(M),
static_cast<unsigned char>(M+X),
static_cast<unsigned char>(M+C));
241 if (H<=212)
return MWAWColor(
static_cast<unsigned char>(M+X),
static_cast<unsigned char>(M),
static_cast<unsigned char>(M+C));
242 return MWAWColor(
static_cast<unsigned char>(M+C),
static_cast<unsigned char>(M),
static_cast<unsigned char>(M+X));
266 return static_cast<unsigned char>((
m_value>>24)&0xFF);
271 return static_cast<unsigned char>(
m_value&0xFF);
276 return static_cast<unsigned char>((
m_value>>16)&0xFF);
281 return static_cast<unsigned char>((
m_value>>8)&0xFF);
291 return (
m_value&0xFFFFFF)==0xFFFFFF;
326 std::string
str()
const;
354 bool addTo(librevenge::RVNGPropertyList &propList, std::string which=
"")
const;
416 bool addTo(librevenge::RVNGPropertyList &propList)
const;
418 librevenge::RVNGString
getString()
const;
438 bool addTo(librevenge::RVNGPropertyList &propList)
const;
478 add(binaryData, type);
495 void add(librevenge::RVNGBinaryData
const &binaryData, std::string
const &type=
"image/pict")
505 bool addTo(librevenge::RVNGPropertyList &propList)
const;
597 return std::forward<MWAWVariable &>(*
this);
681 return (c==0) ?
m_x :
m_y;
687 return (c==0) ?
m_x :
m_y;
726 const T diff = std::numeric_limits<T>::min() + std::numeric_limits<T>::max();
779 if (
m_x < p.
m_x)
return -1;
780 if (
m_x > p.
m_x)
return 1;
781 if (
m_y < p.
m_y)
return -1;
782 if (
m_y > p.
m_y)
return 1;
788 if (
m_y < p.
m_y)
return -1;
789 if (
m_y > p.
m_y)
return 1;
790 if (
m_x < p.
m_x)
return -1;
791 if (
m_x > p.
m_x)
return 1;
798 o << f.
m_x <<
"x" << f.
m_y;
809 return s1.
cmp(s2) < 0;
815 typedef std::map<MWAWVec2<T>, T,
struct PosSizeLtX>
MapX;
824 return s1.
cmpY(s2) < 0;
830 typedef std::map<MWAWVec2<T>, T,
struct PosSizeLtY>
MapY;
860 for (
int c = 0; c < 3; c++)
m_val[c] = T(p[c]);
892 void set(T xx, T yy, T zz)
915 void add(T dx, T dy, T dz)
938 for (
auto &c :
m_val) c = T(c*scale);
980 for (
int c = 0; c < 3; c++) {
1001 return s1.
cmp(s2) < 0;
1007 typedef std::map<MWAWVec3<T>, T,
struct PosSizeLt>
Map;
1110 m_data.first = centerPt - decal;
1111 m_data.second = centerPt + (sz - decal);
1181 o <<
"(" << f.
min() <<
"<->" << f.
max() <<
")";
1237 for (
int coord=0; coord<2; ++coord) {
1240 for (
int i=0; i<2; ++i)
1241 value+=row[i]*dir[i];
1257 for (
int row=0; row<2; ++row) {
1259 for (
int col=0; col<3; ++col) {
1261 for (
int i=0; i<3; ++i)
1262 value+=(*
this)[row][i]*(i==2 ? (col==2 ? 1.f : 0.f) : mat[i][col]);
1343 bool convertDTFormat(std::string
const &dtFormat, librevenge::RVNGPropertyListVector &propVect);
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist
Definition: libmwaw_internal.cxx:579
MWAWVec3< int > MWAWVec3i
MWAWVec3 of int.
Definition: libmwaw_internal.hxx:1017
std::shared_ptr< MWAWTextListener > MWAWTextListenerPtr
a smart pointer of MWAWTextListener
Definition: libmwaw_internal.hxx:567
basic class to store an entry in a file This contained :
Definition: MWAWEntry.hxx:47
@ Time
Definition: libmwaw_internal.hxx:401
std::shared_ptr< MWAWInputStream > MWAWInputStreamPtr
a smart pointer of MWAWInputStream
Definition: libmwaw_internal.hxx:551
std::pair< MWAWVec2< T >, MWAWVec2< T > > m_data
the data
Definition: libmwaw_internal.hxx:1187
an noop deleter used to transform a libwpd pointer in a false std::shared_ptr
Definition: libmwaw_internal.hxx:101
@ Triple
Definition: libmwaw_internal.hxx:337
std::shared_ptr< MWAWFontManager > MWAWFontManagerPtr
a smart pointer of MWAWFontManager
Definition: libmwaw_internal.hxx:547
std::shared_ptr< MWAWGraphicListener > MWAWGraphicListenerPtr
a smart pointer of MWAWGraphicListener
Definition: libmwaw_internal.hxx:549
a note
Definition: libmwaw_internal.hxx:445
MWAWVec2(T xx=0, T yy=0)
constructor
Definition: libmwaw_internal.hxx:659
bool m_set
a flag to know if the variable is set or not
Definition: libmwaw_internal.hxx:648
@ NONE
Definition: libmwaw_internal.hxx:180
Type m_type
the type
Definition: libmwaw_internal.hxx:420
bool operator>(MWAWBox2< T > const &mat) const
operator>
Definition: libmwaw_internal.hxx:1169
std::shared_ptr< MWAWFontConverter > MWAWFontConverterPtr
a smart pointer of MWAWFontConverter
Definition: libmwaw_internal.hxx:543
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:702
MWAWVec2< T > & min()
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1049
#define MWAW_DEBUG_MSG(M)
Definition: libmwaw_internal.hxx:129
MWAWVec2< float > MWAWVec2f
MWAWVec2 of float.
Definition: libmwaw_internal.hxx:842
std::string numberingValueToString(NumberingType type, int value)
Definition: libmwaw_internal.cxx:130
bool operator==(MWAWVec2< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:762
a generic variable template: value + flag to know if the variable is set
Definition: libmwaw_internal.hxx:577
MWAWBox2f rotateBoxFromCenter(MWAWBox2f const &box, float angle)
rotate a bdox and returns the final bdbox, angle is given in degree
Definition: libmwaw_internal.cxx:708
void set(MWAWVec2< T > const &x, MWAWVec2< T > const &y)
resets the data to minimum x and maximum y
Definition: libmwaw_internal.hxx:1079
Type m_type
the border repetition
Definition: libmwaw_internal.hxx:385
bool operator>=(MWAWBox2< T > const &mat) const
operator>=
Definition: libmwaw_internal.hxx:1174
@ Dash
Definition: libmwaw_internal.hxx:335
MWAWVec3< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:936
friend MWAWVec3< T > operator+(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:943
MWAWField(MWAWField const &)=default
NumberingType
Definition: libmwaw_internal.hxx:180
friend std::ostream & operator<<(std::ostream &o, MWAWVec3< T > const &f)
operator<<: prints data in form "XxYxZ"
Definition: libmwaw_internal.hxx:988
MWAWLink()
basic constructor
Definition: libmwaw_internal.hxx:432
bool isEmpty() const
returns true if the border is empty
Definition: libmwaw_internal.hxx:356
MWAWField & operator=(MWAWField &&)=default
MWAWVec2< T > & max()
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1054
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:684
bool operator!=(MWAWVec3< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:968
std::map< MWAWVec2< bool >, bool, struct PosSizeLtX > MapX
map of MWAWVec2
Definition: libmwaw_internal.hxx:815
Position
basic position enum
Definition: libmwaw_internal.hxx:176
int compare(MWAWBorder const &orig) const
compare two borders
Definition: libmwaw_internal.cxx:432
@ DOC_COMMENT_ANNOTATION
Definition: libmwaw_internal.hxx:188
~MWAWEmbeddedObject()
destructor
Definition: libmwaw_internal.cxx:575
@ Simple
Definition: libmwaw_internal.hxx:335
std::string m_DTFormat
the date/time format using strftime format if defined
Definition: libmwaw_internal.hxx:424
MWAWVec2< T > & operator*=(U scale)
generic operator*=
Definition: libmwaw_internal.hxx:734
This class contents the main functions needed to create a Word processing Document.
Definition: MWAWTextListener.hxx:65
T z() const
third element
Definition: libmwaw_internal.hxx:874
a font manager which can be used to store fonts, ...
Definition: MWAWFont.hxx:583
std::vector< librevenge::RVNGBinaryData > m_dataList
the picture content: one data by representation
Definition: libmwaw_internal.hxx:512
static MWAWColor white()
return the white color
Definition: libmwaw_internal.hxx:250
@ BULLET
Definition: libmwaw_internal.hxx:180
bool operator==(MWAWColor const &c) const
operator==
Definition: libmwaw_internal.hxx:294
@ DOC_CHART
Definition: libmwaw_internal.hxx:188
@ BottomBit
Definition: libmwaw_internal.hxx:178
@ DOC_CHART_ZONE
Definition: libmwaw_internal.hxx:188
int cmpY(MWAWVec2< T > const &p) const
a comparison function: which first compares y then x
Definition: libmwaw_internal.hxx:786
Type
enum to define note type
Definition: libmwaw_internal.hxx:447
T const & operator*() const
operator*
Definition: libmwaw_internal.hxx:619
MWAWColor & operator=(uint32_t argb)
operator=
Definition: libmwaw_internal.hxx:212
MWAWEmbeddedObject & operator=(MWAWEmbeddedObject const &)=default
@ WritingLeftTop
Definition: libmwaw_internal.hxx:185
@ UPPERCASE
Definition: libmwaw_internal.hxx:180
void add(librevenge::RVNGBinaryData const &binaryData, std::string const &type="image/pict")
add a picture
Definition: libmwaw_internal.hxx:495
a structure used to define a picture shape
Definition: MWAWGraphicShape.hxx:46
T x() const
first element
Definition: libmwaw_internal.hxx:864
the class to store a color
Definition: libmwaw_internal.hxx:192
void appendUnicode(uint32_t val, librevenge::RVNGString &buffer)
adds an unicode character to a string
Definition: libmwaw_internal.cxx:63
std::string numberingTypeToString(NumberingType type)
Definition: libmwaw_internal.cxx:106
small class use to define a embedded object
Definition: libmwaw_internal.hxx:467
MWAWBorder(MWAWBorder const &)=default
MWAWVec3< unsigned char > MWAWVec3uc
MWAWVec3 of unsigned char.
Definition: libmwaw_internal.hxx:1015
Type
Defines some basic type for field.
Definition: libmwaw_internal.hxx:401
MWAWField & operator=(MWAWField const &)=default
std::shared_ptr< MWAWSubDocument > MWAWSubDocumentPtr
a smart pointer of MWAWSubDocument
Definition: libmwaw_internal.hxx:565
@ WritingRightBottom
Definition: libmwaw_internal.hxx:185
librevenge::RVNGString getString() const
returns a string corresponding to the field (if possible) */
Definition: libmwaw_internal.cxx:294
Definition: libmwaw_internal.hxx:136
@ LOWERCASE_ROMAN
Definition: libmwaw_internal.hxx:180
void extend(T val)
extends the bdbox by (val, val) keeping the center
Definition: libmwaw_internal.hxx:1122
bool convertDTFormat(std::string const &dtFormat, librevenge::RVNGPropertyListVector &propVect)
convert a DTFormat in a propertyList
Definition: libmwaw_internal.cxx:324
std::map< MWAWVec3< int >, int, struct PosSizeLt > Map
map of MWAWVec3
Definition: libmwaw_internal.hxx:1007
MWAWBox2< long > MWAWBox2l
MWAWBox2 of long.
Definition: libmwaw_internal.hxx:1195
bool operator<(MWAWBox2< T > const &mat) const
operator<
Definition: libmwaw_internal.hxx:1159
class to store the paragraph properties
Definition: MWAWParagraph.hxx:85
std::string str() const
print the color in the form #rrggbb
Definition: libmwaw_internal.cxx:232
int m_number
the note number if defined
Definition: libmwaw_internal.hxx:460
MWAWVec2< T > & operator-=(MWAWVec2< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:723
@ None
Definition: libmwaw_internal.hxx:335
#define MWAW_FALLTHROUGH
Definition: libmwaw_internal.hxx:118
@ HMiddle
Definition: libmwaw_internal.hxx:176
double m_width
the border total width in point
Definition: libmwaw_internal.hxx:387
MWAWVec2f rotatePointAroundCenter(MWAWVec2f const &point, MWAWVec2f const ¢er, float angle)
rotate a point around center, angle is given in degree
Definition: libmwaw_internal.cxx:700
MWAWVec3(MWAWVec3< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:858
a link
Definition: libmwaw_internal.hxx:430
bool operator!=(MWAWVec2< T > const &p) const
comparison!=
Definition: libmwaw_internal.hxx:767
MWAWBox2< T > getIntersection(MWAWBox2< T > const &box) const
returns the intersection between this and box
Definition: libmwaw_internal.hxx:1139
void setMin(MWAWVec2< T > const &x)
resets the minimum point
Definition: libmwaw_internal.hxx:1085
@ UPPERCASE_ROMAN
Definition: libmwaw_internal.hxx:180
abstract class used to store a subdocument (with a comparison function)
Definition: MWAWSubDocument.hxx:42
a structure used to define a picture style
Definition: MWAWGraphicStyle.hxx:48
@ Dot
Definition: libmwaw_internal.hxx:335
Type
the line repetition
Definition: libmwaw_internal.hxx:337
friend std::ostream & operator<<(std::ostream &o, MWAWBorder const &border)
operator<<
Definition: libmwaw_internal.cxx:541
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:879
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:899
MWAWVec2< T > const & operator[](int c) const
the two extremum points which defined the box
Definition: libmwaw_internal.hxx:1061
MWAWVariable & operator=(MWAWVariable const &)=default
copy operator
friend MWAWVec2< T > operator-(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:748
bool operator!=(MWAWColor const &c) const
operator!=
Definition: libmwaw_internal.hxx:299
@ PageCount
Definition: libmwaw_internal.hxx:401
std::shared_ptr< MWAWPresentationListener > MWAWPresentationListenerPtr
a smart pointer of MWAWPresentationListener
Definition: libmwaw_internal.hxx:559
@ Date
Definition: libmwaw_internal.hxx:401
void add(T dx, T dy, T dz)
increases the actuals values by dx, dy, dz
Definition: libmwaw_internal.hxx:915
@ BookmarkEnd
Definition: libmwaw_internal.hxx:401
libmwaw::NumberingType m_numberingType
the number type ( for number field )
Definition: libmwaw_internal.hxx:422
bool isSet() const
return true if the variable is set
Definition: libmwaw_internal.hxx:635
Style
the line style
Definition: libmwaw_internal.hxx:335
bool checkAddOverflow(T x, T y)
checks whether addition of x and y would overflow
Definition: libmwaw_internal.hxx:165
static MWAWColor barycenter(float alpha, MWAWColor const &colA, float beta, MWAWColor const &colB)
return alpha*colA+beta*colB
Definition: libmwaw_internal.cxx:206
MWAWBox2< T > getUnion(MWAWBox2< T > const &box) const
returns the union between this and box
Definition: libmwaw_internal.hxx:1129
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if needed )
Definition: libmwaw_internal.cxx:423
SubDocumentType
Definition: libmwaw_internal.hxx:188
MWAWBorder & operator=(MWAWBorder const &)=default
int cmp(MWAWEmbeddedObject const &pict) const
a comparison function
Definition: libmwaw_internal.cxx:606
std::vector< double > m_widthsList
the different length used for each line/sep (if defined)
Definition: libmwaw_internal.hxx:391
MWAWEmbeddedObject(librevenge::RVNGBinaryData const &binaryData, std::string const &type="image/pict")
constructor
Definition: libmwaw_internal.hxx:475
std::shared_ptr< MWAWSpreadsheetListener > MWAWSpreadsheetListenerPtr
a smart pointer of MWAWSpreadsheetListener
Definition: libmwaw_internal.hxx:563
This class contents the main functions needed to create a spreadsheet processing Document.
Definition: MWAWSpreadsheetListener.hxx:66
int cmp(MWAWVec2< T > const &p) const
a comparison function: which first compares x then y
Definition: libmwaw_internal.hxx:777
a small structure used to store the informations about a list
Definition: MWAWList.hxx:123
MWAWColor(MWAWColor &&)=default
move assignement
MWAWBorder & operator=(MWAWBorder &&)=default
the main class to read a Mac resource fork
Definition: MWAWRSRCParser.hxx:47
T y() const
second element
Definition: libmwaw_internal.hxx:673
@ Database
Definition: libmwaw_internal.hxx:401
MWAWVec2(MWAWVec2< U > const &p)
generic copy constructor
Definition: libmwaw_internal.hxx:663
@ Bottom
Definition: libmwaw_internal.hxx:176
This class contains a virtual interface to all listener.
Definition: MWAWListener.hxx:50
bool isEmpty() const
return true if the picture contains no data
Definition: libmwaw_internal.hxx:486
std::string m_data
the database/link field ( if defined ) or the bookmark name
Definition: libmwaw_internal.hxx:426
T m_val[3]
the values
Definition: libmwaw_internal.hxx:1011
MWAWColor(unsigned char r, unsigned char g, unsigned char b, unsigned char a=255)
constructor from color
Definition: libmwaw_internal.hxx:199
T x() const
first element
Definition: libmwaw_internal.hxx:668
MWAWVariable(MWAWVariable const &orig)
copy constructor
Definition: libmwaw_internal.hxx:587
bool operator==(MWAWVec3< T > const &p) const
comparison==
Definition: libmwaw_internal.hxx:963
unsigned char getBlue() const
returns the green value
Definition: libmwaw_internal.hxx:269
Definition: libmwaw_internal.hxx:140
std::shared_ptr< MWAWListManager > MWAWListManagerPtr
a smart pointer of MWAWListManager
Definition: libmwaw_internal.hxx:555
Class to define the position of an object (textbox, picture, ..) in the document.
Definition: MWAWPosition.hxx:48
friend MWAWVec2< T > operator+(MWAWVec2< T > const &p1, MWAWVec2< T > const &p2)
operator+
Definition: libmwaw_internal.hxx:742
@ VMiddleBit
Definition: libmwaw_internal.hxx:178
a border
Definition: libmwaw_internal.hxx:333
bool isBlack() const
return true if the color is black
Definition: libmwaw_internal.hxx:284
std::string m_HRef
the href field
Definition: libmwaw_internal.hxx:441
friend std::ostream & operator<<(std::ostream &o, MWAWVec2< T > const &f)
operator<<: prints data in form "XxY"
Definition: libmwaw_internal.hxx:796
@ VMiddle
Definition: libmwaw_internal.hxx:176
bool addTo(librevenge::RVNGPropertyList &propList, std::string which="") const
add the border property to proplist (if needed )
Definition: libmwaw_internal.cxx:444
MWAWEmbeddedObject()
empty constructor
Definition: libmwaw_internal.hxx:469
std::string writingModeToString(WritingMode mode)
a function to convert a writing mode in string lt-rb, ...
Definition: libmwaw_internal.cxx:184
#define M_PI
Definition: libmwaw_internal.hxx:52
std::shared_ptr< MWAWRSRCParser > MWAWRSRCParserPtr
a smart pointer of MWAWRSRCParser
Definition: libmwaw_internal.hxx:561
@ DOC_HEADER_FOOTER
Definition: libmwaw_internal.hxx:188
@ DOC_GRAPHIC_GROUP
Definition: libmwaw_internal.hxx:188
bool operator<=(MWAWBox2< T > const &mat) const
operator<=
Definition: libmwaw_internal.hxx:1164
@ None
Definition: libmwaw_internal.hxx:401
@ RightBit
Definition: libmwaw_internal.hxx:178
void setMax(MWAWVec2< T > const &y)
resets the maximum point
Definition: libmwaw_internal.hxx:1090
a class which stores section properties
Definition: MWAWSection.hxx:46
void resizeFromMin(MWAWVec2< T > const &sz)
resize the box keeping the minimum
Definition: libmwaw_internal.hxx:1096
@ ARABIC
Definition: libmwaw_internal.hxx:180
Definition: libmwaw_internal.hxx:144
T & operator*()
operator*
Definition: libmwaw_internal.hxx:624
@ BookmarkStart
Definition: libmwaw_internal.hxx:401
void insert(MWAWVariable const &orig)
update the current value if orig is set
Definition: libmwaw_internal.hxx:600
void setZ(T zz)
resets the third element
Definition: libmwaw_internal.hxx:909
bool operator<(MWAWVec3< T > const &p) const
comparison<: which first compares x values, then y values then z values.
Definition: libmwaw_internal.hxx:973
bool operator==(MWAWBox2< T > const &mat) const
operator==
Definition: libmwaw_internal.hxx:1149
friend MWAWVec3< T > operator*(U scale, MWAWVec3< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:956
MWAWNote(Type type)
constructor
Definition: libmwaw_internal.hxx:449
static MWAWColor black()
return the back color
Definition: libmwaw_internal.hxx:245
MWAWBox2< float > MWAWBox2f
MWAWBox2 of float.
Definition: libmwaw_internal.hxx:1193
bool operator>(MWAWColor const &c) const
operator>
Definition: libmwaw_internal.hxx:314
MWAWEmbeddedObject(MWAWEmbeddedObject const &)=default
bool operator<(MWAWVec2< T > const &p) const
comparison<: sort by y
Definition: libmwaw_internal.hxx:772
@ DOC_SHEET
Definition: libmwaw_internal.hxx:188
void setY(T yy)
resets the second element
Definition: libmwaw_internal.hxx:904
T const * operator->() const
operator*
Definition: libmwaw_internal.hxx:608
@ WritingLeftBottom
Definition: libmwaw_internal.hxx:185
a field
Definition: libmwaw_internal.hxx:399
@ PageNumber
Definition: libmwaw_internal.hxx:401
MWAWBox2(MWAWBox2< U > const &p)
generic constructor
Definition: libmwaw_internal.hxx:1033
MWAWVariable()
constructor
Definition: libmwaw_internal.hxx:579
MWAWVec3(T xx=0, T yy=0, T zz=0)
constructor
Definition: libmwaw_internal.hxx:851
MWAWVariable(T const &def)
constructor with a default value
Definition: libmwaw_internal.hxx:583
friend MWAWVec3< T > operator-(MWAWVec3< T > const &p1, MWAWVec3< T > const &p2)
operator-
Definition: libmwaw_internal.hxx:949
MWAWColor(MWAWColor const &)=default
copy constructor
@ HMiddleBit
Definition: libmwaw_internal.hxx:178
small structure use to store a stream and it debug file
Definition: MWAWStream.hxx:41
MWAWColor(uint32_t argb=0)
constructor
Definition: libmwaw_internal.hxx:194
@ DOC_TABLE
Definition: libmwaw_internal.hxx:188
@ Top
Definition: libmwaw_internal.hxx:176
void set(T xx, T yy, T zz)
resets the three elements
Definition: libmwaw_internal.hxx:892
std::ostream & operator<<(std::ostream &o, MWAWColor const &c)
Definition: libmwaw_internal.cxx:220
Style m_style
the border style
Definition: libmwaw_internal.hxx:380
void add(T dx, T dy)
increases the actuals values by dx and dy
Definition: libmwaw_internal.hxx:708
@ DOC_TEXT_BOX
Definition: libmwaw_internal.hxx:188
unsigned char getAlpha() const
returns the alpha value
Definition: libmwaw_internal.hxx:264
main class used to define store librevenge::RVNGDrawingInterface lists of command in a librevenge::RV...
Definition: MWAWGraphicEncoder.hxx:56
@ DOC_NOTE
Definition: libmwaw_internal.hxx:188
MWAWBox2< int > MWAWBox2i
MWAWBox2 of int.
Definition: libmwaw_internal.hxx:1191
MWAWColor & operator=(MWAWColor &&)=default
move operator=
friend std::ostream & operator<<(std::ostream &o, MWAWColor const &c)
operator<< in the form #rrggbb
Definition: libmwaw_internal.cxx:220
@ LeftBit
Definition: libmwaw_internal.hxx:178
@ Double
Definition: libmwaw_internal.hxx:337
bool operator>=(MWAWColor const &c) const
operator>=
Definition: libmwaw_internal.hxx:319
Type m_type
the note type
Definition: libmwaw_internal.hxx:456
T & operator[](int c)
operator[]
Definition: libmwaw_internal.hxx:885
virtual class which defines the ancestor of all main zone parser
Definition: MWAWParser.hxx:100
friend std::ostream & operator<<(std::ostream &o, MWAWBox2< T > const &f)
print data in form X0xY0<->X1xY1
Definition: libmwaw_internal.hxx:1179
MWAWVec2< T > center() const
the box center
Definition: libmwaw_internal.hxx:1072
std::vector< std::string > m_typeList
the picture type: one type by representation
Definition: libmwaw_internal.hxx:514
a class to define the parser state
Definition: MWAWParser.hxx:50
This class contains code needed to write a presention document.
Definition: MWAWPresentationListener.hxx:60
T y() const
second element
Definition: libmwaw_internal.hxx:869
MWAWVec3< T > & operator-=(MWAWVec3< T > const &p)
operator-=
Definition: libmwaw_internal.hxx:929
T operator[](int c) const
operator[]
Definition: libmwaw_internal.hxx:678
T m_x
first element
Definition: libmwaw_internal.hxx:832
WritingMode
the different writing mode
Definition: libmwaw_internal.hxx:185
@ Right
Definition: libmwaw_internal.hxx:176
unsigned char getRed() const
returns the red value
Definition: libmwaw_internal.hxx:274
MWAWVec2< long > MWAWVec2l
MWAWVec2 of long.
Definition: libmwaw_internal.hxx:840
@ LOWERCASE
Definition: libmwaw_internal.hxx:180
std::shared_ptr< MWAWParserState > MWAWParserStatePtr
a smart pointer of MWAWParserState
Definition: libmwaw_internal.hxx:557
T m_data
the value
Definition: libmwaw_internal.hxx:646
@ TopBit
Definition: libmwaw_internal.hxx:178
MWAWVec2< T > const & min() const
the minimum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1039
librevenge::RVNGString m_label
the note label
Definition: libmwaw_internal.hxx:458
MWAWEmbeddedObject & operator=(MWAWEmbeddedObject &&)=default
internal struct used to create sorted map, sorted by Y
Definition: libmwaw_internal.hxx:820
Definition: libmwaw_internal.hxx:152
void resizeFromCenter(MWAWVec2< T > const &sz)
resize the box keeping the center
Definition: libmwaw_internal.hxx:1106
std::string m_extra
extra data ( if needed)
Definition: libmwaw_internal.hxx:395
void resizeFromMax(MWAWVec2< T > const &sz)
resize the box keeping the maximum
Definition: libmwaw_internal.hxx:1101
bool operator()(MWAWVec3< T > const &s1, MWAWVec3< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:999
MWAWVec3< float > MWAWVec3f
MWAWVec3 of float.
Definition: libmwaw_internal.hxx:1019
T const & get() const
return the current value
Definition: libmwaw_internal.hxx:630
T * operator->()
operator*
Definition: libmwaw_internal.hxx:613
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:822
bool operator==(MWAWBorder const &orig) const
operator==
Definition: libmwaw_internal.hxx:361
a namespace used to convert Mac font characters in unicode
Definition: MWAWFontConverter.hxx:63
internal struct used to create sorted map, sorted by X, Y, Z
Definition: libmwaw_internal.hxx:997
@ LargeDot
Definition: libmwaw_internal.hxx:335
MWAWField(Type type)
basic constructor
Definition: libmwaw_internal.hxx:404
@ Left
Definition: libmwaw_internal.hxx:176
MWAWVec2< T > size() const
the box size
Definition: libmwaw_internal.hxx:1067
uint32_t m_value
the argb color
Definition: libmwaw_internal.hxx:329
std::map< MWAWVec2< bool >, bool, struct PosSizeLtY > MapY
map of MWAWVec2
Definition: libmwaw_internal.hxx:830
MWAWColor & operator=(MWAWColor const &)=default
operator=
T m_y
second element
Definition: libmwaw_internal.hxx:832
void setX(T xx)
resets the first element
Definition: libmwaw_internal.hxx:697
@ FootNote
Definition: libmwaw_internal.hxx:447
void set(T xx, T yy)
resets the two elements
Definition: libmwaw_internal.hxx:691
MWAWVec2< T > & operator+=(MWAWVec2< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:717
a manager which manages the lists, keeps the different kind of lists, to assure the unicity of each l...
Definition: MWAWList.hxx:216
namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usa...
Definition: libmwaw_internal.cxx:51
@ Single
Definition: libmwaw_internal.hxx:337
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:978
bool operator()(MWAWVec2< T > const &s1, MWAWVec2< T > const &s2) const
comparaison function
Definition: libmwaw_internal.hxx:807
bool isWhite() const
return true if the color is white
Definition: libmwaw_internal.hxx:289
MWAWVariable & operator=(T const &val)
set a value
Definition: libmwaw_internal.hxx:593
std::shared_ptr< MWAWListener > MWAWListenerPtr
a smart pointer of MWAWListener
Definition: libmwaw_internal.hxx:553
bool operator<=(MWAWColor const &c) const
operator<=
Definition: libmwaw_internal.hxx:309
MWAWBorder()
constructor
Definition: libmwaw_internal.hxx:340
friend std::ostream & operator<<(std::ostream &o, MWAWEmbeddedObject const &pict)
operator<<
Definition: libmwaw_internal.cxx:631
small class which defines a vector with 3 elements
Definition: libmwaw_internal.hxx:848
small class which defines a 2D Box
Definition: libmwaw_internal.hxx:1025
MWAWBox2(MWAWVec2< T > minPt=MWAWVec2< T >(), MWAWVec2< T > maxPt=MWAWVec2< T >())
constructor
Definition: libmwaw_internal.hxx:1028
Class to store font.
Definition: MWAWFont.hxx:44
@ EndNote
Definition: libmwaw_internal.hxx:447
bool addTo(librevenge::RVNGPropertyList &propList) const
add the link property to proplist (if possible)
Definition: libmwaw_internal.cxx:240
unsigned char getGreen() const
returns the green value
Definition: libmwaw_internal.hxx:279
MWAWVec2< T > const & max() const
the maximum 2D point (in x and in y)
Definition: libmwaw_internal.hxx:1044
@ WritingRightTop
Definition: libmwaw_internal.hxx:185
@ Title
Definition: libmwaw_internal.hxx:401
static MWAWColor colorFromHSL(unsigned char H, unsigned char S, unsigned char L)
return a color from a hsl color (basic)
Definition: libmwaw_internal.hxx:228
@ DOC_NONE
Definition: libmwaw_internal.hxx:188
void scale(U factor)
scales all points of the box by factor
Definition: libmwaw_internal.hxx:1115
MWAWBorder(MWAWBorder &&)=default
bool operator<(MWAWColor const &c) const
operator<
Definition: libmwaw_internal.hxx:304
MWAWVec2< bool > MWAWVec2b
MWAWVec2 of bool.
Definition: libmwaw_internal.hxx:836
MWAWColor m_color
the border color
Definition: libmwaw_internal.hxx:393
Definition: libmwaw_internal.hxx:148
uint8_t readU8(librevenge::RVNGInputStream *input)
Definition: libmwaw_internal.cxx:52
MWAWVec2< int > MWAWVec2i
MWAWVec2 of int.
Definition: libmwaw_internal.hxx:838
@ WritingInherited
Definition: libmwaw_internal.hxx:185
A class which defines the page properties.
Definition: MWAWPageSpan.hxx:99
uint32_t value() const
return the rgba value
Definition: libmwaw_internal.hxx:259
MWAWVec3< T > & operator+=(MWAWVec3< T > const &p)
operator+=
Definition: libmwaw_internal.hxx:923
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:218
bool operator!=(MWAWBorder const &orig) const
operator!=
Definition: libmwaw_internal.hxx:366
MWAWField(MWAWField &&)=default
bool operator!=(MWAWBox2< T > const &mat) const
operator!=
Definition: libmwaw_internal.hxx:1154
This class contains the code needed to create Graphic document.
Definition: MWAWGraphicListener.hxx:60
friend MWAWVec2< T > operator*(U scale, MWAWVec2< T > const &p1)
generic operator*
Definition: libmwaw_internal.hxx:755
void setSet(bool newVal)
define if the variable is set
Definition: libmwaw_internal.hxx:640
internal struct used to create sorted map, sorted by X
Definition: libmwaw_internal.hxx:805
#define LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg)
Definition: libmwaw_internal.hxx:108
void operator()(T *)
Definition: libmwaw_internal.hxx:102
Generated on Fri Sep 18 2020 18:14:52 for libmwaw by
doxygen 1.8.20