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()
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 (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 0, Pos : xPos });
}
return;
}
......@@ -3082,11 +3085,14 @@ function CDrawingDocument()
}
}
this.DrawHorAnchor = function(yPos, bIsFromDrawings)
this.DrawHorAnchor = function(pageNum, yPos, bIsFromDrawings)
{
if (undefined === bIsFromDrawings)
{
if (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 1, Pos : yPos });
}
return;
}
......@@ -3105,9 +3111,9 @@ function CDrawingDocument()
{
var _anchor = this.HorVerAnchors[i];
if (_anchor.Type == 0)
this.DrawVerAnchor(_anchor.Pos, true);
this.DrawVerAnchor(0, _anchor.Pos, true);
else
this.DrawHorAnchor(_anchor.Pos, true);
this.DrawHorAnchor(0, _anchor.Pos, true);
}
this.HorVerAnchors.splice(0, this.HorVerAnchors.length);
}
......
......@@ -65,6 +65,7 @@ function asc_docs_api(name)
this.IsSupportEmptyPresentation = true;
this.ShowParaMarks = false;
this.ShowSnapLines = true;
this.isAddSpaceBetweenPrg = false;
this.isPageBreakBefore = false;
this.isKeepLinesTogether = false;
......@@ -1979,6 +1980,16 @@ asc_docs_api.prototype.put_Style = function(name)
this.WordControl.m_oLogicDocument.Create_NewHistoryPoint();
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){
this.ShowParaMarks = isShow;
this.WordControl.OnRePaintAttack();
......
......@@ -6007,8 +6007,11 @@ function CDrawingDocument()
this.DrawVerAnchor = function(pageNum, xPos, bIsFromDrawings)
{
if (undefined === bIsFromDrawings)
{
if (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 0, Page : pageNum, Pos : xPos });
}
return;
}
......@@ -6024,8 +6027,11 @@ function CDrawingDocument()
this.DrawHorAnchor = function(pageNum, yPos, bIsFromDrawings)
{
if (undefined === bIsFromDrawings)
{
if (this.m_oWordControl.m_oApi.ShowSnapLines)
{
this.HorVerAnchors.push({ Type : 1, Page : pageNum, Pos : yPos });
}
return;
}
......
......@@ -532,6 +532,7 @@ function asc_docs_api(name)
this.InterfaceLocale = null;
this.ShowParaMarks = false;
this.ShowSnapLines = true;
this.isAddSpaceBetweenPrg = false;
this.isPageBreakBefore = false;
this.isKeepLinesTogether = false;
......@@ -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)
{
/*
......
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