33 sal_uInt16 nColorNameID(0);
47 rColor =
Color(nRed >> 8, nGreen >> 8, nBlue >> 8);
51 static const std::vector<Color> staticColorArray = {
85 if (nColorNameID < staticColorArray.size())
86 rColor = staticColorArray[nColorNameID];
96 sal_uInt16 nR = rColor.
GetRed();
98 sal_uInt16 nB = rColor.
GetBlue();
126 sal_Int32 nHeight(0);
135 if (rSize.
Width() < 0)
137 SAL_WARN(
"tools",
"negative width");
142 SAL_WARN(
"tools",
"negative height");
158 sal_Int32 nBottom(0);
198 sal_Int32 nNumerator(0);
199 sal_Int32 nDenominator(0);
204 rFraction =
Fraction(nNumerator, nDenominator);
211 SAL_WARN(
"tools.fraction",
"'writeFraction()' write an invalid fraction");
sal_uInt8 GetBlue() const
Gets the blue value.
sal_uInt8 GetRed() const
Gets the red value.
sal_uInt8 GetGreen() const
Gets the green value.
sal_Int32 GetNumerator() const
sal_Int32 GetDenominator() const
void setX(tools::Long nX)
void setY(tools::Long nY)
constexpr tools::Long getX() const
constexpr tools::Long getY() const
constexpr tools::Long getHeight() const
constexpr tools::Long Height() const
constexpr tools::Long getWidth() const
void setWidth(tools::Long nWidth)
void setHeight(tools::Long nHeight)
constexpr tools::Long Width() const
SvStream & WriteInt32(sal_Int32 nInt32)
SvStream & WriteUInt16(sal_uInt16 nUInt16)
SvStream & ReadInt32(sal_Int32 &rInt32)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
constexpr ::Color COL_LIGHTRED(0xFF, 0x00, 0x00)
constexpr ::Color COL_GRAY(0x80, 0x80, 0x80)
constexpr ::Color COL_GREEN(0x00, 0x80, 0x00)
constexpr ::Color COL_WHITE(0xFF, 0xFF, 0xFF)
constexpr ::Color COL_LIGHTCYAN(0x00, 0xFF, 0xFF)
constexpr ::Color COL_MAGENTA(0x80, 0x00, 0x80)
constexpr ::Color COL_LIGHTMAGENTA(0xFF, 0x00, 0xFF)
constexpr ::Color COL_BROWN(0x80, 0x80, 0x00)
constexpr ::Color COL_YELLOW(0xFF, 0xFF, 0x00)
constexpr ::Color COL_RED(0x80, 0x00, 0x00)
constexpr ::Color COL_LIGHTGRAY(0xC0, 0xC0, 0xC0)
constexpr ::Color COL_LIGHTBLUE(0x00, 0x00, 0xFF)
constexpr ::Color COL_CYAN(0x00, 0x80, 0x80)
constexpr ::Color COL_LIGHTGREEN(0x00, 0xFF, 0x00)
constexpr ::Color COL_BLUE(0x00, 0x00, 0x80)
constexpr ::Color COL_BLACK(0x00, 0x00, 0x00)
#define SAL_WARN(area, stream)