Commit 9abdbadb authored by Elen.Subbotina's avatar Elen.Subbotina Committed by Alexander Trofimov

удаление не используемого кода

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@65742 954022d7-b5bf-4e40-9824-e11837661b57
parent c8d5136b
#pragma once
#include "BaseShape.h"
#if defined(PPTX_DEF)
#include "PPTXShape/PPTXShape.h"
#endif
#if defined(PPT_DEF)
#include "PPTShape/PPTShape.h"
#endif
NSPresentationEditor::CBaseShape* NSPresentationEditor::CBaseShape::CreateByType(NSPresentationEditor::NSBaseShape::ClassType ClassType, int ShapeType)
{
#if defined(PPTX_DEF)
if(ClassType == pptx)
{
return CPPTXShape::CreateByType((OOXMLShapes::ShapeType)ShapeType);
}
#endif
#if defined(PPT_DEF)
if (ClassType == ppt)
{
return CPPTShape::CreateByType((PPTShapes::ShapeType)ShapeType);
}
#endif
return NULL;
}
bool NSPresentationEditor::CBaseShape::SetType(NSPresentationEditor::NSBaseShape::ClassType ClassType, int ShapeType)
{
if (ClassType != GetClassType())
return false;
#if defined(PPTX_DEF)
if(ClassType == pptx)
{
return ((CPPTXShape*)this)->SetShapeType((OOXMLShapes::ShapeType)ShapeType);
}
#endif
#if defined(PPT_DEF)
if(ClassType == ppt)
{
return ((CPPTShape*)this)->SetShapeType((PPTShapes::ShapeType)ShapeType);
}
#endif
return false;
}
\ No newline at end of file
#pragma once
#include "Path.h"
#include "../../../Common/DocxFormat/Source/Common/SimpleTypes_Base.h"
namespace NSPresentationEditor
{
using namespace NSBaseShape;
class CHandle_
{
public:
CString position;
CString xrange;
CString yrange;
CString switchHandle;
CString polar;
CString radiusrange;
public:
CHandle_()
{
position = _T("");
xrange = _T("");
yrange = _T("");
switchHandle = _T("");
polar = _T("");
radiusrange = _T("");
}
CHandle_& operator =(const CHandle_& oSrc)
{
position = oSrc.position;
xrange = oSrc.xrange;
yrange = oSrc.yrange;
switchHandle = oSrc.switchHandle;
polar = oSrc.polar;
radiusrange = oSrc.radiusrange;
return (*this);
}
};
//
class CBaseShape
{
public:
std::vector<long> m_arAdjustments;
std::vector<double> Guides;
public:
LONG m_eJoin;
bool m_bConcentricFill;
std::vector<SimpleTypes::CPoint> m_arConnectors;
std::vector<LONG> m_arConnectorAngles;
std::vector<Aggplus::RECT> m_arTextRects;
std::vector<CHandle_> m_arHandles;
CString m_strTransformXml;
CString m_strPath;
CString m_strRect;
LONG m_lLimoX;
LONG m_lLimoY;
CPath m_oPath;
public:
CBaseShape()
{
}
virtual bool LoadFromXML(const CString& xml) = 0;
virtual bool LoadFromXML(XmlUtils::CXmlNode& xmlNode) = 0;
virtual bool LoadAdjustValuesList(const CString& xml) = 0;
virtual bool LoadGuidesList(const CString& xml) = 0;
virtual bool LoadAdjustHandlesList(const CString& xml) = 0;
virtual bool LoadConnectorsList(const CString& xml) = 0;
virtual bool LoadTextRect(const CString& xml) = 0;
virtual bool LoadPathList(const CString& xml) = 0;
virtual bool SetAdjustment(long index, long value) = 0;
virtual void ReCalculate() = 0;
virtual CString ToXML(CGeomShapeInfo& GeomInfo, CMetricInfo& MetricInfo, double StartTime, double EndTime, CBrush& Brush, CPen& Pen) = 0;
virtual void ToRenderer(IRenderer* pRenderer, CGeomShapeInfo& pGeomInfo, double dStartTime, double dEndTime, CPen& pPen, CBrush& pFore, CMetricInfo& pInfo)
{
m_oPath.ToRenderer(pRenderer, pGeomInfo, dStartTime, dEndTime, pPen, pFore, pInfo, GetClassType());
}
virtual void SetWidthHeightLogic(const double& dWidth, const double& dHeight)
{
// none
}
virtual void GetWidthHeightLogic(double& dWidth, double& dHeight)
{
// none
}
virtual void AddGuide(const CString& strGuide) {}
static CBaseShape* CreateByType(ClassType ClassType, int ShapeType);
virtual const ClassType GetClassType()const = 0;
bool SetType(ClassType ClassType, int ShapeType);
virtual bool SetProperties(CBaseShape* Shape)
{
if( Shape == NULL)
return false;
m_oPath = Shape->m_oPath;
m_strPath = Shape->m_strPath;
m_strRect = Shape->m_strRect;
m_arAdjustments.clear();
for(int i = 0; i < Shape->m_arAdjustments.size(); i++)
m_arAdjustments.push_back(Shape->m_arAdjustments[i]);
Guides.clear();
for(int i = 0; i < Shape->Guides.size(); i++)
Guides.push_back(Shape->Guides[i]);
m_eJoin = Shape->m_eJoin;
m_bConcentricFill = Shape->m_bConcentricFill;
m_arConnectors.clear();
for(int i = 0; i < Shape->m_arConnectors.size(); i++)
m_arConnectors.push_back(Shape->m_arConnectors[i]);
m_arConnectorAngles.clear();
for(int i = 0; i < Shape->m_arConnectorAngles.size(); i++)
m_arConnectorAngles.push_back(Shape->m_arConnectorAngles[i]);
m_arTextRects.clear();
for(int i = 0; i < Shape->m_arTextRects.size(); i++)
m_arTextRects.push_back(Shape->m_arTextRects[i]);
m_arHandles.clear();
for(int i = 0; i < Shape->m_arHandles.size(); i++)
m_arHandles.push_back(Shape->m_arHandles[i]);
m_strRect = Shape->m_strRect;
m_strTransformXml = Shape->m_strTransformXml;
return true;
}
virtual bool SetToDublicate(CBaseShape* Shape)
{
if( Shape == NULL)
return false;
Shape->m_oPath = m_oPath;
Shape->m_strPath = m_strPath;
Shape->m_strRect = m_strRect;
Shape->m_arAdjustments.clear();
for(int i = 0; i < m_arAdjustments.size(); i++)
Shape->m_arAdjustments.push_back(m_arAdjustments[i]);
Shape->Guides.clear();
for(int i = 0; i < Guides.size(); i++)
Shape->Guides.push_back(Guides[i]);
Shape->m_eJoin = m_eJoin;
Shape->m_bConcentricFill = m_bConcentricFill;
Shape->m_arConnectors.clear();
for(int i = 0; i < m_arConnectors.size(); i++)
Shape->m_arConnectors.push_back(m_arConnectors[i]);
Shape->m_arConnectorAngles.clear();
for(int i = 0; i < m_arConnectorAngles.size(); i++)
Shape->m_arConnectorAngles.push_back(m_arConnectorAngles[i]);
Shape->m_arTextRects.clear();
for(int i = 0; i < m_arTextRects.size(); i++)
Shape->m_arTextRects.push_back(m_arTextRects[i]);
Shape->m_strRect = m_strRect;
Shape->m_arHandles.clear();
for(int i = 0; i < m_arHandles.size(); i++)
Shape->m_arHandles.push_back(m_arHandles[i]);
Shape->m_strTransformXml = m_strTransformXml;
return true;
}
};
}
#pragma once
using namespace NSOfficeDrawing;
enum BrushType
{
BrushTypeSolid = 1000,
BrushTypeHorizontal = 2001,
BrushTypeVertical = 2002,
BrushTypeDiagonal1 = 2003,
BrushTypeDiagonal2 = 2004,
BrushTypeCenter = 2005,
BrushTypePathGradient1 = 2006,
BrushTypePathGradient2 = 2007,
BrushTypeCylinderHor = 2008,
BrushTypeCylinderVer = 2009,
BrushTypeTexture = 3008,
BrushTypeHatch1 = 4009,
BrushTypeHatch53 = 4061
};
enum BrushTextureMode
{
BrushTextureModeStretch = 0,
BrushTextureModeTile = 1,
BrushTextureModeTileCenter = 2
};
class CColor_
{
public:
BYTE R;
BYTE G;
BYTE B;
BYTE A;
public:
CColor_()
{
R = 0;
G = 0;
B = 0;
A = 0;
}
CColor_& operator =(const CColor_& oSrc)
{
R = oSrc.R;
G = oSrc.G;
B = oSrc.B;
A = oSrc.A;
return (*this);
}
CColor_& operator =(const DWORD& oSrc)
{
R = (BYTE)(oSrc >> 8);
G = (BYTE)(oSrc >> 16);
B = (BYTE)(oSrc >> 24);
A = (BYTE)oSrc;
return (*this);
}
CString ToString()
{
DWORD dwColor = 0;
/*dwColor |= A;
dwColor |= (R << 8);
dwColor |= (G << 16);
dwColor |= (B << 24);*/
dwColor |= R;
dwColor |= (G << 8);
dwColor |= (B << 16);
return NSAttributes::ToString((int)dwColor);
}
};
class CPen_
{
public:
CColor_ m_oColor;
int m_nWidth;
BYTE m_nAlpha;
public:
CPen_() : m_oColor()
{
m_oColor = 0;
m_nWidth = 1;
m_nAlpha = 255;
}
~CPen_()
{
}
CString ToString()
{
return AddEffectForGroup(_T("ImagePaint-SetPen"), _T("color='")
+ m_oColor.ToString() + _T("' alpha='") + NSAttributes::ToString((int)m_nAlpha)
+ _T("' size='") + NSAttributes::ToString(m_nWidth) + _T("'"));
}
CString ToString2()
{
return AddEffectForGroup(_T("pen"), _T("pen-color='")
+ m_oColor.ToString() + _T("' pen-alpha='") + NSAttributes::ToString((int)m_nAlpha)
+ _T("' pen-size='") + NSAttributes::ToString(m_nWidth) + _T("'"));
}
CPen_& operator =(const CPen_& oSrc)
{
m_oColor = oSrc.m_oColor;
m_nWidth = oSrc.m_nWidth;
m_nAlpha = oSrc.m_nAlpha;
return (*this);
}
};
class CBrush_
{
public:
int m_nBrushType;
CColor_ m_oColor1;
CColor_ m_oColor2;
BYTE m_Alpha1;
BYTE m_Alpha2;
CStringW m_sTexturePath;
int m_nTextureMode;
int m_nRectable;
BYTE m_nTextureAlpha;
RECT m_rcBounds;
public:
CBrush_()
{
m_nBrushType = (int)BrushTypeSolid;
m_oColor1 = 0xFFFFFFFF;
m_oColor2 = 0xFFFFFFFF;
m_Alpha1 = 255;
m_Alpha2 = 255;
m_sTexturePath = "";
m_nTextureMode = 0;
m_nRectable = 0;
m_nTextureAlpha = 255;
m_rcBounds.left = 0;
m_rcBounds.top = 0;
m_rcBounds.right = 0;
m_rcBounds.bottom = 0;
}
CBrush_& operator =(const CBrush_& oSrc)
{
m_nBrushType = oSrc.m_nBrushType;
m_oColor1 = oSrc.m_oColor1;
m_oColor2 = oSrc.m_oColor2;
m_Alpha1 = oSrc.m_Alpha1;
m_Alpha2 = oSrc.m_Alpha2;
m_sTexturePath = oSrc.m_sTexturePath;
m_nTextureMode = oSrc.m_nTextureMode;
m_nRectable = oSrc.m_nRectable;
m_nTextureAlpha = oSrc.m_nTextureAlpha;
m_rcBounds.left = oSrc.m_rcBounds.left;
m_rcBounds.top = oSrc.m_rcBounds.top;
m_rcBounds.right = oSrc.m_rcBounds.right;
m_rcBounds.bottom = oSrc.m_rcBounds.bottom;
return (*this);
}
CString ToString()
{
return AddEffectForGroup(_T("ImagePaint-SetBrush"),
_T("type='") + NSAttributes::ToString(m_nBrushType)
+ _T("' color1='") + m_oColor1.ToString() + _T("' color2='") + m_oColor2.ToString()
+ _T("' alpha1='") + NSAttributes::ToString(m_Alpha1) + _T("' alpha2='") + NSAttributes::ToString(m_Alpha2)
+ _T("' texturepath='") + (CString)m_sTexturePath + _T("' texturealpha='") + NSAttributes::ToString(m_nTextureAlpha)
+ "' texturemode='" + NSAttributes::ToString(m_nTextureMode) + _T("'"));
//+ "' rectable='0' rect-left='" + Bounds.Left.ToString() + "' rect-top='" + Bounds.Top.ToString()
//+ "' rect-width='" + Bounds.Right.ToString() + "' rect-height='" + Bounds.Bottom.ToString() + "'");
}
CString ToString2()
{
return AddEffectForGroup(_T("brush"),
_T("brush-type='") + NSAttributes::ToString(m_nBrushType)
+ _T("' brush-color1='") + m_oColor1.ToString() + _T("' brush-color2='") + m_oColor2.ToString()
+ _T("' brush-alpha1='") + NSAttributes::ToString(m_Alpha1) + _T("' brush-alpha2='") + NSAttributes::ToString(m_Alpha2)
+ _T("' brush-texturepath='") + (CString)m_sTexturePath + _T("' brush-texturealpha='") + NSAttributes::ToString(m_nTextureAlpha)
+ "' brush-texturemode='" + NSAttributes::ToString(m_nTextureMode) + _T("'"));
//+ "' rectable='0' rect-left='" + Bounds.Left.ToString() + "' rect-top='" + Bounds.Top.ToString()
//+ "' rect-width='" + Bounds.Right.ToString() + "' rect-height='" + Bounds.Bottom.ToString() + "'");
}
};
#pragma once
#include "../../../../../Common/DocxFormat/Source/Base/Types_32.h"
namespace NSOfficeDrawing
{
#define BINARY_READER_CHECK_OUT_RANGE(index, count) \
if (index > count) \
{ \
index = count; \
return 0; \
}
class CBinaryReader
{
private:
BYTE* m_pBuffer;
DWORD m_lCount;
DWORD m_lOrigin;
public:
CBinaryReader(BYTE* pBuffer, DWORD lCount)
{
m_pBuffer = pBuffer;
m_lCount = lCount;
m_lOrigin = 0;
}
~CBinaryReader()
{
m_pBuffer = NULL;
m_lCount = 0;
}
public:
LONG ReadLONG() // int32
{
DWORD lOldOrigin = m_lOrigin;
m_lOrigin += 4;
BINARY_READER_CHECK_OUT_RANGE(m_lOrigin, m_lCount)
return *(_INT32*)(m_pBuffer + lOldOrigin);
}
DWORD ReadDWORD()
{
DWORD lOldOrigin = m_lOrigin;
m_lOrigin += 4;
BINARY_READER_CHECK_OUT_RANGE(m_lOrigin, m_lCount)
return *(DWORD*)(m_pBuffer + lOldOrigin);
}
WORD ReadWORD()
{
DWORD lOldOrigin = m_lOrigin;
m_lOrigin += 2;
BINARY_READER_CHECK_OUT_RANGE(m_lOrigin, m_lCount)
return *(WORD*)(m_pBuffer + lOldOrigin);
}
SHORT ReadSHORT()
{
DWORD lOldOrigin = m_lOrigin;
m_lOrigin += 2;
BINARY_READER_CHECK_OUT_RANGE(m_lOrigin, m_lCount)
return *(short*)(m_pBuffer + lOldOrigin);
}
double ReadDOUBLE()
{
DWORD lOldOrigin = m_lOrigin;
m_lOrigin += sizeof(double);
BINARY_READER_CHECK_OUT_RANGE(m_lOrigin, m_lCount)
return *(SHORT*)(m_pBuffer + lOldOrigin);
}
};
}
#pragma once
#include "../../../ASCOfficePPTFile/PPTFormatLib/Records/Drawing/ArtBlip.h"
#include "../../../../../Common/DocxFormat/Source/SystemUtility/File.h"
#include "Enums.h"
// , ,
// - ... ( PID')
class CProperty
{
public:
NSOfficeDrawing::PropertyId m_ePID;
bool m_bIsBlip;
bool m_bComplex;
DWORD m_lValue;
BYTE* m_pOptions;
// - value, m_bComplex == true
bool m_bIsTruncated;
public:
CProperty()
{
m_ePID = NSOfficeDrawing::left;
m_bIsBlip = false;
m_bComplex = false;
m_lValue = 0;
m_pOptions = NULL;
m_bIsTruncated = false;
}
~CProperty()
{
RELEASEARRAYOBJECTS(m_pOptions);
}
void FromStream(POLE::Stream* pStream)
{
// ...
// bComplex
// .. Complex - ,
USHORT lMem = StreamUtils::ReadWORD(pStream);
m_ePID = (NSOfficeDrawing::PropertyId)(lMem & 0x3FFF);
m_bIsBlip = ((lMem & 0x4000) == 0x4000);
m_bComplex = ((lMem & 0x8000) == 0x8000);
m_lValue = StreamUtils::ReadDWORD(pStream);
}
void ComplexFromStream(POLE::Stream* pStream)
{
if (m_bComplex && m_lValue > 0)
{
if (NSOfficeDrawing::dgmConstrainBounds == m_ePID ||
NSOfficeDrawing::fillShadeColors == m_ePID ||
NSOfficeDrawing::lineDashStyle == m_ePID ||
NSOfficeDrawing::pAdjustHandles == m_ePID ||
NSOfficeDrawing::pConnectionSites == m_ePID ||
NSOfficeDrawing::pConnectionSitesDir == m_ePID ||
NSOfficeDrawing::pInscribe == m_ePID ||
NSOfficeDrawing::pSegmentInfo == m_ePID ||
NSOfficeDrawing::pVertices == m_ePID ||
NSOfficeDrawing::pGuides == m_ePID ||
NSOfficeDrawing::pWrapPolygonVertices == m_ePID ||
NSOfficeDrawing::pRelationTbl == m_ePID ||
NSOfficeDrawing::tableRowProperties == m_ePID ||
NSOfficeDrawing::lineLeftDashStyle == m_ePID ||
NSOfficeDrawing::lineTopDashStyle == m_ePID ||
NSOfficeDrawing::lineRightDashStyle == m_ePID ||
NSOfficeDrawing::lineBottomDashStyle == m_ePID)
{
WORD nElems = StreamUtils::ReadWORD(pStream);
WORD nElemsAlloc = StreamUtils::ReadWORD(pStream);
WORD nElemSize = StreamUtils::ReadWORD(pStream);
if (0xFFF0 == nElemSize)
{
nElemSize = 4;
m_bIsTruncated = TRUE;
}
LONG dwSize = nElems * nElemSize;
if (m_lValue != (dwSize + 6))
{
bool b = false;
}
m_lValue = dwSize;
}
switch( m_ePID )
{
case NSOfficeDrawing::fillBlip:
{
SRecordHeader oHeader;
if (oHeader.ReadFromStream(pStream) == false )
{
return;
}
switch (oHeader.RecType)
{
case RECORD_TYPE_ESCHER_BLIP_EMF:
case RECORD_TYPE_ESCHER_BLIP_WMF:
case RECORD_TYPE_ESCHER_BLIP_PICT:
case RECORD_TYPE_ESCHER_BLIP_JPEG:
case RECORD_TYPE_ESCHER_BLIP_PNG:
case RECORD_TYPE_ESCHER_BLIP_DIB:
case RECORD_TYPE_ESCHER_BLIP_TIFF:
{
CRecordOfficeArtBlip art_blip;
art_blip.ReadFromStream(oHeader, pStream);
}
}
}break;
default:
{
if (0 == m_lValue)
{
return;
}
RELEASEARRAYOBJECTS(m_pOptions);
m_pOptions = new BYTE[m_lValue];
ULONG lReadBytes = 0;
lReadBytes = pStream->read(m_pOptions, m_lValue);
if (lReadBytes != m_lValue)
{
return;
}
}
}
}
}
CString ToString()
{
CString str = _T("");
str.Format(_T("%d,%d,%d,%d"), (long)m_ePID, (long)m_bIsBlip, (long)m_bComplex, (long)m_lValue);
// - xml -
/*if (m_bComplex)
{
CString strProp = CDirectory::BYTEArrayToString(m_pOptions, m_lValue);
if (NSOfficeDrawing::pibName == m_ePID)
{
strProp = (CString)CDirectory::BYTEArrayToStringW(m_pOptions, m_lValue);
}
str += _T(" options=") + strProp;
}*/
return _T("<Property command='") + str + _T("'/>");
}
};
//
class CProperties
{
public:
std::vector<CProperty> m_arProperties;
// - instance, ,
// - RecordHeader
long m_lCount;
public:
CProperties() : m_arProperties()
{
}
~CProperties()
{
m_lCount = 0;
m_arProperties.clear();
}
void FromStream(POLE::Stream* pStream, long lCount)
{
m_lCount = lCount;
for (long lIndex = 0; lIndex < m_lCount; ++lIndex)
{
CProperty elem;
m_arProperties.push_back(elem);
m_arProperties[lIndex].FromStream(pStream);
}
//
// pid' ( -)
for (long lIndex = 0; lIndex < m_lCount; ++lIndex)
{
m_arProperties[lIndex].ComplexFromStream(pStream);
}
}
CString ToString()
{
CString str = _T("");
for (size_t nIndex = 0; nIndex < m_arProperties.size(); ++nIndex)
{
str += m_arProperties[nIndex].ToString();
}
return _T("<Properties>") + str + _T("</Properties>");
}
DWORD GetLen()
{
DWORD dwLen = 6 * m_lCount;
for (long nIndex = 0; nIndex < m_lCount; ++nIndex)
{
if (m_arProperties[nIndex].m_bComplex)
{
dwLen += m_arProperties[nIndex].m_lValue;
}
}
return dwLen;
}
};
#pragma once
//#include "stdafx.h"
#include "Formula.h"
LONG NSGuidesVML::CFormula::Calculate(NSGuidesVML::CFormulasManager* pManager)
{
if ((0 > m_lIndex) || (m_lIndex >= pManager->m_arResults.size()))
return 0;
if (0xFFFFFFFF != pManager->m_arResults[m_lIndex])
{
return pManager->m_arResults[m_lIndex];
}
LONG lResult = 0;
LONG lGuidesCount = pManager->m_arFormulas.size();
LONG lAdjCount = pManager->m_pAdjustments->size();
LONG a1 = m_lParam1;
if (ptFormula == m_eType1)
{
a1 = (m_lParam1 >= lGuidesCount) ? 0 : pManager->m_arFormulas[m_lParam1].Calculate(pManager);
}
else if (ptAdjust == m_eType1)
{
a1 = (m_lParam1 >= lAdjCount) ? 0 : (*(pManager->m_pAdjustments))[m_lParam1];
}
LONG b1 = m_lParam2;
if (ptFormula == m_eType2)
{
b1 = (m_lParam2 >= lGuidesCount) ? 0 : pManager->m_arFormulas[m_lParam2].Calculate(pManager);
}
else if (ptAdjust == m_eType2)
{
b1 = (m_lParam2 >= lAdjCount) ? 0 : (*(pManager->m_pAdjustments))[m_lParam2];
}
LONG c1 = m_lParam3;
if (ptFormula == m_eType3)
{
c1 = (m_lParam3 >= lGuidesCount) ? 0 : pManager->m_arFormulas[m_lParam3].Calculate(pManager);
}
else if (ptAdjust == m_eType3)
{
c1 = (m_lParam3 >= lAdjCount) ? 0 : (*(pManager->m_pAdjustments))[m_lParam3];
}
double a = (double)a1;
double b = (double)b1;
double c = (double)c1;
double dRes = 0.0;
try
{
//
switch (m_eFormulaType)
{
case ftSum: { dRes = a + b - c; break; }
case ftProduct: {
if (0 == c)
c = 1;
dRes = a * b / c;
break;
}
case ftMid: { dRes = (a + b) / 2.0; break; }
case ftAbsolute: { dRes = abs(a); break; }
case ftMin: { dRes = (std::min)(a, b); break; }
case ftMax: { dRes = (std::max)(a, b); break; }
case ftIf: { dRes = (a > 0) ? b : c; break; }
case ftSqrt: { dRes = sqrt(a); break; }
case ftMod: { dRes = sqrt(a*a + b*b + c*c); break; }
case ftSin: {
//dRes = a * sin(b);
//dRes = a * sin(b / pow2_16);
dRes = a * sin(M_PI * b / (pow2_16 * 180));
break;
}
case ftCos: {
//dRes = a * cos(b);
//dRes = a * cos(b / pow2_16);
dRes = a * cos(M_PI * b / (pow2_16 * 180));
break;
}
case ftTan: {
//dRes = a * tan(b);
dRes = a * tan(M_PI * b / (pow2_16 * 180));
break;
}
case ftAtan2: {
dRes = 180 * pow2_16 * atan2(b,a) / M_PI;
break;
}
case ftSinatan2: { dRes = a * sin(atan2(c,b)); break; }
case ftCosatan2: { dRes = a * cos(atan2(c,b)); break; }
case ftSumangle: {
//dRes = a + b - c;
dRes = a + b * pow2_16 - c * pow2_16;
/*while (23592960 < dRes)
{
dRes -= 23592960;
}
while (-23592960 > dRes)
{
dRes += 23592960;
}*/
break;
}
case ftEllipse: {
if (0 == b)
b = 1;
dRes = c * sqrt(1-(a*a/(b*b)));
break;
}
case ftVal: { dRes = a; break; }
default: break;
};
}
catch (...)
{
dRes = 0;
}
lResult = (LONG)dRes;
pManager->m_arResults[m_lIndex] = lResult;
return lResult;
}
#pragma once
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include "./../Common.h"
#include "./../../../../../Common/DocxFormat/Source/XML/xmlutils.h"
//#include "./../../../../../DesktopEditor/cximage/CxImage/ximadef.h"
//#include "../../../../../ASCOfficePPTXFile/PPTXFormat/Logic/rectdef.h"
#include "./../../../../../DesktopEditor/graphics/aggplustypes.h"
namespace NSGuidesVML
{
enum FormulaType
{
// VML
ftSum = 0, // a + b - c
ftProduct = 1, // a * b / c
ftMid = 2, // (a + b) / 2
ftAbsolute = 3, // abs(a)
ftMin = 4, // min(a,b)
ftMax = 5, // max(a,b)
ftIf = 6, // if a > 0 ? b : c
ftMod = 7, // sqrt(a*a + b*b + c*c)
ftAtan2 = 8, // atan2(b,a)
ftSin = 9, // a * sin(b)
ftCos = 10, // a * cos(b)
ftCosatan2 = 11, // a * cos(atan2(c,b))
ftSinatan2 = 12, // a * sin(atan2(c,b))
ftSqrt = 13, // sqrt(a)
ftSumangle = 14, // a + b - c
ftEllipse = 15, // c * sqrt(1-(a/b)2)
ftTan = 16, // a * tan(b)
ftVal = 17 // a
};
#define VML_GUIDE_COUNT 18
const LPSTR VML_GUIDE_TYPE[VML_GUIDE_COUNT] = {
"sum",
"prod",
"mid",
"abs",
"min",
"max",
"if",
"mod",
"atan2",
"sin",
"cos",
"cosatan2",
"sinatan2",
"sqrt",
"sumangle",
"ellipse",
"tan",
"val"
};
const BYTE VML_GUIDE_PARAM_COUNT[VML_GUIDE_COUNT] = {
3,
3,
2,
1,
2,
2,
3,
3,
2,
2,
2,
3,
3,
1,
3,
3,
2,
1
};
enum ParamType
{
ptFormula = 0,
ptAdjust = 1,
ptValue = 2
};
static LONG GetValue(CString strParam, ParamType& ptType, bool& bRes,
long lShapeWidth = ShapeSizeVML, long lShapeHeight = ShapeSizeVML)
{
ptType = ptValue;
bRes = true;
if ('#' == strParam[0])
{
ptType = ptAdjust;
return (LONG)XmlUtils::GetInteger(strParam.Mid(1));
}
else if ('@' == strParam[0])
{
ptType = ptFormula;
return (LONG)XmlUtils::GetInteger(strParam.Mid(1));
}
else if (!NSStringUtils::IsNumber(strParam))
{
if (_T("width") == strParam)
{
return lShapeWidth;
}
else if (_T("height") == strParam)
{
return lShapeHeight;
}
else if (_T("pixelWidth") == strParam)
{
return lShapeWidth;
}
else if (_T("pixelHeight") == strParam)
{
return lShapeHeight;
}
else if (_T("pixelLineWidth") == strParam || _T("lineDrawn") == strParam)
{
return 1;
}
else
{
bRes = false;
return 0;
}
}
else
{
ptType = ptValue;
return (LONG)XmlUtils::GetInteger(strParam);
}
}
static FormulaType GetFormula(CString strName, bool& bRes)
{
bRes = true;
if (_T("sum") == strName) return ftSum;
else if ((_T("prod") == strName) || (_T("product") == strName)) return ftProduct;
else if (_T("mid") == strName) return ftMid;
else if ((_T("absolute") == strName) || (_T("abs") == strName)) return ftAbsolute;
else if (_T("min") == strName) return ftMin;
else if (_T("max") == strName) return ftMax;
else if (_T("if") == strName) return ftIf;
else if (_T("sqrt") == strName) return ftSqrt;
else if (_T("mod") == strName) return ftMod;
else if (_T("sin") == strName) return ftSin;
else if (_T("cos") == strName) return ftCos;
else if (_T("tan") == strName) return ftTan;
else if (_T("atan2") == strName) return ftAtan2;
else if (_T("sinatan2") == strName) return ftSinatan2;
else if (_T("cosatan2") == strName) return ftCosatan2;
else if (_T("sumangle") == strName) return ftSumangle;
else if (_T("ellipse") == strName) return ftEllipse;
else if (_T("val") == strName) return ftVal;
else bRes = false;
return ftVal;
}
}
namespace NSGuidesVML
{
struct SPointType
{
ParamType x;
ParamType y;
};
struct SPointExist
{
bool x;
bool y;
SPointExist()
{
x = false;
y = false;
}
};
struct SHandle
{
Aggplus::POINT gdRef;
SPointType gdRefType;
SPointExist bRefExist;
SPointExist bRefPolarExist;
Aggplus::POINT Max;
SPointType MaxType;
SPointExist bMaxExist;
SPointExist bMaxPolarExist;
Aggplus::POINT Min;
SPointType MinType;
SPointExist bMinExist;
SPointExist bMinPolarExist;
Aggplus::POINT Pos;
SPointType PosType;
Aggplus::POINT PolarCentre;
SPointType PolarCentreType;
};
class CFormulasManager;
class CFormula
{
public:
FormulaType m_eFormulaType;
int m_lIndex;
LONG m_lParam1;
ParamType m_eType1;
LONG m_lParam2;
ParamType m_eType2;
LONG m_lParam3;
ParamType m_eType3;
private:
long m_lCountRecurs;
public:
CFormula()
{
m_eFormulaType = ftSum;
m_lIndex = 0;
m_lParam1 = 0; m_eType1 = ptValue;
m_lParam2 = 0; m_eType2 = ptValue;
m_lParam3 = 0; m_eType3 = ptValue;
m_lCountRecurs = 0;
}
CFormula(int nIndex)
{
m_eFormulaType = ftSum;
m_lIndex = nIndex;
m_lParam1 = 0; m_eType1 = ptValue;
m_lParam2 = 0; m_eType2 = ptValue;
m_lParam3 = 0; m_eType3 = ptValue;
m_lCountRecurs = 0;
}
CFormula& operator =(const CFormula& oSrc)
{
m_eFormulaType = oSrc.m_eFormulaType;
m_lIndex = oSrc.m_lIndex;
m_lParam1 = oSrc.m_lParam1;
m_eType1 = oSrc.m_eType1;
m_lParam2 = oSrc.m_lParam2;
m_eType2 = oSrc.m_eType2;
m_lParam3 = oSrc.m_lParam3;
m_eType3 = oSrc.m_eType3;
m_lCountRecurs = 0;
return (*this);
}
void FromString(CString strFormula, long lShapeWidth = ShapeSizeVML, long lShapeHeight = ShapeSizeVML)
{
std::vector<CString> oArrayParams;
NSStringUtils::ParseString(_T(" "), strFormula, &oArrayParams);
int nCount = oArrayParams.size();
if (0 >= nCount)
return;
bool bRes = true;
m_eFormulaType = GetFormula(oArrayParams[0], bRes);
ParamType ptType = ptValue;
if (1 < nCount)
{
m_lParam1 = GetValue(oArrayParams[1], ptType, bRes, lShapeWidth, lShapeHeight);
m_eType1 = ptType;
}
if (2 < nCount)
{
m_lParam2 = GetValue(oArrayParams[2], ptType, bRes, lShapeWidth, lShapeHeight);
m_eType2 = ptType;
}
if (3 < nCount)
{
m_lParam3 = GetValue(oArrayParams[3], ptType, bRes, lShapeWidth, lShapeHeight);
m_eType3 = ptType;
}
}
LONG Calculate(CFormulasManager* pManager);
};
class CFormulasManager
{
public:
std::vector<LONG>* m_pAdjustments;
std::vector<LONG> m_arResults;
std::vector<CFormula> m_arFormulas;
long m_lShapeWidth;
long m_lShapeHeight;
public:
CFormulasManager() : m_arFormulas(), m_arResults()
{
m_pAdjustments = NULL;
m_lShapeWidth = ShapeSizeVML;
m_lShapeHeight = ShapeSizeVML;
}
CFormulasManager& operator =(const CFormulasManager& oSrc)
{
m_pAdjustments = oSrc.m_pAdjustments;
m_lShapeWidth = oSrc.m_lShapeWidth;
m_lShapeHeight = oSrc.m_lShapeHeight;
m_arResults.clear();
for (int nIndex = 0; nIndex < oSrc.m_arResults.size(); ++nIndex)
{
m_arResults.push_back(oSrc.m_arResults[nIndex]);
}
m_arFormulas.clear();
for (int nIndex = 0; nIndex < oSrc.m_arFormulas.size(); ++nIndex)
{
m_arFormulas.push_back(oSrc.m_arFormulas[nIndex]);
}
return (*this);
}
void Clear()
{
m_pAdjustments = NULL;
m_lShapeWidth = ShapeSizeVML;
m_lShapeHeight = ShapeSizeVML;
m_arFormulas.clear();
m_arResults.clear();
}
void Clear(std::vector<LONG>* pAdjusts)
{
m_pAdjustments = pAdjusts;
//m_arFormulas.clear();
//m_arResults.clear();
for (int nIndex = 0; nIndex < m_arResults.size(); ++nIndex)
{
m_arResults[nIndex] = 0xFFFFFFFF;
}
}
void AddFormula(CString strFormula)
{
CFormula oFormula(m_arFormulas.size());
oFormula.FromString(strFormula, m_lShapeWidth, m_lShapeHeight);
m_arFormulas.push_back(oFormula);
m_arResults.push_back(0xFFFFFFFF);
}
void AddFormula(CFormula oFormula)
{
oFormula.m_lIndex = m_arFormulas.size();
m_arFormulas.push_back(oFormula);
m_arResults.push_back(0xFFFFFFFF);
}
void CalculateResults()
{
for (int index = 0; index < m_arFormulas.size(); ++index)
{
LONG lResult = m_arFormulas[index].Calculate(this);
}
//m_pAdjustments = NULL;
//m_arFormulas.clear();
}
};
}
#pragma once
#include "../PPTShape.h"
// 51
class CAccentBorderCallout2Type : public CPPTShape
{
public:
CAccentBorderCallout2Type()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3@4@5nfem@4,l@4,21600nfem,l21600,r,21600l,21600xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
AddGuide(_T("val #4"));
AddGuide(_T("val #5"));
m_arAdjustments.push_back(-10080);
m_arAdjustments.push_back(24300);
m_arAdjustments.push_back(-3600);
m_arAdjustments.push_back(4050);
m_arAdjustments.push_back(-1800);
m_arAdjustments.push_back(4050);
LoadConnectorsList(_T("@0,@1;10800,0;10800,21600;0,10800;21600,10800"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#2,#3");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("#4,#5");
m_arHandles.push_back(oHandle3);
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 44
class CAccentCallout1Type : public CPPTShape
{
public:
CAccentCallout1Type()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3nfem@2,l@2,21600nfem,l21600,r,21600l,21600nsxe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
m_arAdjustments.push_back(-8280);
m_arAdjustments.push_back(24300);
m_arAdjustments.push_back(-1800);
m_arAdjustments.push_back(4050);
LoadConnectorsList(_T("@0,@1;10800,0;10800,21600;0,10800;21600,10800"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#2,#3");
m_arHandles.push_back(oHandle2);
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 45
class CAccentCallout2Type : public CPPTShape
{
public:
CAccentCallout2Type()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3@4@5nfem@4,l@4,21600nfem,l21600,r,21600l,21600nsxe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
AddGuide(_T("val #4"));
AddGuide(_T("val #5"));
m_arAdjustments.push_back(-10080);
m_arAdjustments.push_back(24300);
m_arAdjustments.push_back(-3600);
m_arAdjustments.push_back(4050);
m_arAdjustments.push_back(-1800);
m_arAdjustments.push_back(4050);
LoadConnectorsList(_T("@0,@1;10800,0;10800,21600;0,10800;21600,10800"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#2,#3");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("#4,#5");
m_arHandles.push_back(oHandle3);
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 46
class CAccentCallout3Type : public CPPTShape
{
public:
CAccentCallout3Type()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3@4@5@6@7nfem@6,l@6,21600nfem,l21600,r,21600l,21600nsxe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
AddGuide(_T("val #4"));
AddGuide(_T("val #5"));
AddGuide(_T("val #6"));
AddGuide(_T("val #7"));
m_arAdjustments.push_back(23400);
m_arAdjustments.push_back(24400);
m_arAdjustments.push_back(25200);
m_arAdjustments.push_back(21600);
m_arAdjustments.push_back(25200);
m_arAdjustments.push_back(4050);
m_arAdjustments.push_back(23400);
m_arAdjustments.push_back(4050);
LoadConnectorsList(_T("@0,@1;10800,0;10800,21600;0,10800;21600,10800"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#2,#3");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("#4,#5");
m_arHandles.push_back(oHandle3);
CHandle_ oHandle4;
oHandle4.position = _T("#6,#7");
m_arHandles.push_back(oHandle4);
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 179
class CAccentCallout90Type : public CPPTShape
{
public:
CAccentCallout90Type()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3nfem,l21600,r,21600l,21600nsxe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
m_arAdjustments.push_back(-1800);
m_arAdjustments.push_back(24300);
m_arAdjustments.push_back(-1800);
m_arAdjustments.push_back(4050);
LoadConnectorsList(_T("@0,@1;10800,0;10800,21600;0,10800;21600,10800"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#2,#3");
m_arHandles.push_back(oHandle2);
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 194
class CActionButtonBackType : public CPPTShape
{
public:
CActionButtonBackType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@12@9nfl@11@4@12@10xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 196
class CActionButtonBeginType : public CPPTShape
{
public:
CActionButtonBeginType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@12@9l@17@4@12@10xem@11@9l@16@9@16@10@11@10xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 1 8"));
AddGuide(_T("prod @13 1 4"));
AddGuide(_T("sum @11 @14 0"));
AddGuide(_T("sum @11 @15 0"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @16 @5 0"));
AddGuide(_T("sum @17 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 189
class CActionButtonBlankType : public CPPTShape
{
public:
CActionButtonBlankType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0e");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 198
class CActionButtonDocType : public CPPTShape
{
public:
CActionButtonDocType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@12@9nfl@12@10@13@10@13@14@15@9xem@15@9nfl@15@14@13@14e");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("prod #0 3 4"));
AddGuide(_T("sum @3 @11 6075"));
AddGuide(_T("sum @3 6075 @11"));
AddGuide(_T("sum @4 @5 4050"));
AddGuide(_T("sum @13 @5 4050"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @13 @5 0"));
AddGuide(_T("sum @14 @5 0"));
AddGuide(_T("sum @15 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 195
class CActionButtonEndType : public CPPTShape
{
public:
CActionButtonEndType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@11@9l@16@4@11@10xem@17@9l@12@9@12@10@17@10xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 3 4"));
AddGuide(_T("prod @13 7 8"));
AddGuide(_T("sum @11 @14 0"));
AddGuide(_T("sum @11 @15 0"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @16 @5 0"));
AddGuide(_T("sum @17 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 191
class CActionButtonHelpType : public CPPTShape
{
public:
CActionButtonHelpType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@33@27nfqy@3@9@40@27@39@4@37@29l@37@30@36@30@36@29qy@37@28@39@27@3@26@34@27xem@3@31nfqx@35@32@3@10@38@32@3@31xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 1 7"));
AddGuide(_T("prod @13 3 14"));
AddGuide(_T("prod @13 2 7"));
AddGuide(_T("prod @13 5 14"));
AddGuide(_T("prod @13 11 28"));
AddGuide(_T("prod @13 3 7"));
AddGuide(_T("prod @13 4 7"));
AddGuide(_T("prod @13 17 28"));
AddGuide(_T("prod @13 9 14"));
AddGuide(_T("prod @13 21 28"));
AddGuide(_T("prod @13 11 14"));
AddGuide(_T("prod @13 25 28"));
AddGuide(_T("sum @9 @14 0"));
AddGuide(_T("sum @9 @16 0"));
AddGuide(_T("sum @9 @18 0"));
AddGuide(_T("sum @9 @21 0"));
AddGuide(_T("sum @9 @23 0"));
AddGuide(_T("sum @9 @24 0"));
AddGuide(_T("sum @9 @25 0"));
AddGuide(_T("sum @11 @15 0"));
AddGuide(_T("sum @11 @17 0"));
AddGuide(_T("sum @11 @18 0"));
AddGuide(_T("sum @11 @19 0"));
AddGuide(_T("sum @11 @20 0"));
AddGuide(_T("sum @11 @21 0"));
AddGuide(_T("sum @11 @22 0"));
AddGuide(_T("sum @11 @24 0"));
AddGuide(_T("sum @3 @5 0"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @26 @5 0"));
AddGuide(_T("sum @27 @5 0"));
AddGuide(_T("sum @28 @5 0"));
AddGuide(_T("sum @29 @5 0"));
AddGuide(_T("sum @30 @5 0"));
AddGuide(_T("sum @31 @5 0"));
AddGuide(_T("sum @32 @5 0"));
AddGuide(_T("sum @33 @5 0"));
AddGuide(_T("sum @34 @5 0"));
AddGuide(_T("sum @35 @5 0"));
AddGuide(_T("sum @36 @5 0"));
AddGuide(_T("sum @37 @5 0"));
AddGuide(_T("sum @38 @5 0"));
AddGuide(_T("sum @39 @5 0"));
AddGuide(_T("sum @40 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 190
class CActionButtonHomeType : public CPPTShape
{
public:
CActionButtonHomeType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@3@9nfl@11@4@28@4@28@10@33@10@33@4@12@4@32@26@32@24@31@24@31@25xem@31@25nfl@32@26em@28@4nfl@33@4em@29@10nfl@29@27@30@27@30@10e");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 1 16"));
AddGuide(_T("prod @13 1 8"));
AddGuide(_T("prod @13 3 16"));
AddGuide(_T("prod @13 5 16"));
AddGuide(_T("prod @13 7 16"));
AddGuide(_T("prod @13 9 16"));
AddGuide(_T("prod @13 11 16"));
AddGuide(_T("prod @13 3 4"));
AddGuide(_T("prod @13 13 16"));
AddGuide(_T("prod @13 7 8"));
AddGuide(_T("sum @9 @14 0"));
AddGuide(_T("sum @9 @16 0"));
AddGuide(_T("sum @9 @17 0"));
AddGuide(_T("sum @9 @21 0"));
AddGuide(_T("sum @11 @15 0"));
AddGuide(_T("sum @11 @18 0"));
AddGuide(_T("sum @11 @19 0"));
AddGuide(_T("sum @11 @20 0"));
AddGuide(_T("sum @11 @22 0"));
AddGuide(_T("sum @11 @23 0"));
AddGuide(_T("sum @3 @5 0"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @24 @5 0"));
AddGuide(_T("sum @25 @5 0"));
AddGuide(_T("sum @26 @5 0"));
AddGuide(_T("sum @27 @5 0"));
AddGuide(_T("sum @28 @5 0"));
AddGuide(_T("sum @29 @5 0"));
AddGuide(_T("sum @30 @5 0"));
AddGuide(_T("sum @31 @5 0"));
AddGuide(_T("sum @32 @5 0"));
AddGuide(_T("sum @33 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 192
class CActionButtonInfoType : public CPPTShape
{
public:
CActionButtonInfoType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@3@9nfqx@11@4@3@10@12@4@3@9xem@3@25nfqx@33@26@3@27@36@26@3@25xem@32@28nfl@32@29@34@29@34@30@32@30@32@31@37@31@37@30@35@30@35@28xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 1 32"));
AddGuide(_T("prod @13 5 32"));
AddGuide(_T("prod @13 9 32"));
AddGuide(_T("prod @13 5 16"));
AddGuide(_T("prod @13 3 8"));
AddGuide(_T("prod @13 13 32"));
AddGuide(_T("prod @13 19 32"));
AddGuide(_T("prod @13 5 8"));
AddGuide(_T("prod @13 11 16"));
AddGuide(_T("prod @13 13 16"));
AddGuide(_T("prod @13 7 8"));
AddGuide(_T("sum @9 @14 0"));
AddGuide(_T("sum @9 @15 0"));
AddGuide(_T("sum @9 @16 0"));
AddGuide(_T("sum @9 @17 0"));
AddGuide(_T("sum @9 @18 0"));
AddGuide(_T("sum @9 @23 0"));
AddGuide(_T("sum @9 @24 0"));
AddGuide(_T("sum @11 @17 0"));
AddGuide(_T("sum @11 @18 0"));
AddGuide(_T("sum @11 @19 0"));
AddGuide(_T("sum @11 @20 0"));
AddGuide(_T("sum @11 @21 0"));
AddGuide(_T("sum @11 @22 0"));
AddGuide(_T("sum @3 @5 0"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @25 @5 0"));
AddGuide(_T("sum @26 @5 0"));
AddGuide(_T("sum @27 @5 0"));
AddGuide(_T("sum @28 @5 0"));
AddGuide(_T("sum @29 @5 0"));
AddGuide(_T("sum @30 @5 0"));
AddGuide(_T("sum @31 @5 0"));
AddGuide(_T("sum @32 @5 0"));
AddGuide(_T("sum @33 @5 0"));
AddGuide(_T("sum @34 @5 0"));
AddGuide(_T("sum @35 @5 0"));
AddGuide(_T("sum @36 @5 0"));
AddGuide(_T("sum @37 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 200
class CActionButtonMovieType : public CPPTShape
{
public:
CActionButtonMovieType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@11@39nfl@11@44@31@44@32@43@33@43@33@47@35@47@35@45@36@45@38@46@12@46@12@41@38@41@37@42@35@42@35@41@34@40@32@40@31@39xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 1455 21600"));
AddGuide(_T("prod @13 1905 21600"));
AddGuide(_T("prod @13 2325 21600"));
AddGuide(_T("prod @13 16155 21600"));
AddGuide(_T("prod @13 17010 21600"));
AddGuide(_T("prod @13 19335 21600"));
AddGuide(_T("prod @13 19725 21600"));
AddGuide(_T("prod @13 20595 21600"));
AddGuide(_T("prod @13 5280 21600"));
AddGuide(_T("prod @13 5730 21600"));
AddGuide(_T("prod @13 6630 21600"));
AddGuide(_T("prod @13 7492 21600"));
AddGuide(_T("prod @13 9067 21600"));
AddGuide(_T("prod @13 9555 21600"));
AddGuide(_T("prod @13 13342 21600"));
AddGuide(_T("prod @13 14580 21600"));
AddGuide(_T("prod @13 15592 21600"));
AddGuide(_T("sum @11 @14 0"));
AddGuide(_T("sum @11 @15 0"));
AddGuide(_T("sum @11 @16 0"));
AddGuide(_T("sum @11 @17 0"));
AddGuide(_T("sum @11 @18 0"));
AddGuide(_T("sum @11 @19 0"));
AddGuide(_T("sum @11 @20 0"));
AddGuide(_T("sum @11 @21 0"));
AddGuide(_T("sum @9 @22 0"));
AddGuide(_T("sum @9 @23 0"));
AddGuide(_T("sum @9 @24 0"));
AddGuide(_T("sum @9 @25 0"));
AddGuide(_T("sum @9 @26 0"));
AddGuide(_T("sum @9 @27 0"));
AddGuide(_T("sum @9 @28 0"));
AddGuide(_T("sum @9 @29 0"));
AddGuide(_T("sum @9 @30 0"));
AddGuide(_T("sum @9 @31 0"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @31 @5 0"));
AddGuide(_T("sum @32 @5 0"));
AddGuide(_T("sum @33 @5 0"));
AddGuide(_T("sum @34 @5 0"));
AddGuide(_T("sum @35 @5 0"));
AddGuide(_T("sum @36 @5 0"));
AddGuide(_T("sum @37 @5 0"));
AddGuide(_T("sum @38 @5 0"));
AddGuide(_T("sum @39 @5 0"));
AddGuide(_T("sum @40 @5 0"));
AddGuide(_T("sum @41 @5 0"));
AddGuide(_T("sum @42 @5 0"));
AddGuide(_T("sum @43 @5 0"));
AddGuide(_T("sum @44 @5 0"));
AddGuide(_T("sum @45 @5 0"));
AddGuide(_T("sum @46 @5 0"));
AddGuide(_T("sum @47 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 193
class CActionButtonNextType : public CPPTShape
{
public:
CActionButtonNextType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@11@9nfl@12@4@11@10xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 197
class CActionButtonReturnType : public CPPTShape
{
public:
CActionButtonReturnType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@12@21nfl@23@9@3@21@24@21@24@20qy@3@19l@25@19qx@26@20l@26@21@11@21@11@20qy@25@10l@3@10qx@22@20l@22@21xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 7 8"));
AddGuide(_T("prod @13 3 4"));
AddGuide(_T("prod @13 5 8"));
AddGuide(_T("prod @13 3 8"));
AddGuide(_T("prod @13 1 4"));
AddGuide(_T("sum @9 @15 0"));
AddGuide(_T("sum @9 @16 0"));
AddGuide(_T("sum @9 @18 0"));
AddGuide(_T("sum @11 @14 0"));
AddGuide(_T("sum @11 @15 0"));
AddGuide(_T("sum @11 @16 0"));
AddGuide(_T("sum @11 @17 0"));
AddGuide(_T("sum @11 @18 0"));
AddGuide(_T("sum @3 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @19 @5 0"));
AddGuide(_T("sum @20 @5 0"));
AddGuide(_T("sum @21 @5 0"));
AddGuide(_T("sum @22 @5 0"));
AddGuide(_T("sum @23 @5 0"));
AddGuide(_T("sum @24 @5 0"));
AddGuide(_T("sum @25 @5 0"));
AddGuide(_T("sum @26 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 199
class CActionButtonSoundType : public CPPTShape
{
public:
CActionButtonSoundType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem@0@0nfl@0@2@1@2@1@0xem,nfl@0@0em,21600nfl@0@2em21600,21600nfl@1@2em21600,nfl@1@0em@11@21nfl@11@22@24@22@25@10@25@9@24@21xem@26@21nfl@12@20em@26@4nfl@12@4em@26@22nfl@12@23e");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("prod #0 3 2"));
AddGuide(_T("sum @1 @5 0"));
AddGuide(_T("sum @2 @5 0"));
AddGuide(_T("sum @0 @4 8100"));
AddGuide(_T("sum @2 8100 @4"));
AddGuide(_T("sum @0 @3 8100"));
AddGuide(_T("sum @1 8100 @3"));
AddGuide(_T("sum @10 0 @9"));
AddGuide(_T("prod @13 1 8"));
AddGuide(_T("prod @13 5 16"));
AddGuide(_T("prod @13 5 8"));
AddGuide(_T("prod @13 11 16"));
AddGuide(_T("prod @13 3 4"));
AddGuide(_T("prod @13 7 8"));
AddGuide(_T("sum @9 @14 0"));
AddGuide(_T("sum @9 @15 0"));
AddGuide(_T("sum @9 @17 0"));
AddGuide(_T("sum @9 @19 0"));
AddGuide(_T("sum @11 @15 0"));
AddGuide(_T("sum @11 @16 0"));
AddGuide(_T("sum @11 @18 0"));
AddGuide(_T("sum @4 @5 0"));
AddGuide(_T("sum @9 @5 0"));
AddGuide(_T("sum @10 @5 0"));
AddGuide(_T("sum @11 @5 0"));
AddGuide(_T("sum @12 @5 0"));
AddGuide(_T("sum @20 @5 0"));
AddGuide(_T("sum @21 @5 0"));
AddGuide(_T("sum @22 @5 0"));
AddGuide(_T("sum @23 @5 0"));
AddGuide(_T("sum @24 @5 0"));
AddGuide(_T("sum @25 @5 0"));
AddGuide(_T("sum @26 @5 0"));
m_arAdjustments.push_back(1350);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 91
class CBentArrowType : public CPPTShape
{
public:
CBentArrowType()
{
m_bConcentricFill = false;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m21600,6079l@0,0@0@1,12427@1qx,12158l,21600@4,21600@4,12158qy12427@2l@0@2@0,12158xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("sum 12158 0 #1"));
AddGuide(_T("sum @2 0 #1"));
AddGuide(_T("prod @3 32768 32059"));
AddGuide(_T("prod @4 1 2"));
AddGuide(_T("sum 21600 0 #0"));
AddGuide(_T("prod @6 #1 6079"));
AddGuide(_T("sum @7 #0 0"));
m_arAdjustments.push_back(18000);
m_arAdjustments.push_back(3000);
LoadConnectorsList(_T("@0,0;@0,12158;@5,21600;21600,6079"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("12427,@1,@8,@2;0,12158,@4,21600"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
oHandle1.xrange = _T("12427,21600");
oHandle1.yrange = _T("0,6079");
m_arHandles.push_back(oHandle1);
}
};
#pragma once
#include "../PPTShape.h"
// 34
class CBentConnectorType : public CPPTShape
{
public:
CBentConnectorType()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinRound;
//m_strPathLimoX = _T("m0,0l@0,0r0,21600l21600,21600nfe");
//m_strPathLimoY = _T("m0,0l,@0r21600,0l21600,21600nfe");
m_strPath = _T("m,l@0,0@0,21600,21600,21600e");//m_strPathLimoX;
AddGuide(_T("val #0"));
m_arAdjustments.push_back(10800);
LoadConnectorsList(_T("0,0;21600,21600"));
}
};
\ No newline at end of file
#pragma once
#include "../PPTShape.h"
// 90
class CBentUpArrowType : public CPPTShape
{
public:
CBentUpArrowType()
{
m_bConcentricFill = false;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
m_strPath = _T("m@4,l@0@2@5@2@5@12,0@12,,21600@1,21600@1@2,21600@2xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("sum @3 10800 0"));
AddGuide(_T("sum 21600 #0 #1"));
AddGuide(_T("sum #1 #2 0"));
AddGuide(_T("prod @6 1 2"));
AddGuide(_T("prod #1 2 1"));
AddGuide(_T("sum @8 0 21600"));
AddGuide(_T("prod 21600 @0 @1"));
AddGuide(_T("prod 21600 @4 @1"));
AddGuide(_T("prod 21600 @5 @1"));
AddGuide(_T("prod 21600 @7 @1"));
AddGuide(_T("prod #1 1 2"));
AddGuide(_T("sum @5 0 @4"));
AddGuide(_T("sum @0 0 @4"));
AddGuide(_T("prod @2 @15 @16"));
m_arAdjustments.push_back(9257);
m_arAdjustments.push_back(18514);
m_arAdjustments.push_back(7200);
LoadConnectorsList(_T("@4,0;@0,@2;0,@11;@14,21600;@1,@13;21600,@2"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,@12,@1,21600;@5,@17,@1,21600"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("@2,@9");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#1,#2");
oHandle2.xrange = _T("@4,21600");
oHandle2.yrange = _T("0,@0");
m_arHandles.push_back(oHandle2);
}
};
#pragma once
#include "../PPTShape.h"
// 47
class CBorderCallout1Type : public CPPTShape
{
public:
CBorderCallout1Type()
{
m_bConcentricFill = true;
m_eJoin = NSOfficeDrawing::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3nfem,l21600,r,21600l,21600xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
m_arAdjustments.push_back(-8280);
m_arAdjustments.push_back(24300);
m_arAdjustments.push_back(-1800);
m_arAdjustments.push_back(4050);
LoadConnectorsList(_T("@0,@1;10800,0;10800,21600;0,10800;21600,10800"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#2,#3");
m_arHandles.push_back(oHandle2);
}
};
\ No newline at end of file
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment