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 57 of file vectorgraphicdata.hxx.

Member Enumeration Documentation

◆ State

enum class VectorGraphicData::State
strong
Enumerator
UNPARSED 
PARSED 

Definition at line 104 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 296 of file vectorgraphicdata.cxx.

References meType.

◆ ~VectorGraphicData()

VectorGraphicData::~VectorGraphicData ( )

Definition at line 333 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 99 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

◆ GetChecksum()

BitmapChecksum VectorGraphicData::GetChecksum ( ) const

◆ getPageIndex()

sal_Int32 VectorGraphicData::getPageIndex ( ) const
inline

Definition at line 115 of file vectorgraphicdata.hxx.

◆ getPrimitive2DSequence()

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

Definition at line 344 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 337 of file vectorgraphicdata.cxx.

References ensureSequenceAndRange(), and maRange.

Referenced by ensureReplacement().

◆ getReplacement()

const BitmapEx & VectorGraphicData::getReplacement ( ) const

Definition at line 351 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 130 of file vectorgraphicdata.hxx.

References maSizeHint.

◆ getType()

const VectorGraphicDataType & VectorGraphicData::getType ( ) const
inline

◆ isPrimitiveSequenceCreated()

bool VectorGraphicData::isPrimitiveSequenceCreated ( ) const
inline

Definition at line 134 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 132 of file vectorgraphicdata.hxx.

◆ setPageIndex()

void VectorGraphicData::setPageIndex ( sal_Int32  nPageIndex)
inline

Definition at line 120 of file vectorgraphicdata.hxx.

◆ setSizeHint()

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

Definition at line 125 of file vectorgraphicdata.hxx.

References maSizeHint.

Member Data Documentation

◆ maDataContainer

BinaryDataContainer VectorGraphicData::maDataContainer
private

◆ maRange

basegfx::B2DRange VectorGraphicData::maRange
private

Definition at line 65 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange(), and getRange().

◆ maReplacement

BitmapEx VectorGraphicData::maReplacement
private

Definition at line 67 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 75 of file vectorgraphicdata.hxx.

Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().

◆ mbEnableEMFPlus

bool VectorGraphicData::mbEnableEMFPlus = true
private

Definition at line 77 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

◆ mbSequenceCreated

bool VectorGraphicData::mbSequenceCreated
private

Definition at line 64 of file vectorgraphicdata.hxx.

Referenced by ensureSequenceAndRange().

◆ meType

VectorGraphicDataType VectorGraphicData::meType
private

Definition at line 69 of file vectorgraphicdata.hxx.

◆ mNestedBitmapSize

size_t VectorGraphicData::mNestedBitmapSize
private

Definition at line 68 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 72 of file vectorgraphicdata.hxx.

Referenced by ensurePdfReplacement(), and ensureSequenceAndRange().


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