31 : GenericTypeSerializer(rStream)
39 sal_uInt16 nStyle = 0;
42 sal_uInt16 nAngle = 0;
44 sal_uInt16 nOffsetX = 0;
45 sal_uInt16 nOffsetY = 0;
46 sal_uInt16 nIntensityStart = 0;
47 sal_uInt16 nIntensityEnd = 0;
48 sal_uInt16 nStepCount = 0;
61 rGradient.
SetStyle(
static_cast<css::awt::GradientStyle
>(nStyle));
66 SAL_WARN(
"vcl",
"angle out of range " << nAngle);
97 sal_uInt32 nDataSize = 0;
98 sal_uInt32 nUserId = 0;
102 bool bMapAndSizeValid =
false;
116 bMapAndSizeValid =
true;
121 if (nDataSize > nRemainingData)
123 SAL_WARN(
"vcl",
"graphic link stream is smaller than requested size");
124 nDataSize = nRemainingData;
130 if (bMapAndSizeValid)
161#define NATIVE_FORMAT_50 COMPAT_FORMAT('N', 'A', 'T', '5')
170 const sal_uInt64 nInitialStreamPosition =
mrStream.
Tell();
220 sal_uInt32 nMagic1 = 0;
221 sal_uInt32 nMagic2 = 0;
231 if (nMagic1 == 0x5344414e && nMagic2 == 0x494d4931)
239 rGraphic =
Graphic(aAnimation);
258 aReader.
Read(aMetaFile);
301 auto aVectorGraphicDataPtr
302 = std::make_shared<VectorGraphicData>(aDataContainer, aDataType);
303 rGraphic =
Graphic(aVectorGraphicDataPtr);
330 && pGfxLink->IsNative())
358 if (pVectorGraphicData)
364 switch (pVectorGraphicData->getType())
388 sal_uInt32 nSize = pVectorGraphicData->getBinaryDataContainer().getSize();
390 pVectorGraphicData->getBinaryDataContainer().writeToStream(
mrStream);
427 if (rScale.
GetNumerator() > std::numeric_limits<sal_Int32>::max() / nDPI / 2)
429 if (rScale.
GetNumerator() < std::numeric_limits<sal_Int32>::min() / nDPI / 2)
438 if (
static_cast<double>(rScale) < 0.0)
446 sal_uInt16 nTmp16(0);
462 if (bSimple || bBogus)
465 rMapMode =
MapMode(eUnit, aOrigin, aScaleX, aScaleY);
SvStream & ReadAnimation(SvStream &rIStm, Animation &rAnimation)
SvStream & WriteAnimation(SvStream &rOStm, const Animation &rAnimation)
static bool UselessScaleForMapMode(const Fraction &rScale)
bool TooLargeScaleForMapMode(const Fraction &rScale, int nDPI)
constexpr sal_uInt32 constPdfMagic
constexpr sal_uInt32 constSvgMagic
constexpr sal_uInt32 constEmfMagic
constexpr sal_uInt32 constWmfMagic
void SetBitmapEx(const BitmapEx &rBmpEx)
Container for the binary data, whose responsibility is to manage the make it as simple as possible to...
sal_Int32 GetNumerator() const
bool IsPrefMapModeValid() const
const sal_uInt8 * GetData() const
const Size & GetPrefSize() const
void SetPrefMapMode(const MapMode &rPrefMapMode)
sal_uInt32 GetDataSize() const
void SetPrefSize(const Size &rPrefSize)
bool IsPrefSizeValid() const
GfxLinkType GetType() const
const MapMode & GetPrefMapMode() const
bool LoadNative(Graphic &rGraphic) const
void SetUserId(sal_uInt32 nUserId)
sal_uInt32 GetUserId() const
sal_uInt16 GetStartIntensity() const
void SetStyle(css::awt::GradientStyle eStyle)
void SetOfsX(sal_uInt16 nOfsX)
Degree10 GetAngle() const
sal_uInt16 GetEndIntensity() const
void SetStartIntensity(sal_uInt16 nIntens)
sal_uInt16 GetOfsX() const
sal_uInt16 GetBorder() const
const Color & GetEndColor() const
sal_uInt16 GetOfsY() const
void SetBorder(sal_uInt16 nBorder)
const Color & GetStartColor() const
void SetStartColor(const Color &rColor)
void SetSteps(sal_uInt16 nSteps)
css::awt::GradientStyle GetStyle() const
sal_uInt16 GetSteps() const
void SetOfsY(sal_uInt16 nOfsY)
void SetAngle(Degree10 nAngle)
void SetEndColor(const Color &rColor)
void SetEndIntensity(sal_uInt16 nIntens)
Animation GetAnimation() const
void SetPrefMapMode(const MapMode &rPrefMapMode)
bool IsSupportedGraphic() const
const std::shared_ptr< GfxLink > & GetSharedGfxLink() const
const GDIMetaFile & GetGDIMetaFile() const
GraphicType GetType() const
BitmapEx GetBitmapEx(const GraphicConversionParameters &rParameters=GraphicConversionParameters()) const
MapMode GetPrefMapMode() const
void SetPrefSize(const Size &rPrefSize)
const std::shared_ptr< VectorGraphicData > & getVectorGraphicData() const
const Fraction & GetScaleX() const
MapUnit GetMapUnit() const
const Point & GetOrigin() const
const Fraction & GetScaleY() const
virtual void ResetError()
SvStream & ReadCharAsBool(bool &rBool)
void SetEndian(SvStreamEndian SvStreamEndian)
SvStream & WriteUniOrByteString(std::u16string_view rStr, rtl_TextEncoding eDestCharSet)
SvStreamCompressFlags GetCompressMode() const
std::size_t WriteBytes(const void *pData, std::size_t nSize)
SvStream & WriteBool(bool b)
SvStream & WriteUInt16(sal_uInt16 nUInt16)
sal_Int32 GetVersion() const
SvStream & WriteUInt32(sal_uInt32 nUInt32)
SvStream & ReadUInt32(sal_uInt32 &rUInt32)
SvStreamEndian GetEndian() const
void SetError(ErrCode nErrorCode)
sal_uInt64 Seek(sal_uInt64 nPos)
rtl_TextEncoding GetStreamCharSet() const
sal_uInt64 SeekRel(sal_Int64 nPos)
SvStream & ReadUInt16(sal_uInt16 &rUInt16)
ErrCode const & GetErrorCode() const
sal_uInt64 remainingSize()
SvStream & Read(GDIMetaFile &rMetaFile, ImplMetaReadData *pData=nullptr)
SvStream & Write(const GDIMetaFile &rMetaFile)
void writeGradient(const Gradient &rGradient)
TypeSerializer(SvStream &rStream)
void readGraphic(Graphic &rGraphic)
void writeMapMode(MapMode const &rMapMode)
void writeGfxLink(const GfxLink &rGfxLink)
void readMapMode(MapMode &rMapMode)
void writeGraphic(const Graphic &rGraphic)
void readGradient(Gradient &rGradient)
void readGfxLink(GfxLink &rGfxLink)
sal_uInt16 GetVersion() const
#define ERRCODE_IO_WRONGFORMAT
GfxLinkType
GfxLink graphic types that are supported by GfxLink.
#define SAL_WARN_IF(condition, area, stream)
#define SAL_WARN(area, stream)
tools::Long const nBorder
UNDERLYING_TYPE get() const