Commit 4c3cacea authored by Alexander.Trofimov's avatar Alexander.Trofimov

delete unused code

parent e4dff10d
......@@ -399,31 +399,7 @@ function (window, undefined) {
this.AdvancedTableInfoSettings = 40;
this.GlobalTableIdAdd = 44;
this.GraphicObjects = 45;
this.GOPairProps = 46;
this.GOSingleProp = 47;
this.GOShapeRecalcTransform = 48;
this.GOAddAdjustment = 49;
this.GOAddGuide = 50;
this.GOAddCnx = 51;
this.GOHandleXY = 52;
this.GOHandlePolar = 53;
this.GOAddPathCommand = 54;
this.GOAddObject = 55;
this.GOAddGeometryRect = 56;
this.GOPathLineToMoveTo = 57;
this.GOPathArcTo = 58;
this.GOPathQuadBezTo = 59;
this.GOPathCubicBezTo = 60;
this.GOPathClose = 61;
this.GOSetAdjustmentValue = 62;
this.AddFormatTableOptions = 63;
this.DocContentAddItem = 64;
this.DocContentRemoveItems = 65;
this.DocContentParaItemId = 66;
this.ParagraphAddParaItem = 67;
this.ParagraphParaItemAdd = 68;
this.SheetPr = 69;
this.DynamicFilter = 75;
......@@ -556,71 +532,8 @@ function (window, undefined) {
case this.ThemeColor:
return new AscCommonExcel.ThemeColor();
break;
case this.GraphicObjects:
return new UndoRedoDataGraphicObjects();
break;
case this.GlobalTableIdAdd:
return new UndoRedoData_GTableIdAdd();
break;
case this.GOPairProps:
return new UndoRedoDataGOPairProps();
break;
case this.GOSingleProp:
return new UndoRedoDataGOSingleProp();
break;
case this.GOShapeRecalcTransform:
return new UndoRedoDataShapeRecalc();
break;
case this.GOAddAdjustment:
return new UndoRedoDataAddAdjustment();
break;
case this.GOAddGuide:
return new UndoRedoDataAddGuide();
break;
case this.GOAddCnx:
return new UndoRedoDataAddCnx();
break;
case this.GOHandleXY:
return new UndoRedoDataAddHandleXY();
break;
case this.GOHandlePolar:
return new UndoRedoDataAddHandlePolar();
break;
case this.GOAddPathCommand:
return new UndoRedoDataAddPathCommand();
break;
case this.GOAddObject:
return new UndoRedoDataAddObject();
break;
case this.GOAddGeometryRect:
return new UndoRedoDataAddGeometryRect();
break;
case this.GOPathLineToMoveTo:
return new UndoRedoDataMoveToLineTo();
break;
case this.GOPathArcTo:
return new UndoRedoDataArcTo();
break;
case this.GOPathQuadBezTo:
return new UndoRedoDataQuadBezTo();
break;
case this.GOPathCubicBezTo:
return new UndoRedoDataCubicBezTo();
break;
case this.GOPathClose:
return new UndoRedoDataClosePath();
break;
case this.GOSetAdjustmentValue:
return new UndoRedoDataSetAdjustmentValue();
case this.ParagraphAddParaItem:
return new UndoRedoDataAddParaItem();
case this.ParagraphParaItemAdd:
return new UndoRedoData_historyitem_Paragraph_AddItem();
case this.DefinedName:
return new UndoRedoData_DefinedNames();
case this.PivotTable:
return new UndoRedoData_PivotTable();
}
......@@ -1231,422 +1144,6 @@ function (window, undefined) {
}
};
function UndoRedoData_GTableIdAdd(object, id) {
if (AscCommon.isRealObject(object) && typeof object.getObjectType === "function") {
this.objectType = object.getObjectType();
}
this.id = id;
}
UndoRedoData_GTableIdAdd.prototype.Properties = {
objectType: 0, id: 1
};
UndoRedoData_GTableIdAdd.prototype.getType = function () {
return UndoRedoDataTypes.GlobalTableIdAdd;
};
UndoRedoData_GTableIdAdd.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoData_GTableIdAdd.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.objectType:
return this.objectType;
case this.Properties.id:
return this.id;
}
return null;
};
UndoRedoData_GTableIdAdd.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.objectType: {
this.objectType = value;
break;
}
case this.Properties.id: {
this.id = value;
break;
}
}
};
function UndoRedoData_historyitem_Paragraph_AddItem(startPos, endPos, itemsIds) {
this.startPos = startPos;
this.endPos = endPos;
this.itemsIds = itemsIds;
}
UndoRedoData_historyitem_Paragraph_AddItem.prototype.Properties = {
startPos: 0, endPos: 1, itemsIds: 2
};
UndoRedoData_historyitem_Paragraph_AddItem.prototype.getType = function () {
return UndoRedoDataTypes.ParagraphParaItemAdd;
};
UndoRedoData_historyitem_Paragraph_AddItem.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoData_historyitem_Paragraph_AddItem.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.startPos:
return this.startPos;
case this.Properties.endPos:
return this.endPos;
case this.Properties.itemsIds:
return this.itemsIds;
}
return null;
};
UndoRedoData_historyitem_Paragraph_AddItem.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.startPos: {
this.startPos = value;
break;
}
case this.Properties.endPos: {
this.endPos = value;
break;
}
case this.Properties.itemsIds: {
this.itemsIds = value;
}
}
};
function UndoRedoDataDocContentAddItem(pos, objectId) {
this.pos = pos;
this.objectId = objectId;
}
UndoRedoDataDocContentAddItem.prototype.Properties = {
pos: 0, objectId: 1
};
UndoRedoDataDocContentAddItem.prototype.getType = function () {
return UndoRedoDataTypes.DocContentAddItem;
};
UndoRedoDataDocContentAddItem.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataDocContentAddItem.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.pos:
return this.pos;
case this.Properties.objectId:
return this.objectId;
}
return null;
};
UndoRedoDataDocContentAddItem.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.pos: {
this.pos = value;
break;
}
case this.Properties.objectId: {
this.objectId = value;
break;
}
}
};
function UndoRedoDataTypeParaItemId(itemId) {
this.itemId = itemId;
}
UndoRedoDataTypeParaItemId.prototype.Properties = {
itemId: 0
};
UndoRedoDataTypeParaItemId.prototype.getType = function () {
return UndoRedoDataTypes.DocContentParaItemId;
};
UndoRedoDataTypeParaItemId.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataTypeParaItemId.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.itemId:
return this.itemId;
}
return null;
};
UndoRedoDataTypeParaItemId.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.itemId: {
this.itemId = value;
break;
}
}
};
function UndoRedoDataAddParaItem(type, value) {
this.type = type;
this.value = value;
}
UndoRedoDataAddParaItem.prototype.Properties = {
type: 0, value: 1
};
UndoRedoDataAddParaItem.prototype.getType = function () {
return UndoRedoDataTypes.ParagraphAddParaItem;
};
UndoRedoDataAddParaItem.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddParaItem.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.type:
return this.type;
case this.Properties.value:
return this.value;
}
return null;
};
UndoRedoDataAddParaItem.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.type: {
this.type = value;
break;
}
case this.Properties.value: {
this.value = value;
break;
}
}
};
function UndoRedoDataDocContentRemoveItems(pos, aItems) {
this.pos = pos;
this.aItems = aItems;
}
UndoRedoDataDocContentRemoveItems.prototype.Properties = {
pos: 0, aItems: 1
};
UndoRedoDataDocContentRemoveItems.prototype.getType = function () {
return UndoRedoDataTypes.DocContentRemoveItems;
};
UndoRedoDataDocContentRemoveItems.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataDocContentRemoveItems.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.pos:
return this.pos;
case this.Properties.aItems:
return this.aItems;
}
return null;
};
UndoRedoDataDocContentRemoveItems.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.pos: {
this.pos = value;
break;
}
case this.Properties.aItems: {
this.aItems = value;
break;
}
}
};
function UndoRedoDataParaPr(paraPr) {
this.ContextualSpacing = paraPr.ContextualSpacing;
this.IndLeft = paraPr.Ind.Left; // Левый отступ
this.IndRight = paraPr.Ind.Right; // Правый отступ
this.IndFirstLine = paraPr.Ind.FirstLine; // Первая строка// Удалять ли интервал между параграфами одинакового стиля
this.Jc = paraPr.Jc; // Прилегание параграфа
this.KeepLines = paraPr.KeepLines; // Неразрывный параграф
this.KeepNext = paraPr.KeepNext; // Не разъединять со следующим параграфом
this.PageBreakBefore = paraPr.PageBreakBefore; // Разрыв страницы перед параграфом
this.SpacingLine = paraPr.Spacing.Line; // Расстояние между строками внутри абзаца
this.SpacingLineRule = paraPr.Spacing.LineRule; // Тип расстрояния между строками
this.SpacingBefore = paraPr.Spacing.Before; // Дополнительное расстояние до абзаца
this.SpacingBeforeAutoSpacing = paraPr.Spacing.BeforeAutoSpacing; // Использовать ли автоматический расчет расстояния до параграфа
this.SpacingAfter = paraPr.Spacing.After; // Дополнительное расстояние после абзаца
this.SpacingAfterAutoSpacing = paraPr.Spacing.AfterAutoSpacing; // Использовать ли автоматический расчет расстояния после параграфа
this.Shd = paraPr.Shd; // Заливка параграфа
this.BrdFirst = paraPr.BrdFirst; // Является ли данный параграф первым в группе параграфов с одинаковыми краями и настройками границ
this.BrdLast = paraPr.BrdLast; // Является ли данный параграф последним в группе параграфов с одинаковыми краями и настройками границ
this.BrdBetween = paraPr.BrdBetween;
this.BrdBottom = paraPr.BrdBottom;
this.BrdLeft = paraPr.BrdLeft;
this.BrdRight = paraPr.BrdRight;
this.BrdTop = paraPr.BrdTop;
this.WidowControl = paraPr.WidowControl; // Запрет висячих строк
this.Tabs = paraPr.Tabs; // Заданные табы
this.NumPr = paraPr.NumPr; // Нумерация
this.PStyle = paraPr.PStyle;// Стиль параграфа
}
UndoRedoDataParaPr.prototype.Properties = {
ContextualSpacing: 0, IndLeft: 1, // Левый отступ
IndRight: 2, // Правый отступ
IndFirstLine: 3, // Первая строка// Удалять ли интервал между параграфами одинакового стиля
Jc: 4, // Прилегание параграфа
KeepLines: 5, // Неразрывный параграф
KeepNext: 6, // Не разъединять со следующим параграфом
PageBreakBefore: 7, // Разрыв страницы перед параграфом
SpacingLine: 8, // Расстояние между строками внутри абзаца
SpacingLineRule: 9, // Тип расстрояния между строками
SpacingBefore: 10, // Дополнительное расстояние до абзаца
SpacingBeforeAutoSpacing: 11, // Использовать ли автоматический расчет расстояния до параграфа
SpacingAfter: 12, // Дополнительное расстояние после абзаца
SpacingAfterAutoSpacing: 13, // Использовать ли автоматический расчет расстояния после параграфа
Shd: 14, // Заливка параграфа
BrdFirst: 15, // Является ли данный параграф первым в группе параграфов с одинаковыми краями и настройками границ
BrdLast: 16, // Является ли данный параграф последним в группе параграфов с одинаковыми краями и настройками границ
BrdBetween: 17, BrdBottom: 18, BrdLeft: 19, BrdRight: 20, BrdTop: 21, WidowControl: 22, // Запрет висячих строк
Tabs: 23, // Заданные табы
NumPr: 24, // Нумерация
PStyle: 25 // Стиль параграфа
};
UndoRedoDataParaPr.prototype.getType = function () {
return UndoRedoDataTypes.SheetPositions;
};
UndoRedoDataParaPr.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataParaPr.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.ContextualSpacing :
return this.ContextualSpacing;
case this.Properties.IndLeft :
return this.IndLeft;
case this.Properties.IndRight :
return this.IndRight;
case this.Properties.IndFirstLine :
return this.IndFirstLine;
case this.Properties.Jc :
return this.Jc;
case this.Properties.KeepLines :
return this.KeepLines;
case this.Properties.KeepNext :
return this.KeepNext;
case this.Properties.PageBreakBefore :
return this.PageBreakBefore;
case this.Properties.SpacingLine :
return this.SpacingLine;
case this.Properties.SpacingLineRule :
return this.SpacingLineRule;
case this.Properties.SpacingBefore :
return this.SpacingBefore;
case this.Properties.SpacingBeforeAutoSpacing:
return this.SpacingBeforeAutoSpacing;
case this.Properties.SpacingAfter :
return this.SpacingAfter;
case this.Properties.SpacingAfterAutoSpacing :
return this.SpacingAfterAutoSpacing;
case this.Properties.Shd :
return this.Shd;
case this.Properties.BrdFirst :
return this.BrdFirst;
case this.Properties.BrdLast :
return this.BrdLast;
case this.Properties.BrdBetween :
return this.BrdBetween;
case this.Properties.BrdBottom :
return this.BrdBottom;
case this.Properties.BrdLeft :
return this.BrdLeft;
case this.Properties.BrdRight :
return this.BrdRight;
case this.Properties.BrdTop :
return this.BrdTop;
case this.Properties.WidowControl :
return this.WidowControl;
case this.Properties.Tabs :
return this.Tabs;
case this.Properties.NumPr :
return this.NumPr;
case this.Properties.PStyle :
return this.PStyle;
}
return null;
};
UndoRedoDataParaPr.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.ContextualSpacing :
this.ContextualSpacing = value;
break;
case this.Properties.IndLeft :
this.IndLeft = value;
break;
case this.Properties.IndRight :
this.IndRight = value;
break;
case this.Properties.IndFirstLine :
this.IndFirstLine = value;
break;
case this.Properties.Jc :
this.Jc = value;
break;
case this.Properties.KeepLines :
this.KeepLines = value;
break;
case this.Properties.KeepNext :
this.KeepNext = value;
break;
case this.Properties.PageBreakBefore :
this.PageBreakBefore = value;
break;
case this.Properties.SpacingLine :
this.SpacingLine = value;
break;
case this.Properties.SpacingLineRule :
this.SpacingLineRule = value;
break;
case this.Properties.SpacingBefore :
this.SpacingBefore = value;
break;
case this.Properties.SpacingBeforeAutoSpacing:
this.SpacingBeforeAutoSpacing = value;
break;
case this.Properties.SpacingAfter :
this.SpacingAfter = value;
break;
case this.Properties.SpacingAfterAutoSpacing :
this.SpacingAfterAutoSpacing = value;
break;
case this.Properties.Shd :
this.Shd = value;
break;
case this.Properties.BrdFirst :
this.BrdFirst = value;
break;
case this.Properties.BrdLast :
this.BrdLast = value;
break;
case this.Properties.BrdBetween :
this.BrdBetween = value;
break;
case this.Properties.BrdBottom :
this.BrdBottom = value;
break;
case this.Properties.BrdLeft :
this.BrdLeft = value;
break;
case this.Properties.BrdRight :
this.BrdRight = value;
break;
case this.Properties.BrdTop :
this.BrdTop = value;
break;
case this.Properties.WidowControl :
this.WidowControl = value;
break;
case this.Properties.Tabs :
this.Tabs = value;
break;
case this.Properties.NumPr :
this.NumPr = value;
break;
case this.Properties.PStyle :
this.PStyle = value;
break;
}
};
function UndoRedoData_SheetAdd(insertBefore, name, sheetidfrom, sheetid, tableNames) {
this.insertBefore = insertBefore;
this.name = name;
......@@ -2105,840 +1602,6 @@ function (window, undefined) {
};
};
function UndoRedoDataGraphicObjects(objectId, drawingData) {
this.objectId = objectId;
this.drawingData = drawingData;
}
UndoRedoDataGraphicObjects.prototype.Properties = {
objectId: 0, drawingData: 1
};
UndoRedoDataGraphicObjects.prototype.getType = function () {
return UndoRedoDataTypes.GraphicObjects;
};
UndoRedoDataGraphicObjects.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataGraphicObjects.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.objectId:
return this.objectId;
case this.Properties.drawingData:
return this.drawingData;
}
return null;
};
UndoRedoDataGraphicObjects.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.objectId:
this.objectId = value;
break;
case this.Properties.drawingData:
this.drawingData = value;
break;
}
};
function UndoRedoDataGOPairProps(oldValue1, oldValue2, newValue1, newValue2) {
this.Properties = {
oldValue1: 0, oldValue2: 1,
newValue1: 2, newValue2: 3
};
this.oldValue1 = oldValue1;
this.oldValue2 = oldValue2;
this.newValue1 = newValue1;
this.newValue2 = newValue2;
}
UndoRedoDataGOPairProps.prototype.getType = function () {
return UndoRedoDataTypes.GOPairProps;
};
UndoRedoDataGOPairProps.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataGOPairProps.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.oldValue1:
return this.oldValue1;
case this.Properties.oldValue2:
return this.oldValue2;
case this.Properties.newValue1:
return this.newValue1;
case this.Properties.newValue2:
return this.newValue2;
}
return null;
};
UndoRedoDataGOPairProps.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.oldValue1:
this.oldValue1 = value;
break;
case this.Properties.oldValue2:
this.oldValue2 = value;
break;
case this.Properties.newValue1:
this.newValue1 = value;
break;
case this.Properties.newValue2:
this.newValue2 = value;
break;
}
};
function UndoRedoDataGOSingleProp(oldValue, newValue) {
this.Properties = {
oldValue: 0, newValue: 1
};
this.oldValue = oldValue;
this.newValue = newValue;
}
UndoRedoDataGOSingleProp.prototype.getType = function () {
return UndoRedoDataTypes.GOSingleProp;
};
UndoRedoDataGOSingleProp.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataGOSingleProp.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.oldValue:
return this.oldValue;
case this.Properties.newValue:
return this.newValue;
}
return null;
};
UndoRedoDataGOSingleProp.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.oldValue:
this.oldValue = value;
break;
case this.Properties.newValue:
this.newValue = value;
break;
}
};
function UndoRedoDataShapeRecalc() {
this.Properties = {};
}
UndoRedoDataShapeRecalc.prototype.getType = function () {
return UndoRedoDataTypes.GOShapeRecalcTransform;
};
UndoRedoDataShapeRecalc.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataShapeRecalc.prototype.getProperty = function (nType) {
return null;
};
UndoRedoDataShapeRecalc.prototype.setProperty = function (nType, value) {
};
function UndoRedoDataAddAdjustment(name, val) {
this.Properties = {
name: 0, val: 1
};
this.name = name;
this.val = val;
}
UndoRedoDataAddAdjustment.prototype.getType = function () {
return UndoRedoDataTypes.GOAddAdjustment;
};
UndoRedoDataAddAdjustment.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddAdjustment.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.name:
return this.name;
case this.Properties.val:
return this.val;
}
return null;
};
UndoRedoDataAddAdjustment.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.name:
this.name = value;
break;
case this.Properties.val:
this.val = value;
break;
}
};
function UndoRedoDataAddGuide(name, formula, x, y, z) {
this.Properties = {
name: 0, formula: 1, x: 2, y: 3, z: 4
};
this.name = name;
this.formula = formula;
this.x = x;
this.y = y;
this.z = z;
}
UndoRedoDataAddGuide.prototype.getType = function () {
return UndoRedoDataTypes.GOAddGuide;
};
UndoRedoDataAddGuide.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddGuide.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.name:
return this.name;
case this.Properties.formula:
return this.formula;
case this.Properties.x:
return this.x;
case this.Properties.y:
return this.y;
case this.Properties.z:
return this.z;
}
return null;
};
UndoRedoDataAddGuide.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.name:
this.name = value;
break;
case this.Properties.formula:
this.formula = value;
break;
case this.Properties.x:
this.x = value;
break;
case this.Properties.y:
this.y = value;
break;
case this.Properties.z:
this.z = value;
break;
}
};
function UndoRedoDataAddCnx(ang, x, y) {
this.Properties = {
ang: 0, x: 1, y: 2
};
this.ang = ang;
this.x = x;
this.y = y;
}
UndoRedoDataAddCnx.prototype.getType = function () {
return UndoRedoDataTypes.GOAddCnx;
};
UndoRedoDataAddCnx.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddCnx.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.ang:
return this.ang;
case this.Properties.x:
return this.x;
case this.Properties.y:
return this.y;
}
return null;
};
UndoRedoDataAddCnx.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.ang:
this.ang = value;
break;
case this.Properties.x:
this.x = value;
break;
case this.Properties.y:
this.y = value;
break;
}
};
function UndoRedoDataAddHandleXY(gdRefX, minX, maxX, gdRefY, minY, maxY, posX, posY) {
this.Properties = {
gdRefX: 0, minX: 1, maxX: 2,
gdRefY: 3, minY: 4, maxY: 5, posX: 6, posY: 7
};
this.gdRefX = gdRefX;
this.maxX = maxX;
this.minX = minX;
this.gdRefY = gdRefY;
this.maxY = maxY;
this.minY = minY;
this.posX = posX;
this.posY = posY;
}
UndoRedoDataAddHandleXY.prototype.getType = function () {
return UndoRedoDataTypes.GOHandleXY;
};
UndoRedoDataAddHandleXY.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddHandleXY.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.gdRefX:
return this.gdRefX;
case this.Properties.minX:
return this.minX;
case this.Properties.maxX:
return this.maxX;
case this.Properties.gdRefY:
return this.gdRefY;
case this.Properties.minY:
return this.minY;
case this.Properties.maxY:
return this.maxY;
case this.Properties.posX:
return this.posX;
case this.Properties.posY:
return this.posY;
}
return null;
};
UndoRedoDataAddHandleXY.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.gdRefX:
this.gdRefX = value;
break;
case this.Properties.minX:
this.minX = value;
break;
case this.Properties.maxX:
this.maxX = value;
break;
case this.Properties.gdRefY:
this.gdRefY = value;
break;
case this.Properties.minY:
this.minY = value;
break;
case this.Properties.maxY:
this.maxY = value;
break;
case this.Properties.posX:
this.posX = value;
break;
case this.Properties.posY:
this.posY = value;
break;
}
};
function UndoRedoDataAddHandlePolar(gdRefR, minR, maxR, gdRefAng, minAng, maxAng, posX, posY) {
this.Properties = {
gdRefR: 0, minR: 1, maxR: 2,
gdRefAng: 3, minAng: 4, maxAng: 5, posX: 6, posY: 7
};
this.gdRefR = gdRefR;
this.maxR = maxR;
this.minR = minR;
this.gdRefAng = gdRefAng;
this.maxAng = maxAng;
this.minAng = minAng;
this.posX = posX;
this.posY = posY;
}
UndoRedoDataAddHandlePolar.prototype.getType = function () {
return UndoRedoDataTypes.GOHandlePolar;
};
UndoRedoDataAddHandlePolar.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddHandlePolar.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.gdRefR:
return this.gdRefR;
case this.Properties.minR:
return this.minR;
case this.Properties.maxR:
return this.maxR;
case this.Properties.gdRefAng:
return this.gdRefAng;
case this.Properties.minAng:
return this.minAng;
case this.Properties.maxAng:
return this.maxAng;
case this.Properties.posX:
return this.posX;
case this.Properties.posY:
return this.posY;
}
return null;
};
UndoRedoDataAddHandlePolar.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.gdRefR:
this.gdRefR = value;
break;
case this.Properties.minR:
this.minR = value;
break;
case this.Properties.maxR:
this.maxR = value;
break;
case this.Properties.gdRefAng:
this.gdRefAng = value;
break;
case this.Properties.minAng:
this.minAng = value;
break;
case this.Properties.maxAng:
this.maxAng = value;
break;
case this.Properties.posX:
this.posX = value;
break;
case this.Properties.posY:
this.posY = value;
break;
}
};
function UndoRedoDataAddPathCommand(command, x1, y1, x2, y2, x3, y3) {
this.Properties = {
command: 0, x1: 1, y1: 2, x2: 3, y2: 4, x3: 5, y3: 6
};
this.command = command;
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
this.x3 = x3;
this.y3 = y3;
}
UndoRedoDataAddPathCommand.prototype.getType = function () {
return UndoRedoDataTypes.GOAddPathCommand;
};
UndoRedoDataAddPathCommand.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddPathCommand.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.command:
return this.command;
case this.Properties.x1:
return this.x1;
case this.Properties.y1:
return this.y1;
case this.Properties.x2:
return this.x2;
case this.Properties.y2:
return this.y2;
case this.Properties.x3:
return this.x3;
case this.Properties.y3:
return this.y3;
}
return null;
};
UndoRedoDataAddPathCommand.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.command:
this.command = value;
break;
case this.Properties.x1:
this.x1 = value;
break;
case this.Properties.y1:
this.y1 = value;
break;
case this.Properties.x2:
this.x2 = value;
break;
case this.Properties.y2:
this.y2 = value;
break;
case this.Properties.x3:
this.x3 = value;
break;
case this.Properties.y3:
this.y3 = value;
break;
}
};
function UndoRedoDataAddObject(objectId) {
this.Properties = {
objectId: 0
};
this.objectId = objectId;
}
UndoRedoDataAddObject.prototype.getType = function () {
return UndoRedoDataTypes.GOAddObject;
};
UndoRedoDataAddObject.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddObject.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.objectId:
return this.objectId;
}
return null;
};
UndoRedoDataAddObject.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.objectId:
this.objectId = value;
break;
}
};
function UndoRedoDataAddGeometryRect(l, t, r, b) {
this.Properties = {
l: 0, t: 1, r: 2, b: 3
};
this.l = l;
this.t = t;
this.r = r;
this.b = b;
}
UndoRedoDataAddGeometryRect.prototype.getType = function () {
return UndoRedoDataTypes.GOAddGeometryRect;
};
UndoRedoDataAddGeometryRect.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataAddGeometryRect.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.l:
return this.l;
case this.Properties.t:
return this.t;
case this.Properties.r:
return this.r;
case this.Properties.b:
return this.b;
}
return null;
};
UndoRedoDataAddGeometryRect.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.l:
this.l = value;
break;
case this.Properties.t:
this.t = value;
break;
case this.Properties.r:
this.r = value;
break;
case this.Properties.b:
this.b = value;
break;
}
};
var g_oUndoRedoDataMoveToLineToProperties = {
x: 0, y: 1, bMoveTo: 2
};
function UndoRedoDataMoveToLineTo(x, y, bMoveTo) {
this.Properties = g_oUndoRedoDataMoveToLineToProperties;
this.x = x;
this.y = y;
this.bMoveTo = bMoveTo;
}
UndoRedoDataMoveToLineTo.prototype.getType = function () {
return UndoRedoDataTypes.GOPathLineToMoveTo;
};
UndoRedoDataMoveToLineTo.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataMoveToLineTo.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.x:
return this.x;
case this.Properties.y:
return this.y;
case this.Properties.bMoveTo:
return this.bMoveTo;
}
return null;
};
UndoRedoDataMoveToLineTo.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.x:
this.x = value;
break;
case this.Properties.y:
this.y = value;
break;
case this.Properties.bMoveTo:
this.bMoveTo = value;
break;
}
};
var g_gUndoRedoDataArcToProperties = {
wR: 0, hR: 1, stAng: 2, swAng: 3
};
function UndoRedoDataArcTo(wR, hR, stAng, swAng) {
this.Properties = g_gUndoRedoDataArcToProperties;
this.wR = wR;
this.hR = hR;
this.stAng = stAng;
this.swAng = swAng;
}
UndoRedoDataArcTo.prototype.getType = function () {
return UndoRedoDataTypes.GOPathArcTo;
};
UndoRedoDataArcTo.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataArcTo.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.wR:
return this.wR;
case this.Properties.hR:
return this.hR;
case this.Properties.stAng:
return this.stAng;
case this.Properties.swAng:
return this.swAng;
}
return null;
};
UndoRedoDataArcTo.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.wR:
this.wR = value;
break;
case this.Properties.hR:
this.hR = value;
break;
case this.Properties.stAng:
this.stAng = value;
break;
case this.Properties.swAng:
this.swAng = value;
break;
}
};
var g_oUndoRedoDataQuadBezToProperties = {
x0: 0, y0: 1, x1: 2, y1: 3
};
function UndoRedoDataQuadBezTo(x0, y0, x1, y1) {
this.Properties = g_oUndoRedoDataQuadBezToProperties;
this.x0 = x0;
this.y0 = y0;
this.x1 = x1;
this.y1 = y1;
}
UndoRedoDataQuadBezTo.prototype.getType = function () {
return UndoRedoDataTypes.GOPathQuadBezTo;
};
UndoRedoDataQuadBezTo.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataQuadBezTo.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.x0:
return this.x0;
case this.Properties.y0:
return this.y0;
case this.Properties.x1:
return this.x1;
case this.Properties.y1:
return this.y1;
}
return null;
};
UndoRedoDataQuadBezTo.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.x0:
this.x0 = value;
break;
case this.Properties.y0:
this.y0 = value;
break;
case this.Properties.x1:
this.x1 = value;
break;
case this.Properties.y1:
this.y1 = value;
break;
}
};
var g_oUndoRedoDataCubicBezToProperties = {
x0: 0, y0: 1, x1: 2, y1: 3, x2: 4, y2: 5
};
function UndoRedoDataCubicBezTo(x0, y0, x1, y1, x2, y2) {
this.Properties = g_oUndoRedoDataCubicBezToProperties;
this.x0 = x0;
this.y0 = y0;
this.x1 = x1;
this.y1 = y1;
this.x2 = x2;
this.y2 = y2;
}
UndoRedoDataCubicBezTo.prototype.getType = function () {
return UndoRedoDataTypes.GOPathCubicBezTo;
};
UndoRedoDataCubicBezTo.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataCubicBezTo.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.x0:
return this.x0;
case this.Properties.y0:
return this.y0;
case this.Properties.x1:
return this.x1;
case this.Properties.y1:
return this.y1;
case this.Properties.x2:
return this.x2;
case this.Properties.y2:
return this.y2;
}
return null;
};
UndoRedoDataCubicBezTo.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.x0:
this.x0 = value;
break;
case this.Properties.y0:
this.y0 = value;
break;
case this.Properties.x1:
this.x1 = value;
break;
case this.Properties.y1:
this.y1 = value;
break;
case this.Properties.x2:
this.x2 = value;
break;
case this.Properties.y2:
this.y2 = value;
break;
}
};
var g_oUndoRedoDataClosePathProperties = {};
function UndoRedoDataClosePath() {
this.Properties = g_oUndoRedoDataClosePathProperties;
}
UndoRedoDataClosePath.prototype.getType = function () {
return UndoRedoDataTypes.GOPathClose;
};
UndoRedoDataClosePath.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataClosePath.prototype.getProperty = function (nType) {
return null;
};
UndoRedoDataClosePath.prototype.setProperty = function (nType, value) {
};
var g_oUndoRedoDataSetAdjustmentValueProperties = {
gdName: 0, oldVal: 1, newVal: 2
};
function UndoRedoDataSetAdjustmentValue(gdName, oldVal, newVal) {
this.Properties = g_oUndoRedoDataSetAdjustmentValueProperties;
this.gdName = gdName;
this.oldVal = oldVal;
this.newVal = newVal;
}
UndoRedoDataSetAdjustmentValue.prototype.getType = function () {
return UndoRedoDataTypes.GOSetAdjustmentValue;
};
UndoRedoDataSetAdjustmentValue.prototype.getProperties = function () {
return this.Properties;
};
UndoRedoDataSetAdjustmentValue.prototype.getProperty = function (nType) {
switch (nType) {
case this.Properties.gdName:
return this.gdName;
case this.Properties.oldVal:
return this.oldVal;
case this.Properties.newVal:
return this.newVal;
}
return null;
};
UndoRedoDataSetAdjustmentValue.prototype.setProperty = function (nType, value) {
switch (nType) {
case this.Properties.gdName:
this.gdName = value;
break;
case this.Properties.oldVal:
this.oldVal = value;
break;
case this.Properties.newVal:
this.newVal = value;
break;
}
};
function UndoRedoWorkbook(wb) {
this.wb = wb;
this.nType = UndoRedoClassTypes.Add(function () {
......
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