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>
42 const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > >& rSequence,
44 const sal_uInt32 nMaximumQuadraticPixels = 500000);
64 std::deque< css::uno::Reference< css::graphic::XPrimitive2D > >
maSequence;
78 bool mbEnableEMFPlus =
true;
81 void ensurePdfReplacement();
82 void ensureReplacement();
83 void ensureSequenceAndRange();
93 sal_Int32 nPageIndex = -1);
100 void setWmfExternalHeader(
const WmfExternal& aExtHeader);
105 return maDataContainer;
108 enum class State { UNPARSED, PARSED };
109 std::pair<State, size_t> getSizeBytes()
const;
115 const std::deque<css::uno::Reference<css::graphic::XPrimitive2D>>& getPrimitive2DSequence()
const;
116 const BitmapEx& getReplacement()
const;
121 return std::max(sal_Int32(0), mnPageIndex);
126 mnPageIndex = nPageIndex;
131 maSizeHint = rSizeHint;
141 #endif // INCLUDED_VCL_VECTORGRAPHICDATA_HXX
sal_uInt64 BitmapChecksum
sal_Int32 mnPageIndex
If the vector format has more pages this denotes which page to render.
basegfx::B2DTuple maSizeHint
Useful for PDF, which is vector-based, but still rendered to a bitmap.
const BinaryDataContainer & getBinaryDataContainer() const
data read
Container for the binary data, whose responsibility is to manage the make it as simple as possible to...
void setSizeHint(const basegfx::B2DTuple &rSizeHint)
BitmapEx VCL_DLLPUBLIC convertPrimitive2DSequenceToBitmapEx(const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > &rSequence, const basegfx::B2DRange &rTargetRange, const sal_uInt32 nMaximumQuadraticPixels=500000)
bool operator==(const ItalicMatrix &a, const ItalicMatrix &b)
basegfx::B2DRange maRange
bool isPrimitiveSequenceCreated() const
sal_Int32 getPageIndex() const
B2DRange getRange(const B2DPolygon &rCandidate)
void setPageIndex(sal_Int32 nPageIndex)
css::uno::Sequence< sal_Int8 > VectorGraphicDataArray
std::unique_ptr< WmfExternal > mpExternalHeader
VectorGraphicDataType meType
void setEnableEMFPlus(bool bEnableEMFPlus)
const basegfx::B2DTuple & getSizeHint() const
const VectorGraphicDataType & getType() const
std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > maSequence
BinaryDataContainer maDataContainer