libwps_internal.h File Reference
#include <libwpd-stream/libwpd-stream.h>
#include <libwpd/libwpd.h>
#include <string>
#include <inttypes.h>
#include <boost/shared_ptr.hpp>

Go to the source code of this file.

Classes

struct  WPS_shared_ptr_noop_deleter< T >
 an noop deleter used to transform a libwpd pointer in a false shared_ptr More...
class  libwps::VersionException
class  libwps::FileException
class  libwps::ParseException
class  libwps::GenericException

Namespaces

namespace  libwps

Defines

#define WPS_DEBUG_MSG(M)
#define WPS_LE_GET_GUINT16(p)
#define WPS_LE_GET_GUINT32(p)
#define WPS_EXTRA_LARGE_BIT   1
#define WPS_VERY_LARGE_BIT   2
#define WPS_LARGE_BIT   4
#define WPS_SMALL_PRINT_BIT   8
#define WPS_FINE_PRINT_BIT   0x10
#define WPS_SUPERSCRIPT_BIT   0x20
#define WPS_SUBSCRIPT_BIT   0x40
#define WPS_OUTLINE_BIT   0x80
#define WPS_ITALICS_BIT   0x100
#define WPS_SHADOW_BIT   0x200
#define WPS_REDLINE_BIT   0x400
#define WPS_DOUBLE_UNDERLINE_BIT   0x800
#define WPS_BOLD_BIT   0x1000
#define WPS_STRIKEOUT_BIT   0x2000
#define WPS_UNDERLINE_BIT   0x4000
#define WPS_SMALL_CAPS_BIT   0x8000
#define WPS_BLINK_BIT   0x10000L
#define WPS_REVERSEVIDEO_BIT   0x20000L
#define WPS_ALL_CAPS_BIT   0x40000L
#define WPS_EMBOSS_BIT   0x80000L
#define WPS_ENGRAVE_BIT   0x100000L
#define WPS_SPECIAL_BIT   0x200000L
#define WPS_PARAGRAPH_JUSTIFICATION_LEFT   0x00
#define WPS_PARAGRAPH_JUSTIFICATION_FULL   0x01
#define WPS_PARAGRAPH_JUSTIFICATION_CENTER   0x02
#define WPS_PARAGRAPH_JUSTIFICATION_RIGHT   0x03
#define WPS_PARAGRAPH_JUSTIFICATION_FULL_ALL_LINES   0x04
#define WPS_PARAGRAPH_JUSTIFICATION_DECIMAL_ALIGNED   0x05
#define WPS_PARAGRAPH_LAYOUT_NO_BREAK   0x01
#define WPS_PARAGRAPH_LAYOUT_WITH_NEXT   0x02
#define WPS_TAB_LEFT   0x00
#define WPS_TAB_CENTER   0x01
#define WPS_TAB_RIGHT   0x02
#define WPS_TAB_DECIMAL   0x03
#define WPS_TAB_BAR   0x04
#define WPS_PAGE_BREAK   0x00
#define WPS_SOFT_PAGE_BREAK   0x01
#define WPS_COLUMN_BREAK   0x02
#define WPS_LEFT   0x00
#define WPS_RIGHT   0x01
#define WPS_CENTER   0x02
#define WPS_TOP   0x03
#define WPS_BOTTOM   0x04
#define WPS_FIELD_PAGE   1
#define WPS_FIELD_DATE   2
#define WPS_FIELD_TIME   3
#define WPS_FIELD_FILE   4
#define WPS_NUMBERING_NONE   0
#define WPS_NUMBERING_BULLET   1
#define WPS_NUMBERING_NUMBER   2
#define WPS_NUM_STYLE_NONE   0
#define WPS_NUM_STYLE_ARABIC   2
#define WPS_NUM_STYLE_LLATIN   3
#define WPS_NUM_STYLE_ULATIN   4
#define WPS_NUM_STYLE_LROMAN   5
#define WPS_NUM_STYLE_UROMAN   6

Typedefs

typedef shared_ptr
< WPXInputStream > 
WPXInputStreamPtr

Enumerations

enum  libwps::HeaderFooterType { libwps::HEADER, libwps::FOOTER }
enum  libwps::HeaderFooterOccurence { libwps::ODD, libwps::EVEN, libwps::ALL, libwps::NEVER }
enum  libwps::FormOrientation { libwps::PORTRAIT, libwps::LANDSCAPE }

Functions

uint8_t libwps::readU8 (WPXInputStream *input)
uint16_t libwps::readU16 (WPXInputStream *input)
uint32_t libwps::readU32 (WPXInputStream *input)
int8_t libwps::read8 (WPXInputStream *input)
int16_t libwps::read16 (WPXInputStream *input)
int32_t libwps::read32 (WPXInputStream *input)
uint8_t libwps::readU8 (WPXInputStreamPtr &input)
uint16_t libwps::readU16 (WPXInputStreamPtr &input)
uint32_t libwps::readU32 (WPXInputStreamPtr &input)
int8_t libwps::read8 (WPXInputStreamPtr &input)
int16_t libwps::read16 (WPXInputStreamPtr &input)
int32_t libwps::read32 (WPXInputStreamPtr &input)

Define Documentation

#define WPS_BLINK_BIT   0x10000L
#define WPS_BOTTOM   0x04
#define WPS_CENTER   0x02
#define WPS_DOUBLE_UNDERLINE_BIT   0x800
#define WPS_EXTRA_LARGE_BIT   1
#define WPS_FIELD_DATE   2
#define WPS_FIELD_FILE   4
#define WPS_FIELD_TIME   3
#define WPS_FINE_PRINT_BIT   0x10
#define WPS_LARGE_BIT   4
#define WPS_LE_GET_GUINT16 (   p)
Value:
(uint16_t)((((uint8_t const *)(p))[0] << 0)  |    \
                  (((uint8_t const *)(p))[1] << 8))

Referenced by WPS8Parser::propertyChange(), WPS4Parser::propertyChangePara(), and WPS8Parser::propertyChangePara().

#define WPS_LE_GET_GUINT32 (   p)
Value:
(uint32_t)((((uint8_t const *)(p))[0] << 0)  |    \
                  (((uint8_t const *)(p))[1] << 8)  |    \
                  (((uint8_t const *)(p))[2] << 16) |    \
                  (((uint8_t const *)(p))[3] << 24))

Referenced by WPS8Parser::propertyChange(), and WPS8Parser::propertyChangePara().

#define WPS_LEFT   0x00
#define WPS_NUM_STYLE_ARABIC   2
#define WPS_NUM_STYLE_NONE   0
#define WPS_REDLINE_BIT   0x400
#define WPS_REVERSEVIDEO_BIT   0x20000L
#define WPS_RIGHT   0x01
#define WPS_SMALL_PRINT_BIT   8
#define WPS_SOFT_PAGE_BREAK   0x01
#define WPS_SPECIAL_BIT   0x200000L
#define WPS_TAB_BAR   0x04
#define WPS_TAB_LEFT   0x00
#define WPS_TOP   0x03
#define WPS_VERY_LARGE_BIT   2

Typedef Documentation

typedef shared_ptr<WPXInputStream> WPXInputStreamPtr