LibreOffice Module vcl (master) 1
|
#include <vectorgraphicdata.hxx>
Public Types | |
enum class | State { UNPARSED , PARSED } |
Public Member Functions | |
VectorGraphicData (const OUString &rPath, VectorGraphicDataType eVectorDataType) | |
VectorGraphicData (BinaryDataContainer aDataContainer, VectorGraphicDataType eVectorDataType, sal_Int32 nPageIndex=-1) | |
~VectorGraphicData () | |
bool | operator== (const VectorGraphicData &rCandidate) const |
compare op More... | |
const BinaryDataContainer & | getBinaryDataContainer () const |
data read More... | |
std::pair< State, size_t > | getSizeBytes () const |
const VectorGraphicDataType & | getType () const |
const basegfx::B2DRange & | getRange () const |
data read and evtl. on demand creation More... | |
const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > & | getPrimitive2DSequence () const |
const BitmapEx & | getReplacement () const |
BitmapChecksum | GetChecksum () const |
sal_Int32 | getPageIndex () const |
void | setPageIndex (sal_Int32 nPageIndex) |
void | setSizeHint (const basegfx::B2DTuple &rSizeHint) |
const basegfx::B2DTuple & | getSizeHint () const |
void | setEnableEMFPlus (bool bEnableEMFPlus) |
bool | isPrimitiveSequenceCreated () const |
Private Member Functions | |
void | ensurePdfReplacement () |
void | ensureReplacement () |
void | ensureSequenceAndRange () |
VectorGraphicData (const VectorGraphicData &)=delete | |
VectorGraphicData & | operator= (const VectorGraphicData &)=delete |
Private Attributes | |
BinaryDataContainer | maDataContainer |
bool | mbSequenceCreated |
basegfx::B2DRange | maRange |
std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > | maSequence |
BitmapEx | maReplacement |
size_t | mNestedBitmapSize |
VectorGraphicDataType | meType |
sal_Int32 | mnPageIndex |
If the vector format has more pages this denotes which page to render. More... | |
basegfx::B2DTuple | maSizeHint |
Useful for PDF, which is vector-based, but still rendered to a bitmap. More... | |
bool | mbEnableEMFPlus = true |
Definition at line 57 of file vectorgraphicdata.hxx.
|
strong |
Enumerator | |
---|---|
UNPARSED | |
PARSED |
Definition at line 104 of file vectorgraphicdata.hxx.
|
privatedelete |
VectorGraphicData::VectorGraphicData | ( | const OUString & | rPath, |
VectorGraphicDataType | eVectorDataType | ||
) |
Definition at line 308 of file vectorgraphicdata.cxx.
References SvStream::GetError(), maDataContainer, meType, pData, SvStream::ReadBytes(), and SvStream::remainingSize().
VectorGraphicData::VectorGraphicData | ( | BinaryDataContainer | aDataContainer, |
VectorGraphicDataType | eVectorDataType, | ||
sal_Int32 | nPageIndex = -1 |
||
) |
Definition at line 296 of file vectorgraphicdata.cxx.
References meType.
VectorGraphicData::~VectorGraphicData | ( | ) |
Definition at line 333 of file vectorgraphicdata.cxx.
|
private |
Definition at line 144 of file vectorgraphicdata.cxx.
References BinaryDataContainer::getData(), BinaryDataContainer::getSize(), getType(), BitmapEx::IsEmpty(), maDataContainer, maReplacement, maSizeHint, mnPageIndex, Pdf, and vcl::RenderPDFBitmaps().
Referenced by ensureReplacement().
|
private |
Definition at line 163 of file vectorgraphicdata.cxx.
References convertPrimitive2DSequenceToBitmapEx(), ensurePdfReplacement(), ensureSequenceAndRange(), getRange(), getType(), BitmapEx::IsEmpty(), maReplacement, maSequence, and Pdf.
Referenced by getReplacement().
|
private |
Definition at line 184 of file vectorgraphicdata.cxx.
References a, BinaryDataContainer::cbegin(), BinaryDataContainer::cend(), Emf, estimateSize(), basegfx::Range2D< typename TYPE, typename TRAITS >::expand(), getBinaryDataContainer(), BinaryDataContainer::getSize(), getType(), basegfx::Tuple2D< typename TYPE >::getX(), basegfx::Tuple2D< typename TYPE >::getY(), comphelper::InitPropertySequence(), BinaryDataContainer::isEmpty(), maDataContainer, comphelper::makePropertyValue(), maRange, maSequence, maSizeHint, mbEnableEMFPlus, mbSequenceCreated, mNestedBitmapSize, mnPageIndex, nCount, Pdf, basegfx::Range2D< typename TYPE, typename TRAITS >::reset(), Svg, and Wmf.
Referenced by ensureReplacement(), getPrimitive2DSequence(), and getRange().
|
inline |
data read
Definition at line 99 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange().
BitmapChecksum VectorGraphicData::GetChecksum | ( | ) | const |
Definition at line 358 of file vectorgraphicdata.cxx.
References BinaryDataContainer::getData(), BinaryDataContainer::getSize(), maDataContainer, and vcl_get_checksum().
|
inline |
Definition at line 115 of file vectorgraphicdata.hxx.
const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > & VectorGraphicData::getPrimitive2DSequence | ( | ) | const |
Definition at line 344 of file vectorgraphicdata.cxx.
References ensureSequenceAndRange(), and maSequence.
const basegfx::B2DRange & VectorGraphicData::getRange | ( | ) | const |
data read and evtl. on demand creation
Definition at line 337 of file vectorgraphicdata.cxx.
References ensureSequenceAndRange(), and maRange.
Referenced by ensureReplacement().
const BitmapEx & VectorGraphicData::getReplacement | ( | ) | const |
Definition at line 351 of file vectorgraphicdata.cxx.
References ensureReplacement(), and maReplacement.
std::pair< VectorGraphicData::State, size_t > VectorGraphicData::getSizeBytes | ( | ) | const |
Definition at line 284 of file vectorgraphicdata.cxx.
References BinaryDataContainer::getSize(), BinaryDataContainer::isEmpty(), maDataContainer, maSequence, mNestedBitmapSize, PARSED, and UNPARSED.
|
inline |
Definition at line 130 of file vectorgraphicdata.hxx.
References maSizeHint.
|
inline |
Definition at line 107 of file vectorgraphicdata.hxx.
References meType.
Referenced by ensurePdfReplacement(), ensureReplacement(), ensureSequenceAndRange(), and operator==().
|
inline |
Definition at line 134 of file vectorgraphicdata.hxx.
|
privatedelete |
bool VectorGraphicData::operator== | ( | const VectorGraphicData & | rCandidate | ) | const |
compare op
Definition at line 125 of file vectorgraphicdata.cxx.
References BinaryDataContainer::getData(), BinaryDataContainer::getSize(), getType(), and maDataContainer.
|
inline |
Definition at line 132 of file vectorgraphicdata.hxx.
|
inline |
Definition at line 120 of file vectorgraphicdata.hxx.
|
inline |
Definition at line 125 of file vectorgraphicdata.hxx.
References maSizeHint.
|
private |
Definition at line 61 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), ensureSequenceAndRange(), GetChecksum(), getSizeBytes(), operator==(), and VectorGraphicData().
|
private |
Definition at line 65 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange(), and getRange().
|
private |
Definition at line 67 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), ensureReplacement(), and getReplacement().
|
private |
Definition at line 66 of file vectorgraphicdata.hxx.
Referenced by ensureReplacement(), ensureSequenceAndRange(), getPrimitive2DSequence(), and getSizeBytes().
|
private |
Useful for PDF, which is vector-based, but still rendered to a bitmap.
Definition at line 75 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().
|
private |
Definition at line 77 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange().
|
private |
Definition at line 64 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange().
|
private |
Definition at line 69 of file vectorgraphicdata.hxx.
|
private |
Definition at line 68 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange(), and getSizeBytes().
|
private |
If the vector format has more pages this denotes which page to render.
Definition at line 72 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().