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)
 
 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
 

Private Member Functions

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

Private Attributes

VectorGraphicDataArray maVectorGraphicDataArray
 
OUString const maPath
 
bool mbSequenceCreated
 
basegfx::B2DRange maRange
 
std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > maSequence
 
BitmapEx maReplacement
 
size_t mNestedBitmapSize
 
VectorGraphicDataType const meVectorGraphicDataType
 
std::unique_ptr< WmfExternalmpExternalHeader
 

Detailed Description

Definition at line 52 of file vectorgraphicdata.hxx.

Member Enumeration Documentation

Enumerator
UNPARSED 
PARSED 

Definition at line 98 of file vectorgraphicdata.hxx.

Constructor & Destructor Documentation

VectorGraphicData::VectorGraphicData ( const VectorGraphicData )
privatedelete
VectorGraphicData::VectorGraphicData ( const VectorGraphicDataArray rVectorGraphicDataArray,
const OUString &  rPath,
VectorGraphicDataType  eVectorDataType 
)

Definition at line 223 of file vectorgraphicdata.cxx.

References maRange.

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

Definition at line 266 of file vectorgraphicdata.cxx.

Member Function Documentation

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

Definition at line 291 of file vectorgraphicdata.cxx.

References maVectorGraphicDataArray, and vcl_get_checksum().

const OUString& VectorGraphicData::getPath ( ) const
inline

Definition at line 100 of file vectorgraphicdata.hxx.

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

Definition at line 277 of file vectorgraphicdata.cxx.

References ensureSequenceAndRange(), and maSequence.

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

data read and evtl. on demand creation

Definition at line 270 of file vectorgraphicdata.cxx.

References ensureSequenceAndRange(), and maRange.

Referenced by ensureReplacement().

const BitmapEx & VectorGraphicData::getReplacement ( ) const

Definition at line 284 of file vectorgraphicdata.cxx.

References ensureReplacement(), and maReplacement.

auto VectorGraphicData::getSizeBytes ( ) const
const VectorGraphicDataArray& VectorGraphicData::getVectorGraphicDataArray ( ) const
inline

data read

Definition at line 96 of file vectorgraphicdata.hxx.

Referenced by operator==().

sal_uInt32 VectorGraphicData::getVectorGraphicDataArrayLength ( ) const
inline

Definition at line 97 of file vectorgraphicdata.hxx.

Referenced by operator==().

const VectorGraphicDataType& VectorGraphicData::getVectorGraphicDataType ( ) const
inline

Definition at line 101 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and operator==().

VectorGraphicData& VectorGraphicData::operator= ( const VectorGraphicData )
privatedelete
bool VectorGraphicData::operator== ( const VectorGraphicData rCandidate) const
void VectorGraphicData::setWmfExternalHeader ( const WmfExternal aExtHeader)

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

Definition at line 126 of file vectorgraphicdata.cxx.

References mpExternalHeader.

Member Data Documentation

OUString const VectorGraphicData::maPath
private

Definition at line 59 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

basegfx::B2DRange VectorGraphicData::maRange
private

Definition at line 63 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and getRange().

BitmapEx VectorGraphicData::maReplacement
private

Definition at line 65 of file vectorgraphicdata.hxx.

Referenced by ensureReplacement(), and getReplacement().

std::deque< css::uno::Reference< css::graphic::XPrimitive2D > > VectorGraphicData::maSequence
private
VectorGraphicDataArray VectorGraphicData::maVectorGraphicDataArray
private
bool VectorGraphicData::mbSequenceCreated
private

Definition at line 62 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

VectorGraphicDataType const VectorGraphicData::meVectorGraphicDataType
private

Definition at line 67 of file vectorgraphicdata.hxx.

size_t VectorGraphicData::mNestedBitmapSize
private

Definition at line 66 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and getSizeBytes().

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

Definition at line 70 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and setWmfExternalHeader().


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