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

git-svn-id:...

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@54304 954022d7-b5bf-4e40-9824-e11837661b57
parent d6ce1323
...@@ -115,7 +115,12 @@ CDrawingDocument.prototype = ...@@ -115,7 +115,12 @@ CDrawingDocument.prototype =
// convert coords // convert coords
ConvertCoordsToCursorWR : function(x, y, pageIndex, transform) ConvertCoordsToCursorWR : function(x, y, pageIndex, transform)
{ {
var _return = this.Native["ConvertCoordsToCursor"](x, y, pageIndex, transform); var _return = null;
if (!transform)
_return = this.Native["ConvertCoordsToCursor"](x, y, pageIndex);
else
_return = this.Native["ConvertCoordsToCursor"](x, y, pageIndex,
transform.sx, transform.shy, transform.shx, transform.sy, transform.tx, transform.ty);
return { X : _return[0], Y : _return[1], Error: _return[2] }; return { X : _return[0], Y : _return[1], Error: _return[2] };
}, },
......
This diff is collapsed.
This diff is collapsed.
...@@ -53,7 +53,7 @@ CTextMeasurerWrapper.prototype = ...@@ -53,7 +53,7 @@ CTextMeasurerWrapper.prototype =
_lastSetUp.SetUpSize = font.FontSize; _lastSetUp.SetUpSize = font.FontSize;
_lastSetUp.SetUpStyle = oFontStyle; _lastSetUp.SetUpStyle = oFontStyle;
var _info = this.GetLoadInfoForMeasurer(window.g_font_infos[_lastSetUp.SetUpIndex], _lastSetUp.SetUpStyle); var _info = GetLoadInfoForMeasurer(window.g_font_infos[_lastSetUp.SetUpIndex], _lastSetUp.SetUpStyle);
var flag = 0; var flag = 0;
if (_info.NeedBold) flag |= 0x01; if (_info.NeedBold) flag |= 0x01;
if (_info.NeedItalic) flag |= 0x02; if (_info.NeedItalic) flag |= 0x02;
...@@ -164,7 +164,7 @@ CTextMeasurerWrapper.prototype = ...@@ -164,7 +164,7 @@ CTextMeasurerWrapper.prototype =
_lastFont.SetUpSize = _lastFont.Size; _lastFont.SetUpSize = _lastFont.Size;
_lastFont.SetUpStyle = _style; _lastFont.SetUpStyle = _style;
var _info = this.GetLoadInfoForMeasurer(window.g_font_infos[_lastFont.SetUpIndex], _lastFont.SetUpStyle); var _info = GetLoadInfoForMeasurer(window.g_font_infos[_lastFont.SetUpIndex], _lastFont.SetUpStyle);
var flag = 0; var flag = 0;
if (_info.NeedBold) flag |= 0x01; if (_info.NeedBold) flag |= 0x01;
if (_info.NeedItalic) flag |= 0x02; if (_info.NeedItalic) flag |= 0x02;
...@@ -226,10 +226,11 @@ CTextMeasurerWrapper.prototype = ...@@ -226,10 +226,11 @@ CTextMeasurerWrapper.prototype =
GetHeight : function() GetHeight : function()
{ {
return this.Height; return this.Height;
}, }
};
GetLoadInfoForMeasurer : function(info, lStyle) function GetLoadInfoForMeasurer(info, lStyle)
{ {
// подбираем шрифт по стилю // подбираем шрифт по стилю
var sReturnName = info.Name; var sReturnName = info.Name;
var bNeedBold = false; var bNeedBold = false;
...@@ -371,5 +372,4 @@ CTextMeasurerWrapper.prototype = ...@@ -371,5 +372,4 @@ CTextMeasurerWrapper.prototype =
SrcBold : bSrcBold, SrcBold : bSrcBold,
SrcItalic : bSrcItalic SrcItalic : bSrcItalic
}; };
} }
}; \ No newline at end of file
\ No newline at end of file
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