Commit 5465c123 authored by ElenaSubbotina's avatar ElenaSubbotina

DocFormat - small refactoring

parent 06513ab6
......@@ -48,10 +48,8 @@
#if defined(_WIN32) || defined(_WIN64)
#include <windows.h>
#include <tchar.h>
#else
//#include "../../DesktopEditor/common/ASCVariant.h"
//#include "../../Common/DocxFormat/Source/Base/ASCString.h"
#include <string.h>
#endif
#include "../../DesktopEditor/common/Types.h"
......@@ -131,11 +129,11 @@ namespace DocFormatUtils
{
switch(data[pos])
{
case '&': buffer.append(_T("&amp;")); break;
case '\"': buffer.append(_T("&quot;")); break;
case '\'': buffer.append(_T("&apos;")); break;
case '<': buffer.append(_T("&lt;")); break;
case '>': buffer.append(_T("&gt;")); break;
case '&': buffer.append(L"&amp;"); break;
case '\"': buffer.append(L"&quot;"); break;
case '\'': buffer.append(L"&apos;"); break;
case '<': buffer.append(L"&lt;"); break;
case '>': buffer.append(L"&gt;"); break;
default:
{
if ( false == IsUnicodeSymbol( data[pos] ) )
......@@ -163,11 +161,11 @@ namespace DocFormatUtils
{
switch(data[pos])
{
case '&': buffer.append(_T("&amp;")); break;
case '\"': buffer.append(_T("&quot;")); break;
case '\'': buffer.append(_T("&apos;")); break;
case '<': buffer.append(_T("&lt;")); break;
case '>': buffer.append(_T("&gt;")); break;
case '&': buffer.append(L"&amp;"); break;
case '\"': buffer.append(L"&quot;"); break;
case '\'': buffer.append(L"&apos;"); break;
case '<': buffer.append(L"&lt;"); break;
case '>': buffer.append(L"&gt;"); break;
default: buffer.append(&data[pos], 1); break;
}
}
......@@ -285,33 +283,33 @@ namespace DocFormatUtils
switch ( c )
{
case _T( '&' ):
case L'&':
{
result = std::wstring( _T( "&amp;" ) );
result = std::wstring( L"&amp;" );
}
break;
case _T( '<' ):
case L'<':
{
result = std::wstring( _T( "&lt;" ) );
result = std::wstring( L"&lt;" );
}
break;
case _T( '>' ):
case L'>':
{
result = std::wstring( _T( "&gt;" ) );
result = std::wstring( L"&gt;" );
}
break;
case _T( '\"' ):
case L'\"':
{
result = std::wstring( _T( "&quot;" ) );
result = std::wstring( L"&quot;" );
}
break;
case _T( '\'' ):
case L'\'':
{
result = std::wstring( _T( "&apos;" ) );
result = std::wstring( L"&apos;" );
}
break;
......@@ -768,11 +766,13 @@ namespace DocFormatUtils
static inline std::wstring IntToWideString(int value)
{
wchar_t sVal[32]={};
_itow(value, sVal, 10);
std::wstring strValue;
return std::wstring(sVal);
#if defined(_WIN32) || defined (_WIN64)
wchar_t buff[33] ={};
_itow(value, buff, 10);
return std::wstring(buff);
#else
return (std::to_wstring(value));
#endif
}
static inline std::wstring DoubleToWideString(double value)
{
......@@ -783,17 +783,6 @@ namespace DocFormatUtils
return std::wstring(src.str());
}
static inline std::string IntToString(int value, int radix = 10)
{
const int size = 33;
char strValue[size];
itoa(value, strValue, radix);
return std::string(strValue);
}
static inline std::string DoubleToString(double value)
{
std::stringstream src;
......@@ -808,7 +797,7 @@ namespace DocFormatUtils
std::wstring out;
if ( mapArray == NULL )
{
out = std::wstring( _T( "" ) );
out = std::wstring( L"" );
}
if ( value < size1 )
......@@ -826,7 +815,7 @@ namespace DocFormatUtils
{
// const int size = 33;
// wchar_t strValue[size] = _T( "\0" );
// wchar_t strValue[size] = L"\0";
if ( format == NULL ) return L"";
// swprintf_s( strValue, size, format, value );
......
......@@ -34,14 +34,9 @@
#include <string>
#include <map>
#include <list>
//
//#if defined(_WIN32) || defined(_WIN64)
//#else
// #include "../../DesktopEditor/common/ASCVariant.h"
// #include "../../Common/DocxFormat/Source/Base/ASCString.h"
//#endif
#include "../../DesktopEditor/Common/File.h"
#include "../../DesktopEditor/common/File.h"
inline static std::wstring ReplaceString(std::wstring subject, const std::wstring& search, const std::wstring& replace)
{
......@@ -448,15 +443,22 @@ namespace XMLTools
{
m_str += strValue;
}
void WriteInteger(int Value, int Base = 10)
{
wchar_t str[33]={};
_itow(Value, str, Base);
m_str += str;
#if defined(_WIN32) || defined (_WIN64)
wchar_t buff[33] ={};
_itow(Value, buff, Base);
m_str += std::wstring(buff);
#else
m_str += std::to_wstring(Value);
#endif
}
void WriteDouble(double Value)
{
int *dec = NULL, *sign = NULL;
#if defined(_WIN32) || defined (_WIN64)
int *dec = NULL, *sign = NULL;
char *str = _fcvt( Value , 4, dec, sign);
if (str)
......@@ -469,7 +471,10 @@ namespace XMLTools
{
m_str += L"0";
}
}
#else
m_str += std::to_wstring(Value);
#endif
}
void WriteBoolean(bool Value)
{
if (Value)
......
......@@ -61,7 +61,7 @@ namespace DocFileFormat
return m_BookmarkId;
}
AnnotationReferenceDescriptor() : m_UserInitials( _T( "" ) ), m_AuthorIndex(0), m_BookmarkId(0)
AnnotationReferenceDescriptor() : m_AuthorIndex(0), m_BookmarkId(0)
{
}
......
......@@ -46,9 +46,9 @@ namespace DocFileFormat
{
static const wchar_t SuperscriptIndex[3][12] =
{
_T( "baseline" ),
_T( "superscript" ),
_T( "subscript" )
L"baseline",
L"superscript",
L"subscript"
};
class CharacterPropertiesMapping: public PropertiesMapping, public IMapping
......@@ -94,4 +94,4 @@ namespace DocFileFormat
std::wstring m_sEastAsiaFont;
std::wstring m_shAnsiFont;
};
}
\ No newline at end of file
}
......@@ -76,16 +76,14 @@ namespace DocFileFormat
DocumentTypographyInfo():
fKerningPunct(false), iJustification(0), iLevelOfKinsoku(0), f2on1(false), fOldDefineLineBaseOnGrid(false),
iCustomKsu(0), fJapaneseUseLevel2(false), cchFollowingPunct(0), cchLeadingPunct(0), rgxchFPunct( _T( "" ) ),
rgxchLPunct( _T( "" ) )
iCustomKsu(0), fJapaneseUseLevel2(false), cchFollowingPunct(0), cchLeadingPunct(0)
{
}
/// Parses the bytes to retrieve a DocumentTypographyInfo
DocumentTypographyInfo( unsigned char* bytes, int size ):
fKerningPunct(false), iJustification(0), iLevelOfKinsoku(0), f2on1(false), fOldDefineLineBaseOnGrid(false),
iCustomKsu(0), fJapaneseUseLevel2(false), cchFollowingPunct(0), cchLeadingPunct(0), rgxchFPunct( _T( "" ) ),
rgxchLPunct( _T( "" ) )
iCustomKsu(0), fJapaneseUseLevel2(false), cchFollowingPunct(0), cchLeadingPunct(0)
{
if ( size == 310 )
{
......
......@@ -110,13 +110,13 @@ namespace DocFileFormat
{
if ((int) newObject->xszFtn.at(0) < 31) //DDToneWebService.doc
{
newObject->xszFtn = _T("");
newObject->xszFtn = L"";
}
}
if (newObject->xszFtn.length() < 2 && szAlt < 1)//programo.doc
{
newObject->xszFtn = _T("font");
newObject->xszFtn = L"font";
}
RELEASEARRAYOBJECTS( bytes );
......
......@@ -37,164 +37,164 @@ namespace Global
{
static const wchar_t ColorIdentifier[17][12] =
{
_T( "auto" ),
_T( "black" ),
_T( "blue" ),
_T( "cyan" ),
_T( "green" ),
_T( "magenta" ),
_T( "red" ),
_T( "yellow" ),
_T( "white" ),
_T( "darkBlue" ),
_T( "darkCyan" ),
_T( "darkGreen" ),
_T( "darkMagenta" ),
_T( "darkRed" ),
_T( "darkYellow" ),
_T( "darkGray" ),
_T( "lightGray" )
L"auto",
L"black",
L"blue",
L"cyan",
L"green",
L"magenta",
L"red",
L"yellow",
L"white",
L"darkBlue",
L"darkCyan",
L"darkGreen",
L"darkMagenta",
L"darkRed",
L"darkYellow",
L"darkGray",
L"lightGray"
};
static const wchar_t UnderlineCode[56][16] =
{
_T( "none" ),
_T( "single" ),
_T( "words" ),
_T( "double" ),
_T( "dotted" ),
_T( "notUsed1" ),
_T( "thick" ),
_T( "dash" ),
_T( "notUsed2" ),
_T( "dotDash" ),
_T( "dotDotDash" ),
_T( "wave" ),
_T( "notUsed3" ),
_T( "notUsed4" ),
_T( "notUsed5" ),
_T( "notUsed6" ),
_T( "notUsed7" ),
_T( "notUsed8" ),
_T( "notUsed9" ),
_T( "notUsed10" ),
_T( "dottedHeavy" ),
_T( "notUsed11" ),
_T( "notUsed12" ),
_T( "dashedHeavy" ),
_T( "notUsed13" ),
_T( "dashDotHeavy" ),
_T( "dashDotDotHeavy" ),
_T( "wavyHeavy" ),
_T( "notUsed14" ),
_T( "notUsed15" ),
_T( "notUsed16" ),
_T( "notUsed17" ),
_T( "notUsed18" ),
_T( "notUsed19" ),
_T( "notUsed20" ),
_T( "notUsed21" ),
_T( "notUsed22" ),
_T( "notUsed23" ),
_T( "notUsed24" ),
_T( "dashLong" ),
_T( "notUsed25" ),
_T( "notUsed26" ),
_T( "notUsed27" ),
_T( "wavyDouble" ),
_T( "notUsed28" ),
_T( "notUsed29" ),
_T( "notUsed30" ),
_T( "notUsed31" ),
_T( "notUsed32" ),
_T( "notUsed33" ),
_T( "notUsed34" ),
_T( "notUsed35" ),
_T( "notUsed36" ),
_T( "notUsed37" ),
_T( "notUsed38" ),
_T( "dashLongHeavy" )
L"none",
L"single",
L"words",
L"double",
L"dotted",
L"notUsed1",
L"thick",
L"dash",
L"notUsed2",
L"dotDash",
L"dotDotDash",
L"wave",
L"notUsed3",
L"notUsed4",
L"notUsed5",
L"notUsed6",
L"notUsed7",
L"notUsed8",
L"notUsed9",
L"notUsed10",
L"dottedHeavy",
L"notUsed11",
L"notUsed12",
L"dashedHeavy",
L"notUsed13",
L"dashDotHeavy",
L"dashDotDotHeavy",
L"wavyHeavy",
L"notUsed14",
L"notUsed15",
L"notUsed16",
L"notUsed17",
L"notUsed18",
L"notUsed19",
L"notUsed20",
L"notUsed21",
L"notUsed22",
L"notUsed23",
L"notUsed24",
L"dashLong",
L"notUsed25",
L"notUsed26",
L"notUsed27",
L"wavyDouble",
L"notUsed28",
L"notUsed29",
L"notUsed30",
L"notUsed31",
L"notUsed32",
L"notUsed33",
L"notUsed34",
L"notUsed35",
L"notUsed36",
L"notUsed37",
L"notUsed38",
L"dashLongHeavy"
};
static const wchar_t TabLeader[8][11] =
{
_T( "none" ),
_T( "dot" ),
_T( "hyphen" ),
_T( "underscore" ),
_T( "heavy" ),
_T( "middleDot" ),
_T( "none" ),
_T( "none" )
L"none",
L"dot",
L"hyphen",
L"underscore",
L"heavy",
L"middleDot",
L"none",
L"none"
};
static const wchar_t TabStop[7][8] =
{
_T( "left" ),
_T( "center"),
_T( "right" ),
_T( "decimal" ),
_T( "bar" ),
_T( "clear" ),
_T( "num" )
L"left",
L"center",
L"right",
L"decimal",
L"bar",
L"clear",
L"num"
};
static const wchar_t TextAnimation[7][16] =
{
_T( "none" ),
_T( "lights" ),
_T( "blinkBackground" ),
_T( "sparkle" ),
_T( "antsBlack" ),
_T( "antsRed" ),
_T( "shimmer" )
L"none",
L"lights",
L"blinkBackground",
L"sparkle",
L"antsBlack",
L"antsRed",
L"shimmer"
};
static const wchar_t JustificationCode[10][15] =
{
_T( "start" ),
_T( "center" ),
_T( "end" ),
_T( "both" ),
_T( "distribute" ),
_T( "mediumKashida" ),
_T( "numTab" ),
_T( "highKashida" ),
_T( "lowKashida" ),
_T( "thaiDistribute" )
L"start",
L"center",
L"end",
L"both",
L"distribute",
L"mediumKashida",
L"numTab",
L"highKashida",
L"lowKashida",
L"thaiDistribute"
};
static const wchar_t VerticalPositionCode[4][7] =
{
_T( "margin" ),
_T( "page" ),
_T( "text" ),
_T( "none" )
L"margin",
L"page",
L"text",
L"none"
};
static const wchar_t HorizontalPositionCode[4][7] =
{
_T( "text" ),
_T( "margin" ),
_T( "page" ),
_T( "none" )
L"text",
L"margin",
L"page",
L"none"
};
static const wchar_t TextFrameWrapping[6][10] =
{
_T( "auto" ),
_T( "notBeside" ),
_T( "around" ),
_T( "none" ),
_T( "tight" ),
_T( "through" )
L"auto",
L"notBeside",
L"around",
L"none",
L"tight",
L"through"
};
static const wchar_t TextFrameDropCapLocation[3][7] =
{
_T( "none" ),
_T( "drop" ),
_T( "margin" )
L"none",
L"drop",
L"margin"
};
typedef enum _DashStyle
......@@ -214,17 +214,17 @@ namespace Global
static const wchar_t DashStyleMap[11][16] =
{
_T( "solid" ),
_T( "shortdash" ),
_T( "shortdot" ),
_T( "shortdashdot" ),
_T( "shortdashdotdot" ),
_T( "dot" ),
_T( "dash" ),
_T( "longdash" ),
_T( "dashdot" ),
_T( "longdashdot" ),
_T( "longdashdotdot" )
L"solid",
L"shortdash",
L"shortdot",
L"shortdashdot",
L"shortdashdotdot",
L"dot",
L"dash",
L"longdash",
L"dashdot",
L"longdashdot",
L"longdashdotdot"
};
typedef enum _TextFlow
......@@ -238,12 +238,12 @@ namespace Global
static const wchar_t TextFlowMap[6][6] =
{
_T( "lrTb" ),
_T( "tbRl" ),
_T( "lrTb" ),//его на самом деле нету (2.9.323 TextFlow)
_T( "btLr" ),
_T( "lrTbV" ),
_T( "tbRlV" ),
L"lrTb",
L"tbRl",
L"lrTb",//его на самом деле нету (2.9.323 TextFlow)
L"btLr",
L"lrTbV",
L"tbRlV",
};
typedef enum _VerticalMergeFlag
......@@ -262,9 +262,9 @@ namespace Global
static const wchar_t VerticalAlignMap[3][7] =
{
_T( "top" ),
_T( "center" ),
_T( "bottom" )
L"top",
L"center",
L"bottom"
};
typedef enum _CellWidthType
......@@ -277,10 +277,10 @@ namespace Global
static const wchar_t CellWidthTypeMap[4][5] =
{
_T( "nil" ),
_T( "auto" ),
_T( "pct" ),
_T( "dxa" )
L"nil",
L"auto",
L"pct",
L"dxa"
};
typedef enum _BlipUsage
......
......@@ -65,25 +65,25 @@ namespace DocFileFormat
{
case Default:
{
att = new XMLTools::XMLAttribute<wchar_t>( _T( "w:val" ), langcode.c_str() );
att = new XMLTools::XMLAttribute<wchar_t>( L"w:val", langcode.c_str() );
}
break;
case EastAsian:
{
att = new XMLTools::XMLAttribute<wchar_t>( _T( "w:eastAsia" ), langcode.c_str() );
att = new XMLTools::XMLAttribute<wchar_t>( L"w:eastAsia", langcode.c_str() );
}
break;
case Complex:
{
att = new XMLTools::XMLAttribute<wchar_t>( _T( "w:bidi" ), langcode.c_str() );
att = new XMLTools::XMLAttribute<wchar_t>( L"w:bidi", langcode.c_str() );
}
break;
default:
{
att = new XMLTools::XMLAttribute<wchar_t>( _T( "w:val" ), langcode.c_str() );
att = new XMLTools::XMLAttribute<wchar_t>( L"w:val", langcode.c_str() );
}
break;
}
......@@ -111,4 +111,4 @@ namespace DocFileFormat
return strLCID;
}
}
\ No newline at end of file
}
......@@ -46,9 +46,9 @@ namespace DocFileFormat
static const wchar_t FollowingCharMap[3][8] =
{
_T( "tab" ),
_T( "space" ),
_T( "nothing" )
L"tab" ,
L"space" ,
L"nothing"
};
class ListLevel
......@@ -145,4 +145,4 @@ namespace DocFileFormat
// Parses the given StreamReader to retrieve a ANLV struct
NumberingLevelDescriptor( unsigned char * data, int length ); //cbANLV is 16 bytes
};
}
\ No newline at end of file
}
......@@ -256,9 +256,9 @@ namespace DocFileFormat
static const wchar_t JoinStyleMap[3][6] =
{
_T( "miter" ),
_T( "round" ),
_T( "bevel" )
L"miter" ,
L"round" ,
L"bevel"
};
class Handle
......
......@@ -42,24 +42,24 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = round;
Path = _T( "wr-21600,,21600,43200,,,21600,21600nfewr-21600,,21600,43200,,,21600,21600l,21600nsxe" );
Path = L"wr-21600,,21600,43200,,,21600,21600nfewr-21600,,21600,43200,,,21600,21600l,21600nsxe";
Formulas.push_back( _T( "val #2" ) );
Formulas.push_back( _T( "val #3" ) );
Formulas.push_back( _T( "val #4" ) );
Formulas.push_back( L"val #2");
Formulas.push_back( L"val #3");
Formulas.push_back( L"val #4");
AdjustmentValues = _T( "-5898240,,,21600,21600" );
ConnectorLocations = _T( "0,0;21600,21600;0,21600" );
AdjustmentValues = L"-5898240,,,21600,21600";
ConnectorLocations = L"0,0;21600,21600;0,21600";
Handle HandleOne;
HandleOne.position = _T( "@2,#0" );
HandleOne.polar = _T( "@0,@1" );
HandleOne.position = L"@2,#0";
HandleOne.polar = L"@0,@1";
Handles.push_back( HandleOne );
Handle HandleTwo;
HandleOne.position = _T( "@2,#1" );
HandleOne.polar = _T( "@0,@1" );
HandleOne.position = L"@2,#1";
HandleOne.polar = L"@0,@1";
Handles.push_back( HandleTwo );
}
};
}
\ No newline at end of file
}
......@@ -42,28 +42,28 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _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");
Path = (L"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");
Formulas.push_back(_T("val #0"));
Formulas.push_back(_T("sum width 0 #0"));
Formulas.push_back(_T("sum height 0 #0"));
Formulas.push_back(_T("prod width 1 2"));
Formulas.push_back(_T("prod height 1 2"));
Formulas.push_back(_T("prod #0 1 2"));
Formulas.push_back(_T("prod #0 3 2"));
Formulas.push_back(_T("sum @1 @5 0"));
Formulas.push_back(_T("sum @2 @5 0"));
Formulas.push_back((L"val #0"));
Formulas.push_back((L"sum width 0 #0"));
Formulas.push_back((L"sum height 0 #0"));
Formulas.push_back((L"prod width 1 2"));
Formulas.push_back((L"prod height 1 2"));
Formulas.push_back((L"prod #0 1 2"));
Formulas.push_back((L"prod #0 3 2"));
Formulas.push_back((L"sum @1 @5 0"));
Formulas.push_back((L"sum @2 @5 0"));
AdjustmentValues = _T("2700");
ConnectorLocations = _T("0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0");
TextBoxRectangle = _T("@0,@0,@1,@2");
AdjustmentValues = (L"2700");
ConnectorLocations = (L"0,@4;@0,@4;@3,21600;@3,@2;21600,@4;@1,@4;@3,0;@3,@0");
TextBoxRectangle = (L"@0,@0,@1,@2");
Handle one;
one.position = _T("#0,topLeft");
one.xrange = _T("0,10800");
one.position = (L"#0,topLeft");
one.xrange = (L"0,10800");
Handles.push_back (one);
Limo = _T("10800,10800");
Limo = (L"10800,10800");
}
};
}
\ No newline at end of file
}
......@@ -42,61 +42,61 @@ namespace DocFileFormat
{
ShapeConcentricFill = false;
Joins = miter;
Path = _T("al10800,10800@0@0@2@14,10800,10800,10800,10800@3@15xe");
Path = (L"al10800,10800@0@0@2@14,10800,10800,10800,10800@3@15xe");
Formulas.push_back(_T("val #1"));
Formulas.push_back(_T("val #0"));
Formulas.push_back(_T("sum 0 0 #0"));
Formulas.push_back(_T("sumangle #0 0 180"));
Formulas.push_back(_T("sumangle #0 0 90"));
Formulas.push_back(_T("prod @4 2 1"));
Formulas.push_back(_T("sumangle #0 90 0"));
Formulas.push_back(_T("prod @6 2 1"));
Formulas.push_back(_T("abs #0"));
Formulas.push_back(_T("sumangle @8 0 90"));
Formulas.push_back(_T("if @9 @7 @5"));
Formulas.push_back(_T("sumangle @10 0 360"));
Formulas.push_back(_T("if @10 @11 @10"));
Formulas.push_back(_T("sumangle @12 0 360"));
Formulas.push_back(_T("if @12 @13 @12"));
Formulas.push_back(_T("sum 0 0 @14"));
Formulas.push_back(_T("val 10800"));
Formulas.push_back(_T("sum 10800 0 #1"));
Formulas.push_back(_T("prod #1 1 2"));
Formulas.push_back(_T("sum @18 5400 0"));
Formulas.push_back(_T("cos @19 #0"));
Formulas.push_back(_T("sin @19 #0"));
Formulas.push_back(_T("sum @20 10800 0"));
Formulas.push_back(_T("sum @21 10800 0"));
Formulas.push_back(_T("sum 10800 0 @20"));
Formulas.push_back(_T("sum #1 10800 0"));
Formulas.push_back(_T("if @9 @17 @25"));
Formulas.push_back(_T("if @9 0 21600"));
Formulas.push_back(_T("cos 10800 #0"));
Formulas.push_back(_T("sin 10800 #0"));
Formulas.push_back(_T("sin #1 #0"));
Formulas.push_back(_T("sum @28 10800 0"));
Formulas.push_back(_T("sum @29 10800 0"));
Formulas.push_back(_T("sum @30 10800 0"));
Formulas.push_back(_T("if @4 0 @31"));
Formulas.push_back(_T("if #0 @34 0"));
Formulas.push_back(_T("if @6 @35 @31"));
Formulas.push_back(_T("sum 21600 0 @36"));
Formulas.push_back(_T("if @4 0 @33"));
Formulas.push_back(_T("if #0 @38 @32"));
Formulas.push_back(_T("if @6 @39 0"));
Formulas.push_back(_T("if @4 @32 21600"));
Formulas.push_back(_T("if @6 @41 @33"));
Formulas.push_back((L"val #1"));
Formulas.push_back((L"val #0"));
Formulas.push_back((L"sum 0 0 #0"));
Formulas.push_back((L"sumangle #0 0 180"));
Formulas.push_back((L"sumangle #0 0 90"));
Formulas.push_back((L"prod @4 2 1"));
Formulas.push_back((L"sumangle #0 90 0"));
Formulas.push_back((L"prod @6 2 1"));
Formulas.push_back((L"abs #0"));
Formulas.push_back((L"sumangle @8 0 90"));
Formulas.push_back((L"if @9 @7 @5"));
Formulas.push_back((L"sumangle @10 0 360"));
Formulas.push_back((L"if @10 @11 @10"));
Formulas.push_back((L"sumangle @12 0 360"));
Formulas.push_back((L"if @12 @13 @12"));
Formulas.push_back((L"sum 0 0 @14"));
Formulas.push_back((L"val 10800"));
Formulas.push_back((L"sum 10800 0 #1"));
Formulas.push_back((L"prod #1 1 2"));
Formulas.push_back((L"sum @18 5400 0"));
Formulas.push_back((L"cos @19 #0"));
Formulas.push_back((L"sin @19 #0"));
Formulas.push_back((L"sum @20 10800 0"));
Formulas.push_back((L"sum @21 10800 0"));
Formulas.push_back((L"sum 10800 0 @20"));
Formulas.push_back((L"sum #1 10800 0"));
Formulas.push_back((L"if @9 @17 @25"));
Formulas.push_back((L"if @9 0 21600"));
Formulas.push_back((L"cos 10800 #0"));
Formulas.push_back((L"sin 10800 #0"));
Formulas.push_back((L"sin #1 #0"));
Formulas.push_back((L"sum @28 10800 0"));
Formulas.push_back((L"sum @29 10800 0"));
Formulas.push_back((L"sum @30 10800 0"));
Formulas.push_back((L"if @4 0 @31"));
Formulas.push_back((L"if #0 @34 0"));
Formulas.push_back((L"if @6 @35 @31"));
Formulas.push_back((L"sum 21600 0 @36"));
Formulas.push_back((L"if @4 0 @33"));
Formulas.push_back((L"if #0 @38 @32"));
Formulas.push_back((L"if @6 @39 0"));
Formulas.push_back((L"if @4 @32 21600"));
Formulas.push_back((L"if @6 @41 @33"));
AdjustmentValues = _T("11796480,5400");
ConnectorLocations = _T("10800,@27;@22,@23;10800,@26;@24,@23");
TextBoxRectangle = _T("@36,@40,@37,@42");
AdjustmentValues = (L"11796480,5400");
ConnectorLocations = (L"10800,@27;@22,@23;10800,@26;@24,@23");
TextBoxRectangle = (L"@36,@40,@37,@42");
Handle one;
one.position = _T("#1,#0");
one.polar = _T("10800,10800");
one.radiusrange = _T("0,10800");
one.position = (L"#1,#0");
one.polar = (L"10800,10800");
one.radiusrange = (L"0,10800");
Handles.push_back (one);
}
};
}
\ No newline at end of file
}
......@@ -45,23 +45,23 @@ namespace DocFileFormat
this->Joins = round;
this->Path = _T( "m10800,qx0@1l0@2qy10800,21600,21600@2l21600@1qy10800,xem0@1qy10800@0,21600@1nfe" );
this->Path = L"m10800,qx0@1l0@2qy10800,21600,21600@2l21600@1qy10800,xem0@1qy10800@0,21600@1nfe";
this->Formulas.push_back( _T( "val #0" ) );
this->Formulas.push_back( _T( "prod #0 1 2" ) );
this->Formulas.push_back( _T( "sum height 0 @1" ) );
this->Formulas.push_back( L"val #0" );
this->Formulas.push_back( L"prod #0 1 2" );
this->Formulas.push_back( L"sum height 0 @1" );
this->AdjustmentValues = _T( "5400" );
this->AdjustmentValues = L"5400";
this->ConnectorLocations = _T( "10800,@0;10800,0;0,10800;10800,21600;21600,10800" );
this->ConnectorLocations = L"10800,@0;10800,0;0,10800;10800,21600;21600,10800";
this->ConnectorAngles = _T( "270,270,180,90,0" );
this->ConnectorAngles = L"270,270,180,90,0";
this->TextBoxRectangle = _T( "0,@0,21600,@2" );
this->TextBoxRectangle = L"0,@0,21600,@2";
Handle HandleOne;
HandleOne.position = _T( "center,#0" );
HandleOne.yrange = _T( "0,10800" );
HandleOne.position = L"center,#0";
HandleOne.yrange = L"0,10800";
this->Handles.push_back( HandleOne );
}
......@@ -69,4 +69,4 @@ namespace DocFileFormat
{
}
};
}
\ No newline at end of file
}
......@@ -42,8 +42,8 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,l21600,r,21600e");
//AdjustmentValues = _T("10800");
Path = L"m,l21600,r,21600e";
//AdjustmentValues = L"10800";
Filled = true;
}
......@@ -56,15 +56,15 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,l@0,0@0,21600,21600,21600e");
AdjustmentValues = _T("10800");
Path = L"m,l@0,0@0,21600,21600,21600e";
AdjustmentValues = L"10800";
Filled = true;
Formulas.push_back(_T("val #0"));
Formulas.push_back(L"val #0");
Handle one;
one.position = _T("#0,center");
one.position = L"#0,center";
Handles.push_back (one);
}
};
......@@ -76,15 +76,15 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,l@0,0@0,21600,21600,21600e");
AdjustmentValues = _T("10800");
Path = L"m,l@0,0@0,21600,21600,21600e";
AdjustmentValues = L"10800";
Filled = true;
Formulas.push_back(_T("val #0"));
Formulas.push_back(L"val #0");
Handle one;
one.position = _T("#0,center");
one.position = L"#0,center";
Handles.push_back (one);
}
};
......@@ -96,15 +96,15 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,l@0,0@0,21600,21600,21600e");
AdjustmentValues = _T("10800");
Path = L"m,l@0,0@0,21600,21600,21600e";
AdjustmentValues = L"10800";
Filled = true;
Formulas.push_back(_T("val #0"));
Formulas.push_back(L"val #0");
Handle one;
one.position = _T("#0,center");
one.position = L"#0,center";
Handles.push_back (one);
}
};
......@@ -117,16 +117,16 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e");
Path = L"m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e";
Filled = true;
Formulas.push_back(_T("mid #0 0"));
Formulas.push_back(_T("val #0"));
Formulas.push_back(_T("mid #0 21600"));
Formulas.push_back(L"mid #0 0");
Formulas.push_back(L"val #0");
Formulas.push_back(L"mid #0 21600");
Handle one;
one.position = _T("#0,center");
one.position = L"#0,center";
Handles.push_back (one);
}
};
......@@ -137,16 +137,16 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e");
Path = L"m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e";
Filled = true;
Formulas.push_back(_T("mid #0 0"));
Formulas.push_back(_T("val #0"));
Formulas.push_back(_T("mid #0 21600"));
Formulas.push_back(L"mid #0 0");
Formulas.push_back(L"val #0");
Formulas.push_back(L"mid #0 21600");
Handle one;
one.position = _T("#0,center");
one.position = L"#0,center";
Handles.push_back (one);
}
};
......@@ -157,16 +157,16 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e");
Path = L"m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e";
Filled = true;
Formulas.push_back(_T("mid #0 0"));
Formulas.push_back(_T("val #0"));
Formulas.push_back(_T("mid #0 21600"));
Formulas.push_back(L"mid #0 0");
Formulas.push_back(L"val #0");
Formulas.push_back(L"mid #0 21600");
Handle one;
one.position = _T("#0,center");
one.position = L"#0,center";
Handles.push_back (one);
}
};
......@@ -177,17 +177,17 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e");
Path = L"m,c@0,0@1,5400@1,10800@1,16200@2,21600,21600,21600e";
Filled = true;
Formulas.push_back(_T("mid #0 0"));
Formulas.push_back(_T("val #0"));
Formulas.push_back(_T("mid #0 21600"));
Formulas.push_back(L"mid #0 0");
Formulas.push_back(L"val #0");
Formulas.push_back(L"mid #0 21600");
Handle one;
one.position = _T("#0,center");
one.position = L"#0,center";
Handles.push_back (one);
}
};
}
\ No newline at end of file
}
......@@ -45,35 +45,35 @@ namespace DocFileFormat
this->Joins = miter;
this->Path = _T( "m@0,l0@0,,21600@1,21600,21600@2,21600,xem0@0nfl@1@0,21600,em@1@0nfl@1,21600e" );
this->Path = L"m@0,l0@0,,21600@1,21600,21600@2,21600,xem0@0nfl@1@0,21600,em@1@0nfl@1,21600e";
this->Formulas.push_back( _T( "val #0" ) );
this->Formulas.push_back( _T( "sum width 0 #0" ) );
this->Formulas.push_back( _T( "sum height 0 #0" ) );
this->Formulas.push_back( _T( "mid height #0" ) );
this->Formulas.push_back( _T( "prod @1 1 2" ) );
this->Formulas.push_back( _T( "prod @2 1 2" ) );
this->Formulas.push_back( _T( "mid width #0" ) );
this->Formulas.push_back( L"val #0");
this->Formulas.push_back( L"sum width 0 #0");
this->Formulas.push_back( L"sum height 0 #0");
this->Formulas.push_back( L"mid height #0");
this->Formulas.push_back( L"prod @1 1 2");
this->Formulas.push_back( L"prod @2 1 2");
this->Formulas.push_back( L"mid width #0");
this->AdjustmentValues = _T( "5400" );
this->AdjustmentValues = L"5400";
this->ConnectorLocations = _T( "@6,0;@4,@0;0,@3;@4,21600;@1,@3;21600,@5" );
this->ConnectorLocations = L"@6,0;@4,@0;0,@3;@4,21600;@1,@3;21600,@5";
this->ConnectorAngles = _T( "270,270,180,90,0,0" );
this->ConnectorAngles = L"270,270,180,90,0,0";
this->TextBoxRectangle = _T( "0,@0,@1,21600" );
this->TextBoxRectangle = L"0,@0,@1,21600";
Handle HandleOne;
HandleOne.position = _T( "topLeft,#0" );
HandleOne.switchHandle = _T( "true" );
HandleOne.yrange = _T( "0,21600" );
HandleOne.position = L"topLeft,#0";
HandleOne.switchHandle = L"true";
HandleOne.yrange = L"0,21600";
this->Handles.push_back( HandleOne );
this->Limo = _T( "10800,10800" );
this->Limo = L"10800,10800";
}
virtual ~CubeType()
{
}
};
}
\ No newline at end of file
}
......@@ -45,15 +45,15 @@ namespace DocFileFormat
this->Joins = miter;
this->Path = _T( "m10800,l,10800,10800,21600,21600,10800xe" );
this->Path = L"m10800,l,10800,10800,21600,21600,10800xe";
this->ConnectorLocations = _T( "Rectangle" );
this->ConnectorLocations = L"Rectangle";
this->TextBoxRectangle = _T( "5400,5400,16200,16200" );
this->TextBoxRectangle = L"5400,5400,16200,16200";
}
virtual ~DiamondType()
{
}
};
}
\ No newline at end of file
}
......@@ -42,23 +42,23 @@ namespace DocFileFormat
{
ShapeConcentricFill = false;
Joins = round;
Path = _T("m,10800qy10800,,21600,10800,10800,21600,,10800xm@0,10800qy10800@2@1,10800,10800@0@0,10800xe");
Path = L"m,10800qy10800,,21600,10800,10800,21600,,10800xm@0,10800qy10800@2@1,10800,10800@0@0,10800xe";
Formulas.push_back(_T("val #0" ) );
Formulas.push_back(_T("sum width 0 #0" ) );
Formulas.push_back(_T("sum height 0 #0" ) );
Formulas.push_back(_T("prod @0 2929 10000" ) );
Formulas.push_back(_T("sum width 0 @3" ) );
Formulas.push_back(_T("sum height 0 @3" ) );
Formulas.push_back(L"val #0" ) ;
Formulas.push_back(L"sum width 0 #0" ) ;
Formulas.push_back(L"sum height 0 #0" );
Formulas.push_back(L"prod @0 2929 10000" );
Formulas.push_back(L"sum width 0 @3" ) ;
Formulas.push_back(L"sum height 0 @3" );
AdjustmentValues = _T("5400");
ConnectorLocations = _T("10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163");
TextBoxRectangle = _T("3163,3163,18437,18437");
AdjustmentValues = L"5400";
ConnectorLocations = L"10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163";
TextBoxRectangle = L"3163,3163,18437,18437";
Handle HandleOne;
HandleOne.position = _T("#0,center");
HandleOne.xrange = _T("0,10800");
HandleOne.position = L"#0,center";
HandleOne.xrange = L"0,10800";
Handles.push_back(HandleOne);
}
};
}
\ No newline at end of file
}
......@@ -42,30 +42,30 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T( "m,l,21600@0,21600,21600@0,21600,xem@0,21600nfl@3@5c@7@9@11@13,21600@0e" );
Path = L"m,l,21600@0,21600,21600@0,21600,xem@0,21600nfl@3@5c@7@9@11@13,21600@0e";
Formulas.push_back(_T( "val #0" ));
Formulas.push_back(_T( "sum 21600 0 @0" ));
Formulas.push_back(_T( "prod @1 8481 32768" ));
Formulas.push_back(_T( "sum @2 @0 0" ));
Formulas.push_back(_T( "prod @1 1117 32768" ));
Formulas.push_back(_T( "sum @4 @0 0" ));
Formulas.push_back(_T( "prod @1 11764 32768" ));
Formulas.push_back(_T( "sum @6 @0 0" ));
Formulas.push_back(_T( "prod @1 6144 32768" ));
Formulas.push_back(_T( "sum @8 @0 0" ));
Formulas.push_back(_T( "prod @1 20480 32768" ));
Formulas.push_back(_T( "sum @10 @0 0" ));
Formulas.push_back(_T( "prod @1 6144 32768" ));
Formulas.push_back(_T( "sum @12 @0 0" ));
Formulas.push_back(L"val #0");
Formulas.push_back(L"sum 21600 0 @0");
Formulas.push_back(L"prod @1 8481 32768");
Formulas.push_back(L"sum @2 @0 0");
Formulas.push_back(L"prod @1 1117 32768");
Formulas.push_back(L"sum @4 @0 0");
Formulas.push_back(L"prod @1 11764 32768");
Formulas.push_back(L"sum @6 @0 0");
Formulas.push_back(L"prod @1 6144 32768");
Formulas.push_back(L"sum @8 @0 0");
Formulas.push_back(L"prod @1 20480 32768");
Formulas.push_back(L"sum @10 @0 0");
Formulas.push_back(L"prod @1 6144 32768");
Formulas.push_back(L"sum @12 @0 0");
AdjustmentValues = _T( "18900" );
TextBoxRectangle = _T( "0,0,21600,@13" );
AdjustmentValues = L"18900";
TextBoxRectangle = L"0,0,21600,@13";
Handle one;
one.position = _T("#0,bottomRight");
one.xrange = _T("10800,21600");
one.position = L"#0,bottomRight";
one.xrange = L"10800,21600";
Handles.push_back (one);
}
};
}
\ No newline at end of file
}
......@@ -42,12 +42,12 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T( "m10860,2187c10451,1746,9529,1018,9015,730,7865,152,6685,,5415,,4175,152,2995,575,1967,1305,1150,2187,575,3222,242,4220,,5410,242,6560,575,7597l10860,21600,20995,7597v485,-1037,605,-2187,485,-3377c21115,3222,20420,2187,19632,1305,18575,575,17425,152,16275,,15005,,13735,152,12705,730v-529,288,-1451,1016,-1845,1457xe" );
Path = (L"m10860,2187c10451,1746,9529,1018,9015,730,7865,152,6685,,5415,,4175,152,2995,575,1967,1305,1150,2187,575,3222,242,4220,,5410,242,6560,575,7597l10860,21600,20995,7597v485,-1037,605,-2187,485,-3377c21115,3222,20420,2187,19632,1305,18575,575,17425,152,16275,,15005,,13735,152,12705,730v-529,288,-1451,1016,-1845,1457xe" );
AdjustmentValues = _T( "21600" );
ConnectorLocations = _T( "10860,2187;2928,10800;10860,21600;18672,10800" );
ConnectorAngles = _T( "270,180,90,0" );
TextBoxRectangle = _T( "5037,2277,16557,13677" );
AdjustmentValues = (L"21600" );
ConnectorLocations = (L"10860,2187;2928,10800;10860,21600;18672,10800" );
ConnectorAngles = (L"270,180,90,0" );
TextBoxRectangle = (L"5037,2277,16557,13677" );
}
};
}
\ No newline at end of file
}
......@@ -45,24 +45,24 @@ namespace DocFileFormat
this->Joins = miter;
this->Path = _T( "m@0,l,10800@0,21600@1,21600,21600,10800@1,xe" );
this->Path = L"m@0,l,10800@0,21600@1,21600,21600,10800@1,xe";
this->Formulas.push_back( _T( "val #0" ) );
this->Formulas.push_back( _T( "sum width 0 #0" ) );
this->Formulas.push_back( _T( "sum height 0 #0" ) );
this->Formulas.push_back( _T( "prod @0 2929 10000" ) );
this->Formulas.push_back( _T( "sum width 0 @3" ) );
this->Formulas.push_back( _T( "sum height 0 @3" ) );
this->Formulas.push_back( L"val #0");
this->Formulas.push_back( L"sum width 0 #0");
this->Formulas.push_back( L"sum height 0 #0");
this->Formulas.push_back( L"prod @0 2929 10000");
this->Formulas.push_back( L"sum width 0 @3");
this->Formulas.push_back( L"sum height 0 @3");
this->AdjustmentValues = _T( "5400" );
this->AdjustmentValues = L"5400";
this->ConnectorLocations = _T( "Rectangle" );
this->ConnectorLocations = L"Rectangle";
this->TextBoxRectangle = _T( "1800,1800,19800,19800;3600,3600,18000,18000;6300,6300,15300,15300" );
this->TextBoxRectangle = L"1800,1800,19800,19800;3600,3600,18000,18000;6300,6300,15300,15300";
Handle HandleOne;
HandleOne.position = _T( "#0,topLeft" );
HandleOne.xrange = _T( "0,10800" );
HandleOne.position = L"#0,topLeft";
HandleOne.xrange = L"0,10800";
Handles.push_back( HandleOne );
}
......@@ -70,4 +70,4 @@ namespace DocFileFormat
{
}
};
}
\ No newline at end of file
}
......@@ -44,21 +44,21 @@ namespace DocFileFormat
this->ShapeConcentricFill = true;
this->Joins = miter;
this->Path = _T( "m@0,l,21600r21600,xe" );
this->Path = L"m@0,l,21600r21600,xe" ;
this->Formulas.push_back( _T( "val #0" ) );
this->Formulas.push_back( _T( "prod #0 1 2" ) );
this->Formulas.push_back( _T( "sum @1 10800 0") );
this->Formulas.push_back( L"val #0" );
this->Formulas.push_back( L"prod #0 1 2" );
this->Formulas.push_back( L"sum @1 10800 0");
this->AdjustmentValues = _T( "10800" );
this->AdjustmentValues = L"10800" ;
this->ConnectorLocations = _T( "@0,0;@1,10800;0,21600;10800,21600;21600,21600;@2,10800" );
this->ConnectorLocations = L"@0,0;@1,10800;0,21600;10800,21600;21600,21600;@2,10800";
this->TextBoxRectangle = _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" );
this->TextBoxRectangle = L"0,10800,10800,18000;5400,10800,16200,18000;10800,10800,21600,18000;0,7200,7200,21600;7200,7200,14400,21600;14400,7200,21600,21600";
Handle HandleOne;
HandleOne.position = _T( "#0,topLeft" );
HandleOne.xrange = _T( "0,21600" );
HandleOne.position = L"#0,topLeft";
HandleOne.xrange = L"0,21600";
this->Handles.push_back( HandleOne );
}
......@@ -66,4 +66,4 @@ namespace DocFileFormat
{
}
};
}
\ No newline at end of file
}
......@@ -42,12 +42,12 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m8472,l,3890,7602,8382,5022,9705r7200,4192l10012,14915r11588,6685l14767,12877r1810,-870l11050,6797r1810,-717xe");
Path = L"m8472,l,3890,7602,8382,5022,9705r7200,4192l10012,14915r11588,6685l14767,12877r1810,-870l11050,6797r1810,-717xe";
//AdjustmentValues = _T("2700" );
ConnectorLocations = _T("8472,0;0,3890;5022,9705;10012,14915;21600,21600;16577,12007;12860,6080");
ConnectorAngles = _T("270,270,180,180,90,0,0");
TextBoxRectangle = _T("8757,7437,13917,14277");
//AdjustmentValues = L"2700" );
ConnectorLocations = L"8472,0;0,3890;5022,9705;10012,14915;21600,21600;16577,12007;12860,6080";
ConnectorAngles = L"270,270,180,180,90,0,0";
TextBoxRectangle = L"8757,7437,13917,14277";
}
};
}
\ No newline at end of file
}
......@@ -42,34 +42,34 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m21600,qx,10800,21600,21600wa@0@10@6@11,21600,21600,21600,xe");
Path = (L"m21600,qx,10800,21600,21600wa@0@10@6@11,21600,21600,21600,xe");
Formulas.push_back(_T("val #0"));
Formulas.push_back(_T("sum 21600 0 #0"));
Formulas.push_back(_T("prod #0 #0 @1"));
Formulas.push_back(_T("prod 21600 21600 @1"));
Formulas.push_back(_T("prod @3 2 1"));
Formulas.push_back(_T("sum @4 0 @2"));
Formulas.push_back(_T("sum @5 0 #0"));
Formulas.push_back(_T("prod @5 1 2"));
Formulas.push_back(_T("sum @7 0 #0"));
Formulas.push_back(_T("prod @8 1 2"));
Formulas.push_back(_T("sum 10800 0 @9"));
Formulas.push_back(_T("sum @9 10800 0"));
Formulas.push_back(_T("prod #0 9598 32768"));
Formulas.push_back(_T("sum 21600 0 @12"));
Formulas.push_back(_T("ellipse @13 21600 10800"));
Formulas.push_back(_T("sum 10800 0 @14"));
Formulas.push_back(_T("sum @14 10800 0"));
Formulas.push_back((L"val #0"));
Formulas.push_back((L"sum 21600 0 #0"));
Formulas.push_back((L"prod #0 #0 @1"));
Formulas.push_back((L"prod 21600 21600 @1"));
Formulas.push_back((L"prod @3 2 1"));
Formulas.push_back((L"sum @4 0 @2"));
Formulas.push_back((L"sum @5 0 #0"));
Formulas.push_back((L"prod @5 1 2"));
Formulas.push_back((L"sum @7 0 #0"));
Formulas.push_back((L"prod @8 1 2"));
Formulas.push_back((L"sum 10800 0 @9"));
Formulas.push_back((L"sum @9 10800 0"));
Formulas.push_back((L"prod #0 9598 32768"));
Formulas.push_back((L"sum 21600 0 @12"));
Formulas.push_back((L"ellipse @13 21600 10800"));
Formulas.push_back((L"sum 10800 0 @14"));
Formulas.push_back((L"sum @14 10800 0"));
AdjustmentValues = _T("10800");
ConnectorLocations = _T("21600,0;0,10800;21600,21600;@0,10800");
ConnectorAngles = _T("270,180,90,0");
TextBoxRectangle = _T("@12,@15,@0,@16");
AdjustmentValues = (L"10800");
ConnectorLocations = (L"21600,0;0,10800;21600,21600;@0,10800");
ConnectorAngles = (L"270,180,90,0");
TextBoxRectangle = (L"@12,@15,@0,@16");
Handle one;
one.position = _T("#0,center");
one.xrange = _T("0,18900");
one.position = (L"#0,center");
one.xrange = (L"0,18900");
Handles.push_back (one);
}
};
......
......@@ -42,34 +42,34 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m,10800qy10800,,21600,10800,10800,21600,,10800xar@0@0@16@16@12@14@15@13xar@0@0@16@16@13@15@14@12xe");
Path = (L"m,10800qy10800,,21600,10800,10800,21600,,10800xar@0@0@16@16@12@14@15@13xar@0@0@16@16@13@15@14@12xe");
Formulas.push_back(_T( "val #0" ));
Formulas.push_back(_T( "prod @0 2 1" ));
Formulas.push_back(_T( "sum 21600 0 @1" ));
Formulas.push_back(_T( "prod @2 @2 1" ));
Formulas.push_back(_T( "prod @0 @0 1" ));
Formulas.push_back(_T( "sum @3 0 @4" ));
Formulas.push_back(_T( "prod @5 1 8" ));
Formulas.push_back(_T( "sqrt @6" ));
Formulas.push_back(_T( "prod @4 1 8" ));
Formulas.push_back(_T( "sqrt @8" ));
Formulas.push_back(_T( "sum @7 @9 0" ));
Formulas.push_back(_T( "sum @7 0 @9" ));
Formulas.push_back(_T( "sum @10 10800 0" ));
Formulas.push_back(_T( "sum 10800 0 @10" ));
Formulas.push_back(_T( "sum @11 10800 0" ));
Formulas.push_back(_T( "sum 10800 0 @11" ));
Formulas.push_back(_T( "sum 21600 0 @0" ));
Formulas.push_back((L"val #0" ));
Formulas.push_back((L"prod @0 2 1" ));
Formulas.push_back((L"sum 21600 0 @1" ));
Formulas.push_back((L"prod @2 @2 1" ));
Formulas.push_back((L"prod @0 @0 1" ));
Formulas.push_back((L"sum @3 0 @4" ));
Formulas.push_back((L"prod @5 1 8" ));
Formulas.push_back((L"sqrt @6" ));
Formulas.push_back((L"prod @4 1 8" ));
Formulas.push_back((L"sqrt @8" ));
Formulas.push_back((L"sum @7 @9 0" ));
Formulas.push_back((L"sum @7 0 @9" ));
Formulas.push_back((L"sum @10 10800 0" ));
Formulas.push_back((L"sum 10800 0 @10" ));
Formulas.push_back((L"sum @11 10800 0" ));
Formulas.push_back((L"sum 10800 0 @11" ));
Formulas.push_back((L"sum 21600 0 @0" ));
AdjustmentValues = _T( "2700" );
ConnectorLocations = _T( "10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163" );
TextBoxRectangle = _T( "3163,3163,18437,18437" );
AdjustmentValues = (L"2700" );
ConnectorLocations = (L"10800,0;3163,3163;0,10800;3163,18437;10800,21600;18437,18437;21600,10800;18437,3163" );
TextBoxRectangle = (L"3163,3163,18437,18437" );
Handle one;
one.position = _T("#0,center");
one.xrange = _T("0,7200");
one.position = L"#0,center";
one.xrange = L"0,7200";
Handles.push_back (one);
}
};
}
\ No newline at end of file
}
......@@ -45,36 +45,36 @@ namespace DocFileFormat
this->Joins = miter;
this->Path = _T( "m@0,l0@0,0@2@0,21600@1,21600,21600@2,21600@0@1,xe" );
this->Path = L"m@0,l0@0,0@2@0,21600@1,21600,21600@2,21600@0@1,xe";
this->Formulas.push_back( _T( "val #0" ) );
this->Formulas.push_back( _T( "sum width 0 #0" ) );
this->Formulas.push_back( _T( "sum height 0 #0" ) );
this->Formulas.push_back( _T( "prod @0 2929 10000" ) );
this->Formulas.push_back( _T( "sum width 0 @3" ) );
this->Formulas.push_back( _T( "sum height 0 @3" ) );
this->Formulas.push_back( _T( "val width" ) );
this->Formulas.push_back( _T( "val height" ) );
this->Formulas.push_back( _T( "prod width 1 2" ) );
this->Formulas.push_back( _T( "prod height 1 2" ) );
this->Formulas.push_back( L"val #0");
this->Formulas.push_back( L"sum width 0 #0");
this->Formulas.push_back( L"sum height 0 #0");
this->Formulas.push_back( L"prod @0 2929 10000");
this->Formulas.push_back( L"sum width 0 @3");
this->Formulas.push_back( L"sum height 0 @3");
this->Formulas.push_back( L"val width");
this->Formulas.push_back( L"val height");
this->Formulas.push_back( L"prod width 1 2");
this->Formulas.push_back( L"prod height 1 2");
this->AdjustmentValues = _T( "6326" );
this->AdjustmentValues = L"6326";
this->ConnectorLocations = _T( "@8,0;0,@9;@8,@7;@6,@9" );
this->ConnectorLocations = L"@8,0;0,@9;@8,@7;@6,@9";
this->TextBoxRectangle = _T( "0,0,21600,21600;2700,2700,18900,18900;5400,5400,16200,16200" );
this->TextBoxRectangle = L"0,0,21600,21600;2700,2700,18900,18900;5400,5400,16200,16200";
Handle HandleOne;
HandleOne.position = _T( "#0,topLeft" );
HandleOne.switchHandle = _T( "true" );
HandleOne.xrange = _T( "0,10800" );
HandleOne.position = L"#0,topLeft";
HandleOne.switchHandle = L"true";
HandleOne.xrange = L"0,10800";
this->Handles.push_back( HandleOne );
this->Limo = _T( "10800,10800" );
this->Limo = L"10800,10800";
}
virtual ~OctagonType()
{
}
};
}
\ No newline at end of file
}
......@@ -45,31 +45,31 @@ namespace DocFileFormat
this->Joins = miter;
this->Path = _T( "m@0,l,21600@1,21600,21600,xe" );
this->Path = L"m@0,l,21600@1,21600,21600,xe";
this->Formulas.push_back( _T( "val #0" ) );
this->Formulas.push_back( _T( "sum width 0 #0" ) );
this->Formulas.push_back( _T( "prod #0 1 2" ) );
this->Formulas.push_back( _T( "sum width 0 @2" ) );
this->Formulas.push_back( _T( "mid #0 width" ) );
this->Formulas.push_back( _T( "mid @1 0" ) );
this->Formulas.push_back( _T( "prod height width #0" ) );
this->Formulas.push_back( _T( "prod @6 1 2" ) );
this->Formulas.push_back( _T( "sum height 0 @7" ) );
this->Formulas.push_back( _T( "prod width 1 2" ) );
this->Formulas.push_back( _T( "sum #0 0 @9" ) );
this->Formulas.push_back( _T( "if @10 @8 0") );
this->Formulas.push_back( _T( "if @10 @7 height" ) );
this->Formulas.push_back( L"val #0");
this->Formulas.push_back( L"sum width 0 #0");
this->Formulas.push_back( L"prod #0 1 2");
this->Formulas.push_back( L"sum width 0 @2");
this->Formulas.push_back( L"mid #0 width");
this->Formulas.push_back( L"mid @1 0");
this->Formulas.push_back( L"prod height width #0");
this->Formulas.push_back( L"prod @6 1 2");
this->Formulas.push_back( L"sum height 0 @7");
this->Formulas.push_back( L"prod width 1 2");
this->Formulas.push_back( L"sum #0 0 @9");
this->Formulas.push_back( L"if @10 @8 0");
this->Formulas.push_back( L"if @10 @7 height");
this->AdjustmentValues = _T( "5400" );
this->AdjustmentValues = L"5400";
this->ConnectorLocations = _T( "@4,0;10800,@11;@3,10800;@5,21600;10800,@12;@2,10800" );
this->ConnectorLocations = L"@4,0;10800,@11;@3,10800;@5,21600;10800,@12;@2,10800";
this->TextBoxRectangle = _T( "1800,1800,19800,19800;8100,8100,13500,13500;10800,10800,10800,10800" );
this->TextBoxRectangle = L"1800,1800,19800,19800;8100,8100,13500,13500;10800,10800,10800,10800";
Handle HandleOne;
HandleOne.position = _T( "#0,topLeft" );
HandleOne.xrange = _T( "0,21600" );
HandleOne.position = L"#0,topLeft";
HandleOne.xrange = L"0,21600";
this->Handles.push_back( HandleOne );
}
......@@ -77,4 +77,4 @@ namespace DocFileFormat
{
}
};
}
\ No newline at end of file
}
......@@ -42,15 +42,15 @@ namespace DocFileFormat
{
ShapeConcentricFill = true;
Joins = miter;
Path = _T("m10800,l,8259,4200,21600r13200,l21600,8259xe");
Path = L"m10800,l,8259,4200,21600r13200,l21600,8259xe";
ConnectorLocations = _T( "10800,0;0,8259;4200,21600;10800,21600;17400,21600;21600,8259" );
ConnectorAngles = _T( "270,180,90,90,90,0" );
TextBoxRectangle = _T( "4200,5077,17400,21600" );
ConnectorLocations = L"10800,0;0,8259;4200,21600;10800,21600;17400,21600;21600,8259";
ConnectorAngles = L"270,180,90,90,90,0" ;
TextBoxRectangle = L"4200,5077,17400,21600";
}
virtual ~PentagonType()
{
}
};
}
\ No newline at end of file
}
......@@ -45,7 +45,7 @@ namespace DocFileFormat
this->Joins = miter;
this->Path = _T( "m,l,21600r21600,l21600,xe" );
this->Path = L"m,l,21600r21600,l21600,xe";
}
virtual ~RectangleType()
......
......@@ -45,15 +45,15 @@ namespace DocFileFormat
this->Joins = miter;
this->Path = _T( "m,l,21600r21600,xe" );
this->Path = L"m,l,21600r21600,xe";
this->ConnectorLocations = _T( "0,0;0,10800;0,21600;10800,21600;21600,21600;10800,10800" );
this->ConnectorLocations = L"0,0;0,10800;0,21600;10800,21600;21600,21600;10800,10800";
this->TextBoxRectangle = _T( "1800,12600,12600,19800" );
this->TextBoxRectangle = L"1800,12600,12600,19800";
}
virtual ~RightTriangleType()
{
}
};
}
\ No newline at end of file
}
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment