20#ifndef INCLUDED_EDITENG_BORDERLINE_HXX
21#define INCLUDED_EDITENG_BORDERLINE_HXX
23#include <com/sun/star/table/BorderLineStyle.hpp>
42 static const sal_Int16
Thin = 15;
44 static const sal_Int16
Thick = 45;
53 NONE = css::table::BorderLineStyle::NONE,
57 SOLID = css::table::BorderLineStyle::SOLID,
61 DOTTED = css::table::BorderLineStyle::DOTTED,
65 DASHED = css::table::BorderLineStyle::DASHED,
70 DOUBLE = css::table::BorderLineStyle::DOUBLE,
104 EMBOSSED = css::table::BorderLineStyle::EMBOSSED,
108 ENGRAVED = css::table::BorderLineStyle::ENGRAVED,
112 OUTSET = css::table::BorderLineStyle::OUTSET,
116 INSET = css::table::BorderLineStyle::INSET,
120 FINE_DASHED = css::table::BorderLineStyle::FINE_DASHED,
125 DOUBLE_THIN = css::table::BorderLineStyle::DOUBLE_THIN,
128 DASH_DOT = css::table::BorderLineStyle::DASH_DOT,
131 DASH_DOT_DOT = css::table::BorderLineStyle::DASH_DOT_DOT,
175 return m_aComplexColor;
179 m_aComplexColor = rComplexColor;
182 bool setComplexColorFromAny(css::uno::Any
const& rValue);
185 Color GetColorOut(
bool bLeftOrTop =
true )
const;
186 Color GetColorIn(
bool bLeftOrTop =
true )
const;
188 Color GetColorGap()
const;
216 void GuessLinesWidths(
SvxBorderLineStyle nStyle, sal_uInt16 nOut, sal_uInt16 nIn = 0, sal_uInt16 nDist = 0 );
221 sal_uInt16 GetOutWidth()
const;
222 sal_uInt16 GetInWidth()
const;
223 sal_uInt16 GetDistance()
const;
234 bool bMetricStr =
false )
const;
244 sal_uInt16
GetScaledWidth()
const {
return GetOutWidth() + GetInWidth() + GetDistance(); }
250 static Color threeDMediumColor(
Color aMain );
@ FINE_DASHED
Finely dashed border line.
@ THICKTHIN_MEDIUMGAP
Double border line with a thick line outside and a thin line inside separated by a medium gap.
@ INSET
Inset border line.
@ EMBOSSED
3D embossed border line.
@ ENGRAVED
3D engraved border line.
@ THINTHICK_SMALLGAP
Double border line with a thin line outside and a thick line inside separated by a small gap.
@ DASHED
Dashed border line.
@ THICKTHIN_LARGEGAP
Double border line with a thick line outside and a thin line inside separated by a large gap.
@ DASH_DOT
Line consisting of a repetition of one dash and one dot.
@ OUTSET
Outset border line.
@ DOUBLE_THIN
Double border line consisting of two fixed thin lines separated by a variable gap.
@ BORDER_LINE_STYLE_MAX
Maximum valid border line style value.
@ THINTHICK_MEDIUMGAP
Double border line with a thin line outside and a thick line inside separated by a medium gap.
@ SOLID
Solid border line.
@ DASH_DOT_DOT
Line consisting of a repetition of one dash and 2 dots.
@ THICKTHIN_SMALLGAP
Double border line with a thick line outside and a thin line inside separated by a small gap.
@ THINTHICK_LARGEGAP
Double border line with a thin line outside and a thick line inside separated by a large gap.
@ DOTTED
Dotted border line.
static const sal_Int16 VeryThin
static const sal_Int16 ExtraThick
static const sal_Int16 Thin
static const sal_Int16 Medium
static const sal_Int16 Hairline
static const sal_Int16 Thick
void SetColor(const Color &rColor)
const Color & GetColor() const
SvxBorderLineStyle m_nStyle
BorderWidthImpl m_aWidthImpl
model::ComplexColor const & getComplexColor() const
sal_uInt16 GetScaledWidth() const
model::ComplexColor m_aComplexColor
void setComplexColor(model::ComplexColor const &rComplexColor)
tools::Long GetWidth() const
SvxBorderLineStyle GetBorderLineStyle() const
bool operator==(const EditLine &r1, const EditLine &r2)
#define EDITENG_DLLPUBLIC
bool operator!=(const SvxBorderLine &rLeft, const SvxBorderLine &rRight)
double ConvertBorderWidthFromWord(SvxBorderLineStyle const eStyle, double const i_fWidth, int const nWordLineStyle)
SvxBorderLineStyle ConvertBorderStyleFromWord(int const nWordLineStyle)
double ConvertBorderWidthToWord(SvxBorderLineStyle const eStyle, double const fWidth)
convert border width in twips between Word formats and LO