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

+ ut_ShowSnapLines, get_ShowSnapLines


git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@59988 954022d7-b5bf-4e40-9824-e11837661b57
parent b3b209e3
...@@ -3065,11 +3065,14 @@ function CDrawingDocument() ...@@ -3065,11 +3065,14 @@ function CDrawingDocument()
return g_comment_image_offsets[_index][3] * g_dKoef_pix_to_mm * 100 / this.m_oWordControl.m_nZoomValue; return g_comment_image_offsets[_index][3] * g_dKoef_pix_to_mm * 100 / this.m_oWordControl.m_nZoomValue;
} }
this.DrawVerAnchor = function(xPos, bIsFromDrawings) this.DrawVerAnchor = function(pageNum, xPos, bIsFromDrawings)
{ {
if (undefined === bIsFromDrawings) if (undefined === bIsFromDrawings)
{ {
this.HorVerAnchors.push({ Type : 0, Pos : xPos }); if (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 0, Pos : xPos });
}
return; return;
} }
...@@ -3082,11 +3085,14 @@ function CDrawingDocument() ...@@ -3082,11 +3085,14 @@ function CDrawingDocument()
} }
} }
this.DrawHorAnchor = function(yPos, bIsFromDrawings) this.DrawHorAnchor = function(pageNum, yPos, bIsFromDrawings)
{ {
if (undefined === bIsFromDrawings) if (undefined === bIsFromDrawings)
{ {
this.HorVerAnchors.push({ Type : 1, Pos : yPos }); if (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 1, Pos : yPos });
}
return; return;
} }
...@@ -3105,9 +3111,9 @@ function CDrawingDocument() ...@@ -3105,9 +3111,9 @@ function CDrawingDocument()
{ {
var _anchor = this.HorVerAnchors[i]; var _anchor = this.HorVerAnchors[i];
if (_anchor.Type == 0) if (_anchor.Type == 0)
this.DrawVerAnchor(_anchor.Pos, true); this.DrawVerAnchor(0, _anchor.Pos, true);
else else
this.DrawHorAnchor(_anchor.Pos, true); this.DrawHorAnchor(0, _anchor.Pos, true);
} }
this.HorVerAnchors.splice(0, this.HorVerAnchors.length); this.HorVerAnchors.splice(0, this.HorVerAnchors.length);
} }
......
...@@ -65,6 +65,7 @@ function asc_docs_api(name) ...@@ -65,6 +65,7 @@ function asc_docs_api(name)
this.IsSupportEmptyPresentation = true; this.IsSupportEmptyPresentation = true;
this.ShowParaMarks = false; this.ShowParaMarks = false;
this.ShowSnapLines = true;
this.isAddSpaceBetweenPrg = false; this.isAddSpaceBetweenPrg = false;
this.isPageBreakBefore = false; this.isPageBreakBefore = false;
this.isKeepLinesTogether = false; this.isKeepLinesTogether = false;
...@@ -1979,6 +1980,16 @@ asc_docs_api.prototype.put_Style = function(name) ...@@ -1979,6 +1980,16 @@ asc_docs_api.prototype.put_Style = function(name)
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint(); this.WordControl.m_oLogicDocument.Create_NewHistoryPoint();
this.WordControl.m_oLogicDocument.Set_ParagraphStyle(name); this.WordControl.m_oLogicDocument.Set_ParagraphStyle(name);
} }
asc_docs_api.prototype.put_ShowSnapLines = function(isShow)
{
this.ShowSnapLines = isShow;
}
asc_docs_api.prototype.get_ShowSnapLines = function()
{
return this.ShowSnapLines;
}
asc_docs_api.prototype.put_ShowParaMarks = function(isShow){ asc_docs_api.prototype.put_ShowParaMarks = function(isShow){
this.ShowParaMarks = isShow; this.ShowParaMarks = isShow;
this.WordControl.OnRePaintAttack(); this.WordControl.OnRePaintAttack();
......
...@@ -6008,7 +6008,10 @@ function CDrawingDocument() ...@@ -6008,7 +6008,10 @@ function CDrawingDocument()
{ {
if (undefined === bIsFromDrawings) if (undefined === bIsFromDrawings)
{ {
this.HorVerAnchors.push({ Type : 0, Page : pageNum, Pos : xPos }); if (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 0, Page : pageNum, Pos : xPos });
}
return; return;
} }
...@@ -6025,7 +6028,10 @@ function CDrawingDocument() ...@@ -6025,7 +6028,10 @@ function CDrawingDocument()
{ {
if (undefined === bIsFromDrawings) if (undefined === bIsFromDrawings)
{ {
this.HorVerAnchors.push({ Type : 1, Page : pageNum, Pos : yPos }); if (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 1, Page : pageNum, Pos : yPos });
}
return; return;
} }
......
...@@ -532,6 +532,7 @@ function asc_docs_api(name) ...@@ -532,6 +532,7 @@ function asc_docs_api(name)
this.InterfaceLocale = null; this.InterfaceLocale = null;
this.ShowParaMarks = false; this.ShowParaMarks = false;
this.ShowSnapLines = true;
this.isAddSpaceBetweenPrg = false; this.isAddSpaceBetweenPrg = false;
this.isPageBreakBefore = false; this.isPageBreakBefore = false;
this.isKeepLinesTogether = false; this.isKeepLinesTogether = false;
...@@ -3807,6 +3808,15 @@ asc_docs_api.prototype.SetDeviceInputHelperId = function(idKeyboard) ...@@ -3807,6 +3808,15 @@ asc_docs_api.prototype.SetDeviceInputHelperId = function(idKeyboard)
} }
} }
asc_docs_api.prototype.put_ShowSnapLines = function(isShow)
{
this.ShowSnapLines = isShow;
}
asc_docs_api.prototype.get_ShowSnapLines = function()
{
return this.ShowSnapLines;
}
asc_docs_api.prototype.put_ShowParaMarks = function(isShow) asc_docs_api.prototype.put_ShowParaMarks = function(isShow)
{ {
/* /*
......
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