LibreOffice Module vcl (master) 1
|
#include <TypeSerializer.hxx>
Public Member Functions | |
TypeSerializer (SvStream &rStream) | |
void | readGradient (Gradient &rGradient) |
void | writeGradient (const Gradient &rGradient) |
void | readGfxLink (GfxLink &rGfxLink) |
void | writeGfxLink (const GfxLink &rGfxLink) |
void | readGraphic (Graphic &rGraphic) |
void | writeGraphic (const Graphic &rGraphic) |
void | readMapMode (MapMode &rMapMode) |
void | writeMapMode (MapMode const &rMapMode) |
Public Member Functions inherited from tools::GenericTypeSerializer | |
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) |
Additional Inherited Members | |
Public Attributes inherited from tools::GenericTypeSerializer | |
SvStream & | mrStream |
Definition at line 40 of file TypeSerializer.hxx.
TypeSerializer::TypeSerializer | ( | SvStream & | rStream | ) |
Definition at line 30 of file TypeSerializer.cxx.
void TypeSerializer::readGfxLink | ( | GfxLink & | rGfxLink | ) |
Definition at line 94 of file TypeSerializer.cxx.
References VersionCompatRead::GetVersion(), tools::GenericTypeSerializer::mrStream, nType, readMapMode(), tools::GenericTypeSerializer::readSize(), SvStream::ReadUInt16(), SvStream::ReadUInt32(), SvStream::remainingSize(), SAL_WARN, GfxLink::SetPrefMapMode(), GfxLink::SetPrefSize(), and GfxLink::SetUserId().
Referenced by SvmReader::EPSHandler(), and readGraphic().
void TypeSerializer::readGradient | ( | Gradient & | rGradient | ) |
Definition at line 35 of file TypeSerializer.cxx.
References tools::GenericTypeSerializer::mrStream, nBorder, tools::GenericTypeSerializer::readColor(), SvStream::ReadUInt16(), SAL_WARN, Gradient::SetAngle(), Gradient::SetBorder(), Gradient::SetEndColor(), Gradient::SetEndIntensity(), Gradient::SetOfsX(), Gradient::SetOfsY(), Gradient::SetStartColor(), Gradient::SetStartIntensity(), Gradient::SetSteps(), and Gradient::SetStyle().
Referenced by SvmReader::FloatTransparentHandler(), SvmReader::GradientExHandler(), SvmReader::GradientHandler(), and SVMConverter::ImplConvertFromSVM1().
void TypeSerializer::readGraphic | ( | Graphic & | rGraphic | ) |
Definition at line 165 of file TypeSerializer.cxx.
References constEmfMagic, constPdfMagic, constSvgMagic, constWmfMagic, Emf, ERRCODE_IO_WRONGFORMAT, SvStream::GetEndian(), SvStream::GetError(), SvStream::GetErrorCode(), GfxLink::GetPrefMapMode(), GfxLink::GetPrefSize(), GfxLink::IsPrefMapModeValid(), GfxLink::IsPrefSizeValid(), GfxLink::LoadNative(), tools::GenericTypeSerializer::mrStream, NATIVE_FORMAT_50, nLength, nMagic, nType, Pdf, SvmReader::Read(), ReadAnimation(), ReadDIBBitmapEx(), readGfxLink(), SvStream::ReadUInt32(), SvStream::remainingSize(), SvStream::ResetError(), SvStream::Seek(), SvStream::SeekRel(), Animation::SetBitmapEx(), SvStream::SetEndian(), SvStream::SetError(), Graphic::SetPrefMapMode(), Graphic::SetPrefSize(), Svg, SvStream::Tell(), and Wmf.
Referenced by BmpReader(), TransferableDataHelper::GetGraphic(), and GraphicFilter::readWithTypeSerializer().
void TypeSerializer::readMapMode | ( | MapMode & | rMapMode | ) |
Definition at line 443 of file TypeSerializer.cxx.
References tools::GenericTypeSerializer::mrStream, SvStream::ReadCharAsBool(), tools::GenericTypeSerializer::readFraction(), tools::GenericTypeSerializer::readPoint(), SvStream::ReadUInt16(), SAL_WARN_IF, and UselessScaleForMapMode().
Referenced by vcl::GraphicFormatDetector::checkSVM(), SvmReader::MapModeHandler(), SvmReader::Read(), and readGfxLink().
void TypeSerializer::writeGfxLink | ( | const GfxLink & | rGfxLink | ) |
Definition at line 137 of file TypeSerializer.cxx.
References GfxLink::GetData(), GfxLink::GetDataSize(), GfxLink::GetPrefMapMode(), GfxLink::GetPrefSize(), GfxLink::GetType(), GfxLink::GetUserId(), tools::GenericTypeSerializer::mrStream, SvStream::WriteBytes(), writeMapMode(), tools::GenericTypeSerializer::writeSize(), SvStream::WriteUInt16(), and SvStream::WriteUInt32().
Referenced by SvmWriter::EPSHandler(), and writeGraphic().
void TypeSerializer::writeGradient | ( | const Gradient & | rGradient | ) |
Definition at line 78 of file TypeSerializer.cxx.
References o3tl::strong_int< typename UNDERLYING_TYPE, typename PHANTOM_TYPE >::get(), Gradient::GetAngle(), Gradient::GetBorder(), Gradient::GetEndColor(), Gradient::GetEndIntensity(), Gradient::GetOfsX(), Gradient::GetOfsY(), Gradient::GetStartColor(), Gradient::GetStartIntensity(), Gradient::GetSteps(), Gradient::GetStyle(), tools::GenericTypeSerializer::mrStream, tools::GenericTypeSerializer::writeColor(), and SvStream::WriteUInt16().
Referenced by SvmWriter::FloatTransparentHandler(), SvmWriter::GradientExHandler(), and SvmWriter::GradientHandler().
void TypeSerializer::writeGraphic | ( | const Graphic & | rGraphic | ) |
Definition at line 319 of file TypeSerializer.cxx.
References Bitmap, constEmfMagic, constPdfMagic, constSvgMagic, constWmfMagic, Default, Emf, Graphic::GetAnimation(), Graphic::GetBitmapEx(), SvStream::GetCompressMode(), SvStream::GetEndian(), SvStream::GetError(), Graphic::GetGDIMetaFile(), Graphic::GetPrefMapMode(), Graphic::GetPrefSize(), Graphic::GetSharedGfxLink(), SvStream::GetStreamCharSet(), Graphic::GetType(), Graphic::getVectorGraphicData(), SvStream::GetVersion(), Graphic::IsAnimated(), Graphic::IsSupportedGraphic(), Graphic::makeAvailable(), tools::GenericTypeSerializer::mrStream, NATIVE_FORMAT_50, NONE, Pdf, SvStream::SetEndian(), SOFFICE_FILEFORMAT_50, Svg, u, Wmf, SvmWriter::Write(), WriteAnimation(), WriteDIBBitmapEx(), writeGfxLink(), SvStream::WriteUInt32(), and SvStream::WriteUniOrByteString().
Referenced by TransferableHelper::SetGraphic().
void TypeSerializer::writeMapMode | ( | MapMode const & | rMapMode | ) |
Definition at line 468 of file TypeSerializer.cxx.
References MapMode::GetMapUnit(), MapMode::GetOrigin(), MapMode::GetScaleX(), MapMode::GetScaleY(), MapMode::IsSimple(), tools::GenericTypeSerializer::mrStream, SvStream::WriteBool(), tools::GenericTypeSerializer::writeFraction(), tools::GenericTypeSerializer::writePoint(), and SvStream::WriteUInt16().
Referenced by SvmWriter::MapModeHandler(), SvmWriter::Write(), and writeGfxLink().