LibreOffice Module tools (master) 1
|
#include <GenericTypeSerializer.hxx>
Public Member Functions | |
GenericTypeSerializer (SvStream &rStream) | |
void | readColor (Color &rColor) |
void | writeColor (const Color &rColor) |
void | readPoint (Point &rPoint) |
void | writePoint (const Point &rPoint) |
void | readSize (Size &rSize) |
void | writeSize (const Size &rSize) |
void | readRectangle (Rectangle &rRectangle) |
void | writeRectangle (const Rectangle &rRectangle) |
void | readFraction (Fraction &rFraction) |
void | writeFraction (Fraction const &rFraction) |
Public Attributes | |
SvStream & | mrStream |
Definition at line 30 of file GenericTypeSerializer.hxx.
|
inline |
Definition at line 35 of file GenericTypeSerializer.hxx.
void tools::GenericTypeSerializer::readColor | ( | Color & | rColor | ) |
Definition at line 31 of file GenericTypeSerializer.cxx.
References COL_BLACK(), COL_BLUE(), COL_BROWN(), COL_CYAN(), COL_GRAY(), COL_GREEN(), COL_LIGHTBLUE(), COL_LIGHTCYAN(), COL_LIGHTGRAY(), COL_LIGHTGREEN(), COL_LIGHTMAGENTA(), COL_LIGHTRED(), COL_MAGENTA(), tools::COL_NAME_USER, COL_RED(), COL_WHITE(), COL_YELLOW(), mrStream, and SvStream::ReadUInt16().
void tools::GenericTypeSerializer::readFraction | ( | Fraction & | rFraction | ) |
Definition at line 196 of file GenericTypeSerializer.cxx.
References mrStream, and SvStream::ReadInt32().
void tools::GenericTypeSerializer::readPoint | ( | Point & | rPoint | ) |
Definition at line 105 of file GenericTypeSerializer.cxx.
References mrStream, SvStream::ReadInt32(), Point::setX(), and Point::setY().
void tools::GenericTypeSerializer::readRectangle | ( | Rectangle & | rRectangle | ) |
Definition at line 153 of file GenericTypeSerializer.cxx.
References mrStream, SvStream::ReadInt32(), tools::RECT_EMPTY_VALUE_RIGHT_BOTTOM, tools::Rectangle::SetBottom(), tools::Rectangle::SetEmpty(), tools::Rectangle::SetLeft(), tools::Rectangle::SetRight(), and tools::Rectangle::SetTop().
void tools::GenericTypeSerializer::readSize | ( | Size & | rSize | ) |
Definition at line 123 of file GenericTypeSerializer.cxx.
References Size::Height(), mrStream, SvStream::ReadInt32(), SAL_WARN, Size::setHeight(), Size::setWidth(), and Size::Width().
void tools::GenericTypeSerializer::writeColor | ( | const Color & | rColor | ) |
Definition at line 92 of file GenericTypeSerializer.cxx.
References tools::COL_NAME_USER, Color::GetBlue(), Color::GetGreen(), Color::GetRed(), mrStream, and SvStream::WriteUInt16().
void tools::GenericTypeSerializer::writeFraction | ( | Fraction const & | rFraction | ) |
Definition at line 207 of file GenericTypeSerializer.cxx.
References Fraction::GetDenominator(), Fraction::GetNumerator(), Fraction::IsValid(), mrStream, SAL_WARN, and SvStream::WriteInt32().
void tools::GenericTypeSerializer::writePoint | ( | const Point & | rPoint | ) |
Definition at line 117 of file GenericTypeSerializer.cxx.
References Point::getX(), Point::getY(), mrStream, and SvStream::WriteInt32().
void tools::GenericTypeSerializer::writeRectangle | ( | const Rectangle & | rRectangle | ) |
Definition at line 178 of file GenericTypeSerializer.cxx.
References tools::Rectangle::Bottom(), tools::Rectangle::IsEmpty(), tools::Rectangle::Left(), mrStream, tools::RECT_EMPTY_VALUE_RIGHT_BOTTOM, tools::Rectangle::Right(), tools::Rectangle::Top(), and SvStream::WriteInt32().
void tools::GenericTypeSerializer::writeSize | ( | const Size & | rSize | ) |
Definition at line 147 of file GenericTypeSerializer.cxx.
References Size::getHeight(), Size::getWidth(), mrStream, and SvStream::WriteInt32().
SvStream& tools::GenericTypeSerializer::mrStream |
Definition at line 33 of file GenericTypeSerializer.hxx.
Referenced by readColor(), readFraction(), readPoint(), readRectangle(), readSize(), writeColor(), writeFraction(), writePoint(), writeRectangle(), and writeSize().