LibreOffice Module svtools (master) 1
Public Member Functions | Private Attributes | List of all members
ImpLineListData Class Reference

Utility class storing the border line width, style and colors. More...

#include <ctrlbox.hxx>

Collaboration diagram for ImpLineListData:
[legend]

Public Member Functions

 ImpLineListData (BorderWidthImpl aWidthImpl, SvxBorderLineStyle nStyle, tools::Long nMinWidth, Color(*pColor1Fn)(Color), Color(*pColor2Fn)(Color), Color(*pColorDistFn)(Color, Color))
 
tools::Long GetLine1ForWidth (tools::Long nWidth) const
 Returns the computed width of the line 1 in twips. More...
 
tools::Long GetLine2ForWidth (tools::Long nWidth) const
 Returns the computed width of the line 2 in twips. More...
 
tools::Long GetDistForWidth (tools::Long nWidth) const
 Returns the computed width of the gap in twips. More...
 
Color GetColorLine1 (const Color &rMain) const
 
Color GetColorLine2 (const Color &rMain) const
 
Color GetColorDist (const Color &rMain, const Color &rDefault) const
 
tools::Long GetMinWidth () const
 Returns the minimum width in twips. More...
 
SvxBorderLineStyle GetStyle () const
 

Private Attributes

BorderWidthImpl const m_aWidthImpl
 
Color(* m_pColor1Fn )(Color)
 
Color(* m_pColor2Fn )(Color)
 
Color(* m_pColorDistFn )(Color, Color)
 
tools::Long m_nMinWidth
 
SvxBorderLineStyle m_nStyle
 

Detailed Description

Utility class storing the border line width, style and colors.

The widths are defined in Twips.

Definition at line 42 of file ctrlbox.hxx.

Constructor & Destructor Documentation

◆ ImpLineListData()

ImpLineListData::ImpLineListData ( BorderWidthImpl  aWidthImpl,
SvxBorderLineStyle  nStyle,
tools::Long  nMinWidth,
Color(*)(Color pColor1Fn,
Color(*)(Color pColor2Fn,
Color(*)(Color, Color pColorDistFn 
)
inline

Definition at line 55 of file ctrlbox.hxx.

Member Function Documentation

◆ GetColorDist()

Color ImpLineListData::GetColorDist ( const Color rMain,
const Color rDefault 
) const
inline

Definition at line 86 of file ctrlbox.hxx.

References m_pColorDistFn.

◆ GetColorLine1()

Color ImpLineListData::GetColorLine1 ( const Color rMain) const
inline

Definition at line 76 of file ctrlbox.hxx.

References m_pColor1Fn.

◆ GetColorLine2()

Color ImpLineListData::GetColorLine2 ( const Color rMain) const
inline

Definition at line 81 of file ctrlbox.hxx.

References m_pColor2Fn.

◆ GetDistForWidth()

tools::Long ImpLineListData::GetDistForWidth ( tools::Long  nWidth) const
inline

Returns the computed width of the gap in twips.

Definition at line 74 of file ctrlbox.hxx.

References BorderWidthImpl::GetGap(), and m_aWidthImpl.

◆ GetLine1ForWidth()

tools::Long ImpLineListData::GetLine1ForWidth ( tools::Long  nWidth) const
inline

Returns the computed width of the line 1 in twips.

Definition at line 68 of file ctrlbox.hxx.

References BorderWidthImpl::GetLine1(), and m_aWidthImpl.

◆ GetLine2ForWidth()

tools::Long ImpLineListData::GetLine2ForWidth ( tools::Long  nWidth) const
inline

Returns the computed width of the line 2 in twips.

Definition at line 71 of file ctrlbox.hxx.

References BorderWidthImpl::GetLine2(), and m_aWidthImpl.

◆ GetMinWidth()

tools::Long ImpLineListData::GetMinWidth ( ) const
inline

Returns the minimum width in twips.

Definition at line 92 of file ctrlbox.hxx.

References m_nMinWidth.

◆ GetStyle()

SvxBorderLineStyle ImpLineListData::GetStyle ( ) const
inline

Definition at line 93 of file ctrlbox.hxx.

References m_nStyle.

Member Data Documentation

◆ m_aWidthImpl

BorderWidthImpl const ImpLineListData::m_aWidthImpl
private

Definition at line 45 of file ctrlbox.hxx.

Referenced by GetDistForWidth(), GetLine1ForWidth(), and GetLine2ForWidth().

◆ m_nMinWidth

tools::Long ImpLineListData::m_nMinWidth
private

Definition at line 51 of file ctrlbox.hxx.

Referenced by GetMinWidth().

◆ m_nStyle

SvxBorderLineStyle ImpLineListData::m_nStyle
private

Definition at line 52 of file ctrlbox.hxx.

Referenced by GetStyle().

◆ m_pColor1Fn

Color(* ImpLineListData::m_pColor1Fn) (Color)
private

Definition at line 47 of file ctrlbox.hxx.

Referenced by GetColorLine1().

◆ m_pColor2Fn

Color(* ImpLineListData::m_pColor2Fn) (Color)
private

Definition at line 48 of file ctrlbox.hxx.

Referenced by GetColorLine2().

◆ m_pColorDistFn

Color(* ImpLineListData::m_pColorDistFn) (Color, Color)
private

Definition at line 49 of file ctrlbox.hxx.

Referenced by GetColorDist().


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