LibreOffice Module filter (master) 1
Public Member Functions | Private Member Functions | Static Private Member Functions | Private Attributes | Friends | List of all members
CGM Class Reference

#include <cgm.hxx>

Public Member Functions

 ~CGM ()
 
 CGM (css::uno::Reference< css::frame::XModel > const &rModel)
 
sal_uInt32 GetBackGroundColor () const
 
bool IsValid () const
 
bool IsFinished () const
 
bool Write (SvStream &rIStm)
 

Private Member Functions

sal_uInt32 ImplGetUI16 ()
 
sal_Int32 ImplGetI (sal_uInt32 nPrecision)
 
sal_uInt32 ImplGetUI (sal_uInt32 nPrecision)
 
double ImplGetFloat (RealPrecision, sal_uInt32 nRealSize)
 
sal_uInt32 ImplGetBitmapColor (bool bDirectColor=false)
 
void ImplSetMapMode ()
 
void ImplSetUnderlineMode ()
 
void ImplMapDouble (double &)
 
void ImplMapX (double &)
 
void ImplMapY (double &)
 
void ImplMapPoint (FloatPoint &)
 
double ImplGetIY ()
 
double ImplGetFY ()
 
double ImplGetIX ()
 
double ImplGetFX ()
 
sal_uInt32 ImplGetPointSize ()
 
void ImplGetPoint (FloatPoint &rFloatPoint, bool bMap=false)
 
void ImplGetRectangle (FloatRect &, bool bMap=false)
 
void ImplGetRectangleNS (FloatRect &)
 
void ImplGetVector (double *)
 
bool ImplGetEllipse (FloatPoint &rCenter, FloatPoint &rRadius, double &rOrientation)
 
void ImplDefaultReplacement ()
 
void ImplDoClass ()
 
void ImplDoClass0 ()
 
void ImplDoClass1 ()
 
void ImplDoClass2 ()
 
void ImplDoClass3 ()
 
void ImplDoClass4 ()
 
void ImplDoClass5 ()
 
void ImplDoClass6 ()
 
void ImplDoClass7 ()
 
void ImplDoClass8 ()
 
void ImplDoClass9 ()
 
void ImplDoClass15 ()
 

Static Private Member Functions

static sal_uInt8 ImplGetByte (sal_uInt32 nSource, sal_uInt32 nPrecision)
 
static void ImplGetSwitch4 (const sal_uInt8 *pSource, sal_uInt8 *pDest)
 
static void ImplGetSwitch8 (const sal_uInt8 *pSource, sal_uInt8 *pDest)
 
static double ImplGetOrientation (FloatPoint const &rCenter, FloatPoint const &rPoint)
 
static void ImplSwitchStartEndAngle (double &rStartAngle, double &rEndAngle)
 

Private Attributes

double mnVDCXadd
 
double mnVDCYadd
 
double mnVDCXmul
 
double mnVDCYmul
 
double mnVDCdx
 
double mnVDCdy
 
double mnXFraction
 
double mnYFraction
 
bool mbAngReverse
 
bool mbStatus
 
bool mbMetaFile
 
bool mbIsFinished
 
bool mbPicture
 
bool mbPictureBody
 
bool mbFigure
 
bool mbFirstOutPut
 
bool mbInDefaultReplacement
 
sal_uInt32 mnAct4PostReset
 
int mnBitmapInserts
 
std::unique_ptr< CGMBitmapmpBitmapInUse
 
std::unique_ptr< CGMChartmpChart
 
std::unique_ptr< CGMElementspElement
 
std::unique_ptr< CGMElementspCopyOfE
 
std::unique_ptr< CGMImpressOutActmpOutAct
 
::std::vector< std::unique_ptr< sal_uInt8[]> > maDefRepList
 
::std::vector< sal_uInt32 > maDefRepSizeList
 
sal_uInt8mpSource
 
sal_uInt8mpEndValidSource
 
sal_uInt32 mnParaSize
 
sal_uInt32 mnActCount
 
std::unique_ptr< sal_uInt8[]> mpBuf
 
sal_uInt32 mnEscape
 
sal_uInt32 mnElementClass
 
sal_uInt32 mnElementID
 
sal_uInt32 mnElementSize
 

Friends

class CGMChart
 
class CGMBitmap
 
class CGMElements
 
class CGMImpressOutAct
 

Detailed Description

Definition at line 38 of file cgm.hxx.

Constructor & Destructor Documentation

◆ ~CGM()

CGM::~CGM ( )

Definition at line 71 of file cgm.cxx.

References maDefRepList, and maDefRepSizeList.

◆ CGM()

CGM::CGM ( css::uno::Reference< css::frame::XModel > const &  rModel)

Definition at line 37 of file cgm.cxx.

References mbIsFinished, pCopyOfE, and pElement.

Member Function Documentation

◆ GetBackGroundColor()

sal_uInt32 CGM::GetBackGroundColor ( ) const

Definition at line 77 of file cgm.cxx.

References pElement.

Referenced by ImportCGM().

◆ ImplDefaultReplacement()

void CGM::ImplDefaultReplacement ( )
private

◆ ImplDoClass()

void CGM::ImplDoClass ( )
private

◆ ImplDoClass0()

void CGM::ImplDoClass0 ( )
private

◆ ImplDoClass1()

void CGM::ImplDoClass1 ( )
private

◆ ImplDoClass15()

void CGM::ImplDoClass15 ( )
private

Definition at line 237 of file classx.cxx.

References mnElementID.

Referenced by ImplDoClass().

◆ ImplDoClass2()

void CGM::ImplDoClass2 ( )
private

◆ ImplDoClass3()

void CGM::ImplDoClass3 ( )
private

◆ ImplDoClass4()

void CGM::ImplDoClass4 ( )
private

◆ ImplDoClass5()

void CGM::ImplDoClass5 ( )
private

◆ ImplDoClass6()

void CGM::ImplDoClass6 ( )
private

Definition at line 40 of file classx.cxx.

References ImplGetI(), ImplSetUnderlineMode(), mbFigure, mnElementID, mnElementSize, mnParaSize, mpOutAct, and pElement.

Referenced by ImplDoClass().

◆ ImplDoClass7()

void CGM::ImplDoClass7 ( )
private

◆ ImplDoClass8()

void CGM::ImplDoClass8 ( )
private

Definition at line 200 of file classx.cxx.

References mnElementID.

Referenced by ImplDoClass().

◆ ImplDoClass9()

void CGM::ImplDoClass9 ( )
private

Definition at line 218 of file classx.cxx.

References mnElementID.

Referenced by ImplDoClass().

◆ ImplGetBitmapColor()

sal_uInt32 CGM::ImplGetBitmapColor ( bool  bDirectColor = false)
private

Definition at line 334 of file cgm.cxx.

References CSM_DIRECT, ImplGetByte(), ImplGetUI(), nIndex, and pElement.

Referenced by ImplDoClass2(), ImplDoClass3(), ImplDoClass5(), and ImplSetUnderlineMode().

◆ ImplGetByte()

sal_uInt8 CGM::ImplGetByte ( sal_uInt32  nSource,
sal_uInt32  nPrecision 
)
staticprivate

Definition at line 91 of file cgm.cxx.

Referenced by ImplGetBitmapColor().

◆ ImplGetEllipse()

bool CGM::ImplGetEllipse ( FloatPoint rCenter,
FloatPoint rRadius,
double &  rOrientation 
)
private

Definition at line 80 of file class4.cxx.

References ImplGetOrientation(), ImplGetPoint(), FloatPoint::X, and FloatPoint::Y.

Referenced by ImplDoClass4().

◆ ImplGetFloat()

double CGM::ImplGetFloat ( RealPrecision  eRealPrecision,
sal_uInt32  nRealSize 
)
private

◆ ImplGetFX()

double CGM::ImplGetFX ( )
inlineprivate

Definition at line 259 of file cgm.cxx.

References ImplGetFloat(), mnVDCXadd, mnVDCXmul, and pElement.

Referenced by ImplGetPoint(), and ImplGetRectangle().

◆ ImplGetFY()

double CGM::ImplGetFY ( )
inlineprivate

Definition at line 269 of file cgm.cxx.

References ImplGetFloat(), mnVDCYadd, mnVDCYmul, and pElement.

Referenced by ImplGetPoint(), and ImplGetRectangle().

◆ ImplGetI()

sal_Int32 CGM::ImplGetI ( sal_uInt32  nPrecision)
private

◆ ImplGetIX()

double CGM::ImplGetIX ( )
inlineprivate

Definition at line 254 of file cgm.cxx.

References ImplGetI(), mnVDCXadd, mnVDCXmul, and pElement.

Referenced by ImplGetPoint(), and ImplGetRectangle().

◆ ImplGetIY()

double CGM::ImplGetIY ( )
inlineprivate

Definition at line 264 of file cgm.cxx.

References ImplGetI(), mnVDCYadd, mnVDCYmul, and pElement.

Referenced by ImplGetPoint(), and ImplGetRectangle().

◆ ImplGetOrientation()

double CGM::ImplGetOrientation ( FloatPoint const &  rCenter,
FloatPoint const &  rPoint 
)
staticprivate

Definition at line 34 of file class4.cxx.

References basegfx::rad2deg(), FloatPoint::X, and FloatPoint::Y.

Referenced by ImplDoClass4(), and ImplGetEllipse().

◆ ImplGetPoint()

void CGM::ImplGetPoint ( FloatPoint rFloatPoint,
bool  bMap = false 
)
private

◆ ImplGetPointSize()

sal_uInt32 CGM::ImplGetPointSize ( )
private

Definition at line 246 of file cgm.cxx.

References pElement, and VDC_INTEGER.

Referenced by ImplDoClass4(), and CGMBitmap::ImplGetDimensions().

◆ ImplGetRectangle()

void CGM::ImplGetRectangle ( FloatRect rFloatRect,
bool  bMap = false 
)
private

◆ ImplGetRectangleNS()

void CGM::ImplGetRectangleNS ( FloatRect rFloatRect)
private

◆ ImplGetSwitch4()

void CGM::ImplGetSwitch4 ( const sal_uInt8 pSource,
sal_uInt8 pDest 
)
staticprivate

Definition at line 156 of file cgm.cxx.

References gentoken::i.

Referenced by ImplGetFloat().

◆ ImplGetSwitch8()

void CGM::ImplGetSwitch8 ( const sal_uInt8 pSource,
sal_uInt8 pDest 
)
staticprivate

Definition at line 164 of file cgm.cxx.

References gentoken::i.

Referenced by ImplGetFloat().

◆ ImplGetUI()

sal_uInt32 CGM::ImplGetUI ( sal_uInt32  nPrecision)
private

◆ ImplGetUI16()

sal_uInt32 CGM::ImplGetUI16 ( )
private

◆ ImplGetVector()

void CGM::ImplGetVector ( double *  pVector)
private

Definition at line 57 of file class4.cxx.

References gentoken::i, ImplGetFloat(), ImplGetI(), mnVDCXmul, mnVDCYmul, pElement, and VDC_REAL.

Referenced by ImplDoClass4().

◆ ImplMapDouble()

void CGM::ImplMapDouble ( double &  nNumb)
private

Definition at line 420 of file cgm.cxx.

References DVPM_DEVICE, DVPM_FORCED, DVPM_FRACTION, DVPM_METRIC, mnXFraction, mnYFraction, and pElement.

Referenced by ImplDoClass4(), and ImplDoClass5().

◆ ImplMapPoint()

void CGM::ImplMapPoint ( FloatPoint rFloatPoint)
private

◆ ImplMapX()

void CGM::ImplMapX ( double &  nNumb)
private

◆ ImplMapY()

void CGM::ImplMapY ( double &  nNumb)
private

◆ ImplSetMapMode()

void CGM::ImplSetMapMode ( )
private

◆ ImplSetUnderlineMode()

void CGM::ImplSetUnderlineMode ( )
private

Definition at line 26 of file classx.cxx.

References ImplGetBitmapColor(), ImplGetUI16(), pElement, UM_HIGH, UM_LOW, UM_OFF, UM_OVERSCORE, and UM_STRIKEOUT.

Referenced by ImplDoClass6().

◆ ImplSwitchStartEndAngle()

void CGM::ImplSwitchStartEndAngle ( double &  rStartAngle,
double &  rEndAngle 
)
staticprivate

Definition at line 48 of file class4.cxx.

Referenced by ImplDoClass4().

◆ IsFinished()

bool CGM::IsFinished ( ) const
inline

Definition at line 137 of file cgm.hxx.

References mbIsFinished.

Referenced by ImportCGM().

◆ IsValid()

bool CGM::IsValid ( ) const
inline

Definition at line 136 of file cgm.hxx.

References mbStatus.

Referenced by ImportCGM().

◆ Write()

bool CGM::Write ( SvStream rIStm)

Friends And Related Function Documentation

◆ CGMBitmap

friend class CGMBitmap
friend

Definition at line 41 of file cgm.hxx.

Referenced by ImplDoClass4().

◆ CGMChart

friend class CGMChart
friend

Definition at line 40 of file cgm.hxx.

◆ CGMElements

friend class CGMElements
friend

Definition at line 42 of file cgm.hxx.

◆ CGMImpressOutAct

friend class CGMImpressOutAct
friend

Definition at line 43 of file cgm.hxx.

Member Data Documentation

◆ maDefRepList

::std::vector< std::unique_ptr<sal_uInt8[]> > CGM::maDefRepList
private

Definition at line 72 of file cgm.hxx.

Referenced by ImplDefaultReplacement(), ImplDoClass1(), and ~CGM().

◆ maDefRepSizeList

::std::vector< sal_uInt32 > CGM::maDefRepSizeList
private

Definition at line 73 of file cgm.hxx.

Referenced by ImplDefaultReplacement(), ImplDoClass1(), and ~CGM().

◆ mbAngReverse

bool CGM::mbAngReverse
private

Definition at line 53 of file cgm.hxx.

Referenced by ImplDoClass4(), and ImplSetMapMode().

◆ mbFigure

bool CGM::mbFigure
private

Definition at line 60 of file cgm.hxx.

Referenced by ImplDoClass0(), ImplDoClass4(), and ImplDoClass6().

◆ mbFirstOutPut

bool CGM::mbFirstOutPut
private

Definition at line 61 of file cgm.hxx.

Referenced by CGMImpressOutAct::FirstOutPut(), ImplDoClass0(), and ImplDoClass4().

◆ mbInDefaultReplacement

bool CGM::mbInDefaultReplacement
private

Definition at line 62 of file cgm.hxx.

Referenced by ImplDefaultReplacement(), and ImplDoClass0().

◆ mbIsFinished

bool CGM::mbIsFinished
private

Definition at line 57 of file cgm.hxx.

Referenced by ImplDoClass0(), and IsFinished().

◆ mbMetaFile

bool CGM::mbMetaFile
private

Definition at line 56 of file cgm.hxx.

Referenced by ImplDoClass0().

◆ mbPicture

bool CGM::mbPicture
private

Definition at line 58 of file cgm.hxx.

Referenced by ImplDoClass0().

◆ mbPictureBody

bool CGM::mbPictureBody
private

Definition at line 59 of file cgm.hxx.

Referenced by ImplDoClass0().

◆ mbStatus

bool CGM::mbStatus
private

◆ mnAct4PostReset

sal_uInt32 CGM::mnAct4PostReset
private

◆ mnActCount

sal_uInt32 CGM::mnActCount
private

◆ mnBitmapInserts

int CGM::mnBitmapInserts
private

Definition at line 64 of file cgm.hxx.

Referenced by CGMBitmap::ImplInsert().

◆ mnElementClass

sal_uInt32 CGM::mnElementClass
private

Definition at line 85 of file cgm.hxx.

Referenced by ImplDefaultReplacement(), ImplDoClass(), and Write().

◆ mnElementID

sal_uInt32 CGM::mnElementID
private

◆ mnElementSize

sal_uInt32 CGM::mnElementSize
private

◆ mnEscape

sal_uInt32 CGM::mnEscape
private

Definition at line 84 of file cgm.hxx.

Referenced by ImplDefaultReplacement(), and Write().

◆ mnParaSize

sal_uInt32 CGM::mnParaSize
private

◆ mnVDCdx

double CGM::mnVDCdx
private

Definition at line 49 of file cgm.hxx.

Referenced by ImplSetMapMode().

◆ mnVDCdy

double CGM::mnVDCdy
private

Definition at line 50 of file cgm.hxx.

Referenced by ImplSetMapMode().

◆ mnVDCXadd

double CGM::mnVDCXadd
private

Definition at line 45 of file cgm.hxx.

Referenced by ImplGetFX(), ImplGetIX(), and ImplSetMapMode().

◆ mnVDCXmul

double CGM::mnVDCXmul
private

Definition at line 47 of file cgm.hxx.

Referenced by ImplGetFX(), ImplGetIX(), ImplGetVector(), and ImplSetMapMode().

◆ mnVDCYadd

double CGM::mnVDCYadd
private

Definition at line 46 of file cgm.hxx.

Referenced by ImplGetFY(), ImplGetIY(), and ImplSetMapMode().

◆ mnVDCYmul

double CGM::mnVDCYmul
private

Definition at line 48 of file cgm.hxx.

Referenced by ImplGetFY(), ImplGetIY(), ImplGetVector(), CGMBitmap::ImplInsert(), and ImplSetMapMode().

◆ mnXFraction

double CGM::mnXFraction
private

Definition at line 51 of file cgm.hxx.

Referenced by ImplMapDouble(), ImplMapPoint(), ImplMapX(), and ImplSetMapMode().

◆ mnYFraction

double CGM::mnYFraction
private

Definition at line 52 of file cgm.hxx.

Referenced by ImplMapDouble(), ImplMapPoint(), ImplMapY(), and ImplSetMapMode().

◆ mpBitmapInUse

std::unique_ptr<CGMBitmap> CGM::mpBitmapInUse
private

Definition at line 65 of file cgm.hxx.

Referenced by ImplDoClass0(), and ImplDoClass4().

◆ mpBuf

std::unique_ptr<sal_uInt8[]> CGM::mpBuf
private

Definition at line 81 of file cgm.hxx.

Referenced by Write().

◆ mpChart

std::unique_ptr<CGMChart> CGM::mpChart
private

Definition at line 66 of file cgm.hxx.

Referenced by ImplDoClass0(), ImplDoClass4(), and ImplDoClass7().

◆ mpEndValidSource

sal_uInt8* CGM::mpEndValidSource
private

◆ mpOutAct

std::unique_ptr<CGMImpressOutAct> CGM::mpOutAct
private

◆ mpSource

sal_uInt8* CGM::mpSource
private

◆ pCopyOfE

std::unique_ptr<CGMElements> CGM::pCopyOfE
private

Definition at line 70 of file cgm.hxx.

Referenced by CGM(), and ImplDoClass0().

◆ pElement

std::unique_ptr<CGMElements> CGM::pElement
private

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