Commit f7f8707a authored by Sergey.Luzyanin's avatar Sergey.Luzyanin Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@53376 954022d7-b5bf-4e40-9824-e11837661b57
parent 0059ccdc
Drawings
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<module type="WEB_MODULE" version="4">
<component name="NewModuleRootManager">
<content url="file://$MODULE_DIR$" />
<orderEntry type="inheritedJdk" />
<orderEntry type="sourceFolder" forTests="false" />
</component>
</module>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="Encoding" useUTFGuessing="true" native2AsciiForPropertiesFiles="false" />
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectResources">
<default-html-doctype>http://www.w3.org/1999/xhtml</default-html-doctype>
</component>
<component name="ProjectRootManager" version="2" />
<component name="SvnBranchConfigurationManager">
<option name="mySupportsUserInfoFilter" value="true" />
</component>
</project>
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="ProjectModuleManager">
<modules>
<module fileurl="file://$PROJECT_DIR$/.idea/Drawings.iml" filepath="$PROJECT_DIR$/.idea/Drawings.iml" />
</modules>
</component>
</project>
<component name="DependencyValidationManager">
<state>
<option name="SKIP_IMPORT_STATEMENTS" value="false" />
</state>
</component>
\ No newline at end of file
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="VcsDirectoryMappings">
<mapping directory="$PROJECT_DIR$" vcs="svn" />
</component>
</project>
This source diff could not be displayed because it is too large. You can view the blob instead.
function CAreaChart()
{
this.axId = null;
this.dLbls = null;
this.dropLines = null;
this.grouping = null;
this.series = [];
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CAreaChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_AreaChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setAxId: function(pr)
{
History.Add(this, {Type: historyitem_AreaChart_SetAxId, oldPr: this.axId, newPr: pr});
this.axId = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_AreaChart_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDropLines: function(pr)
{
History.Add(this, {Type: historyitem_AreaChart_SetDropLines, oldPr: this.dropLines, newPr: pr});
this.dropLines = pr;
},
setGrouping: function(pr)
{
History.Add(this, {Type: historyitem_AreaChart_SetGrouping, oldPr: this.grouping, newPr: pr});
this.grouping = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_AreaChart_AddSer, ser: ser});
this.series.push(ser);
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_AreaChart_SetVaryColors, oldPr: this.varyColors, newPr: pr});
this.varyColors = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_AreaChart_SetAxId:
{
this.axId = data.oldPr;
break
}
case historyitem_AreaChart_SetDLbls:
{
this.dLbls = data.oldPr;
break
}
case historyitem_AreaChart_SetDropLines:
{
this.dropLines = data.oldPr;
break
}
case historyitem_AreaChart_SetGrouping:
{
this.grouping = data.oldPr;
break
}
case historyitem_AreaChart_SetVaryColors:
{
this.varyColors = data.oldPr;
break
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_AreaChart_SetAxId:
{
this.axId = data.newPr;
break
}
case historyitem_AreaChart_SetDLbls:
{
this.dLbls = data.newPr;
break
}
case historyitem_AreaChart_SetDropLines:
{
this.dropLines = data.newPr;
break
}
case historyitem_AreaChart_SetGrouping:
{
this.grouping = data.newPr;
break
}
case historyitem_AreaChart_SetVaryColors:
{
this.varyColors = data.newPr;
break
}
}
},
Save_Changes: function(data, w)
{
},
Load_Changes: function(r)
{}
};
\ No newline at end of file
function CAreaSeries()
{
this.cat = null;
this.dLbls = null;
this.dPt = null;
this.errBars = null;
this.idx = null;
this.order = null;
this.pictureOptions = null;
this.spPr = null;
this.trendline = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CAreaSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_AreaSeries;
},
Write_ToBinary2: function()
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
setCat: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetCat, oldPr: this.cat, newPr: pr});
this.cat = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetDPt, oldPr: this.dPt, newPr: pr});
this.dPt = pr;
},
setErrBars: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetErrBars, oldPr: this.errBars, newPr: pr});
this.errBars = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetOrder, oldPr: this.order, newPr: pr});
this.order = pr;
},
setPictureOptions: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetPictureOptions, oldPr: this.pictureOptions, newPr: pr});
this.pictureOptions = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTrendline: function(pr)
{
History.Add(this, {Type: historyitem_AreaSeries_SetTrendline, oldPr: this.trendline, newPr: pr});
this.trendline = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_AreaSeries_SetCat:
{
this.cat = data.oldPr;
break;
}
case historyitem_AreaSeries_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_AreaSeries_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_AreaSeries_SetErrBars:
{
this.errBars = data.oldPr;
break;
}
case historyitem_AreaSeries_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_AreaSeries_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_AreaSeries_SetPictureOptions:
{
this.pictureOptions = data.oldPr;
break;
}
case historyitem_AreaSeries_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_AreaSeries_SetTrendline:
{
this.trendline = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_AreaSeries_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_AreaSeries_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_AreaSeries_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_AreaSeries_SetErrBars:
{
this.errBars = data.newPr;
break;
}
case historyitem_AreaSeries_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_AreaSeries_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_AreaSeries_SetPictureOptions:
{
this.pictureOptions = data.newPr;
break;
}
case historyitem_AreaSeries_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_AreaSeries_SetTrendline:
{
this.trendline = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_AreaSeries_SetCat:
case historyitem_AreaSeries_SetDLbls:
case historyitem_AreaSeries_SetDPt:
case historyitem_AreaSeries_SetErrBars:
case historyitem_AreaSeries_SetPictureOptions:
case historyitem_AreaSeries_SetSpPr:
case historyitem_AreaSeries_SetTrendline:
{
writeObject(w, data.newPr);
break;
}
case historyitem_AreaSeries_SetIdx:
case historyitem_AreaSeries_SetOrder:
{
writeLong(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_AreaSeries_SetCat:
{
this.cat = readObject(r);
break;
}
case historyitem_AreaSeries_SetDLbls:
{
this.dLbls = readObject(r);
break;
}
case historyitem_AreaSeries_SetDPt:
{
this.dPt = readObject(r);
break;
}
case historyitem_AreaSeries_SetErrBars:
{
this.errBars = readObject(r);
break;
}
case historyitem_AreaSeries_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_AreaSeries_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_AreaSeries_SetPictureOptions:
{
this.pictureOptions = readObject(r);
break;
}
case historyitem_AreaSeries_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_AreaSeries_SetTrendline:
{
this.trendline = readObject(r);
break;
}
}
}
};
var TYPE_AXIS_CAT = 0;
var TYPE_AXIS_DATE = 1;
var TYPE_AXIS_SER = 2;
var TYPE_AXIS_VAL = 3;
var AX_POS_L = 0;
var AX_POS_T = 1;
var AX_POS_R = 2;
var AX_POS_B = 3;
var CROSSES_AUTO_ZERO = 0;
var CROSSES_MAX = 1;
var CROSSES_MIN = 2;
var LBL_ALG_CTR = 0;
var LBL_ALG_L = 1;
var LBL_ALG_R = 2;
var TICK_MARK_CROSS = 0;
var TICK_MARK_IN = 1;
var TICK_MARK_NONE = 2;
var TICK_MARK_OUT = 3;
var TICK_LABEL_POSITION_HIGH = 0;
var TICK_LABEL_POSITION_LOW = 1;
var TICK_LABEL_POSITION_NEXT_TO = 2;
var TICK_LABEL_POSITION_NONE = 3;
var TIME_UNIT_DAYS = 0;
var TIME_UNIT_MONTHS = 1;
var TIME_UNIT_YEARS = 2;
var CROSS_BETWEEN_BETWEEN = 0;
var CROSS_BETWEEN_MID_CAT = 1;
function CAxis()
{
this.type = null;
this.auto = null;
this.axId = null;
this.axPos = null;
this.baseTimeUnit = null;
this.crossAx = null;
this.crossBetween = null;
this.crosses = null;
this.crossesAt = null;
this.delete = null;
this.dispUnits = null;
this.lblAlgn = null;
this.lblOffset = null;
this.majorGridlines = null;
this.majorTickMark = null;
this.majorTimeUnit = null;
this.majorUnit = null;
this.minorGridlines = null;
this.minorTickMark = null;
this.minorTimeUnit = null;
this.minorUnit = null;
this.noMultiLvlLbl = null;
this.numFmt = null;
this.scaling = null;
this.spPr = null;
this.tickLblPos = null;
this.tickLblSkip = null;
this.tickMarkSkip = null;
this.title = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CAxis.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Axis;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setType: function(type)
{
History.Add(this, {Type: historyitem_Axis_SetType, oldPr: this.type, newPr: type});
this.type = type;
},
setAuto: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetAuto, oldPr: this.auto, newPr: pr});
this.auto = pr;
},
setAxId : function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetAxId, oldPr: this.axId, newPr: pr});
this.axId = pr;
},
setAxPos: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetAxPos, oldPr: this.axPos, newPr: pr});
this.axPos = pr;
},
setBaseTimeUnit: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetBaseTimeUnit, oldPr: this.baseTimeUnit, newPr: pr});
this.baseTimeUnit = pr;
},
setCrossAx: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetCrossAx, oldPr: this.crossAx, newPr: pr});
this.crossAx = pr;
},
setCrossBetween: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetCrossBetween, oldPr: this.crossBetween, newPr: pr});
this.crossBetween = pr;
},
setCrosses: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetCrosses, oldPr: this.crosses, newPr: pr});
this.crosses = pr;
},
setCrossesAt: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetCrossesAt, oldPr: this.crossesAt, newPr: pr});
this.crossesAt = pr;
},
setDelete: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetDelete, oldPr: this.bDelete, newPr: pr});
this.bDelete = pr;
},
setDispUnits: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetDispUnits, oldPr: this.dispUnits, newPr: pr});
this.dispUnits = pr;
},
setLblAlgn: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetLblAlgn, oldPr: this.lblAlgn, newPr: pr});
this.lblAlgn = pr;
},
setLblOffset: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetLblOffset, oldPr: this.lblOffset, newPr: pr});
this.lblOffset = pr;
},
setMajorGridlines: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMajorGridlines, oldPr: this.majorGridlines, newPr: pr});
this.majorGridlines = pr;
},
setMajorTickMark: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMajorTickMark, oldPr: this.majorTickMark, newPr: pr});
this.majorTickMark = pr;
},
setMajorTimeUnit: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMajorTimeUnit, oldPr: this.majorTimeUnit, newPr: pr});
this.majorTimeUnit = pr;
},
setMajorUnit: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMajorUnit, oldPr: this.majorUnit, newPr: pr});
this.majorTimeUnit = pr;
},
setMinorGridlines: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMiniGridlines, oldPr: this.minorGridlines, newPr: pr});
this.minorGridlines = pr;
},
setMinorTickMark: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMiniTickMark, oldPr: this.minorTickMark, newPr: pr});
this.minorTickMark = pr;
},
setMinorTimeUnit: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMinorTimeUnit, oldPr: this.minorTimeUnit, newPr: pr});
this.minorTimeUnit = pr;
},
setMinorUnit: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetMinorUnit, oldPr: this.minorUnit, newPr: pr});
this.minorUnit = pr;
},
setNoMultiLvlLbl: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetNoMultiLvlLbl, oldPr: this.noMultiLvlLbl, newPr: pr});
this.noMultiLvlLbl = pr;
},
setNumFmt: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetNumFmt, oldPr: this.numFmt, newPr: pr});
this.numFmt = pr;
},
setScaling: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetScaling, oldPr: this.scaling, newPr: pr});
this.scaling = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTickLblPos: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetTickLblPos, oldPr: this.tickLblPos, newPr: pr});
this.tickLblPos = pr;
},
setTickLblSkip: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetTickLblSkip, oldPr: this.tickLblSkip, newPr: pr});
this.tickLblSkip = pr;
},
setTickMarkSkip: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetTickMarkSkip, oldPr: this.tickMarkSkip, newPr: pr});
this.tickMarkSkip = pr;
},
setTitle: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetTitle, oldPr: this.title, newPr: pr});
this.title = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_Axis_SetTxPr, oldPr: this.txPr, newPr: pr});
this.txPr = pr;
},
Undo: function(data)
{
},
Redo: function()
{},
Save_Changes: function()
{},
Load_Changes: function()
{}
};
function CBandFmt()
{
this.idx = null;
this.spPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oIdCounter.Add(this, this.Id);
}
CBandFmt.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_BandFmt;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_BandFmt_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_BandFmt_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_BandFmt_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_BandFmt_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_BandFmt_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_BandFmt_SetSpPr:
{
this.spPr = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_BandFmt_SetIdx:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_BandFmt_SetSpPr:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString(data.newPr.Get_Id());
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_BandFmt_SetIdx:
{
if(r.GetBool())
{
this.idx = r.GetLong();
}
else
{
this.idx = null;
}
break;
}
case historyitem_BandFmt_SetSpPr:
{
this.spPr = data.newPr;
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
}
}
};
\ No newline at end of file
var BAR_DIR_BAR = 0;
var BAR_DIR_COL = 1;
function CBarChart()
{
this.axId = null;
this.barDir = null;
this.dLbls = null;
this.gapWidth = null;
this.grouping = null;
this.overlap = null;
this.series = [];
this.serLines = null;
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CBarChart.prototype =
{
Grt_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_BarChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setAxId: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetAxId, oldPr: this.axId, newPr:pr});
this.axId = pr;
},
setBarDir: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.barDir, newPr:pr});
this.barDir = pr;
},
setDLbls : function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.dLbls, newPr:pr});
this.dLbls = pr;
},
setGapWidth: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.gapWidth, newPr:pr});
this.gapWidth = pr;
},
setGrouping: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.grouping, newPr:pr});
this.grouping = pr;
},
setOverlap: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.overlap, newPr:pr});
this.overlap = pr;
},
addSer: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.series, newPr:pr});
this.series = pr;
},
setSerLines: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.serLines, newPr:pr});
this.serLines = pr;
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_BarChart_SetBarDir, oldPr: this.varyColors, newPr:pr});
this.varyColors = pr;
},
Undo: function(data)
{},
Redo: function(data)
{},
Save_Changes: function()
{},
Load_Changes: function()
{}
};
\ No newline at end of file
function CBarSeries()
{
this.cat = null;
this.dLbls = null;
this.dPt = null;
this.errBars = null;
this.idx = null;
this.invertIfNegative = null;
this.order = null;
this.pictureOptions = null;
this.shape = null;
this.spPr = null;
this.trendline = null;
this.tx = null;
this.val = null;
}
CBarSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_BarSeries;
},
Write_ToBinary2: function()
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
setCat: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetCat, oldPr: this.cat, newPr: pr});
this.cat = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetDPt, oldPr: this.dPt, newPr: pr});
this.dPt = pr;
},
setErrBars: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetErrBars, oldPr: this.errBars, newPr: pr});
this.errBars = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setInvertIfNegative: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetInvertIfNegative, oldPr: this.invertIfNegative, newPr: pr});
this.invertIfNegative = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetOrder, oldPr: this.order, newPr: pr});
this.order = pr;
},
setPictureOptions: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetPictureOptions, oldPr: this.pictureOptions, newPr: pr});
this.pictureOptions = pr;
},
setShape: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetShape, oldPr: this.shape, newPr: pr});
this.shape = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTrendline: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetTrendline, oldPr: this.trendline, newPr: pr});
this.trendline = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetTx, oldPr: this.tx, newPr: pr});
this.tx = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_BarSeries_SetVal, oldPr: this.val, newPr: pr});
this.val = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_BarSeries_SetCat:
{
this.cat = data.oldPr;
break;
}
case historyitem_BarSeries_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_BarSeries_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_BarSeries_SetErrBars:
{
this.errBars = data.oldPr;
break;
}
case historyitem_BarSeries_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_BarSeries_SetInvertIfNegative:
{
this.invertIfNegative = data.oldPr;
break;
}
case historyitem_BarSeries_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_BarSeries_SetPictureOptions:
{
this.pictureOptions = data.oldPr;
break;
}
case historyitem_BarSeries_SetShape:
{
this.shape = data.oldPr;
break;
}
case historyitem_BarSeries_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_BarSeries_SetTrendline:
{
this.trendline = data.oldPr;
break;
}
case historyitem_BarSeries_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_BarSeries_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_BarSeries_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_BarSeries_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_BarSeries_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_BarSeries_SetErrBars:
{
this.errBars = data.newPr;
break;
}
case historyitem_BarSeries_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_BarSeries_SetInvertIfNegative:
{
this.invertIfNegative = data.newPr;
break;
}
case historyitem_BarSeries_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_BarSeries_SetPictureOptions:
{
this.pictureOptions = data.newPr;
break;
}
case historyitem_BarSeries_SetShape:
{
this.shape = data.newPr;
break;
}
case historyitem_BarSeries_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_BarSeries_SetTrendline:
{
this.trendline = data.newPr;
break;
}
case historyitem_BarSeries_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_BarSeries_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_BarSeries_SetCat:
case historyitem_BarSeries_SetDLbls:
case historyitem_BarSeries_SetDPt:
case historyitem_BarSeries_SetErrBars:
case historyitem_BarSeries_SetPictureOptions:
case historyitem_BarSeries_SetShape:
case historyitem_BarSeries_SetSpPr:
case historyitem_BarSeries_SetTrendline:
case historyitem_BarSeries_SetTx:
case historyitem_BarSeries_SetVal:
{
writeObject(w, data.newPr);
break;
}
case historyitem_BarSeries_SetIdx:
case historyitem_BarSeries_SetOrder:
{
writeLong(w, data.newPr);
break;
}
case historyitem_BarSeries_SetInvertIfNegative:
{
writeBool(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_BarSeries_SetCat:
{
this.cat = readObject(r);
break;
}
case historyitem_BarSeries_SetDLbls:
{
this.dLbls = readObject(r);
break;
}
case historyitem_BarSeries_SetDPt:
{
this.dPt = readObject(r);
break;
}
case historyitem_BarSeries_SetErrBars:
{
this.errBars = readObject(r);
break;
}
case historyitem_BarSeries_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_BarSeries_SetInvertIfNegative:
{
this.invertIfNegative = readBool(r);
break;
}
case historyitem_BarSeries_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_BarSeries_SetPictureOptions:
{
this.pictureOptions = readObject(r);
break;
}
case historyitem_BarSeries_SetShape:
{
this.shape = readObject(r);
break;
}
case historyitem_BarSeries_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_BarSeries_SetTrendline:
{
this.trendline = readObject(r);
break;
}
case historyitem_BarSeries_SetTx:
{
this.tx = readObject(r);
break;
}
case historyitem_BarSeries_SetVal:
{
this.val = readObject(r);
break;
}
}
}
};
\ No newline at end of file
function CBubbleChart()
{
this.axId = null;
this.bubble3D = null;
this.bubbleScale = null;
this.dLbls = null;
this.series = [];
this.showNegBubbles = null;
this.sizeRepresents = null;
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CBubbleChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_BubbleChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setAxId: function(pr)
{
History.Add(this, {Type:historyitem_BubbleChart_SetAxId, oldPr: this.axId, newPr: pr});
this.axId = pr;
},
setBubble3D: function(pr)
{
History.Add(this, {Type:historyitem_BubbleChart_SetBubble3D, oldPr: this.bubble3D, newPr: pr});
this.bubble3D = pr;
},
setBubbleScale: function(pr)
{
History.Add(this, {Type:historyitem_BubbleChart_SetBubbleScale, oldPr: this.bubbleScale, newPr: pr});
this.bubbleScale = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type:historyitem_BubbleChart_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
AddSer: function(ser)
{
History.Add(this, {Type:historyitem_BubbleChart_AddSerie, ser: ser});
this.series.push(ser);
},
setShowNegBubbles: function(pr)
{
History.Add(this, {Type:historyitem_BubbleChart_SetShowNegBubbles, oldPr: this.showNegBubbles, newPr: pr});
this.showNegBubbles = pr;
},
setSizeRepresents: function(pr)
{
History.Add(this, {Type:historyitem_BubbleChart_SetSizeRepresents, oldPr: this.sizeRepresents, newPr: pr});
this.sizeRepresents = pr;
},
setVaryColors: function(pr)
{
History.Add(this, {Type:historyitem_BubbleChart_SetVaryColors, oldPr: this.varyColors, newPr: pr});
this.varyColors = pr;
},
Undo: function(data)
{},
Redo: function()
{},
Save_Changes: function()
{},
Load_Changes: function()
{}
};
\ No newline at end of file
function CBubbleSeries()
{
this.bubble3D = null;
this.bubbleSize = null;
this.dLbls = null;
this.dPt = null;
this.errBars = null;
this.idx = null;
this.invertIfNegative = null;
this.order = null;
this.spPr = null;
this.trendline = null;
this.tx = null;
this.xVal = null;
this.yVal = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CBubbleSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_BubbleSeries;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_BubbleSeries_SetBubble3D:
{
this.bubble3D = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetBubbleSize:
{
this.bubbleSize = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetErrBars:
{
this.errBars = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetInvertIfNegative:
{
this.invertIfNegative = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetTrendline:
{
this.trendline = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetXVal:
{
this.xVal = data.oldPr;
break;
}
case historyitem_BubbleSeries_SetYVal:
{
this.yVal = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_BubbleSeries_SetBubble3D:
{
this.bubble3D = data.newPr;
break;
}
case historyitem_BubbleSeries_SetBubbleSize:
{
this.bubbleSize = data.newPr;
break;
}
case historyitem_BubbleSeries_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_BubbleSeries_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_BubbleSeries_SetErrBars:
{
this.errBars = data.newPr;
break;
}
case historyitem_BubbleSeries_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_BubbleSeries_SetInvertIfNegative:
{
this.invertIfNegative = data.newPr;
break;
}
case historyitem_BubbleSeries_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_BubbleSeries_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_BubbleSeries_SetTrendline:
{
this.trendline = data.newPr;
break;
}
case historyitem_BubbleSeries_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_BubbleSeries_SetXVal:
{
this.xVal = data.newPr;
break;
}
case historyitem_BubbleSeries_SetYVal:
{
this.yVal = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_BubbleSeries_SetBubble3D:
case historyitem_BubbleSeries_SetInvertIfNegative:
{
writeBool(w, data.newPr);
break;
}
case historyitem_BubbleSeries_SetBubbleSize:
case historyitem_BubbleSeries_SetDLbls:
case historyitem_BubbleSeries_SetDPt:
case historyitem_BubbleSeries_SetErrBars:
case historyitem_BubbleSeries_SetSpPr:
case historyitem_BubbleSeries_SetTrendline:
case historyitem_BubbleSeries_SetTx:
case historyitem_BubbleSeries_SetXVal:
case historyitem_BubbleSeries_SetYVal:
{
writeObject(w, data.newPr);
break;
}
case historyitem_BubbleSeries_SetIdx:
case historyitem_BubbleSeries_SetOrder:
{
writeLong(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_BubbleSeries_SetBubble3D:
{
this.bubble3D = readBool(r);
break;
}
case historyitem_BubbleSeries_SetBubbleSize:
{
this.bubbleSize = readObject(r);
break;
}
case historyitem_BubbleSeries_SetDLbls:
{
this.dLbls = readObject(r);
break;
}
case historyitem_BubbleSeries_SetDPt:
{
this.dPt = readObject(r);
break;
}
case historyitem_BubbleSeries_SetErrBars:
{
this.errBars = readObject(r);
break;
}
case historyitem_BubbleSeries_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_BubbleSeries_SetInvertIfNegative:
{
this.invertIfNegative = readBool(r);
break;
}
case historyitem_BubbleSeries_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_BubbleSeries_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_BubbleSeries_SetTrendline:
{
this.trendline = readObject(r);
break;
}
case historyitem_BubbleSeries_SetTx:
{
this.tx = readObject(r);
break;
}
case historyitem_BubbleSeries_SetXVal:
{
this.xVal = readObject(r);
break;
}
case historyitem_BubbleSeries_SetYVal:
{
this.yVal = readObject(r);
break;
}
}
},
setBubble3D: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetBubble3D, oldPr: this.bubble3D, newPr: pr});
this.bubble3D = pr;
},
setBubbleSize: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetBubbleSize, oldPr: this.bubbleSize, newPr: pr});
this.bubbleSize = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetDPt, oldPr: this.dPt, newPr: pr});
this.dPt = pr;
},
setErrBars: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetErrBars, oldPr: this.errBars, newPr: pr});
this.errBars = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setInvertIfNegative: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetInvertIfNegative, oldPr: this.invertIfNegative, newPr: pr});
this.invertIfNegative = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetOrder, oldPr: this.order, newPr: pr});
this.order = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTrendline: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetTrendline, oldPr: this.trendline, newPr: pr});
this.trendline = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetTx, oldPr: this.tx, newPr: pr});
this.tx = pr;
},
setXVal: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetXVal, oldPr: this.xVal, newPr: pr});
this.xVal = pr;
},
setYVal: function(pr)
{
History.Add(this, {Type: historyitem_BubbleSeries_SetYVal, oldPr: this.yVal, newPr: pr});
this.yVal = pr;
}
};
\ No newline at end of file
function CCatAx()
{
this.auto = null;
this.axId = null;
this.axPos = null;
this.crossAx = null;
this.crosses = null;
this.crossesAt = null;
this.bDelete = null;
this.lblAlgn = null;
this.lblOffset = null;
this.majorGridlines = null;
this.majorTickMark = null;
this.minorGridlines = null;
this.minorTickMark = null;
this.noMultiLvlLbl = null;
this.numFmt = null;
this.scaling = null;
this.spPr = null;
this.tickLblPos = null;
this.tickLblSkip = null;
this.tickMarkSkip = null;
this.title = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CCatAx.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_CatAx;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setAuto: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetAuto, oldPr: this.auto, newPr: pr});
this.auto = pr;
},
setAxId : function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetAxId, oldPr: this.axId, newPr: pr});
this.axId = pr;
},
setAxPos: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetAxPos, oldPr: this.axPos, newPr: pr});
this.axPos = pr;
},
setCrossAx: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetCrossAx, oldPr: this.crossAx, newPr: pr});
this.crossAx = pr;
},
setCrosses: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetCrosses, oldPr: this.crosses, newPr: pr});
this.crosses = pr;
},
setCrossesAt: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetCrossesAt, oldPr: this.crossesAt, newPr: pr});
this.crossesAt = pr;
},
setDelete: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetDelete, oldPr: this.bDelete, newPr: pr});
this.bDelete = pr;
},
setLblAlgn: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetLblAlgn, oldPr: this.lblAlgn, newPr: pr});
this.lblAlgn = pr;
},
setLblOffset: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetLblOffset, oldPr: this.lblOffset, newPr: pr});
this.lblOffset = pr;
},
setMajorGridlines: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetMajorGridlines, oldPr: this.majorGridlines, newPr: pr});
this.majorGridlines = pr;
},
setMajorTickMark: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetMajorTickMark, oldPr: this.majorTickMark, newPr: pr});
this.majorTickMark = pr;
},
setMinorGridlines: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetMiniGridlines, oldPr: this.minorGridlines, newPr: pr});
this.minorGridlines = pr;
},
setMinorTickMark: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetMiniTickMark, oldPr: this.minorTickMark, newPr: pr});
this.minorTickMark = pr;
},
setNoMultiLvlLbl: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetNoMultiLvlLbl, oldPr: this.noMultiLvlLbl, newPr: pr});
this.noMultiLvlLbl = pr;
},
setNumFmt: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetNumFmt, oldPr: this.numFmt, newPr: pr});
this.numFmt = pr;
},
setScaling: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetScaling, oldPr: this.scaling, newPr: pr});
this.scaling = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTickLblPos: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetTickLblPos, oldPr: this.tickLblPos, newPr: pr});
this.tickLblPos = pr;
},
setTickLblSkip: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetTickLblSkip, oldPr: this.tickLblSkip, newPr: pr});
this.tickLblSkip = pr;
},
setTickMarkSkip: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetTickMarkSkip, oldPr: this.tickMarkSkip, newPr: pr});
this.tickMarkSkip = pr;
},
setTitle: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetTitle, oldPr: this.title, newPr: pr});
this.title = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_CatAx_SetTxPr, oldPr: this.txPr, newPr: pr});
this.txPr = pr;
},
Undo: function()
{},
Redo: function()
{},
Save_Changes: function()
{},
Load_Changes: function()
{}
};
\ No newline at end of file
function CCat()
{
this.multiLvlStrRef = null;
this.numLit = null;
this.numRef = null;
this.strLit = null;
this.strRef = null;
this.Id = g_IdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CCat.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Cat;
},
setMultiLvlStrRef: function(pr)
{
History.Add(this, {Type: historyitem_Cat_SetMultiLvlStrRef, oldPr: this.multiLvlStrRef, newPr: pr});
this.multiLvlStrRef = pr;
},
setNumLit: function(pr)
{
History.Add(this, {Type: historyitem_Cat_SetMultiLvlStrRef, oldPr: this.multiLvlStrRef, newPr: pr});
this.multiLvlStrRef = pr;
},
setNumRef: function(pr)
{
History.Add(this, {Type: historyitem_Cat_SetMultiLvlStrRef, oldPr: this.multiLvlStrRef, newPr: pr});
this.multiLvlStrRef = pr;
},
setStrLit: function(pr)
{
History.Add(this, {Type: historyitem_Cat_SetMultiLvlStrRef, oldPr: this.multiLvlStrRef, newPr: pr});
this.multiLvlStrRef = pr;
},
setStrRef: function(pr)
{
History.Add(this, {Type: historyitem_Cat_SetMultiLvlStrRef, oldPr: this.multiLvlStrRef, newPr: pr});
this.multiLvlStrRef = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Cat_SetMultiLvlStrRef:
{
this.multiLvlStrRef = data.oldPr;
break;
}
case historyitem_Cat_SetNumLit:
{
this.numLit = data.oldPr;
break;
}
case historyitem_Cat_SetNumRef:
{
this.numRef = data.oldPr;
break;
}
case historyitem_Cat_SetStrLit:
{
this.strLit = data.oldPr;
break;
}
case historyitem_Cat_SetStrRef:
{
this.strRef = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Cat_SetMultiLvlStrRef:
{
this.multiLvlStrRef = data.newPr;
break;
}
case historyitem_Cat_SetNumLit:
{
this.numLit = data.newPr;
break;
}
case historyitem_Cat_SetNumRef:
{
this.numRef = data.newPr;
break;
}
case historyitem_Cat_SetStrLit:
{
this.strLit = data.newPr;
break;
}
case historyitem_Cat_SetStrRef:
{
this.strRef = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Cat_SetMultiLvlStrRef:
case historyitem_Cat_SetNumLit:
case historyitem_Cat_SetNumRef:
case historyitem_Cat_SetStrLit:
case historyitem_Cat_SetStrRef:
{
writeObject(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_Cat_SetMultiLvlStrRef:
{
this.multiLvlStrRef = readObject(r);
break;
}
case historyitem_Cat_SetNumLit:
{
this.numLit = readObject(r);
break;
}
case historyitem_Cat_SetNumRef:
{
this.numRef = readObject(r);
break;
}
case historyitem_Cat_SetStrLit:
{
this.strLit = readObject(r);
break;
}
case historyitem_Cat_SetStrRef:
{
this.strRef = readObject(r);
break;
}
}
}
};
\ No newline at end of file
var DISP_BLANKS_AS_GAP = 0;
var DISP_BLANKS_AS_SPAN = 1;
var DISP_BLANKS_AS_ZERO = 2;
function CChart()
{
this.autoTitleDeleted = null;
this.backWall = null;
this.dispBlanksAs = null;
this.floor = null;
this.legend = null;
this.pivotFmts = [];
this.plotArea = null;
this.plotVisOnly = null;
this.showDLblsOverMax = null;
this.sideWall = null;
this.title = null;
this.view3D = null;
this.Id = g_oIdCounter.Get_NewId();
g_oIdCounter.Add(this, this.Id);
}
CChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Chart;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary: function(r)
{
this.Id = r.GetString2();
},
setAutoTitleDeleted: function(autoTitleDeleted)
{
History.Add(this, {Type: historyitem_Chart_SetAutoTitleDeleted, oldAutoTitleDeleted: this.autoTitleDeleted, newAutoTitleDeleted: autoTitleDeleted});
this.autoTitleDeleted = autoTitleDeleted;
},
setBackWall: function(backWall)
{
History.Add(this, {Type: historyitem_Chart_SetBackWall, oldBackWall: this.backWall, newBackWall: backWall});
this.backWall = backWall;
},
setDispBlanksAs: function(dispBlanksAs)
{
History.Add(this, {Type: historyitem_Chart_SetDispBlanksAs, oldDispBlanksAs: this.dispBlanksAs, newDispBlanksAs: dispBlanksAs});
this.dispBlanksAs = dispBlanksAs;
},
setFloor: function(floor)
{
History.Add(this, {Type: historyitem_Chart_SetFloor, oldFloor: this.floor, newFloor: floor});
this.floor = floor;
},
setLegend: function(legend)
{
History.Add(this, {Type: historyitem_Chart_SetLegend, oldLegend: this.legend, newLegend: legend});
this.legend = legend;
},
setPivotFmts: function(pivotFmt)
{
History.Add(this, {Type: historyitem_Chart_AddPivotFmt, pivotFmt: pivotFmt});
this.pivotFmts.push(pivotFmt);
},
setPlotArea: function(plotArea)
{
History.Add(this, {Type: historyitem_Chart_SetPlotArea, oldPlotArea: this.plotArea, newPlotArea: plotArea});
this.plotArea = plotArea;
},
setPlotVisOnly: function(plotVisOnly)
{
History.Add(this, {Type: historyitem_Chart_SetPlotVisOnly, oldPlotVisOnly: this.plotVisOnly, newPlotVisOnly: plotVisOnly});
this.plotVisOnly = plotVisOnly;
},
setShowDLblsOverMax: function(showDLblsOverMax)
{
History.Add(this, {Type: historyitem_Chart_SetShowDLblsOverMax, oldShowDLblsOverMax: this.showDLblsOverMax, newShowDLblsOverMax: showDLblsOverMax});
this.showDLblsOverMax = showDLblsOverMax;
},
setSideWall: function(sideWall)
{
History.Add(this, {Type: historyitem_Chart_SetSideWall, oldSideWall: this.sideWall, newSideWall: sideWall});
this.sideWall = sideWall;
},
setTitle: function(title)
{
History.Add(this, {Type: historyitem_Chart_SetTitle, oldTitle: this.title, newTitle: title});
this.title = title;
},
setView3D: function(view3D)
{
History.Add(this, {Type: historyitem_Chart_SetView3D, oldView3D: this.view3D, newView3D: view3D});
this.view3D = view3D;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Chart_SetAutoTitleDeleted:
{
this.autoTitleDeleted = data.oldAutoTitleDeleted;
break;
}
case historyitem_Chart_SetBackWall:
{
this.backWall = data.oldBackWall;
break;
}
case historyitem_Chart_SetDispBlanksAs:
{
this.dispBlanksAs = data.oldDispBlanksAs;
break;
}
case historyitem_Chart_SetFloor:
{
this.floor = data.oldFloor;
break;
}
case historyitem_Chart_SetLegend:
{
this.legend = data.oldLegend;
break;
}
case historyitem_Chart_AddPivotFmt:
{
for(var i = this.pivotFmts.length; i > -1; --i)
{
if(this.pivotFmts[i] === data.pivotFmt)
{
this.pivotFmts.splice(i, 1);
break;
}
}
break;
}
case historyitem_Chart_SetPlotArea:
{
this.plotArea = data.oldPlotArea;
break;
}
case historyitem_Chart_SetPlotVisOnly:
{
this.plotVisOnly = data.oldPlotVisOnly;
break;
}
case historyitem_Chart_SetShowDLblsOverMax:
{
this.showDLblsOverMax = data.oldShowDLblsOverMax;
break;
}
case historyitem_Chart_SetTitle:
{
this.title = data.oldTitle;
break;
}
case historyitem_Chart_SetSideWall:
{
this.sideWall = data.oldSideWall;
break;
}
case historyitem_Chart_SetView3D:
{
this.view3D = data.newView3D;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Chart_SetAutoTitleDeleted:
{
this.autoTitleDeleted = data.newAutoTitleDeleted;
break;
}
case historyitem_Chart_SetBackWall:
{
this.backWall = data.newBackWall;
break;
}
case historyitem_Chart_SetDispBlanksAs:
{
this.dispBlanksAs = data.newDispBlanksAs;
break;
}
case historyitem_Chart_SetFloor:
{
this.floor = data.newFloor;
break;
}
case historyitem_Chart_SetLegend:
{
this.legend = data.newLegend;
break;
}
case historyitem_Chart_AddPivotFmt:
{
this.pivotFmts.push(data.pivotFmt);
break;
}
case historyitem_Chart_SetPlotArea:
{
this.plotArea = data.newPlotArea;
break;
}
case historyitem_Chart_SetPlotVisOnly:
{
this.plotVisOnly = data.newPlotVisOnly;
break;
}
case historyitem_Chart_SetShowDLblsOverMax:
{
this.showDLblsOverMax = data.newShowDLblsOverMax;
break;
}
case historyitem_Chart_SetTitle:
{
this.title = data.newTitle;
break;
}
case historyitem_Chart_SetSideWall:
{
this.sideWall = data.newSideWall;
break;
}
case historyitem_Chart_SetView3D:
{
this.view3D = data.newView3D;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Chart_SetAutoTitleDeleted:
{
writeBool(w, data.newAutoTitleDeleted);
break;
}
case historyitem_Chart_SetBackWall:
{
writeObject(data.newBackWall);
break;
}
case historyitem_Chart_SetDispBlanksAs:
{
writeLong(w, data.newDispBlanksAs);
break;
}
case historyitem_Chart_SetFloor:
{
writeObject(w, data.newFloor);
break;
}
case historyitem_Chart_SetLegend:
{
writeObject(w, data.newLegend);
break;
}
case historyitem_Chart_AddPivotFmt:
{
writeObject(w, data.pivotFmt);
break;
}
case historyitem_Chart_SetPlotArea:
{
writeObject(w, data.newPlotArea);
break;
}
case historyitem_Chart_SetPlotVisOnly:
{
writeBool(data.newPlotVisOnly);
break;
}
case historyitem_Chart_SetShowDLblsOverMax:
{
writeBool(w, data.newShowDLblsOverMax);
break;
}
case historyitem_Chart_SetTitle:
{
writeObject(w, data.newTitle);
break;
}
case historyitem_Chart_SetSideWall:
{
writeObject(w, data.newSideWall);
break;
}
case historyitem_Chart_SetView3D:
{
writeObject(w, data.newView3D);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_Chart_SetAutoTitleDeleted:
{
this.autoTitleDeleted = r.GetBool();
break;
}
case historyitem_Chart_SetBackWall:
{
this.backWall = readObject(r);
break;
}
case historyitem_Chart_SetDispBlanksAs:
{
this.dispBlanksAs = readLong(r);
break;
}
case historyitem_Chart_SetFloor:
{
this.floor = readObject(r);
break;
}
case historyitem_Chart_SetLegend:
{
this.legend = readObject(r);
break;
}
case historyitem_Chart_AddPivotFmt:
{
var pivot_fmt = readObject(r);
if(isRealObject(pivot_fmt))
{
this.pivotFmts.push(pivot_fmt);
}
break;
}
case historyitem_Chart_SetPlotArea:
{
this.plotArea = readObject(r);
break;
}
case historyitem_Chart_SetPlotVisOnly:
{
this.plotVisOnly = readBool(r);
break;
}
case historyitem_Chart_SetShowDLblsOverMax:
{
this.showDLblsOverMax = readBool(r);
break;
}
case historyitem_Chart_SetTitle:
{
this.title = readObject(r);
break;
}
case historyitem_Chart_SetSideWall:
{
this.sideWall = readObject(r);
break;
}
case historyitem_Chart_SetView3D:
{
this.view3D = readObject(r);
break;
}
}
}
};
function CChartWall()
{
this.pictureOptions = null;
this.spPr = null;
this.thickness = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CChartWall.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_ChartWall;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary: function(r)
{
this.Id = r.GetString2();
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_ChartWall_SetPictureOptions:
{
this.pictureOptions = data.oldPr;
break;
}
case historyitem_ChartWall_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_ChartWall_SetThickness:
{
this.thickness = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_ChartWall_SetPictureOptions:
{
this.pictureOptions = data.newPr;
break;
}
case historyitem_ChartWall_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_ChartWall_SetThickness:
{
this.thickness = data.newPr;
break;
}
}
},
setPictureOptions: function(pr)
{
History.Add(this, {Type: historyitem_ChartWall_SetPictureOptions, oldPr: this.pictureOptions, newPr: pr});
this.pictureOptions = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_ChartWall_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setThickness: function(pr)
{
History.Add(this, {Type: historyitem_ChartWall_SetThickness, oldPr: this.thickness, newPr: pr});
this.thickness = pr;
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_ChartWall_SetPictureOptions:
{
writeObject(w, data.newPr);
break;
}
case historyitem_ChartWall_SetSpPr:
{
writeObject(w, data.newPr);
break;
}
case historyitem_ChartWall_SetThickness:
{
writeLong(data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch(type)
{
case historyitem_ChartWall_SetPictureOptions:
{
this.pictureOptions = readObject(r);
break;
}
case historyitem_ChartWall_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_ChartWall_SetThickness:
{
this.thickness = readLong(r);
break;
}
}
}
};
function CView3d()
{
this.depthPercent = null;
this.hPercent = null;
this.perspective = null;
this.rAngAx = null;
this.rotX = null;
this.rotY = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CView3d.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_View3d;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary: function(r)
{
this.Id = r.GetString2();
},
setDepthPercent: function(pr)
{
History.Add(this, {Type: historyitem_View3d_SetDepthPercent, oldPr: this.depthPercent, newPr: pr});
this.depthPercent = pr;
},
setHPercent: function(pr)
{
History.Add(this, {Type: historyitem_View3d_SetHPercent, oldPr: this.hPercent, newPr: pr});
this.hPercent = pr;
},
setPerspective: function(pr)
{
History.Add(this, {Type: historyitem_View3d_SetPerspective, oldPr: this.perspective, newPr: pr});
this.perspective = pr;
},
setRAngAx: function(pr)
{
History.Add(this, {Type: historyitem_View3d_SetRAngAx, oldPr: this.rAngAx, newPr: pr});
this.rAngAx = pr;
},
setRotX: function(pr)
{
History.Add(this, {Type: historyitem_View3d_SetRotX, oldPr: this.rotX, newPr: pr});
this.rotX = pr;
},
setRotY: function(pr)
{
History.Add(this, {Type: historyitem_View3d_SetRotY, oldPr: this.rotY, newPr: pr});
this.rotY = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_View3d_SetDepthPercent:
{
this.depthPercent = data.oldPr;
break;
}
case historyitem_View3d_SetHPercent:
{
this.hPercent = data.oldPr;
break;
}
case historyitem_View3d_SetPerspective:
{
this.perspective = data.oldPr;
break;
}
case historyitem_View3d_SetRAngAx:
{
this.rAngAx = data.oldPr;
break;
}
case historyitem_View3d_SetRotX:
{
this.rotX = data.oldPr;
break;
}
case historyitem_View3d_SetRotY:
{
this.rotY = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_View3d_SetDepthPercent:
{
this.depthPercent = data.newPr;
break;
}
case historyitem_View3d_SetHPercent:
{
this.hPercent = data.newPr;
break;
}
case historyitem_View3d_SetPerspective:
{
this.perspective = data.newPr;
break;
}
case historyitem_View3d_SetRAngAx:
{
this.rAngAx = data.newPr;
break;
}
case historyitem_View3d_SetRotX:
{
this.rotX = data.newPr;
break;
}
case historyitem_View3d_SetRotY:
{
this.rotY = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_View3d_SetDepthPercent:
case historyitem_View3d_SetHPercent:
case historyitem_View3d_SetPerspective:
case historyitem_View3d_SetRotX:
case historyitem_View3d_SetRotY:
{
writeLong(w, data.newPr);
break;
}
case historyitem_View3d_SetRAngAx:
{
writeBool(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_View3d_SetDepthPercent:
{
this.depthPercent = readObject(r);
break;
}
case historyitem_View3d_SetHPercent:
{
this.hPercent = readObject(r);
break;
}
case historyitem_View3d_SetPerspective:
{
this.perspective = readObject(r);
break;
}
case historyitem_View3d_SetRAngAx:
{
this.rAngAx = readBool(r);
break;
}
case historyitem_View3d_SetRotX:
{
this.rotX = readObject(r);
break;
}
case historyitem_View3d_SetRotY:
{
this.rotY = readObject(r);
break;
}
}
}
};
\ No newline at end of file
function CChartSpace()
{
this.chart = null;
this.clrMapOvr = null;
this.date1904 = null;
this.externalData = null;
this.lang = null;
this.pivotSource = null;
this.printSettings = null;
this.protection = null;
this.roundedCorners = null;
this.spPr = null;
this.style = null;
this.txPr = null;
this.userShapes = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CChartSpace.prototype =
{
Get_Id: function()
{
return this.Id;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
getObjectType: function()
{
return historyitem_type_ChartSpace;
},
setChart: function(chart)
{
History.Add(this, {Type: historyitem_ChartSpace_SetChart, oldChart: this.chart, newChart: chart});
this.chart = chart;
},
setClrMapOvr: function(clrMapOvr)
{
History.Add(this, {Type: historyitem_ChartSpace_SetClrMapOvr, oldClrMapOvr: this.clrMapOvr, newClrMapOvr: clrMapOvr});
this.clrMapOvr = clrMapOvr;
},
setDate1904: function(date1904)
{
History.Add(this, {Type: historyitem_ChartSpace_SetDate1904, oldDate1904: this.date1904, newDate1904: date1904});
this.date1904 = date1904;
},
setExternalData: function(externalData)
{
History.Add(this, {Type: historyitem_ChartSpace_SetExternalData, oldExternalData: this.externalData, newExternalData: externalData});
this.externalData = externalData;
},
setLang: function(lang)
{
History.Add(this, {Type: historyitem_ChartSpace_SetLang, oldLang: this.lang, newLang: lang});
this.lang = lang;
},
setPivotSource: function(pivotSource)
{
History.Add(this, {Type: historyitem_ChartSpace_SetPivotSource, oldPivotSource: this.pivotSource, newPivotSource: pivotSource});
this.pivotSource = pivotSource;
},
setPrintSettings: function(printSettings)
{
History.Add(this, {Type: historyitem_ChartSpace_SetPrintSettings, oldPrintSettings: this.printSettings, newPrintSettings: printSettings});
this.printSettings = printSettings;
},
setProtection: function(protection)
{
History.Add(this, {Type: historyitem_ChartSpace_SetProtection, oldProtection: this.protection, newProtection: protection});
this.protection = protection;
},
setRoundedCorners: function(roundedCorners)
{
History.Add(this, {Type: historyitem_ChartSpace_SetRoundedCorners, oldRoundedCorners: this.roundedCorners, newRoundedCorners: roundedCorners});
this.roundedCorners = roundedCorners;
},
setSpPr: function(spPr)
{
History.Add(this, {Type: historyitem_ChartSpace_SetSpPr, oldSpPr: this.spPr, newSpPr: spPr});
this.spPr = spPr;
},
setStyle: function(style)
{
History.Add(this, {Type: historyitem_ChartSpace_SetStyle, oldStyle: this.style, newStyle: style});
this.style = style;
},
setTxPr: function(txPr)
{
History.Add(this, {Type: historyitem_ChartSpace_SetTxPr, oldTxPr: this.txPr, newTxPr: txPr});
this.txPr = txPr;
},
setUserShapes: function(userShapes)
{
History.Add(this, {Type: historyitem_ChartSpace_SetUserShapes, oldUserShapes: this.userShapes, newUserShapes: userShapes});
this.userShapes = userShapes;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_ChartSpace_SetChart:
{
this.chart = data.oldChart;
break;
}
case historyitem_ChartSpace_SetClrMapOvr:
{
this.clrMapOvr = data.oldClrMapOvr;
break;
}
case historyitem_ChartSpace_SetDate1904:
{
this.date1904 = data.oldDate1904;
break;
}
case historyitem_ChartSpace_SetExternalData:
{
this.externalData = data.oldExternalData;
break;
}
case historyitem_ChartSpace_SetLang:
{
this.lang = data.oldLang;
break;
}
case historyitem_ChartSpace_SetPivotSource:
{
this.pivotSource = data.oldPivotSource;
break;
}
case historyitem_ChartSpace_SetPrintSettings:
{
this.printSettings = data.oldPrintSettings;
break;
}
case historyitem_ChartSpace_SetProtection:
{
this.protection = data.oldProtection;
break;
}
case historyitem_ChartSpace_SetRoundedCorners:
{
this.roundedCorners = data.oldRoundedCorners;
break;
}
case historyitem_ChartSpace_SetSpPr:
{
this.spPr = data.oldSpPr;
break;
}
case historyitem_ChartSpace_SetStyle:
{
this.style = data.oldStyle;
break;
}
case historyitem_ChartSpace_SetTxPr:
{
this.txPr = data.oldTxPr;
break;
}
case historyitem_ChartSpace_SetUserShapes:
{
this.userShapes = data.oldUserShapes;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_ChartSpace_SetChart:
{
this.chart = data.newChart;
break;
}
case historyitem_ChartSpace_SetClrMapOvr:
{
this.clrMapOvr = data.newClrMapOvr;
break;
}
case historyitem_ChartSpace_SetDate1904:
{
this.date1904 = data.newDate1904;
break;
}
case historyitem_ChartSpace_SetExternalData:
{
this.externalData = data.newExternalData;
break;
}
case historyitem_ChartSpace_SetLang:
{
this.lang = data.newLang;
break;
}
case historyitem_ChartSpace_SetPivotSource:
{
this.pivotSource = data.newPivotSource;
break;
}
case historyitem_ChartSpace_SetPrintSettings:
{
this.printSettings = data.newPrintSettings;
break;
}
case historyitem_ChartSpace_SetProtection:
{
this.protection = data.newProtection;
break;
}
case historyitem_ChartSpace_SetRoundedCorners:
{
this.roundedCorners = data.newRoundedCorners;
break;
}
case historyitem_ChartSpace_SetSpPr:
{
this.spPr = data.newSpPr;
break;
}
case historyitem_ChartSpace_SetStyle:
{
this.style = data.newStyle;
break;
}
case historyitem_ChartSpace_SetTxPr:
{
this.txPr = data.newTxPr;
break;
}
case historyitem_ChartSpace_SetUserShapes:
{
this.userShapes = data.newUserShapes;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_ChartSpace_SetChart:
{
writeObject(data.newChart);
break;
}
case historyitem_ChartSpace_SetClrMapOvr:
{
writeObject(data.newClrMapOvr);
break;
}
case historyitem_ChartSpace_SetDate1904:
{
writeBool(data.newDate1904);
break;
}
case historyitem_ChartSpace_SetExternalData:
{
writeObject(data.newExternalData);
break;
}
case historyitem_ChartSpace_SetLang:
{
writeString(w, data.newLang);
break;
}
case historyitem_ChartSpace_SetPivotSource:
{
writeObject(w, data.newPivotSource);
break;
}
case historyitem_ChartSpace_SetPrintSettings:
{
writeObject(w, data.newPrintSettings);
break;
}
case historyitem_ChartSpace_SetProtection:
{
writeObject(w, data.newProtection);
break;
}
case historyitem_ChartSpace_SetRoundedCorners:
{
writeBool(w, data.newRoundedCorners);
break;
}
case historyitem_ChartSpace_SetSpPr:
{
writeObject(w, data.newSpPr);
break;
}
case historyitem_ChartSpace_SetStyle:
{
writeLong(w, data.newStyle);
break;
}
case historyitem_ChartSpace_SetTxPr:
{
writeObject(w, data.newTxPr);
break;
}
case historyitem_ChartSpace_SetUserShapes:
{
writeString(w, data.newUserShapes);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_ChartSpace_SetChart:
{
this.chart = readObject(r);
break;
}
case historyitem_ChartSpace_SetClrMapOvr:
{
this.clrMapOvr = readObject(r);
break;
}
case historyitem_ChartSpace_SetDate1904:
{
this.date1904 = readBool(r);
break;
}
case historyitem_ChartSpace_SetExternalData:
{
this.externalData = readObject(r);
break;
}
case historyitem_ChartSpace_SetLang:
{
this.lang = readString(r);
break;
}
case historyitem_ChartSpace_SetPivotSource:
{
this.pivotSource = readObject(r);
break;
}
case historyitem_ChartSpace_SetPrintSettings:
{
this.printSettings = readObject(r);
break;
}
case historyitem_ChartSpace_SetProtection:
{
this.protection = readObject(r);
break;
}
case historyitem_ChartSpace_SetRoundedCorners:
{
this.roundedCorners = readBool(r);
break;
}
case historyitem_ChartSpace_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_ChartSpace_SetStyle:
{
this.style = readLong(r);
break;
}
case historyitem_ChartSpace_SetTxPr:
{
this.txPr = readObject(r);
break;
}
case historyitem_ChartSpace_SetUserShapes:
{
this.userShapes = readString(r);
break;
}
}
}
};
function CExternalData()
{
this.autoUpdate = null;
this.id = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CExternalData.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_ExternalData;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
setAutoUpdate: function(pr)
{
History.Add(this, {Type: historyitem_ExternalData_SetAutoUpdate, oldPr: this.autoUpdate, newPr: pr});
this.autoUpdate = pr;
},
setId: function(pr)
{
History.Add(this, {Type: historyitem_ExternalData_SetId, oldPr: this.id, newPr: pr});
this.id = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_ExternalData_SetAutoUpdate:
{
this.autoUpdate = data.oldPr;
break;
}
case historyitem_ExternalData_SetId:
{
this.id = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_ExternalData_SetAutoUpdate:
{
this.autoUpdate = data.newPr;
break;
}
case historyitem_ExternalData_SetId:
{
this.id = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_ExternalData_SetAutoUpdate:
{
writeBool(data.newPr);
break;
}
case historyitem_ExternalData_SetId:
{
writeString(data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_ExternalData_SetAutoUpdate:
{
this.autoUpdate = readBool(r);
break;
}
case historyitem_ExternalData_SetId:
{
this.id = readString(r);
break;
}
}
}
};
function CPivotSource()
{
this.fmtId = null;
this.name = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPivotSource.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PivotSource;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
setFmtId: function(pr)
{
History.Add(this, {Type:historyitem_PivotSource_SetFmtId, oldPr: this.fmtId, newPr: pr});
this.fmtId = pr;
},
setName: function(pr)
{
History.Add(this, {Type:historyitem_PivotSource_SetName, oldPr: this.name, newPr: pr});
this.name = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_PivotSource_SetFmtId:
{
this.fmtId = data.oldPr;
break;
}
case historyitem_PivotSource_SetName:
{
this.name = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch(data.Type)
{
case historyitem_PivotSource_SetFmtId:
{
this.fmtId = data.newPr;
break;
}
case historyitem_PivotSource_SetName:
{
this.name = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PivotSource_SetFmtId:
{
writeLong(w, data.newPr);
break;
}
case historyitem_PivotSource_SetName:
{
writeString(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_PivotSource_SetFmtId:
{
this.fmtId = readLong(r);
break;
}
case historyitem_PivotSource_SetName:
{
this.name = readString(r);
break;
}
}
}
};
function CProtection()
{
this.chartObject = null;
this.data = null;
this.formatting = null;
this.selection = null;
this.userInterface = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CProtection.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Protection;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
setChartObject: function(pr)
{
History.Add(this, {Type: historyitem_Protection_SetChartObject, newPr: pr, oldPr:this.chartObject});
this.chartObject = pr;
},
setData: function(pr)
{
History.Add(this, {Type: historyitem_Protection_SetData, newPr: pr, oldPr:this.data});
this.data = pr;
},
setFormatting: function(pr)
{
History.Add(this, {Type: historyitem_Protection_SetFormatting, newPr: pr, oldPr:this.formatting});
this.formatting = pr;
},
setSelection: function(pr)
{
History.Add(this, {Type: historyitem_Protection_SetSelection, newPr: pr, oldPr:this.selection});
this.selection = pr;
},
setUserInterface: function(pr)
{
History.Add(this, {Type: historyitem_Protection_SetUserInterface, newPr: pr, oldPr:this.userInterface});
this.userInterface = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_Protection_SetChartObject:
{
this.chartObject = data.oldPr;
break;
}
case historyitem_Protection_SetData:
{
this.data = data.oldPr;
break;
}
case historyitem_Protection_SetFormatting:
{
this.formatting = data.oldPr;
break;
}
case historyitem_Protection_SetSelection:
{
this.selection = data.oldPr;
break;
}
case historyitem_Protection_SetUserInterface:
{
this.userInterface = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch(data.Type)
{
case historyitem_Protection_SetChartObject:
{
this.chartObject = data.newPr;
break;
}
case historyitem_Protection_SetData:
{
this.data = data.oldPr;
break;
}
case historyitem_Protection_SetFormatting:
{
this.formatting = data.newPr;
break;
}
case historyitem_Protection_SetSelection:
{
this.selection = data.newPr;
break;
}
case historyitem_Protection_SetUserInterface:
{
this.userInterface = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch(data.Type)
{
case historyitem_Protection_SetChartObject:
case historyitem_Protection_SetData:
case historyitem_Protection_SetFormatting:
case historyitem_Protection_SetSelection:
case historyitem_Protection_SetUserInterface:
{
writeBool(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch(type)
{
case historyitem_Protection_SetChartObject:
{
this.chartObject = readBool(r);
break;
}
case historyitem_Protection_SetData:
{
this.data = readBool(r);
break;
}
case historyitem_Protection_SetFormatting:
{
this.formatting = readBool(r);
break;
}
case historyitem_Protection_SetSelection:
{
this.selection = readBool(r);
break;
}
case historyitem_Protection_SetUserInterface:
{
this.userInterface = readBool(r);
break;
}
}
}
};
function CPrintSettings()
{
this.headerFooter = null;
this.pageMargins = null;
this.pageSetup = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPrintSettings.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PrintSettings;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
setHeaderFooter: function(pr)
{
History.Add(this, {Type: historyitem_PrintSettingsSetHeaderFooter, oldPr: this.headerFooter, newPr: pr});
this.headerFooter = pr;
},
setPageMargins: function(pr)
{
History.Add(this, {Type: historyitem_PrintSettingsSetPageMargins, oldPr: this.pageMargins, newPr: pr});
this.pageMargins = pr;
},
setPageSetup: function(pr)
{
History.Add(this, {Type: historyitem_PrintSettingsSetPageSetup, oldPr: this.pageSetup, newPr: pr});
this.pageSetup = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_PrintSettingsSetHeaderFooter:
{
this.headerFooter = data.oldPr;
break;
}
case historyitem_PrintSettingsSetPageMargins:
{
this.pageMargins = data.oldPr;
break;
}
case historyitem_PrintSettingsSetPageSetup:
{
this.pageSetup = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_PrintSettingsSetHeaderFooter:
{
this.headerFooter = data.newPr;
break;
}
case historyitem_PrintSettingsSetPageMargins:
{
this.pageMargins = data.newPr;
break;
}
case historyitem_PrintSettingsSetPageSetup:
{
this.pageSetup = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PrintSettingsSetHeaderFooter:
case historyitem_PrintSettingsSetPageMargins:
case historyitem_PrintSettingsSetPageSetup:
{
writeObject(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
switch (data.Type)
{
case historyitem_PrintSettingsSetHeaderFooter:
{
this.headerFooter = readObject(r);
break;
}
case historyitem_PrintSettingsSetPageMargins:
{
this.pageMargins = readObject(r);
break;
}
case historyitem_PrintSettingsSetPageSetup:
{
this.pageSetup = readObject(r);
break;
}
}
}
};
function CHeaderFooterChart()
{
this.alignWithMargins = null;
this.differentFirst = null;
this.differentOddEven = null;
this.evenFooter = null;
this.evenHeader = null;
this.firstFooter = null;
this.firstHeader = null;
this.oddFooter = null;
this.oddHeader = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CHeaderFooterChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
getObjectType: function()
{
return historyitem_type_HeaderFooterChart;
},
AlignWithMargins: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetAlignWithMargins, oldPr:this.alignWithMargins, newPr: pr});
this.alignWithMargins = pr;
},
DifferentFirst: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetDifferentFirst, oldPr:this.differentFirst, newPr: pr});
this.differentFirst = pr;
},
DifferentOddEven: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetDifferentOddEven, oldPr:this.differentOddEven, newPr: pr});
this.differentOddEven = pr;
},
EvenFooter: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetEvenFooter, oldPr:this.evenFooter, newPr: pr});
this.evenFooter = pr;
},
EvenHeader: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetEvenHeader, oldPr:this.evenHeader, newPr: pr});
this.evenHeader = pr;
},
FirstFooter: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetFirstFooter, oldPr:this.firstFooter, newPr: pr});
this.firstFooter = pr;
},
FirstHeader: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetFirstHeader, oldPr:this.firstHeader, newPr: pr});
this.firstHeader = pr;
},
OddFooter: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetOddFooter, oldPr:this.oddFooter, newPr: pr});
this.oddFooter = pr;
},
OddHeader: function(pr)
{
History.Add(this, {Type: historyitem_HeaderFooterChartSetOddHeader, oldPr:this.oddHeader, newPr: pr});
this.oddHeader = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_HeaderFooterChartSetAlignWithMargins:
{
this.alignWithMargins = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetDifferentFirst:
{
this.differentFirst = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetDifferentOddEven:
{
this.differentOddEven = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetEvenFooter:
{
this.evenFooter = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetEvenHeader:
{
this.evenHeader = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetFirstFooter:
{
this.firstFooter = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetFirstHeader:
{
this.firstHeader = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetOddFooter:
{
this.oddFooter = data.oldPr;
break;
}
case historyitem_HeaderFooterChartSetOddHeader:
{
this.oddHeader = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_HeaderFooterChartSetAlignWithMargins:
{
this.alignWithMargins = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetDifferentFirst:
{
this.differentFirst = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetDifferentOddEven:
{
this.differentOddEven = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetEvenFooter:
{
this.evenFooter = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetEvenHeader:
{
this.evenHeader = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetFirstFooter:
{
this.firstFooter = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetFirstHeader:
{
this.firstHeader = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetOddFooter:
{
this.oddFooter = data.newPr;
break;
}
case historyitem_HeaderFooterChartSetOddHeader:
{
this.oddHeader = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_HeaderFooterChartSetAlignWithMargins:
case historyitem_HeaderFooterChartSetDifferentFirst:
case historyitem_HeaderFooterChartSetDifferentOddEven:
{
writeBool(w, data.newPr);
break;
}
case historyitem_HeaderFooterChartSetEvenFooter:
case historyitem_HeaderFooterChartSetEvenHeader:
case historyitem_HeaderFooterChartSetFirstFooter:
case historyitem_HeaderFooterChartSetFirstHeader:
case historyitem_HeaderFooterChartSetOddFooter:
case historyitem_HeaderFooterChartSetOddHeader:
{
writeString(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_HeaderFooterChartSetAlignWithMargins:
{
this.alignWithMargins = readBool(r);
break;
}
case historyitem_HeaderFooterChartSetDifferentFirst:
{
this.differentFirst = readBool(r);
break;
}
case historyitem_HeaderFooterChartSetDifferentOddEven:
{
this.differentOddEven = readBool(r);
break;
}
case historyitem_HeaderFooterChartSetEvenFooter:
{
this.evenFooter = readString(r);
break;
}
case historyitem_HeaderFooterChartSetEvenHeader:
{
this.evenHeader = readString(r);
break;
}
case historyitem_HeaderFooterChartSetFirstFooter:
{
this.firstFooter = readString(r);
break;
}
case historyitem_HeaderFooterChartSetFirstHeader:
{
this.firstHeader = readString(r);
break;
}
case historyitem_HeaderFooterChartSetOddFooter:
{
this.oddFooter = readString(r);
break;
}
case historyitem_HeaderFooterChartSetOddHeader:
{
this.oddHeader = readString(r);
break;
}
}
}
};
function CPageMarginsChart()
{
this.b = null;
this.footer = null;
this.header = null;
this.l = null;
this.r = null;
this.t = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPageMarginsChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PageMarginsChart;
},
setB: function(pr)
{
History.Add(this, {Type: historyitem_PageMarginsSetB, oldPr: this.b, newPr: pr});
this.b = pr;
},
setFooter: function(pr)
{
History.Add(this, {Type: historyitem_PageMarginsSetFooter, oldPr: this.footer, newPr: pr});
this.footer = pr;
},
setHeader: function(pr)
{
History.Add(this, {Type: historyitem_PageMarginsSetHeader, oldPr: this.header, newPr: pr});
this.header = pr;
},
setL: function(pr)
{
History.Add(this, {Type: historyitem_PageMarginsSetL, oldPr: this.l, newPr: pr});
this.l = pr;
},
setR: function(pr)
{
History.Add(this, {Type: historyitem_PageMarginsSetR, oldPr: this.r, newPr: pr});
this.r = pr;
},
setT: function(pr)
{
History.Add(this, {Type: historyitem_PageMarginsSetT, oldPr: this.t, newPr: pr});
this.t = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_PageMarginsSetB:
{
this.b = data.oldPr;
break;
}
case historyitem_PageMarginsSetFooter:
{
this.footer = data.oldPr;
break;
}
case historyitem_PageMarginsSetHeader:
{
this.header = data.oldPr;
break;
}
case historyitem_PageMarginsSetL:
{
this.l = data.oldPr;
break;
}
case historyitem_PageMarginsSetR:
{
this.r = data.oldPr;
break;
}
case historyitem_PageMarginsSetT:
{
this.t = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_PageMarginsSetB:
{
this.b = data.newPr;
break;
}
case historyitem_PageMarginsSetFooter:
{
this.footer = data.newPr;
break;
}
case historyitem_PageMarginsSetHeader:
{
this.header = data.newPr;
break;
}
case historyitem_PageMarginsSetL:
{
this.l = data.newPr;
break;
}
case historyitem_PageMarginsSetR:
{
this.r = data.newPr;
break;
}
case historyitem_PageMarginsSetT:
{
this.t = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PageMarginsSetB:
case historyitem_PageMarginsSetFooter:
case historyitem_PageMarginsSetHeader:
case historyitem_PageMarginsSetL:
case historyitem_PageMarginsSetR:
case historyitem_PageMarginsSetT:
{
writeDouble(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_PageMarginsSetB:
{
this.b = readDouble(r);
break;
}
case historyitem_PageMarginsSetFooter:
{
this.footer = readDouble(r);
break;
}
case historyitem_PageMarginsSetHeader:
{
this.header = readDouble(r);
break;
}
case historyitem_PageMarginsSetL:
{
this.l = readDouble(r);
break;
}
case historyitem_PageMarginsSetR:
{
this.r = readDouble(r);
break;
}
case historyitem_PageMarginsSetT:
{
this.t = readDouble(r);
break;
}
}
}
};
var PAGE_SETUP_ORIENTATION_DEFAULT = 0;
var PAGE_SETUP_ORIENTATION_LANDSCAPE = 1;
var PAGE_SETUP_ORIENTATION_PORTRAIT = 2;
function CPageSetup()
{
this.blackAndWhite = null;
this.copies = null;
this.draft = null;
this.firstPageNumber = null;
this.horizontalDpi = null;
this.orientation = null;
this.paperHeight = null;
this.paperSize = null;
this.paperWidth = null;
this.useFirstPageNumb = null;
this.verticalDpi = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPageSetup.prototype =
{
Get_Id: function()
{
return this.Id;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
getObjectType: function()
{
return historyitem_type_PageSetup;
},
setBlackAndWhite: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetBlackAndWhite, oldPr: this.blackAndWhite, newPr: pr});
this.blackAndWhite = pr;
},
setCopies: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetCopies, oldPr: this.copies, newPr: pr});
this.copies = pr;
},
setDraft: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetDraft, oldPr: this.draft, newPr: pr});
this.draft = pr;
},
setFirstPageNumber: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetFirstPageNumber, oldPr: this.firstPageNumber, newPr: pr});
this.firstPageNumber = pr;
},
setHorizontalDpi: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetHorizontalDpi, oldPr: this.horizontalDpi, newPr: pr});
this.horizontalDpi = pr;
},
setOrientation: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetOrientation, oldPr: this.orientation, newPr: pr});
this.orientation = pr;
},
setPaperHeight: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetPaperHeight, oldPr: this.paperHeight, newPr: pr});
this.paperHeight = pr;
},
setPaperSize: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetPaperSize, oldPr: this.paperSize, newPr: pr});
this.paperSize = pr;
},
setPaperWidth: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetPaperWidth, oldPr: this.paperWidth, newPr: pr});
this.paperWidth = pr;
},
setUseFirstPageNumb: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetUseFirstPageNumb, oldPr: this.useFirstPageNumb, newPr: pr});
this.useFirstPageNumb = pr;
},
setVerticalDpi: function(pr)
{
History.Add(this, {Type: historyitem_PageSetupSetVerticalDpi, oldPr: this.verticalDpi, newPr: pr});
this.verticalDpi = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_PageSetupSetBlackAndWhite:
{
this.blackAndWhite = data.oldPr;
break;
}
case historyitem_PageSetupSetCopies:
{
this.copies = data.oldPr;
break;
}
case historyitem_PageSetupSetDraft:
{
this.draft = data.oldPr;
break;
}
case historyitem_PageSetupSetFirstPageNumber:
{
this.firstPageNumber = data.oldPr;
break;
}
case historyitem_PageSetupSetHorizontalDpi:
{
this.horizontalDpi = data.oldPr;
break;
}
case historyitem_PageSetupSetOrientation:
{
this.orientation = data.oldPr;
break;
}
case historyitem_PageSetupSetPaperHeight:
{
this.paperHeight = data.oldPr;
break;
}
case historyitem_PageSetupSetPaperSize:
{
this.paperSize = data.oldPr;
break;
}
case historyitem_PageSetupSetPaperWidth:
{
this.paperWidth = data.oldPr;
break;
}
case historyitem_PageSetupSetUseFirstPageNumb:
{
this.useFirstPageNumb = data.oldPr;
break;
}
case historyitem_PageSetupSetVerticalDpi:
{
this.verticalDpi = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_PageSetupSetBlackAndWhite:
{
this.blackAndWhite = data.newPr;
break;
}
case historyitem_PageSetupSetCopies:
{
this.copies = data.newPr;
break;
}
case historyitem_PageSetupSetDraft:
{
this.draft = data.newPr;
break;
}
case historyitem_PageSetupSetFirstPageNumber:
{
this.firstPageNumber = data.newPr;
break;
}
case historyitem_PageSetupSetHorizontalDpi:
{
this.horizontalDpi = data.newPr;
break;
}
case historyitem_PageSetupSetOrientation:
{
this.orientation = data.newPr;
break;
}
case historyitem_PageSetupSetPaperHeight:
{
this.paperHeight = data.newPr;
break;
}
case historyitem_PageSetupSetPaperSize:
{
this.paperSize = data.newPr;
break;
}
case historyitem_PageSetupSetPaperWidth:
{
this.paperWidth = data.newPr;
break;
}
case historyitem_PageSetupSetUseFirstPageNumb:
{
this.useFirstPageNumb = data.newPr;
break;
}
case historyitem_PageSetupSetVerticalDpi:
{
this.verticalDpi = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PageSetupSetBlackAndWhite:
case historyitem_PageSetupSetDraft:
case historyitem_PageSetupSetUseFirstPageNumb:
{
writeBool(w, data.newPr);
break;
}
case historyitem_PageSetupSetCopies:
case historyitem_PageSetupSetFirstPageNumber:
case historyitem_PageSetupSetHorizontalDpi:
case historyitem_PageSetupSetOrientation:
case historyitem_PageSetupSetPaperSize:
case historyitem_PageSetupSetVerticalDpi:
{
writeLong(w, data.newPr);
break;
}
case historyitem_PageSetupSetPaperHeight:
case historyitem_PageSetupSetPaperWidth:
{
writeDouble(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_PageSetupSetBlackAndWhite:
{
this.blackAndWhite = readBool(r);
break;
}
case historyitem_PageSetupSetCopies:
{
this.copies = readLong(r);
break;
}
case historyitem_PageSetupSetDraft:
{
this.draft = readBool(r);
break;
}
case historyitem_PageSetupSetFirstPageNumber:
{
this.firstPageNumber = readLong(r);
break;
}
case historyitem_PageSetupSetHorizontalDpi:
{
this.horizontalDpi = readLong(r);
break;
}
case historyitem_PageSetupSetOrientation:
{
this.orientation = readLong(r);
break;
}
case historyitem_PageSetupSetPaperHeight:
{
this.paperHeight = readDouble(r);
break;
}
case historyitem_PageSetupSetPaperSize:
{
this.paperSize = readLong(r);
break;
}
case historyitem_PageSetupSetPaperWidth:
{
this.paperWidth = readDouble(r);
break;
}
case historyitem_PageSetupSetUseFirstPageNumb:
{
this.useFirstPageNumb = readBool(r);
break;
}
case historyitem_PageSetupSetVerticalDpi:
{
this.verticalDpi = readLong(r);
break;
}
}
}
};
function CreateDefaultLineNormalChart(asc_series)
{
var chart_space = new CChartSpace();
chart_space.setDate1904(false);
chart_space.setLang("ru-Ru");
chart_space.setRoundedCorners(false);
chart_space.setChart(new CChart());
chart_space.setPrintSettings(new CPrintSettings());
var chart = chart_space.chart;
chart.setAutoTitleDeleted(false);
chart.setPlotArea(new CPlotArea());
chart.setLegend(new CLegend());
chart.setPlotVisOnly(true);
chart.setDispBlanksAs(DISP_BLANKS_AS_GAP);
chart.setShowDLblsOverMax(false);
var plot_area = chart.plotArea;
plot_area.setLayout(new CLayout());
plot_area.setChart(new CLineChart());
plot_area.setCatAx(new CAxis());
plot_area.setValAx(new CAxis());
var cat_ax = plot_area.catAx;
cat_ax.setScaling(new CScaling());
cat_ax.setDelete(false);
cat_ax.setAxPos(AX_POS_B);
cat_ax.setMajorTickMark(TICK_MARK_OUT);
cat_ax.setMinorTickMark(TICK_MARK_NONE);
cat_ax.setTickLblPos(TICK_LABEL_POSITION_NEXT_TO);
cat_ax.setCrosses(CROSSES_AUTO_ZERO);
cat_ax.setAuto(true);
cat_ax.setLblAlgn(LBL_ALG_CTR);
cat_ax.setLblOffset(100);
cat_ax.setNoMultiLvlLbl(false);
var scaling = cat_ax.scaling;
scaling.setOrientation(ORIENTATION_MIN_MAX);
var val_ax = plot_area.valAx;
val_ax.setScaling(new CScaling());
val_ax.setDelete(false);
val_ax.setAxPos(AX_POS_L);
val_ax.setMajorGridlines(new CSpPr());
val_ax.setNumFmt(new CNumFmt());
val_ax.setMajorTickMark(TICK_MARK_OUT);
val_ax.setMinorTickMark(TICK_MARK_NONE);
val_ax.setTickLblPos(TICK_LABEL_POSITION_NEXT_TO);
val_ax.setCrossAx(cat_ax.Get_Id());
val_ax.setCrosses(CROSSES_AUTO_ZERO);
val_ax.setCrossBetween(CROSS_BETWEEN_BETWEEN);
cat_ax.setCrossAx(val_ax.Get_Id());
scaling = val_ax.scaling;
scaling.setOrientation(ORIENTATION_MIN_MAX);
var legend = chart.legend;
legend.setLegendPos(LEGEND_POS_R);
legend.setLayout(new CLayout());
legend.setOverlay(false);
var line_chart = plot_area.chart;
line_chart.setGrouping(GROUPING_STANDARD);
line_chart.setVaryColors(false);
line_chart.setDLbls(new CDLbls());
line_chart.setMarker(true);
line_chart.setSmooth(false);
line_chart.addAxId(cat_ax.Get_Id());
line_chart.addAxId(val_ax.Get_Id());
for(var i = 0; i < asc_series.length; ++i)
{
var series = new CLineSeries();
series.setIdx(i);
series.setOrder(i);
series.setMarker(new CMarker());
series.marker.setSymbol(SYMBOL_NONE);
series.setSmooth(false);
}
var d_lbls = line_chart.dLbls;
d_lbls.setShowLegendKey(false);
d_lbls.setShowVal(false);
d_lbls.setShowCatName(false);
d_lbls.setShowSerName(false);
d_lbls.setShowPercent(false);
d_lbls.setShowBubbleSize(false);
var print_settings = chart_space.printSettings;
print_settings.setHeaderFooter(new CHeaderFooterChart());
print_settings.setPageMargins(new CPageMarginsChart());
var page_margins = print_settings.pageMargins;
page_margins.setB(0.75);
page_margins.setL(0.7);
page_margins.setR(0.7);
page_margins.setT(0.75);
page_margins.setHeader(0.3);
page_margins.setFooter(0.3);
page_margins.setPageSetup(new CPageSetup());
return chart_space;
}
function CreateDefaultLineStackedChart()
{
var chart_space = new CChartSpace();
chart_space.setDate1904(false);
chart_space.setLang("ru-RU");
chart_space.setRoundedCorners(false);
chart_space.setChart(new CChart());
chart_space.setPrintSettings(new CPrintSettings());
var chart = chart_space.chart;
chart.setAutoTitleDeleted(false);
chart.setPlotArea(new CPlotArea());
chart.setLegend(new CLegend());
chart.setPlotVisOnly(true);
chart.setDispBlanksAs(DISP_BLANKS_AS_ZERO);
chart.setShowDLblsOverMax(false);
var plot_area = chart.plotArea;
plot_area.setLayout(new CLayout());
plot_area.setChart(new CLineChart());
plot_area.setCatAx(new CAxis());
plot_area.setValAx(new CAxis());
var line_chart = plot_area.chart;
line_chart.setGrouping(GROUPING_STACKED);
line_chart.setVaryColors(false);
line_chart.setDLbls(new CDLbls());
line_chart.setMarker(true);
line_chart.setSmooth(false);
line_chart.addAxId(plot_area.catAx);
line_chart.addAxId(plot_area.valAx);
var d_lbls = line_chart.dLbls;
d_lbls.setShowLegendKey(false);
d_lbls.setShowVal(false);
d_lbls.setShowCatName(false);
d_lbls.setShowSerName(false);
d_lbls.setShowPercent(false);
d_lbls.setShowBubbleSize(false);
var cat_ax = plot_area.catAx;
cat_ax.setScaling(new CScaling());
cat_ax.setDelete(false);
cat_ax.setAxPos(AX_POS_B);
cat_ax.setMajorTickMark(TICK_MARK_OUT);
cat_ax.setMinorTickMark(TICK_MARK_NONE);
cat_ax.setTickLblPos(TICK_LABEL_POSITION_NEXT_TO);
cat_ax.setCrossAx(line_chart.valAx.Get_Id());
cat_ax.setCrosses(CROSSES_AUTO_ZERO);
cat_ax.setAuto(true);
cat_ax.setLblAlgn(LBL_ALG_CTR);
cat_ax.setLblOffset(100);
cat_ax.setNoMultiLvlLbl(false);
var scaling = cat_ax.scaling;
scaling.setOrientation(ORIENTATION_MIN_MAX);
var val_ax = plot_area.valAx;
val_ax.setScaling(new CScaling());
val_ax.setDelete(false);
val_ax.setAxPos(AX_POS_L);
val_ax.setMajorGridlines(new CSpPr());
val_ax.setNumFmt(new CNumFmt());
val_ax.setMajorTickMark(TICK_MARK_OUT);
val_ax.setMinorTickMark(TICK_MARK_NONE);
val_ax.setTickLblPos(TICK_LABEL_POSITION_NEXT_TO);
val_ax.setCrossAx(cat_ax.Get_Id());
val_ax.setCrosses(CROSSES_AUTO_ZERO);
val_ax.setCrossBetween(CROSS_BETWEEN_BETWEEN);
scaling = val_ax.scaling;
scaling.setOrientation(ORIENTATION_MIN_MAX);
var num_fmt = val_ax.numFmt;
num_fmt.setFormatCode("General");
num_fmt.setSourceLinked(true);
var legend = chart.legend;
legend.setLegendPos(LEGEND_POS_R);
legend.setLayout(new CLayout());
legend.setOverlay(false);
return chart_space;
}
\ No newline at end of file
function CChartText()
{
this.rich = null;
this.strRef = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CChartText.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_ChartText;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id())
},
Read_FromBinary2: function(r)
{
this.Id = r.GetLong();
},
setRich: function(pr)
{
History.Add(this, {Type: historyitem_ChartText_SetRich, oldPr: this.rich, newPr: pr});
this.rich = pr;
},
setStrRef: function(pr)
{
History.Add(this, {Type: historyitem_ChartText_SetStrRef, oldPr: this.strRef, newPr: pr});
this.strRef = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_ChartText_SetRich:
{
this.rich = data.oldPr;
break;
}
case historyitem_ChartText_SetStrRef:
{
this.strRef = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_ChartText_SetRich:
{
this.rich = data.newPr;
break;
}
case historyitem_ChartText_SetStrRef:
{
this.strRef = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_ChartText_SetRich:
case historyitem_ChartText_SetStrRef:
{
writeObject(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_ChartText_SetRich:
{
this.rich = readObject(r);
break;
}
case historyitem_ChartText_SetStrRef:
{
this.strRef = readObject(r);
break;
}
}
}
};
\ No newline at end of file
var historyitem_ColorMod_SetName = 2001;
var historyitem_ColorMod_SetVal = 2002;
var historyitem_ColorModifiers_AddColorMod = 2003;
var historyitem_SysColor_SetId = 2004;
var historyitem_PrstColor_SetId = 2005;
var historyitem_RGBColor_SetColor = 2006;
var historyitem_SchemeColor_SetId = 2007;
var historyitem_UniColor_SetColor = 2008;
var historyitem_UniColor_SetMods = 2009;
var historyitem_SrcRect_SetLTRB = 2010;
var historyitem_BlipFill_SetRasterImageId = 2011;
var historyitem_BlipFill_SetVectorImageBin = 2012;
var historyitem_BlipFill_SetSrcRect = 2013;
var historyitem_BlipFill_SetStretch = 2014;
var historyitem_BlipFill_SetTile = 2015;
var historyitem_BlipFill_SetRotWithShape = 2016;
var historyitem_SolidFill_SetColor = 2017;
var historyitem_Gs_SetColor = 2018;
var historyitem_Gs_SetPos = 2019;
var historyitem_GradLin_SetAngle = 2020;
var historyitem_GradLin_SetScale = 2021;
var historyitem_GradPath_SetPath = 2022;
var historyitem_GradPath_SetRect = 2023;
var historyitem_GradFill_AddColor = 2024;
var historyitem_GradFill_SetLin = 2025;
var historyitem_GradFill_SetPath = 2026;
var historyitem_PathFill_SetFType = 2027;
var historyitem_PathFill_SetFgClr = 2028;
var historyitem_PathFill_SetBgClr = 2029;
var historyitem_UniFill_SetFill = 2030;
var historyitem_UniFill_SetTransparent = 2031;
var historyitem_EndArrow_SetType = 2032;
var historyitem_EndArrow_SetLen = 2033;
var historyitem_EndArrow_SetW = 2034;
var historyitem_LineJoin_SetType = 2035;
var historyitem_LineJoin_SetLimit = 2036;
var historyitem_Ln_SetFill = 2037;
var historyitem_Ln_SetPrstDash = 2038;
var historyitem_Ln_SetJoin = 2040;
var historyitem_Ln_SetHeadEnd = 2041;
var historyitem_Ln_SetTailEnd = 2042;
var historyitem_Ln_SetAlgn = 2043;
var historyitem_Ln_SetCap = 2044;
var historyitem_Ln_SetCmpd = 2046;
var historyitem_Ln_SetW = 2047;
var historyitem_DefaultShapeDefinition_SetSpPr = 2048;
var historyitem_DefaultShapeDefinition_SetBodyPr = 2049;
var historyitem_DefaultShapeDefinition_SetLstStyle = 2050;
var historyitem_DefaultShapeDefinition_SetStyle = 2051;
var historyitem_CNvPr_SetId = 2052;
var historyitem_CNvPr_SetName = 2053;
var historyitem_CNvPr_SetIsHidden = 2054;
var historyitem_NvPr_SetIsPhoto = 2055;
var historyitem_NvPr_SetUserDrawn = 2056;
var historyitem_NvPr_SetPh = 2057;
var historyitem_Ph_SetHasCustomPrompt = 2058;
var historyitem_Ph_SetIdx = 2059;
var historyitem_Ph_SetOrient = 2060;
var historyitem_Ph_SetSz = 2061;
var historyitem_Ph_SetType = 2062;
var historyitem_UniNvPr_SetCNvPr = 2063;
var historyitem_UniNvPr_SetUniPr = 2064;
var historyitem_UniNvPr_SetNvPr = 2065;
var historyitem_StyleRef_SetIdx = 2066;
var historyitem_StyleRef_SetColor = 2067;
var historyitem_FontRef_SetIdx = 2068;
var historyitem_FontRef_SetColor = 2069;
var historyitem_Chart_SetAutoTitleDeleted = 2070;
var historyitem_Chart_SetBackWall = 2071;
var historyitem_Chart_SetDispBlanksAs = 2072;
var historyitem_Chart_SetFloor = 2073;
var historyitem_Chart_SetLegend = 2074;
var historyitem_Chart_AddPivotFmt = 2075;
var historyitem_Chart_SetPlotArea = 2076;
var historyitem_Chart_SetPlotVisOnly = 2077;
var historyitem_Chart_SetShowDLblsOverMax = 2078;
var historyitem_Chart_SetSideWall = 2079;
var historyitem_Chart_SetTitle = 2080;
var historyitem_Chart_SetView3D = 2081;
var historyitem_ChartSpace_SetChart = 2082;
var historyitem_ChartSpace_SetClrMapOvr = 2083;
var historyitem_ChartSpace_SetDate1904 = 2084;
var historyitem_ChartSpace_SetExternalData = 2085;
var historyitem_ChartSpace_SetLang = 2086;
var historyitem_ChartSpace_SetPivotSource = 2087;
var historyitem_ChartSpace_SetPrintSettings = 2088;
var historyitem_ChartSpace_SetProtection = 2089;
var historyitem_ChartSpace_SetRoundedCorners = 2090;
var historyitem_ChartSpace_SetSpPr = 2091;
var historyitem_ChartSpace_SetStyle = 2092;
var historyitem_ChartSpace_SetTxPr = 2093;
var historyitem_ChartSpace_SetUserShapes = 2094;
var historyitem_Legend_SetLayout = 2095;
var historyitem_Legend_AddLegendEntry = 2096;
var historyitem_Legend_SetLegendPos = 2097;
var historyitem_Legend_SetOverlay = 2098;
var historyitem_Legend_SetSpPr = 2099;
var historyitem_Legend_SetTxPr = 2100;
var historyitem_Layout_SetH = 2101;
var historyitem_Layout_SetHMode = 2102;
var historyitem_Layout_SetLayoutTarget = 2103;
var historyitem_Layout_SetW = 2103;
var historyitem_Layout_SetWMode = 2104;
var historyitem_Layout_SetX = 2105;
var historyitem_Layout_SetXMode = 2105;
var historyitem_Layout_SetY = 2106;
var historyitem_Layout_SetYMode = 2107;
var historyitem_LegendEntry_SetDelete = 2108;
var historyitem_LegendEntry_SetIdx = 2109;
var historyitem_PivotFmt_SetDLbl = 2110;
var historyitem_PivotFmt_SetIdx = 2111;
var historyitem_PivotFmt_SetMarker = 2112;
var historyitem_PivotFmt_SetSpPr = 2113;
var historyitem_PivotFmt_SetTxPr = 2114;
var historyitem_DLbl_SetDelete = 2115;
var historyitem_DLbl_SetDLblPos = 2116;
var historyitem_DLbl_SetIdx = 2117;
var historyitem_DLbl_SetLayout = 2118;
var historyitem_DLbl_SetNumFmt = 2119;
var historyitem_DLbl_SetSeparator = 2120;
var historyitem_DLbl_SetShowBubbleSize = 2121;
var historyitem_DLbl_SetShowCatName = 2122;
var historyitem_DLbl_SetShowLegendKey = 2123;
var historyitem_DLbl_SetShowPercent = 2124;
var historyitem_DLbl_SetShowSerName = 2125;
var historyitem_DLbl_SetShowVal = 2126;
var historyitem_DLbl_SetSpPr = 2127;
var historyitem_DLbl_SetTx = 2128;
var historyitem_DLbl_SetTxPr = 2129;
var historyitem_Marker_SetSize = 2130;
var historyitem_Marker_SetSpPr = 2131;
var historyitem_Marker_SetSymbol = 2132;
var historyitem_PlotArea_SetChart = 2133;
var historyitem_PlotArea_SetCatAx = 2134;
var historyitem_PlotArea_SetDateAx = 2135;
var historyitem_PlotArea_SetDTable = 2136;
var historyitem_PlotArea_SetLayout = 2137;
var historyitem_PlotArea_SetSerAx = 2138;
var historyitem_PlotArea_SetSpPr = 2139;
var historyitem_PlotArea_SetValAx = 2140;
var historyitem_Axis_SetType = 2141;
var historyitem_Axis_SetAuto = 2142;
var historyitem_Axis_SetAxId = 2143;
var historyitem_Axis_SetAxPos = 2144;
var historyitem_Axis_SetBaseTimeUnit = 2145;
var historyitem_Axis_SetCrossAx = 2146;
var historyitem_Axis_SetCrossBetween = 2147;
var historyitem_Axis_SetCrosses = 2148;
var historyitem_Axis_SetCrossesAt = 2149;
var historyitem_Axis_SetDelete = 2150;
var historyitem_Axis_SetDispUnits = 2151;
var historyitem_Axis_SetLblAlgn = 2152;
var historyitem_Axis_SetLblOffset = 2153;
var historyitem_Axis_SetMajorGridlines = 2154;
var historyitem_Axis_SetMajorTickMark = 2155;
var historyitem_Axis_SetMajorTimeUnit = 2156;
var historyitem_Axis_SetMajorUnit = 2157;
var historyitem_Axis_SetMiniGridlines = 2158;
var historyitem_Axis_SetMiniTickMark = 2159;
var historyitem_Axis_SetMinorTimeUnit = 2160;
var historyitem_Axis_SetMinorUnit = 2161;
var historyitem_Axis_SetNoMultiLvlLbl = 2162;
var historyitem_Axis_SetNumFmt = 2163;
var historyitem_Axis_SetScaling = 2164;
var historyitem_Axis_SetSpPr = 2165;
var historyitem_Axis_SetTickLblPos = 2166;
var historyitem_Axis_SetTickLblSkip = 2167;
var historyitem_Axis_SetTickMarkSkip = 2168;
var historyitem_Axis_SetTitle = 2169;
var historyitem_Axis_SetTxPr = 2170;
var historyitem_NumFmt_SetFormatCode = 2171;
var historyitem_NumFmt_SetSourceLinked = 2172;
var historyitem_Scaling_SetLogBase = 2173;
var historyitem_Scaling_SetMax = 2174;
var historyitem_Scaling_SetMin = 2175;
var historyitem_Scaling_SetOrientation = 2176;
var historyitem_DTable_SetShowHorzBorder = 2177;
var historyitem_DTable_SetShowKeys = 2178;
var historyitem_DTable_SetShowOutline = 2179;
var historyitem_DTable_SetShowVertBorder = 2180;
var historyitem_DTable_SetSpPr = 2181;
var historyitem_DTable_SetTxPr = 2182;
var historyitem_LineChart_AddAxId = 2183;
var historyitem_LineChart_SetDLbls = 2184;
var historyitem_LineChart_SetDropLines = 2185;
var historyitem_LineChart_SetGrouping = 2186;
var historyitem_LineChart_SetHiLowLines = 2187;
var historyitem_LineChart_SetMarker = 2188;
var historyitem_LineChart_AddSer = 2189;
var historyitem_LineChart_SetSmooth = 2190;
var historyitem_LineChart_SetUpDownBars = 2191;
var historyitem_LineChart_SetVaryColors = 2192;
var historyitem_DLbls_SetDelete = 2193;
var historyitem_DLbls_SetDLbl = 2194;
var historyitem_DLbls_SetDLblPos = 2195;
var historyitem_DLbls_SetLeaderLines = 2196;
var historyitem_DLbls_SetNumFmt = 2197;
var historyitem_DLbls_SetSeparator = 2198;
var historyitem_DLbls_SetShowBubbleSize = 2199;
var historyitem_DLbls_SetShowCatName = 2200;
var historyitem_DLbls_SetShowLeaderLines = 2201;
var historyitem_DLbls_SetShowLegendKey = 2202;
var historyitem_DLbls_SetShowPercent = 2203;
var historyitem_DLbls_SetShowSerName = 2204;
var historyitem_DLbls_SetShowVal = 2205;
var historyitem_DLbls_SetSpPr = 2206;
var historyitem_DLbls_SetTxPr = 2207;
var historyitem_UpDownBars_SetDownBars = 2208;
var historyitem_UpDownBars_SetGapWidth = 2209;
var historyitem_UpDownBars_SetUpBars = 2210;
var historyitem_BarChart_SetAxId = 2211;
var historyitem_BarChart_SetBarDir = 2212;
var historyitem_BarChart_SetDLbls = 2213;
var historyitem_BarChart_SetGapWidth = 2214;
var historyitem_BarChart_SetGrouping = 2215;
var historyitem_BarChart_SetOverlap = 2216;
var historyitem_BarChart_AddSer = 2217;
var historyitem_BarChart_SetSerLines = 2218;
var historyitem_BarChart_SetVaryColors = 2219;
var historyitem_BubbleChart_SetAxId = 2220;
var historyitem_BubbleChart_SetBubble3D = 2221;
var historyitem_BubbleChart_SetBubbleScale = 2222;
var historyitem_BubbleChart_SetDLbls = 2223;
var historyitem_BubbleChart_AddSerie = 2224;
var historyitem_BubbleChart_SetShowNegBubbles = 2225;
var historyitem_BubbleChart_SetSizeRepresents = 2226;
var historyitem_BubbleChart_SetVaryColors = 2227;
var historyitem_DoughnutChart_SetDLbls = 2228;
var historyitem_DoughnutChart_SetFirstSliceAng = 2229;
var historyitem_DoughnutChart_SetHoleSize = 2230;
var historyitem_DoughnutChart_AddSer = 2231;
var historyitem_DoughnutChart_SetVaryColor = 2232;
var historyitem_OfPieChart_AddCustSplit = 2233;
var historyitem_OfPieChart_SetDLbls = 2234;
var historyitem_OfPieChart_SetGapWidth = 2235;
var historyitem_OfPieChart_SetOfPieType = 2236;
var historyitem_OfPieChart_SetSecondPieSize = 2237;
var historyitem_OfPieChart_AddSer = 2238;
var historyitem_OfPieChart_SetSerLines = 2239;
var historyitem_OfPieChart_SetSplitPos = 2240;
var historyitem_OfPieChart_SetSplitType = 2241;
var historyitem_OfPieChart_SetVaryColors = 2242;
var historyitem_PieChart_SetDLbls = 2243;
var historyitem_PieChart_SetFirstSliceAng = 2244;
var historyitem_PieChart_AddSer = 2245;
var historyitem_PieChart_SetVaryColors = 2246;
var historyitem_RadarChart_SetAxId = 2247;
var historyitem_RadarChart_SetDLbls = 2248;
var historyitem_RadarChart_SetRadarStyle = 2249;
var historyitem_RadarChart_AddSer = 2250;
var historyitem_RadarChart_SetVaryColors = 2251;
var historyitem_ScatterChart_SetAxId = 2247;
var historyitem_ScatterChart_SetDLbls = 2248;
var historyitem_ScatterChart_SetScatterStyle = 2249;
var historyitem_ScatterChart_AddSer = 2250;
var historyitem_ScatterChart_SetVaryColors = 2251;
var historyitem_StockChart_SetAxId = 2252;
var historyitem_StockChart_SetDLbls = 2253;
var historyitem_StockChart_SetDropLines = 2254;
var historyitem_StockChart_SetHiLowLines = 2255;
var historyitem_StockChart_AddSer = 2256;
var historyitem_StockChart_SetUpDownBars = 2257;
var historyitem_SurfaceChart_SetAxId = 2258;
var historyitem_SurfaceChart_AddBandFmt = 2259;
var historyitem_SurfaceChart_AddSer = 2260;
var historyitem_SurfaceChart_SetWireframe = 2261;
var historyitem_BandFmt_SetIdx = 2262;
var historyitem_BandFmt_SetSpPr = 2263;
var historyitem_AreaChart_SetAxId = 2264;
var historyitem_AreaChart_SetDLbls = 2265;
var historyitem_AreaChart_SetDropLines = 2266;
var historyitem_AreaChart_SetGrouping = 2267;
var historyitem_AreaChart_AddSer = 2268;
var historyitem_AreaChart_SetVaryColors = 2269;
var historyitem_ScatterSer_SetDLbls = 2270;
var historyitem_ScatterSer_SetDPt = 2271;
var historyitem_ScatterSer_SetErrBars = 2272;
var historyitem_ScatterSer_SetIdx = 2273;
var historyitem_ScatterSer_SetMarker = 2274;
var historyitem_ScatterSer_SetOrder = 2275;
var historyitem_ScatterSer_SetSmooth = 2276;
var historyitem_ScatterSer_SetSpPr = 2277;
var historyitem_ScatterSer_SetTrendline = 2278;
var historyitem_ScatterSer_SetTx = 2279;
var historyitem_ScatterSer_SetXVal = 2280;
var historyitem_ScatterSer_SetYVal = 2281;
var historyitem_DPt_SetBubble3D = 2282;
var historyitem_DPt_SetExplosion = 2283;
var historyitem_DPt_SetIdx = 2284;
var historyitem_DPt_SetInvertIfNegative = 2285;
var historyitem_DPt_SetMarker = 2286;
var historyitem_DPt_SetPictureOptions = 2287;
var historyitem_DPt_SetSpPr = 2288;
var historyitem_ErrBars_SetErrBarType = 2289;
var historyitem_ErrBars_SetErrDir = 2290;
var historyitem_ErrBars_SetErrValType = 2291;
var historyitem_ErrBars_SetMinus = 2292;
var historyitem_ErrBars_SetNoEndCap = 2293;
var historyitem_ErrBars_SetPlus = 2294;
var historyitem_ErrBars_SetSpPr = 2295;
var historyitem_ErrBars_SetVal = 2296;
var historyitem_MinusPlus_SetnNumLit = 2297;
var historyitem_MinusPlus_SetnNumRef = 2298;
var historyitem_NumLit_SetFormatCode = 2299;
var historyitem_NumLit_SetPt = 2300;
var historyitem_NumLit_SetPtCount = 2301;
var historyitem_NumericPoint_SetFormatCode = 2302;
var historyitem_NumericPoint_SetIdx = 2303;
var historyitem_NumericPoint_SetVal = 2304;
var historyitem_NumRef_SetF = 2305;
var historyitem_NumRef_SetNumCache = 2306;
var historyitem_Trendline_SetBackward = 2307;
var historyitem_Trendline_SetDispEq = 2308;
var historyitem_Trendline_SetDispRSqr = 2309;
var historyitem_Trendline_SetForward = 2310;
var historyitem_Trendline_SetIntercept = 2311;
var historyitem_Trendline_SetName = 2312;
var historyitem_Trendline_SetOrder = 2313;
var historyitem_Trendline_SetPeriod = 2314;
var historyitem_Trendline_SetSpPr = 2315;
var historyitem_Trendline_SetTrendlineLbl = 2316;
var historyitem_Trendline_SetTrendlineType = 2317;
var historyitem_Tx_SetStrRef = 2318;
var historyitem_Tx_SetVal = 2319;
var historyitem_StrRef_SetF = 2319;
var historyitem_StrRef_SetStrCache = 2320;
var historyitem_StrCache_SetPt = 2321;
var historyitem_StrCache_SetPtCount = 2322;
var historyitem_StrPoint_SetIdx = 2323;
var historyitem_StrPoint_SetVal = 2324;
var historyitem_XVal_SetMultiLvlStrRef = 2325;
var historyitem_XVal_SetNumLit = 2326;
var historyitem_XVal_SetNumRef = 2327;
var historyitem_XVal_SetStrLit = 2328;
var historyitem_XVal_SetStrRef = 2329;
var historyitem_MultiLvlStrRef_SetF = 2330;
var historyitem_MultiLvlStrRef_SetMultiLvlStrCache = 2331;
var historyitem_MultiLvlStrCache_SetLvl = 2332;
var historyitem_MultiLvlStrCache_SetPtCount = 2333;
var historyitem_StringLiteral_SetPt = 2334;
var historyitem_StringLiteral_SetPtCount = 2335;
var historyitem_YVal_SetNumLit = 2336;
var historyitem_YVal_SetNumRef = 2337;
var historyitem_AreaSeries_SetCat = 2338;
var historyitem_AreaSeries_SetDLbls = 2339;
var historyitem_AreaSeries_SetDPt = 2340;
var historyitem_AreaSeries_SetErrBars = 2341;
var historyitem_AreaSeries_SetIdx = 2342;
var historyitem_AreaSeries_SetOrder = 2343;
var historyitem_AreaSeries_SetPictureOptions = 2344;
var historyitem_AreaSeries_SetSpPr = 2345;
var historyitem_AreaSeries_SetTrendline = 2346;
var historyitem_Cat_SetMultiLvlStrRef = 2347;
var historyitem_Cat_SetNumLit = 2348;
var historyitem_Cat_SetNumRef = 2349;
var historyitem_Cat_SetStrLit = 2350;
var historyitem_Cat_SetStrRef = 2351;
var historyitem_PictureOptions_SetApplyToEnd = 2352;
var historyitem_PictureOptions_SetApplyToFront = 2353;
var historyitem_PictureOptions_SetApplyToSides = 2354;
var historyitem_PictureOptions_SetPictureFormat = 2355;
var historyitem_PictureOptions_SetPictureStackUnit = 2356;
var historyitem_RadarSeries_SetCat = 2357;
var historyitem_RadarSeries_SetDLbls = 2357;
var historyitem_RadarSeries_SetDPt = 2358;
var historyitem_RadarSeries_SetIdx = 2359;
var historyitem_RadarSeries_SetMarker = 2360;
var historyitem_RadarSeries_SetOrder = 2361;
var historyitem_RadarSeries_SetSpPr = 2362;
var historyitem_RadarSeries_SetTx = 2363;
var historyitem_RadarSeries_SetVal = 2364;
var historyitem_BarSeries_SetCat = 2365;
var historyitem_BarSeries_SetDLbls = 2366;
var historyitem_BarSeries_SetDPt = 2367;
var historyitem_BarSeries_SetErrBars = 2368;
var historyitem_BarSeries_SetIdx = 2369;
var historyitem_BarSeries_SetInvertIfNegative = 2370;
var historyitem_BarSeries_SetOrder = 2371;
var historyitem_BarSeries_SetPictureOptions = 2372;
var historyitem_BarSeries_SetShape = 2373;
var historyitem_BarSeries_SetSpPr = 2374;
var historyitem_BarSeries_SetTrendline = 2375;
var historyitem_BarSeries_SetTx = 2376;
var historyitem_BarSeries_SetVal = 2377;
var historyitem_LineSeries_SetCat = 2378;
var historyitem_LineSeries_SetDLbls = 2379;
var historyitem_LineSeries_SetDPt = 2380;
var historyitem_LineSeries_SetErrBars = 2381;
var historyitem_LineSeries_SetIdx = 2382;
var historyitem_LineSeries_SetMarker = 2383;
var historyitem_LineSeries_SetOrder = 2384;
var historyitem_LineSeries_SetSmooth = 2385;
var historyitem_LineSeries_SetSpPr = 2386;
var historyitem_LineSeries_SetTrendline = 2387;
var historyitem_LineSeries_SetTx = 2388;
var historyitem_LineSeries_SetVal = 2389;
var historyitem_PieSeries_SetCat = 2390;
var historyitem_PieSeries_SetDLbls = 2391;
var historyitem_PieSeries_SetDPt = 2392;
var historyitem_PieSeries_SetExplosion = 2393;
var historyitem_PieSeries_SetIdx = 2394;
var historyitem_PieSeries_SetOrder = 2395;
var historyitem_PieSeries_SetSpPr = 2396;
var historyitem_PieSeries_SetTx = 2397;
var historyitem_PieSeries_SetVal = 2398;
var historyitem_SurfaceSeries_SetCat = 2399;
var historyitem_SurfaceSeries_SetIdx = 2400;
var historyitem_SurfaceSeries_SetOrder = 2401;
var historyitem_SurfaceSeries_SetSpPr = 2402;
var historyitem_SurfaceSeries_SetTx = 2403;
var historyitem_SurfaceSeries_SetVal = 2404;
var historyitem_BubbleSeries_SetBubble3D = 2405;
var historyitem_BubbleSeries_SetBubbleSize = 2406;
var historyitem_BubbleSeries_SetDLbls = 2407;
var historyitem_BubbleSeries_SetDPt = 2408;
var historyitem_BubbleSeries_SetErrBars = 2409;
var historyitem_BubbleSeries_SetIdx = 2410;
var historyitem_BubbleSeries_SetInvertIfNegative = 2411;
var historyitem_BubbleSeries_SetOrder = 2412;
var historyitem_BubbleSeries_SetSpPr = 2413;
var historyitem_BubbleSeries_SetTrendline = 2414;
var historyitem_BubbleSeries_SetTx = 2415;
var historyitem_BubbleSeries_SetXVal = 2416;
var historyitem_BubbleSeries_SetYVal = 2417;
var historyitem_ExternalData_SetAutoUpdate = 2418;
var historyitem_ExternalData_SetId = 2419;
var historyitem_PivotSource_SetFmtId = 2420;
var historyitem_PivotSource_SetName = 2421;
var historyitem_Protection_SetChartObject = 2422;
var historyitem_Protection_SetData = 2423;
var historyitem_Protection_SetFormatting = 2424;
var historyitem_Protection_SetSelection = 2425;
var historyitem_Protection_SetUserInterface = 2426;
var historyitem_ChartWall_SetPictureOptions = 2427;
var historyitem_ChartWall_SetSpPr = 2428;
var historyitem_ChartWall_SetThickness = 2429;
var historyitem_View3d_SetDepthPercent = 2430;
var historyitem_View3d_SetHPercent = 2431;
var historyitem_View3d_SetPerspective = 2432;
var historyitem_View3d_SetRAngAx = 2433;
var historyitem_View3d_SetRotX = 2434;
var historyitem_View3d_SetRotY = 2435;
var historyitem_Title_SetLayout = 2436;
var historyitem_Title_SetOverlay = 2437;
var historyitem_Title_SetSpPr = 2438;
var historyitem_Title_SetTx = 2439;
var historyitem_Title_SetTxPr = 2440;
var historyitem_ChartText_SetRich = 2441;
var historyitem_ChartText_SetStrRef = 2442;
var historyitem_ShapeStyle_SetLnRef = 2443;
var historyitem_ShapeStyle_SetFillRef = 2444;
var historyitem_ShapeStyle_SetFontRef = 2445;
var historyitem_Xfrm_SetOffX = 2446;
var historyitem_Xfrm_SetOffY = 2447;
var historyitem_Xfrm_SetExtX = 2448;
var historyitem_Xfrm_SetExtY = 2449;
var historyitem_Xfrm_SetChOffX = 2450;
var historyitem_Xfrm_SetChOffY = 2451;
var historyitem_Xfrm_SetChExtX = 2452;
var historyitem_Xfrm_SetChExtY = 2453;
var historyitem_Xfrm_SetFlipH = 2454;
var historyitem_Xfrm_SetFlipV = 2455;
var historyitem_Xfrm_SetRot = 2456;
var historyitem_SpPr_SetBwMode = 2457;
var historyitem_SpPr_SetXfrm = 2458;
var historyitem_SpPr_SetGeometry = 2459;
var historyitem_SpPr_SetFill = 2460;
var historyitem_SpPr_SetLn = 2461;
var historyitem_ClrScheme_SetClr = 2462;
var historyitem_ClrScheme_SetName = 2463;
var historyitem_ClrMap_SetClr = 2464;
var historyitem_ExtraClrScheme_SetClrScheme = 2465;
var historyitem_ExtraClrScheme_SetClrMap = 2466;
var historyitem_FontCollection_SetLatin = 2467;
var historyitem_FontCollection_SetEA = 2468;
var historyitem_FontCollection_SetCS = 2469;
var historyitem_FontScheme_SetName = 2470;
var historyitem_FontScheme_SetMajorFont = 2471;
var historyitem_FontScheme_SetMinorFont = 2472;
var historyitem_FormatScheme_SetName = 2473;
var historyitem_FormatScheme_AddFillToStyleLst = 2474;
var historyitem_FormatScheme_AddLnToStyleLst = 2475;
var historyitem_FormatScheme_AddEffectToStyleLst = 2476;
var historyitem_FormatScheme_AddBgFillToStyleLst = 2477;
var historyitem_ThemeElements_SetClrScheme = 2478;
var historyitem_ThemeElements_SetFontScheme = 2479;
var historyitem_ThemeElements_SetFmtScheme = 2480;
var historyitem_HF_SetDt = 2481;
var historyitem_HF_SetFtr = 2482;
var historyitem_HF_SetHdr = 2483;
var historyitem_HF_SetSldNum = 2484;
var historyitem_BgPr_SetFill = 2485;
var historyitem_BgPr_SetShadeToTitle = 2486;
var historyitem_BgSetBwMode = 2487;
var historyitem_BgSetBgPr = 2488;
var historyitem_BgSetBgRef = 2489;
var historyitem_PrintSettingsSetHeaderFooter = 2490;
var historyitem_PrintSettingsSetPageMargins = 2491;
var historyitem_PrintSettingsSetPageSetup = 2492;
var historyitem_HeaderFooterChartSetAlignWithMargins = 2493;
var historyitem_HeaderFooterChartSetDifferentFirst = 2494;
var historyitem_HeaderFooterChartSetDifferentOddEven = 2495;
var historyitem_HeaderFooterChartSetEvenFooter = 2496;
var historyitem_HeaderFooterChartSetEvenHeader = 2497;
var historyitem_HeaderFooterChartSetFirstFooter = 2498;
var historyitem_HeaderFooterChartSetFirstHeader = 2499;
var historyitem_HeaderFooterChartSetOddFooter = 2500;
var historyitem_HeaderFooterChartSetOddHeader = 2501;
var historyitem_PageMarginsSetB = 2502;
var historyitem_PageMarginsSetFooter = 2503;
var historyitem_PageMarginsSetHeader = 2504;
var historyitem_PageMarginsSetL = 2505;
var historyitem_PageMarginsSetR = 2506;
var historyitem_PageMarginsSetT = 2507;
var historyitem_PageSetupSetBlackAndWhite = 2508;
var historyitem_PageSetupSetCopies = 2509;
var historyitem_PageSetupSetDraft = 2510;
var historyitem_PageSetupSetFirstPageNumber = 2511;
var historyitem_PageSetupSetHorizontalDpi = 2512;
var historyitem_PageSetupSetOrientation = 2513;
var historyitem_PageSetupSetPaperHeight = 2514;
var historyitem_PageSetupSetPaperSize = 2515;
var historyitem_PageSetupSetPaperWidth = 2516;
var historyitem_PageSetupSetUseFirstPageNumb = 2517;
var historyitem_PageSetupSetVerticalDpi = 2518;
var historyitem_type_ColorMod = 1001;
var historyitem_type_ColorModifiers = 1002;
var historyitem_type_SysColor = 1003;
var historyitem_type_PrstColor = 1004;
var historyitem_type_RGBColor = 1005;
var historyitem_type_SchemeColor = 1006;
var historyitem_type_UniColor = 1007;
var historyitem_type_SrcRect = 1008;
var historyitem_type_BlipFill = 1009;
var historyitem_type_SolidFill = 1010;
var historyitem_type_Gs = 1011;
var historyitem_type_GradLin = 1012;
var historyitem_type_GradPath = 1013;
var historyitem_type_GradFill = 1014;
var historyitem_type_PathFill = 1015;
var historyitem_type_NoFill = 1016;
var historyitem_type_UniFill = 1017;
var historyitem_type_EndArrow = 1018;
var historyitem_type_LineJoin = 1019;
var historyitem_type_Ln = 1020;
var historyitem_type_DefaultShapeDefinition = 1021;
var historyitem_type_CNvPr = 1022;
var historyitem_type_NvPr = 1023;
var historyitem_type_Ph = 1024;
var historyitem_type_UniNvPr = 1025;
var historyitem_type_StyleRef = 1026;
var historyitem_type_FontRef = 1027;
var historyitem_type_Chart = 1028;
var historyitem_type_ChartSpace = 1029;
var historyitem_type_Legend = 1030;
var historyitem_type_Layout = 1031;
var historyitem_type_LegendEntry = 1032;
var historyitem_type_PivotFmt = 1033;
var historyitem_type_DLbl = 1034;
var historyitem_type_Marker = 1035;
var historyitem_type_PlotArea = 1036;
var historyitem_type_Axis = 1037;
var historyitem_type_NumFmt = 1038;
var historyitem_type_Scaling = 1039;
var historyitem_type_DTable = 1040;
var historyitem_type_LineChart = 1041;
var historyitem_type_DLbls = 1042;
var historyitem_type_UpDownBars = 1043;
var historyitem_type_BarChart = 1044;
var historyitem_type_BubbleChart = 1045;
var historyitem_type_DoughnutChart = 1046;
var historyitem_type_OfPieChart = 1047;
var historyitem_type_PieChart = 1048;
var historyitem_type_RadarChart = 1049;
var historyitem_type_ScatterChart = 1050;
var historyitem_type_StockChart = 1051;
var historyitem_type_SurfaceChart = 1052;
var historyitem_type_BandFmt = 1053;
var historyitem_type_AreaChart = 1054;
var historyitem_type_ScatterSer = 1055;
var historyitem_type_DPt = 1056;
var historyitem_type_ErrBars = 1057;
var historyitem_type_MinusPlus = 1058;
var historyitem_type_NumLit = 1059;
var historyitem_type_NumericPoint = 1060;
var historyitem_type_NumRef = 1061;
var historyitem_type_TrendLine = 1062;
var historyitem_type_Tx = 1063;
var historyitem_type_StrRef = 1064;
var historyitem_type_StrCache = 1065;
var historyitem_type_StrPoint = 1066;
var historyitem_type_XVal = 1067;
var historyitem_type_MultiLvlStrRef = 1068;
var historyitem_type_MultiLvlStrCache = 1068;
var historyitem_type_StringLiteral= 1069;
var historyitem_type_YVal = 1070;
var historyitem_type_AreaSeries = 1071;
var historyitem_type_Cat = 1072;
var historyitem_type_PictureOptions = 1073;
var historyitem_type_RadarSeries = 1074;
var historyitem_type_BarSeries = 1074;
var historyitem_type_LineSeries = 1075;
var historyitem_type_PieSeries = 1076;
var historyitem_type_SurfaceSeries = 1077;
var historyitem_type_BubbleSeries = 1078;
var historyitem_type_ExternalData = 1080;
var historyitem_type_PivotSource = 1081;
var historyitem_type_Protection = 1082;
var historyitem_type_ChartWall = 1083;
var historyitem_type_View3d = 1084;
var historyitem_type_ChartText = 1085;
var historyitem_type_ShapeStyle = 1086;
var historyitem_type_Xfrm = 1087;
var historyitem_type_SpPr = 1088;
var historyitem_type_ClrScheme = 1089;
var historyitem_type_ClrMap = 1090;
var historyitem_type_ExtraClrScheme = 1091;
var historyitem_type_FontCollection = 1092;
var historyitem_type_FontScheme = 1093;
var historyitem_type_FormatScheme = 1094;
var historyitem_type_ThemeElements = 1095;
var historyitem_type_HF = 1096;
var historyitem_type_BgPr = 1097;
var historyitem_type_Bg = 1098;
var historyitem_type_PrintSettings = 1099;
var historyitem_type_HeaderFooterChart = 1100;
var historyitem_type_PageMarginsChart = 1101;
var historyitem_type_PageSetup = 1102;
var DLBL_POS_B = 0;
var DLBL_POS_BEST_FIT = 1;
var DLBL_POS_CTR = 2;
var DLBL_POS_IN_BASE = 3;
var DLBL_POS_IN_END = 4;
var DLBL_POS_L = 5;
var DLBL_POS_OUT_END = 6;
var DLBL_POS_R = 7;
var DLBL_POS_T = 8;
function CDLbl()
{
this.delete = null;
this.dLblPos = null;
this.idx = null;
this.layout = null;
this.numFmt = null;
this.separator = null;
this.showBubbleSize = null;
this.showCatName = null;
this.showLegendKey = null;
this.showPercent = null;
this.showSerName = null;
this.showVal = null;
this.spPr = null;
this.tx = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CDLbl.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_DLbl;
},
Write_ToBinary2: function(w)
{
w.Write_ToBinary2(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setDelete: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetDelete, oldPr: this.delete , newPr: pr});
this.delete = pr;
},
setDLblPos: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetDLblPos, oldPr: this.dLblPos , newPr: pr});
this.dLblPos = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetIdx, oldPr: this.idx , newPr: pr});
this.idx = pr;
},
setLayout: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetLayout, oldPr: this.layout , newPr: pr});
this.layout = pr;
},
setNumFmt: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetNumFmt, oldPr: this.numFmt , newPr: pr});
this.numFmt = pr;
},
setSeparator: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetSeparator, oldPr: this.separator , newPr: pr});
this.separator = pr;
},
setShowBubbleSize: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetShowBubbleSize, oldPr: this.showBubbleSize , newPr: pr});
this.showBubbleSize = pr;
},
setShowCatName: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetShowCatName, oldPr: this.showCatName , newPr: pr});
this.showCatName = pr;
},
setShowLegendKey: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetShowLegendKey, oldPr: this.showLegendKey , newPr: pr});
this.showLegendKey = pr;
},
setShowPercent: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetShowPercent, oldPr: this.showPercent , newPr: pr});
this.showPercent = pr;
},
setShowSerName: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetShowSerName, oldPr: this.showSerName , newPr: pr});
this.showSerName = pr;
},
setShowVal: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetShowVal, oldPr: this.showVal , newPr: pr});
this.showVal = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetSpPr, oldPr: this.spPr , newPr: pr});
this.spPr = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetTx, oldPr: this.tx , newPr: pr});
this.tx = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_DLbl_SetTxPr, oldPr: this.txPr , newPr: pr});
this.txPr = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_DLbl_SetDelete:
{
this.delete = data.oldPr;
break;
}
case historyitem_DLbl_SetDLblPos:
{
this.dLblPos = data.oldPr;
break;
}
case historyitem_DLbl_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_DLbl_SetLayout:
{
this.layout = data.oldPr;
break;
}
case historyitem_DLbl_SetNumFmt:
{
this.numFmt = data.oldPr;
break;
}
case historyitem_DLbl_SetSeparator:
{
this.separator = data.oldPr;
break;
}
case historyitem_DLbl_SetShowBubbleSize:
{
this.showBubbleSize = data.oldPr;
break;
}
case historyitem_DLbl_SetShowCatName:
{
this.showCatName = data.oldPr;
break;
}
case historyitem_DLbl_SetShowLegendKey:
{
this.showLegendKey = data.oldPr;
break;
}
case historyitem_DLbl_SetShowPercent:
{
this.showPercent = data.oldPr;
break;
}
case historyitem_DLbl_SetShowSerName:
{
this.showSerName = data.oldPr;
break;
}
case historyitem_DLbl_SetShowVal:
{
this.showVal = data.oldPr;
break;
}
case historyitem_DLbl_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_DLbl_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_DLbl_SetTxPr:
{
this.txPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch(data.Type)
{
case historyitem_DLbl_SetDelete:
{
this.delete = data.newPr;
break;
}
case historyitem_DLbl_SetDLblPos:
{
this.dLblPos = data.newPr;
break;
}
case historyitem_DLbl_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_DLbl_SetLayout:
{
this.layout = data.newPr;
break;
}
case historyitem_DLbl_SetNumFmt:
{
this.numFmt = data.newPr;
break;
}
case historyitem_DLbl_SetSeparator:
{
this.separator = data.newPr;
break;
}
case historyitem_DLbl_SetShowBubbleSize:
{
this.showBubbleSize = data.newPr;
break;
}
case historyitem_DLbl_SetShowCatName:
{
this.showCatName = data.newPr;
break;
}
case historyitem_DLbl_SetShowLegendKey:
{
this.showLegendKey = data.newPr;
break;
}
case historyitem_DLbl_SetShowPercent:
{
this.showPercent = data.newPr;
break;
}
case historyitem_DLbl_SetShowSerName:
{
this.showSerName = data.newPr;
break;
}
case historyitem_DLbl_SetShowVal:
{
this.showVal = data.newPr;
break;
}
case historyitem_DLbl_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_DLbl_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_DLbl_SetTxPr:
{
this.txPr = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
switch(data.Type)
{
case historyitem_DLbl_SetDLblPos:
case historyitem_DLbl_SetIdx:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_DLbl_SetLayout:
case historyitem_DLbl_SetSpPr:
case historyitem_DLbl_SetTx:
case historyitem_DLbl_SetTxPr:
case historyitem_DLbl_SetNumFmt:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_DLbl_SetSeparator:
{
w.WriteBool(typeof data.newPr === "string");
if(typeof data.newPr === "string")
{
w.WriteString2(data.newPr);
}
break;
}
case historyitem_DLbl_SetDelete:
case historyitem_DLbl_SetShowBubbleSize:
case historyitem_DLbl_SetShowCatName:
case historyitem_DLbl_SetShowLegendKey:
case historyitem_DLbl_SetShowPercent:
case historyitem_DLbl_SetShowSerName:
case historyitem_DLbl_SetShowVal:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(isRealBool(data.newPr));
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch(type)
{
case historyitem_DLbl_SetDelete:
{
if(r.GetBool())
{
this.delete = r.GetBool();
}
else
{
this.delete = null;
}
break;
}
case historyitem_DLbl_SetDLblPos:
{
if(r.GetBool())
{
this.dLblPos = r.GetLong();
}
else
{
this.dLblPos = null;
}
break;
}
case historyitem_DLbl_SetIdx:
{
if(r.GetBool())
{
this.idx = r.GetLong();
}
else
{
this.idx = null;
}
break;
}
case historyitem_DLbl_SetLayout:
{
if(r.GetBool())
{
this.layout = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.layout = null;
}
break;
}
case historyitem_DLbl_SetNumFmt:
{
if(r.GetBool())
{
this.numFmt = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.numFmt = null;
}
break;
}
case historyitem_DLbl_SetSeparator:
{
if(r.GetBool())
{
this.separator = r.GetString2();
}
else
{
this.separator = null;
}
break;
}
case historyitem_DLbl_SetShowBubbleSize:
{
if(r.GetBool())
{
this.showBubbleSize = r.GetBool();
}
else
{
this.showBubbleSize = null;
}
break;
}
case historyitem_DLbl_SetShowCatName:
{
if(r.GetBool())
{
this.showCatName = r.GetBool();
}
else
{
this.showCatName = null;
}
break;
}
case historyitem_DLbl_SetShowLegendKey:
{
if(r.GetBool())
{
this.showLegendKey = r.GetBool();
}
else
{
this.showLegendKey = null;
}
break;
}
case historyitem_DLbl_SetShowPercent:
{
if(r.GetBool())
{
this.showPercent = r.GetBool();
}
else
{
this.showPercent = null;
}
break;
}
case historyitem_DLbl_SetShowSerName:
{
if(r.GetBool())
{
this.showSerName = r.GetBool();
}
else
{
this.showSerName = null;
}
break;
}
case historyitem_DLbl_SetShowVal:
{
if(r.GetBool())
{
this.showVal = r.GetBool();
}
else
{
this.showVal = null;
}
break;
}
case historyitem_DLbl_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
case historyitem_DLbl_SetTx:
{
if(r.GetBool())
{
this.tx = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.tx = null;
}
break;
}
case historyitem_DLbl_SetTxPr:
{
if(r.GetBool())
{
this.txPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.txPr = null;
}
break;
}
}
}
};
\ No newline at end of file
function CDLbls()
{
this.delete = null;
this.dLbl = null;
this.dLblPos = null;
this.leaderLines = null;
this.numFmt = null;
this.separator = null;
this.showBubbleSize = null;
this.showCatName = null;
this.showLeaderLines = null;
this.showLegendKey = null;
this.showPercent = null;
this.showSerName = null;
this.showVal = null;
this.spPr = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CDLbls.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_DLbls;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary: function(r)
{
this.Id = r.GetString2();
},
setDelete: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetDelete, oldPr: this.delete, newPr: pr});
this.delete = pr;
},
setDLbl: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetDLbl, oldPr: this.dLbl, newPr: pr});
this.dLbl = pr;
},
setDLblPos: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetDLblPos, oldPr: this.dLblPos, newPr: pr});
this.dLblPos = pr;
},
setLeaderLines: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetLeaderLines, oldPr: this.leaderLines, newPr: pr});
this.leaderLines = pr;
},
setNumFmt: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetNumFmt, oldPr: this.numFmt, newPr: pr});
this.numFmt = pr;
},
setSeparator: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetSeparator, oldPr: this.separator, newPr: pr});
this.separator = pr;
},
setShowBubbleSize: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetShowBubbleSize, oldPr: this.showBubbleSize, newPr: pr});
this.showBubbleSize = pr;
},
setShowCatName: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetShowCatName, oldPr: this.showCatName, newPr: pr});
this.showCatName = pr;
},
setShowLeaderLines: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetShowLeaderLines, oldPr: this.showLeaderLines, newPr: pr});
this.showLeaderLines = pr;
},
setShowLegendKey: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetShowLegendKey, oldPr: this.showLegendKey, newPr: pr});
this.showLegendKey = pr;
},
setShowPercent: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetShowPercent, oldPr: this.showPercent, newPr: pr});
this.showPercent = pr;
},
setShowSerName: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetShowSerName, oldPr: this.showSerName, newPr: pr});
this.showSerName = pr;
},
setShowVal: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetShowVal, oldPr: this.showVal, newPr: pr});
this.showVal = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_DLbls_SetTxPr, oldPr: this.txPr, newPr: pr});
this.txPr = pr;
},
Undo: function(data)
{},
Redo: function(data)
{},
Save_Changes: function(data, w)
{},
Load_Changes: function(r)
{}
};
\ No newline at end of file
function CDPt()
{
this.bubble3D = null;
this.explosion = null;
this.idx = null;
this.invertIfNegative = null;
this.marker = null;
this.pictureOptions = null;
this.spPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CDPt.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_DPt;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setBubble3D: function(pr)
{
History.Add(this, {Type: historyitem_DPt_SetBubble3D, oldPr: this.bubble3D, newPr: pr});
this.bubble3D = pr;
},
setExplosion: function(pr)
{
History.Add(this, {Type: historyitem_DPt_SetExplosion, oldPr: this.explosion, newPr: pr});
this.explosion = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_DPt_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setInvertIfNegative: function(pr)
{
History.Add(this, {Type: historyitem_DPt_SetInvertIfNegative, oldPr: this.invertIfNegative, newPr: pr});
this.invertIfNegative = pr;
},
setMarker: function(pr)
{
History.Add(this, {Type: historyitem_DPt_SetMarker, oldPr: this.marker, newPr: pr});
this.marker = pr;
},
setPictureOptions: function(pr)
{
History.Add(this, {Type: historyitem_DPt_SetPictureOptions, oldPr: this.pictureOptions, newPr: pr});
this.pictureOptions = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_DPt_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_DPt_SetBubble3D:
{
this.bubble3D = data.oldPr;
break;
}
case historyitem_DPt_SetExplosion:
{
this.explosion = data.oldPr;
break;
}
case historyitem_DPt_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_DPt_SetInvertIfNegative:
{
this.invertIfNegative = data.oldPr;
break;
}
case historyitem_DPt_SetMarker:
{
this.marker = data.oldPr;
break;
}
case historyitem_DPt_SetPictureOptions:
{
this.pictureOptions = data.oldPr;
break;
}
case historyitem_DPt_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_DPt_SetBubble3D:
{
this.bubble3D = data.newPr;
break;
}
case historyitem_DPt_SetExplosion:
{
this.explosion = data.newPr;
break;
}
case historyitem_DPt_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_DPt_SetInvertIfNegative:
{
this.invertIfNegative = data.newPr;
break;
}
case historyitem_DPt_SetMarker:
{
this.marker = data.newPr;
break;
}
case historyitem_DPt_SetPictureOptions:
{
this.pictureOptions = data.newPr;
break;
}
case historyitem_DPt_SetSpPr:
{
this.spPr = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_DPt_SetBubble3D:
case historyitem_DPt_SetInvertIfNegative:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
case historyitem_DPt_SetExplosion:
case historyitem_DPt_SetIdx:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_DPt_SetMarker:
case historyitem_DPt_SetPictureOptions:
case historyitem_DPt_SetSpPr:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_DPt_SetBubble3D:
{
if(r.GetBool())
{
this.bubble3D = r.GetBool();
}
else
{
this.bubble3D = null;
}
break;
}
case historyitem_DPt_SetExplosion:
{
if(r.GetBool())
{
this.explosion = r.GetLong();
}
else
{
this.explosion = null;
}
break;
}
case historyitem_DPt_SetIdx:
{
if(r.GetBool())
{
this.idx = r.GetLong();
}
else
{
this.idx = null;
}
break;
}
case historyitem_DPt_SetInvertIfNegative:
{
if(r.GetBool())
{
this.invertIfNegative = r.GetBool();
}
else
{
this.invertIfNegative = null;
}
break;
}
case historyitem_DPt_SetMarker:
{
if(r.GetBool())
{
this.marker = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.marker = null;
}
break;
}
case historyitem_DPt_SetPictureOptions:
{
if(r.GetBool())
{
this.pictureOptions = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.pictureOptions = null;
}
break;
}
case historyitem_DPt_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
}
}
};
\ No newline at end of file
function CDTable()
{
this.showHorzBorder = null;
this.showKeys = null;
this.showOutline = null;
this.showVertBorder = null;
this.spPr = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CDTable.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_DTable;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary: function(r)
{
this.Id = r.GetString2();
},
setShowHorzBorder: function(pr)
{
History.Add(this, {Type: historyitem_DTable_SetShowHorzBorder, oldPr: this.showHorzBorder, newPr: pr});
this.showHorzBorder = pr;
},
setShowKeys: function(pr)
{
History.Add(this, {Type: historyitem_DTable_SetShowKeys, oldPr: this.showHorzBorder, newPr: pr});
this.showKeys = pr;
},
setShowOutline: function(pr)
{
History.Add(this, {Type: historyitem_DTable_SetShowOutline, oldPr: this.showHorzBorder, newPr: pr});
this.showOutline = pr;
},
setShowVertBorder: function(pr)
{
History.Add(this, {Type: historyitem_DTable_SetShowVertBorder, oldPr: this.showHorzBorder, newPr: pr});
this.showVertBorder = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_DTable_SetSpPr, oldPr: this.showHorzBorder, newPr: pr});
this.spPr = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_DTable_SetTxPr, oldPr: this.showHorzBorder, newPr: pr});
this.txPr = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_DTable_SetShowHorzBorder:
{
this.showHorzBorder = data.oldPr;
break;
}
case historyitem_DTable_SetShowKeys:
{
this.showKeys = data.oldPr;
break;
}
case historyitem_DTable_SetShowOutline:
{
this.showOutline = data.oldPr;
break;
}
case historyitem_DTable_SetShowVertBorder:
{
this.showVertBorder = data.oldPr;
break;
}
case historyitem_DTable_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_DTable_SetTxPr:
{
this.txPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_DTable_SetShowHorzBorder:
{
this.showHorzBorder = data.newPr;
break;
}
case historyitem_DTable_SetShowKeys:
{
this.showKeys = data.newPr;
break;
}
case historyitem_DTable_SetShowOutline:
{
this.showOutline = data.newPr;
break;
}
case historyitem_DTable_SetShowVertBorder:
{
this.showVertBorder = data.newPr;
break;
}
case historyitem_DTable_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_DTable_SetTxPr:
{
this.txPr = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_DTable_SetShowHorzBorder:
case historyitem_DTable_SetShowKeys:
case historyitem_DTable_SetShowOutline:
case historyitem_DTable_SetShowVertBorder:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
case historyitem_DTable_SetSpPr:
case historyitem_DTable_SetTxPr:
{
this.spPr = data.newPr;
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_DTable_SetShowHorzBorder:
{
if(r.GetBool())
{
this.showHorzBorder = r.GetBool();
}
else
{
this.showHorzBorder = null;
}
break;
}
case historyitem_DTable_SetShowKeys:
{
if(r.GetBool())
{
this.showKeys = r.GetBool();
}
else
{
this.showKeys = null;
}
break;
}
case historyitem_DTable_SetShowOutline:
{
if(r.GetBool())
{
this.showOutline = r.GetBool();
}
else
{
this.showOutline = null;
}
break;
}
case historyitem_DTable_SetShowVertBorder:
{
if(r.GetBool())
{
this.showVertBorder = r.GetBool();
}
else
{
this.showVertBorder = null;
}
break;
}
case historyitem_DTable_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
case historyitem_DTable_SetTxPr:
{
if(r.GetBool())
{
this.txPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.txPr = null;
}
break;
}
}
}
};
\ No newline at end of file
function CDateAx()
{
this.auto = null;
this.axId = null;
this.axPos = null;
this.baseTimeUnit = null;
this.crossAx = null;
this.crosses = null;
this.crossesAt = null;
this.bDelete = null;
this.lblOffset = null;
this.majorGridlines = null;
this.majorTickMark = null;
this.majorTimeUnit = null;
this.majorUnit = null;
this.minorGridlines = null;
this.minorTickMark = null;
this.minorTimeUnit = null;
this.minorUnit = null;
this.numFmt = null;
this.scaling = null;
this.spPr = null;
this.tickLblPos = null;
this.title = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CDateAx.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_DateAx;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setAuto: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetAuto, oldPr: this.auto, newPr: pr});
this.auto = pr;
},
setAxId : function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetAxId, oldPr: this.axId, newPr: pr});
this.axId = pr;
},
setAxPos: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetAxPos, oldPr: this.axPos, newPr: pr});
this.axPos = pr;
},
setCrossAx: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetCrossAx, oldPr: this.crossAx, newPr: pr});
this.crossAx = pr;
},
setCrosses: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetCrosses, oldPr: this.crosses, newPr: pr});
this.crosses = pr;
},
setCrossesAt: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetCrossesAt, oldPr: this.crossesAt, newPr: pr});
this.crossesAt = pr;
},
setDelete: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetDelete, oldPr: this.bDelete, newPr: pr});
this.bDelete = pr;
},
setLblAlgn: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetLblAlgn, oldPr: this.lblAlgn, newPr: pr});
this.lblAlgn = pr;
},
setLblOffset: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetLblOffset, oldPr: this.lblOffset, newPr: pr});
this.lblOffset = pr;
},
setMajorGridlines: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetMajorGridlines, oldPr: this.majorGridlines, newPr: pr});
this.majorGridlines = pr;
},
setMajorTickMark: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetMajorTickMark, oldPr: this.majorTickMark, newPr: pr});
this.majorTickMark = pr;
},
setMinorGridlines: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetMiniGridlines, oldPr: this.minorGridlines, newPr: pr});
this.minorGridlines = pr;
},
setMinorTickMark: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetMiniTickMark, oldPr: this.minorTickMark, newPr: pr});
this.minorTickMark = pr;
},
setNoMultiLvlLbl: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetNoMultiLvlLbl, oldPr: this.noMultiLvlLbl, newPr: pr});
this.noMultiLvlLbl = pr;
},
setNumFmt: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetNumFmt, oldPr: this.numFmt, newPr: pr});
this.numFmt = pr;
},
setScaling: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetScaling, oldPr: this.scaling, newPr: pr});
this.scaling = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTickLblPos: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetTickLblPos, oldPr: this.tickLblPos, newPr: pr});
this.tickLblPos = pr;
},
setTickLblSkip: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetTickLblSkip, oldPr: this.tickLblSkip, newPr: pr});
this.tickLblSkip = pr;
},
setTickMarkSkip: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetTickMarkSkip, oldPr: this.tickMarkSkip, newPr: pr});
this.tickMarkSkip = pr;
},
setTitle: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetTitle, oldPr: this.title, newPr: pr});
this.title = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_DateAx_SetTxPr, oldPr: this.txPr, newPr: pr});
this.txPr = pr;
},
}
function CDoughnutChart()
{
this.dLbls = null;
this.firstSliceAng = null;
this.holeSize = null;
this.series = [];
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CDoughnutChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_DoughnutChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_DoughnutChart_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setFirstSliceAng: function(pr)
{
History.Add(this, {Type: historyitem_DoughnutChart_SetFirstSliceAng, oldPr: this.firstSliceAng, newPr: pr});
this.firstSliceAng = pr;
},
setHoleSize: function(pr)
{
History.Add(this, {Type: historyitem_DoughnutChart_SetHoleSize, oldPr: this.holeSize, newPr: pr});
this.holeSize = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_DoughnutChart_AddSer, ser: ser});
this.series.push(ser);
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_DoughnutChart_SetVaryColor, oldPr: this.varyColors, newPr: pr});
this.varyColors = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_DoughnutChart_SetDLbls :
{
this.dLbls = data.oldPr;
break;
}
case historyitem_DoughnutChart_SetFirstSliceAng :
{
this.firstSliceAng = data.oldPr;
break;
}
case historyitem_DoughnutChart_SetHoleSize :
{
this.holeSize = data.oldPr;
break;
}
case historyitem_DoughnutChart_AddSer:
{
for(var i = this.series.length - 1; i >- 1; --i)
{
if(this.series[i] === data.ser)
{
this.series.splice(i, 1);
break;
}
}
break;
}
case historyitem_DoughnutChart_SetVaryColor :
{
this.varyColors = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_DoughnutChart_SetDLbls :
{
this.dLbls = data.newPr;
break;
}
case historyitem_DoughnutChart_SetFirstSliceAng :
{
this.firstSliceAng = data.newPr;
break;
}
case historyitem_DoughnutChart_SetHoleSize :
{
this.holeSize = data.newPr;
break;
}
case historyitem_DoughnutChart_AddSer:
{
if(isRealObject(data.ser))
{
this.series.push(data.ser);
}
break;
}
case historyitem_DoughnutChart_SetVaryColor :
{
this.varyColors = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_DoughnutChart_SetDLbls :
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_DoughnutChart_SetFirstSliceAng :
case historyitem_DoughnutChart_SetHoleSize :
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_DoughnutChart_AddSer:
{
w.WriteBool(isRealObject(data.ser));
if(isRealObject(data.ser))
{
w.WriteString2(data.ser.Get_Id());
}
break;
}
case historyitem_DoughnutChart_SetVaryColor :
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_DoughnutChart_SetDLbls :
{
if(r.GetBool())
{
this.dLbls = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dLbls = null;
}
break;
}
case historyitem_DoughnutChart_SetFirstSliceAng :
{
if(r.GetBool())
{
this.firstSliceAng = r.GetLong();
}
else
{
this.firstSliceAng = null;
}
break;
}
case historyitem_DoughnutChart_SetHoleSize :
{
if(r.GetBool())
{
this.holeSize = r.GetLong();
}
else
{
this.holeSize = null;
}
break;
}
case historyitem_DoughnutChart_AddSer:
{
if(isRealObject(data.ser))
{
this.series.push(data.ser);
}
if(r.GetBool())
{
var ser = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(ser))
{
this.series.push(ser);
}
}
break;
}
case historyitem_DoughnutChart_SetVaryColor :
{
if(r.GetBool())
{
this.varyColors = r.GetBool();
}
else
{
this.varyColors = null;
}
break;
}
}
}
};
\ No newline at end of file
var ERR_BAR_TYPE_BOTH = 0;
var ERR_BAR_TYPE_MINUS = 1;
var ERR_BAR_TYPE_PLUS = 2;
var ERR_DIR_X = 0;
var ERR_DIR_Y = 1;
var ERR_VAL_TYPE_CUST = 0;
var ERR_VAL_TYPE_FIXED_VAL = 1;
var ERR_VAL_TYPE_PERCENTAGE = 2;
var ERR_VAL_TYPE_STD_DEV = 3;
var ERR_VAL_TYPE_STD_ERR = 4;
function CErrBars()
{
this.errBarType = null;
this.errDir = null;
this.errValType = null;
this.minus = null;
this.noEndCap = null;
this.plus = null;
this.spPr = null;
this.val = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CErrBars.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_ErrBars;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setErrBarType: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetErrBarType, oldPr: this.errBarType, newPr: pr});
this.errBarType = pr;
},
setErrDir: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetErrDir, oldPr: this.errDir, newPr: pr});
this.errDir = pr;
},
setErrValType: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetErrValType, oldPr: this.errDir, newPr: pr});
this.errDir = pr;
},
setMinus: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetMinus, oldPr: this.minus, newPr: pr});
this.minus = pr;
},
setNoEndCap: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetNoEndCap, oldPr: this.noEndCap, newPr: pr});
this.noEndCap = pr;
},
setPlus: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetPlus, oldPr: this.plus, newPr: pr});
this.plus = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_ErrBars_SetVal, oldPr: this.val, newPr: pr});
this.val = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_ErrBars_SetErrBarType:
{
this.errBarType = data.oldPr;
break;
}
case historyitem_ErrBars_SetErrDir:
{
this.errDir = data.oldPr;
break;
}
case historyitem_ErrBars_SetErrValType:
{
this.errValType = data.oldPr;
break;
}
case historyitem_ErrBars_SetMinus:
{
this.minus = data.oldPr;
break;
}
case historyitem_ErrBars_SetNoEndCap:
{
this.noEndCap = data.oldPr;
break;
}
case historyitem_ErrBars_SetPlus:
{
this.plus = data.oldPr;
break;
}
case historyitem_ErrBars_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_ErrBars_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_ErrBars_SetErrBarType:
{
this.errBarType = data.newPr;
break;
}
case historyitem_ErrBars_SetErrDir:
{
this.errDir = data.newPr;
break;
}
case historyitem_ErrBars_SetErrValType:
{
this.errValType = data.newPr;
break;
}
case historyitem_ErrBars_SetMinus:
{
this.minus = data.newPr;
break;
}
case historyitem_ErrBars_SetNoEndCap:
{
this.noEndCap = data.newPr;
break;
}
case historyitem_ErrBars_SetPlus:
{
this.plus = data.newPr;
break;
}
case historyitem_ErrBars_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_ErrBars_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_ErrBars_SetErrBarType:
case historyitem_ErrBars_SetErrDir:
case historyitem_ErrBars_SetErrValType:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_ErrBars_SetMinus:
case historyitem_ErrBars_SetPlus:
case historyitem_ErrBars_SetSpPr:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_ErrBars_SetNoEndCap:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
case historyitem_ErrBars_SetVal:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteDouble(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (data.Type)
{
case historyitem_ErrBars_SetErrBarType:
{
if(r.GetBool())
{
this.errBarType = r.GetLong();
}
else
{
this.errBarType = null;
}
break;
}
case historyitem_ErrBars_SetErrDir:
{
if(r.GetBool())
{
this.errDir = r.GetLong();
}
else
{
this.errDir = null;
}
break;
}
case historyitem_ErrBars_SetErrValType:
{
if(r.GetBool())
{
this.errValType = r.GetLong();
}
else
{
this.errValType = null;
}
break;
}
case historyitem_ErrBars_SetMinus:
{
if(r.GetBool())
{
this.minus = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.minus = null;
}
break;
}
case historyitem_ErrBars_SetNoEndCap:
{
if(r.GetBool())
{
this.noEndCap = r.GetBool();
}
else
{
this.noEndCap = null;
}
break;
}
case historyitem_ErrBars_SetPlus:
{
if(r.GetBool())
{
this.plus = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.plus = null;
}
break;
}
case historyitem_ErrBars_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
case historyitem_ErrBars_SetVal:
{
if(r.GetBool())
{
this.val = r.GetDouble();
}
else
{
this.val = null;
}
break;
}
}
}
};
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
var LAYOUT_TARGET_INNER = 0;
var LAYOUT_TARGET_OUTER = 1;
var LAYOUT_MODE_EDGE = 0;
var LAYOUT_MODE_FACTOR = 1;
function CLayout()
{
this.h = null;
this.hMode = null;
this.layoutTarget = null;
this.w = null;
this.wMode = null;
this.x = null;
this.xMode = null;
this.y = null;
this.yMode = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CLayout.prototype =
{
Get_Id: function()
{
return this.Id;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
getObjectType: function()
{
return historyitem_type_Layout;
},
setH: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetH, oldPr: this.h, newPr: pr});
this.h = pr;
},
setHMode: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetHMode, oldPr: this.hMode, newPr: pr});
this.hMode = pr;
},
setLayoutTarget: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetLayoutTarget, oldPr: this.layoutTarget, newPr: pr});
this.layoutTarget = pr;
},
setW: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetW, oldPr: this.w, newPr: pr});
this.w = pr;
},
setWMode: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetWMode, oldPr: this.wMode, newPr: pr});
this.wMode = pr;
},
setX: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetX, oldPr: this.x, newPr: pr});
this.x = pr;
},
setXMode: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetXMode, oldPr: this.xMode, newPr: pr});
this.xMode = pr;
},
setY: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetY, oldPr: this.y, newPr: pr});
this.y = pr;
},
setYMode: function(pr)
{
History.Add(this, {Type:historyitem_Layout_SetYMode, oldPr: this.yMode, newPr: pr});
this.yMode = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Layout_SetH:
{
this.h = data.oldPr;
break;
}
case historyitem_Layout_SetHMode:
{
this.hMode = data.oldPr;
break
}
case historyitem_Layout_SetLayoutTarget:
{
this.layoutTarget = data.oldPr;
break
}
case historyitem_Layout_SetW:
{
this.w = data.oldPr;
break
}
case historyitem_Layout_SetWMode:
{
this.wMode = data.oldPr;
break
}
case historyitem_Layout_SetX:
{
this.x = data.oldPr;
break
}
case historyitem_Layout_SetXMode:
{
this.xMode = data.oldPr;
break
}
case historyitem_Layout_SetY:
{
this.y = data.oldPr;
break
}
case historyitem_Layout_SetYMode:
{
this.yMode = data.oldPr;
break
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Layout_SetH:
{
this.h = data.newPr;
break;
}
case historyitem_Layout_SetHMode:
{
this.hMode = data.newPr;
break
}
case historyitem_Layout_SetLayoutTarget:
{
this.layoutTarget = data.newPr;
break
}
case historyitem_Layout_SetW:
{
this.w = data.newPr;
break
}
case historyitem_Layout_SetWMode:
{
this.wMode = data.newPr;
break
}
case historyitem_Layout_SetX:
{
this.x = data.newPr;
break
}
case historyitem_Layout_SetXMode:
{
this.xMode = data.newPr;
break
}
case historyitem_Layout_SetY:
{
this.y = data.newPr;
break
}
case historyitem_Layout_SetYMode:
{
this.yMode = data.newPr;
break
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(this.getObjectType());
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Layout_SetH:
case historyitem_Layout_SetW:
case historyitem_Layout_SetX:
case historyitem_Layout_SetY:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteDouble(data.newPr);
}
break;
}
case historyitem_Layout_SetHMode:
case historyitem_Layout_SetWMode:
case historyitem_Layout_SetXMode:
case historyitem_Layout_SetYMode:
case historyitem_Layout_SetLayoutTarget:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break
}
}
},
Load_Changes: function(r)
{
if(this.getObjectType() !== r.GetLong())
return;
var type = r.GetLong();
switch (type)
{
case historyitem_Layout_SetH:
{
if(r.GetBool())
{
this.h = r.GetDouble();
}
else
{
this.h = null;
}
break;
}
case historyitem_Layout_SetHMode:
{
if(r.GetBool())
{
this.hMode = r.GetLong();
}
else
{
this.hMode = null;
}
break
}
case historyitem_Layout_SetLayoutTarget:
{
if(r.GetBool())
{
this.layoutTarget = r.GetLong();
}
else
{
this.layoutTarget = null;
}
break
}
case historyitem_Layout_SetW:
{
if(r.GetBool())
{
this.w = r.GetDouble();
}
else
{
this.w = null;
}
break
}
case historyitem_Layout_SetWMode:
{
if(r.GetBool())
{
this.wMode = r.GetLong();
}
else
{
this.wMode = null;
}
break
}
case historyitem_Layout_SetX:
{
if(r.GetBool())
{
this.x = r.GetDouble();
}
else
{
this.x = null;
}
break
}
case historyitem_Layout_SetXMode:
{
if(r.GetBool())
{
this.xMode = r.GetLong();
}
else
{
this.xMode = null;
}
break
}
case historyitem_Layout_SetY:
{
if(r.GetBool())
{
this.y = r.GetDouble();
}
else
{
this.y = null;
}
break
}
case historyitem_Layout_SetYMode:
{
if(r.GetBool())
{
this.yMode = r.GetLong();
}
else
{
this.yMode = null;
}
break
}
}
}
};
var LEGEND_POS_L = 0;
var LEGEND_POS_T = 1;
var LEGEND_POS_R = 2;
var LEGEND_POS_B = 3;
var LEGEND_POS_TR = 4;
function CLegend()
{
this.layout = null;
this.legendEntryes = [];
this.legendPos = null;
this.overlay = null;
this.spPr = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CLegend.prototype =
{
Get_Id: function()
{
return this.Id;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
getObjectType: function()
{
return historyitem_type_Legend;
},
setLayout: function(layout)
{
History.Add(this, {Type: historyitem_Legend_SetLayout,oldPr: this.layout, newPr: layout});
this.layout = layout;
},
addLegendEntry: function(legendEntry)
{
History.Add(this, {Type: historyitem_Legend_AddLegendEntry, entry: legendEntry});
this.legendEntryes.push(legendEntry);
},
setLegendPos: function(legendPos)
{
History.Add(this, {Type: historyitem_Legend_SetLegendPos,oldPr: this.legendPos, newPr: legendPos});
this.legendPos = legendPos;
},
setOverlay: function(overlay)
{
History.Add(this, {Type: historyitem_Legend_SetOverlay,oldPr: this.overlay, newPr: overlay});
this.overlay = overlay;
},
setSpPr: function(spPr)
{
History.Add(this, {Type: historyitem_Legend_SetSpPr,oldPr: this.spPr, newPr: spPr});
this.spPr = spPr;
},
setTxPr: function(txPr)
{
History.Add(this, {Type: historyitem_Legend_SetTxPr,oldPr: this.txPr, newPr: txPr});
this.txPr = txPr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Legend_SetLayout:
{
this.layout = data.oldPr;
break;
}
case historyitem_Legend_AddLegendEntry:
{
for(var i = this.legendEntryes.length; i > -1; --i)
{
if(this.legendEntryes[i].Get_Id() === data.entry)
{
this.legendEntryes.splice(i, 1);
break;
}
}
break;
}
case historyitem_Legend_SetLegendPos:
{
this.legendPos = data.oldPr;
break;
}
case historyitem_Legend_SetOverlay:
{
this.overlay = data.oldPr;
break;
}
case historyitem_Legend_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_Legend_SetTxPr:
{
this.txPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Legend_SetLayout:
{
this.layout = data.newPr;
break;
}
case historyitem_Legend_AddLegendEntry:
{
this.legendEntryes.push(data.entry);
break;
}
case historyitem_Legend_SetLegendPos:
{
this.legendPos = data.newPr;
break;
}
case historyitem_Legend_SetOverlay:
{
this.overlay = data.newPr;
break;
}
case historyitem_Legend_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_Legend_SetTxPr:
{
this.txPr = data.newPr;
break;
}
}
},
Save_Changes: function()
{
w.WriteLong(this.getObjectType());
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Legend_SetLayout:
case historyitem_Legend_SetSpPr:
case historyitem_Legend_SetTxPr:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_Legend_AddLegendEntry:
{
w.WriteBool(isRealObject(data.entry));
if(isRealObject(data.entry))
{
w.WriteString2(data.entry.Get_Id());
}
break;
}
case historyitem_Legend_SetLegendPos:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_Legend_SetOverlay:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
}
},
Load_Changes: function()
{
if(this.getObjectType() !== r.GetLong())
return;
var type = r.GetLong();
switch(type)
{
case historyitem_Legend_SetLayout:
{
if(r.GetBool())
{
this.layout = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.layout = null;
}
break;
}
case historyitem_Legend_AddLegendEntry:
{
if(r.GetBool())
{
var entry = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(entry))
{
this.legendEntryes.push(entry);
}
}
break;
}
case historyitem_Legend_SetLegendPos:
{
if(r.GetBool())
{
this.legendPos = r.GetLong();
}
else
{
this.legendPos = null;
}
break;
}
case historyitem_Legend_SetOverlay:
{
if(r.GetBool())
{
this.overlay = r.GetBool();
}
else
{
this.overlay = null;
}
break;
}
case historyitem_Legend_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
case historyitem_Legend_SetTxPr:
{
if(r.GetBool())
{
this.txPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.txPr = null;
}
break;
}
}
}
};
\ No newline at end of file
function CLegendEntry()
{
this.bDelete = null;
this.idx = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CLegendEntry.prototype =
{
getObjectType: function()
{
return historyitem_type_LegendEntry;
},
Get_Id: function()
{
return this.Id;
},
Write_ToBinary2: function (w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function (r)
{
this.Id = r.GetString2();
},
setDelete: function(pr)
{
History.Add(this, {Type: historyitem_LegendEntry_SetDelete, oldPr: this.bDelete, newPr:pr});
this.bDelete = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_LegendEntry_SetIdx, oldPr: this.idx, newPr:pr});
this.idx = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_LegendEntry_SetTxPr, oldPr: this.txPr, newPr:pr});
this.txPr = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_LegendEntry_SetDelete:
{
this.bDelete = data.oldPr;
break;
}
case historyitem_LegendEntry_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_LegendEntry_SetTxPr:
{
this.txPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_LegendEntry_SetDelete:
{
this.bDelete = data.newPr;
break;
}
case historyitem_LegendEntry_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_LegendEntry_SetTxPr:
{
this.txPr = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(this.getObjectType());
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_LegendEntry_SetDelete:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
case historyitem_LegendEntry_SetIdx:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_LegendEntry_SetTxPr:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
}
},
Load_Changes: function(r)
{
if(this.getObjectType() !== r.GetLong())
return;
var type = r.GetLong();
switch (type)
{
case historyitem_LegendEntry_SetDelete:
{
if(r.GetBool())
{
this.bDelete = r.GetBool();
}
else
{
this.bDelete = null;
}
break;
}
case historyitem_LegendEntry_SetIdx:
{
if(r.GetBool())
{
this.idx = r.GetLong();
}
else
{
this.idx = null;
}
break;
}
case historyitem_LegendEntry_SetTxPr:
{
if(r.GetBool())
{
this.txPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.txPr = null;
}
break;
}
}
}
};
\ No newline at end of file
var GROUPING_PERCENT_STACKED = 0;
var GROUPING_STACKED = 1;
var GROUPING_STANDARD = 2;
function CLineChart()
{
this.axId = [];
this.dLbls = null;
this.dropLines = null;
this.grouping = null;
this.hiLowLines = null;
this.marker = null;
this.series = [];
this.smooth = null;
this.upDownBars = null;
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CLineChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_LineChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
addAxId: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_AddAxId, axId:pr});
this.axId.push(pr);
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDropLines: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetDropLines, oldPr: this.dropLines, newPr: pr});
this.dropLines = pr;
},
setGrouping: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetGrouping, oldPr: this.grouping, newPr: pr});
this.grouping = pr;
},
setHiLowLines: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetHiLowLines, oldPr: this.hiLowLines, newPr: pr});
this.hiLowLines = pr;
},
setMarker: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetMarker, oldPr: this.marker, newPr: pr});
this.marker = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_LineChart_AddSer, ser: ser});
this.series.push(ser);
},
setSmooth: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetSmooth, oldPr: this.smooth, newPr: pr});
this.smooth = pr;
},
setUpDownBars: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetUpDownBars, oldPr: this.upDownBars, newPr: pr});
this.upDownBars = pr;
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_LineChart_SetVaryColors, oldPr: this.varyColors, newPr: pr});
this.varyColors = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_LineChart_AddAxId:
{
for(var i = this.axId.length-1; i > -1; --i)
{
if(this.axId[i] === data.axId)
{
this.axId.splice(i, 1);
break;
}
}
break
}
case historyitem_LineChart_SetDLbls:
{
this.dLbls = data.oldPr;
break
}
case historyitem_LineChart_SetDropLines:
{
this.dropLines = data.oldPr;
break
}
case historyitem_LineChart_SetGrouping:
{
this.grouping = data.oldPr;
break
}
case historyitem_LineChart_SetHiLowLines:
{
this.hiLowLines = data.oldPr;
break
}
case historyitem_LineChart_SetMarker:
{
this.marker = data.oldPr;
break
}
case historyitem_LineChart_SetSer:
{
this.series = data.oldPr;
break
}
case historyitem_LineChart_SetSmooth:
{
this.axId = data.oldPr;
break
}
case historyitem_LineChart_SetUpDownBars:
{
this.axId = data.oldPr;
break
}
case historyitem_LineChart_SetVaryColors:
{
this.axId = data.oldPr;
break
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_LineChart_AddAxId:
{
this.axId.push(data.axId);
break
}
case historyitem_LineChart_SetDLbls:
{
this.dLbls = data.newPr;
break
}
case historyitem_LineChart_SetDropLines:
{
this.dropLines = data.newPr;
break
}
case historyitem_LineChart_SetGrouping:
{
this.grouping = data.newPr;
break
}
case historyitem_LineChart_SetHiLowLines:
{
this.hiLowLines = data.newPr;
break
}
case historyitem_LineChart_SetMarker:
{
this.marker = data.newPr;
break
}
case historyitem_LineChart_AddSer:
{
this.series = data.newPr;
break
}
case historyitem_LineChart_SetSmooth:
{
this.axId = data.newPr;
break
}
case historyitem_LineChart_SetUpDownBars:
{
this.axId = data.newPr;
break
}
case historyitem_LineChart_SetVaryColors:
{
this.axId = data.newPr;
break
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
},
Load_Changes: function(r)
{}
};
\ No newline at end of file
function CLineSeries()
{
this.cat = null;
this.dLbls = null;
this.dPt = null;
this.errBars = null;
this.idx = null;
this.marker = null;
this.order = null;
this.smooth = null;
this.spPr = null;
this.trendline = null;
this.tx = null;
this.val = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CLineSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_LineSeries;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setCat: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetCat, oldPr: this.cat, newPr: pr});
this.cat = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetDPt, oldPr: this.dPt, newPr: pr});
this.dPt = pr;
},
setErrBars: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetErrBars, oldPr: this.errBars, newPr: pr});
this.errBars = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setMarker: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetMarker, oldPr: this.marker, newPr: pr});
this.marker = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetOrder, oldPr: this.order, newPr: pr});
this.order = pr;
},
setSmooth: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetSmooth, oldPr: this.smooth, newPr: pr});
this.smooth = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTrendline: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetTrendline, oldPr: this.trendline, newPr: pr});
this.trendline = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetTx, oldPr: this.tx, newPr: pr});
this.tx = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_LineSeries_SetVal, oldPr: this.val, newPr: pr});
this.val = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_LineSeries_SetCat:
{
this.cat = data.oldPr;
break;
}
case historyitem_LineSeries_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_LineSeries_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_LineSeries_SetErrBars:
{
this.errBars = data.oldPr;
break;
}
case historyitem_LineSeries_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_LineSeries_SetMarker:
{
this.marker = data.oldPr;
break;
}
case historyitem_LineSeries_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_LineSeries_SetSmooth:
{
this.smooth = data.oldPr;
break;
}
case historyitem_LineSeries_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_LineSeries_SetTrendline:
{
this.trendline = data.oldPr;
break;
}
case historyitem_LineSeries_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_LineSeries_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_LineSeries_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_LineSeries_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_LineSeries_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_LineSeries_SetErrBars:
{
this.errBars = data.newPr;
break;
}
case historyitem_LineSeries_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_LineSeries_SetMarker:
{
this.marker = data.newPr;
break;
}
case historyitem_LineSeries_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_LineSeries_SetSmooth:
{
this.smooth = data.newPr;
break;
}
case historyitem_LineSeries_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_LineSeries_SetTrendline:
{
this.trendline = data.newPr;
break;
}
case historyitem_LineSeries_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_LineSeries_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_LineSeries_SetCat:
case historyitem_LineSeries_SetDLbls:
case historyitem_LineSeries_SetDPt:
case historyitem_LineSeries_SetErrBars:
case historyitem_LineSeries_SetMarker:
case historyitem_LineSeries_SetSpPr:
case historyitem_LineSeries_SetTrendline:
case historyitem_LineSeries_SetTx:
case historyitem_LineSeries_SetVal:
{
writeObject(w, data.newPr);
this.cat = data.newPr;
break;
}
case historyitem_LineSeries_SetIdx:
case historyitem_LineSeries_SetOrder:
{
writeLong(w, data.newPr);
break;
}
case historyitem_LineSeries_SetSmooth:
{
writeBool(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_LineSeries_SetCat:
{
this.cat = readObject(r);
break;
}
case historyitem_LineSeries_SetDLbls:
{
this.dLbls = readObject(r);
break;
}
case historyitem_LineSeries_SetDPt:
{
this.dPt = readObject(r);
break;
}
case historyitem_LineSeries_SetErrBars:
{
this.errBars = readObject(r);
break;
}
case historyitem_LineSeries_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_LineSeries_SetMarker:
{
this.marker = readObject(r);
break;
}
case historyitem_LineSeries_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_LineSeries_SetSmooth:
{
this.smooth = readBool(r);
break;
}
case historyitem_LineSeries_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_LineSeries_SetTrendline:
{
this.trendline = readObject(r);
break;
}
case historyitem_LineSeries_SetTx:
{
this.tx = readObject(r);
break;
}
case historyitem_LineSeries_SetVal:
{
this.val = readObject(r);
break;
}
}
}
};
\ No newline at end of file
var SYMBOL_CIRCLE = 0;
var SYMBOL_DASH = 1;
var SYMBOL_DIAMOND = 2;
var SYMBOL_DOT = 3;
var SYMBOL_NONE = 4;
var SYMBOL_PICTURE = 5;
var SYMBOL_PLUS = 6;
var SYMBOL_SQUARE = 7;
var SYMBOL_STAR = 8;
var SYMBOL_TRIANGLE = 9;
var SYMBOL_X = 10;
function CMarker()
{
this.size = null; //2 <= size <= 72
this.spPr = null;
this.symbol = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CMarker.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Marker;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setSize: function(pr)
{
History.Add(this, {Type: historyitem_Marker_SetSize, oldPr: this.size, newPr: pr});
this.size = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_Marker_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setSymbol: function(pr)
{
History.Add(this, {Type: historyitem_Marker_SetSymbol, oldPr: this.symbol, newPr: pr});
this.symbol = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Marker_SetSize:
{
this.size = data.oldPr;
break;
}
case historyitem_Marker_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_Marker_SetSymbol:
{
this.symbol = data.oldPr;
break;
}
}
} ,
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Marker_SetSize:
{
this.size = data.newPr;
break;
}
case historyitem_Marker_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_Marker_SetSymbol:
{
this.symbol = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Marker_SetSize:
case historyitem_Marker_SetSymbol:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_Marker_SetSpPr:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_Marker_SetSize:
{
if(r.GetBool())
{
this.size = r.GetLong();
}
else
{
this.size = null;
}
break;
}
case historyitem_Marker_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
case historyitem_Marker_SetSymbol:
{
if(r.GetBool())
{
this.symbol = r.GetLong();
}
else
{
this.symbol = null;
}
break;
}
}
}
};
\ No newline at end of file
function CMinusPlus()
{
this.numLit = null;
this.numRef = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CMinusPlus.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_MinusPlus;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setNumLit: function(pr)
{
History.Add(this, {Type: historyitem_MinusPlus_SetnNumLit, oldPr: this.numLit, newPr: pr});
this.numLit = pr;
},
setNumRef: function(pr)
{
History.Add(this, {Type: historyitem_MinusPlus_SetnNumRef, oldPr: this.numRef, newPr: pr});
this.numRef = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_MinusPlus_SetnNumLit:
{
this.numLit = data.oldPr;
break;
}
case historyitem_MinusPlus_SetnNumRef:
{
this.numRef = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_MinusPlus_SetnNumLit:
{
this.numLit = data.newPr;
break;
}
case historyitem_MinusPlus_SetnNumRef:
{
this.numRef = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_MinusPlus_SetnNumLit:
case historyitem_MinusPlus_SetnNumRef:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_MinusPlus_SetnNumLit:
{
if(r.GetBool())
{
this.numLit = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.numLit = null;
}
break;
}
case historyitem_MinusPlus_SetnNumRef:
{
if(r.GetBool())
{
this.numRef = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.numRef = null;
}
break;
}
}
}
};
\ No newline at end of file
function CMultiLvlStrCache()
{
this.lvl = null;
this.ptCount = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CMultiLvlStrCache.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_MultiLvlStrCache;
},
setLvl: function(pr)
{
History.Add(this, {Type: historyitem_MultiLvlStrCache_SetLvl, newPr: pr, oldPr: this.lvl});
this.lvl = pr;
},
setPtCount: function(pr)
{
History.Add(this, {Type: historyitem_MultiLvlStrCache_SetPtCount, newPr: pr, oldPr: this.ptCount});
this.ptCount = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_MultiLvlStrCache_SetLvl:
{
this.lvl = data.oldPr;
break;
}
case historyitem_MultiLvlStrCache_SetPtCount:
{
this.ptCount = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_MultiLvlStrCache_SetLvl:
{
this.lvl = data.newPr;
break;
}
case historyitem_MultiLvlStrCache_SetPtCount:
{
this.ptCount = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_MultiLvlStrCache_SetLvl:
{
writeObject(w, data.newPr);
break;
}
case historyitem_MultiLvlStrCache_SetPtCount:
{
writeLong(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_MultiLvlStrCache_SetLvl:
{
this.lvl = readObject(r);
writeObject(w, data.newPr);
break;
}
case historyitem_MultiLvlStrCache_SetPtCount:
{
this.ptCount = readLong(r);
break;
}
}
}
};
\ No newline at end of file
function CMultiLvlStrRef()
{
this.f = null;
this.multiLvlStrCache = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CMultiLvlStrRef.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_MultiLvlStrRef;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setF: function(pr)
{
History.Add(this, {Type: historyitem_MultiLvlStrRef_SetF, oldPr: this.f, newPr: pr});
this.f = pr;
},
setMultiLvlStrCache: function(pr)
{
History.Add(this, {Type: historyitem_MultiLvlStrRef_SetMultiLvlStrCache, oldPr: this.multiLvlStrCache, newPr: pr});
this.multiLvlStrCache = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_MultiLvlStrRef_SetF:
{
this.f = data.oldPr;
break;
}
case historyitem_MultiLvlStrRef_SetMultiLvlStrCache:
{
this.multiLvlStrCache = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_MultiLvlStrRef_SetF:
{
this.f = data.newPr;
break;
}
case historyitem_MultiLvlStrRef_SetMultiLvlStrCache:
{
this.multiLvlStrCache = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_MultiLvlStrRef_SetF:
{
writeString(w, data.newPr);
break;
}
case historyitem_MultiLvlStrRef_SetMultiLvlStrCache:
{
writeObject(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
switch (data.Type)
{
case historyitem_MultiLvlStrRef_SetF:
{
this.f = readString(r);
break;
}
case historyitem_MultiLvlStrRef_SetMultiLvlStrCache:
{
this.multiLvlStrCache = readObject(r);
break;
}
}
}
};
\ No newline at end of file
function CNumFmt()
{
this.formatCode = null;
this.sourceLinked = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CNumFmt.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_NumFmt;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setFormatCode: function(pr)
{
History.Add(this, {Type: historyitem_NumFmt_SetFormatCode, oldPr: this.formatCode, newPr: pr});
this.formatCode = pr;
},
setSourceLinked: function(pr)
{
History.Add(this, {Type: historyitem_NumFmt_SetSourceLinked, oldPr: this.sourceLinked, newPr: pr});
this.sourceLinked = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_NumFmt_SetFormatCode:
{
this.formatCode = data.oldPr;
break;
}
case historyitem_NumFmt_SetSourceLinked:
{
this.sourceLinked = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch(data.Type)
{
case historyitem_NumFmt_SetFormatCode:
{
this.formatCode = data.newPr;
break;
}
case historyitem_NumFmt_SetSourceLinked:
{
this.sourceLinked = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_NumFmt_SetFormatCode:
{
writeString(w, data.newPr);
break;
}
case historyitem_NumFmt_SetSourceLinked:
{
writeBool(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_NumFmt_SetFormatCode:
{
this.formatCode = readString(r);
break;
}
case historyitem_NumFmt_SetSourceLinked:
{
this.sourceLinked = readBool(r);
break;
}
}
}
};
\ No newline at end of file
function CNumLit()
{
this.formatCode = null;
this.pt = null;
this.ptCount = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CNumLit.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_NumLit;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setFormatCode: function(pr)
{
History.Add(this, {Type:historyitem_NumLit_SetFormatCode, oldPr: this.formatCode, newPr: pr});
this.formatCode = pr;
},
setPt: function(pr)
{
History.Add(this, {Type:historyitem_NumLit_SetPt, oldPr: this.pt, newPr: pr});
this.pt = pr;
},
setPtCount: function(pr)
{
History.Add(this, {Type:historyitem_NumLit_SetPt, oldPr: this.pt, newPr: pr});
this.ptCount = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_NumLit_SetFormatCode:
{
this.formatCode = data.oldPr;
break;
}
case historyitem_NumLit_SetPt:
{
this.pt = data.oldPr;
break;
}
case historyitem_NumLit_SetPtCount:
{
this.ptCount = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_NumLit_SetFormatCode:
{
this.formatCode = data.newPr;
break;
}
case historyitem_NumLit_SetPt:
{
this.pt = data.newPr;
break;
}
case historyitem_NumLit_SetPtCount:
{
this.ptCount = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_NumLit_SetFormatCode:
{
w.WriteBool(typeof data.newPr === "string");
if(typeof data.newPr === "string")
{
w.WriteString2(data.newPr);
}
break;
}
case historyitem_NumLit_SetPt:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_NumLit_SetPtCount:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_NumLit_SetFormatCode:
{
if(r.GetBool())
{
this.formatCode = r.GetString2();
}
else
{
this.formatCode = null;
}
break;
}
case historyitem_NumLit_SetPt:
{
if(r.GetBool())
{
this.pt = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.pt = null;
}
break;
}
case historyitem_NumLit_SetPtCount:
{
if(r.GetBool())
{
this.ptCount = r.GetLong();
}
else
{
this.ptCount = null;
}
break;
}
}
}
};
\ No newline at end of file
function CNumRef()
{
this.f = null;
this.numCache = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CNumRef.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_NumRef;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setF: function(pr)
{
History.Add(this, {Type: historyitem_NumRef_SetF, oldPr: this.f, newPr: pr });
this.f = pr;
},
setNumCache: function(pr)
{
History.Add(this, {Type: historyitem_NumRef_SetNumCache, oldPr: this.numCache, newPr: pr});
this.numCache = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_NumRef_SetF:
{
this.f = data.oldPr;
break;
}
case historyitem_NumRef_SetNumCache:
{
this.numCache = data.oldPr;
}
}
},
Redo: function(data)
{
switch(data.Type)
{
case historyitem_NumRef_SetF:
{
this.f = data.newPr;
break;
}
case historyitem_NumRef_SetNumCache:
{
this.numCache = data.newPr;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch(data.Type)
{
case historyitem_NumRef_SetF:
case historyitem_NumRef_SetNumCache:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_NumRef_SetF:
{
if(r.GetBool())
{
this.f = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.f = null;
}
break;
}
case historyitem_NumRef_SetNumCache:
{
if(r.GetBool())
{
this.numCache = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.numCache = null;
}
}
}
}
};
\ No newline at end of file
function CNumericPoint()
{
this.formatCode = null;
this.idx = null;
this.val = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CNumericPoint.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_NumericPoint;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setFormatCode: function(pr)
{
History.Add(this, {Type: historyitem_NumericPoint_SetFormatCode, oldPr: this.formatCode, newPr: pr});
this.formatCode = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_NumericPoint_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_NumericPoint_SetVal, oldPr: this.val, newPr: pr});
this.val = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_NumericPoint_SetFormatCode:
{
this.formatCode = data.oldPr;
break;
}
case historyitem_NumericPoint_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_NumericPoint_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_NumericPoint_SetFormatCode:
{
this.formatCode = data.newPr;
break;
}
case historyitem_NumericPoint_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_NumericPoint_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_NumericPoint_SetFormatCode:
case historyitem_NumericPoint_SetVal:
{
w.WriteBool(typeof data.newPr === "string");
if(typeof data.newPr === "string")
{
w.WriteString2(data.newPr);
}
break;
}
case historyitem_NumericPoint_SetIdx:
{
this.idx = data.newPr;
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch(type)
{
case historyitem_NumericPoint_SetFormatCode:
{
if(r.GetBool())
{
this.formatCode = r.GetString2();
}
else
{
this.formatCode = null;
}
break;
}
case historyitem_NumericPoint_SetIdx:
{
if(r.GetBool())
{
this.idx = r.GetLong();
}
else
{
this.idx = null;
}
break;
}
case historyitem_NumericPoint_SetVal:
{
if(r.GetBool())
{
this.val = r.GetString2();
}
else
{
this.val = null;
}
break;
}
}
}
};
\ No newline at end of file
var OF_PIE_TYPE_BAR = 0;
var OF_PIE_TYPE_PIE = 1;
var SPLIT_TYPE_AUTO = 0;
var SPLIT_TYPE_CUST = 1;
var SPLIT_TYPE_PERCENT = 2;
var SPLIT_TYPE_POS = 3;
var SPLIT_TYPE_VAL = 4;
function COfPieChart()
{
this.custSplit = [];
this.dLbls = null;
this.gapWidth = null;
this.ofPieType = null;
this.secondPieSize = null;
this.series = null;
this.serLines = null;
this.splitPos = null;
this.splitType = null;
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
COfPieChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_OfPieChart;
},
addCustSplit: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_AddCustSplit, nSplit:pr, pos: this.custSplit.length});
this.custSplit.push(pr);
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setGapWidth: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetGapWidth, oldPr: this.gapWidth, newPr: pr});
this.gapWidth = pr;
},
setOfPieType: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetOfPieType, oldPr: this.ofPieType, newPr: pr});
this.ofPieType = pr;
},
setSecondPieSize: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetSecondPieSize, oldPr: this.secondPieSize, newPr: pr});
this.secondPieSize = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_OfPieChart_AddSer, ser: ser});
this.series.push(ser);
},
setSerLines: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetSerLines, oldPr: this.serLines, newPr: pr});
this.serLines = pr;
},
setSplitPos: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetSplitPos, oldPr: this.splitPos, newPr: pr});
this.splitPos = pr;
},
setSplitType: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetSplitType, oldPr: this.splitType, newPr: pr});
this.splitType = pr;
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_OfPieChart_SetVaryColors, oldPr: this.varyColors, newPr: pr});
this.varyColors = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_OfPieChart_AddCustSplit:
{
if(this.custSplit[data.pos] === data.nSplit)
this.custSplit.splice(data.pos, 1);
break;
}
case historyitem_OfPieChart_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_OfPieChart_SetGapWidth:
{
this.gapWidth = data.oldPr;
break;
}
case historyitem_OfPieChart_SetOfPieType:
{
this.ofPieType = data.oldPr;
break;
}
case historyitem_OfPieChart_SetSecondPieSize:
{
this.secondPieSize = data.oldPr;
break;
}
case historyitem_OfPieChart_AddSer:
{
for(var i = this.series.length - 1; i > -1; --i)
{
if(this.series[i] === data.ser)
{
this.series.splice(i, 1);
break;
}
}
break;
}
case historyitem_OfPieChart_SetSerLines:
{
this.serLines = data.oldPr;
break;
}
case historyitem_OfPieChart_SetSplitPos:
{
this.splitPos = data.oldPr;
break;
}
case historyitem_OfPieChart_SetSplitType:
{
this.splitType = data.oldPr;
break;
}
case historyitem_OfPieChart_SetVaryColors:
{
this.varyColors = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_OfPieChart_AddCustSplit:
{
this.custSplit.splice(data.pos, data.nSplit);
break;
}
case historyitem_OfPieChart_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_OfPieChart_SetGapWidth:
{
this.gapWidth = data.newPr;
break;
}
case historyitem_OfPieChart_SetOfPieType:
{
this.ofPieType = data.newPr;
break;
}
case historyitem_OfPieChart_SetSecondPieSize:
{
this.secondPieSize = data.newPr;
break;
}
case historyitem_OfPieChart_AddSer:
{
if(isRealObject(data.ser))
{
this.series.push(data.ser);
}
break;
}
case historyitem_OfPieChart_SetSerLines:
{
this.serLines = data.newPr;
break;
}
case historyitem_OfPieChart_SetSplitPos:
{
this.splitPos = data.newPr;
break;
}
case historyitem_OfPieChart_SetSplitType:
{
this.splitType = data.newPr;
break;
}
case historyitem_OfPieChart_SetVaryColors:
{
this.varyColors = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_OfPieChart_AddCustSplit:
{
w.WriteBool(isRealNumber(data.pos) && isRealNumber(data.nSplit));
if(isRealNumber(data.pos) && isRealNumber(data.nSplit))
{
w.WriteLong(data.pos);
w.WriteLong(data.nSplit);
}
break;
}
case historyitem_OfPieChart_SetDLbls:
case historyitem_OfPieChart_SetSerLines:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_OfPieChart_SetGapWidth:
case historyitem_OfPieChart_SetOfPieType:
case historyitem_OfPieChart_SetSecondPieSize:
case historyitem_OfPieChart_SetSplitType:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_OfPieChart_AddSer:
{
w.WriteBool(isRealObject(data.ser));
if(isRealObject(data.ser))
{
w.WriteString2(data.ser.Get_Id());
}
break;
}
case historyitem_OfPieChart_SetSplitPos:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteDouble(data.newPr);
}
break;
}
case historyitem_OfPieChart_SetVaryColors:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_OfPieChart_AddCustSplit:
{
if(r.GetBool())
{
var pos = r.GetLong();
var nSplit = r.GetLong();
this.custSplit.splice(pos, nSplit);
}
break;
}
case historyitem_OfPieChart_SetDLbls:
{
if(r.GetBool())
{
this.dLbls = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dLbls = null;
}
break;
}
case historyitem_OfPieChart_SetGapWidth:
{
if(r.GetBool())
{
this.gapWidth = r.GetLong();
}
else
{
this.gapWidth = null;
}
break;
}
case historyitem_OfPieChart_SetOfPieType:
{
if(r.GetBool())
{
this.ofPieType = r.GetLong();
}
else
{
this.ofPieType = null;
}
break;
}
case historyitem_OfPieChart_SetSecondPieSize:
{
if(r.GetBool())
{
this.secondPieSize = r.GetLong();
}
else
{
this.secondPieSize = null;
}
break;
}
case historyitem_OfPieChart_AddSer:
{
if(r.GetBool())
{
var ser = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(ser))
{
this.series.push(ser);
}
}
break;
}
case historyitem_OfPieChart_SetSerLines:
{
if(r.GetBool())
{
this.serLines = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.serLines = null;
}
break;
}
case historyitem_OfPieChart_SetSplitPos:
{
if(r.GetBool())
{
this.splitPos = r.GetDouble();
}
else
{
this.splitPos = null;
}
break;
}
case historyitem_OfPieChart_SetSplitType:
{
if(r.GetBool())
{
this.splitType = r.GetLong();
}
else
{
this.splitType = null;
}
break;
}
case historyitem_OfPieChart_SetVaryColors:
{
if(r.GetBool())
{
this.varyColors = r.GetBool();
}
else
{
this.varyColors = null;
}
break;
}
}
}
};
\ No newline at end of file
var PICTURE_FORMAT_STACK = 0;
var PICTURE_FORMAT_STACK_SCALE = 1;
var PICTURE_FORMAT_STACK_STRETCH = 2;
function CPictureOptions()
{
this.applyToEnd = null;
this.applyToFront = null;
this.applyToSides = null;
this.pictureFormat = null;
this.pictureStackUnit = null;
this.Id = g_oIdCounter.Get_NewId();
g_oIdCounter.Add(this, this.Id);
}
CPictureOptions.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PictureOptions;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setApplyToEnd: function(pr)
{
History.Add(this, {Type: historyitem_PictureOptions_SetApplyToEnd, oldPr: this.applyToEnd, newPr: pr});
this.applyToEnd = pr;
},
setApplyToFront: function(pr)
{
History.Add(this, {Type: historyitem_PictureOptions_SetApplyToFront, oldPr: this.applyToFront, newPr: pr});
this.applyToFront = pr;
},
setApplyToSides: function(pr)
{
History.Add(this, {Type: historyitem_PictureOptions_SetApplyToSides, oldPr: this.applyToSides, newPr: pr});
this.applyToSides = pr;
},
setPictureFormat: function(pr)
{
History.Add(this, {Type: historyitem_PictureOptions_SetPictureFormat, oldPr: this.pictureFormat, newPr: pr});
this.pictureFormat = pr;
},
setPictureStackUnit: function(pr)
{
History.Add(this, {Type: historyitem_PictureOptions_SetPictureStackUnit, oldPr: this.pictureStackUnit, newPr: pr});
this.pictureStackUnit = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_PictureOptions_SetApplyToEnd:
{
this.applyToEnd = data.oldPr;
break;
}
case historyitem_PictureOptions_SetApplyToFront:
{
this.applyToFront = data.oldPr;
break;
}
case historyitem_PictureOptions_SetApplyToSides:
{
this.applyToSides = data.oldPr;
break;
}
case historyitem_PictureOptions_SetPictureFormat:
{
this.pictureFormat = data.oldPr;
break;
}
case historyitem_PictureOptions_SetPictureStackUnit:
{
this.pictureStackUnit = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_PictureOptions_SetApplyToEnd:
{
this.applyToEnd = data.newPr;
break;
}
case historyitem_PictureOptions_SetApplyToFront:
{
this.applyToFront = data.newPr;
break;
}
case historyitem_PictureOptions_SetApplyToSides:
{
this.applyToSides = data.newPr;
break;
}
case historyitem_PictureOptions_SetPictureFormat:
{
this.pictureFormat = data.newPr;
break;
}
case historyitem_PictureOptions_SetPictureStackUnit:
{
this.pictureStackUnit = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PictureOptions_SetApplyToEnd:
case historyitem_PictureOptions_SetApplyToFront:
case historyitem_PictureOptions_SetApplyToSides:
{
writeBool(w, data.newPr);
break;
}
case historyitem_PictureOptions_SetPictureFormat:
{
writeLong(w, data.newPr);
break;
}
case historyitem_PictureOptions_SetPictureStackUnit:
{
writeDouble(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_PictureOptions_SetApplyToEnd:
{
this.applyToEnd = readBool(r);
break;
}
case historyitem_PictureOptions_SetApplyToFront:
{
this.applyToFront = readBool(r);
break;
}
case historyitem_PictureOptions_SetApplyToSides:
{
this.applyToSides= readBool(r);
break;
}
case historyitem_PictureOptions_SetPictureFormat:
{
this.pictureFormat = readLong(r);
break;
}
case historyitem_PictureOptions_SetPictureStackUnit:
{
this.pictureStackUnit = readDouble(r);
break;
}
}
}
};
\ No newline at end of file
function CPieChart()
{
this.dLbls = null;
this.firstSliceAng = null;
this.series = [];
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPieChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PieChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_PieChart_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setFirstSliceAng: function(pr)
{
History.Add(this, {Type: historyitem_PieChart_SetFirstSliceAng, oldPr: this.firstSliceAng, newPr: pr});
this.firstSliceAng = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_PieChart_SetFirstSliceAng, ser: ser});
this.series.push(ser);
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_PieChart_SetVaryColors, oldPr: this.varyColors, newPr: pr});
this.varyColors = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_PieChart_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_PieChart_SetFirstSliceAng:
{
this.firstSliceAng = data.oldPr;
break;
}
case historyitem_PieChart_AddSer:
{
this.series.push(data.ser);
break;
}
case historyitem_PieChart_SetVaryColors:
{
this.varyColors = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_PieChart_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_PieChart_SetFirstSliceAng:
{
this.firstSliceAng = data.newPr;
break;
}
case historyitem_PieChart_AddSer:
{
this.series.push(data.ser);
break;
}
case historyitem_PieChart_SetVaryColors:
{
this.varyColors = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PieChart_SetDLbls:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_PieChart_SetFirstSliceAng:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_PieChart_AddSer:
{
w.WriteBool(isRealObeject(data.ser));
if(isRealObeject(data.ser))
{
w.WriteString2(data.ser.Get_Id());
}
break;
}
case historyitem_PieChart_SetVaryColors:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_PieChart_SetDLbls:
{
if(r.GetBool())
{
this.dLbls = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dLbls = null;
}
break;
}
case historyitem_PieChart_SetFirstSliceAng:
{
if(r.GetBool())
{
this.firstSliceAng = r.GetLong();
}
else
{
this.firstSliceAng = null;
}
break;
}
case historyitem_PieChart_AddSer:
{
if(r.GetBool())
{
var ser = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(ser))
{
this.series.push(ser);
}
}
break;
}
case historyitem_PieChart_SetVaryColors:
{
if(r.GetBool())
{
this.varyColors = r.GetBool();
}
else
{
this.varyColors = null;
}
break;
}
}
}
};
\ No newline at end of file
function CPieSeries()
{
this.cat = null;
this.dLbls = null;
this.dPt = null;
this.explosion = null;
this.idx = null;
this.order = null;
this.spPr = null;
this.tx = null;
this.val = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPieSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PieSeries;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setCat: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setExplosion: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_PieSeries_SetCat, oldPr: this.cat, newPr:pr});
this.cat = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_PieSeries_SetCat:
{
this.cat = data.oldPr;
break;
}
case historyitem_PieSeries_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_PieSeries_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_PieSeries_SetExplosion:
{
this.explosion = data.oldPr;
break;
}
case historyitem_PieSeries_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_PieSeries_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_PieSeries_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_PieSeries_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_PieSeries_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_PieSeries_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_PieSeries_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_PieSeries_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_PieSeries_SetExplosion:
{
this.explosion = data.newPr;
break;
}
case historyitem_PieSeries_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_PieSeries_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_PieSeries_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_PieSeries_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_PieSeries_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PieSeries_SetCat:
case historyitem_PieSeries_SetDLbls:
case historyitem_PieSeries_SetDPt:
case historyitem_PieSeries_SetSpPr:
case historyitem_PieSeries_SetTx:
case historyitem_PieSeries_SetVal:
{
writeObject(w, data.newPr);
break;
}
case historyitem_PieSeries_SetExplosion:
case historyitem_PieSeries_SetIdx:
case historyitem_PieSeries_SetOrder:
{
writeLong(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_PieSeries_SetCat:
{
this.cat = readObject(r);
break;
}
case historyitem_PieSeries_SetDLbls:
{
this.dLbls = readObject(r);
break;
}
case historyitem_PieSeries_SetDPt:
{
this.dPt = readObject(r);
break;
}
case historyitem_PieSeries_SetExplosion:
{
this.explosion = readLong(r);
break;
}
case historyitem_PieSeries_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_PieSeries_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_PieSeries_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_PieSeries_SetTx:
{
this.tx = readObject(r);
break;
}
case historyitem_PieSeries_SetVal:
{
this.val = readObject(r);
break;
}
}
}
};
\ No newline at end of file
function CPivotFmt()
{
this.dLbl = null;
this.idx = null;
this.marker = null;
this.spPr = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPivotFmt.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PivotFmt;
},
setLbl: function(pr)
{
History.Add(this, {Type:historyitem_PivotFmt_SetDLbl, oldPr:this.dLbl, newPr: pr});
this.dLbl = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type:historyitem_PivotFmt_SetIdx, oldPr:this.idx, newPr: pr});
this.idx = pr;
},
setMarker: function(pr)
{
History.Add(this, {Type:historyitem_PivotFmt_SetMarker, oldPr:this.marker, newPr: pr});
this.marker = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type:historyitem_PivotFmt_SetSpPr, oldPr:this.spPr, newPr: pr});
this.spPr = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type:historyitem_PivotFmt_SetTxPr, oldPr:this.txPr, newPr: pr});
this.txPr = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_PivotFmt_SetDLbl:
{
this.dLbl = data.oldPr;
break;
}
case historyitem_PivotFmt_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_PivotFmt_SetMarker:
{
this.marker = data.oldPr;
break;
}
case historyitem_PivotFmt_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_PivotFmt_SetTxPr:
{
this.txPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch(data.Type)
{
case historyitem_PivotFmt_SetDLbl:
{
this.dLbl = data.newPr;
break;
}
case historyitem_PivotFmt_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_PivotFmt_SetMarker:
{
this.marker = data.newPr;
break;
}
case historyitem_PivotFmt_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_PivotFmt_SetTxPr:
{
this.txPr = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch(data.Type)
{
case historyitem_PivotFmt_SetDLbl:
case historyitem_PivotFmt_SetMarker:
case historyitem_PivotFmt_SetSpPr:
case historyitem_PivotFmt_SetTxPr:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_PivotFmt_SetIdx:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch(type)
{
case historyitem_PivotFmt_SetDLbl:
{
if(r.GetBool())
{
this.dLbl = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dLbl = null;
}
break;
}
case historyitem_PivotFmt_SetIdx:
{
if(r.GetBool())
{
this.idx = r.GetLong();
}
else
{
this.idx = null;
}
break;
}
case historyitem_PivotFmt_SetMarker:
{
if(r.GetBool())
{
this.marker = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.marker = null;
}
break;
}
case historyitem_PivotFmt_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
case historyitem_PivotFmt_SetTxPr:
{
if(r.GetBool())
{
this.txPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.txPr = null;
}
break;
}
}
}
};
function CPlotArea()
{
this.chart = null;
this.catAx = null;
this.dateAx = null;
this.dTable = null;
this.layout = null;
this.serAx = null;
this.spPr = null;
this.valAx = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CPlotArea.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_PlotArea;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setChart: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetChart, oldPr: this.chart, newPr:pr});
this.chart = pr;
},
setCatAx: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetCatAx, oldPr: this.catAx, newPr:pr});
this.catAx = pr;
},
setDateAx: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetDateAx, oldPr: this.dateAx, newPr:pr});
this.dateAx = pr;
},
setDTable: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetDTable, oldPr: this.dTable, newPr:pr});
this.dTable = pr;
},
setLayout: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetLayout, oldPr: this.layout, newPr:pr});
this.layout = pr;
},
setSerAx: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetSerAx, oldPr: this.serAx, newPr:pr});
this.serAx = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetSpPr, oldPr: this.spPr, newPr:pr});
this.spPr = pr;
},
setValAx: function(pr)
{
History.Add(this, {Type: historyitem_PlotArea_SetValAx, oldPr: this.valAx, newPr:pr});
this.valAx = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_PlotArea_SetCatAx:
{
this.catAx = data.oldPr;
break;
}
case historyitem_PlotArea_SetDateAx:
{
this.dateAx = data.oldPr;
break;
}
case historyitem_PlotArea_SetDTable:
{
this.dTable = data.oldPr;
break;
}
case historyitem_PlotArea_SetLayout:
{
this.layout = data.oldPr;
break;
}
case historyitem_PlotArea_SetSerAx:
{
this.serAx = data.oldPr;
break;
}
case historyitem_PlotArea_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_PlotArea_SetValAx:
{
this.valAx = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_PlotArea_SetCatAx:
{
this.catAx = data.newPr;
break;
}
case historyitem_PlotArea_SetDateAx:
{
this.dateAx = data.newPr;
break;
}
case historyitem_PlotArea_SetDTable:
{
this.dTable = data.newPr;
break;
}
case historyitem_PlotArea_SetLayout:
{
this.layout = data.newPr;
break;
}
case historyitem_PlotArea_SetSerAx:
{
this.serAx = data.newPr;
break;
}
case historyitem_PlotArea_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_PlotArea_SetValAx:
{
this.valAx = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_PlotArea_SetCatAx:
case historyitem_PlotArea_SetDateAx:
case historyitem_PlotArea_SetDTable:
case historyitem_PlotArea_SetLayout:
case historyitem_PlotArea_SetSerAx:
case historyitem_PlotArea_SetSpPr:
case historyitem_PlotArea_SetValAx:
{
writeObject(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_PlotArea_SetCatAx:
{
this.catAx = readObject(r);
break;
}
case historyitem_PlotArea_SetDateAx:
{
this.dateAx = readObject(r);
break;
}
case historyitem_PlotArea_SetDTable:
{
this.dTable = readObject(r);
break;
}
case historyitem_PlotArea_SetLayout:
{
this.layout = readObject(r);
break;
}
case historyitem_PlotArea_SetSerAx:
{
this.serAx = readObject(r);
break;
}
case historyitem_PlotArea_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_PlotArea_SetValAx:
{
this.valAx = readObject(r);
break;
}
}
}
};
\ No newline at end of file
function CRadarChart()
{
this.axId = null;
this.dLbls = null;
this.radarStyle = null;
this.series = [];
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CRadarChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_RadarChart;
},
setAxId: function(pr)
{
History.Add(this, {Type: historyitem_RadarChart_SetAxId, oldPr: this.axId, newPr:pr});
this.axId = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_RadarChart_SetDLbls, oldPr: this.dLbls, newPr:pr});
this.dLbls = pr;
},
setRadarStyle: function(pr)
{
History.Add(this, {Type: historyitem_RadarChart_SetRadarStyle, oldPr: this.radarStyle, newPr:pr});
this.radarStyle = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_RadarChart_AddSer, ser: ser});
this.series.push(ser);
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_RadarChart_SetVaryColors, oldPr: this.varyColors, newPr:pr});
this.varyColors = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_RadarChart_SetAxId:
{
this.axId = data.oldPr;
break;
}
case historyitem_RadarChart_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_RadarChart_SetRadarStyle:
{
this.radarStyle = data.oldPr;
break;
}
case historyitem_RadarChart_AddSer:
{
for(var i = this.series.length; i > -1; --i)
{
if(this.series[i] === data.ser)
{
this.series.splice(i, 1);
break;
}
}
break;
}
case historyitem_RadarChart_SetVaryColors:
{
this.varyColors = data.oldPr;
break;
}
}
} ,
Redo: function(data)
{
switch(data.Type)
{
case historyitem_RadarChart_SetAxId:
{
this.axId = data.newPr;
break;
}
case historyitem_RadarChart_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_RadarChart_SetRadarStyle:
{
this.radarStyle = data.newPr;
break;
}
case historyitem_RadarChart_AddSer:
{
this.series.push(data.ser);
break;
}
case historyitem_RadarChart_SetVaryColors:
{
this.varyColors = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch(data.Type)
{
case historyitem_RadarChart_SetAxId:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_RadarChart_SetDLbls:
case historyitem_RadarChart_SetRadarStyle:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_RadarChart_AddSer:
{
w.WriteBool(isRealObject(data.ser));
if(isRealObject(data.ser))
{
w.WriteString2(data.ser.Get_Id())
}
break;
}
case historyitem_RadarChart_SetVaryColors:
{
this.varyColors = data.newPr;
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
switch(data.Type)
{
case historyitem_RadarChart_SetAxId:
{
if(r.GetBool())
{
this.axId = r.GetLong();
}
else
{
this.axId = null;
}
break;
}
case historyitem_RadarChart_SetDLbls:
{
if(r.GetBool())
{
this.dLbls = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dLbls = null;
}
break;
}
case historyitem_RadarChart_SetRadarStyle:
{
if(r.GetBool())
{
this.radarStyle = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.radarStyle = null;
}
break;
}
case historyitem_RadarChart_AddSer:
{
if(r.GetBool())
{
var ser = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(ser))
{
this.series.push(ser);
}
}
break;
}
case historyitem_RadarChart_SetVaryColors:
{
if(r.GetBool())
{
this.varyColors = r.GetBool();
}
else
{
this.varyColors = null;
}
break;
}
}
}
};
function CRadarSeries()
{
this.cat = null;
this.dLbls = null;
this.dPt = null;
this.idx = null;
this.marker = null;
this.order = null;
this.spPr = null;
this.tx = null;
this.val = null;
this.Id = g_oIdCouner.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CRadarSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_RadarSeries;
},
Write_ToBinary2: function()
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
setCat: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.cat, newPr: pr});
this.cat = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.dPt, newPr: pr});
this.dPt = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setMarker: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.marker, newPr: pr});
this.marker = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.order, newPr: pr});
this.order = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.tx, newPr: pr});
this.tx = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_RadarSeries_SetCat, oldPr: this.val, newPr: pr});
this.val = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_RadarSeries_SetCat:
{
this.cat = data.oldPr;
break;
}
case historyitem_RadarSeries_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_RadarSeries_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_RadarSeries_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_RadarSeries_SetMarker:
{
this.marker = data.oldPr;
break;
}
case historyitem_RadarSeries_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_RadarSeries_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_RadarSeries_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_RadarSeries_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_RadarSeries_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_RadarSeries_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_RadarSeries_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_RadarSeries_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_RadarSeries_SetMarker:
{
this.marker = data.newPr;
break;
}
case historyitem_RadarSeries_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_RadarSeries_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_RadarSeries_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_RadarSeries_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_RadarSeries_SetCat:
case historyitem_RadarSeries_SetDLbls:
case historyitem_RadarSeries_SetDPt:
case historyitem_RadarSeries_SetMarker:
case historyitem_RadarSeries_SetSpPr:
case historyitem_RadarSeries_SetTx:
case historyitem_RadarSeries_SetVal:
{
writeObject(w, data.newPr);
break;
}
case historyitem_RadarSeries_SetIdx:
case historyitem_RadarSeries_SetOrder:
{
writeLong(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_RadarSeries_SetCat:
{
this.cat = readObject(r);
break;
}
case historyitem_RadarSeries_SetDLbls:
{
this.dLbls = readObject(r);
break;
}
case historyitem_RadarSeries_SetDPt:
{
this.dPt = readObject(r);
break;
}
case historyitem_RadarSeries_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_RadarSeries_SetMarker:
{
this.marker = readObject(r);
break;
}
case historyitem_RadarSeries_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_RadarSeries_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_RadarSeries_SetTx:
{
this.tx = readObject(r);
break;
}
case historyitem_RadarSeries_SetVal:
{
this.val = readObject(r);
break;
}
}
}
};
\ No newline at end of file
var ORIENTATION_MAX_MIN = 0;
var ORIENTATION_MIN_MAX = 1;
function CScaling()
{
this.logBase = null;
this.max = null;
this.min = null;
this.orientation = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CScaling.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Scaling;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setLogBase: function(pr)
{
History.Add(this, {Type: historyitem_Scaling_SetLogBase, oldPr: this.logBase, newPr: pr});
this.logBase = pr;
},
setMax: function(pr)
{
History.Add(this, {Type: historyitem_Scaling_SetLogBase, oldPr: this.logBase, newPr: pr});
this.logBase = pr;
},
setMin: function(pr)
{
History.Add(this, {Type: historyitem_Scaling_SetLogBase, oldPr: this.logBase, newPr: pr});
this.logBase = pr;
},
setOrientation: function(pr)
{
History.Add(this, {Type: historyitem_Scaling_SetLogBase, oldPr: this.logBase, newPr: pr});
this.logBase = pr;
},
Undo: function()
{},
Redo: function()
{},
Save_Changes: function()
{},
Load_Changes: function()
{}
};
\ No newline at end of file
var SCATTER_STYLE_LINE = 0;
var SCATTER_STYLE_LINE_MARKER = 1;
var SCATTER_STYLE_MARKER = 2;
var SCATTER_STYLE_NONE = 3;
var SCATTER_STYLE_SMOOTH = 4;
var SCATTER_STYLE_SMOOTH_MARKER = 5;
function CScatterChart()
{
this.axId = null;
this.dLbls = null;
this.scatterStyle = null;
this.series = [];
this.varyColors = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CScatterChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_ScatterChart;
},
setAxId: function(pr)
{
History.Add(this, {Type: historyitem_ScatterChart_SetAxId, oldPr: this.axId, newPr:pr});
this.axId = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_ScatterChart_SetDLbls, oldPr: this.dLbls, newPr:pr});
this.dLbls = pr;
},
SetScatterStyle: function(pr)
{
History.Add(this, {Type: historyitem_ScatterChart_SetScatterStyle, oldPr: this.scatterStyle, newPr:pr});
this.scatterStyle = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_ScatterChart_AddSer, ser: ser});
this.series.push(ser);
},
setVaryColors: function(pr)
{
History.Add(this, {Type: historyitem_ScatterChart_SetVaryColors, oldPr: this.varyColors, newPr:pr});
this.varyColors = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_ScatterChart_SetAxId:
{
this.axId = data.oldPr;
break;
}
case historyitem_ScatterChart_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_ScatterChart_SetScatterStyle:
{
this.scatterStyle = data.oldPr;
break;
}
case historyitem_ScatterChart_AddSer:
{
for(var i = this.series.length; i > -1; --i)
{
if(this.series[i] === data.ser)
{
this.series.splice(i, 1);
break;
}
}
break;
}
case historyitem_ScatterChart_SetVaryColors:
{
this.varyColors = data.oldPr;
break;
}
}
} ,
Redo: function(data)
{
switch(data.Type)
{
case historyitem_ScatterChart_SetAxId:
{
this.axId = data.newPr;
break;
}
case historyitem_ScatterChart_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_ScatterChart_SetScatterStyle:
{
this.scatterStyle = data.newPr;
break;
}
case historyitem_ScatterChart_AddSer:
{
this.series.push(data.ser);
break;
}
case historyitem_ScatterChart_SetVaryColors:
{
this.varyColors = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch(data.Type)
{
case historyitem_ScatterChart_SetAxId:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_ScatterChart_SetDLbls:
case historyitem_ScatterChart_SetScatterStyle:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_ScatterChart_AddSer:
{
w.WriteBool(isRealObject(data.ser));
if(isRealObject(data.ser))
{
w.WriteString2(data.ser.Get_Id())
}
break;
}
case historyitem_ScatterChart_SetVaryColors:
{
this.varyColors = data.newPr;
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
switch(data.Type)
{
case historyitem_ScatterChart_SetAxId:
{
if(r.GetBool())
{
this.axId = r.GetLong();
}
else
{
this.axId = null;
}
break;
}
case historyitem_ScatterChart_SetDLbls:
{
if(r.GetBool())
{
this.dLbls = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dLbls = null;
}
break;
}
case historyitem_ScatterChart_SetScatterStyle:
{
if(r.GetBool())
{
this.scatterStyle = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.scatterStyle = null;
}
break;
}
case historyitem_ScatterChart_AddSer:
{
if(r.GetBool())
{
var ser = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(ser))
{
this.series.push(ser);
}
}
break;
}
case historyitem_ScatterChart_SetVaryColors:
{
if(r.GetBool())
{
this.varyColors = r.GetBool();
}
else
{
this.varyColors = null;
}
break;
}
}
}
};
\ No newline at end of file
function CScatterSeries()
{
this.dLbls = null;
this.dPt = null;
this.errBars = null;
this.idx = null;
this.marker = null;
this.order = null;
this.smooth = null;
this.spPr = null;
this.trendline = null;
this.tx = null;
this.xVal = null;
this.yVal = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CScatterSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_ScatterSer;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetDLbls, oldPr: this.dLbls, newPr:pr});
this.dLbls = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetDPt, oldPr: this.dPt, newPr:pr});
this.dPt = pr;
},
setErrBars: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetErrBars, oldPr: this.errBars, newPr:pr});
this.errBars = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetIdx, oldPr: this.idx, newPr:pr});
this.idx = pr;
},
setMarker: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetMarker, oldPr: this.marker, newPr:pr});
this.marker = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetOrder, oldPr: this.order, newPr:pr});
this.order = pr;
},
setSmooth: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetSmooth, oldPr: this.smooth, newPr:pr});
this.smooth = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetSpPr, oldPr: this.spPr, newPr:pr});
this.spPr = pr;
},
setTrendline: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetTrendline, oldPr: this.trendline, newPr:pr});
this.trendline = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetTx, oldPr: this.tx, newPr:pr});
this.tx = pr;
},
setXVal: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetXVal, oldPr: this.xVal, newPr:pr});
this.xVal = pr;
},
setYVal: function(pr)
{
History.Add(this, {Type: historyitem_ScatterSer_SetYVal, oldPr: this.yVal, newPr:pr});
this.yVal = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_ScatterSer_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_ScatterSer_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_ScatterSer_SetErrBars:
{
this.errBars = data.oldPr;
break;
}
case historyitem_ScatterSer_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_ScatterSer_SetMarker:
{
this.marker = data.oldPr;
break;
}
case historyitem_ScatterSer_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_ScatterSer_SetSmooth:
{
this.smooth = data.oldPr;
break;
}
case historyitem_ScatterSer_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_ScatterSer_SetTrendline:
{
this.trendline = data.oldPr;
break;
}
case historyitem_ScatterSer_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_ScatterSer_SetXVal:
{
this.xVal = data.oldPr;
break;
}
case historyitem_ScatterSer_SetYVal:
{
this.yVal = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_ScatterSer_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_ScatterSer_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_ScatterSer_SetErrBars:
{
this.errBars = data.newPr;
break;
}
case historyitem_ScatterSer_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_ScatterSer_SetMarker:
{
this.marker = data.newPr;
break;
}
case historyitem_ScatterSer_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_ScatterSer_SetSmooth:
{
this.smooth = data.newPr;
break;
}
case historyitem_ScatterSer_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_ScatterSer_SetTrendline:
{
this.trendline = data.newPr;
break;
}
case historyitem_ScatterSer_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_ScatterSer_SetXVal:
{
this.xVal = data.newPr;
break;
}
case historyitem_ScatterSer_SetYVal:
{
this.yVal = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_ScatterSer_SetDLbls:
case historyitem_ScatterSer_SetDPt:
case historyitem_ScatterSer_SetErrBars:
case historyitem_ScatterSer_SetMarker:
case historyitem_ScatterSer_SetSpPr:
case historyitem_ScatterSer_SetTrendline:
case historyitem_ScatterSer_SetTx:
case historyitem_ScatterSer_SetXVal:
case historyitem_ScatterSer_SetYVal:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.Get_Id());
}
break;
}
case historyitem_ScatterSer_SetIdx:
case historyitem_ScatterSer_SetOrder:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_ScatterSer_SetSmooth:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
}
},
Load_Changes: function()
{
var type = r.GetLong();
switch (type)
{
case historyitem_ScatterSer_SetDLbls:
{
if(r.GetBool())
{
this.dLbls = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dLbls = null;
}
break;
}
case historyitem_ScatterSer_SetDPt:
{
if(r.GetBool())
{
this.dPt = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.dPt = null;
}
break;
}
case historyitem_ScatterSer_SetErrBars:
{
if(r.GetBool())
{
this.errBars = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.errBars = null;
}
break;
}
case historyitem_ScatterSer_SetIdx:
{
if(r.GetBool())
{
this.idx = r.GetLong();
}
else
{
this.idx = null;
}
break;
}
case historyitem_ScatterSer_SetMarker:
{
if(r.GetBool())
{
this.marker = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.marker = null;
}
break;
}
case historyitem_ScatterSer_SetOrder:
{
if(r.GetBool())
{
this.order = r.GetLong();
}
else
{
this.order = null;
}
break;
}
case historyitem_ScatterSer_SetSmooth:
{
if(r.GetBool())
{
this.smooth = r.GetBool();
}
else
{
this.smooth = null;
}
break;
}
case historyitem_ScatterSer_SetSpPr:
{
if(r.GetBool())
{
this.spPr = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.spPr = null;
}
break;
}
case historyitem_ScatterSer_SetTrendline:
{
if(r.GetBool())
{
this.trendline = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.trendline = null;
}
break;
}
case historyitem_ScatterSer_SetTx:
{
if(r.GetBool())
{
this.tx = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.tx = null;
}
break;
}
case historyitem_ScatterSer_SetXVal:
{
if(r.GetBool())
{
this.xVal = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.xVal = null;
}
break;
}
case historyitem_ScatterSer_SetYVal:
{
if(r.GetBool())
{
this.yVal = g_oTableId.Get_ById(r.GetString2());
}
else
{
this.yVal = null;
}
break;
}
}
}
};
\ No newline at end of file
var SERIES_TYPE_SCATTER = 0;
var SERIES_TYPE_AREA = 1;
var SERIES_TYPE_RADAR = 2;
var SERIES_TYPE_BAR = 3;
var SERIES_TYPE_LINE = 4;
var SERIES_TYPE_PIE = 5;
var SERIES_TYPE_SURFACE = 6;
var SERIES_TYPE_BUBBLE = 7;
function CSer()
{
this.type = null;
this.idx = null;
this.marker = null;
this.order = null;
this.smooth = null;
this.spPr = null;
this.trendline = null;
this.tx = null;
this.xVal = null;
this.yVal = null;
this.cat = null;
this.pictureOptions = null;
this.val = null;
this.invertIfNegative = null;
this.shape = null;
this.explosion = null;
this.bubble3D = null;
this.bubbleSize = null;
this.dLbls = null;
this.dPt = null;
this.errBars = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CSer.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Ser;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setType: function(type)
{
History.Add(this, {Type: historyitem_Ser_SetType, oldPr: this.type, newPr: type});
this.type = type;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetIdx, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setMarker: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetMarker, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetOrder, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setSmooth: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetSmooth, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetSpPr, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setTrendline: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetTrendline, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetTx, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setXVal: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetXVal, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setYVal: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetYVal, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setCat: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetCat, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setPictureOptions: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetPictureOptions, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetVal, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setInvertIfNegative: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetInvertIfNegative, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setShape: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetShape, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setExplosion: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetExplosion, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setBubble3D: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetBubble3D, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setBubbleSize: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetBubbleSize, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetDLbls, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setDPt: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetDPt, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
setErrBars: function(pr)
{
History.Add(this, {Type: historyitem_Ser_SetErrBars, oldPr: this.idx, newPr: pr});
this.pr = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Ser_SetType:
{
this.type = data.oldPr;
break;
}
case historyitem_Ser_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_Ser_SetMarker:
{
this.marker = data.oldPr;
break;
}
case historyitem_Ser_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_Ser_SetSmooth:
{
this.smooth = data.oldPr;
break;
}
case historyitem_Ser_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_Ser_SetTrendline:
{
this.trendline = data.oldPr;
break;
}
case historyitem_Ser_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_Ser_SetXVal:
{
this.xVal = data.oldPr;
break;
}
case historyitem_Ser_SetYVal:
{
this.yVal = data.oldPr;
break;
}
case historyitem_Ser_SetCat:
{
this.cat = data.oldPr;
break;
}
case historyitem_Ser_SetPictureOptions:
{
this.pictureOptions = data.oldPr;
break;
}
case historyitem_Ser_SetVal:
{
this.val = data.oldPr;
break;
}
case historyitem_Ser_SetInvertIfNegative:
{
this.invertIfNegative = data.oldPr;
break;
}
case historyitem_Ser_SetShape:
{
this.shape = data.oldPr;
break;
}
case historyitem_Ser_SetExplosion:
{
this.explosion = data.oldPr;
break;
}
case historyitem_Ser_SetBubble3D:
{
this.bubble3D = data.oldPr;
break;
}
case historyitem_Ser_SetBubbleSize:
{
this.bubbleSize = data.oldPr;
break;
}
case historyitem_Ser_SetDLbls:
{
this.dLbls = data.oldPr;
break;
}
case historyitem_Ser_SetDPt:
{
this.dPt = data.oldPr;
break;
}
case historyitem_Ser_SetErrBars:
{
this.errBars = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Ser_SetType:
{
this.type = data.newPr;
break;
}
case historyitem_Ser_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_Ser_SetMarker:
{
this.marker = data.newPr;
break;
}
case historyitem_Ser_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_Ser_SetSmooth:
{
this.smooth = data.newPr;
break;
}
case historyitem_Ser_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_Ser_SetTrendline:
{
this.trendline = data.newPr;
break;
}
case historyitem_Ser_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_Ser_SetXVal:
{
this.xVal = data.newPr;
break;
}
case historyitem_Ser_SetYVal:
{
this.yVal = data.newPr;
break;
}
case historyitem_Ser_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_Ser_SetPictureOptions:
{
this.pictureOptions = data.newPr;
break;
}
case historyitem_Ser_SetVal:
{
this.val = data.newPr;
break;
}
case historyitem_Ser_SetInvertIfNegative:
{
this.invertIfNegative = data.newPr;
break;
}
case historyitem_Ser_SetShape:
{
this.shape = data.newPr;
break;
}
case historyitem_Ser_SetExplosion:
{
this.explosion = data.newPr;
break;
}
case historyitem_Ser_SetBubble3D:
{
this.bubble3D = data.newPr;
break;
}
case historyitem_Ser_SetBubbleSize:
{
this.bubbleSize = data.newPr;
break;
}
case historyitem_Ser_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_Ser_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_Ser_SetErrBars:
{
this.errBars = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Ser_SetType:
case historyitem_Ser_SetIdx:
case historyitem_Ser_SetOrder:
{
w.WriteBool(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_Ser_SetMarker:
case historyitem_Ser_SetSpPr:
case historyitem_Ser_SetTx:
{
w.WriteBool(isRealObject(data.newPr));
if(isRealObject(data.newPr))
{
w.WriteString2(data.newPr.Get_Id());
}
break;
}
case historyitem_Ser_SetSmooth:
{
w.WriteBool(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
case historyitem_Ser_SetTrendline:
{
this.trendline = data.newPr;
break;
}
case historyitem_Ser_SetXVal:
{
this.xVal = data.newPr;
break;
}
case historyitem_Ser_SetYVal:
{
this.yVal = data.newPr;
break;
}
case historyitem_Ser_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_Ser_SetPictureOptions:
{
this.pictureOptions = data.newPr;
break;
}
case historyitem_Ser_SetVal:
{
this.val = data.newPr;
break;
}
case historyitem_Ser_SetInvertIfNegative:
{
this.invertIfNegative = data.newPr;
break;
}
case historyitem_Ser_SetShape:
{
this.shape = data.newPr;
break;
}
case historyitem_Ser_SetExplosion:
{
this.explosion = data.newPr;
break;
}
case historyitem_Ser_SetBubble3D:
{
this.bubble3D = data.newPr;
break;
}
case historyitem_Ser_SetBubbleSize:
{
this.bubbleSize = data.newPr;
break;
}
case historyitem_Ser_SetDLbls:
{
this.dLbls = data.newPr;
break;
}
case historyitem_Ser_SetDPt:
{
this.dPt = data.newPr;
break;
}
case historyitem_Ser_SetErrBars:
{
this.errBars = data.newPr;
break;
}
}
},
Load_Changes: function(r)
{}
};
\ No newline at end of file
function CTx()
{
this.strRef = null;
this.val = null;
this.Id = g_oIdCouter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CTx.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Tx;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setStrRef: function(pr)
{
History.Add(this, {Type: historyitem_Tx_SetStrRef, oldPr: this.strRef, newPr:pr});
this.strRef = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_Tx_SetVal, oldPr: this.strRef, newPr:pr});
this.val = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Tx_SetStrRef:
{
this.strRef = data.oldPr;
break;
}
case historyitem_Tx_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Tx_SetStrRef:
{
this.strRef = data.newPr;
break;
}
case historyitem_Tx_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Tx_SetStrRef:
{
writeObject(w, data.newPr);
break;
}
case historyitem_Tx_SetVal:
{
this.val = writeString(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_Tx_SetStrRef:
{
this.strRef = readObject(r);
break;
}
case historyitem_Tx_SetVal:
{
this.val = readString(r);
break;
}
}
}
};
This source diff could not be displayed because it is too large. You can view the blob instead.
function CStockChart()
{
this.axId = null;
this.dLbls = null;
this.dropLines = null;
this.hiLowLines = null;
this.series = [];
this.upDownBars = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CStockChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_StockChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setAxId: function(pr)
{
History.Add(this, {Type: historyitem_StockChart_SetAxId, oldPr: this.axId, newPr: pr});
this.axId = pr;
},
setDLbls: function(pr)
{
History.Add(this, {Type: historyitem_StockChart_SetDLbls, oldPr: this.dLbls, newPr: pr});
this.dLbls = pr;
},
setDropLines: function(pr)
{
History.Add(this, {Type: historyitem_StockChart_SetDropLines, oldPr: this.dropLines, newPr: pr});
this.dropLines = pr;
},
setHiLowLines: function(pr)
{
History.Add(this, {Type: historyitem_StockChart_SetHiLowLines, oldPr: this.hiLowLines, newPr: pr});
this.hiLowLines = pr;
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_StockChart_AddSer, ser: ser});
this.series.push(ser);
},
setUpDownBars: function(pr)
{
History.Add(this, {Type: historyitem_StockChart_SetUpDownBars, oldPr: this.upDownBars, newPr: pr});
this.upDownBars = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_StockChart_SetAxId:
{
this.axId = data.oldPr;
break
}
case historyitem_StockChart_SetDLbls:
{
this.dLbls = data.oldPr;
break
}
case historyitem_StockChart_SetDropLines:
{
this.dropLines = data.oldPr;
break
}
case historyitem_StockChart_SetHiLowLines:
{
this.hiLowLines = data.oldPr;
break
}
case historyitem_StockChart_AddSer:
{
this.series = data.oldPr;
break
}
case historyitem_StockChart_SetUpDownBars:
{
this.axId = data.oldPr;
break
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_StockChart_SetAxId:
{
this.axId = data.newPr;
break
}
case historyitem_StockChart_SetDLbls:
{
this.dLbls = data.newPr;
break
}
case historyitem_StockChart_SetDropLines:
{
this.dropLines = data.newPr;
break
}
case historyitem_StockChart_SetHiLowLines:
{
this.hiLowLines = data.newPr;
break
}
case historyitem_StockChart_AddSer:
{
this.series = data.newPr;
break
}
case historyitem_StockChart_SetUpDownBars:
{
this.axId = data.newPr;
break
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
},
Load_Changes: function(r)
{}
};
\ No newline at end of file
function CStrCache()
{
this.pt = null;
this.ptCount = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CStrCache.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_StrCache;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setPt: function(pr)
{
History.Add(this, {Type: historyitem_StrCache_Pt, oldPr: this.pt, newPr: pr});
this.pt = pr;
},
setPtCount: function(pr)
{
History.Add(this, {Type: historyitem_StrCache_PtCount, oldPr: this.ptCount, newPr: pr});
this.ptCount = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_StrCache_Pt:
{
this.pt = data.oldPr;
break;
}
case historyitem_StrCache_PtCount:
{
this.ptCount = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_StrCache_Pt:
{
this.pt = data.newPr;
break;
}
case historyitem_StrCache_PtCount:
{
this.ptCount = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_StrCache_Pt:
{
writeObject(w, data.newPr);
break;
}
case historyitem_StrCache_PtCount:
{
writeLong(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_StrCache_Pt:
{
this.pt = readObject(r);
break;
}
case historyitem_StrCache_PtCount:
{
this.ptCount = readLong(r);
break;
}
}
}
};
\ No newline at end of file
function CStringLiteral()
{
this.pt = null;
this.ptCount = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CStringLiteral.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_StringLiteral;
},
setPt: function(pr)
{
History.Add(this, {Type: historyitem_StringLiteral_SetPt, newPr: pr, oldPr: this.pt});
this.pt = pr;
},
setPtCount: function(pr)
{
History.Add(this, {Type: historyitem_StringLiteral_SetPtCount, newPr: pr, oldPr: this.ptCount});
this.ptCount = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_StringLiteral_SetPt:
{
this.pt = data.oldPr;
break;
}
case historyitem_StringLiteral_SetPtCount:
{
this.ptCount = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_StringLiteral_SetPt:
{
this.pt = data.newPr;
break;
}
case historyitem_StringLiteral_SetPtCount:
{
this.ptCount = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_StringLiteral_SetPt:
{
writeObject(data.newPr);
break;
}
case historyitem_StringLiteral_SetPtCount:
{
writeLong(data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_StringLiteral_SetPt:
{
this.pt = readObject(r);
break;
}
case historyitem_StringLiteral_SetPtCount:
{
this.ptCount = readLong(r);
break;
}
}
}
};
\ No newline at end of file
function CStringPoint()
{
this.idx = null;
this.val = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CStringPoint.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_StrPoint;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_StrPoint_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_StrPoint_SetVal, oldPr: this.val, newPr: pr});
this.val = pr;
},
Undo: function(data)
{
switch (data)
{
case historyitem_StrPoint_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_StrPoint_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data)
{
case historyitem_StrPoint_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_StrPoint_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_StrPoint_SetIdx:
{
writeLong(w, data.newPr);
break;
}
case historyitem_StrPoint_SetVal:
{
writeString(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch(type)
{
case historyitem_StrPoint_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_StrPoint_SetVal:
{
this.val = readString(r);
break;
}
}
}
};
\ No newline at end of file
function CStrRef()
{
this.f = null;
this.strCache = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CStrRef.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_StrRef;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setF: function(pr)
{
History.Add(this, {Type: historyitem_StrRef_SetF, oldPr: this.f, newPr: pr});
this.f = pr;
},
setStrCache: function(pr)
{
History.Add(this, {Type: historyitem_StrRef_SetStrCache, oldPr: this.strCache, newPr: pr});
this.strCache = pr;
},
Undo: function(data)
{
switch(data.Type)
{
case historyitem_StrRef_SetF:
{
this.f = data.oldPr;
break;
}
case historyitem_StrRef_SetStrCache:
{
this.strCache = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch(data.Type)
{
case historyitem_StrRef_SetF:
{
this.f = data.newPr;
break;
}
case historyitem_StrRef_SetStrCache:
{
this.strCache = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_StrRef_SetF:
{
writeString(w, data.newPr);
break;
}
case historyitem_StrRef_SetStrCache:
{
writeObject(data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_StrRef_SetF:
{
this.f = readString(r);
break;
}
case historyitem_StrRef_SetStrCache:
{
this.strCache = readObject(r);
break;
}
}
}
};
\ No newline at end of file
function CSurfaceChart()
{
this.axId = null;
this.bandFmts = [];
this.series = null;
this.wireframe = null;
this.Id = g_oTableId.Get_NewId();
}
CSurfaceChart.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_SurfaceChart;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setAxId: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceChart_SetAxId, oldPr: this.axId, newPr: pr});
this.axId = pr;
},
addBandFmt: function(fmt)
{
History.Add(this, {Type: historyitem_SurfaceChart_AddBandFmt, pr: fmt});
this.bandFmts.push(fmt);
},
addSer: function(ser)
{
History.Add(this, {Type: historyitem_SurfaceChart_AddSer, pr: ser});
this.series.push(ser);
},
setWireframe: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceChart_SetWireframe, oldPr: this.wireframe, newPr: pr});
this.wireframe = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_SurfaceChart_SetAxId:
{
this.axId = data.oldPr;
break;
}
case historyitem_SurfaceChart_AddBandFmt:
{
for(var i = this.bandFmts.length - 1; i > -1; --i)
{
if(this.bandFmts[i] === data.pr)
{
this.bandFmts.splice(i, 1);
break;
}
}
break;
}
case historyitem_SurfaceChart_AddSer:
{
for(var i = this.series.length - 1; i > -1; --i)
{
if(this.series[i] === data.pr)
{
this.series.splice(i, 1);
break;
}
}
break;
}
case historyitem_SurfaceChart_SetWireframe:
{
this.wireframe = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_SurfaceChart_SetAxId:
{
this.axId = data.newPr;
break;
}
case historyitem_SurfaceChart_AddBandFmt:
{
this.bandFmts.push(data.pr);
break;
}
case historyitem_SurfaceChart_AddSer:
{
this.series.push(data.pr);
break;
}
case historyitem_SurfaceChart_SetWireframe:
{
this.wireframe = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_SurfaceChart_SetAxId:
{
w.WriteLong(isRealNumber(data.newPr));
if(isRealNumber(data.newPr))
{
w.WriteLong(data.newPr);
}
break;
}
case historyitem_SurfaceChart_AddBandFmt:
case historyitem_SurfaceChart_AddSer:
{
w.WriteBool(isRealObject(data.pr));
if(isRealObject(data.pr))
{
w.WriteString(data.pr.Get_Id());
}
break;
}
case historyitem_SurfaceChart_SetWireframe:
{
w.WriteLong(isRealBool(data.newPr));
if(isRealBool(data.newPr))
{
w.WriteBool(data.newPr);
}
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_SurfaceChart_SetAxId:
{
if(r.GetBool())
{
this.axId = r.GetLong();
}
else
{
this.axId = null;
}
break;
}
case historyitem_SurfaceChart_AddBandFmt:
{
if(r.GetBool())
{
var fmt = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(fmt))
{
this.bandFmts.push(fmt);
}
}
break;
}
case historyitem_SurfaceChart_AddSer:
{
if(r.GetBool())
{
var ser = g_oTableId.Get_ById(r.GetString2());
if(isRealObject(ser))
{
this.series.push(ser);
}
}
break;
}
case historyitem_SurfaceChart_SetWireframe:
{
if(r.GetBool())
{
this.wireframe = r.GetBool();
}
else
{
this.wireframe = null;
}
break;
}
}
}
};
\ No newline at end of file
function CSurfaceSeries()
{
this.cat = null;
this.idx = null;
this.order = null;
this.spPr = null;
this.tx = null;
this.val = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CSurfaceSeries.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_SurfaceSeries;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_SurfaceSeries_SetCat:
{
this.cat = data.oldPr;
break;
}
case historyitem_SurfaceSeries_SetIdx:
{
this.idx = data.oldPr;
break;
}
case historyitem_SurfaceSeries_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_SurfaceSeries_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_SurfaceSeries_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_SurfaceSeries_SetVal:
{
this.val = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_SurfaceSeries_SetCat:
{
this.cat = data.newPr;
break;
}
case historyitem_SurfaceSeries_SetIdx:
{
this.idx = data.newPr;
break;
}
case historyitem_SurfaceSeries_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_SurfaceSeries_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_SurfaceSeries_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_SurfaceSeries_SetVal:
{
this.val = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_SurfaceSeries_SetCat:
case historyitem_SurfaceSeries_SetSpPr:
case historyitem_SurfaceSeries_SetTx:
case historyitem_SurfaceSeries_SetVal:
{
writeObject(w, data.newPr);
break;
}
case historyitem_SurfaceSeries_SetIdx:
case historyitem_SurfaceSeries_SetOrder:
{
writeLong(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_SurfaceSeries_SetCat:
{
this.cat = readObject(r);
break;
}
case historyitem_SurfaceSeries_SetIdx:
{
this.idx = readLong(r);
break;
}
case historyitem_SurfaceSeries_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_SurfaceSeries_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_SurfaceSeries_SetTx:
{
this.tx = readObject(r);
break;
}
case historyitem_SurfaceSeries_SetVal:
{
this.val = readObject(r);
break;
}
}
},
setCat: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceSeries_SetCat, oldPr: this.cat, newPr: pr});
this.cat = pr;
},
setIdx: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceSeries_SetIdx, oldPr: this.idx, newPr: pr});
this.idx = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceSeries_SetOrder, oldPr: this.order, newPr: pr});
this.order = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceSeries_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceSeries_SetTx, oldPr: this.tx, newPr: pr});
this.tx = pr;
},
setVal: function(pr)
{
History.Add(this, {Type: historyitem_SurfaceSeries_SetVal, oldPr: this.val, newPr: pr});
this.val = pr;
}
};
\ No newline at end of file
function CTitle()
{
this.layout = null;
this.overlay = null;
this.spPr = null;
this.tx = null;
this.txPr = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CTitle.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_Chart;
},
Write_ToBinary: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Id);
},
Read_FromBinary: function(r)
{
this.Id = r.GetString2();
},
setLayout: function(pr)
{
History.Add(this, {Type: historyitem_Title_SetLayout, oldPr: this.layout, newPr: pr});
this.layout = pr;
},
setOverlay: function(pr)
{
History.Add(this, {Type: historyitem_Title_SetOverlay, oldPr: this.overlay, newPr: pr});
this.overlay = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type: historyitem_Title_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTx: function(pr)
{
History.Add(this, {Type: historyitem_Title_SetTx, oldPr: this.tx, newPr: pr});
this.tx = pr;
},
setTxPr: function(pr)
{
History.Add(this, {Type: historyitem_Title_SetTxPr, oldPr: this.txPr, newPr: pr});
this.txPr = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Title_SetLayout:
{
this.layout = data.oldPr;
break;
}
case historyitem_Title_SetOverlay:
{
this.overlay = data.oldPr;
break;
}
case historyitem_Title_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_Title_SetTx:
{
this.tx = data.oldPr;
break;
}
case historyitem_Title_SetTxPr:
{
this.txPr = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Title_SetLayout:
{
this.layout = data.newPr;
break;
}
case historyitem_Title_SetOverlay:
{
this.overlay = data.newPr;
break;
}
case historyitem_Title_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_Title_SetTx:
{
this.tx = data.newPr;
break;
}
case historyitem_Title_SetTxPr:
{
this.txPr = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Title_SetLayout:
case historyitem_Title_SetSpPr:
case historyitem_Title_SetTx:
case historyitem_Title_SetTxPr:
{
writeObject(w, data.newPr);
break;
}
case historyitem_Title_SetOverlay:
{
writeBool(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_Title_SetLayout:
{
this.layout = readObject(r);
break;
}
case historyitem_Title_SetOverlay:
{
this.overlay = readBool(r);
break;
}
case historyitem_Title_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_Title_SetTx:
{
this.tx = readObject(r);
break;
}
case historyitem_Title_SetTxPr:
{
this.txPr = readObject(r);
break;
}
}
}
};
\ No newline at end of file
var TRENDLINE_TYPE_EXP = 0;
var TRENDLINE_TYPE_LINEAR = 1;
var TRENDLINE_TYPE_LOG = 2;
var TRENDLINE_TYPE_MOVING_AVG = 3;
var TRENDLINE_TYPE_POLY = 4;
var TRENDLINE_TYPE_POWER = 5;
function CTrendLine()
{
this.backward = null;
this.dispEq = null;
this.dispRSqr = null;
this.forward = null;
this.intercept = null;
this.name = null;
this.order = null;
this.period = null;
this.spPr = null;
this.trendlineLbl = null;
this.trendlineType = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CTrendLine.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_TrendLine;
},
setBackward: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetBackward, oldPr: this.backward, newPr: pr});
this.backward = pr;
},
setDispEq: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetDispEq, oldPr: this.dispEq, newPr: pr});
this.dispEq = pr;
},
setDispRSqr: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetDispRSqr, oldPr: this.dispRSqr, newPr: pr});
this.dispRSqr = pr;
},
setForward: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetForward, oldPr: this.forward, newPr: pr});
this.forward = pr;
},
setIntercept: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetIntercept, oldPr: this.intercept, newPr: pr});
this.intercept = pr;
},
setName: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetName, oldPr: this.name, newPr: pr});
this.name = pr;
},
setOrder: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetOrder, oldPr: this.order, newPr: pr});
this.order = pr;
},
setPeriod: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetPeriod, oldPr: this.period, newPr: pr});
this.period = pr;
},
setSpPr: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetSpPr, oldPr: this.spPr, newPr: pr});
this.spPr = pr;
},
setTrendlineLbl: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetTrendlineLbl, oldPr: this.trendlineLbl, newPr: pr});
this.trendlineLbl = pr;
},
setTrendlineType: function(pr)
{
History.Add(this, {Type:historyitem_Trendline_SetTrendlineType, oldPr: this.trendlineType, newPr: pr});
this.trendlineType = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_Trendline_SetBackward:
{
this.backward = data.oldPr;
break;
}
case historyitem_Trendline_SetDispEq:
{
this.dispEq = data.oldPr;
break;
}
case historyitem_Trendline_SetDispRSqr:
{
this.dispRSqr = data.oldPr;
break;
}
case historyitem_Trendline_SetForward:
{
this.forward = data.oldPr;
break;
}
case historyitem_Trendline_SetIntercept:
{
this.intercept = data.oldPr;
break;
}
case historyitem_Trendline_SetName:
{
this.name = data.oldPr;
break;
}
case historyitem_Trendline_SetOrder:
{
this.order = data.oldPr;
break;
}
case historyitem_Trendline_SetPeriod:
{
this.period = data.oldPr;
break;
}
case historyitem_Trendline_SetSpPr:
{
this.spPr = data.oldPr;
break;
}
case historyitem_Trendline_SetTrendlineLbl:
{
this.trendlineLbl = data.oldPr;
break;
}
case historyitem_Trendline_SetTrendlineType:
{
this.trendlineType = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_Trendline_SetBackward:
{
this.backward = data.newPr;
break;
}
case historyitem_Trendline_SetDispEq:
{
this.dispEq = data.newPr;
break;
}
case historyitem_Trendline_SetDispRSqr:
{
this.dispRSqr = data.newPr;
break;
}
case historyitem_Trendline_SetForward:
{
this.forward = data.newPr;
break;
}
case historyitem_Trendline_SetIntercept:
{
this.intercept = data.newPr;
break;
}
case historyitem_Trendline_SetName:
{
this.name = data.newPr;
break;
}
case historyitem_Trendline_SetOrder:
{
this.order = data.newPr;
break;
}
case historyitem_Trendline_SetPeriod:
{
this.period = data.newPr;
break;
}
case historyitem_Trendline_SetSpPr:
{
this.spPr = data.newPr;
break;
}
case historyitem_Trendline_SetTrendlineLbl:
{
this.trendlineLbl = data.newPr;
break;
}
case historyitem_Trendline_SetTrendlineType:
{
this.trendlineType = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_Trendline_SetBackward:
case historyitem_Trendline_SetForward:
case historyitem_Trendline_SetIntercept:
{
writeDouble(w, data.newPr);
break;
}
case historyitem_Trendline_SetDispEq:
case historyitem_Trendline_SetDispRSqr:
{
writeBool(w, data.newPr);
break;
}
case historyitem_Trendline_SetName:
{
writeString(w, data.newPr);
break;
}
case historyitem_Trendline_SetOrder:
case historyitem_Trendline_SetPeriod:
case historyitem_Trendline_SetTrendlineType:
{
writeLong(w, data.newPr);
break;
}
case historyitem_Trendline_SetSpPr:
case historyitem_Trendline_SetTrendlineLbl:
{
writeObject(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_Trendline_SetBackward:
{
this.backward = readDouble(r);
break;
}
case historyitem_Trendline_SetDispEq:
{
this.dispEq = readBool(r);
break;
}
case historyitem_Trendline_SetDispRSqr:
{
this.dispRSqr = readBool(r);
break;
}
case historyitem_Trendline_SetForward:
{
this.forward = readDouble(r);
break;
}
case historyitem_Trendline_SetIntercept:
{
this.intercept = readDouble(r);
break;
}
case historyitem_Trendline_SetName:
{
this.name = readString(r);
break;
}
case historyitem_Trendline_SetOrder:
{
this.order = readLong(r);
break;
}
case historyitem_Trendline_SetPeriod:
{
this.period = readLong(r);
break;
}
case historyitem_Trendline_SetSpPr:
{
this.spPr = readObject(r);
break;
}
case historyitem_Trendline_SetTrendlineLbl:
{
this.trendlineLbl = readObject(r);
break;
}
case historyitem_Trendline_SetTrendlineType:
{
this.trendlineType = readLong(r);
break;
}
}
}
};
function CUpDownBars()
{
this.downBars = null;
this.gapWidth = null;
this.upBars = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CUpDownBars.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_UpDownBars;
},
setDownBars: function(pr)
{
History.Add(this, {Type: historyitem_UpDownBars_SetDownBars, oldPr: this.downBars, newPr:pr});
this.downBars = pr;
},
setGapWidth: function(pr)
{
History.Add(this, {Type: historyitem_UpDownBars_SetGapWidth, oldPr: this.downBars, newPr:pr});
this.downBars = pr;
},
setUpBars: function(pr)
{
History.Add(this, {Type: historyitem_UpDownBars_SetUpBars, oldPr: this.downBars, newPr:pr});
this.downBars = pr;
},
Undo: function(data)
{},
Redo: function(data)
{},
Write_ToBinary2: function(w)
{},
Read_FromBinary2: function(r)
{},
Load_Changes: function(r)
{},
Save_Changes: function(data, w)
{}
};
\ No newline at end of file
function CXVal()
{
this.multiLvlStrRef = null;
this.numLit = null;
this.numRef = null;
this.strLit = null;
this.strRef = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CXVal.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_XVal;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id());
},
Read_FromBinary2: function(r)
{
this.Id = r.GetString2();
},
setMultiLvlStrRef: function(pr)
{
History.Add(this, {Type: historyitem_XVal_SetMultiLvlStrRef, oldPr: this.multiLvlStrRef, newPr: pr});
this.multiLvlStrRef = pr;
},
setNumLit: function(pr)
{
History.Add(this, {Type: historyitem_XVal_SetNumLit, oldPr: this.numLit, newPr: pr});
this.numLit = pr;
},
setNumRef: function(pr)
{
History.Add(this, {Type: historyitem_XVal_SetNumRef, oldPr: this.numRef, newPr: pr});
this.numRef = pr;
},
setStrLit: function(pr)
{
History.Add(this, {Type: historyitem_XVal_SetStrLit, oldPr: this.strLit, newPr: pr});
this.strLit = pr;
},
setStrRef: function(pr)
{
History.Add(this, {Type: historyitem_XVal_SetStrRef, oldPr: this.strRef, newPr: pr});
this.strRef = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_XVal_SetMultiLvlStrRef:
{
this.multiLvlStrRef = data.oldPr;
break;
}
case historyitem_XVal_SetNumLit:
{
this.numLit = data.oldPr;
break;
}
case historyitem_XVal_SetNumRef:
{
this.numRef = data.oldPr;
break;
}
case historyitem_XVal_SetStrLit:
{
this.strLit = data.oldPr;
break;
}
case historyitem_XVal_SetStrRef:
{
this.strRef = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_XVal_SetMultiLvlStrRef:
{
this.multiLvlStrRef = data.newPr;
break;
}
case historyitem_XVal_SetNumLit:
{
this.numLit = data.newPr;
break;
}
case historyitem_XVal_SetNumRef:
{
this.numRef = data.newPr;
break;
}
case historyitem_XVal_SetStrLit:
{
this.strLit = data.newPr;
break;
}
case historyitem_XVal_SetStrRef:
{
this.strRef = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_XVal_SetMultiLvlStrRef:
case historyitem_XVal_SetNumLit:
case historyitem_XVal_SetNumRef:
case historyitem_XVal_SetStrLit:
case historyitem_XVal_SetStrRef:
{
writeObject(data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_XVal_SetMultiLvlStrRef:
{
this.multiLvlStrRef = readObject(r);
break;
}
case historyitem_XVal_SetNumLit:
{
this.numLit = readObject(r);
break;
}
case historyitem_XVal_SetNumRef:
{
this.numRef = readObject(r);
break;
}
case historyitem_XVal_SetStrLit:
{
this.strLit = readObject(r);
break;
}
case historyitem_XVal_SetStrRef:
{
this.strRef = readObject(r);
break;
}
}
}
};
\ No newline at end of file
function CYVal()
{
this.numLit = null;
this.numRef = null;
this.Id = g_oIdCounter.Get_NewId();
g_oTableId.Add(this, this.Id);
}
CYVal.prototype =
{
Get_Id: function()
{
return this.Id;
},
getObjectType: function()
{
return historyitem_type_YVal;
},
Write_ToBinary2: function(w)
{
w.WriteLong(this.getObjectType());
w.WriteString2(this.Get_Id())
},
Read_FromBinary2: function(r)
{
this.Id = r.GetLong();
},
setNumLit: function(pr)
{
History.Add(this, {Type:historyitem_YVal_SetNumLit, oldPr: this.numLit, newPr: pr});
this.numLit = pr;
},
setNumRef: function(pr)
{
History.Add(this, {Type:historyitem_YVal_SetNumRef, oldPr: this.numRef, newPr: pr});
this.numRef = pr;
},
Undo: function(data)
{
switch (data.Type)
{
case historyitem_YVal_SetNumLit:
{
this.numLit = data.oldPr;
break;
}
case historyitem_YVal_SetNumRef:
{
this.numRef = data.oldPr;
break;
}
}
},
Redo: function(data)
{
switch (data.Type)
{
case historyitem_YVal_SetNumLit:
{
this.numLit = data.newPr;
break;
}
case historyitem_YVal_SetNumRef:
{
this.numRef = data.newPr;
break;
}
}
},
Save_Changes: function(data, w)
{
w.WriteLong(data.Type);
switch (data.Type)
{
case historyitem_YVal_SetNumLit:
case historyitem_YVal_SetNumRef:
{
writeObject(w, data.newPr);
break;
}
}
},
Load_Changes: function(r)
{
var type = r.GetLong();
switch (type)
{
case historyitem_YVal_SetNumLit:
{
this.numLit = readObject(r);
break;
}
case historyitem_YVal_SetNumRef:
{
this.numRef = readObject(r);
break;
}
}
}
};
\ No newline at end of file
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