loplugin:unusedmethods
Change-Id: I4f2635d468c9ad83b3ac93733529e01a4d03f38e Reviewed-on: https://gerrit.libreoffice.org/64805 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
This commit is contained in:
@@ -111,32 +111,6 @@ namespace cppcanvas
|
||||
eDx = eDy = eM12 = eM21 = 0.0f;
|
||||
}
|
||||
|
||||
void Set (const XForm& f)
|
||||
{
|
||||
eM11 = f.eM11;
|
||||
eM12 = f.eM12;
|
||||
eM21 = f.eM21;
|
||||
eM22 = f.eM22;
|
||||
eDx = f.eDx;
|
||||
eDy = f.eDy;
|
||||
}
|
||||
|
||||
// Multiple two square matrices
|
||||
// [ eM11, eM12, eDx ] [ f.eM11, f.eM12, f.eDx ]
|
||||
// [ eM21, eM22, eDy ] x [ f.eM21, f.eM22, f.eDy ]
|
||||
// [ 0, 0, 1 ] [ 0, 0, 1 ]
|
||||
// More information: https://en.wikipedia.org/wiki/Matrix_multiplication#Square_matrices
|
||||
// FIXME We shouldn't modify source matrix during computation
|
||||
void Multiply (const XForm& f)
|
||||
{
|
||||
eM11 = eM11*f.eM11 + eM12*f.eM21;
|
||||
eM12 = eM11*f.eM12 + eM12*f.eM22;
|
||||
eM21 = eM21*f.eM11 + eM22*f.eM21;
|
||||
eM22 = eM21*f.eM12 + eM22*f.eM22;
|
||||
eDx = eDx*f.eM11 + eDy*f.eM21 + f.eDx;
|
||||
eDy = eDx*f.eM12 + eDy*f.eM22 + f.eDy;
|
||||
}
|
||||
|
||||
friend SvStream& ReadXForm( SvStream& rIn, XForm& rXForm )
|
||||
{
|
||||
if ( sizeof( float ) != 4 )
|
||||
@@ -246,19 +220,12 @@ namespace cppcanvas
|
||||
ActionVector::const_iterator& o_rRangeBegin,
|
||||
ActionVector::const_iterator& o_rRangeEnd ) const;
|
||||
|
||||
void processObjectRecord(SvMemoryStream& rObjectStream, sal_uInt16 flags, sal_uInt32 dataSize, bool bUseWholeStream = false);
|
||||
|
||||
ActionVector maActions;
|
||||
|
||||
/* EMF+ */
|
||||
XForm aBaseTransform;
|
||||
XForm aWorldTransform;
|
||||
std::unique_ptr<EMFPObject> aObjects [256];
|
||||
float fPageScale;
|
||||
sal_Int32 nOriginX;
|
||||
sal_Int32 nOriginY;
|
||||
sal_Int32 nHDPI;
|
||||
sal_Int32 nVDPI;
|
||||
/* EMF+ emf header info */
|
||||
sal_Int32 nFrameLeft;
|
||||
sal_Int32 nFrameTop;
|
||||
@@ -269,8 +236,6 @@ namespace cppcanvas
|
||||
sal_Int32 nMmX;
|
||||
sal_Int32 nMmY;
|
||||
/* multipart object data */
|
||||
bool mbMultipart;
|
||||
sal_uInt16 mMFlags;
|
||||
SvMemoryStream mMStream;
|
||||
/* emf+ graphic state stack */
|
||||
GraphicStateMap mGSStack;
|
||||
|
@@ -2852,11 +2852,6 @@ namespace cppcanvas
|
||||
const Parameters& rParams )
|
||||
: CanvasGraphicHelper(rCanvas)
|
||||
, maActions()
|
||||
, fPageScale(0.0)
|
||||
, nOriginX(0)
|
||||
, nOriginY(0)
|
||||
, nHDPI(0)
|
||||
, nVDPI(0)
|
||||
, nFrameLeft(0)
|
||||
, nFrameTop(0)
|
||||
, nFrameRight(0)
|
||||
@@ -2865,8 +2860,6 @@ namespace cppcanvas
|
||||
, nPixY(0)
|
||||
, nMmX(0)
|
||||
, nMmY(0)
|
||||
, mbMultipart(false)
|
||||
, mMFlags(0)
|
||||
{
|
||||
memset (aObjects, 0, sizeof (aObjects));
|
||||
|
||||
|
Reference in New Issue
Block a user