LibreOffice Module vcl (master)  1
Public Types | Public Member Functions | Private Member Functions | Private Attributes | List of all members
VectorGraphicData Class Reference

#include <vectorgraphicdata.hxx>

Collaboration diagram for VectorGraphicData:
[legend]

Public Types

enum  State {
  State::UNPARSED,
  State::PARSED
}
 

Public Member Functions

 VectorGraphicData (const VectorGraphicDataArray &rVectorGraphicDataArray, const OUString &rPath, VectorGraphicDataType eVectorDataType, sal_Int32 nPageIndex=-1)
 
 VectorGraphicData (const OUString &rPath, VectorGraphicDataType eVectorDataType)
 
 ~VectorGraphicData ()
 
bool operator== (const VectorGraphicData &rCandidate) const
 compare op More...
 
void setWmfExternalHeader (const WmfExternal &aExtHeader)
 special: needed for emf/wmf, maybe replaced by scaling the result later (?) More...
 
const VectorGraphicDataArraygetVectorGraphicDataArray () const
 data read More...
 
sal_uInt32 getVectorGraphicDataArrayLength () const
 
std::pair< State, size_t > getSizeBytes () const
 
const OUString & getPath () const
 
const VectorGraphicDataTypegetVectorGraphicDataType () const
 
const basegfx::B2DRangegetRange () const
 data read and evtl. on demand creation More...
 
const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > & getPrimitive2DSequence () const
 
const BitmapExgetReplacement () const
 
BitmapChecksum GetChecksum () const
 
sal_Int32 getPageIndex () const
 
void setPageIndex (sal_Int32 nPageIndex)
 
void setSizeHint (const basegfx::B2DTuple &rSizeHint)
 
const basegfx::B2DTuplegetSizeHint () const
 
bool isPrimitiveSequenceCreated () const
 

Private Member Functions

void ensurePdfReplacement ()
 
void ensureReplacement ()
 
void ensureSequenceAndRange ()
 
 VectorGraphicData (const VectorGraphicData &)=delete
 
VectorGraphicDataoperator= (const VectorGraphicData &)=delete
 

Private Attributes

VectorGraphicDataArray maVectorGraphicDataArray
 
OUString maPath
 
bool mbSequenceCreated
 
basegfx::B2DRange maRange
 
std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > maSequence
 
BitmapEx maReplacement
 
size_t mNestedBitmapSize
 
VectorGraphicDataType meVectorGraphicDataType
 
std::unique_ptr< WmfExternalmpExternalHeader
 
sal_Int32 mnPageIndex
 
basegfx::B2DTuple maSizeHint
 Useful for PDF, which is vector-based, but still rendered to a bitmap. More...
 

Detailed Description

Definition at line 54 of file vectorgraphicdata.hxx.

Member Enumeration Documentation

Enumerator
UNPARSED 
PARSED 

Definition at line 106 of file vectorgraphicdata.hxx.

Constructor & Destructor Documentation

VectorGraphicData::VectorGraphicData ( const VectorGraphicData )
privatedelete
VectorGraphicData::VectorGraphicData ( const VectorGraphicDataArray rVectorGraphicDataArray,
const OUString &  rPath,
VectorGraphicDataType  eVectorDataType,
sal_Int32  nPageIndex = -1 
)

Definition at line 282 of file vectorgraphicdata.cxx.

VectorGraphicData::VectorGraphicData ( const OUString &  rPath,
VectorGraphicDataType  eVectorDataType 
)
VectorGraphicData::~VectorGraphicData ( )

Definition at line 328 of file vectorgraphicdata.cxx.

Member Function Documentation

void VectorGraphicData::ensurePdfReplacement ( )
private
void VectorGraphicData::ensureReplacement ( )
private
void VectorGraphicData::ensureSequenceAndRange ( )
private
BitmapChecksum VectorGraphicData::GetChecksum ( ) const

Definition at line 353 of file vectorgraphicdata.cxx.

References maVectorGraphicDataArray, and vcl_get_checksum().

sal_Int32 VectorGraphicData::getPageIndex ( ) const
inline

Definition at line 117 of file vectorgraphicdata.hxx.

const OUString& VectorGraphicData::getPath ( ) const
inline

Definition at line 108 of file vectorgraphicdata.hxx.

const std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > & VectorGraphicData::getPrimitive2DSequence ( ) const

Definition at line 339 of file vectorgraphicdata.cxx.

References ensureSequenceAndRange(), and maSequence.

const basegfx::B2DRange & VectorGraphicData::getRange ( ) const

data read and evtl. on demand creation

Definition at line 332 of file vectorgraphicdata.cxx.

References ensureSequenceAndRange(), and maRange.

Referenced by ensureReplacement().

const BitmapEx & VectorGraphicData::getReplacement ( ) const

Definition at line 346 of file vectorgraphicdata.cxx.

References ensureReplacement(), and maReplacement.

auto VectorGraphicData::getSizeBytes ( ) const
const basegfx::B2DTuple& VectorGraphicData::getSizeHint ( ) const
inline

Definition at line 129 of file vectorgraphicdata.hxx.

const VectorGraphicDataArray& VectorGraphicData::getVectorGraphicDataArray ( ) const
inline

data read

Definition at line 104 of file vectorgraphicdata.hxx.

Referenced by operator==().

sal_uInt32 VectorGraphicData::getVectorGraphicDataArrayLength ( ) const
inline

Definition at line 105 of file vectorgraphicdata.hxx.

Referenced by operator==().

const VectorGraphicDataType& VectorGraphicData::getVectorGraphicDataType ( ) const
inline
bool VectorGraphicData::isPrimitiveSequenceCreated ( ) const
inline

Definition at line 131 of file vectorgraphicdata.hxx.

VectorGraphicData& VectorGraphicData::operator= ( const VectorGraphicData )
privatedelete
bool VectorGraphicData::operator== ( const VectorGraphicData rCandidate) const
void VectorGraphicData::setPageIndex ( sal_Int32  nPageIndex)
inline

Definition at line 119 of file vectorgraphicdata.hxx.

void VectorGraphicData::setSizeHint ( const basegfx::B2DTuple rSizeHint)
inline

Definition at line 124 of file vectorgraphicdata.hxx.

void VectorGraphicData::setWmfExternalHeader ( const WmfExternal aExtHeader)

special: needed for emf/wmf, maybe replaced by scaling the result later (?)

Definition at line 131 of file vectorgraphicdata.cxx.

References mpExternalHeader.

Member Data Documentation

OUString VectorGraphicData::maPath
private

Definition at line 61 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

basegfx::B2DRange VectorGraphicData::maRange
private

Definition at line 65 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and getRange().

BitmapEx VectorGraphicData::maReplacement
private

Definition at line 67 of file vectorgraphicdata.hxx.

Referenced by ensurePdfReplacement(), ensureReplacement(), and getReplacement().

std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > VectorGraphicData::maSequence
private
basegfx::B2DTuple VectorGraphicData::maSizeHint
private

Useful for PDF, which is vector-based, but still rendered to a bitmap.

Definition at line 78 of file vectorgraphicdata.hxx.

Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().

VectorGraphicDataArray VectorGraphicData::maVectorGraphicDataArray
private
bool VectorGraphicData::mbSequenceCreated
private

Definition at line 64 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

VectorGraphicDataType VectorGraphicData::meVectorGraphicDataType
private

Definition at line 69 of file vectorgraphicdata.hxx.

size_t VectorGraphicData::mNestedBitmapSize
private

Definition at line 68 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and getSizeBytes().

sal_Int32 VectorGraphicData::mnPageIndex
private

Definition at line 75 of file vectorgraphicdata.hxx.

Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().

std::unique_ptr<WmfExternal> VectorGraphicData::mpExternalHeader
private

Definition at line 72 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and setWmfExternalHeader().


The documentation for this class was generated from the following files: