Commit 7533eeeb authored by Sergey.Luzyanin's avatar Sergey.Luzyanin

Испралены баги в копировании некоторых классов из ChartSpace.js. Перенесены...

Испралены баги в копировании некоторых классов из ChartSpace.js. Перенесены методы из некоторохых классов Format.js в прототип. Удален неиспользуемый код.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@60958 954022d7-b5bf-4e40-9824-e11837661b57
parent 4dda7557
...@@ -8626,10 +8626,15 @@ CProtection.prototype = ...@@ -8626,10 +8626,15 @@ CProtection.prototype =
createDuplicate: function() createDuplicate: function()
{ {
var c = new CProtection(); var c = new CProtection();
c.setChartObject (this.chartObject ); if(this.chartObject !== null)
c.setData (this.data); c.setChartObject(this.chartObject);
c.setFormatting (this.formatting); if(this.data !== null)
c.setSelection (this.selection); c.setData(this.data);
if(this.formatting !== null)
c.setFormatting(this.formatting);
if(this.selection !== null)
c.setSelection(this.selection);
if(this.userInterface !== null)
c.setUserInterface(this.userInterface); c.setUserInterface(this.userInterface);
return c; return c;
}, },
...@@ -8773,13 +8778,13 @@ CPrintSettings.prototype = ...@@ -8773,13 +8778,13 @@ CPrintSettings.prototype =
var oPS = new CPrintSettings(); var oPS = new CPrintSettings();
if ( this.headerFooter ) if ( this.headerFooter )
oPS.headerFooter = this.headerFooter.createDuplicate(); oPS.setHeaderFooter(this.headerFooter.createDuplicate());
if ( this.pageMargins ) if ( this.pageMargins )
oPS.pageMargins = this.pageMargins.createDuplicate(); oPS.setPageMargins(this.pageMargins.createDuplicate());
if ( this.pageSetup ) if ( this.pageSetup )
oPS.pageSetup = this.pageSetup.createDuplicate(); oPS.setPageSetup(this.pageSetup.createDuplicate());
return oPS; return oPS;
}, },
...@@ -8928,30 +8933,33 @@ CHeaderFooterChart.prototype = ...@@ -8928,30 +8933,33 @@ CHeaderFooterChart.prototype =
createDuplicate : function() createDuplicate : function()
{ {
// TODO: Проверить работу данной функции
var oHFC = new CHeaderFooterChart(); var oHFC = new CHeaderFooterChart();
oHFC.alignWithMargins = this.alignWithMargins; if(this.alignWithMargins !== null)
oHFC.differentFirst = this.differentFirst; oHFC.setAlignWithMargins(this.alignWithMargins);
oHFC.differentOddEven = this.differentOddEven; if(this.differentFirst !== null)
oHFC.setDifferentFirst(this.differentFirst);
if ( this.evenFooter ) if(this.differentOddEven !== null)
oHFC.evenFooter = this.evenFooter.createDuplicate(); oHFC.setDifferentOddEven(this.differentOddEven);
if ( this.evenHeader ) if ( this.evenFooter !== null )
oHFC.evenHeader = this.evenHeader.createDuplicate(); oHFC.setEvenFooter(this.evenFooter);
if ( this.firstFooter ) if ( this.evenHeader !== null)
oHFC.firstFooter = this.firstFooter.createDuplicate(); oHFC.setEvenHeader(this.evenHeader);
if ( this.firstHeader ) if ( this.firstFooter !== null)
oHFC.firstHeader = this.firstHeader.createDuplicate(); oHFC.setFirstFooter(this.firstFooter);
if ( this.oddFooter ) if ( this.firstHeader !== null)
oHFC.oddFooter = this.oddFooter.createDuplicate(); oHFC.setFirstHeader(this.firstHeader);
if ( this.oddHeader ) if ( this.oddFooter !== null)
oHFC.oddHeader = this.oddHeader.createDuplicate(); oHFC.setOddFooter(this.oddFooter);
if ( this.oddHeader !== null)
oHFC.setOddHeader(this.oddHeader);
return oHFC; return oHFC;
}, },
...@@ -9230,12 +9238,18 @@ CPageMarginsChart.prototype = ...@@ -9230,12 +9238,18 @@ CPageMarginsChart.prototype =
{ {
var oPMC = new CPageMarginsChart(); var oPMC = new CPageMarginsChart();
oPMC.b = this.b; if(this.b !== null)
oPMC.footer = this.footer; oPMC.setB(this.b);
oPMC.header = this.header; if(this.footer !== null)
oPMC.l = this.l; oPMC.setFooter(this.footer);
oPMC.r = this.r; if(this.header !== null)
oPMC.t = this.t; oPMC.setHeader(this.header);
if(this.l !== null)
oPMC.setL(this.l);
if(this.r !== null)
oPMC.setR(this.r);
if(this.t !== null)
oPMC.setT(this.t);
return oPMC; return oPMC;
}, },
...@@ -9454,22 +9468,32 @@ CPageSetup.prototype = ...@@ -9454,22 +9468,32 @@ CPageSetup.prototype =
{ {
var oPS = new CPageSetup(); var oPS = new CPageSetup();
oPS.blackAndWhite = this.blackAndWhite; if(this.blackAndWhite !== null)
oPS.copies = this.copies; oPS.setBlackAndWhite(this.blackAndWhite);
oPS.draft = this.draft; if(this.copies !== null)
oPS.firstPageNumber = this.firstPageNumber; oPS.setCopies(this.copies);
oPS.horizontalDpi = this.horizontalDpi; if(this.draft !== null)
oPS.orientation = this.orientation; oPS.setDraft(this.draft);
oPS.paperHeight = this.paperHeight; if(this.firstPageNumber !== null)
oPS.paperSize = this.paperSize; oPS.setFirstPageNumber(this.firstPageNumber);
oPS.paperWidth = this.paperWidth; if(this.horizontalDpi !== null)
oPS.useFirstPageNumb = this.useFirstPageNumb; oPS.setHorizontalDpi(this.horizontalDpi);
oPS.verticalDpi = this.verticalDpi; if(this.orientation !== null)
oPS.setOrientation(this.orientation);
if(this.paperHeight !== null)
oPS.setPaperHeight(this.paperHeight);
if(this.paperSize !== null)
oPS.setPaperSize(this.paperSize);
if(this.paperWidth !== null)
oPS.setPaperWidth(this.paperWidth);
if(this.useFirstPageNumb !== null)
oPS.setUseFirstPageNumb(this.useFirstPageNumb);
if(this.verticalDpi !== null)
oPS.setVerticalDpi(this.verticalDpi);
return oPS; return oPS;
}, },
Refresh_RecalcData: function() Refresh_RecalcData: function()
{}, {},
......
This diff is collapsed.
...@@ -6384,8 +6384,6 @@ function BinaryPPTYLoader() ...@@ -6384,8 +6384,6 @@ function BinaryPPTYLoader()
{ {
var para_pr = new CParaPr(); var para_pr = new CParaPr();
var tPr = new CTextParagraphPr();
var s = this.stream; var s = this.stream;
var _end_rec = s.cur + s.GetULong() + 4; var _end_rec = s.cur + s.GetULong() + 4;
......
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