20#ifndef INCLUDED_VCL_VECTORGRAPHICDATA_HXX
21#define INCLUDED_VCL_VECTORGRAPHICDATA_HXX
24#include <com/sun/star/uno/Sequence.hxx>
27#include <rtl/ustring.hxx>
40 const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > >& rSequence,
42 const sal_uInt32 nMaximumQuadraticPixels = 500000,
44 const std::optional<Size>& rTargetDPI = std::nullopt);
64 std::deque< css::uno::Reference< css::graphic::XPrimitive2D > >
maSequence;
75 bool mbEnableEMFPlus =
true;
78 void ensurePdfReplacement();
79 void ensureReplacement();
80 void ensureSequenceAndRange();
90 sal_Int32 nPageIndex = -1);
99 return maDataContainer;
102 enum class State { UNPARSED, PARSED };
103 std::pair<State, size_t> getSizeBytes()
const;
109 const std::deque<css::uno::Reference<css::graphic::XPrimitive2D>>& getPrimitive2DSequence()
const;
110 const BitmapEx& getReplacement()
const;
115 return std::max(sal_Int32(0), mnPageIndex);
120 mnPageIndex = nPageIndex;
sal_uInt64 BitmapChecksum
Container for the binary data, whose responsibility is to manage the make it as simple as possible to...
bool isPrimitiveSequenceCreated() const
void setSizeHint(const basegfx::B2DTuple &rSizeHint)
sal_Int32 getPageIndex() const
VectorGraphicDataType meType
void setPageIndex(sal_Int32 nPageIndex)
std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > maSequence
void setEnableEMFPlus(bool bEnableEMFPlus)
VectorGraphicData(const VectorGraphicData &)=delete
const basegfx::B2DTuple & getSizeHint() const
BinaryDataContainer maDataContainer
basegfx::B2DRange maRange
VectorGraphicData & operator=(const VectorGraphicData &)=delete
basegfx::B2DTuple maSizeHint
Useful for PDF, which is vector-based, but still rendered to a bitmap.
sal_Int32 mnPageIndex
If the vector format has more pages this denotes which page to render.
const VectorGraphicDataType & getType() const
const BinaryDataContainer & getBinaryDataContainer() const
data read
B2DRange getRange(const B2DPolygon &rCandidate)
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)
BitmapEx VCL_DLLPUBLIC convertPrimitive2DSequenceToBitmapEx(const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > &rSequence, const basegfx::B2DRange &rTargetRange, const sal_uInt32 nMaximumQuadraticPixels=500000, const o3tl::Length eTargetUnit=o3tl::Length::mm100, const std::optional< Size > &rTargetDPI=std::nullopt)
basegfx::B2DTuple maSizeHint