libwps_internal.h File Reference
#include <assert.h>
#include <iostream>
#include <map>
#include <string>
#include <libwpd-stream/libwpd-stream.h>
#include <libwpd/libwpd.h>
#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
struct  WPSFont
struct  WPSColumnDefinition
struct  WPSColumnProperties
class  Vec2< T >
 small class which defines a vector with 2 elements More...
struct  Vec2< T >::PosSizeLtX
 internal struct used to create sorted map, sorted by X More...
struct  Vec2< T >::PosSizeLtY
 internal struct used to create sorted map, sorted by Y More...
class  Box2< T >
 small class which defines a 2D Box More...
struct  Box2< T >::PosSizeLt
 internal struct used to create sorted map, sorted first min then max More...

Namespaces

namespace  libwps

Macros

#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_OVERLINE_BIT   0x400000L
#define WPS_HIDDEN_BIT   0x800000L
#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

Typedefs

typedef shared_ptr
< WPXInputStream > 
WPXInputStreamPtr
typedef Vec2< bool > Vec2b
 Vec2 of bool.
typedef Vec2< int > Vec2i
 Vec2 of int.
typedef Vec2< float > Vec2f
 Vec2 of float.
typedef Box2< int > Box2i
 Box2 of int.
typedef Box2< float > Box2f
 Box2 of float.

Enumerations

enum  libwps::NumberingType {
  libwps::NONE, libwps::BULLET, libwps::ARABIC, libwps::LOWERCASE,
  libwps::UPPERCASE, libwps::LOWERCASE_ROMAN, libwps::UPPERCASE_ROMAN
}
enum  libwps::SubDocumentType {
  libwps::DOC_NONE, libwps::DOC_HEADER_FOOTER, libwps::DOC_NOTE, libwps::DOC_TABLE,
  libwps::DOC_TEXT_BOX, libwps::DOC_COMMENT_ANNOTATION
}
enum  libwps::Justification {
  libwps::JustificationLeft, libwps::JustificationFull, libwps::JustificationCenter, libwps::JustificationRight,
  libwps::JustificationFullAllLines
}
enum  { libwps::NoBreakBit = 0x1, libwps::NoBreakWithNextBit = 0x2 }
enum  { libwps::LeftBorderBit = 0x01, libwps::RightBorderBit = 0x02, libwps::TopBorderBit = 0x4, libwps::BottomBorderBit = 0x08 }
enum  libwps::BorderStyle {
  libwps::BorderSingle, libwps::BorderDouble, libwps::BorderDot, libwps::BorderLargeDot,
  libwps::BorderDash
}

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)
bool libwps::readData (WPXInputStreamPtr &input, unsigned long size, WPXBinaryData &data)
bool libwps::readDataToEnd (WPXInputStreamPtr &input, WPXBinaryData &data)
std::string libwps::numberingTypeToString (NumberingType type)

Macro Definition Documentation

#define WPS_ALL_CAPS_BIT   0x40000L
#define WPS_BLINK_BIT   0x10000L
#define WPS_BOTTOM   0x04
#define WPS_CENTER   0x02
#define WPS_COLUMN_BREAK   0x02
#define WPS_DEBUG_MSG (   M)

Referenced by WPSContentListener::_changeList(), WPSContentListener::_closeFrame(), WPSPageSpan::_getHeaderFooterPosition(), WPSContentListener::_openFrame(), WPSContentListener::_openPageSpan(), WPSContentListener::_openParagraph(), WPSContentListener::_openSection(), WPSContentListener::_popParsingState(), WPSList::Level::addTo(), WPS4Text::bkmkDataParser(), WPSTable::buildStructures(), WPSContentListener::closeSection(), WPSContentListener::closeTable(), WPSContentListener::closeTableCell(), WPSContentListener::closeTableRow(), WPSHeader::constructHeader(), WPS4Parser::createDocument(), WPS4Parser::createOLEStructures(), WPS4Text::dttmDataParser(), WPSContentListener::endDocument(), WPS4Text::findFDPStructuresByHand(), WPS4Parser::findZones(), WPS4Text::footNotesDataParser(), WPSTable::get(), WPS4Parser::getColor(), libwps::Storage::getDocumentOLEStream(), WPS4TextInternal::FontName::getDosName(), WPSPosition::getScaleFactor(), WPSContentListener::handleSubDocument(), WPSContentListener::insertComment(), WPSContentListener::insertField(), WPSContentListener::insertLabelNote(), WPSContentListener::insertNote(), WPSDocument::isFileFormatSupported(), WPSList::isNumeric(), WPSList::mustSendLevel(), libwps::numberingTypeToString(), WPS4Text::objectDataParser(), WPSList::openElement(), WPSContentListener::openSection(), WPSContentListener::openTable(), WPSContentListener::openTableCell(), WPSContentListener::openTableRow(), operator<<(), WPSPageSpan::operator==(), WPS8Parser::parse(), WPSDocument::parse(), WPS8ParserInternal::SubDocument::parse(), WPS4Parser::parse(), WPS4ParserInternal::SubDocument::parse(), WPSOLEParser::parse(), WPS8Parser::parseHeaderIndex(), WPS8Parser::parseHeaderIndexEntry(), WPS8Parser::propertyChange(), WPS8Parser::propertyChangeDelta(), WPS8Parser::propertyChangePara(), WPSOLEParser::readCompObj(), WPSOLEParser::readContents(), WPSOLEParser::readCONTENTS(), WPS4Parser::readDocDim(), WPS4Parser::readDocWindowsInfo(), WPS4Text::readDosLink(), WPS4Text::readEntries(), WPS4Text::readFDP(), WPS8Parser::readFODPage(), WPS4Text::readFont(), WPS4Text::readFontNames(), WPS8Parser::readFontsTable(), WPS4Text::readFootNotes(), WPSOLEParser::readMM(), WPS4Graph::readObject(), WPS4Text::readParagraph(), WPS4Text::readPLC(), WPS4Parser::readPrnt(), WPS8Parser::readStreams(), WPS4Text::readStructures(), WPS4Text::readText(), WPS8Parser::readTextRange(), libwps::readU8(), WPS4Parser::send(), WPSPageSpan::sendHeaderFooters(), WPS8Parser::sendNote(), WPS4Graph::sendObject(), WPS4Graph::sendObjects(), WPSTable::sendTable(), WPSList::sendTo(), WPSList::set(), WPSPageSpan::setHeaderFooter(), WPSList::setLevel(), WPSContentListener::setParagraphMargin(), WPSContentListener::startDocument(), and WPS4Graph::storeObjects().

#define WPS_DOUBLE_UNDERLINE_BIT   0x800
#define WPS_EMBOSS_BIT   0x80000L
#define WPS_ENGRAVE_BIT   0x100000L
#define WPS_EXTRA_LARGE_BIT   1
#define WPS_FINE_PRINT_BIT   0x10
#define WPS_HIDDEN_BIT   0x800000L
#define WPS_LARGE_BIT   4

Referenced by operator<<().

#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(), 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_OUTLINE_BIT   0x80
#define WPS_OVERLINE_BIT   0x400000L
#define WPS_PAGE_BREAK   0x00
#define WPS_REDLINE_BIT   0x400
#define WPS_REVERSEVIDEO_BIT   0x20000L
#define WPS_RIGHT   0x01
#define WPS_SHADOW_BIT   0x200
#define WPS_SMALL_CAPS_BIT   0x8000
#define WPS_SMALL_PRINT_BIT   8

Referenced by operator<<().

#define WPS_SOFT_PAGE_BREAK   0x01
#define WPS_TOP   0x03
#define WPS_VERY_LARGE_BIT   2

Typedef Documentation

typedef Box2<float> Box2f

Box2 of float.

typedef Box2<int> Box2i

Box2 of int.

typedef Vec2<bool> Vec2b

Vec2 of bool.

typedef Vec2<float> Vec2f

Vec2 of float.

typedef Vec2<int> Vec2i

Vec2 of int.

typedef shared_ptr<WPXInputStream> WPXInputStreamPtr

Generated on Wed Aug 8 2012 16:07:57 for libwps by doxygen 1.8.1.2