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 More...
 
 MWAWBorder (MWAWBorder const &)=default
 
 MWAWBorder (MWAWBorder &&)=default
 
MWAWBorderoperator= (MWAWBorder const &)=default
 
MWAWBorderoperator= (MWAWBorder &&)=default
 
bool addTo (librevenge::RVNGPropertyList &propList, std::string which="") const
 add the border property to proplist (if needed ) More...
 
bool isEmpty () const
 returns true if the border is empty More...
 
bool operator== (MWAWBorder const &orig) const
 operator== More...
 
bool operator!= (MWAWBorder const &orig) const
 operator!= More...
 
int compare (MWAWBorder const &orig) const
 compare two borders More...
 

Public Attributes

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

Friends

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

Detailed Description

a border

Member Enumeration Documentation

◆ Style

the line style

Enumerator
None 
Simple 
Dot 
LargeDot 
Dash 

◆ Type

the line repetition

Enumerator
Single 
Double 
Triple 

Constructor & Destructor Documentation

◆ MWAWBorder() [1/3]

MWAWBorder::MWAWBorder ( )
inline

constructor

◆ MWAWBorder() [2/3]

MWAWBorder::MWAWBorder ( MWAWBorder const &  )
default

◆ MWAWBorder() [3/3]

MWAWBorder::MWAWBorder ( MWAWBorder &&  )
default

Member Function Documentation

◆ addTo()

bool MWAWBorder::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 MWAWParagraph::addTo().

◆ compare()

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

compare two borders

◆ isEmpty()

◆ operator!=()

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

operator!=

Referenced by operator==().

◆ operator=() [1/2]

MWAWBorder& MWAWBorder::operator= ( MWAWBorder &&  )
default

◆ operator=() [2/2]

MWAWBorder& MWAWBorder::operator= ( MWAWBorder const &  )
default

◆ operator==()

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

operator==

Friends And Related Function Documentation

◆ operator<< [1/2]

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

operator<<

◆ operator<< [2/2]

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

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

Member Data Documentation

◆ m_color

◆ m_extra

std::string MWAWBorder::m_extra

◆ m_style

◆ m_type

◆ m_width

◆ m_widthsList


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

Generated on Fri Sep 18 2020 18:14:52 for libmwaw by doxygen 1.8.20