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 55 of file vectorgraphicdata.hxx.
|
strong |
Enumerator | |
---|---|
UNPARSED | |
PARSED |
Definition at line 102 of file vectorgraphicdata.hxx.
|
privatedelete |
VectorGraphicData::VectorGraphicData | ( | const OUString & | rPath, |
VectorGraphicDataType | eVectorDataType | ||
) |
Definition at line 303 of file vectorgraphicdata.cxx.
References aData, SvStream::GetError(), maDataContainer, meType, and SvStream::remainingSize().
VectorGraphicData::VectorGraphicData | ( | BinaryDataContainer | aDataContainer, |
VectorGraphicDataType | eVectorDataType, | ||
sal_Int32 | nPageIndex = -1 |
||
) |
Definition at line 291 of file vectorgraphicdata.cxx.
References meType.
VectorGraphicData::~VectorGraphicData | ( | ) |
Definition at line 326 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, Emf, estimateSize(), basegfx::Range2D< typename TYPE, typename TRAITS >::expand(), BinaryDataContainer::getAsXInputStream(), getBinaryDataContainer(), 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 97 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange().
BitmapChecksum VectorGraphicData::GetChecksum | ( | ) | const |
Definition at line 351 of file vectorgraphicdata.cxx.
References BinaryDataContainer::getData(), BinaryDataContainer::getSize(), maDataContainer, and vcl_get_checksum().
|
inline |
Definition at line 113 of file vectorgraphicdata.hxx.
const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > & VectorGraphicData::getPrimitive2DSequence | ( | ) | const |
Definition at line 337 of file vectorgraphicdata.cxx.
References ensureSequenceAndRange(), and maSequence.
const basegfx::B2DRange & VectorGraphicData::getRange | ( | ) | const |
data read and evtl. on demand creation
Definition at line 330 of file vectorgraphicdata.cxx.
References ensureSequenceAndRange(), and maRange.
Referenced by ensureReplacement().
const BitmapEx & VectorGraphicData::getReplacement | ( | ) | const |
Definition at line 344 of file vectorgraphicdata.cxx.
References ensureReplacement(), and maReplacement.
std::pair< VectorGraphicData::State, size_t > VectorGraphicData::getSizeBytes | ( | ) | const |
Definition at line 279 of file vectorgraphicdata.cxx.
References BinaryDataContainer::getSize(), BinaryDataContainer::isEmpty(), maDataContainer, maSequence, mNestedBitmapSize, PARSED, and UNPARSED.
|
inline |
Definition at line 128 of file vectorgraphicdata.hxx.
References maSizeHint.
|
inline |
Definition at line 105 of file vectorgraphicdata.hxx.
References meType.
Referenced by ensurePdfReplacement(), ensureReplacement(), ensureSequenceAndRange(), and operator==().
|
inline |
Definition at line 132 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 130 of file vectorgraphicdata.hxx.
|
inline |
Definition at line 118 of file vectorgraphicdata.hxx.
|
inline |
Definition at line 123 of file vectorgraphicdata.hxx.
References maSizeHint.
|
private |
Definition at line 59 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), ensureSequenceAndRange(), GetChecksum(), getSizeBytes(), operator==(), and VectorGraphicData().
|
private |
Definition at line 63 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange(), and getRange().
|
private |
Definition at line 65 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), ensureReplacement(), and getReplacement().
|
private |
Definition at line 64 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 73 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().
|
private |
Definition at line 75 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange().
|
private |
Definition at line 62 of file vectorgraphicdata.hxx.
Referenced by ensureSequenceAndRange().
|
private |
Definition at line 67 of file vectorgraphicdata.hxx.
|
private |
Definition at line 66 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 70 of file vectorgraphicdata.hxx.
Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().