LibreOffice Module lotuswordpro (master) 1
Public Member Functions | Private Member Functions | Private Attributes | Friends | List of all members
XFBorder Class Reference

Single border object for all objects with borders. More...

#include <xfborders.hxx>

Collaboration diagram for XFBorder:
[legend]

Public Member Functions

 XFBorder ()
 
void SetColor (XFColor const &color)
 @descr Set border color. More...
 
void SetWidth (double width)
 @descr Set border width in cm. More...
 
void SetDoubleLine (bool dual, bool bSameWidth)
 @descr Set whether the border has double line. More...
 
void SetWidthInner (double inner)
 @descr Set inner line width for border with double line. More...
 
void SetWidthSpace (double space)
 @descr Set space between double lines of border. More...
 
void SetWidthOuter (double outer)
 @descr Set outer line width for border with double line. More...
 

Private Member Functions

OUString GetLineWidth ()
 @descr First line width to OOo border width format. More...
 
OUString ToString ()
 

Private Attributes

XFColor m_aColor
 
bool m_bDouble
 
bool m_bSameWidth
 
double m_fWidthInner
 
double m_fWidthSpace
 
double m_fWidthOuter
 

Friends

class XFBorders
 
bool operator== (XFBorder const &b1, XFBorder const &b2)
 
bool operator!= (XFBorder const &b1, XFBorder const &b2)
 

Detailed Description

Single border object for all objects with borders.

Definition at line 71 of file xfborders.hxx.

Constructor & Destructor Documentation

◆ XFBorder()

XFBorder::XFBorder ( )

Definition at line 64 of file xfborders.cxx.

References m_bDouble, m_bSameWidth, m_fWidthInner, m_fWidthOuter, and m_fWidthSpace.

Member Function Documentation

◆ GetLineWidth()

OUString XFBorder::GetLineWidth ( )
private

@descr First line width to OOo border width format.

Definition at line 117 of file xfborders.cxx.

References m_bDouble, m_fWidthInner, m_fWidthOuter, and m_fWidthSpace.

Referenced by XFBorders::ToXml().

◆ SetColor()

void XFBorder::SetColor ( XFColor const &  color)

@descr Set border color.

Definition at line 73 of file xfborders.cxx.

References m_aColor.

Referenced by XFBorders::SetColor().

◆ SetDoubleLine()

void XFBorder::SetDoubleLine ( bool  dual,
bool  bSameWidth 
)

@descr Set whether the border has double line.

Definition at line 93 of file xfborders.cxx.

References m_bDouble, and m_bSameWidth.

Referenced by XFBorders::SetDoubleLine().

◆ SetWidth()

void XFBorder::SetWidth ( double  width)

@descr Set border width in cm.

Definition at line 78 of file xfborders.cxx.

References m_bDouble, m_bSameWidth, m_fWidthInner, m_fWidthOuter, and m_fWidthSpace.

Referenced by XFBorders::SetWidth().

◆ SetWidthInner()

void XFBorder::SetWidthInner ( double  inner)

@descr Set inner line width for border with double line.

Definition at line 99 of file xfborders.cxx.

References m_bDouble, and m_fWidthInner.

Referenced by XFBorders::SetWidthInner().

◆ SetWidthOuter()

void XFBorder::SetWidthOuter ( double  outer)

@descr Set outer line width for border with double line.

Definition at line 111 of file xfborders.cxx.

References m_bDouble, and m_fWidthOuter.

Referenced by XFBorders::SetWidthOuter().

◆ SetWidthSpace()

void XFBorder::SetWidthSpace ( double  space)

@descr Set space between double lines of border.

Definition at line 105 of file xfborders.cxx.

References m_bDouble, and m_fWidthSpace.

Referenced by XFBorders::SetWidthSpace().

◆ ToString()

OUString XFBorder::ToString ( )
private

Friends And Related Function Documentation

◆ operator!=

bool operator!= ( XFBorder const &  b1,
XFBorder const &  b2 
)
friend

Definition at line 180 of file xfborders.cxx.

◆ operator==

bool operator== ( XFBorder const &  b1,
XFBorder const &  b2 
)
friend

Definition at line 156 of file xfborders.cxx.

◆ XFBorders

friend class XFBorders
friend

Definition at line 117 of file xfborders.hxx.

Member Data Documentation

◆ m_aColor

XFColor XFBorder::m_aColor
private

Definition at line 120 of file xfborders.hxx.

Referenced by SetColor(), and ToString().

◆ m_bDouble

bool XFBorder::m_bDouble
private

◆ m_bSameWidth

bool XFBorder::m_bSameWidth
private

Definition at line 122 of file xfborders.hxx.

Referenced by SetDoubleLine(), SetWidth(), and XFBorder().

◆ m_fWidthInner

double XFBorder::m_fWidthInner
private

Definition at line 123 of file xfborders.hxx.

Referenced by GetLineWidth(), SetWidth(), SetWidthInner(), ToString(), and XFBorder().

◆ m_fWidthOuter

double XFBorder::m_fWidthOuter
private

Definition at line 125 of file xfborders.hxx.

Referenced by GetLineWidth(), SetWidth(), SetWidthOuter(), ToString(), and XFBorder().

◆ m_fWidthSpace

double XFBorder::m_fWidthSpace
private

Definition at line 124 of file xfborders.hxx.

Referenced by GetLineWidth(), SetWidth(), SetWidthSpace(), ToString(), and XFBorder().


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