libmwaw_internal.hxx File Reference documentation

Classes | Namespaces | Macros | Typedefs | Enumerations | Functions
libmwaw_internal.hxx File Reference
`#include <math.h>`
`#include <algorithm>`
`#include <cmath>`
`#include <limits>`
`#include <map>`
`#include <memory>`
`#include <ostream>`
`#include <string>`
`#include <vector>`
`#include <librevenge-stream/librevenge-stream.h>`
`#include <librevenge/librevenge.h>`
`#include <stdint.h>`
`#include <inttypes.h>`

Go to the source code of this file.

## Classes
struct | MWAW_shared_ptr_noop_deleter< T >
| an noop deleter used to transform a libwpd pointer in a false std::shared_ptr More...
class | libmwaw::VersionException
class | libmwaw::FileException
class | libmwaw::ParseException
class | libmwaw::GenericException
class | libmwaw::WrongPasswordException
struct | MWAWColor
| the class to store a color More...
struct | MWAWBorder
| a border More...
struct | MWAWField
| a field More...
struct | MWAWLink
| a link More...
struct | MWAWNote
| a note More...
struct | MWAWEmbeddedObject
| small class use to define a embedded object More...
struct | MWAWVariable< T >
| a generic variable template: value + flag to know if the variable is set More...
class | MWAWVec2< T >
| small class which defines a vector with 2 elements More...
struct | MWAWVec2< T >::PosSizeLtX
| internal struct used to create sorted map, sorted by X More...
struct | MWAWVec2< T >::PosSizeLtY
| internal struct used to create sorted map, sorted by Y More...
class | MWAWVec3< T >
| small class which defines a vector with 3 elements More...
struct | MWAWVec3< T >::PosSizeLt
| internal struct used to create sorted map, sorted by X, Y, Z More...
class | MWAWBox2< T >
| small class which defines a 2D Box More...
class | MWAWTransformation
| a transformation which stored the first row of a 3x3 perspective matrix More...

## Namespaces
| libmwaw
| namespace used to regroup all libwpd functions, enumerations which we have redefined for internal usage

## Macros
#define | M_PI 3.14159265358979323846
#define | LIBMWAW_ATTRIBUTE_PRINTF(fmt, arg)
#define | MWAW_N_ELEMENTS(m) sizeof(m)/sizeof(m[0])
#define | MWAW_FALLTHROUGH ((void) 0)
#define | MWAW_DEBUG_MSG(M)

## Typedefs
typedef std::shared_ptr< MWAWFontConverter > | MWAWFontConverterPtr
| a smart pointer of MWAWFontConverter More...
typedef std::shared_ptr< MWAWFontManager > | MWAWFontManagerPtr
| a smart pointer of MWAWFontManager More...
typedef std::shared_ptr< MWAWGraphicListener > | MWAWGraphicListenerPtr
| a smart pointer of MWAWGraphicListener More...
typedef std::shared_ptr< MWAWInputStream > | MWAWInputStreamPtr
| a smart pointer of MWAWInputStream More...
typedef std::shared_ptr< MWAWListener > | MWAWListenerPtr
| a smart pointer of MWAWListener More...
typedef std::shared_ptr< MWAWListManager > | MWAWListManagerPtr
| a smart pointer of MWAWListManager More...
typedef std::shared_ptr< MWAWParserState > | MWAWParserStatePtr
| a smart pointer of MWAWParserState More...
typedef std::shared_ptr< MWAWPresentationListener > | MWAWPresentationListenerPtr
| a smart pointer of MWAWPresentationListener More...
typedef std::shared_ptr< MWAWRSRCParser > | MWAWRSRCParserPtr
| a smart pointer of MWAWRSRCParser More...
typedef std::shared_ptr< MWAWSpreadsheetListener > | MWAWSpreadsheetListenerPtr
| a smart pointer of MWAWSpreadsheetListener More...
typedef std::shared_ptr< MWAWSubDocument > | MWAWSubDocumentPtr
| a smart pointer of MWAWSubDocument More...
typedef std::shared_ptr< MWAWTextListener > | MWAWTextListenerPtr
| a smart pointer of MWAWTextListener More...
typedef MWAWVec2< bool > | MWAWVec2b
| MWAWVec2 of bool. More...
typedef MWAWVec2< int > | MWAWVec2i
| MWAWVec2 of int. More...
typedef MWAWVec2< long > | MWAWVec2l
| MWAWVec2 of long. More...
typedef MWAWVec2< float > | MWAWVec2f
| MWAWVec2 of float. More...
typedef MWAWVec3< unsigned char > | MWAWVec3uc
| MWAWVec3 of unsigned char. More...
typedef MWAWVec3< int > | MWAWVec3i
| MWAWVec3 of int. More...
typedef MWAWVec3< float > | MWAWVec3f
| MWAWVec3 of float. More...
typedef MWAWBox2< int > | MWAWBox2i
| MWAWBox2 of int. More...
typedef MWAWBox2< float > | MWAWBox2f
| MWAWBox2 of float. More...
typedef MWAWBox2< long > | MWAWBox2l
| MWAWBox2 of long. More...

## Enumerations
enum | libmwaw::Position { libmwaw::Left = 0, libmwaw::Right = 1, libmwaw::Top = 2, libmwaw::Bottom = 3, libmwaw::HMiddle = 4, libmwaw::VMiddle = 5 }
| basic position enum More...
enum | { libmwaw::LeftBit = 0x01, libmwaw::RightBit = 0x02, libmwaw::TopBit =0x4, libmwaw::BottomBit = 0x08, libmwaw::HMiddleBit = 0x10, libmwaw::VMiddleBit = 0x20 }
| basic position enum bits More...
enum | libmwaw::NumberingType { libmwaw::NONE, libmwaw::BULLET, libmwaw::ARABIC, libmwaw::LOWERCASE, libmwaw::UPPERCASE, libmwaw::LOWERCASE_ROMAN, libmwaw::UPPERCASE_ROMAN }
enum | libmwaw::WritingMode { libmwaw::WritingLeftTop, libmwaw::WritingLeftBottom, libmwaw::WritingRightTop, libmwaw::WritingRightBottom, libmwaw::WritingInherited }
| the different writing mode More...
enum | libmwaw::SubDocumentType { libmwaw::DOC_NONE, libmwaw::DOC_CHART, libmwaw::DOC_CHART_ZONE, libmwaw::DOC_COMMENT_ANNOTATION, libmwaw::DOC_GRAPHIC_GROUP, libmwaw::DOC_HEADER_FOOTER, libmwaw::DOC_NOTE, libmwaw::DOC_SHEET, libmwaw::DOC_TABLE, libmwaw::DOC_TEXT_BOX }

## Functions
uint8_t | libmwaw::readU8 (librevenge::RVNGInputStream *input)
void | libmwaw::appendUnicode (uint32_t val, librevenge::RVNGString &buffer)
| adds an unicode character to a string More...
template<typename T >
bool | libmwaw::checkAddOverflow (T x, T y)
| checks whether addition of `x` and `y` would overflow More...
std::string | libmwaw::numberingTypeToString (NumberingType type)
std::string | libmwaw::numberingValueToString (NumberingType type, int value)
std::string | libmwaw::writingModeToString (WritingMode mode)
| a function to convert a writing mode in string lt-rb, ... More...
bool | libmwaw::convertDTFormat (std::string const &dtFormat, librevenge::RVNGPropertyListVector &propVect)
| convert a DTFormat in a propertyList More...
MWAWVec2f | libmwaw::rotatePointAroundCenter (MWAWVec2f const &point, MWAWVec2f const &center, float angle)
| rotate a point around center, angle is given in degree More...
MWAWBox2f | libmwaw::rotateBoxFromCenter (MWAWBox2f const &box, float angle)
| rotate a bdox and returns the final bdbox, angle is given in degree More...

## Macro Definition Documentation

## ◆ LIBMWAW_ATTRIBUTE_PRINTF

#define LIBMWAW_ATTRIBUTE_PRINTF | ( |  | fmt,
|  |  | arg
| ) |  |

## ◆ M_PI

#define M_PI 3.14159265358979323846

## ◆ MWAW_DEBUG_MSG

#define MWAW_DEBUG_MSG | ( |  | M | ) |

## ◆ MWAW_FALLTHROUGH

#define MWAW_FALLTHROUGH ((void) 0)

## ◆ MWAW_N_ELEMENTS

#define MWAW_N_ELEMENTS | ( |  | m | ) | sizeof(m)/sizeof(m[0])

## Typedef Documentation

## ◆ MWAWBox2f

typedef MWAWBox2<float> MWAWBox2f

MWAWBox2 of float.

## ◆ MWAWBox2i

typedef MWAWBox2<int> MWAWBox2i

MWAWBox2 of int.

## ◆ MWAWBox2l

typedef MWAWBox2<long> MWAWBox2l

MWAWBox2 of long.

## ◆ MWAWFontConverterPtr

typedef std::shared_ptr<MWAWFontConverter> MWAWFontConverterPtr

a smart pointer of MWAWFontConverter

## ◆ MWAWFontManagerPtr

typedef std::shared_ptr<MWAWFontManager> MWAWFontManagerPtr

a smart pointer of MWAWFontManager

## ◆ MWAWGraphicListenerPtr

typedef std::shared_ptr<MWAWGraphicListener> MWAWGraphicListenerPtr

a smart pointer of MWAWGraphicListener

## ◆ MWAWInputStreamPtr

typedef std::shared_ptr<MWAWInputStream> MWAWInputStreamPtr

a smart pointer of MWAWInputStream

## ◆ MWAWListenerPtr

typedef std::shared_ptr<MWAWListener> MWAWListenerPtr

a smart pointer of MWAWListener

## ◆ MWAWListManagerPtr

typedef std::shared_ptr<MWAWListManager> MWAWListManagerPtr

a smart pointer of MWAWListManager

## ◆ MWAWParserStatePtr

typedef std::shared_ptr<MWAWParserState> MWAWParserStatePtr

a smart pointer of MWAWParserState

## ◆ MWAWPresentationListenerPtr

typedef std::shared_ptr<MWAWPresentationListener> MWAWPresentationListenerPtr

a smart pointer of MWAWPresentationListener

## ◆ MWAWRSRCParserPtr

typedef std::shared_ptr<MWAWRSRCParser> MWAWRSRCParserPtr

a smart pointer of MWAWRSRCParser

## ◆ MWAWSpreadsheetListenerPtr

typedef std::shared_ptr<MWAWSpreadsheetListener> MWAWSpreadsheetListenerPtr

a smart pointer of MWAWSpreadsheetListener

## ◆ MWAWSubDocumentPtr

typedef std::shared_ptr<MWAWSubDocument> MWAWSubDocumentPtr

a smart pointer of MWAWSubDocument

## ◆ MWAWTextListenerPtr

typedef std::shared_ptr<MWAWTextListener> MWAWTextListenerPtr

a smart pointer of MWAWTextListener

## ◆ MWAWVec2b

typedef MWAWVec2<bool> MWAWVec2b

MWAWVec2 of bool.

## ◆ MWAWVec2f

typedef MWAWVec2<float> MWAWVec2f

MWAWVec2 of float.

## ◆ MWAWVec2i

typedef MWAWVec2<int> MWAWVec2i

MWAWVec2 of int.

## ◆ MWAWVec2l

typedef MWAWVec2<long> MWAWVec2l

MWAWVec2 of long.

## ◆ MWAWVec3f

typedef MWAWVec3<float> MWAWVec3f

MWAWVec3 of float.

## ◆ MWAWVec3i

typedef MWAWVec3<int> MWAWVec3i

MWAWVec3 of int.

## ◆ MWAWVec3uc

typedef MWAWVec3<unsigned char> MWAWVec3uc

MWAWVec3 of unsigned char.