MWAWBorder Struct Reference

a border More...

#include <libmwaw_internal.hxx>

Public Types

enum  Style {
  None, Simple, Dot, LargeDot,
  Dash
}
 the line style More...
enum  Type { Single, Double, Triple }
 the line repetition More...

Public Member Functions

 MWAWBorder ()
 constructor
bool addTo (WPXPropertyList &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== (MWAWBorder const &orig) const
 operator==
bool operator!= (MWAWBorder const &orig) const
 operator!=
int compare (MWAWBorder const &orig) const
 compare two cell

Public Attributes

Style m_style
 the border style
Type m_type
 the border repetition
double m_width
 the border total width in point
std::vector< double > m_widthsList
 the different length used for each line/sep (if defined)
MWAWColor m_color
 the border color

Friends

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

Detailed Description

a border

Member Enumeration Documentation

the line style

Enumerator:
None 
Simple 
Dot 
LargeDot 
Dash 

the line repetition

Enumerator:
Single 
Double 
Triple 

Constructor & Destructor Documentation

MWAWBorder::MWAWBorder ( )
inline

constructor

Member Function Documentation

bool MWAWBorder::addTo ( WPXPropertyList &  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 MWAWParagraph::addTo(), and MWProStructuresInternal::Block::fillFramePropertyList().

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

compare two cell

bool MWAWBorder::isEmpty ( ) const
inline

returns true if the border is empty

Referenced by MWAWParagraph::addTo(), MWProStructuresInternal::Block::fillFramePropertyList(), and operator<<().

bool MWAWBorder::operator!= ( MWAWBorder const &  orig) const
inline

operator!=

Referenced by operator==().

bool MWAWBorder::operator== ( MWAWBorder const &  orig) const
inline

operator==

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  o,
MWAWBorder const &  border 
)
friend

operator<<: prints data in form "XxY"

std::ostream& operator<< ( std::ostream &  o,
MWAWBorder::Style const &  style 
)
friend

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

Member Data Documentation

std::vector<double> MWAWBorder::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(), MWProStructuresInternal::Block::fillFramePropertyList(), and operator<<().


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

Generated on Wed May 22 2013 18:12:45 for libmwaw by doxygen 1.8.1.2