WPSBorder Struct Reference

a border list More...

#include <libwps_internal.h>

List of all members.

Public Types

enum  Style {
  None, Simple, Dot, LargeDot,
  Dash
}
 the line style More...
enum  Type { Single, Double, Triple }
 the line repetition More...
enum  Pos { Left = 0, Right = 1, Top = 2, Bottom = 3 }
enum  { LeftBit = 0x01, RightBit = 0x02, TopBit = 0x4, BottomBit = 0x08 }

Public Member Functions

 WPSBorder ()
 constructor
bool addTo (librevenge::RVNGPropertyList &propList, std::string which="") const
 add the border property to proplist (if needed )
bool isEmpty () const
 returns true if the border is empty
bool operator== (WPSBorder const &orig) const
 operator==
bool operator!= (WPSBorder const &orig) const
 operator!=
int compare (WPSBorder const &orig) const
 compare two cell

Public Attributes

Style m_style
 the border style
Type m_type
 the border repetition
int m_width
 the border width
std::vector< double > m_widthsList
 the different length used for each line/sep (if defined)
WPSColor m_color
 the border color
std::string m_extra
 extra data ( if needed)

Friends

std::ostream & operator<< (std::ostream &o, WPSBorder const &border)
 operator<<
std::ostream & operator<< (std::ostream &o, WPSBorder::Style const &style)
 operator<<: prints data in form "none|dot|..."

Detailed Description

a border list


Member Enumeration Documentation

anonymous enum
Enumerator:
LeftBit 
RightBit 
TopBit 
BottomBit 
Enumerator:
Left 
Right 
Top 
Bottom 

the line style

Enumerator:
None 
Simple 
Dot 
LargeDot 
Dash 

the line repetition

Enumerator:
Single 
Double 
Triple 

Constructor & Destructor Documentation

WPSBorder::WPSBorder ( ) [inline]

constructor


Member Function Documentation

bool WPSBorder::addTo ( librevenge::RVNGPropertyList &  propList,
std::string  which = "" 
) const

add the border property to proplist (if needed )

Note:
if set which must be equal to "left", "top", ...

Referenced by WPSParagraph::addTo().

int WPSBorder::compare ( WPSBorder const &  orig) const

compare two cell

bool WPSBorder::isEmpty ( ) const [inline]

returns true if the border is empty

bool WPSBorder::operator!= ( WPSBorder const &  orig) const [inline]

operator!=

bool WPSBorder::operator== ( WPSBorder const &  orig) const [inline]

operator==

Referenced by operator!=().


Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
WPSBorder const &  border 
) [friend]

operator<<

std::ostream& operator<< ( std::ostream &  o,
WPSBorder::Style const &  style 
) [friend]

operator<<: prints data in form "none|dot|..."


Member Data Documentation

std::string WPSBorder::m_extra

extra data ( if needed)

Referenced by operator<<().

std::vector<double> WPSBorder::m_widthsList

the different length used for each line/sep (if defined)

Note:
when defined, the size of this list must be equal to 2*Type-1

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


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