WPSParagraph Struct Reference

class to store the paragraph properties More...

#include <WPSParagraph.h>

Inheritance diagram for WPSParagraph:
MSWriteParserInternal::Paragraph WPS4TextInternal::Paragraph

List of all members.

Public Types

enum  LineSpacingType { Fixed, AtLeast }
 the line spacing type: fixed or at least More...
typedef WPSList::Level ListLevel

Public Member Functions

 WPSParagraph ()
 constructor
virtual ~WPSParagraph ()
void addTo (librevenge::RVNGPropertyList &propList, bool inTable) const
 add to the propList
void setInterline (double value, librevenge::RVNGUnit unit, LineSpacingType type=Fixed)
 set the interline

Public Attributes

double m_margins [3]
 the margins
double m_spacings [3]
 the line spacing
librevenge::RVNGUnit m_spacingsInterlineUnit
 the interline unit PERCENT or INCH, ...
LineSpacingType m_spacingsInterlineType
 the interline type: fixed, atLeast, ...
std::vector< WPSTabStopm_tabs
 the tabulations
libwps::Justification m_justify
 the justification
int m_breakStatus
 a list of bits: 0x1 (unbreakable), 0x2 (do not break after)
int m_listLevelIndex
 the actual level index
ListLevel m_listLevel
 the actual level
WPSColor m_backgroundColor
 the background color
int m_border
 list of bits to indicated a border 1: LeftBorderBit, 2: RightBorderBit, ...
WPSBorder m_borderStyle
 the border style
std::string m_extra
 a string to store some errors

Friends

std::ostream & operator<< (std::ostream &o, WPSParagraph const &ft)
 operator <<

Detailed Description

class to store the paragraph properties


Member Typedef Documentation


Member Enumeration Documentation

the line spacing type: fixed or at least

Enumerator:
Fixed 
AtLeast 

Constructor & Destructor Documentation

constructor

virtual WPSParagraph::~WPSParagraph ( ) [inline, virtual]

Member Function Documentation

void WPSParagraph::addTo ( librevenge::RVNGPropertyList &  propList,
bool  inTable 
) const

add to the propList

void WPSParagraph::setInterline ( double  value,
librevenge::RVNGUnit  unit,
LineSpacingType  type = Fixed 
) [inline]

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
WPSParagraph const &  ft 
) [friend]

operator <<


Member Data Documentation

list of bits to indicated a border 1: LeftBorderBit, 2: RightBorderBit, ...

Referenced by addTo(), operator<<(), WPS8TextStyle::readParagraph(), and WPS4Text::readParagraph().

a list of bits: 0x1 (unbreakable), 0x2 (do not break after)

Referenced by operator<<(), and WPS4Text::readParagraph().

std::string WPSParagraph::m_extra

a string to store some errors

Referenced by operator<<(), WPS8TextStyle::readParagraph(), and WPS4Text::readParagraph().

the margins

  • 0: first line left margin
  • 1: left margin
  • 2: right margin

Referenced by addTo(), operator<<(), MSWriteParser::readPAP(), WPS8TextStyle::readParagraph(), WPS4Text::readParagraph(), WPSContentListener::setParagraph(), and WPSParagraph().

the line spacing

  • 0: interline
  • 1: before
  • 2: after

Referenced by addTo(), operator<<(), WPS8TextStyle::readParagraph(), WPS4Text::readParagraph(), setInterline(), and WPSParagraph().

the interline type: fixed, atLeast, ...

Referenced by addTo(), operator<<(), and setInterline().

the interline unit PERCENT or INCH, ...

Referenced by addTo(), operator<<(), and setInterline().


The documentation for this struct was generated from the following files: