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 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 BinaryDataContainergetBinaryDataContainer () const
 data read More...
 
std::pair< State, size_t > getSizeBytes () const
 
const VectorGraphicDataTypegetType () 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
 
void setEnableEMFPlus (bool bEnableEMFPlus)
 
bool isPrimitiveSequenceCreated () const
 

Private Member Functions

void ensurePdfReplacement ()
 
void ensureReplacement ()
 
void ensureSequenceAndRange ()
 
 VectorGraphicData (const VectorGraphicData &)=delete
 
VectorGraphicDataoperator= (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
 

Detailed Description

Definition at line 55 of file vectorgraphicdata.hxx.

Member Enumeration Documentation

◆ State

enum class VectorGraphicData::State
strong
Enumerator
UNPARSED 
PARSED 

Definition at line 102 of file vectorgraphicdata.hxx.

Constructor & Destructor Documentation

◆ VectorGraphicData() [1/3]

VectorGraphicData::VectorGraphicData ( const VectorGraphicData )
privatedelete

◆ VectorGraphicData() [2/3]

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

◆ VectorGraphicData() [3/3]

VectorGraphicData::VectorGraphicData ( BinaryDataContainer  aDataContainer,
VectorGraphicDataType  eVectorDataType,
sal_Int32  nPageIndex = -1 
)

Definition at line 291 of file vectorgraphicdata.cxx.

References meType.

◆ ~VectorGraphicData()

VectorGraphicData::~VectorGraphicData ( )

Definition at line 326 of file vectorgraphicdata.cxx.

Member Function Documentation

◆ ensurePdfReplacement()

void VectorGraphicData::ensurePdfReplacement ( )
private

◆ ensureReplacement()

void VectorGraphicData::ensureReplacement ( )
private

◆ ensureSequenceAndRange()

void VectorGraphicData::ensureSequenceAndRange ( )
private

◆ getBinaryDataContainer()

const BinaryDataContainer & VectorGraphicData::getBinaryDataContainer ( ) const
inline

data read

Definition at line 97 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

◆ GetChecksum()

BitmapChecksum VectorGraphicData::GetChecksum ( ) const

◆ getPageIndex()

sal_Int32 VectorGraphicData::getPageIndex ( ) const
inline

Definition at line 113 of file vectorgraphicdata.hxx.

◆ getPrimitive2DSequence()

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

Definition at line 337 of file vectorgraphicdata.cxx.

References ensureSequenceAndRange(), and maSequence.

◆ getRange()

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

◆ getReplacement()

const BitmapEx & VectorGraphicData::getReplacement ( ) const

Definition at line 344 of file vectorgraphicdata.cxx.

References ensureReplacement(), and maReplacement.

◆ getSizeBytes()

std::pair< VectorGraphicData::State, size_t > VectorGraphicData::getSizeBytes ( ) const

◆ getSizeHint()

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

Definition at line 128 of file vectorgraphicdata.hxx.

References maSizeHint.

◆ getType()

const VectorGraphicDataType & VectorGraphicData::getType ( ) const
inline

◆ isPrimitiveSequenceCreated()

bool VectorGraphicData::isPrimitiveSequenceCreated ( ) const
inline

Definition at line 132 of file vectorgraphicdata.hxx.

◆ operator=()

VectorGraphicData & VectorGraphicData::operator= ( const VectorGraphicData )
privatedelete

◆ operator==()

bool VectorGraphicData::operator== ( const VectorGraphicData rCandidate) const

◆ setEnableEMFPlus()

void VectorGraphicData::setEnableEMFPlus ( bool  bEnableEMFPlus)
inline

Definition at line 130 of file vectorgraphicdata.hxx.

◆ setPageIndex()

void VectorGraphicData::setPageIndex ( sal_Int32  nPageIndex)
inline

Definition at line 118 of file vectorgraphicdata.hxx.

◆ setSizeHint()

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

Definition at line 123 of file vectorgraphicdata.hxx.

References maSizeHint.

Member Data Documentation

◆ maDataContainer

BinaryDataContainer VectorGraphicData::maDataContainer
private

◆ maRange

basegfx::B2DRange VectorGraphicData::maRange
private

Definition at line 63 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and getRange().

◆ maReplacement

BitmapEx VectorGraphicData::maReplacement
private

Definition at line 65 of file vectorgraphicdata.hxx.

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

◆ maSequence

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

◆ maSizeHint

basegfx::B2DTuple VectorGraphicData::maSizeHint
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().

◆ mbEnableEMFPlus

bool VectorGraphicData::mbEnableEMFPlus = true
private

Definition at line 75 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

◆ mbSequenceCreated

bool VectorGraphicData::mbSequenceCreated
private

Definition at line 62 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

◆ meType

VectorGraphicDataType VectorGraphicData::meType
private

Definition at line 67 of file vectorgraphicdata.hxx.

◆ mNestedBitmapSize

size_t VectorGraphicData::mNestedBitmapSize
private

Definition at line 66 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and getSizeBytes().

◆ mnPageIndex

sal_Int32 VectorGraphicData::mnPageIndex
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().


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