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

git-svn-id:...

git-svn-id: svn://fileserver/activex/AVS/Sources/TeamlabOffice/trunk/ServerComponents@53245 954022d7-b5bf-4e40-9824-e11837661b57
parent 2e211561
This diff is collapsed.
var g_dDpiX = 96.0;
var g_dDpiY = 96.0;
var g_dKoef_mm_to_pix = g_dDpiX / 25.4;
var g_dKoef_pix_to_mm = 25.4 / g_dDpiX;
var g_bIsMobile = AscBrowser.isMobile;
var g_bIsMouseUpLockedSend = false;
var Page_Width = 297;
var Page_Height = 210;
var X_Left_Margin = 30; // 3 cm
var X_Right_Margin = 15; // 1.5 cm
var Y_Bottom_Margin = 20; // 2 cm
var Y_Top_Margin = 20; // 2 cm
var Y_Default_Header = 12.5; // 1.25 cm
var Y_Default_Footer = 12.5; // 1.25 cm
var X_Left_Field = X_Left_Margin;
var X_Right_Field = Page_Width - X_Right_Margin;
var Y_Bottom_Field = Page_Height - Y_Bottom_Margin;
var Y_Top_Field = Y_Top_Margin;
var docpostype_Content = 0x00;
var docpostype_FlowObjects = 0x01;
var docpostype_HdrFtr = 0x02;
var selectionflag_Common = 0x00;
var selectionflag_Numbering = 0x01;
var selectionflag_DrawingObject = 0x002;
var orientation_Portrait = 0x00;
var orientation_Landscape = 0x01;
// не убирать!!! это для ие. чтобы не селектились элементы
document.onselectstart= function() {
return false;
}
function CEditorPage(api)
{
// ------------------------------------------------------------------
this.Name = "";
this.IsSupportNotes = false;
this.X = 0;
this.Y = 0;
this.Width = 10;
this.Height = 10;
this.m_nZoomValue = 100;
this.m_nZoomType = 2; // 0 - custom, 1 - fitToWodth, 2 - fitToPage
this.m_oBoundsController = new CBoundsController();
this.m_nTabsType = 0;
this.m_oDrawingDocument = new CDrawingDocument();
this.m_oLogicDocument = null;
this.m_oDrawingDocument.m_oWordControl = this;
this.m_oDrawingDocument.TransitionSlide.HtmlPage = this;
this.m_oDrawingDocument.m_oLogicDocument = this.m_oLogicDocument;
this.Thumbnails = new CThumbnailsManager();
this.SlideDrawer = new CSlideDrawer();
this.SlideBoundsOnCalculateSize = new CBoundsController();
// demonstrationMode
this.DemonstrationManager = new CDemonstrationManager(this);
this.m_oApi = api;
var oThis = this;
}
\ No newline at end of file
This diff is collapsed.
CFontFileLoader.prototype.LoadFontNative = function()
{
var __font_data_idx = g_fonts_streams.length;
var _data = window.native.GetFontBinary(this.Id);
g_fonts_streams[__font_data_idx] = new FT_Stream(_data, _data.length);
this.SetStreamIndex(__font_data_idx);
this.Status = 0;
};
BinaryFileReader.prototype.ReadNative = function(data)
{
try
{
this.stream = new FT_Stream2(data, data.length);
this.PreLoadPrepare();
this.ReadMainTable();
this.PostLoadPrepare();
}
catch(e)
{
if(e.message == g_sErrorCharCountMessage)
return false;
else
throw e;
}
return true;
};
CChartAsGroup.prototype.draw = function(graphics, pageIndex)
{
return;
};
function CCacheManager()
{
}
\ 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