Compare commits

...

121 Commits

Author SHA1 Message Date
a61543bff9 to develop 2023-02-22 18:47:05 +03:00
299e91c747 CurvedLeftArrow revert 2023-02-22 16:23:11 +03:00
6633335912 fix shapes scaling 2023-02-22 15:46:17 +03:00
c47e0369a1 . 2023-02-21 14:21:14 +03:00
416b120842 Merge remote-tracking branch 'origin/fix/coderefact' into develop 2023-02-21 13:09:12 +03:00
1e34dc736e . 2023-02-21 13:08:33 +03:00
4c20531b30 Merge remote-tracking branch 'origin/hotfix/v7.3.3' into develop 2023-02-21 13:06:23 +03:00
ecd2a5eba1 fix bug #61294 2023-02-21 12:22:15 +03:00
2ee8dead85 Merge branch 'develop' into fix/coderefact 2023-02-21 11:56:16 +03:00
88ae812a90 common shapetypes for doc, xls, pptx
TODO: make ShapeType as parent for PptShape
2023-02-21 11:55:59 +03:00
835f88edf5 add userProtectedRanges 2023-02-21 00:20:14 +03:00
698def3934 fix bug #61070 2023-02-20 11:51:47 +03:00
6228c41af4 chart refactoring
chart external rels
2023-02-20 09:59:06 +03:00
bb0d2eea84 Merge branch 'develop' into fix/coderefact 2023-02-17 15:27:58 +03:00
a704a74fed common shapes for xls, pptx 2023-02-17 15:23:50 +03:00
a4fd9eba94 Merge remote-tracking branch 'origin/fix/v.7.3.3-chart-ex' into develop 2023-02-16 19:29:00 +03:00
1f3a104356 chart refactoring 2023-02-16 19:24:16 +03:00
907734a202 pptx short project
Logic pri
2023-02-15 20:04:19 +03:00
3a4792e858 add extension 2023-02-15 17:52:27 +03:00
223c16f90e refactoring chart ooxml 2023-02-15 17:51:17 +03:00
2eeaaa7197 xls short project
Logic pri
2023-02-15 17:28:12 +03:00
9b419ce470 pptx refact 2023-02-15 13:15:39 +03:00
7f17ec7b29 doc: shapetypes pri 2023-02-14 16:21:32 +03:00
1fbbabeff0 . 2023-02-14 13:31:37 +03:00
bd895669f5 Merge branch 'hotfix/v7.3.3' into fix/v.7.3.3-chart-ex 2023-02-13 17:47:34 +03:00
ce6aeb48b7 - test project 2023-02-13 14:47:56 +03:00
1427de8435 Merge branch 'develop' into fix/coderefact 2023-02-13 11:02:06 +03:00
57145240be Merge pull request #1141 from ONLYOFFICE/feature/x2ttester
Fix bug 60966
2023-02-08 21:01:13 +03:00
7d6a29d063 Fix bug 60966
Add timeouts & update README
2023-02-08 20:18:21 +03:00
f5c4dab90b Update x2ttester
timeouts in lunix
2023-02-08 18:42:54 +03:00
4c9e904d10 . 2023-02-08 09:45:16 +03:00
edeebcc438 . 2023-02-07 17:53:37 +03:00
6fb6021ad3 Update x2ttester
Windows (bug 60966)
2023-02-07 15:56:53 +03:00
c14083795f . 2023-02-07 15:22:24 +03:00
62d05c02fb Merge branch 'feature/odf_4' into develop 2023-02-07 11:56:50 +03:00
117edc9c96 fix main_document 2023-02-07 11:54:42 +03:00
a1195e038e add chart extensible 2023-02-07 10:25:47 +03:00
ff1e280d7d Merge branch 'develop' into feature/odf_4 2023-02-07 10:22:36 +03:00
000f64267f Merge pull request #1138 from ONLYOFFICE/fix/fix-develop
Fix/fix develop
2023-02-07 10:21:41 +03:00
1e5e533d68 Merge remote-tracking branch 'origin/hotfix/v7.3.3' into fix/fix-develop 2023-02-07 10:20:49 +03:00
ac0cdd8fa2 Merge branch 'develop' into fix/coderefact 2023-02-07 11:43:00 +05:00
f121da9f47 Merge remote-tracking branch 'origin/release/v7.3.0' into develop 2023-02-04 17:49:33 +03:00
d6dfe0623f pptx forward decs 2023-02-02 15:14:17 +03:00
6f8251fe04 pptx forward decs 2023-02-01 10:06:56 +03:00
d5ab557578 fix build 2023-01-31 16:35:31 +03:00
3b779ded76 pptx minor forward decs 2023-01-25 18:45:15 +03:00
d49b74c0e0 minors 2023-01-25 13:03:11 +03:00
43ebeec93c . 2023-01-23 20:32:21 +03:00
32a851b4e4 Merge commit 'a039a36b8fec3c6060b38aef476d8ce8e1845c76' into feature/odf_4 2023-01-23 19:56:11 +03:00
830ef2ad60 refactoring
includes using forward declarations
2023-01-17 15:42:33 +03:00
1792a24827 Merge branch 'develop' into fix/coderefact 2023-01-16 21:17:13 +03:00
0f1d473360 [test] Update test 2023-01-15 17:40:51 +03:00
c0097de544 docx refactoring
Correct includes using forward declarations
2023-01-14 10:59:34 +03:00
c07ae1bbb4 Merge branch 'develop' into fix/coderefact 2023-01-13 17:23:19 +03:00
b848c1b828 . 2023-01-13 17:14:51 +03:00
1a7be8a6e8 Merge branch 'develop' into fix/coderefact 2023-01-13 15:52:36 +03:00
06716f1607 . 2023-01-13 12:07:22 +03:00
6a5f065833 Merge branch 'develop' into fix/coderefact 2023-01-13 07:22:12 +03:00
1b6c278b87 minor 2023-01-12 22:45:54 +03:00
996475fca2 . 2023-01-12 22:29:34 +03:00
243214b060 . 2023-01-12 22:14:07 +03:00
7382845517 . 2023-01-12 22:02:50 +03:00
463befcc67 Merge remote-tracking branch 'origin/fix/coderefact' into develop 2023-01-12 16:08:55 +03:00
b1148caaed Merge remote-tracking branch 'origin/fix/bug59621' into develop 2023-01-12 16:08:39 +03:00
c37105e4ae Xlsx refactoring
Correct includes using forward declarations.
x2t compiled(debug/release) and checked.
2023-01-12 15:44:13 +03:00
ec547778b5 Xlsx refactoring
correct includes using forward declarations
2023-01-12 09:26:29 +03:00
c14b1c73bf Xlsx refactoring
correct includes vai forward declarations
2023-01-11 21:53:50 +03:00
24236ed509 Merge branch 'develop' into fix/coderefact 2022-12-30 16:56:59 +03:00
11f645cb2b Merge branch 'develop' of https://github.com/ONLYOFFICE/core into develop 2022-12-30 16:54:42 +03:00
dd02f82697 Merge branch 'develop' into fix/coderefact 2022-12-30 16:36:19 +03:00
fba7ca95f8 . 2022-12-30 15:08:19 +03:00
d2a7f573c6 . 2022-12-30 12:38:56 +03:00
b0769432d3 Merge remote-tracking branch 'origin/fix/coderefact' into develop 2022-12-30 12:16:52 +03:00
bd343c88d1 Merge remote-tracking branch 'origin/release/v7.3.0' into develop 2022-12-30 12:15:42 +03:00
243d8dd2e1 xls impl separation
current step is needed to compare the implementations of shapes and further merge with pptx
2022-12-30 12:15:40 +03:00
2a8e7667bd xls changes
revert common xls-pptx shapes (required common BaseShape)
2022-12-29 19:27:45 +03:00
4fa275fd55 bindoc: -unused includes 2022-12-29 14:16:08 +03:00
8182c95dfc txt: -unused includes 2022-12-29 08:20:01 +03:00
36a4aaad45 docx: - unused includes 2022-12-28 20:29:38 +03:00
e3e3f8a4e6 upd for #6e14576
ComplexTypes_AdditionConstructors: constructor calls a virtual function
2022-12-28 09:05:05 +03:00
5c46c77beb Merge remote-tracking branch 'origin/fix/coderefact' into develop 2022-12-26 15:43:26 +03:00
975a2409ab Merge remote-tracking branch 'origin/release/v7.3.0' into develop 2022-12-26 15:42:48 +03:00
6e14576097 fix: constructor calls a virtual function
docx, pptx
2022-12-26 12:15:47 +03:00
c280e9c829 ppt, xls common shapes
duplicate shapes have been removed
2022-12-21 13:48:44 +03:00
d60d5eca86 ppt shapes (pri impl separation) 2022-12-18 10:02:52 +03:00
6a966c9cb9 xls, ppt, pptx changes
- implicit includes have been resolved
- preparation before common shapes(pri)
- x2t compiled
2022-12-17 14:19:53 +03:00
a637e40bad Merge remote-tracking branch 'origin/fix/coderefact' into develop 2022-12-16 16:01:31 +03:00
cdf3918489 Merge remote-tracking branch 'origin/release/v7.3.0' into develop 2022-12-16 15:57:52 +03:00
4d94f248e2 pri for all shapes (ppt + pptx)
x2t compiled and checked.
TODO: _T->L
2022-12-15 12:51:42 +03:00
e91f52ca16 minors
DEFINE_SHAPE_CLASS for ppt & pptx
2022-12-15 09:47:48 +03:00
e77311983a fix build
x2t compiled
2022-12-14 21:44:42 +03:00
c0a833fac6 pptx shapes refact + pri 2022-12-14 21:13:51 +03:00
2093579b77 limits pri 2022-12-14 15:50:01 +03:00
3bd847237b beauty code pptx limits 2022-12-14 00:23:15 +03:00
7aea6bf451 operator= by string problem 2022-12-13 21:00:29 +03:00
db6ab0b003 Merge remote-tracking branch 'origin/release/v7.3.0' into develop 2022-12-12 17:43:44 +03:00
2e2258f369 . 2022-12-12 17:39:53 +03:00
fc3f8e61fa Merge remote-tracking branch 'origin/release/v7.3.0' into develop 2022-12-12 17:26:03 +03:00
74866e2898 . 2022-12-12 17:19:31 +03:00
14f04509a7 . 2022-12-12 17:18:51 +03:00
6a14a4daad Merge remote-tracking branch 'origin/release/v7.3.0' into develop 2022-12-12 11:37:20 +03:00
7efd8f5962 Merge pull request #1080 from ONLYOFFICE/release/v7.3.0
Fix build
2022-11-24 10:43:55 +03:00
e544845048 Merge pull request #1079 from ONLYOFFICE/release/v7.3.0
Fix build
2022-11-24 10:02:56 +03:00
26c2029300 Merge pull request #1077 from ONLYOFFICE/release/v7.3.0
Release/v7.3.0
2022-11-23 19:25:39 +03:00
3e092303c1 Merge branch 'release/v7.3.0' into develop 2022-11-23 10:47:04 +03:00
d173bfa1be [x2t] For bug 55472 2022-11-07 14:51:50 +03:00
c971cc1199 Change project params 2022-11-05 13:48:47 +03:00
0d95984c2a Change framework version (4.7.5 => 4.5) 2022-11-05 13:42:04 +03:00
e4d8ee832f Merge pull request #1064 from ONLYOFFICE/release/v7.3.0
Release/v7.3.0
2022-11-04 22:20:37 +03:00
76b8b83952 Merge remote-tracking branch 'origin/feature/odf_3' into feature/odf_4 2022-05-30 13:23:27 +03:00
e79c577a14 Fonts 2022-05-30 12:42:47 +04:00
f67c76eef0 Fonts 2022-05-30 12:41:10 +04:00
35b7a817f6 Merge remote-tracking branch 'origin/feature/odf_3' into feature/odf_4 2022-05-25 10:36:43 +03:00
569ef80535 Fonts and size 2022-05-24 18:16:56 +04:00
affd63ee09 Fonts and size 2022-05-13 15:58:14 +04:00
da1f26f028 Fonts and size 2022-05-13 14:00:06 +04:00
230b11a060 colorized log and lim 2022-04-20 17:29:15 +04:00
b3b1b89b1f colorized diacritics 2022-04-14 12:22:24 +04:00
aadea510b0 colorized formulas 2022-04-13 10:20:12 +04:00
dc9db9c4fc colorized math formulas 2022-04-11 21:33:05 +04:00
ddee54c7c5 color styles 2022-04-05 19:54:35 +04:00
1484 changed files with 66769 additions and 92388 deletions

View File

@ -20,11 +20,10 @@
</ItemGroup>
<PropertyGroup Label="Globals">
<ProjectGuid>{10124551-28B8-4CA0-8FBA-420CF9602CF3}</ProjectGuid>
<TargetFrameworkVersion>v4.7.2</TargetFrameworkVersion>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<Keyword>ManagedCProj</Keyword>
<RootNamespace>doctrendererwrapper</RootNamespace>
<ProjectName>docbuilder.net</ProjectName>
<WindowsTargetPlatformVersion>10.0</WindowsTargetPlatformVersion>
</PropertyGroup>
<Import Project="$(VCTargetsPath)\Microsoft.Cpp.Default.props" />
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|Win32'" Label="Configuration">

View File

@ -1,191 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "PathShape.h"
#include "../../../OOXML/Common/SimpleTypes_Base.h"
namespace NSCustomShapesConvert
{
class CHandle_
{
public:
std::wstring position;
std::wstring xrange;
std::wstring yrange;
std::wstring switchHandle;
std::wstring polar;
std::wstring 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> m_arGuides;
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;
std::wstring m_strTransformXml;
std::wstring m_strPath;
std::wstring m_strRect;
LONG m_lLimoX;
LONG m_lLimoY;
CPath m_oPath;
public:
CBaseShape()
{
}
virtual bool LoadTextRect(const std::wstring& xml) = 0;
virtual bool LoadPathList(const std::wstring& xml) = 0;
static CBaseShape* CreateByType(int ShapeType);
bool SetType(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(size_t i = 0; i < Shape->m_arAdjustments.size(); i++)
m_arAdjustments.push_back(Shape->m_arAdjustments[i]);
m_arGuides.clear();
for(size_t i = 0; i < Shape->m_arGuides.size(); i++)
m_arGuides.push_back(Shape->m_arGuides[i]);
m_eJoin = Shape->m_eJoin;
m_bConcentricFill = Shape->m_bConcentricFill;
m_arConnectors.clear();
for(size_t i = 0; i < Shape->m_arConnectors.size(); i++)
m_arConnectors.push_back(Shape->m_arConnectors[i]);
m_arConnectorAngles.clear();
for(size_t i = 0; i < Shape->m_arConnectorAngles.size(); i++)
m_arConnectorAngles.push_back(Shape->m_arConnectorAngles[i]);
m_arTextRects.clear();
for(size_t i = 0; i < Shape->m_arTextRects.size(); i++)
m_arTextRects.push_back(Shape->m_arTextRects[i]);
m_arHandles.clear();
for(size_t 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(size_t i = 0; i < m_arAdjustments.size(); i++)
// Shape->m_arAdjustments.push_back(m_arAdjustments[i]);
// Shape->Guides.clear();
// for(size_t 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(size_t i = 0; i < m_arConnectors.size(); i++)
// Shape->m_arConnectors.push_back(m_arConnectors[i]);
// Shape->m_arConnectorAngles.clear();
// for(size_t i = 0; i < m_arConnectorAngles.size(); i++)
// Shape->m_arConnectorAngles.push_back(m_arConnectorAngles[i]);
// Shape->m_arTextRects.clear();
// for(size_t 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;
//}
};
}

View File

@ -1,420 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "BaseShape.h"
#include "FormulaShape.h"
#include "../../../OOXML/SystemUtility/File.h"
namespace NSCustomShapesConvert
{
class CSegment
{
public:
RulesType m_eRuler;
WORD m_nCount;
CSegment(RulesType eType = rtMoveTo, WORD nCount = 2)
{
m_eRuler = eType;
m_nCount = nCount;
}
CSegment(const CSegment& oSrc)
{
m_eRuler = oSrc.m_eRuler;
m_nCount = oSrc.m_nCount;
}
CSegment& operator=(const CSegment& oSrc)
{
m_eRuler = oSrc.m_eRuler;
m_nCount = oSrc.m_nCount;
return (*this);
}
~CSegment()
{
}
};
class CGuide
{
public:
FormulaType m_eType;
BYTE m_param_type1;
BYTE m_param_type2;
BYTE m_param_type3;
WORD m_param_value1;
WORD m_param_value2;
WORD m_param_value3;
CGuide()
{
m_eType = ftVal;
m_param_type1 = 0;
m_param_type2 = 0;
m_param_type3 = 0;
m_param_value1 = 0;
m_param_value2 = 0;
m_param_value3 = 0;
}
CGuide(const CGuide& oSrc)
{
*this = oSrc;
}
CGuide& operator=(const CGuide& oSrc)
{
m_eType = oSrc.m_eType;
m_param_type1 = oSrc.m_param_type1;
m_param_type2 = oSrc.m_param_type2;
m_param_type3 = oSrc.m_param_type3;
m_param_value1 = oSrc.m_param_value1;
m_param_value2 = oSrc.m_param_value2;
m_param_value3 = oSrc.m_param_value3;
return *this;
}
void SetToFormula(NSCustomShapesConvert::CFormula& oFormula)
{
oFormula.m_eFormulaType = m_eType;
SetParam(m_param_type1, m_param_value1, oFormula.m_eType1, oFormula.m_lParam1);
SetParam(m_param_type2, m_param_value2, oFormula.m_eType2, oFormula.m_lParam2);
SetParam(m_param_type3, m_param_value3, oFormula.m_eType3, oFormula.m_lParam3);
}
private:
void SetParam(BYTE type, WORD param, ParamType& param_type, LONG& param_value)
{
if (0 == type)
{
param_type = ptValue;
param_value = (LONG)param;
}
if (0x0140 == param)
{
param_type = ptValue;
param_value = ShapeSizeVML / 2;
return;
}
if (0x0141 == param)
{
param_type = ptValue;
param_value = ShapeSizeVML / 2;
return;
}
if (0x0142 == param)
{
param_type = ptValue;
param_value = ShapeSizeVML;
return;
}
if (0x0143 == param)
{
param_type = ptValue;
param_value = ShapeSizeVML;
return;
}
if ((0x0147 <= param) && (param <= 0x014E))
{
param_type = ptAdjust;
param_value = (LONG)(param - 0x0147);
return;
}
if ((0x0400 <= param) && (param <= 0x047F))
{
param_type = ptFormula;
param_value = (LONG)(param - 0x0400);
return;
}
param_type = ptValue;
param_value = ShapeSizeVML;
}
};
class CCustomVML
{
public:
RulesType m_ePath;
std::vector<Aggplus::POINT> m_arVertices;
std::vector<CSegment> m_arSegments;
std::vector<CGuide> m_arGuides;
std::vector<LONG>* m_pAdjustValues;
bool m_bIsPathPresent;
CCustomVML() : m_arVertices(), m_arSegments(), m_arGuides(), m_pAdjustValues(NULL)
{
m_ePath = rtCurveTo/*rtLineTo*/;
m_bIsPathPresent = false;
}
CCustomVML(const CCustomVML& oSrc)
{
*this = oSrc;
}
CCustomVML& operator=(const CCustomVML& oSrc)
{
m_ePath = oSrc.m_ePath;
m_arVertices.clear();
m_arVertices.insert(m_arVertices.end(), oSrc.m_arVertices.begin(), oSrc.m_arVertices.end());
m_arSegments.clear();
m_arSegments.insert(m_arSegments.end(), oSrc.m_arSegments.begin(), oSrc.m_arSegments.end());
m_arGuides.clear();
m_arGuides.insert(m_arGuides.end(), oSrc.m_arGuides.begin(), oSrc.m_arGuides.end());
m_pAdjustValues = oSrc.m_pAdjustValues;
m_bIsPathPresent = oSrc.m_bIsPathPresent;
return *this;
}
~CCustomVML()
{
}
bool IsCustom()
{
return (!m_arVertices.empty() && (m_bIsPathPresent || !m_arSegments.empty()));
}
void SetPath(RulesType ePath)
{
m_ePath = ePath;
m_bIsPathPresent = true;
}
void LoadAHs(unsigned char* buffer, int buffer_size)
{
}
void addSegment(RulesType eRuler, _UINT16 nCount)
{
CSegment oInfo(eRuler, nCount);
m_arSegments.push_back(oInfo);
}
void addGuide(CGuide & oInfo)
{
m_arGuides.push_back(oInfo);
}
void addAdjust(int lIndex, int lValue)
{
if (NULL == m_pAdjustValues)
return;
int lCount = m_pAdjustValues->size();
while (lCount <= lIndex)
{
m_pAdjustValues->push_back(0);
lCount = m_pAdjustValues->size();
}
(*m_pAdjustValues)[lIndex] = lValue;
}
void SetAdjusts(std::vector<LONG>* pList)
{
m_pAdjustValues = pList;
}
void ToCustomShape(CBaseShape* pShape, NSCustomShapesConvert::CFormulasManager& oManager)
{
if ((NULL == pShape) || (!IsCustom()))
return;
oManager.Clear();
// сначала заполним формулы
for (size_t nIndex = 0; nIndex < m_arGuides.size(); ++nIndex)
{
NSCustomShapesConvert::CFormula oF;
m_arGuides[nIndex].SetToFormula(oF);
oManager.AddFormula(oF);
}
oManager.Clear(m_pAdjustValues);
std::wstring strPath = _T("");
bool bBreak = false;
long lMinF = (_INT32)0x80000000;
long lMaxF = (_INT32)0x8000007F;
int nGuideIndex_x , nGuideIndex_y;
if (0 == m_arSegments.size())
{
strPath = GetRulerVML(m_ePath);
for (size_t nIndex = 0; nIndex < m_arVertices.size(); ++nIndex)
{
nGuideIndex_x = nGuideIndex_y = -1;
if (lMaxF > m_arVertices[nIndex].x ) nGuideIndex_x = (DWORD)m_arVertices[nIndex].x - (DWORD)lMinF;
if (lMaxF > m_arVertices[nIndex].y ) nGuideIndex_y = (DWORD)m_arVertices[nIndex].y - (DWORD)lMinF;
if (nGuideIndex_x >= 0 && nGuideIndex_x < (int)m_arGuides.size())
{
strPath += std::to_wstring(m_arGuides[nGuideIndex_x].m_param_value1) + L",";
}
else
{
strPath += std::to_wstring(m_arVertices[nIndex].x) + L",";
}
if (nGuideIndex_y >= 0 && nGuideIndex_y < (int)m_arGuides.size())
{
strPath += std::to_wstring(m_arGuides[nGuideIndex_y].m_param_value1) + L",";
}
else
{
strPath += std::to_wstring(m_arVertices[nIndex].y) + L",";
}
}
strPath.erase(strPath.length() - 1);
}
else
{
size_t nStart = 0;
size_t nEnd = 0;
for (size_t nS = 0; nS < m_arSegments.size(); ++nS)
{
if (bBreak)
{
if ((rtEnd != m_arSegments[nS].m_eRuler) &&
(rtNoFill != m_arSegments[nS].m_eRuler) &&
(rtNoStroke != m_arSegments[nS].m_eRuler) &&
(rtClose != m_arSegments[nS].m_eRuler))
{
strPath += _T("e");
break;
}
}
if ((rtFillColor == m_arSegments[nS].m_eRuler) || (rtLineColor == m_arSegments[nS].m_eRuler))
{
if (nStart < m_arVertices.size())
{
if (rtFillColor == m_arSegments[nS].m_eRuler)
{
//m_oBrush.Color1 = (DWORD)m_arVertices[nStart].x; todooooo
//m_oBrush.Color2 = (DWORD)m_arVertices[nStart].y;
}
else
{
//m_oPen.Color = (DWORD)m_arVertices[nStart].x; todooooo
}
}
nEnd = nStart + m_arSegments[nS].m_nCount;
if (nEnd > m_arVertices.size())
nEnd = m_arVertices.size();
nStart = nEnd;
if (nEnd == m_arVertices.size())
{
bBreak = true;
}
continue;
}
strPath += GetRulerVML(m_arSegments[nS].m_eRuler);
nEnd = nStart + m_arSegments[nS].m_nCount;
if (nEnd > m_arVertices.size())
nEnd = m_arVertices.size();
for (size_t nV = nStart; nV < nEnd; ++nV)
{
nGuideIndex_x = nGuideIndex_y = -1;
if (lMaxF > m_arVertices[nV].x ) nGuideIndex_x = (DWORD)m_arVertices[nV].x - (DWORD)lMinF;
if (lMaxF > m_arVertices[nV].y ) nGuideIndex_y = (DWORD)m_arVertices[nV].y - (DWORD)lMinF;
if (nGuideIndex_x >= 0 && nGuideIndex_x < (int)m_arGuides.size() )
{
strPath += std::to_wstring(m_arGuides[nGuideIndex_x].m_param_value1) + L",";
}
else
{
strPath += std::to_wstring(m_arVertices[nV].x) + L",";
}
if (nGuideIndex_y >= 0 && nGuideIndex_y < (int)m_arGuides.size())
{
strPath += std::to_wstring(m_arGuides[nGuideIndex_y].m_param_value1) + L",";
}
else
{
strPath += std::to_wstring(m_arVertices[nV].y) + L",";
}
}
if (nEnd != nStart)
{
strPath.erase(strPath.length() - 1);
}
nStart = nEnd;
if (nEnd == m_arVertices.size())
{
bBreak = true;
}
}
}
oManager.CalculateResults();
pShape->LoadPathList(strPath);
}
};
}

View File

@ -1,298 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "CustomShape.h"
#include "PresetShapesHeader.h"
#ifndef EMU_MM
#define EMU_MM 36000.0
#endif
//-------------------------------------------------------------------------------
#define CREATE_BY_SPT(SHAPE_TYPE, CLASS_SHAPE_NAME) \
case SHAPE_TYPE: { pShape = new CLASS_SHAPE_NAME(); break; } \
//-------------------------------------------------------------------------------
using namespace ODRAW;
namespace NSCustomShapesConvert
{
CCustomShape* CCustomShape::CreateByType(oox::MSOSPT type)
{
CCustomShape* pShape = NULL;
switch (type)
{
// msosptNotchedCircularArrow 0x00000064 A value that SHOULD NOT be used.
// msosptHostControl 0x000000C9 A value that SHOULD NOT be used.
case sptNotchedCircularArrow:
case sptHostControl:
case 0: { pShape = new CRectangleType(); break; }
//CREATE_BY_SPT(sptMin, CLineType)
CREATE_BY_SPT(sptAccentBorderCallout90, CAccentBorderCallout90Type)
CREATE_BY_SPT(sptAccentBorderCallout1, CAccentBorderCallout1Type)
CREATE_BY_SPT(sptAccentBorderCallout2, CAccentBorderCallout2Type)
CREATE_BY_SPT(sptAccentBorderCallout3, CAccentBorderCallout3Type)
CREATE_BY_SPT(sptAccentCallout90, CAccentCallout90Type)
CREATE_BY_SPT(sptAccentCallout1, CAccentCallout1Type)
CREATE_BY_SPT(sptAccentCallout2, CAccentCallout2Type)
CREATE_BY_SPT(sptAccentCallout3, CAccentCallout3Type)
CREATE_BY_SPT(sptBorderCallout90, CBorderCallout90Type)
CREATE_BY_SPT(sptBorderCallout1, CBorderCallout1Type)
CREATE_BY_SPT(sptBorderCallout2, CBorderCallout2Type)
CREATE_BY_SPT(sptBorderCallout3, CBorderCallout3Type)
CREATE_BY_SPT(sptCallout90, CCallout90Type)
CREATE_BY_SPT(sptCallout1, CCallout1Type)
CREATE_BY_SPT(sptCallout2, CCallout2Type)
CREATE_BY_SPT(sptCallout3, CCallout3Type)
CREATE_BY_SPT(sptActionButtonBlank, CActionButtonBlankType)
CREATE_BY_SPT(sptActionButtonHome, CActionButtonHomeType)
CREATE_BY_SPT(sptActionButtonHelp, CActionButtonHelpType)
CREATE_BY_SPT(sptActionButtonInformation, CActionButtonInfoType)
CREATE_BY_SPT(sptActionButtonBackPrevious, CActionButtonBackType)
CREATE_BY_SPT(sptActionButtonForwardNext, CActionButtonNextType)
CREATE_BY_SPT(sptActionButtonBeginning, CActionButtonBeginType)
CREATE_BY_SPT(sptActionButtonEnd, CActionButtonEndType)
CREATE_BY_SPT(sptActionButtonReturn, CActionButtonReturnType)
CREATE_BY_SPT(sptActionButtonDocument, CActionButtonDocType)
CREATE_BY_SPT(sptActionButtonSound, CActionButtonSoundType)
CREATE_BY_SPT(sptActionButtonMovie, CActionButtonMovieType)
CREATE_BY_SPT(sptArc, CArcType)
CREATE_BY_SPT(sptLine, CLineType)
CREATE_BY_SPT(sptBentArrow, CBentArrowType)
CREATE_BY_SPT(sptBentUpArrow, CBentUpArrowType)
CREATE_BY_SPT(sptBevel, CBevelType)
CREATE_BY_SPT(sptBlockArc, CBlockArcType)
CREATE_BY_SPT(sptBracePair, CBracePairType)
CREATE_BY_SPT(sptBracketPair, CBracketPairType)
CREATE_BY_SPT(sptCan, CCanType)
CREATE_BY_SPT(sptChevron, CChevronType)
CREATE_BY_SPT(sptCircularArrow, CCircularArrowType)
CREATE_BY_SPT(sptCloudCallout, CCloudCalloutType)
CREATE_BY_SPT(sptCube, CCubeType)
CREATE_BY_SPT(sptCurvedDownArrow, CCurvedDownArrowType)
CREATE_BY_SPT(sptCurvedLeftArrow, CCurvedLeftArrowType)
CREATE_BY_SPT(sptCurvedRightArrow, CCurvedRightArrowType)
CREATE_BY_SPT(sptCurvedUpArrow, CCurvedUpArrowType)
CREATE_BY_SPT(sptDiamond, CDiamondType)
CREATE_BY_SPT(sptDonut, CDonutType)
CREATE_BY_SPT(sptDownArrowCallout, CDownArrowCalloutType)
CREATE_BY_SPT(sptDownArrow, CDownArrowType)
CREATE_BY_SPT(sptEllipse, CEllipseType)
CREATE_BY_SPT(sptEllipseRibbon, CEllipceRibbonType)
CREATE_BY_SPT(sptEllipseRibbon2, CEllipceRibbon2Type)
CREATE_BY_SPT(sptFlowChartAlternateProcess, CFlowChartAlternateProcessType)
CREATE_BY_SPT(sptFlowChartCollate, CFlowChartCollateType)
CREATE_BY_SPT(sptFlowChartConnector, CFlowChartConnectorType)
CREATE_BY_SPT(sptFlowChartDecision, CFlowChartDecisionType)
CREATE_BY_SPT(sptFlowChartDisplay, CFlowChartDisplayType)
CREATE_BY_SPT(sptFlowChartDelay, CFlowChartDelayType)
CREATE_BY_SPT(sptFlowChartDocument, CFlowChartDocumentType)
CREATE_BY_SPT(sptFlowChartExtract, CFlowChartExtractType)
CREATE_BY_SPT(sptFlowChartInputOutput, CFlowChartInputOutputType)
CREATE_BY_SPT(sptFlowChartInternalStorage, CFlowChartInternalStorageType)
CREATE_BY_SPT(sptFlowChartMagneticDisk, CFlowChartMagneticDiskType)
CREATE_BY_SPT(sptFlowChartMagneticDrum, CFlowChartMagneticDrumType)
CREATE_BY_SPT(sptFlowChartMagneticTape, CFlowChartMagneticTapeType)
CREATE_BY_SPT(sptFlowChartManualInput, CFlowChartManualInputType)
CREATE_BY_SPT(sptFlowChartManualOperation, CFlowChartManualOperationType)
CREATE_BY_SPT(sptFlowChartMerge, CFlowChartMergeType)
CREATE_BY_SPT(sptFlowChartMultidocument, CFlowChartMultidocumentType)
CREATE_BY_SPT(sptFlowChartOffpageConnector, CFlowChartOffpageConnectorType)
CREATE_BY_SPT(sptFlowChartOnlineStorage, CFlowChartOnlineStorageType)
CREATE_BY_SPT(sptFlowChartOr, CFlowChartOrType)
CREATE_BY_SPT(sptFlowChartPredefinedProcess, CFlowChartPredefinedProcessType)
CREATE_BY_SPT(sptFlowChartPreparation, CFlowChartPreparationType)
CREATE_BY_SPT(sptFlowChartProcess, CFlowChartProcessType)
CREATE_BY_SPT(sptFlowChartPunchedCard, CFlowChartPunchedCardType)
CREATE_BY_SPT(sptFlowChartPunchedTape, CFlowChartPunchedTapeType)
CREATE_BY_SPT(sptFlowChartSort, CFlowChartSortType)
CREATE_BY_SPT(sptFlowChartSummingJunction, CFlowChartSummingJunctionType)
CREATE_BY_SPT(sptFlowChartTerminator, CFlowChartTerminatorType)
CREATE_BY_SPT(sptFoldedCorner, CFoldedCornerType)
CREATE_BY_SPT(sptHeart, CHeartType)
CREATE_BY_SPT(sptHexagon, CHexagonType)
CREATE_BY_SPT(sptHomePlate, CHomePlateType)
CREATE_BY_SPT(sptIrregularSeal1, CIrregularSealOneType)
CREATE_BY_SPT(sptIrregularSeal2, CIrregularSealTwo)
CREATE_BY_SPT(sptIsocelesTriangle, CIsoscelesTriangleType)
CREATE_BY_SPT(sptLeftArrowCallout, CLeftArrowCalloutType)
CREATE_BY_SPT(sptLeftArrow, CLeftArrowType)
CREATE_BY_SPT(sptLeftBrace, CLeftBraceType)
CREATE_BY_SPT(sptLeftBracket, CLeftBracketType)
CREATE_BY_SPT(sptLeftRightArrowCallout, CLeftRightArrowCalloutType)
CREATE_BY_SPT(sptLeftRightArrow, CLeftRightArrowType)
CREATE_BY_SPT(sptLeftRightUpArrow, CLeftRightUpArrow)
CREATE_BY_SPT(sptLeftUpArrow, CLeftUpArrowType)
CREATE_BY_SPT(sptLightningBolt, CLightningBoltType)
CREATE_BY_SPT(sptMoon, CMoonType)
CREATE_BY_SPT(sptNoSmoking, CNoSmokingType)
CREATE_BY_SPT(sptNotchedRightArrow, CNotchedRightArrowType)
CREATE_BY_SPT(sptOctagon, COctagonType)
CREATE_BY_SPT(sptParallelogram, CParallelogramType)
CREATE_BY_SPT(sptPentagon, CPentagonType)
CREATE_BY_SPT(sptPlaque, CPlaqueType)
CREATE_BY_SPT(sptPlus, CPlusType)
CREATE_BY_SPT(sptQuadArrowCallout, CQuadArrowCalloutType)
CREATE_BY_SPT(sptQuadArrow, CQuadArrowType)
CREATE_BY_SPT(sptRectangle, CRectangleType)
CREATE_BY_SPT(sptRibbon, CRibbonDownType)
CREATE_BY_SPT(sptRibbon2, CRibbonUpType)
CREATE_BY_SPT(sptRightArrowCallout, CRightArrowCalloutType)
CREATE_BY_SPT(sptArrow, CRightArrowType)
CREATE_BY_SPT(sptRightBrace, CRightBracetype)
CREATE_BY_SPT(sptRightBracket, CRightBracketType)
CREATE_BY_SPT(sptRightTriangle, CRightTriangleType)
CREATE_BY_SPT(sptRoundRectangle, CRoundedRectangleType)
CREATE_BY_SPT(sptSeal16, CSeal16Type)
CREATE_BY_SPT(sptSeal24, CSeal24Type)
CREATE_BY_SPT(sptSeal32, CSeal32Type)
CREATE_BY_SPT(sptSeal4, CSeal4Type)
CREATE_BY_SPT(sptSeal8, CSeal8Type)
CREATE_BY_SPT(sptSmileyFace, CSmileyFaceType)
CREATE_BY_SPT(sptStar, CStarType)
CREATE_BY_SPT(sptStraightConnector1, CStraightConnectorType)
CREATE_BY_SPT(sptStripedRightArrow, CStripedRightArrowType)
CREATE_BY_SPT(sptSun, CSunType)
CREATE_BY_SPT(sptTextBox, CTextboxType)
CREATE_BY_SPT(sptTrapezoid, CTrapezoidType)
CREATE_BY_SPT(sptUpArrowCallout, CUpArrowCalloutType)
CREATE_BY_SPT(sptUpArrow, CUpArrowType)
CREATE_BY_SPT(sptUpDownArrowCallout, CUpDownArrowCalloutType)
CREATE_BY_SPT(sptUpDownArrow, CUpDownArrowType)
CREATE_BY_SPT(sptUturnArrow, CUturnArrowType)
CREATE_BY_SPT(sptVerticalScroll, CVerticalScrollType)
CREATE_BY_SPT(sptHorizontalScroll, CHorizontalScrollType)
CREATE_BY_SPT(sptWedgeEllipseCallout, CWedgeEllipseCalloutType)
CREATE_BY_SPT(sptWedgeRectCallout, CWedgeRectCalloutType)
CREATE_BY_SPT(sptWedgeRRectCallout, CWedgeRoundedRectCalloutType)
CREATE_BY_SPT(sptWave, CWaveType)
CREATE_BY_SPT(sptDoubleWave, CWaveDoubleType)
case sptBentConnector2:
case sptBentConnector3:
case sptBentConnector4:
case sptBentConnector5:
{
pShape = new CBentConnectorType();
break;
}
case sptCurvedConnector2:
case sptCurvedConnector3:
case sptCurvedConnector4:
case sptCurvedConnector5:
{
pShape = new CCurvedConnectorType();
break;
}
case sptTextPlainText:
case sptTextStop:
case sptTextTriangle:
case sptTextTriangleInverted:
case sptTextChevron:
case sptTextChevronInverted:
case sptTextRingInside:
case sptTextRingOutside:
case sptTextArchUpCurve:
case sptTextArchDownCurve:
case sptTextCircleCurve:
case sptTextButtonCurve:
case sptTextArchUpPour:
case sptTextArchDownPour:
case sptTextCirclePour:
case sptTextButtonPour:
case sptTextCurveUp:
case sptTextCurveDown:
case sptTextCascadeUp:
case sptTextCascadeDown:
case sptTextWave1:
case sptTextWave2:
case sptTextWave3:
case sptTextWave4:
case sptTextInflate:
case sptTextDeflate:
case sptTextInflateBottom:
case sptTextDeflateBottom:
case sptTextInflateTop:
case sptTextDeflateTop:
case sptTextDeflateInflate:
case sptTextDeflateInflateDeflate:
case sptTextFadeRight:
case sptTextFadeLeft:
case sptTextFadeUp:
case sptTextFadeDown:
case sptTextSlantUp:
case sptTextSlantDown:
case sptTextCanUp:
case sptTextCanDown:
{
pShape = new CTextboxType();
}
default: break;
};
if (NULL != pShape)
pShape->m_eType = type;
return pShape;
}
}

View File

@ -1,162 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "BaseShape.h"
#include "CustomGeomShape.h"
#include "../../XlsFile/Converter/ShapeType.h"
#include "../../Common/Vml/PPTShape/Enums.h"
namespace NSCustomShapesConvert
{
class CCustomShape : public NSCustomShapesConvert::CBaseShape
{
public:
oox::MSOSPT m_eType;
NSCustomShapesConvert::CFormulasManager m_oManager;
NSCustomShapesConvert::CCustomVML m_oCustomVML;
std::wstring m_strPathLimoX;
std::wstring m_strPathLimoY;
std::vector<std::wstring> m_arStringTextRects;
CCustomShape() : CBaseShape()
{
m_eType = oox::msosptNotPrimitive;
}
~CCustomShape()
{
}
virtual void AddGuide(const std::wstring& strGuide)
{
m_oManager.AddFormula(strGuide);
}
virtual bool LoadAdjustHandlesList(const std::wstring& xml)
{
return true;
}
virtual bool LoadConnectorsList(const std::wstring& xml)
{
return true;
}
virtual bool LoadTextRect(const std::wstring& xml)
{
std::vector<std::wstring> oArray;
NSStringUtils::ParseString(_T(";"), xml, oArray);
LONG lCount = (LONG)oArray.size();
if (lCount <= 0)
return true;
m_arStringTextRects.clear();
for (LONG i = 0; i < lCount; ++i)
{
m_arStringTextRects.push_back(oArray[i]);
}
return true;
}
virtual bool LoadPathList(const std::wstring& xml)
{
m_strPath = xml;
m_oPath.FromXML(xml, m_oManager);
return true;
}
virtual bool SetAdjustment(long index, long value)
{
if (index < (long)m_arAdjustments.size() && index >= 0)
{
m_arAdjustments[index] = value;
return TRUE;
}
return FALSE;
}
virtual void ReCalculate()
{
m_oManager.Clear(&m_arAdjustments);
m_oManager.CalculateResults();
if (_T("") == m_strPath)
return;
LoadPathList(m_strPath);
}
static CCustomShape* CreateByType(oox::MSOSPT type);
virtual bool SetProperties(CBaseShape* Shape)
{
if(Shape == NULL)
return false;
m_oManager = ((CCustomShape*)Shape)->m_oManager;
//m_strPathLimoX = ((CCustomShape*)Shape)->m_strPathLimoX;
//m_strPathLimoY = ((CCustomShape*)Shape)->m_strPathLimoY;
//m_arStringTextRects.clear();
//m_arStringTextRects.insert(m_arStringTextRects.end(), ((CCustomShape*)Shape)->m_arStringTextRects.begin(), ((CCustomShape*)Shape)->m_arStringTextRects.end());
return CBaseShape::SetProperties(Shape);
}
bool SetShapeType(oox::MSOSPT type)
{
CCustomShape* l_pShape = CreateByType(type);
if(l_pShape != NULL)
{
m_eType = type;
SetProperties(l_pShape);
delete l_pShape;
return true;
}
m_eType = oox::msosptNotPrimitive;
return false;
}
};
}

File diff suppressed because it is too large Load Diff

View File

@ -1,166 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "FormulaShape.h"
LONG NSCustomShapesConvert::CFormula::CalculateFormula(NSCustomShapesConvert::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].CalculateFormula(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].CalculateFormula(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].CalculateFormula(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;
}

View File

@ -1,409 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#ifndef _USE_MATH_DEFINES
#define _USE_MATH_DEFINES
#endif
#include <math.h>
#include "../../Common/Vml/Common.h"
#include "../../../DesktopEditor/xml/include/xmlutils.h"
#include "../../../DesktopEditor/graphics/aggplustypes.h"
#include "../../../OOXML/Base/Unit.h"
namespace NSCustomShapesConvert
{
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
static const char* 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(std::wstring 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.substr(1).c_str());
}
else if ('@' == strParam[0])
{
ptType = ptFormula;
return (LONG)XmlUtils::GetInteger(strParam.substr(1).c_str());
}
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 (int)XmlUtils::GetInteger(strParam.c_str());
}
}
static FormulaType GetFormula(std::wstring 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;
}
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(std::wstring strFormula, long lShapeWidth = ShapeSizeVML, long lShapeHeight = ShapeSizeVML)
{
std::vector<std::wstring> oArrayParams;
NSStringUtils::ParseString(_T(" "), strFormula, oArrayParams);
size_t nCount = oArrayParams.size();
if (nCount == 0)
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 CalculateFormula(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 (size_t nIndex = 0; nIndex < oSrc.m_arResults.size(); ++nIndex)
{
m_arResults.push_back(oSrc.m_arResults[nIndex]);
}
m_arFormulas.clear();
for (size_t nIndex = 0; nIndex < oSrc.m_arFormulas.size(); ++nIndex)
{
m_arFormulas.push_back(oSrc.m_arFormulas[nIndex]);
}
return (*this);
}
void Clear()
{
m_pAdjustments = NULL;
m_arFormulas.clear();
m_arResults.clear();
}
void Clear(std::vector<LONG>* pAdjusts)
{
m_pAdjustments = pAdjusts;
//m_arFormulas.clear();
//m_arResults.clear();
for (size_t nIndex = 0; nIndex < m_arResults.size(); ++nIndex)
{
m_arResults[nIndex] = 0xFFFFFFFF;
}
}
void AddFormula(std::wstring strFormula)
{
CFormula oFormula((int)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 = (int)m_arFormulas.size();
m_arFormulas.push_back(oFormula);
m_arResults.push_back(0xFFFFFFFF);
}
void CalculateResults()
{
for (size_t index = 0; index < m_arFormulas.size(); ++index)
{
LONG lResult = m_arFormulas[index].CalculateFormula(this);
}
}
};
}

View File

@ -1,918 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include <string>
#include <boost/algorithm/string.hpp>
#include "../../../DesktopEditor/graphics/GraphicsPath.h"
#define _USE_MATH_DEFINES
#include <math.h>//M_PI
#include <vector>
namespace NSCustomShapesConvert
{
const double c_dMasterUnitsToInchKoef = 1.0 / 576;
const double c_dInchToMillimetreKoef = 25.4;
const double c_dMasterUnitsToMillimetreKoef = c_dMasterUnitsToInchKoef * c_dInchToMillimetreKoef;
class CDoubleRect
{
public:
double left;
double top;
double right;
double bottom;
public:
CDoubleRect()
{
left = 0;
top = 0;
right = 0;
bottom = 0;
}
CDoubleRect& operator=(const CDoubleRect& oSrc)
{
left = oSrc.left;
top = oSrc.top;
right = oSrc.right;
bottom = oSrc.bottom;
return *this;
}
CDoubleRect(const CDoubleRect& oSrc)
{
*this = oSrc;
}
inline bool IsEqual(const CDoubleRect& oSrc, double dEps = 0.01)
{
return ((fabs(left - oSrc.left) < dEps) && (fabs(top - oSrc.top) < dEps) &&
(fabs(right - oSrc.right) < dEps) && (fabs(bottom - oSrc.bottom) < dEps));
}
inline double GetWidth() const
{
return right - left;
}
inline double GetHeight() const
{
return bottom - top;
}
inline void Scale(const double& dKoef)
{
left *= dKoef;
top *= dKoef;
right *= dKoef;
bottom *= dKoef;
}
};
class CGeomShapeInfo
{
public:
class CPointD
{
public:
double dX;
double dY;
public:
CPointD()
{
dX = 0;
dY = 0;
}
CPointD& operator= (const CPointD& oSrc)
{
dX = oSrc.dX;
dY = oSrc.dY;
return *this;
}
CPointD(const CPointD& oSrc)
{
*this = oSrc;
}
};
public:
double m_dLeft;
double m_dTop;
double m_dWidth;
double m_dHeight;
double m_dLimoX;
double m_dLimoY;
// нужен для регулировки по аспекту (limo)
CPointD m_oCurPoint;
double m_dRotate;
bool m_bFlipH;
bool m_bFlipV;
LONG m_lOriginalWidth;
LONG m_lOriginalHeight;
public:
CGeomShapeInfo()
{
m_dLeft = 0;
m_dTop = 0;
m_dWidth = 720;
m_dHeight = 576;
m_dLimoX = 0;
m_dLimoY = 0;
m_oCurPoint.dX = 0;
m_oCurPoint.dY = 0;
m_dRotate = 0.0;
m_bFlipH = false;
m_bFlipV = false;
m_lOriginalWidth = 0;
m_lOriginalHeight = 0;
}
~CGeomShapeInfo()
{
}
CGeomShapeInfo& operator =(const CGeomShapeInfo& oSrc)
{
m_dLeft = oSrc.m_dLeft;
m_dTop = oSrc.m_dTop;
m_dWidth = oSrc.m_dWidth;
m_dHeight = oSrc.m_dHeight;
m_dLimoX = oSrc.m_dLimoX;
m_dLimoY = oSrc.m_dLimoY;
m_oCurPoint = oSrc.m_oCurPoint;
m_dRotate = oSrc.m_dRotate;
m_bFlipH = oSrc.m_bFlipH;
m_bFlipV = oSrc.m_bFlipV;
m_lOriginalWidth = oSrc.m_lOriginalWidth;
m_lOriginalHeight = oSrc.m_lOriginalHeight;
return (*this);
}
inline void SetBounds(const CDoubleRect& oRect)
{
m_dLeft = oRect.left;
m_dTop = oRect.top;
m_dWidth = oRect.GetWidth();
m_dHeight = oRect.GetHeight();
}
inline LONG GetFlags()
{
LONG lFlags = 0;
if (m_bFlipH)
lFlags |= 0x0001;
if (m_bFlipV)
lFlags |= 0x0002;
return lFlags;
}
};
class CDoublePoint
{
public:
double dX;
double dY;
public:
CDoublePoint()
{
dX = 0;
dY = 0;
}
CDoublePoint& operator= (const CDoublePoint& oSrc)
{
dX = oSrc.dX;
dY = oSrc.dY;
return *this;
}
CDoublePoint(const CDoublePoint& oSrc)
{
*this = oSrc;
}
};
enum RulesType
{
// VML
rtLineTo = 0, // 2*
rtCurveTo = 1, // 6*
rtMoveTo = 2, // 2
rtClose = 3, // 0
rtEnd = 4, // 0
rtRMoveTo = 5, // 2*
rtRLineTo = 6, // 2*
rtRCurveTo = 7, // 6*
rtNoFill = 8, // 0
rtNoStroke = 9, // 0
rtAngleEllipseTo = 10, // 6*
rtAngleEllipse = 11, // 6*
rtArc = 12, // 8*
rtArcTo = 13, // 8*
rtClockwiseArcTo = 14, // 8*
rtClockwiseArc = 15, // 8*
rtEllipticalQuadrX = 16, // 2*
rtEllipticalQuadrY = 17, // 2*
rtQuadrBesier = 18, // 2 + 2*
rtFillColor = 20,
rtLineColor = 21,
// OOXML
rtOOXMLMoveTo = 0 + 100, // 2
rtOOXMLLineTo = 1 + 100, // 2*
rtOOXMLCubicBezTo = 2 + 100, // 6*
rtOOXMLArcTo = 3 + 100, // 8*
rtOOXMLQuadBezTo = 4 + 100, // 2 + 2*
rtOOXMLClose = 5 + 100, // 0
rtOOXMLEnd = 6 + 100 // 0
};
class CGraphicPath
{
public:
virtual void InternalClear()
{
m_lFlags = 0;
}
CGraphicPath()
{
InternalClear();
}
class CPart
{
public:
RulesType m_eType;
std::vector<CDoublePoint> m_arPoints;
public:
CPart() : m_eType(rtMoveTo), m_arPoints()
{
}
CPart& operator=(const CPart& oSrc)
{
m_eType = oSrc.m_eType;
this->m_arPoints.clear();
for (size_t nIndex = 0; nIndex < oSrc.m_arPoints.size(); ++nIndex)
{
this->m_arPoints.push_back(oSrc.m_arPoints[nIndex]);
}
return (*this);
}
~CPart()
{
this->m_arPoints.clear();
}
//void FromXmlNode(XmlUtils::CXmlNode& oNode)
//{
// std::wstring strName = oNode.GetAttribute(_T("name"));
// if (_T("moveto") == strName) m_eType = rtMoveTo;
// else if (_T("lineto") == strName) m_eType = rtLineTo;
// else if (_T("curveto") == strName) m_eType = rtCurveTo;
// else if (_T("rmoveto") == strName) m_eType = rtRMoveTo;
// else if (_T("rlineto") == strName) m_eType = rtRLineTo;
// else if (_T("rcurveto") == strName) m_eType = rtRCurveTo;
// else if (_T("ellipseto") == strName) m_eType = rtAngleEllipseTo;
// else if (_T("ellipse") == strName) m_eType = rtAngleEllipse;
// else if (_T("arc") == strName) m_eType = rtArc;
// else if (_T("arcto") == strName) m_eType = rtArcTo;
// else if (_T("clockwisearcto") == strName) m_eType = rtClockwiseArcTo;
// else if (_T("clockwisearc") == strName) m_eType = rtClockwiseArc;
// else if (_T("ellipticalx") == strName) m_eType = rtEllipticalQuadrX;
// else if (_T("ellipticaly") == strName) m_eType = rtEllipticalQuadrY;
// else if (_T("qbesier") == strName) m_eType = rtQuadrBesier;
// else m_eType = rtClose;
// std::wstring strPath = oNode.GetAttribute(_T("path"));
// if (_T("") == strPath)
// return;
// std::vector<std::wstring> arStrNums;
// ParseString(_T(" "), strPath, &arStrNums);
// bool bIsX = true;
// int nCurPoint = 0;
// for (int nIndex = 0; nIndex < arStrNums.size(); ++nIndex)
// {
// if (bIsX)
// {
// ++nCurPoint;
// CDoublePoint point;
// this->m_arPoints.push_back(point);
// this->m_arPoints[nCurPoint - 1].dX = XmlUtils::GetDouble(arStrNums[nIndex]);
// }
// else
// {
// this->m_arPoints[nCurPoint - 1].dY = XmlUtils::GetDouble(arStrNums[nIndex]);
// }
// bIsX = !bIsX;
// }
//}
void ParseString(std::wstring strDelimeters, std::wstring strSource,
std::vector<std::wstring>& pArrayResults, bool bIsCleared = true)
{
if (bIsCleared)
pArrayResults.clear();
std::wstring resToken;
int curPos= 0;
boost::algorithm::split(pArrayResults, strSource, boost::algorithm::is_any_of(strDelimeters), boost::algorithm::token_compress_on);
}
void CheckLastPoint(IRenderer* pRenderer, CDoublePoint& pointCur)
{
if (NULL == pRenderer)
return;
pRenderer->PathCommandGetCurrentPoint(&pointCur.dX, &pointCur.dY);
}
double GetAngle(double fCentreX, double fCentreY, double fX, double fY)
{
// - + (.. )
double dX = fX - fCentreX;
double dY = fY - fCentreY;
double modDX = abs(dX);
double modDY = abs(dY);
if ((modDX < 0.01) && (modDY < 0.01))
{
return 0;
}
if ((modDX < 0.01) && (dY < 0))
{
return -90;
}
else if (modDX < 0.01)
{
return 90;
}
if ((modDY < 0.01) && (dX < 0))
{
return 180;
}
else if (modDY < 0.01)
{
return 0;
}
double fAngle = atan(dY / dX);
fAngle *= double(180 / M_PI);
if (dX > 0 && dY > 0)
{
return fAngle;
}
else if (dX > 0 && dY < 0)
{
return fAngle;
}
else if (dX < 0 && dY > 0)
{
//return fAngle + 180;
return 180 + fAngle;
}
else
{
//return fAngle + 180;
return fAngle - 180;
}
}
inline double GetSweepAngle(const double& angleStart, const double& angleEnd)
{
if (angleStart >= angleEnd)
return angleEnd - angleStart;
else
return angleEnd - angleStart - 360;
}
void ApplyElliptical(bool& bIsX, double& angleStart, double& angleSweet,
double& Left, double& Top, double& Width, double& Height, const CDoublePoint& pointCur)
{
// (x - y - x...)
if (bIsX)
{
angleStart = -90;
angleSweet = 90;
if ((Width < 0) && (Height < 0))
{
angleStart = 90;
Width *= -1;
Height *= -1;
Left = pointCur.dX - Width / 2;
Top = pointCur.dY - Height;
}
else if ((Width < 0) && (Height > 0))
{
angleStart = -90;
angleSweet = -90;
Width *= -1;
Left = pointCur.dX - Width / 2;
Top = pointCur.dY;
}
else if ((Width > 0) && (Height < 0))
{
angleStart = 90;
angleSweet = -90;
Height *= -1;
Left = pointCur.dX - Width / 2;
Top = pointCur.dY - Height;
}
else
{
Left = pointCur.dX - Width / 2;
Top = pointCur.dY;
}
}
else
{
angleStart = 180;
angleSweet = -90;
if ((Width < 0) && (Height < 0))
{
angleStart = 0;
Width *= -1;
Height *= -1;
Left = pointCur.dX - Width;
Top = pointCur.dY - Height / 2;
}
else if ((Width < 0) && (Height > 0))
{
angleStart = 0;
angleSweet = 90;
Width *= -1;
Left = pointCur.dX - Width;
Top = pointCur.dY - Height / 2;
}
else if ((Width > 0) && (Height < 0))
{
angleStart = 180;
angleSweet = 90;
Height *= -1;
Left = pointCur.dX;
Top = pointCur.dY - Height / 2;
}
else
{
Left = pointCur.dX;
Top = pointCur.dY - Height / 2;
}
}
bIsX = !bIsX;
}
void GetSafearrayPoints(IRenderer* pRenderer, double** ppArray, size_t& nCountOut, CDoublePoint& pointCur, bool bR = false)
{
if (NULL == ppArray)
return;
size_t nCount = this->m_arPoints.size();
nCountOut = 2 * (nCount + 1);
double* pArray = new double [nCountOut];
double* pBuffer = pArray;
memset (pBuffer, 0, nCountOut * sizeof(double));
*pBuffer = pointCur.dX; ++pBuffer;
*pBuffer = pointCur.dY; ++pBuffer;
if (bR)
{
for (size_t nIndex = 0; nIndex < nCount; ++nIndex)
{
*pBuffer = (this->m_arPoints[nIndex].dX + pointCur.dX); ++pBuffer;
*pBuffer = (this->m_arPoints[nIndex].dY + pointCur.dY); ++pBuffer;
if (nIndex == (nCount - 1))
{
pointCur.dX += this->m_arPoints[nIndex].dX;
pointCur.dY += this->m_arPoints[nIndex].dY;
}
}
}
else
{
for (size_t nIndex = 0; nIndex < nCount; ++nIndex)
{
*pBuffer = this->m_arPoints[nIndex].dX; ++pBuffer;
*pBuffer = this->m_arPoints[nIndex].dY; ++pBuffer;
if (nIndex == (nCount - 1))
{
pointCur.dX = this->m_arPoints[nIndex].dX;
pointCur.dY = this->m_arPoints[nIndex].dY;
}
}
}
*ppArray = pArray;
}
void Draw(IRenderer* pRenderer, CDoublePoint& pointCur)
{
switch (m_eType)
{
case rtMoveTo:
{
if (0 < this->m_arPoints.size())
{
pointCur.dX = this->m_arPoints[0].dX;
pointCur.dY = this->m_arPoints[0].dY;
pRenderer->PathCommandMoveTo(this->m_arPoints[0].dX, this->m_arPoints[0].dY);
}
break;
}
case rtLineTo:
{
double* pArray = NULL;
size_t nCount = 0;
GetSafearrayPoints(pRenderer, &pArray, nCount, pointCur);
if (NULL != pArray)
{
pRenderer->PathCommandLinesTo(pArray, (int)nCount /*this->m_arPoints.size()*/);
}
break;
}
case rtCurveTo:
{
double* pArray = NULL;
size_t nCount = 0;
GetSafearrayPoints(pRenderer, &pArray, nCount, pointCur);
if (NULL != pArray)
{
pRenderer->PathCommandCurvesTo (pArray, (int)nCount/*this->m_arPoints.size()*/);
}
break;
}
case rtClose:
{
pRenderer->PathCommandClose();
break;
}
case rtRMoveTo:
{
if (0 < this->m_arPoints.size())
{
pointCur.dX = this->m_arPoints[0].dX + pointCur.dX;
pointCur.dY = this->m_arPoints[0].dY + pointCur.dY;
pRenderer->PathCommandMoveTo(pointCur.dX, pointCur.dY);
}
break;
}
case rtRLineTo:
{
double* pArray = NULL;
size_t nCount = 0;
GetSafearrayPoints(pRenderer, &pArray, nCount, pointCur, TRUE);
if (NULL != pArray)
{
pRenderer->PathCommandLinesTo(pArray, (int)nCount/*this->m_arPoints.size()*/);
}
break;
}
case rtRCurveTo:
{
double* pArray = NULL;
size_t nCount = 0;
GetSafearrayPoints(pRenderer, &pArray, nCount, pointCur, TRUE);
if (NULL != pArray)
{
pRenderer->PathCommandCurvesTo(pArray, (int)nCount/*this->m_arPoints.size()*/);
}
break;
}
case rtAngleEllipseTo:
{
int nFigure = 0;
while ((nFigure + 3) <= (int)this->m_arPoints.size())
{
double nLeft = this->m_arPoints[nFigure].dX - this->m_arPoints[nFigure + 1].dX / 2;
double nTop = this->m_arPoints[nFigure].dY - this->m_arPoints[nFigure + 1].dY / 2;
pRenderer->PathCommandArcTo(nLeft, nTop,
this->m_arPoints[nFigure + 1].dX, this->m_arPoints[nFigure + 1].dY,
this->m_arPoints[nFigure + 2].dX, this->m_arPoints[nFigure + 2].dY);
nFigure += 3;
}
CheckLastPoint(pRenderer, pointCur);
break;
}
case rtAngleEllipse:
{
pRenderer->PathCommandStart();
int nFigure = 0;
while ((nFigure + 3) <= (int)this->m_arPoints.size())
{
double nLeft = this->m_arPoints[nFigure].dX - this->m_arPoints[nFigure + 1].dX / 2;
double nTop = this->m_arPoints[nFigure].dY - this->m_arPoints[nFigure + 1].dY / 2;
pRenderer->PathCommandArcTo(nLeft, nTop,
this->m_arPoints[nFigure + 1].dX, this->m_arPoints[nFigure + 1].dY,
this->m_arPoints[nFigure + 2].dX, this->m_arPoints[nFigure + 2].dY);
nFigure += 3;
}
CheckLastPoint(pRenderer, pointCur);
break;
}
case rtArc:
{
pRenderer->PathCommandStart();
int nFigure = 0;
while ((nFigure + 4) <= (int)this->m_arPoints.size())
{
double nCentreX = (this->m_arPoints[nFigure].dX + this->m_arPoints[nFigure + 1].dX) / 2;
double nCentreY = (this->m_arPoints[nFigure].dY + this->m_arPoints[nFigure + 1].dY) / 2;
double angleStart = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 2].dX, this->m_arPoints[nFigure + 2].dY);
double angleEnd = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 3].dX, this->m_arPoints[nFigure + 3].dY);
pRenderer->PathCommandArcTo(this->m_arPoints[nFigure].dX, this->m_arPoints[nFigure].dY,
this->m_arPoints[nFigure + 1].dX - this->m_arPoints[nFigure].dX,
this->m_arPoints[nFigure + 1].dY - this->m_arPoints[nFigure].dY,
angleStart, GetSweepAngle(angleStart, angleEnd));
nFigure += 4;
}
CheckLastPoint(pRenderer, pointCur);
break;
}
case rtArcTo:
{
int nFigure = 0;
while ((nFigure + 4) <= (int)this->m_arPoints.size())
{
double nCentreX = (this->m_arPoints[nFigure].dX + this->m_arPoints[nFigure + 1].dX) / 2;
double nCentreY = (this->m_arPoints[nFigure].dY + this->m_arPoints[nFigure + 1].dY) / 2;
double angleStart = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 2].dX, this->m_arPoints[nFigure + 2].dY);
double angleEnd = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 3].dX, this->m_arPoints[nFigure + 3].dY);
pRenderer->PathCommandArcTo(this->m_arPoints[nFigure].dX, this->m_arPoints[nFigure].dY,
this->m_arPoints[nFigure + 1].dX - this->m_arPoints[nFigure].dX,
this->m_arPoints[nFigure + 1].dY - this->m_arPoints[nFigure].dY,
angleStart, GetSweepAngle(angleStart, angleEnd));
nFigure += 4;
}
CheckLastPoint(pRenderer, pointCur);
break;
}
case rtClockwiseArcTo:
{
int nFigure = 0;
while ((nFigure + 4) <= (int)this->m_arPoints.size())
{
double nCentreX = (this->m_arPoints[nFigure].dX + this->m_arPoints[nFigure + 1].dX) / 2;
double nCentreY = (this->m_arPoints[nFigure].dY + this->m_arPoints[nFigure + 1].dY) / 2;
double angleStart = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 2].dX, this->m_arPoints[nFigure + 2].dY);
double angleEnd = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 3].dX, this->m_arPoints[nFigure + 3].dY);
pRenderer->PathCommandArcTo(this->m_arPoints[nFigure].dX, this->m_arPoints[nFigure].dY,
this->m_arPoints[nFigure + 1].dX - this->m_arPoints[nFigure].dX,
this->m_arPoints[nFigure + 1].dY - this->m_arPoints[nFigure].dY,
angleStart, 360 + GetSweepAngle(angleStart, angleEnd));
nFigure += 4;
}
CheckLastPoint(pRenderer, pointCur);
break;
}
case rtClockwiseArc:
{
pRenderer->PathCommandStart();
int nFigure = 0;
while ((nFigure + 4) <= (int)this->m_arPoints.size())
{
double nCentreX = (this->m_arPoints[nFigure].dX + this->m_arPoints[nFigure + 1].dX) / 2;
double nCentreY = (this->m_arPoints[nFigure].dY + this->m_arPoints[nFigure + 1].dY) / 2;
double angleStart = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 2].dX, this->m_arPoints[nFigure + 2].dY);
double angleEnd = GetAngle(nCentreX, nCentreY,
this->m_arPoints[nFigure + 3].dX, this->m_arPoints[nFigure + 3].dY);
pRenderer->PathCommandArcTo(this->m_arPoints[nFigure].dX, this->m_arPoints[nFigure].dY,
this->m_arPoints[nFigure + 1].dX - this->m_arPoints[nFigure].dX,
this->m_arPoints[nFigure + 1].dY - this->m_arPoints[nFigure].dY,
angleStart, 360 + GetSweepAngle(angleStart, angleEnd));
nFigure += 4;
}
CheckLastPoint(pRenderer, pointCur);
break;
}
case rtEllipticalQuadrX:
{
bool bIsX = true;
CheckLastPoint(pRenderer, pointCur);
size_t nCount = this->m_arPoints.size();
for (size_t nIndex = 0; nIndex < nCount; ++nIndex)
{
double x1 = pointCur.dX;
double y1 = pointCur.dY;
double x2 = this->m_arPoints[nIndex].dX;
double y2 = this->m_arPoints[nIndex].dY;
double dRadX = fabs(x1 - x2);
double dRadY = fabs(y1 - y2);
AddEllipticalQuadr(pRenderer, bIsX, x1, y1, x2, y2, dRadX, dRadY);
pointCur.dX = x2;
pointCur.dY = y2;
}
break;
}
case rtEllipticalQuadrY:
{
bool bIsX = false;
CheckLastPoint(pRenderer, pointCur);
size_t nCount = this->m_arPoints.size();
for (size_t nIndex = 0; nIndex < nCount; ++nIndex)
{
double x1 = pointCur.dX;
double y1 = pointCur.dY;
double x2 = this->m_arPoints[nIndex].dX;
double y2 = this->m_arPoints[nIndex].dY;
double dRadX = fabs(x1 - x2);
double dRadY = fabs(y1 - y2);
AddEllipticalQuadr(pRenderer, bIsX, x1, y1, x2, y2, dRadX, dRadY);
pointCur.dX = x2;
pointCur.dY = y2;
}
break;
}
case rtQuadrBesier:
{
double* pArray = NULL;
size_t nCount = 0;
GetSafearrayPoints(pRenderer, &pArray, nCount, pointCur, TRUE);
if (NULL != pArray)
{
pRenderer->PathCommandLinesTo(pArray, (int)nCount/*this->m_arPoints.size()*/);
}
CheckLastPoint(pRenderer, pointCur);
break;
}
default: break;
};
}
inline void AddEllipticalQuadr(IRenderer*& pRenderer, bool& bIsX, double& x1, double& y1, double& x2, double& y2, double& dRadX, double& dRadY)
{
if (bIsX)
{
if ((x2 >= x1) && (y2 >= y1))
pRenderer->PathCommandArcTo(x1 - dRadX, y1, 2 * dRadX, 2 * dRadY, -90, 90);
else if ((x2 >= x1) && (y2 <= y1))
pRenderer->PathCommandArcTo(x1 - dRadX, y1 - 2 * dRadY, 2 * dRadX, 2 * dRadY, 90, -90);
else if ((x2 <= x1) && (y2 >= y1))
pRenderer->PathCommandArcTo(x1 - dRadX, y1, 2 * dRadX, 2 * dRadY, -90, -90);
else if ((x2 <= x1) && (y2 <= y1))
pRenderer->PathCommandArcTo(x1 - dRadX, y1 - 2 * dRadY, 2 * dRadX, 2 * dRadY, 90, 90);
}
else
{
if ((x2 >= x1) && (y2 >= y1))
pRenderer->PathCommandArcTo(x1, y1 - dRadY, 2 * dRadX, 2 * dRadY, 180, -90);
else if ((x2 >= x1) && (y2 <= y1))
pRenderer->PathCommandArcTo(x1, y1 - dRadY, 2 * dRadX, 2 * dRadY, 180, 90);
else if ((x2 <= x1) && (y2 >= y1))
pRenderer->PathCommandArcTo(x1 - 2 * dRadX, y1 - dRadY, 2 * dRadX, 2 * dRadY, 0, 90);
else if ((x2 <= x1) && (y2 <= y1))
pRenderer->PathCommandArcTo(x1 - 2 * dRadX, y1 - dRadY, 2 * dRadX, 2 * dRadY, 0, -90);
}
bIsX = !bIsX;
}
};
void AddRuler(const RulesType& eType)
{
size_t lCount = m_arParts.size();
CPart oPart;
oPart.m_eType = eType;
m_arParts.push_back(oPart);
}
void AddPoint(const double& x, const double& y)
{
size_t lCount = m_arParts.size();
if (0 != lCount)
{
CDoublePoint point;
point.dX = x;
point.dY = y;
m_arParts[lCount - 1].m_arPoints.push_back(point);
}
}
void Clear()
{
m_arParts.clear();
}
std::vector<CPart> m_arParts;
int m_lFlags;
};
}

View File

@ -1,650 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "GraphicsPath.h"
#include "FormulaShape.h"
namespace NSCustomShapesConvert
{
static std::wstring GetRulerVML(RulesType eRuler)
{
switch (eRuler)
{
case rtMoveTo: { return _T("m"); }
case rtLineTo: { return _T("l"); }
case rtCurveTo: { return _T("c"); }
case rtClose: { return _T("x"); }
case rtEnd: { return _T("e"); }
case rtRMoveTo: { return _T("t"); }
case rtRLineTo: { return _T("r"); }
case rtRCurveTo: { return _T("v"); }
case rtNoFill: { return _T("nf"); }
case rtNoStroke: { return _T("ns"); }
case rtAngleEllipseTo: { return _T("ae"); }
case rtAngleEllipse: { return _T("al"); }
case rtArc: { return _T("at"); }
case rtArcTo: { return _T("ar"); }
case rtClockwiseArcTo: { return _T("wa"); }
case rtClockwiseArc: { return _T("wr"); }
case rtEllipticalQuadrX: { return _T("qx"); }
case rtEllipticalQuadrY: { return _T("qy"); }
case rtQuadrBesier: { return _T("qb"); }
default: break;
};
return _T("");
}
static RulesType GetRuler(const std::wstring& strName, bool& bRes)
{
bRes = true;
if (_T("moveTo") == strName) return rtOOXMLMoveTo;
else if (_T("lnTo") == strName) return rtOOXMLLineTo;
else if (_T("cubicBezTo") == strName) return rtOOXMLCubicBezTo;
else if (_T("close") == strName) return rtOOXMLClose;
else if (_T("end") == strName) return rtOOXMLEnd;
else if (_T("arcTo") == strName) return rtOOXMLArcTo;
else if (_T("quadBezTo") == strName) return rtOOXMLQuadBezTo;
//bRes = true;
else if ((_T("m") == strName) || (_T("M") == strName)) return rtMoveTo;
else if ((_T("l") == strName) || (_T("L") == strName)) return rtLineTo;
else if ((_T("c") == strName) || (_T("C") == strName)) return rtCurveTo;
else if ((_T("x") == strName) || (_T("Z") == strName)) return rtClose;
else if ((_T("e") == strName) || (_T("N") == strName)) return rtEnd;
else if (_T("t") == strName) return rtRMoveTo;
else if (_T("r") == strName) return rtRLineTo;
else if (_T("v") == strName) return rtRCurveTo;
else if ((_T("nf") == strName) || (_T("F") == strName)) return rtNoFill;
else if ((_T("ns") == strName) || (_T("S") == strName)) return rtNoStroke;
else if ((_T("ae") == strName) || (_T("T") == strName)) return rtAngleEllipseTo;
else if ((_T("al") == strName) || (_T("U") == strName)) return rtAngleEllipse;
else if ((_T("at") == strName) || (_T("A") == strName)) return rtArcTo;
else if ((_T("ar") == strName) || (_T("B") == strName)) return rtArc;
else if ((_T("wa") == strName) || (_T("W") == strName)) return rtClockwiseArcTo;
else if ((_T("wr") == strName) || (_T("V") == strName)) return rtClockwiseArc;
else if ((_T("qx") == strName) || (_T("X") == strName)) return rtEllipticalQuadrX;
else if ((_T("qy") == strName) || (_T("Y") == strName)) return rtEllipticalQuadrY;
else if ((_T("qb") == strName) || (_T("Q") == strName)) return rtQuadrBesier;
else bRes = false;
return rtEnd;
}
static double GetSweepAngle(const double& angleStart, const double& angleEnd)
{
if (angleStart >= angleEnd)
return angleEnd - angleStart;
else
return angleEnd - angleStart - 360;
}
static std::wstring GetRulerName(RulesType eRuler)
{
switch (eRuler)
{
case rtOOXMLMoveTo: { return _T("moveto"); }
case rtOOXMLLineTo: { return _T("lineto"); }
case rtOOXMLCubicBezTo: { return _T("curveto"); }
case rtOOXMLArcTo: { return _T("ellipseto"); }
case rtOOXMLQuadBezTo: { return _T("qbesier"); }
case rtOOXMLClose: { return _T("close"); }
case rtOOXMLEnd: { return _T("end"); }
case rtMoveTo: { return _T("moveto"); }
case rtLineTo: { return _T("lineto"); }
case rtCurveTo: { return _T("curveto"); }
case rtClose: { return _T("close"); }
case rtEnd: { return _T("end"); }
case rtRMoveTo: { return _T("rmoveto"); }
case rtRLineTo: { return _T("rlineto"); }
case rtRCurveTo: { return _T("rcurveto"); }
case rtNoFill: { return _T("nofill"); }
case rtNoStroke: { return _T("nostroke"); }
case rtAngleEllipseTo: { return _T("ellipseto"); }
case rtAngleEllipse: { return _T("ellipse"); }
case rtArc: { return _T("arc"); }
case rtArcTo: { return _T("arcto"); }
case rtClockwiseArcTo: { return _T("clockwisearcto"); }
case rtClockwiseArc: { return _T("clockwisearc"); }
case rtEllipticalQuadrX: { return _T("ellipticalx"); }
case rtEllipticalQuadrY: { return _T("ellipticaly"); }
case rtQuadrBesier: { return _T("qbesier"); }
default: break;
};
return _T("none");
}
static long GetCountPoints(RulesType eRuler)
{
switch (eRuler)
{
case rtOOXMLMoveTo: return 1;
case rtOOXMLLineTo: return 1;
case rtOOXMLQuadBezTo: return 2;
case rtOOXMLCubicBezTo: return 3;
case rtOOXMLArcTo: return 3;//???
case rtOOXMLClose: return 0;
case rtOOXMLEnd: return 0;
default: return 0;
};
return 0;
}
static long GetCountPoints2(RulesType eRuler, LONG lRepeatCount)
{
switch (eRuler)
{
case rtMoveTo:
case rtRMoveTo:
{ return 1; }
case rtLineTo:
case rtRLineTo:
{ return lRepeatCount; }
case rtCurveTo:
case rtRCurveTo:
{ return 3 * lRepeatCount; }
case rtNoFill:
case rtNoStroke:
case rtClose:
case rtEnd:
{ return 0; }
case rtAngleEllipseTo:
case rtAngleEllipse:
{ return lRepeatCount; }
case rtArc:
case rtArcTo:
case rtClockwiseArcTo:
case rtClockwiseArc:
{ return lRepeatCount; }
case rtEllipticalQuadrX:
case rtEllipticalQuadrY:
{ return 1 * lRepeatCount; }
case rtQuadrBesier:
{ return /*2 * */lRepeatCount; }
case rtFillColor:
case rtLineColor:
{
return 1;
}
default: return 3 * lRepeatCount;
};
return 0;
}
class CSlice
{
private:
int m_nCountElementsPoint;
public:
RulesType m_eRuler;
std::vector<Aggplus::POINT> m_arPoints;
//LONG m_lX;
//LONG m_lY;
CSlice(RulesType eType = rtMoveTo/*, LONG x = 0, LONG y = 0*/)
{
m_eRuler = eType;
m_nCountElementsPoint = 0;
//m_lX = x;
//m_lY = y;
}
void AddParam(LONG lParam)
{
long lPoint = m_nCountElementsPoint % 2;
if (0 == lPoint)
{
Aggplus::POINT point;
point.x = lParam/* - m_lX*/;
point.y = 0;
m_arPoints.push_back(point);
}
else
{
m_arPoints[m_arPoints.size() - 1].y = lParam/* - m_lY*/;
}
++m_nCountElementsPoint;
}
CSlice& operator =(const CSlice& oSrc)
{
m_eRuler = oSrc.m_eRuler;
m_arPoints.clear();
for (size_t nIndex = 0; nIndex < oSrc.m_arPoints.size(); ++nIndex)
{
m_arPoints.push_back(oSrc.m_arPoints[nIndex]);
}
return (*this);
}
protected:
double GetAngle(double fCentreX, double fCentreY, double fX, double fY)
{
// - + (.. )
double dX = fX - fCentreX;
double dY = fY - fCentreY;
double modDX = abs(dX);
double modDY = abs(dY);
if ((modDX < 0.01) && (modDY < 0.01))
{
return 0;
}
if ((modDX < 0.01) && (dY < 0))
{
return -90;
}
else if (modDX < 0.01)
{
return 90;
}
if ((modDY < 0.01) && (dX < 0))
{
return 180;
}
else if (modDY < 0.01)
{
return 0;
}
double fAngle = atan(dY / dX);
fAngle *= (180 / M_PI);
if (dX > 0 && dY > 0)
{
return fAngle;
}
else if (dX > 0 && dY < 0)
{
return fAngle;
}
else if (dX < 0 && dY > 0)
{
//return fAngle + 180;
return 180 + fAngle;
}
else
{
//return fAngle + 180;
return fAngle - 180;
}
}
inline double GetSweepAngle(const double& angleStart, const double& angleEnd)
{
if (angleStart >= angleEnd)
return angleEnd - angleStart;
else
return angleEnd - angleStart - 360;
}
void ApplyElliptical(bool& bIsX, double& angleStart, double& angleSweet,
double& Left, double& Top, double& Width, double& Height, const CGeomShapeInfo::CPointD& pointCur)
{
// (x - y - x...)
if (bIsX)
{
angleStart = -90;
angleSweet = 90;
if ((Width < 0) && (Height < 0))
{
angleStart = 90;
Width *= -1;
Height *= -1;
Left = pointCur.dX - Width / 2;
Top = pointCur.dY - Height;
}
else if ((Width < 0) && (Height > 0))
{
angleStart = -90;
angleSweet = -90;
Width *= -1;
Left = pointCur.dX - Width / 2;
Top = pointCur.dY;
}
else if ((Width > 0) && (Height < 0))
{
angleStart = 90;
angleSweet = -90;
Height *= -1;
Left = pointCur.dX - Width / 2;
Top = pointCur.dY - Height;
}
else
{
Left = pointCur.dX - Width / 2;
Top = pointCur.dY;
}
}
else
{
angleStart = 180;
angleSweet = -90;
if ((Width < 0) && (Height < 0))
{
angleStart = 0;
Width *= -1;
Height *= -1;
Left = pointCur.dX - Width;
Top = pointCur.dY - Height / 2;
}
else if ((Width < 0) && (Height > 0))
{
angleStart = 0;
angleSweet = 90;
Width *= -1;
Left = pointCur.dX - Width;
Top = pointCur.dY - Height / 2;
}
else if ((Width > 0) && (Height < 0))
{
angleStart = 180;
angleSweet = 90;
Height *= -1;
Left = pointCur.dX;
Top = pointCur.dY - Height / 2;
}
else
{
Left = pointCur.dX;
Top = pointCur.dY - Height / 2;
}
}
bIsX = !bIsX;
}
void ApplyLimo(CGeomShapeInfo& pGeomInfo, double& lX, double& lY)
{
if ((0 == pGeomInfo.m_dLimoX) || (0 == pGeomInfo.m_dLimoY))
return;
double dAspect = (double)pGeomInfo.m_dLimoX / pGeomInfo.m_dLimoY;
double lWidth = (dAspect * pGeomInfo.m_dHeight);
if (lWidth < pGeomInfo.m_dWidth)
{
// LimoX
double lXc = pGeomInfo.m_dLeft + pGeomInfo.m_dWidth / 2;
if ((lX > lXc) || ((lX == lXc) && (pGeomInfo.m_oCurPoint.dX >= lXc)))
{
double lXNew = pGeomInfo.m_dLeft + ((lWidth / pGeomInfo.m_dWidth) * (lX - pGeomInfo.m_dLeft));
lXNew += (pGeomInfo.m_dWidth - lWidth);
lX = lXNew;
}
//if (lX >= lXc)
//{
// LONG lXNew = pGeomInfo->m_lLeft + (LONG)(((double)lWidth / pGeomInfo->m_lWidth) * (lX - pGeomInfo->m_lLeft));
// if (pGeomInfo->m_oCurPoint.x >= lXc)
// {
// lXNew += (pGeomInfo->m_lWidth - lWidth);
// }
// lX = lXNew;
//}
}
else if (lWidth != pGeomInfo.m_dWidth)
{
// LimoY
double lHeight = (pGeomInfo.m_dWidth / dAspect);
double lYc = pGeomInfo.m_dTop + pGeomInfo.m_dHeight / 2;
if ((lY > lYc) || ((lY == lYc) && (pGeomInfo.m_oCurPoint.dY >= lYc)))
{
double lYNew = pGeomInfo.m_dTop + ((lHeight / pGeomInfo.m_dHeight) * (lY - pGeomInfo.m_dTop));
lYNew += (pGeomInfo.m_dHeight - lHeight);
lY = lYNew;
}
}
}
void Bez2_3(std::vector<CGeomShapeInfo::CPointD>& oArray, RulesType& eType)
{
if (rtQuadrBesier == eType)
{
eType = rtCurveTo;
}
else if (rtOOXMLQuadBezTo == eType)
{
eType = rtOOXMLCubicBezTo;
}
else
{
return;
}
std::vector<CGeomShapeInfo::CPointD> arOld;
arOld.insert(arOld.end(),oArray.begin(), oArray.end());
oArray.clear();
size_t nStart = 0;
size_t nEnd = 2;
size_t nCount = arOld.size();
while (nStart < (nCount - 1))
{
if (2 >= (nCount - nStart))
{
// по идее такого быть не может
for (size_t i = nStart; i < nCount; ++i)
{
oArray.push_back(arOld[i]);
}
nStart = nCount;
break;
}
if (4 == (nCount - nStart))
{
// ничего не поделаешь... делаем кривую третьего порядка
oArray.push_back(arOld[nStart]);
oArray.push_back(arOld[nStart + 1]);
oArray.push_back(arOld[nStart + 2]);
oArray.push_back(arOld[nStart + 3]);
nStart += 4;
break;
}
// значит есть еще
CGeomShapeInfo::CPointD mem1;
mem1.dX = (arOld[nStart].dX + 2 * arOld[nStart + 1].dX) / 3.0;
mem1.dY = (arOld[nStart].dY + 2 * arOld[nStart + 1].dY) / 3.0;
CGeomShapeInfo::CPointD mem2;
mem2.dX = (2 * arOld[nStart + 1].dX + arOld[nStart + 2].dX) / 3.0;
mem2.dY = (2 * arOld[nStart + 1].dY + arOld[nStart + 2].dY) / 3.0;
oArray.push_back(mem1);
oArray.push_back(mem2);
oArray.push_back(arOld[nStart + 2]);
nStart += 2;
}
}
};
class CPartPath
{
public:
bool m_bFill;
bool m_bStroke;
long width;
long height;
std::vector<CSlice> m_arSlices;
public:
CPartPath() : m_arSlices()
{
m_bFill = true;
m_bStroke = true;
width = ShapeSizeVML;
height = ShapeSizeVML; //43200?
}
void FromXML(std::wstring strPath, NSCustomShapesConvert::CFormulasManager& pManager)
{
NSStringUtils::CheckPathOn_Fill_Stroke(strPath, m_bFill, m_bStroke);
std::vector<std::wstring> oArray;
NSStringUtils::ParsePath2(strPath, &oArray);
ParamType eParamType = ptValue;
RulesType eRuler = rtEnd;
LONG lValue;
bool bRes = true;
for (size_t nIndex = 0; nIndex < oArray.size(); ++nIndex)
{
lValue = GetValue(oArray[nIndex], eParamType, bRes);
if (bRes)
{
switch (eParamType)
{
case ptFormula: { lValue = pManager.m_arResults[lValue]; break; }
case ptAdjust: { lValue = (*(pManager.m_pAdjustments))[lValue]; break; }
default: break;
};
if (0 != m_arSlices.size())
{
m_arSlices[m_arSlices.size() - 1].AddParam(lValue);
}
}
else
{
eRuler = GetRuler(oArray[nIndex], bRes);
if (bRes)
{
if (rtNoFill == eRuler)
{
m_bFill = false;
}
else if (rtNoStroke == eRuler)
{
m_bStroke = false;
}
else
{
CSlice oSlice(eRuler);
m_arSlices.push_back(oSlice);
}
}
}
}
}
CPartPath& operator =(const CPartPath& oSrc)
{
m_bFill = oSrc.m_bFill;
m_bStroke = oSrc.m_bStroke;
width = oSrc.width;
height = oSrc.height;
m_arSlices.clear();
for (size_t nIndex = 0; nIndex < oSrc.m_arSlices.size(); ++nIndex)
{
m_arSlices.push_back(oSrc.m_arSlices[nIndex]);
}
return (*this);
}
};
class CPath
{
public:
std::vector<CPartPath> m_arParts;
void FromXML(std::wstring strPath, NSCustomShapesConvert::CFormulasManager& pManager)
{
m_arParts.clear();
std::vector<std::wstring> oArray;
NSStringUtils::ParseString(_T("e"), strPath, oArray);
for (size_t nIndex = 0; nIndex < oArray.size(); ++nIndex)
{
CPartPath oPath;
m_arParts.push_back(oPath);
m_arParts.back().FromXML(oArray[nIndex], pManager);
}
}
CPath& operator =(const CPath& oSrc)
{
m_arParts.clear();
for (size_t nIndex = 0; nIndex < oSrc.m_arParts.size(); ++nIndex)
{
m_arParts.push_back(oSrc.m_arParts[nIndex]);
}
return (*this);
}
void SetCoordsize(LONG lWidth, LONG lHeight)
{
for (size_t nIndex = 0; nIndex < m_arParts.size(); ++nIndex)
{
m_arParts[nIndex].width = lWidth;
m_arParts[nIndex].height = lHeight;
}
}
};
}

View File

@ -1,200 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "./oldAutoShapes/accentbordercallout90type.h"
#include "./oldAutoShapes/accentbordercallout1type.h"
#include "./oldAutoShapes/AccentBorderCallout2Type.h"
#include "./oldAutoShapes/accentbordercallout3type.h"
#include "./oldAutoShapes/AccentCallout90Type.h"
#include "./oldAutoShapes/AccentCallout1Type.h"
#include "./oldAutoShapes/AccentCallout2Type.h"
#include "./oldAutoShapes/AccentCallout3Type.h"
#include "./oldAutoShapes/BorderCallout90Type.h"
#include "./oldAutoShapes/BorderCallout1Type.h"
#include "./oldAutoShapes/BorderCallout2Type.h"
#include "./oldAutoShapes/BorderCallout3Type.h"
#include "./oldAutoShapes/Callout90Type.h"
#include "./oldAutoShapes/Callout1Type.h"
#include "./oldAutoShapes/Callout2Type.h"
#include "./oldAutoShapes/Callout3Type.h"
#include "./oldAutoShapes/BentConnector.h"
#include "./oldAutoShapes/CurvedConnector.h"
#include "./oldAutoShapes/ActionButtonBlank.h"
#include "./oldAutoShapes/ActionButtonHome.h"
#include "./oldAutoShapes/ActionButtonHelp.h"
#include "./oldAutoShapes/ActionButtonInfo.h"
#include "./oldAutoShapes/ActionButtonBack.h"
#include "./oldAutoShapes/ActionButtonNext.h"
#include "./oldAutoShapes/ActionButtonBeginning.h"
#include "./oldAutoShapes/ActionButtonEnd.h"
#include "./oldAutoShapes/ActionButtonReturn.h"
#include "./oldAutoShapes/ActionButtonDocument.h"
#include "./oldAutoShapes/ActionButtonSound.h"
#include "./oldAutoShapes/ActionButtonMovie.h"
#include "./oldAutoShapes/arctype.h"
#include "./oldAutoShapes/LineType.h"
#include "./oldAutoShapes/BentArrowType.h"
#include "./oldAutoShapes/BentUpArrowType.h"
#include "./oldAutoShapes/BevelType.h"
#include "./oldAutoShapes/BlockArcType.h"
#include "./oldAutoShapes/BracePairType.h"
#include "./oldAutoShapes/BracketPairType.h"
#include "./oldAutoShapes/CanType.h"
#include "./oldAutoShapes/ChevronType.h"
#include "./oldAutoShapes/CircularArrowType.h"
#include "./oldAutoShapes/CloudCalloutType.h"
#include "./oldAutoShapes/CubeType.h"
#include "./oldAutoShapes/CurvedDownArrowType.h"
#include "./oldAutoShapes/CurvedLeftArrowType.h"
#include "./oldAutoShapes/CurvedRightArrowType.h"
#include "./oldAutoShapes/CurvedUpArrowType.h"
#include "./oldAutoShapes/DiamondType.h"
#include "./oldAutoShapes/DonutType.h"
#include "./oldAutoShapes/DownArrowCalloutType.h"
#include "./oldAutoShapes/DownArrowType.h"
#include "./oldAutoShapes/EllipseType.h"
#include "./oldAutoShapes/EllipseRibbon2Type.h"
#include "./oldAutoShapes/EllipseRibbonType.h"
#include "./oldAutoShapes/FlowChartAlternateProcessType.h"
#include "./oldAutoShapes/FlowChartCollateType.h"
#include "./oldAutoShapes/FlowChartConnectorType.h"
#include "./oldAutoShapes/FlowChartDecisionType.h"
#include "./oldAutoShapes/FlowChartDelayType.h"
#include "./oldAutoShapes/FlowChartDisplayType.h"
#include "./oldAutoShapes/FlowChartDocumentType.h"
#include "./oldAutoShapes/FlowChartExtractType.h"
#include "./oldAutoShapes/FlowChartInputOutputType.h"
#include "./oldAutoShapes/FlowChartInternalStorageType.h"
#include "./oldAutoShapes/FlowChartMagneticDiskType.h"
#include "./oldAutoShapes/FlowChartMagneticDrumType.h"
#include "./oldAutoShapes/FlowChartMagneticTapeType.h"
#include "./oldAutoShapes/FlowChartManualInputType.h"
#include "./oldAutoShapes/FlowChartManualOperationType.h"
#include "./oldAutoShapes/FlowChartMergeType.h"
#include "./oldAutoShapes/FlowChartMultidocumentType.h"
#include "./oldAutoShapes/FlowChartOffpageConnectorType.h"
#include "./oldAutoShapes/FlowChartOnlineStorageType.h"
#include "./oldAutoShapes/FlowChartOrType.h"
#include "./oldAutoShapes/FlowChartPredefinedProcessType.h"
#include "./oldAutoShapes/FlowChartPreparationType.h"
#include "./oldAutoShapes/FlowChartProcessType.h"
#include "./oldAutoShapes/FlowChartPunchedCardType.h"
#include "./oldAutoShapes/FlowChartPunchedTapeType.h"
#include "./oldAutoShapes/FlowChartSortType.h"
#include "./oldAutoShapes/FlowChartSummingJunctionType.h"
#include "./oldAutoShapes/FlowChartTerminatorType.h"
#include "./oldAutoShapes/FoldedCornerType.h"
#include "./oldAutoShapes/HeartType.h"
#include "./oldAutoShapes/HexagonType.h"
#include "./oldAutoShapes/HomePlateType.h"
#include "./oldAutoShapes/IrregularSealOneType.h"
#include "./oldAutoShapes/IrregularSealTwo.h"
#include "./oldAutoShapes/IsoscelesTriangleType.h"
#include "./oldAutoShapes/LeftArrowCalloutType.h"
#include "./oldAutoShapes/LeftArrowType.h"
#include "./oldAutoShapes/LeftBraceType.h"
#include "./oldAutoShapes/LeftBracketType.h"
#include "./oldAutoShapes/LeftRightArrowCalloutType.h"
#include "./oldAutoShapes/LeftRightArrowType.h"
#include "./oldAutoShapes/LeftRightUpArrow.h"
#include "./oldAutoShapes/LeftUpArrowType.h"
#include "./oldAutoShapes/LightningBoltType.h"
#include "./oldAutoShapes/MoonType.h"
#include "./oldAutoShapes/NoSmokingType.h"
#include "./oldAutoShapes/NotchedRightArrowType.h"
#include "./oldAutoShapes/OctagonType.h"
#include "./oldAutoShapes/ParallelogramType.h"
#include "./oldAutoShapes/PentagonType.h"
#include "./oldAutoShapes/PlaqueType.h"
#include "./oldAutoShapes/PlusType.h"
#include "./oldAutoShapes/QuadArrowCalloutType.h"
#include "./oldAutoShapes/QuadArrowType.h"
#include "./oldAutoShapes/RectangleType.h"
#include "./oldAutoShapes/RibbonDownType.h"
#include "./oldAutoShapes/RibbonUpType.h"
#include "./oldAutoShapes/RightArrowCalloutType.h"
#include "./oldAutoShapes/RightArrowType.h"
#include "./oldAutoShapes/RightBracetype.h"
#include "./oldAutoShapes/RightBracketType.h"
#include "./oldAutoShapes/RightTriangleType.h"
#include "./oldAutoShapes/RoundedRectangleType.h"
#include "./oldAutoShapes/Seal16Type.h"
#include "./oldAutoShapes/Seal24Type.h"
#include "./oldAutoShapes/Seal32Type.h"
#include "./oldAutoShapes/Seal4Type.h"
#include "./oldAutoShapes/Seal8Type.h"
#include "./oldAutoShapes/SmileyFaceType.h"
#include "./oldAutoShapes/Startype.h"
#include "./oldAutoShapes/StraightConnectorType.h"
#include "./oldAutoShapes/StripedRightArrowType.h"
#include "./oldAutoShapes/SunType.h"
#include "./oldAutoShapes/TextboxType.h"
#include "./oldAutoShapes/TrapezoidType.h"
#include "./oldAutoShapes/UpArrowCalloutType.h"
#include "./oldAutoShapes/UpArrowType.h"
#include "./oldAutoShapes/UpDownArrowCalloutType.h"
#include "./oldAutoShapes/UpDownArrowType.h"
#include "./oldAutoShapes/UturnArrowType.h"
#include "./oldAutoShapes/VerticalScrollType.h"
#include "./oldAutoShapes/HorisontalScrollType.h"
#include "./oldAutoShapes/WedgeEllipseCalloutType.h"
#include "./oldAutoShapes/WedgeRectCalloutType.h"
#include "./oldAutoShapes/WedgeRoundedRectCalloutType.h"
#include "./oldAutoShapes/WaveType.h"
#include "./oldAutoShapes/WaveDoubleType.h"

View File

@ -1,332 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../../../DesktopEditor/common/File.h"
#include "../../../OOXML/Base/Unit.h"
#include "../../../DesktopEditor/common/StringBuilder.h"
#include <vector>
namespace NSCustomShapesConvert
{
static std::wstring g_bstr_nodeopen = L"<";
static std::wstring g_bstr_nodeclose = L">";
static std::wstring g_bstr_nodeopen_slash = L"</";
static std::wstring g_bstr_nodeclose_slash = L"/>";
static std::wstring g_bstr_node_space = L" ";
static std::wstring g_bstr_node_equal = L"=";
static std::wstring g_bstr_node_quote = L"\"";
static std::wstring g_bstr_boolean_true = L"true";
static std::wstring g_bstr_boolean_false = L"false";
static std::wstring g_bstr_boolean_true2 = L"1";
static std::wstring g_bstr_boolean_false2 = L"0";
static double FABS(double dVal)
{
return (dVal >= 0) ? dVal : -dVal;
}
class CXmlWriter
{
public:
NSStringUtils::CStringBuilder m_oWriter;
CXmlWriter() : m_oWriter()
{
}
~CXmlWriter()
{
}
std::wstring GetXmlString()
{
return m_oWriter.GetData();
}
void ClearNoAttack()
{
m_oWriter.ClearNoAttack();
}
int GetSize()
{
return (int)m_oWriter.GetCurSize();
}
// write value
void WriteString(const std::wstring& strValue)
{
m_oWriter.WriteString(strValue);
}
void WriteStringXML(std::wstring strValue)
{
m_oWriter.WriteEncodeXmlString(strValue);
}
void WriteDouble(const double& val)
{
m_oWriter.WriteString(XmlUtils::ToString(val));
}
void WriteLONG(const long& val)
{
m_oWriter.WriteString(XmlUtils::ToString(val));
}
void WriteINT(const int& val)
{
m_oWriter.WriteString(XmlUtils::ToString(val));
}
void WriteDWORD(const DWORD& val)
{
m_oWriter.WriteString(XmlUtils::ToString(val));
}
void WriteDWORD_hex(const DWORD& val)
{
m_oWriter.WriteString(XmlUtils::ToString(val));
}
void WriteBool(const bool& val)
{
m_oWriter.WriteString(XmlUtils::ToString(val));
}
void WriteAttribute(const std::wstring& strAttributeName, const std::wstring& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
m_oWriter.WriteString(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
void WriteAttribute2(const std::wstring& strAttributeName, const std::wstring& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
m_oWriter.WriteEncodeXmlString(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
void WriteAttribute(const std::wstring& strAttributeName, const double& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
WriteDouble(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
void WriteAttribute(const std::wstring& strAttributeName, const int& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
WriteINT(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
void WriteAttribute(const std::wstring& strAttributeName, const bool& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
WriteBool(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
void WriteAttribute(const std::wstring& strAttributeName, const LONG& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
WriteLONG(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
void WriteAttribute(const std::wstring& strAttributeName, const DWORD& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
WriteDWORD(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
void WriteAttributeDWORD_hex(const std::wstring& strAttributeName, const DWORD& val)
{
m_oWriter.WriteString(g_bstr_node_space);
m_oWriter.WriteString(strAttributeName);
m_oWriter.WriteString(g_bstr_node_equal);
m_oWriter.WriteString(g_bstr_node_quote);
WriteDWORD_hex(val);
m_oWriter.WriteString(g_bstr_node_quote);
}
// document methods
void WriteNodeBegin(std::wstring strNodeName, bool bAttributed = false)
{
m_oWriter.WriteString(g_bstr_nodeopen);
m_oWriter.WriteString(strNodeName);
if (!bAttributed)
m_oWriter.WriteString(g_bstr_nodeclose);
}
void WriteNodeEnd(std::wstring strNodeName, bool bEmptyNode = false, bool bEndNode = true)
{
if (bEmptyNode)
{
if (bEndNode)
m_oWriter.WriteString(g_bstr_nodeclose_slash);
else
m_oWriter.WriteString(g_bstr_nodeclose);
}
else
{
m_oWriter.WriteString(g_bstr_nodeopen_slash);
m_oWriter.WriteString(strNodeName);
m_oWriter.WriteString(g_bstr_nodeclose);
}
}
// write node values
void WriteNodeValue(const std::wstring& strNodeName, const std::wstring& val)
{
WriteNodeBegin(strNodeName);
WriteString(val);
WriteNodeEnd(strNodeName);
}
void WriteNodeValue(const std::wstring& strNodeName, const bool& val)
{
WriteNodeBegin(strNodeName);
if (val)
WriteString(_T("1"));
else
WriteString(_T("0"));
WriteNodeEnd(strNodeName);
}
void WriteNodeValue(const std::wstring& strNodeName, const double& val)
{
WriteNodeBegin(strNodeName);
WriteDouble(val);
WriteNodeEnd(strNodeName);
}
void WriteNodeValue(const std::wstring& strNodeName, const LONG& val)
{
WriteNodeBegin(strNodeName);
WriteLONG(val);
WriteNodeEnd(strNodeName);
}
void WriteNodeValue(const std::wstring& strNodeName, const int& val)
{
WriteNodeBegin(strNodeName);
WriteINT(val);
WriteNodeEnd(strNodeName);
}
void WriteNodeValue(const std::wstring& strNodeName, const DWORD& val)
{
WriteNodeBegin(strNodeName);
WriteDWORD(val);
WriteNodeEnd(strNodeName);
}
void WriteNodeValueDWORD_hex(const std::wstring& strNodeName, const DWORD& val)
{
WriteNodeBegin(strNodeName);
WriteDWORD_hex(val);
WriteNodeEnd(strNodeName);
}
public:
void StartNode(const std::wstring& name)
{
m_oWriter.WriteString(g_bstr_nodeopen);
m_oWriter.WriteString(name);
}
void StartAttributes()
{
// none
}
void EndAttributes()
{
m_oWriter.WriteString(g_bstr_nodeclose);
}
void EndNode(const std::wstring& name)
{
m_oWriter.WriteString(g_bstr_nodeopen_slash);
m_oWriter.WriteString(name);
m_oWriter.WriteString(g_bstr_nodeclose);
}
template<typename T>
void WriteArray(const std::wstring& strName, const std::vector<T>& arr)
{
size_t nCount = arr.size();
if (0 != nCount)
{
StartNode(strName);
m_oWriter.WriteString(g_bstr_nodeclose);
for (size_t i = 0; i < nCount; ++i)
arr[i].toXmlWriter(this);
EndNode(strName);
}
}
template<typename T>
void WriteArray2(const std::vector<T>& arr)
{
size_t nCount = arr.size();
if (0 != nCount)
{
for (size_t i = 0; i < nCount; ++i)
arr[i].toXmlWriter(this);
}
}
// -------------------------------------------------------------------------------------
void ReplaceString(std::wstring from, std::wstring to)
{
// ужасная функция. вызывать ее не надо. не для этого класс писался.
std::wstring sCur = m_oWriter.GetData();
size_t start_pos = 0;
while((start_pos = sCur .find(from, start_pos)) != std::wstring::npos)
{
sCur .replace(start_pos, from.length(), to);
start_pos += to.length();
}
ClearNoAttack();
WriteString(sCur);
}
};
}

View File

@ -1,80 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 51
namespace NSCustomShapesConvert
{
class CAccentBorderCallout2Type : public CCustomShape
{
public:
CAccentBorderCallout2Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,71 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 44
namespace NSCustomShapesConvert
{
class CAccentCallout1Type : public CCustomShape
{
public:
CAccentCallout1Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,79 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 45
namespace NSCustomShapesConvert
{
class CAccentCallout2Type : public CCustomShape
{
public:
CAccentCallout2Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,88 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 46
namespace NSCustomShapesConvert
{
class CAccentCallout3Type : public CCustomShape
{
public:
CAccentCallout3Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,71 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 179
namespace NSCustomShapesConvert
{
class CAccentCallout90Type : public CCustomShape
{
public:
CAccentCallout90Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,83 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 194
namespace NSCustomShapesConvert
{
class CActionButtonBackType : public CCustomShape
{
public:
CActionButtonBackType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,90 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 196
namespace NSCustomShapesConvert
{
class CActionButtonBeginType : public CCustomShape
{
public:
CActionButtonBeginType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,74 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 189
namespace NSCustomShapesConvert
{
class CActionButtonBlankType : public CCustomShape
{
public:
CActionButtonBlankType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,87 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 198
namespace NSCustomShapesConvert
{
class CActionButtonDocType : public CCustomShape
{
public:
CActionButtonDocType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,90 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 195
namespace NSCustomShapesConvert
{
class CActionButtonEndType : public CCustomShape
{
public:
CActionButtonEndType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,127 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 191
namespace NSCustomShapesConvert
{
class CActionButtonHelpType : public CCustomShape
{
public:
CActionButtonHelpType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,115 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 190
namespace NSCustomShapesConvert
{
class CActionButtonHomeType : public CCustomShape
{
public:
CActionButtonHomeType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,121 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 192
namespace NSCustomShapesConvert
{
class CActionButtonInfoType : public CCustomShape
{
public:
CActionButtonInfoType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,135 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 200
namespace NSCustomShapesConvert
{
class CActionButtonMovieType : public CCustomShape
{
public:
CActionButtonMovieType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,82 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 193
namespace NSCustomShapesConvert
{
class CActionButtonNextType : public CCustomShape
{
public:
CActionButtonNextType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,104 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 197
namespace NSCustomShapesConvert
{
class CActionButtonReturnType : public CCustomShape
{
public:
CActionButtonReturnType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,103 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 199
namespace NSCustomShapesConvert
{
class CActionButtonSoundType : public CCustomShape
{
public:
CActionButtonSoundType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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;
}
};
}

View File

@ -1,76 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 91
namespace NSCustomShapesConvert
{
class CBentArrowType : public CCustomShape
{
public:
CBentArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,57 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 34
namespace NSCustomShapesConvert
{
class CBentConnectorType : public CCustomShape
{
public:
CBentConnectorType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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"));
}
};
}

View File

@ -1,93 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 90
namespace NSCustomShapesConvert
{
class CBentUpArrowType : public CCustomShape
{
public:
CBentUpArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,78 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 84
namespace NSCustomShapesConvert
{
class CBevelType : public CCustomShape
{
public:
CBevelType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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(2700);
LoadConnectorsList(_T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@0,@0,@1,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
}

View File

@ -1,108 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 95
namespace NSCustomShapesConvert
{
class CBlockArcType : public CCustomShape
{
public:
CBlockArcType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("al10800,10800@0@0@2@14,10800,10800,10800,10800@3@15xe");
AddGuide(_T("val #1"));
AddGuide(_T("val #0"));
AddGuide(_T("sum 0 0 #0"));
AddGuide(_T("sumangle #0 0 180"));
AddGuide(_T("sumangle #0 0 90"));
AddGuide(_T("prod @4 2 1"));
AddGuide(_T("sumangle #0 90 0"));
AddGuide(_T("prod @6 2 1"));
AddGuide(_T("abs #0"));
AddGuide(_T("sumangle @8 0 90"));
AddGuide(_T("if @9 @7 @5"));
AddGuide(_T("sumangle @10 0 360"));
AddGuide(_T("if @10 @11 @10"));
AddGuide(_T("sumangle @12 0 360"));
AddGuide(_T("if @12 @13 @12"));
AddGuide(_T("sum 0 0 @14"));
AddGuide(_T("val 10800"));
AddGuide(_T("sum 10800 0 #1"));
AddGuide(_T("prod #1 1 2"));
AddGuide(_T("sum @18 5400 0"));
AddGuide(_T("cos @19 #0"));
AddGuide(_T("sin @19 #0"));
AddGuide(_T("sum @20 10800 0"));
AddGuide(_T("sum @21 10800 0"));
AddGuide(_T("sum 10800 0 @20"));
AddGuide(_T("sum #1 10800 0"));
AddGuide(_T("if @9 @17 @25"));
AddGuide(_T("if @9 0 21600"));
AddGuide(_T("cos 10800 #0"));
AddGuide(_T("sin 10800 #0"));
AddGuide(_T("sin #1 #0"));
AddGuide(_T("sum @28 10800 0"));
AddGuide(_T("sum @29 10800 0"));
AddGuide(_T("sum @30 10800 0"));
AddGuide(_T("if @4 0 @31"));
AddGuide(_T("if #0 @34 0"));
AddGuide(_T("if @6 @35 @31"));
AddGuide(_T("sum 21600 0 @36"));
AddGuide(_T("if @4 0 @33"));
AddGuide(_T("if #0 @38 @32"));
AddGuide(_T("if @6 @39 0"));
AddGuide(_T("if @4 @32 21600"));
AddGuide(_T("if @6 @41 @33"));
m_arAdjustments.push_back(11796480);
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("10800,@27;@22,@23;10800,@26;@24,@23"));
LoadTextRect(_T("@36,@40,@37,@42"));
CHandle_ oHandle1;
oHandle1.position = _T("#1,#0");
oHandle1.polar = _T("10800,10800");
oHandle1.radiusrange = _T("0,10800");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,71 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 47
namespace NSCustomShapesConvert
{
class CBorderCallout1Type : public CCustomShape
{
public:
CBorderCallout1Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,79 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 48
namespace NSCustomShapesConvert
{
class CBorderCallout2Type : public CCustomShape
{
public:
CBorderCallout2Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3@4@5nfem,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);
}
};
}

View File

@ -1,87 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 49
namespace NSCustomShapesConvert
{
class CBorderCallout3Type : public CCustomShape
{
public:
CBorderCallout3Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3@4@5@6@7nfem,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"));
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);
}
};
}

View File

@ -1,71 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 180
namespace NSCustomShapesConvert
{
class CBorderCallout90Type : public CCustomShape
{
public:
CBorderCallout90Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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(-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);
}
};
}

View File

@ -1,81 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 186
namespace NSCustomShapesConvert
{
class CBracePairType : public CCustomShape
{
public:
CBracePairType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@9,nfqx@0@0l@0@7qy0@4@0@8l@0@6qy@9,21600em@10,nfqx@5@0l@5@7qy21600@4@5@8l@5@6qy@10,21600em@9,nsqx@0@0l@0@7qy0@4@0@8l@0@6qy@9,21600l@10,21600qx@5@6l@5@8qy21600@4@5@7l@5@0qy@10,xe");
AddGuide(_T("val #0"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("sum @4 0 #0"));
AddGuide(_T("sum @4 #0 0"));
AddGuide(_T("prod #0 2 1"));
AddGuide(_T("sum width 0 @9"));
AddGuide(_T("prod #0 9598 32768"));
AddGuide(_T("sum height 0 @11"));
AddGuide(_T("sum @11 #0 0"));
AddGuide(_T("sum width 0 @13"));
m_arAdjustments.push_back(1800);
LoadConnectorsList(_T("@3,0;0,@4;@3,@2;@1,@4"));
LoadTextRect(_T("@13,@11,@14,@12"));
CHandle_ oHandle1;
oHandle1.position = _T("topLeft,#0");
oHandle1.switchHandle = _T("true");
oHandle1.yrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
}

View File

@ -1,76 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 185
namespace NSCustomShapesConvert
{
class CBracketPairType : public CCustomShape
{
public:
CBracketPairType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinRound;
//Encaps: Flat
m_strPath = _T("m@0,nfqx0@0l0@2qy@0,21600em@1,nfqx21600@0l21600@2qy@1,21600em@0,nsqx0@0l0@2qy@0,21600l@1,21600qx21600@2l21600@0qy@1,xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod @0 2929 10000"));
AddGuide(_T("sum width 0 @3"));
AddGuide(_T("sum height 0 @3"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
m_arAdjustments.push_back(3600);
LoadConnectorsList(_T("@8,0;0,@9;@8,@7;@6,@9"));
LoadTextRect(_T("@3,@3,@4,@5"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.switchHandle = _T("true");
oHandle1.xrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
}

View File

@ -1,71 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 41
namespace NSCustomShapesConvert
{
class CCallout1Type : public CCustomShape
{
public:
CCallout1Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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(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);
}
};
}

View File

@ -1,79 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 42
namespace NSCustomShapesConvert
{
class CCallout2Type : public CCustomShape
{
public:
CCallout2Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3@4@5nfem,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);
}
};
}

View File

@ -1,87 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 43
namespace NSCustomShapesConvert
{
class CCallout3Type : public CCustomShape
{
public:
CCallout3Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m@0@1l@2@3@4@5@6@7nfem,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);
}
};
}

View File

@ -1,71 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 178
namespace NSCustomShapesConvert
{
class CCallout90Type : public CCustomShape
{
public:
CCallout90Type()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::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);
}
};
}

View File

@ -1,69 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 22
namespace NSCustomShapesConvert
{
class CCanType : public CCustomShape
{
public:
CCanType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinRound;
m_strPath = _T("m10800,qx0@1l0@2qy10800,21600,21600@2l21600@1qy10800,xem0@1qy10800@0,21600@1nfe");
AddGuide(_T("val #0"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("sum height 0 @1"));
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("10800,@0;10800,0;0,10800;10800,21600;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,@0,21600,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("center,#0");
oHandle1.yrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,69 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 55
namespace NSCustomShapesConvert
{
class CChevronType : public CCustomShape
{
public:
CChevronType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,l,0@1,10800,,21600@0,21600,21600,10800xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum 21600 0 @0"));
AddGuide(_T("prod #0 1 2"));
m_arAdjustments.push_back(16200);
LoadConnectorsList(_T("@2,0;@1,10800;@2,21600;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,0,10800,21600;0,0,16200,21600;0,0,21600,21600"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("0,21600");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,117 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 99
namespace NSCustomShapesConvert
{
class CCircularArrowType : public CCustomShape
{
public:
CCircularArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("al10800,10800@8@8@4@6,10800,10800,10800,10800@9@7l@30@31@17@18@24@25@15@16@32@33xe");
AddGuide(_T("val #1"));
AddGuide(_T("val #0"));
AddGuide(_T("sum #1 0 #0"));
AddGuide(_T("val 10800"));
AddGuide(_T("sum 0 0 #1"));
AddGuide(_T("sumangle @2 360 0"));
AddGuide(_T("if @2 @2 @5"));
AddGuide(_T("sum 0 0 @6"));
AddGuide(_T("val #2"));
AddGuide(_T("sum 0 0 #0"));
AddGuide(_T("sum #2 0 2700"));
AddGuide(_T("cos @10 #1"));
AddGuide(_T("sin @10 #1"));
AddGuide(_T("cos 13500 #1"));
AddGuide(_T("sin 13500 #1"));
AddGuide(_T("sum @11 10800 0"));
AddGuide(_T("sum @12 10800 0"));
AddGuide(_T("sum @13 10800 0"));
AddGuide(_T("sum @14 10800 0"));
AddGuide(_T("prod #2 1 2 "));
AddGuide(_T("sum @19 5400 0"));
AddGuide(_T("cos @20 #1"));
AddGuide(_T("sin @20 #1"));
AddGuide(_T("sum @21 10800 0"));
AddGuide(_T("sum @12 @23 @22"));
AddGuide(_T("sum @22 @23 @11"));
AddGuide(_T("cos 10800 #1"));
AddGuide(_T("sin 10800 #1"));
AddGuide(_T("cos #2 #1"));
AddGuide(_T("sin #2 #1"));
AddGuide(_T("sum @26 10800 0"));
AddGuide(_T("sum @27 10800 0"));
AddGuide(_T("sum @28 10800 0"));
AddGuide(_T("sum @29 10800 0"));
AddGuide(_T("sum @19 5400 0 "));
AddGuide(_T("cos @34 #0"));
AddGuide(_T("sin @34 #0"));
AddGuide(_T("mid #0 #1"));
AddGuide(_T("sumangle @37 180 0"));
AddGuide(_T("if @2 @37 @38"));
AddGuide(_T("cos 10800 @39"));
AddGuide(_T("sin 10800 @39"));
AddGuide(_T("cos #2 @39"));
AddGuide(_T("sin #2 @39"));
AddGuide(_T("sum @40 10800 0"));
AddGuide(_T("sum @41 10800 0"));
AddGuide(_T("sum @42 10800 0"));
AddGuide(_T("sum @43 10800 0"));
AddGuide(_T("sum @35 10800 0"));
AddGuide(_T("sum @36 10800 0"));
m_arAdjustments.push_back(-11796480);
m_arAdjustments.push_back(0);
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("@44,@45;@48,@49;@46,@47;@17,@18;@24,@25;@15,@16"));
LoadTextRect(_T("3163,3163,18437,18437"));
CHandle_ oHandle1;
oHandle1.position = _T("@3,#0");
oHandle1.polar = _T("10800,10800");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#2,#1");
oHandle2.polar = _T("10800,10800");
oHandle2.radiusrange = _T("0,10800");
m_arHandles.push_back(oHandle2);
}
};
}

View File

@ -1,102 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 106
namespace NSCustomShapesConvert
{
class CCloudCalloutType : public CCustomShape
{
public:
CCloudCalloutType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinRound;
m_strPath = _T("ar,7165,4345,13110,1950,7185,1080,12690,475,11732,4835,17650,1080,12690,2910,17640,2387,9757,10107,20300,2910,17640,8235,19545,7660,12382,14412,21597,8235,19545,14280,18330,12910,11080,18695,18947,14280,18330,18690,15045,14822,5862,21597,15082,18690,15045,20895,7665,15772,2592,21105,9865,20895,7665,19140,2715,14330,,19187,6595,19140,2715,14910,1170,10992,,15357,5945,14910,1170,11250,1665,6692,650,12025,7917,11250,1665,7005,2580,1912,1972,8665,11162,7005,2580,1950,7185xear,7165,4345,13110,1080,12690,2340,13080nfear475,11732,4835,17650,2910,17640,3465,17445nfear7660,12382,14412,21597,7905,18675,8235,19545nfear7660,12382,14412,21597,14280,18330,14400,17370nfear12910,11080,18695,18947,18690,15045,17070,11475nfear15772,2592,21105,9865,20175,9015,20895,7665nfear14330,,19187,6595,19200,3345,19140,2715nfear14330,,19187,6595,14910,1170,14550,1980nfear10992,,15357,5945,11250,1665,11040,2340nfear1912,1972,8665,11162,7650,3270,7005,2580nfear1912,1972,8665,11162,1950,7185,2070,7890nfem@23@37qx@35@24@23@36@34@24@23@37xem@16@33qx@31@17@16@32@30@17@16@33xem@38@29qx@27@39@38@28@26@39@38@29xe");
AddGuide(_T("sum #0 0 10800"));
AddGuide(_T("sum #1 0 10800"));
AddGuide(_T("cosatan2 10800 @0 @1"));
AddGuide(_T("sinatan2 10800 @0 @1"));
AddGuide(_T("sum @2 10800 0"));
AddGuide(_T("sum @3 10800 0"));
AddGuide(_T("sum @4 0 #0"));
AddGuide(_T("sum @5 0 #1"));
AddGuide(_T("mod @6 @7 0"));
AddGuide(_T("prod 600 11 1"));
AddGuide(_T("sum @8 0 @9"));
AddGuide(_T("prod @10 1 3"));
AddGuide(_T("prod 600 3 1"));
AddGuide(_T("sum @11 @12 0"));
AddGuide(_T("prod @13 @6 @8"));
AddGuide(_T("prod @13 @7 @8"));
AddGuide(_T("sum @14 #0 0"));
AddGuide(_T("sum @15 #1 0"));
AddGuide(_T("prod 600 8 1"));
AddGuide(_T("prod @11 2 1"));
AddGuide(_T("sum @18 @19 0"));
AddGuide(_T("prod @20 @6 @8"));
AddGuide(_T("prod @20 @7 @8"));
AddGuide(_T("sum @21 #0 0"));
AddGuide(_T("sum @22 #1 0"));
AddGuide(_T("prod 600 2 1"));
AddGuide(_T("sum #0 600 0"));
AddGuide(_T("sum #0 0 600"));
AddGuide(_T("sum #1 600 0"));
AddGuide(_T("sum #1 0 600"));
AddGuide(_T("sum @16 @25 0"));
AddGuide(_T("sum @16 0 @25"));
AddGuide(_T("sum @17 @25 0"));
AddGuide(_T("sum @17 0 @25"));
AddGuide(_T("sum @23 @12 0"));
AddGuide(_T("sum @23 0 @12"));
AddGuide(_T("sum @24 @12 0"));
AddGuide(_T("sum @24 0 @12"));
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
m_arAdjustments.push_back(1350);
m_arAdjustments.push_back(25920);
LoadConnectorsList(_T("67,10800;10800,21577;21582,10800;10800,1235;@38,@39"));
LoadTextRect(_T("2977,3262,17087,17337"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,80 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 16
namespace NSCustomShapesConvert
{
class CCubeType : public CCustomShape
{
public:
CCubeType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,l0@0,,21600@1,21600,21600@2,21600,xem0@0nfl@1@0,21600,em@1@0nfl@1,21600e");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("mid height #0"));
AddGuide(_T("prod @1 1 2"));
AddGuide(_T("prod @2 1 2"));
AddGuide(_T("mid width #0"));
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("@6,0;@4,@0;0,@3;@4,21600;@1,@3;21600,@5"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,@0,@1,21600"));
CHandle_ oHandle1;
oHandle1.position = _T("topLeft,#0");
oHandle1.switchHandle = _T("true");
oHandle1.yrange = _T("0,21600");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
}

View File

@ -1,61 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 38
namespace NSCustomShapesConvert
{
class CCurvedConnectorType : public CCustomShape
{
public:
CCurvedConnectorType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinRound;
//m_strPathLimoX = _T("m0,0qx@0,10800qy21600,21600nfe");
//m_strPathLimoY = _T("m0,0qy@0,10800qx21600,21600nfe");
m_strPath = _T("m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e");//m_strPathLimoX;
AddGuide(_T("mid #0 0"));
AddGuide(_T("val #0"));
AddGuide(_T("mid #0 21600"));
//AddGuide(_T("val #0"));
m_arAdjustments.push_back(10800);
LoadConnectorsList(_T("0,0;21600,21600"));
}
};
}

View File

@ -1,128 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 105
namespace NSCustomShapesConvert
{
class CCurvedDownArrowType : public CCustomShape
{
public:
CCurvedDownArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("wr,0@3@23,0@22@4,0@15,0@1@23@7,0@13@2l@14@2@8@22@12@2at,0@3@23@11@2@17@26@15,0@1@23@17@26@15@22xewr,0@3@23@4,0@17@26nfe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("sum #0 width #1"));
AddGuide(_T("prod @3 1 2"));
AddGuide(_T("sum #1 #1 width"));
AddGuide(_T("sum @5 #1 #0"));
AddGuide(_T("prod @6 1 2"));
AddGuide(_T("mid width #0"));
AddGuide(_T("sum height 0 #2"));
AddGuide(_T("ellipse @9 height @4"));
AddGuide(_T("sum @4 @10 0"));
AddGuide(_T("sum @11 #1 width"));
AddGuide(_T("sum @7 @10 0"));
AddGuide(_T("sum @12 width #0"));
AddGuide(_T("sum @5 0 #0"));
AddGuide(_T("prod @15 1 2"));
AddGuide(_T("mid @4 @7"));
AddGuide(_T("sum #0 #1 width"));
AddGuide(_T("prod @18 1 2"));
AddGuide(_T("sum @17 0 @19"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("prod height 2 1"));
AddGuide(_T("sum @17 0 @4"));
AddGuide(_T("ellipse @24 @4 height"));
AddGuide(_T("sum height 0 @25"));
AddGuide(_T("sum @8 128 0"));
AddGuide(_T("prod @5 1 2"));
AddGuide(_T("sum @5 0 128"));
AddGuide(_T("sum #0 @17 @12"));
AddGuide(_T("ellipse @20 @4 height"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("prod @32 1 2"));
AddGuide(_T("prod height height 1"));
AddGuide(_T("prod @9 @9 1"));
AddGuide(_T("sum @34 0 @35"));
AddGuide(_T("sqrt @36"));
AddGuide(_T("sum @37 height 0"));
AddGuide(_T("prod width height @38"));
AddGuide(_T("sum @39 64 0"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("ellipse @33 @41 height"));
AddGuide(_T("sum height 0 @42"));
AddGuide(_T("sum @43 64 0"));
AddGuide(_T("prod @4 1 2"));
AddGuide(_T("sum #1 0 @45"));
AddGuide(_T("prod height 4390 32768"));
AddGuide(_T("prod height 28378 32768"));
m_arAdjustments.push_back(12960);
m_arAdjustments.push_back(19440);
m_arAdjustments.push_back(14400);
LoadConnectorsList(_T("@17,0;@16,@22;@12,@2;@8,@22;@14,@2"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@45,@47,@46,@48"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,bottomRight");
oHandle1.xrange = _T("@40,@29");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle1.position = _T("#1,bottomRight");
oHandle1.xrange = _T("@27,@21");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("bottomRight,#2");
oHandle3.yrange = _T("@44,@22");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,124 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 103
namespace NSCustomShapesConvert
{
class CCurvedLeftArrowType : public CCustomShape
{
public:
CCurvedLeftArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("wr@22,0@21@3,,0@21@4@22@14@21@1@21@7@2@12l@2@13,0@8@2@11at@22,0@21@3@2@10@24@16@22@14@21@1@24@16,0@14xear@22@14@21@1@21@7@24@16nfe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("sum #0 width #1"));
AddGuide(_T("prod @3 1 2"));
AddGuide(_T("sum #1 #1 width"));
AddGuide(_T("sum @5 #1 #0"));
AddGuide(_T("prod @6 1 2"));
AddGuide(_T("mid width #0"));
AddGuide(_T("ellipse #2 height @4"));
AddGuide(_T("sum @4 @9 0"));
AddGuide(_T("sum @10 #1 width"));
AddGuide(_T("sum @7 @9 0"));
AddGuide(_T("sum @11 width #0"));
AddGuide(_T("sum @5 0 #0"));
AddGuide(_T("prod @14 1 2"));
AddGuide(_T("mid @4 @7"));
AddGuide(_T("sum #0 #1 width"));
AddGuide(_T("prod @17 1 2"));
AddGuide(_T("sum @16 0 @18"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("sum 0 0 height"));
AddGuide(_T("sum @16 0 @4"));
AddGuide(_T("ellipse @23 @4 height"));
AddGuide(_T("sum @8 128 0"));
AddGuide(_T("prod @5 1 2"));
AddGuide(_T("sum @5 0 128"));
AddGuide(_T("sum #0 @16 @11"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("prod @29 1 2"));
AddGuide(_T("prod height height 1"));
AddGuide(_T("prod #2 #2 1"));
AddGuide(_T("sum @31 0 @32"));
AddGuide(_T("sqrt @33"));
AddGuide(_T("sum @34 height 0"));
AddGuide(_T("prod width height @35"));
AddGuide(_T("sum @36 64 0"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("ellipse @30 @38 height"));
AddGuide(_T("sum @39 0 64"));
AddGuide(_T("prod @4 1 2"));
AddGuide(_T("sum #1 0 @41"));
AddGuide(_T("prod height 4390 32768"));
AddGuide(_T("prod height 28378 32768"));
m_arAdjustments.push_back(12960);
m_arAdjustments.push_back(19440);
m_arAdjustments.push_back(7200);
LoadConnectorsList(_T("0,@15;@2,@11;0,@8;@2,@13;@21,@16"));
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@43,@41,@44,@42"));
CHandle_ oHandle1;
oHandle1.position = _T("topLeft,#0");
oHandle1.yrange = _T("@37,@27");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle1.position = _T("topLeft,#1");
oHandle1.yrange = _T("@25,@20");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("#2,bottomRight");
oHandle3.xrange = _T("0,@40");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,128 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 102
namespace NSCustomShapesConvert
{
class CCurvedRightArrowType : public CCustomShape
{
public:
CCurvedRightArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("ar,0@23@3@22,,0@4,0@15@23@1,0@7@2@13l@2@14@22@8@2@12wa,0@23@3@2@11@26@17,0@15@23@1@26@17@22@15xear,0@23@3,0@4@26@17nfe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("sum #0 width #1"));
AddGuide(_T("prod @3 1 2"));
AddGuide(_T("sum #1 #1 width"));
AddGuide(_T("sum @5 #1 #0"));
AddGuide(_T("prod @6 1 2"));
AddGuide(_T("mid width #0"));
AddGuide(_T("sum height 0 #2"));
AddGuide(_T("ellipse @9 height @4"));
AddGuide(_T("sum @4 @10 0"));
AddGuide(_T("sum @11 #1 width"));
AddGuide(_T("sum @7 @10 0"));
AddGuide(_T("sum @12 width #0"));
AddGuide(_T("sum @5 0 #0"));
AddGuide(_T("prod @15 1 2"));
AddGuide(_T("mid @4 @7"));
AddGuide(_T("sum #0 #1 width"));
AddGuide(_T("prod @18 1 2"));
AddGuide(_T("sum @17 0 @19"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("prod height 2 1"));
AddGuide(_T("sum @17 0 @4"));
AddGuide(_T("ellipse @24 @4 height"));
AddGuide(_T("sum height 0 @25"));
AddGuide(_T("sum @8 128 0"));
AddGuide(_T("prod @5 1 2"));
AddGuide(_T("sum @5 0 128"));
AddGuide(_T("sum #0 @17 @12"));
AddGuide(_T("ellipse @20 @4 height"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("prod @32 1 2"));
AddGuide(_T("prod height height 1"));
AddGuide(_T("prod @9 @9 1"));
AddGuide(_T("sum @34 0 @35"));
AddGuide(_T("sqrt @36"));
AddGuide(_T("sum @37 height 0"));
AddGuide(_T("prod width height @38"));
AddGuide(_T("sum @39 64 0"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("ellipse @33 @41 height"));
AddGuide(_T("sum height 0 @42"));
AddGuide(_T("sum @43 64 0"));
AddGuide(_T("prod @4 1 2"));
AddGuide(_T("sum #1 0 @45"));
AddGuide(_T("prod height 4390 32768"));
AddGuide(_T("prod height 28378 32768"));
m_arAdjustments.push_back(12960);
m_arAdjustments.push_back(19440);
m_arAdjustments.push_back(14400);
LoadConnectorsList(_T("0,@17;@2,@14;@22,@8;@2,@12;@22,@16"));
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
m_arConnectorAngles.push_back(0);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@47,@45,@48,@46"));
CHandle_ oHandle1;
oHandle1.position = _T("bottomRight,#0");
oHandle1.yrange = _T("@40,@29");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle1.position = _T("bottomRight,#1");
oHandle1.yrange = _T("@27,@21");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("#2,bottomRight");
oHandle3.xrange = _T("@44,@22");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,124 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
//104
namespace NSCustomShapesConvert
{
class CCurvedUpArrowType : public CCustomShape
{
public:
CCurvedUpArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("ar0@22@3@21,,0@4@21@14@22@1@21@7@21@12@2l@13@2@8,0@11@2wa0@22@3@21@10@2@16@24@14@22@1@21@16@24@14,xewr@14@22@1@21@7@21@16@24nfe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("sum #0 width #1"));
AddGuide(_T("prod @3 1 2"));
AddGuide(_T("sum #1 #1 width"));
AddGuide(_T("sum @5 #1 #0"));
AddGuide(_T("prod @6 1 2"));
AddGuide(_T("mid width #0"));
AddGuide(_T("ellipse #2 height @4"));
AddGuide(_T("sum @4 @9 0"));
AddGuide(_T("sum @10 #1 width"));
AddGuide(_T("sum @7 @9 0"));
AddGuide(_T("sum @11 width #0"));
AddGuide(_T("sum @5 0 #0"));
AddGuide(_T("prod @14 1 2"));
AddGuide(_T("mid @4 @7"));
AddGuide(_T("sum #0 #1 width"));
AddGuide(_T("prod @17 1 2"));
AddGuide(_T("sum @16 0 @18"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("sum 0 0 height"));
AddGuide(_T("sum @16 0 @4"));
AddGuide(_T("ellipse @23 @4 height"));
AddGuide(_T("sum @8 128 0"));
AddGuide(_T("prod @5 1 2"));
AddGuide(_T("sum @5 0 128"));
AddGuide(_T("sum #0 @16 @11"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("prod @29 1 2"));
AddGuide(_T("prod height height 1"));
AddGuide(_T("prod #2 #2 1"));
AddGuide(_T("sum @31 0 @32"));
AddGuide(_T("sqrt @33"));
AddGuide(_T("sum @34 height 0"));
AddGuide(_T("prod width height @35"));
AddGuide(_T("sum @36 64 0"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("ellipse @30 @38 height"));
AddGuide(_T("sum @39 0 64"));
AddGuide(_T("prod @4 1 2"));
AddGuide(_T("sum #1 0 @41"));
AddGuide(_T("prod height 4390 32768"));
AddGuide(_T("prod height 28378 32768"));
m_arAdjustments.push_back(12960);
m_arAdjustments.push_back(19440);
m_arAdjustments.push_back(7200);
LoadConnectorsList(_T("@8,0;@11,@2;@15,0;@16,@21;@13,@2"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@41,@43,@42,@44"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("@37,@27");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle1.position = _T("#1,topLeft");
oHandle1.xrange = _T("@25,@20");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("bottomRight,#2");
oHandle3.yrange = _T("0,@40");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,54 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 4
namespace NSCustomShapesConvert
{
class CDiamondType : public CCustomShape
{
public:
CDiamondType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,l,10800,10800,21600,21600,10800xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("5400,5400,16200,16200"));
}
};
}

View File

@ -1,65 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 23
namespace NSCustomShapesConvert
{
class CDonutType : public CCustomShape
{
public:
CDonutType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinRound;
m_strPath = _T("m,10800qy10800,,21600,10800,10800,21600,,10800xm@0,10800qy10800@2@1,10800,10800@0@0,10800xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod @0 2929 10000"));
AddGuide(_T("sum width 0 @3"));
AddGuide(_T("sum height 0 @3"));
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163"));
LoadTextRect(_T("3163,3163,18437,18437"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,center");
oHandle1.xrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,90 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 80
namespace NSCustomShapesConvert
{
class CDownArrowCalloutType : public CCustomShape
{
public:
CDownArrowCalloutType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l21600,,21600@0@5@0@5@2@4@2,10800,21600@1@2@3@2@3@0,0@0xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
AddGuide(_T("sum 21600 0 #1"));
AddGuide(_T("sum 21600 0 #3"));
AddGuide(_T("prod #0 1 2"));
m_arAdjustments.push_back(14400);
m_arAdjustments.push_back(5400);
m_arAdjustments.push_back(18000);
m_arAdjustments.push_back(8100);
LoadConnectorsList(_T("10800,0;0,@6;10800,21600;21600,@6"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,0,21600,@0"));
CHandle_ oHandle1;
oHandle1.position = _T("topLeft,#0");
oHandle1.yrange = _T("0,@2");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#1,bottomRight");
oHandle2.xrange = _T("0,@3");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("#3,#2");
oHandle3.xrange = _T("@1,10800");
oHandle3.yrange = _T("@0,21600");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,76 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 67
namespace NSCustomShapesConvert
{
class CDownArrowType : public CCustomShape
{
public:
CDownArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m0@0l@1@0@1,0@2,0@2@0,21600@0,10800,21600xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("sum height 0 #1"));
AddGuide(_T("sum 10800 0 #1"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("prod @4 @3 10800"));
AddGuide(_T("sum width 0 @5"));
m_arAdjustments.push_back(16200);
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("10800,0;0,@0;10800,21600;21600,@0"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@1,0,@2,@6"));
CHandle_ oHandle1;
oHandle1.position = _T("#1,#0");
oHandle1.xrange = _T("0,10800");
oHandle1.yrange = _T("0,21600");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,123 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 108
namespace NSCustomShapesConvert
{
class CEllipceRibbon2Type : public CCustomShape
{
public:
CEllipceRibbon2Type()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("wr@9@34@8@35,0@24@0@23@9,0@8@11@0@22@19@22@9@34@8@35@19@23@3@24l@7@36@3@4at@9@31@8@32@3@4@18@30@9@1@8@33@18@28@17@28@9@31@8@32@17@30,0@4l@5@36xear@9@1@8@33@17@28@0@29nfl@17@30ewr@9@1@8@33@18@28@19@29nfl@18@30em@0@23nfl@0@29em@19@23nfl@19@29e");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("prod width 1 8"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod width 7 8"));
AddGuide(_T("prod width 3 2"));
AddGuide(_T("sum 0 0 @6"));
AddGuide(_T("prod #2 30573 4096"));
AddGuide(_T("prod @10 2 1"));
AddGuide(_T("sum @10 height #2"));
AddGuide(_T("sum @10 #1 0"));
AddGuide(_T("prod #1 1 2"));
AddGuide(_T("sum @10 @14 0"));
AddGuide(_T("sum @12 0 #1"));
AddGuide(_T("sum #0 @5 0"));
AddGuide(_T("sum width 0 @17"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum @6 0 #0"));
AddGuide(_T("ellipse @20 width @10"));
AddGuide(_T("sum @10 0 @21"));
AddGuide(_T("sum @22 @16 @10"));
AddGuide(_T("sum #2 @16 @10"));
AddGuide(_T("prod @10 2391 32768"));
AddGuide(_T("sum @6 0 @17"));
AddGuide(_T("ellipse @26 width @10"));
AddGuide(_T("sum @10 #1 @27"));
AddGuide(_T("sum @22 #1 0"));
AddGuide(_T("sum @12 0 @27"));
AddGuide(_T("sum height 0 #2"));
AddGuide(_T("sum @10 @12 0"));
AddGuide(_T("sum @32 @10 @16"));
AddGuide(_T("sum @31 @10 @13"));
AddGuide(_T("sum @32 @10 @13"));
AddGuide(_T("sum @25 @12 @15"));
AddGuide(_T("sum @16 0 @15"));
AddGuide(_T("prod @37 2 3"));
AddGuide(_T("sum @1 @38 0"));
AddGuide(_T("sum #2 @38 0"));
AddGuide(_T("max @40 675"));
AddGuide(_T("prod width 3 8"));
AddGuide(_T("sum @42 0 4"));
m_arAdjustments.push_back(5400);
m_arAdjustments.push_back(16200);
m_arAdjustments.push_back(2700);
LoadConnectorsList(_T("@6,0;@5,@36;@6,@1;@7,@36"));
LoadTextRect(_T("@0,@22,@19,@1"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
CHandle_ oHandle1;
oHandle1.position = _T("topLeft,#0");
oHandle1.xrange = _T("@5,@43");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("center,#1");
oHandle2.yrange = _T("@39,@31");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("topLeft,#2");
oHandle3.yrange = _T("@41,@24 ");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,127 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 107
namespace NSCustomShapesConvert
{
class CEllipceRibbonType : public CCustomShape
{
public:
CEllipceRibbonType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("ar@9@38@8@37,0@27@0@26@9@13@8@4@0@25@22@25@9@38@8@37@22@26@3@27l@7@40@3,wa@9@35@8@10@3,0@21@33@9@36@8@1@21@31@20@31@9@35@8@10@20@33,,l@5@40xewr@9@36@8@1@20@31@0@32nfl@20@33ear@9@36@8@1@21@31@22@32nfl@21@33em@0@26nfl@0@32em@22@26nfl@22@32e");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("prod width 1 8"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod width 7 8"));
AddGuide(_T("prod width 3 2"));
AddGuide(_T("sum 0 0 @6"));
AddGuide(_T("sum height 0 #2"));
AddGuide(_T("prod @10 30573 4096"));
AddGuide(_T("prod @11 2 1"));
AddGuide(_T("sum height 0 @12"));
AddGuide(_T("sum @11 #2 0"));
AddGuide(_T("sum @11 height #1"));
AddGuide(_T("sum height 0 #1"));
AddGuide(_T("prod @16 1 2"));
AddGuide(_T("sum @11 @17 0"));
AddGuide(_T("sum @14 #1 height"));
AddGuide(_T("sum #0 @5 0"));
AddGuide(_T("sum width 0 @20"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum @6 0 #0"));
AddGuide(_T("ellipse @23 width @11"));
AddGuide(_T("sum @24 height @11"));
AddGuide(_T("sum @25 @11 @19"));
AddGuide(_T("sum #2 @11 @19"));
AddGuide(_T("prod @11 2391 32768"));
AddGuide(_T("sum @6 0 @20"));
AddGuide(_T("ellipse @29 width @11"));
AddGuide(_T("sum #1 @30 @11"));
AddGuide(_T("sum @25 #1 height"));
AddGuide(_T("sum height @30 @14"));
AddGuide(_T("sum @11 @14 0"));
AddGuide(_T("sum height 0 @34"));
AddGuide(_T("sum @35 @19 @11"));
AddGuide(_T("sum @10 @15 @11"));
AddGuide(_T("sum @35 @15 @11"));
AddGuide(_T("sum @28 @14 @18"));
AddGuide(_T("sum height 0 @39"));
AddGuide(_T("sum @19 0 @18"));
AddGuide(_T("prod @41 2 3"));
AddGuide(_T("sum #1 0 @42"));
AddGuide(_T("sum #2 0 @42"));
AddGuide(_T("min @44 20925"));
AddGuide(_T("prod width 3 8"));
AddGuide(_T("sum @46 0 4"));
m_arAdjustments.push_back(5400);
m_arAdjustments.push_back(5400);
m_arAdjustments.push_back(18900);
LoadConnectorsList(_T("@6,0;@5,@36;@6,@1;@7,@36"));
LoadTextRect(_T("@0,@22,@19,@1"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
CHandle_ oHandle1;
oHandle1.position = _T("#0,bottomRight");
oHandle1.xrange = _T("@5,@47");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("center,#1");
oHandle2.yrange = _T("@10,@43");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("topLeft,#2");
oHandle3.yrange = _T("@27,@45");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,50 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 3
namespace NSCustomShapesConvert
{
class CEllipseType : public CCustomShape
{
public:
CEllipseType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,10800qy10800,,21600,10800,10800,21600,,10800xe");
LoadTextRect(_T("3233,3233,18367,18367"));
}
};
}

View File

@ -1,69 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 176
namespace NSCustomShapesConvert
{
class CFlowChartAlternateProcessType : public CCustomShape
{
public:
CFlowChartAlternateProcessType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,qx0@0l0@2qy@0,21600l@1,21600qx21600@2l21600@0qy@1,xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod @0 2929 10000"));
AddGuide(_T("sum width 0 @3"));
AddGuide(_T("sum height 0 @3"));
AddGuide(_T("val width"));
AddGuide(_T("val height"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
m_arAdjustments.push_back(2700);
LoadConnectorsList(_T("@8,0;0,@9;@8,@7;@6,@9"));
LoadTextRect(_T("@3,@3,@4,@5"));
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
}

View File

@ -1,54 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 110
namespace NSCustomShapesConvert
{
class CFlowChartDecisionType : public CCustomShape
{
public:
CFlowChartDecisionType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,l,10800,10800,21600,21600,10800xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("5400,5400,16200,16200"));
}
};
}

View File

@ -1,52 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 134
namespace NSCustomShapesConvert
{
class CFlowChartDisplayType : public CCustomShape
{
public:
CFlowChartDisplayType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m17955,v862,282,1877,1410,2477,3045c21035,5357,21372,7895,21597,10827v-225,2763,-562,5300,-1165,7613c19832,20132,18817,21260,17955,21597r-14388,l,10827,3567,xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("3567,0,17955,21600"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
//114
namespace NSCustomShapesConvert
{
class CFlowChartDocumentType : public CCustomShape
{
public:
CFlowChartDocumentType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,20172v945,400,1887,628,2795,913c3587,21312,4342,21370,5060,21597v2037,,2567,-227,3095,-285c8722,21197,9325,20970,9855,20800v490,-228,945,-400,1472,-740c11817,19887,12347,19660,12875,19375v567,-228,1095,-513,1700,-740c15177,18462,15782,18122,16537,17950v718,-113,1398,-398,2228,-513c19635,17437,20577,17322,21597,17322l21597,,,xe");
LoadConnectorsList(_T("10800,0;0,10800;10800,20400;21600,10800"));
LoadTextRect(_T("0,0,21600,17322"));
}
};
}

View File

@ -1,51 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 127
namespace NSCustomShapesConvert
{
class CFlowChartExtractType : public CCustomShape
{
public:
CFlowChartExtractType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,l21600,21600,,21600xe");
LoadConnectorsList(_T("10800,0;5400,10800;10800,21600;16200,10800"));
LoadTextRect(_T("5400,10800,16200,21600"));
}
};
}

View File

@ -1,54 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 111
namespace NSCustomShapesConvert
{
class CFlowChartInputOutputType : public CCustomShape
{
public:
CFlowChartInputOutputType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m4321,l21600,,17204,21600,,21600xe");
LoadConnectorsList(_T("2961,0;10800,0;2161,10800;8602,21600;10800,21600;19402,10800"));
LoadTextRect(_T("4321,0,17204,21600"));
}
};
}

View File

@ -1,54 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 113
namespace NSCustomShapesConvert
{
class CFlowChartInternalStorageType : public CCustomShape
{
public:
CFlowChartInternalStorageType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem4236,nfl4236,21600em,4236nfl21600,4236e");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("4236,4236,21600,21600"));
}
};
}

View File

@ -1,59 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 132
namespace NSCustomShapesConvert
{
class CFlowChartMagneticDiskType : public CCustomShape
{
public:
CFlowChartMagneticDiskType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,qx,3391l,18209qy10800,21600,21600,18209l21600,3391qy10800,xem,3391nfqy10800,6782,21600,3391e");
LoadConnectorsList(_T("10800,6782;10800,0;0,10800;10800,21600;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,6782,21600,18209"));
}
};
}

View File

@ -1,60 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 133
namespace NSCustomShapesConvert
{
class CFlowChartMagneticDrumType : public CCustomShape
{
public:
CFlowChartMagneticDrumType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m21600,10800qy18019,21600l3581,21600qx,10800,3581,l18019,qx21600,10800xem18019,21600nfqx14438,10800,18019,e");
LoadConnectorsList(_T("10800,0;0,10800;10800,21600;14438,10800;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("3581,0,14438,21600"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 131
namespace NSCustomShapesConvert
{
class CFlowChartMagneticTapeType : public CCustomShape
{
public:
CFlowChartMagneticTapeType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("ar,,21600,21600,18685,18165,10677,21597l20990,21597r,-3432xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("3163,3163,18437,18437"));
}
};
}

View File

@ -1,54 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 118
namespace NSCustomShapesConvert
{
class CFlowChartManualInputType : public CCustomShape
{
public:
CFlowChartManualInputType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,4292l21600,r,21600l,21600xe");
LoadConnectorsList(_T("10800,2146;0,10800;10800,21600;21600,10800"));
LoadTextRect(_T("0,4291,21600,21600"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 119
namespace NSCustomShapesConvert
{
class CFlowChartManualOperationType : public CCustomShape
{
public:
CFlowChartManualOperationType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l21600,,17240,21600r-12880,xe");
LoadConnectorsList(_T("10800,0;2180,10800;10800,21600;19420,10800"));
LoadTextRect(_T("4321,0,17204,21600"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 128
namespace NSCustomShapesConvert
{
class CFlowChartMergeType : public CCustomShape
{
public:
CFlowChartMergeType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l21600,,10800,21600xe");
LoadConnectorsList(_T("10800,0;5400,10800;10800,21600;16200,10800"));
LoadTextRect(_T("5400,0,16200,10800"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 115
namespace NSCustomShapesConvert
{
class CFlowChartMultidocumentType : public CCustomShape
{
public:
CFlowChartMultidocumentType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,20465v810,317,1620,452,2397,725c3077,21325,3790,21417,4405,21597v1620,,2202,-180,2657,-272c7580,21280,8002,21010,8455,20917v422,-135,810,-405,1327,-542c10205,20150,10657,19967,11080,19742v517,-182,970,-407,1425,-590c13087,19017,13605,18745,14255,18610v615,-180,1262,-318,1942,-408c16975,18202,17785,18022,18595,18022r,-1670l19192,16252r808,l20000,14467r722,-75l21597,14392,21597,,2972,r,1815l1532,1815r,1860l,3675,,20465xem1532,3675nfl18595,3675r,12677em2972,1815nfl20000,1815r,12652e");
LoadConnectorsList(_T("10800,0;0,10800;10800,19890;21600,10800"));
LoadTextRect(_T("0,3675,18595,18022"));
}
};
}

View File

@ -1,52 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 177
namespace NSCustomShapesConvert
{
class CFlowChartOffpageConnectorType : public CCustomShape
{
public:
CFlowChartOffpageConnectorType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l21600,r,17255l10800,21600,,17255xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("0,0,21600,17255"));
}
};
}

View File

@ -1,52 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 130
namespace NSCustomShapesConvert
{
class CFlowChartOnlineStorageType : public CCustomShape
{
public:
CFlowChartOnlineStorageType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m3600,21597c2662,21202,1837,20075,1087,18440,487,16240,75,13590,,10770,75,8007,487,5412,1087,3045,1837,1465,2662,337,3600,l21597,v-937,337,-1687,1465,-2512,3045c18485,5412,18072,8007,17997,10770v75,2820,488,5470,1088,7670c19910,20075,20660,21202,21597,21597xe");
LoadConnectorsList(_T("10800,0;0,10800;10800,21600;17997,10800"));
LoadTextRect(_T("3600,0,17997,21600"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 124
namespace NSCustomShapesConvert
{
class CFlowChartOrType : public CCustomShape
{
public:
CFlowChartOrType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,qx,10800,10800,21600,21600,10800,10800,xem,10800nfl21600,10800em10800,nfl10800,21600e");
LoadConnectorsList(_T("10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163"));
LoadTextRect(_T("3163,3163,18437,18437"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 112
namespace NSCustomShapesConvert
{
class CFlowChartPredefinedProcessType : public CCustomShape
{
public:
CFlowChartPredefinedProcessType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xem2610,nfl2610,21600em18990,nfl18990,21600e");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("2610,0,18990,21600"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 117
namespace NSCustomShapesConvert
{
class CFlowChartPreparationType : public CCustomShape
{
public:
CFlowChartPreparationType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m4353,l17214,r4386,10800l17214,21600r-12861,l,10800xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("4353,0,17214,21600"));
}
};
}

View File

@ -1,51 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 109
namespace NSCustomShapesConvert
{
class CFlowChartProcessType : public CCustomShape
{
public:
CFlowChartProcessType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l,21600r21600,l21600,xe");
LoadConnectorsList(_T("Rectangle"));
}
};
}

View File

@ -1,52 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 121
namespace NSCustomShapesConvert
{
class CFlowChartPunchedCardType : public CCustomShape
{
public:
CFlowChartPunchedCardType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m4321,l21600,r,21600l,21600,,4338xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("0,4321,21600,21600"));
}
};
}

View File

@ -1,52 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 122
namespace NSCustomShapesConvert
{
class CFlowChartPunchedTapeType : public CCustomShape
{
public:
CFlowChartPunchedTapeType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m21597,19450v-225,-558,-750,-1073,-1650,-1545c18897,17605,17585,17347,16197,17260v-1500,87,-2700,345,-3787,645c11472,18377,10910,18892,10800,19450v-188,515,-750,1075,-1613,1460c8100,21210,6825,21425,5400,21597,3937,21425,2700,21210,1612,20910,675,20525,150,19965,,19450l,2147v150,558,675,1073,1612,1460c2700,3950,3937,4165,5400,4337,6825,4165,8100,3950,9187,3607v863,-387,1425,-902,1613,-1460c10910,1632,11472,1072,12410,600,13497,300,14697,85,16197,v1388,85,2700,300,3750,600c20847,1072,21372,1632,21597,2147xe");
LoadConnectorsList(_T("10800,2147;0,10800;10800,19450;21600,10800"));
LoadTextRect(_T("0,4337,21600,17260"));
}
};
}

View File

@ -1,52 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 126
namespace NSCustomShapesConvert
{
class CFlowChartSortType : public CCustomShape
{
public:
CFlowChartSortType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,l,10800,10800,21600,21600,10800xem,10800nfl21600,10800e");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("5400,5400,16200,16200"));
}
};
}

View File

@ -1,52 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 123
namespace NSCustomShapesConvert
{
class CFlowChartSummingJunctionType : public CCustomShape
{
public:
CFlowChartSummingJunctionType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,qx,10800,10800,21600,21600,10800,10800,xem3163,3163nfl18437,18437em3163,18437nfl18437,3163e");
LoadConnectorsList(_T("10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163"));
LoadTextRect(_T("3163,3163,18437,18437"));
}
};
}

View File

@ -1,53 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 116
namespace NSCustomShapesConvert
{
class CFlowChartTerminatorType : public CCustomShape
{
public:
CFlowChartTerminatorType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinRound;
m_strPath = _T("m3475,qx,10800,3475,21600l18125,21600qx21600,10800,18125,xe");
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("1018,3163,20582,18437"));
}
};
}

View File

@ -1,76 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 65
namespace NSCustomShapesConvert
{
class CFoldedCornerType : public CCustomShape
{
public:
CFoldedCornerType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,l,21600@0,21600,21600@0,21600,xem@0,21600nfl@3@5c@7@9@11@13,21600@0e");
AddGuide(_T("val #0"));
AddGuide(_T("sum 21600 0 @0"));
AddGuide(_T("prod @1 8481 32768"));
AddGuide(_T("sum @2 @0 0"));
AddGuide(_T("prod @1 1117 32768"));
AddGuide(_T("sum @4 @0 0"));
AddGuide(_T("prod @1 11764 32768"));
AddGuide(_T("sum @6 @0 0"));
AddGuide(_T("prod @1 6144 32768"));
AddGuide(_T("sum @8 @0 0"));
AddGuide(_T("prod @1 20480 32768"));
AddGuide(_T("sum @10 @0 0"));
AddGuide(_T("prod @1 6144 32768"));
AddGuide(_T("sum @12 @0 0"));
m_arAdjustments.push_back(18900);
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("0,0,21600,@13"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,bottomRight");
oHandle1.xrange = _T("10800,21600");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,68 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 9
namespace NSCustomShapesConvert
{
class CHexagonType : public CCustomShape
{
public:
CHexagonType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,l,10800@0,21600@1,21600,21600,10800@1,xe");
AddGuide(_T("val #0"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("sum height 0 #0"));
AddGuide(_T("prod @0 2929 10000"));
AddGuide(_T("sum width 0 @3"));
AddGuide(_T("sum height 0 @3"));
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("Rectangle"));
LoadTextRect(_T("1800,1800,19800,19800;3600,3600,18000,18000;6300,6300,15300,15300"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,68 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 15
namespace NSCustomShapesConvert
{
class CHomePlateType : public CCustomShape
{
public:
CHomePlateType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,l,,,21600@0,21600,21600,10800xe");
AddGuide(_T("val #0"));
AddGuide(_T("prod #0 1 2"));
m_arAdjustments.push_back(16200);
LoadConnectorsList(_T("@1,0;0,10800;@1,21600;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,0,10800,21600;0,0,16200,21600;0,0,21600,21600"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("0,21600");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,85 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 98
namespace NSCustomShapesConvert
{
class CHorizontalScrollType : public CCustomShape
{
public:
CHorizontalScrollType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
//Encaps: Flat
m_strPath = _T("m0@5qy@2@1l@0@1@0@2qy@7,,21600@2l21600@9qy@7@10l@1@10@1@11qy@2,21600,0@11xem0@5nfqy@2@6@1@5@3@4@2@5l@2@6em@1@5nfl@1@10em21600@2nfqy@7@1l@0@1em@0@2nfqy@8@3@7@2l@7@1e");
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("val #0"));
AddGuide(_T("prod @1 1 2"));
AddGuide(_T("prod @1 3 4"));
AddGuide(_T("prod @1 5 4"));
AddGuide(_T("prod @1 3 2"));
AddGuide(_T("prod @1 2 1"));
AddGuide(_T("sum width 0 @2"));
AddGuide(_T("sum width 0 @3"));
AddGuide(_T("sum height 0 @5"));
AddGuide(_T("sum height 0 @1"));
AddGuide(_T("sum height 0 @2"));
AddGuide(_T("val width"));
AddGuide(_T("prod width 1 2"));
AddGuide(_T("prod height 1 2"));
m_arAdjustments.push_back(2700);
LoadConnectorsList(_T("@13,@1;0,@14;@13,@10;@12,@14"));
LoadTextRect(_T("@1,@1,@7,@10"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
CHandle_ oHandle1;
oHandle1.position = _T("topLeft,#0");
oHandle1.yrange = _T("0,5400");
m_arHandles.push_back(oHandle1);
m_lLimoX = 10800;
m_lLimoY = 10800;
}
};
}

View File

@ -1,59 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 71
namespace NSCustomShapesConvert
{
class CIrregularSealOneType : public CCustomShape
{
public:
CIrregularSealOneType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,5800l8352,2295,7312,6320,370,2295,4627,7617,,8615r3722,3160l135,14587r5532,-650l4762,17617,7715,15627r770,5973l10532,14935r2715,4802l14020,14457r4125,3638l16837,12942r4763,348l17607,10475,21097,8137,16702,7315,18380,4457r-4225,868l14522,xe");
LoadConnectorsList(_T("14522,0;0,8615;8485,21600;21600,13290"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("4627,6320,16702,13937"));
}
};
}

View File

@ -1,60 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 72
namespace NSCustomShapesConvert
{
class CIrregularSealTwo : public CCustomShape
{
public:
CIrregularSealTwo()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m11462,4342l9722,1887,8550,6382,4502,3625r870,4192l1172,8270r2763,3322l,12877r3330,2493l1285,17825r3520,415l4917,21600,7527,18125r1173,1587l9872,17370r1740,1472l12180,15935r2762,1435l14640,14350r4237,1282l16380,12310r1890,-1020l16985,9402,21600,6645,16380,6532,18007,3172,14525,5777,14790,xe");
LoadConnectorsList(_T("9722,1887;0,12877;11612,18842;21600,6645"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("5372,6382,14640,15935"));
}
};
}

View File

@ -1,65 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 5
namespace NSCustomShapesConvert
{
class CIsoscelesTriangleType : public CCustomShape
{
public:
CIsoscelesTriangleType()
{
m_bConcentricFill = true;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,l,21600r21600,xe");
AddGuide(_T("val #0"));
AddGuide(_T("prod #0 1 2"));
AddGuide(_T("sum @1 10800 0"));
m_arAdjustments.push_back(10800);
LoadConnectorsList(_T("@0,0;@1,10800;0,21600;10800,21600;21600,21600;@2,10800"));
LoadTextRect(_T("0,10800,10800,18000;5400,10800,16200,18000;10800,10800,21600,18000;0,7200,7200,21600;7200,7200,14400,21600;14400,7200,21600,21600"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("0,21600");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,76 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 66
namespace NSCustomShapesConvert
{
class CLeftArrowType : public CCustomShape
{
public:
CLeftArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,l@0@1,0@1,0@2@0@2@0,21600,21600,10800xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("sum height 0 #1"));
AddGuide(_T("sum 10800 0 #1"));
AddGuide(_T("sum width 0 #0"));
AddGuide(_T("prod @4 @3 10800"));
AddGuide(_T("sum width 0 @5"));
m_arAdjustments.push_back(16200);
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("@0,0;0,10800;@0,21600;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("0,@1,@6,@2"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
oHandle1.xrange = _T("0,21600");
oHandle1.yrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,81 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 87
namespace NSCustomShapesConvert
{
class CLeftBraceType : public CCustomShape
{
public:
CLeftBraceType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
//Endcaps: Flat
m_strPath = _T("m21600,qx10800@0l10800@2qy0@11,10800@3l10800@1qy21600,21600e");
AddGuide(_T("val #0"));
AddGuide(_T("sum 21600 0 #0"));
AddGuide(_T("sum #1 0 #0"));
AddGuide(_T("sum #1 #0 0"));
AddGuide(_T("prod #0 9598 32768"));
AddGuide(_T("sum 21600 0 @4"));
AddGuide(_T("sum 21600 0 #1"));
AddGuide(_T("min #1 @6"));
AddGuide(_T("prod @7 1 2"));
AddGuide(_T("prod #0 2 1"));
AddGuide(_T("sum 21600 0 @9"));
AddGuide(_T("val #1"));
m_arAdjustments.push_back(1800);
m_arAdjustments.push_back(10800);
LoadConnectorsList(_T("21600,0;0,10800;21600,21600"));
LoadTextRect(_T("13963,@4,21600,@5"));
CHandle_ oHandle1;
CHandle_ oHandle2;
oHandle1.position = _T("center,#0");
oHandle1.yrange = _T("0,@8");
oHandle2.position = _T("topLeft,#1");
oHandle2.yrange = _T("@9,@10");
m_arHandles.push_back(oHandle1);
m_arHandles.push_back(oHandle2);
}
};
}

View File

@ -1,66 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 85
namespace NSCustomShapesConvert
{
class CLeftBracketType : public CCustomShape
{
public:
CLeftBracketType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinRound;
//Endcaps: Flat
m_strPath = _T("m21600,qx0@0l0@1qy21600,21600e");
AddGuide(_T("val #0"));
AddGuide(_T("sum 21600 0 #0"));
AddGuide(_T("prod #0 9598 32768"));
AddGuide(_T("sum 21600 0 @2"));
m_arAdjustments.push_back(1800);
LoadConnectorsList(_T("21600,0;0,10800;21600,21600"));
LoadTextRect(_T("6326,@2,21600,@3"));
CHandle_ oHandle1;
oHandle1.position = _T("topLeft,#0");
oHandle1.yrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,91 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 81
namespace NSCustomShapesConvert
{
class CLeftRightArrowCalloutType : public CCustomShape
{
public:
CLeftRightArrowCalloutType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@0,l@0@3@2@3@2@1,,10800@2@4@2@5@0@5@0,21600@8,21600@8@5@9@5@9@4,21600,10800@9@1@9@3@8@3@8,xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("val #3"));
AddGuide(_T("sum 21600 0 #1"));
AddGuide(_T("sum 21600 0 #3"));
AddGuide(_T("sum #0 21600 0"));
AddGuide(_T("prod @6 1 2"));
AddGuide(_T("sum 21600 0 #0"));
AddGuide(_T("sum 21600 0 #2"));
m_arAdjustments.push_back(5400);
m_arAdjustments.push_back(5400);
m_arAdjustments.push_back(2700);
m_arAdjustments.push_back(8100);
LoadConnectorsList(_T("10800,0;0,10800;10800,21600;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@0,0,@8,21600"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("@2,10800");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("topLeft,#1");
oHandle2.yrange = _T("0,@3");
m_arHandles.push_back(oHandle2);
CHandle_ oHandle3;
oHandle3.position = _T("#2,#3");
oHandle3.xrange = _T("0,@0");
oHandle3.yrange = _T("@1,10800");
m_arHandles.push_back(oHandle3);
}
};
}

View File

@ -1,81 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 69
namespace NSCustomShapesConvert
{
class CLeftRightArrowType : public CCustomShape
{
public:
CLeftRightArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m,10800l@0,21600@0@3@2@3@2,21600,21600,10800@2,0@2@1@0@1@0,xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("sum 21600 0 #0"));
AddGuide(_T("sum 21600 0 #1"));
AddGuide(_T("prod #0 #1 10800"));
AddGuide(_T("sum #0 0 @4"));
AddGuide(_T("sum 21600 0 @5"));
m_arAdjustments.push_back(4320);
m_arAdjustments.push_back(5400);
LoadConnectorsList(_T("@2,0;10800,@1;@0,0;0,10800;@0,21600;10800,@3;@2,21600;21600,10800"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@5,@1,@6,@3"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,#1");
oHandle1.xrange = _T("0,10800");
oHandle1.yrange = _T("0,10800");
m_arHandles.push_back(oHandle1);
}
};
}

View File

@ -1,92 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 182
namespace NSCustomShapesConvert
{
class CLeftRightUpArrow : public CCustomShape
{
public:
CLeftRightUpArrow()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m10800,l@0@2@1@2@1@6@7@6@7@5,0@8@7,21600@7@9@10@9@10,21600,21600@8@10@5@10@6@4@6@4@2@3@2xe");
AddGuide(_T("val #0"));
AddGuide(_T("val #1"));
AddGuide(_T("val #2"));
AddGuide(_T("sum 21600 0 #0"));
AddGuide(_T("sum 21600 0 #1"));
AddGuide(_T("prod @0 21600 @3"));
AddGuide(_T("prod @1 21600 @3"));
AddGuide(_T("prod @2 @3 21600"));
AddGuide(_T("prod 10800 21600 @3"));
AddGuide(_T("prod @4 21600 @3"));
AddGuide(_T("sum 21600 0 @7"));
AddGuide(_T("sum @5 0 @8"));
AddGuide(_T("sum @6 0 @8"));
AddGuide(_T("prod @12 @7 @11"));
AddGuide(_T("sum 21600 0 @13"));
AddGuide(_T("sum @0 0 10800"));
AddGuide(_T("sum @1 0 10800"));
AddGuide(_T("prod @2 @16 @15"));
m_arAdjustments.push_back(6480);
m_arAdjustments.push_back(8640);
m_arAdjustments.push_back(6171);
LoadConnectorsList(_T("10800,0;0,@8;10800,@9;21600,@8"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@13,@6,@14,@9;@1,@17,@4,@9"));
CHandle_ oHandle1;
oHandle1.position = _T("#0,topLeft");
oHandle1.xrange = _T("@2,@1");
m_arHandles.push_back(oHandle1);
CHandle_ oHandle2;
oHandle2.position = _T("#1,#2");
oHandle2.xrange = _T("@0,10800");
oHandle2.yrange = _T("0,@5");
m_arHandles.push_back(oHandle2);
}
};
}

View File

@ -1,91 +0,0 @@
/*
* (c) Copyright Ascensio System SIA 2010-2019
*
* This program is a free software product. You can redistribute it and/or
* modify it under the terms of the GNU Affero General Public License (AGPL)
* version 3 as published by the Free Software Foundation. In accordance with
* Section 7(a) of the GNU AGPL its Section 15 shall be amended to the effect
* that Ascensio System SIA expressly excludes the warranty of non-infringement
* of any third-party rights.
*
* This program is distributed WITHOUT ANY WARRANTY; without even the implied
* warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. For
* details, see the GNU AGPL at: http://www.gnu.org/licenses/agpl-3.0.html
*
* You can contact Ascensio System SIA at 20A-12 Ernesta Birznieka-Upisha
* street, Riga, Latvia, EU, LV-1050.
*
* The interactive user interfaces in modified source and object code versions
* of the Program must display Appropriate Legal Notices, as required under
* Section 5 of the GNU AGPL version 3.
*
* Pursuant to Section 7(b) of the License you must retain the original Product
* logo when distributing the program. Pursuant to Section 7(e) we decline to
* grant you any rights under trademark law for use of our trademarks.
*
* All the Product's GUI elements, including illustrations and icon sets, as
* well as technical writing content are licensed under the terms of the
* Creative Commons Attribution-ShareAlike 4.0 International. See the License
* terms at http://creativecommons.org/licenses/by-sa/4.0/legalcode
*
*/
#pragma once
#include "../CustomShape.h"
// 89
namespace NSCustomShapesConvert
{
class CLeftUpArrowType : public CCustomShape
{
public:
CLeftUpArrowType()
{
m_bConcentricFill = false;
m_eJoin = ODRAW::lineJoinMiter;
m_strPath = _T("m@4,l@0@2@5@2@5@5@2@5@2@0,0@4@2,21600@2@1@1@1@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("sum @5 0 @4"));
AddGuide(_T("sum #0 0 @4"));
AddGuide(_T("prod @2 @10 @11"));
m_arAdjustments.push_back(9257);
m_arAdjustments.push_back(18514);
m_arAdjustments.push_back(6171);
LoadConnectorsList(_T("@4,0;@0,@2;@2,@0;0,@4;@2,21600;@7,@1;@1,@7;21600,@2"));
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(270);
m_arConnectorAngles.push_back(180);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(90);
m_arConnectorAngles.push_back(0);
m_arConnectorAngles.push_back(0);
LoadTextRect(_T("@12,@5,@1,@1;@5,@12,@1,@1"));
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);
}
};
}

Some files were not shown because too many files have changed in this diff Show More