Commit 3252d5a6 authored by Oleg.Korshul's avatar Oleg.Korshul Committed by Alexander.Trofimov

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@51775 954022d7-b5bf-4e40-9824-e11837661b57
parent 726234d1
...@@ -76,6 +76,7 @@ function CBinaryFileWriter() ...@@ -76,6 +76,7 @@ function CBinaryFileWriter()
this.IsUseFullUrl = false; this.IsUseFullUrl = false;
this.DocumentOrigin = ""; this.DocumentOrigin = "";
this.PresentationThemesOrigin = "";
var oThis = this; var oThis = this;
...@@ -85,6 +86,11 @@ function CBinaryFileWriter() ...@@ -85,6 +86,11 @@ function CBinaryFileWriter()
this.DocumentOrigin = origin; this.DocumentOrigin = origin;
}; };
this.Start_UseDocumentOrigin = function(origin)
{
this.PresentationThemesOrigin = origin + "/presentationthemes/";
}
this.End_UseFullUrl = function() this.End_UseFullUrl = function()
{ {
this.IsUseFullUrl = false; this.IsUseFullUrl = false;
...@@ -2076,8 +2082,10 @@ function CBinaryFileWriter() ...@@ -2076,8 +2082,10 @@ function CBinaryFileWriter()
if (oThis.IsUseFullUrl) if (oThis.IsUseFullUrl)
{ {
if ((0 == _src.indexOf("theme")) && window.editor) if ((0 == _src.indexOf("theme")) && window.editor)
_src = window.editor.ThemeLoader.ThemesUrl + _src; {
if (0 != _src.indexOf("http:") && 0 != _src.indexOf("data:") && 0 != _src.indexOf("https:") && 0 != _src.indexOf("ftp:") && 0 != _src.indexOf("file:")) _src = oThis.PresentationThemesOrigin + _src;
}
else if (0 != _src.indexOf("http:") && 0 != _src.indexOf("data:") && 0 != _src.indexOf("https:") && 0 != _src.indexOf("ftp:") && 0 != _src.indexOf("file:"))
_src = oThis.DocumentOrigin + "media/" + _src; _src = oThis.DocumentOrigin + "media/" + _src;
} }
......
...@@ -354,6 +354,7 @@ function CopyProcessor(api, ElemToSelect) ...@@ -354,6 +354,7 @@ function CopyProcessor(api, ElemToSelect)
this.oCurHyperlinkElem = null; this.oCurHyperlinkElem = null;
this.oPresentationWriter = new CBinaryFileWriter(); this.oPresentationWriter = new CBinaryFileWriter();
this.oPresentationWriter.Start_UseFullUrl(documentOrigin + editor.DocumentUrl); this.oPresentationWriter.Start_UseFullUrl(documentOrigin + editor.DocumentUrl);
this.oPresentationWriter.Start_UseDocumentOrigin(documentOrigin);
}; };
CopyProcessor.prototype = CopyProcessor.prototype =
{ {
......
...@@ -439,26 +439,26 @@ var c_oSer_StyleType = { ...@@ -439,26 +439,26 @@ var c_oSer_StyleType = {
}; };
var c_oSer_SettingsType = { var c_oSer_SettingsType = {
ClrSchemeMapping: 0, ClrSchemeMapping: 0,
DefaultTabStop: 1, DefaultTabStop: 1,
MathPr: 2 MathPr: 2
}; };
var c_oSer_MathPrType = { var c_oSer_MathPrType = {
BrkBin: 0, BrkBin: 0,
BrkBinSub: 1, BrkBinSub: 1,
DefJc: 2, DefJc: 2,
DispDef: 3, DispDef: 3,
InterSp: 4, InterSp: 4,
IntLim: 5, IntLim: 5,
IntraSp: 6, IntraSp: 6,
LMargin: 7, LMargin: 7,
MathFont: 8, MathFont: 8,
NaryLim: 9, NaryLim: 9,
PostSp: 10, PostSp: 10,
PreSp: 11, PreSp: 11,
RMargin: 12, RMargin: 12,
SmallFrac: 13, SmallFrac: 13,
WrapIndent: 14, WrapIndent: 14,
WrapRight: 15 WrapRight: 15
}; };
var c_oSer_ClrSchemeMappingType = { var c_oSer_ClrSchemeMappingType = {
Accent1: 0, Accent1: 0,
...@@ -491,53 +491,53 @@ var c_oSer_FramePrType = { ...@@ -491,53 +491,53 @@ var c_oSer_FramePrType = {
YAlign: 13 YAlign: 13
}; };
var c_oSer_OMathBottomNodesType = { var c_oSer_OMathBottomNodesType = {
Aln: 0, Aln: 0,
AlnScr: 1, AlnScr: 1,
ArgSz: 2, ArgSz: 2,
BaseJc: 3, BaseJc: 3,
BegChr: 4, BegChr: 4,
CGp: 5, CGp: 5,
CGpRule: 6, CGpRule: 6,
Chr: 7, Chr: 7,
Count: 8, Count: 8,
CSp: 9, CSp: 9,
DegHide: 10, DegHide: 10,
Diff: 11, Diff: 11,
EndChr: 12, EndChr: 12,
Grow: 13, Grow: 13,
HideBot: 14, HideBot: 14,
HideLeft: 15, HideLeft: 15,
HideRight: 16, HideRight: 16,
HideTop: 17, HideTop: 17,
MJc: 18, MJc: 18,
LimLoc: 19, LimLoc: 19,
Lit: 20, Lit: 20,
MaxDist: 21, MaxDist: 21,
McJc: 22, McJc: 22,
NoBreak: 23, NoBreak: 23,
Nor: 24, Nor: 24,
ObjDist: 25, ObjDist: 25,
OpEmu: 26, OpEmu: 26,
PlcHide: 27, PlcHide: 27,
Pos: 28, Pos: 28,
RSp: 29, RSp: 29,
RSpRule: 30, RSpRule: 30,
Scr: 31, Scr: 31,
SepChr: 32, SepChr: 32,
Show: 33, Show: 33,
Shp: 34, Shp: 34,
StrikeBLTR: 35, StrikeBLTR: 35,
StrikeH: 36, StrikeH: 36,
StrikeTLBR: 37, StrikeTLBR: 37,
StrikeV: 38, StrikeV: 38,
Sty: 39, Sty: 39,
SubHide: 40, SubHide: 40,
SupHide: 41, SupHide: 41,
Transp: 42, Transp: 42,
Type: 43, Type: 43,
VertJc: 44, VertJc: 44,
ZeroAsc: 45, ZeroAsc: 45,
ZeroDesc: 46, ZeroDesc: 46,
ZeroWid: 47 ZeroWid: 47
}; };
var c_oSer_OMathBottomNodesValType = { var c_oSer_OMathBottomNodesValType = {
...@@ -545,58 +545,58 @@ var c_oSer_OMathBottomNodesValType = { ...@@ -545,58 +545,58 @@ var c_oSer_OMathBottomNodesValType = {
AlnAt: 1 AlnAt: 1
}; };
var c_oSer_OMathContentType = { var c_oSer_OMathContentType = {
Acc: 0, Acc: 0,
AccPr: 1, AccPr: 1,
ArgPr: 2, ArgPr: 2,
Bar: 3, Bar: 3,
BarPr: 4, BarPr: 4,
BorderBox: 5, BorderBox: 5,
BorderBoxPr: 6, BorderBoxPr: 6,
Box: 7, Box: 7,
BoxPr: 8, BoxPr: 8,
Brk: 9, Brk: 9,
CtrlPr: 10, CtrlPr: 10,
Delimiter: 11, Delimiter: 11,
DelimiterPr: 12, DelimiterPr: 12,
EqArr: 13, EqArr: 13,
EqArrPr: 14, EqArrPr: 14,
Fraction: 15, Fraction: 15,
FPr: 16, FPr: 16,
Func: 17, Func: 17,
FuncPr: 18, FuncPr: 18,
GroupChr: 19, GroupChr: 19,
GroupChrPr: 20, GroupChrPr: 20,
LimLow: 21, LimLow: 21,
LimLowPr: 22, LimLowPr: 22,
LimUpp: 23, LimUpp: 23,
LimUppPr: 24, LimUppPr: 24,
Matrix: 25, Matrix: 25,
MathPr: 26, MathPr: 26,
Mc: 27, Mc: 27,
McPr: 28, McPr: 28,
Mcs: 29, Mcs: 29,
MPr: 30, MPr: 30,
Mr: 31, Mr: 31,
Nary: 32, Nary: 32,
NaryPr: 33, NaryPr: 33,
OMathPara: 34, OMathPara: 34,
OMathParaPr: 35, OMathParaPr: 35,
Phant: 36, Phant: 36,
PhantPr: 37, PhantPr: 37,
MRun: 38, MRun: 38,
Rad: 39, Rad: 39,
RadPr: 40, RadPr: 40,
MRPr: 41, MRPr: 41,
SPre: 42, SPre: 42,
SPrePr: 43, SPrePr: 43,
SSub: 44, SSub: 44,
SSubPr: 45, SSubPr: 45,
SSubSup: 46, SSubSup: 46,
SSubSupPr: 47, SSubSupPr: 47,
SSup: 48, SSup: 48,
SSupPr: 49, SSupPr: 49,
MText: 50, MText: 50,
Column: 51, Column: 51,
Row: 52 Row: 52
}; };
var c_oSer_OMathArgNodesType = { var c_oSer_OMathArgNodesType = {
...@@ -742,7 +742,8 @@ function BinaryFileWriter(doc) ...@@ -742,7 +742,8 @@ function BinaryFileWriter(doc)
{ {
var api = this.Document.DrawingDocument.m_oWordControl.m_oApi; var api = this.Document.DrawingDocument.m_oWordControl.m_oApi;
window.global_pptx_content_writer.Start_UseFullUrl(documentOrigin + api.DocumentUrl); window.global_pptx_content_writer.Start_UseFullUrl(documentOrigin + api.DocumentUrl);
window.global_pptx_content_writer._Start(); window.global_pptx_content_writer.Start_UseDocumentOrigin(documentOrigin);
window.global_pptx_content_writer._Start();
this.copyParams.bLockCopyElems = 0; this.copyParams.bLockCopyElems = 0;
this.copyParams.itemCount = 0; this.copyParams.itemCount = 0;
this.copyParams.oUsedNumIdMap = new Object(); this.copyParams.oUsedNumIdMap = new Object();
......
...@@ -710,6 +710,10 @@ function CPPTXContentWriter() ...@@ -710,6 +710,10 @@ function CPPTXContentWriter()
{ {
this.BinaryFileWriter.Start_UseFullUrl(origin); this.BinaryFileWriter.Start_UseFullUrl(origin);
} }
this.Start_UseDocumentOrigin = function(origin)
{
this.BinaryFileWriter.Start_UseDocumentOrigin(origin);
}
this.End_UseFullUrl = function() this.End_UseFullUrl = function()
{ {
return this.BinaryFileWriter.End_UseFullUrl(); return this.BinaryFileWriter.End_UseFullUrl();
......
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