Commit 27c48192 authored by Alexey.Golubev's avatar Alexey.Golubev Committed by Alexander.Trofimov

Рефакторинг офиса.

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@46986 954022d7-b5bf-4e40-9824-e11837661b57
parent d695836e
SET DEPLOY_FOLDER=\\ISA209\OfficeWeb
SET SOURCE_FOLDER=.\deploy
SET VERSION_INFO=Log\VersionInfo.txt
SET COAUTHORING_SERVER_URL=http://192.168.3.213:3000
SET API_FUNC_FILE_NAME=api_functions
SET SOURCE_DOC_API_FUNC_FOLDER=Log
SET SOURCE_TAB_API_FUNC_FOLDER=..\..\OfficeWebExcel\.build\Log
SET DEPLOY_API_FUNC_FOLDER=\\TESTPC-2\OnlineDocuments\API
SET DEPLOY_DOC_API_FUNC_FOLDER=%DEPLOY_API_FUNC_FOLDER%
SET DEPLOY_TAB_API_FUNC_FOLDER=%DEPLOY_API_FUNC_FOLDER%\Spreadsheet
SET /P DEPLOY_VER= < %VERSION_INFO%
SET /a DEPLOY_VER=%DEPLOY_VER%+1
ECHO %DEPLOY_VER% > %VERSION_INFO%
SET /a MAJOR_DEPLOY_VER=%DEPLOY_VER%/1000
SET /a MINOR_DEPLOY_VER=%DEPLOY_VER%%%1000
SET DEPLOY_SUB_FOLDER=%DEPLOY_FOLDER%\v%MAJOR_DEPLOY_VER%.%MINOR_DEPLOY_VER%
SET OUTPUT_API_FUNC_FILE_NAME=%API_FUNC_FILE_NAME%_v%MAJOR_DEPLOY_VER%.%MINOR_DEPLOY_VER%.js
MKDIR "%DEPLOY_SUB_FOLDER%" || exit /b 1
XCOPY /S "%SOURCE_FOLDER%\3rdparty" "%DEPLOY_SUB_FOLDER%\3rdparty\" /Y || exit /b 1
XCOPY /S "%SOURCE_FOLDER%\apps" "%DEPLOY_SUB_FOLDER%\apps\" /Y || exit /b 1
XCOPY /S "%SOURCE_FOLDER%\sdk" "%DEPLOY_SUB_FOLDER%\sdk\" /Y || exit /b 1
ECHO var g_cAscCoAuthoringUrl = "%COAUTHORING_SERVER_URL%"; > "%DEPLOY_SUB_FOLDER%\sdk\OfficeWebCommon\docscoapisettings.js"
XCOPY /S "%SOURCE_DOC_API_FUNC_FOLDER%\%API_FUNC_FILE_NAME%.js" "%DEPLOY_DOC_API_FUNC_FOLDER%\%OUTPUT_API_FUNC_FILE_NAME%" /Y
XCOPY /S "%SOURCE_TAB_API_FUNC_FOLDER%\%API_FUNC_FILE_NAME%.js" "%DEPLOY_TAB_API_FUNC_FOLDER%\%OUTPUT_API_FUNC_FILE_NAME%" /Y
@ECHO Script finished successfuly.
pause
@ECHO OFF
SET HG_DIR=C:\hg.stable
SET CHANGE_LOG_FILE=change.log
cd /D %HG_DIR%
ECHO Enter last version hg rev:
SET /p HG_REV=""
ECHO Menu changes: > %CHANGE_LOG_FILE%
hg log -r "%HG_REV%: and ancestors(tip) and not merge()" --template="-{desc}\r\n" >> %CHANGE_LOG_FILE%
%CHANGE_LOG_FILE%
\ No newline at end of file
0. Java
- Java
- Java
1.
- \\mediaserver\Exchange\Golubev\Tools .
- gcc, http://closure-compiler.googlecode.com/files/compiler-latest.zip
- , C:\Program Files (x86)\Google\Closure-compiler
- YUICompressor, http://yui.zenfs.com/releases/yuicompressor/yuicompressor-2.4.7.zip
- , C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\
- CLASSPATH, : C:\Program Files (x86)\Google\Closure-compiler\compiler.jar; C:\Program Files (x86)\Yahoo\yuicompressor-2.4.7\build\yuicompressor-2.4.7.jar
2. svn-.
- , http://www.sliksvn.com, .
1.6.18, , 1.7 , 1.6.17:
http://www.sliksvn.com/pub/Slik-Subversion-1.6.17-win32.msi
http://www.sliksvn.com/pub/Slik-Subversion-1.6.17-x64.msi
- .
3. .
- heckout svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord/Build
( E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord\Build)
- , , , .
:
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord)
-
-
- svn://fileserver/activex/ASC/Redist/WEB/sdk/OfficeWebWord (E:\Subversion\ASC\Redist\WEB\sdk\OfficeWebWord)
- commit_new_sdk_all.bat
4.
- , C:\Hg
- , build.bat MENU_FOLDER
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord)
- build.bat
:
- .
- .
-
deploy
- ( 3rdparty).
- :
deploy/apps/api/documents/index.html?doctype=text
- :
deploy/apps/api/documents/index.html?doctype=text&type=mobile
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet
- :
deploy/apps/api/documents/index.html?doctype=spreadsheet&type=mobile
- svn://fileserver/activex/AVS/Sources/AVSOfficeStudio/OfficeWebWord/Build/Log (E:\Subversion\AVS\Sources\AVSOfficeStudio\OfficeWebWord\Build\Log)
This diff is collapsed.
function GetBold()
{
var prop = editor.PT();
return prop.A7().a6();
}
function SetBold(flag)
{
editor.n$(flag);
}
function GetItalic()
{
var prop = editor.PT();
return prop.A7().J6();
}
function SetItalic(flag)
{
editor.q$(flag);
}
function GetUnderlined()
{
var prop = editor.PT();
return prop.A7().D7();
}
function SetUnderlined(flag)
{
editor.s$(flag);
}
function GetStrikeout()
{
var prop = editor.PT();
return prop.A7().q7();
}
function SetStrikeout(flag)
{
editor.r$(flag);
}
function GetFontType()
{
var prop = editor.PT();
return prop.A7().s6().uC();
}
function SetFontType(fontName)
{
editor.o$(fontName);
}
function GetFontSize()
{
var prop = editor.PT();
return prop.A7().v6();
}
function SetFontSize(fontSize)
{
editor.p$(fontSize);
}
function GetFontColorRed()
{
var prop = editor.PT();
return prop.A7().ow().N7();
}
function GetFontColorGreen()
{
var prop = editor.PT();
return prop.A7().ow().J7();
}
function GetFontColorBlue()
{
var prop = editor.PT();
return prop.A7().ow().I7();
}
function SetFontColor(red, green, blue)
{
editor.l$(red, green, blue)
}
function GetHighlightColorRed()
{
var prop = editor.PT();
return prop.A7().A6().N7();
}
function GetHighlightColorGreen()
{
var prop = editor.PT();
return prop.A7().A6().J7();
}
function GetHighlightColorBlue()
{
var prop = editor.PT();
return prop.A7().A6().I7();
}
function SetHighlightColor(flag, red, green, blue)
{
editor.E9(flag, red, green, blue)
}
function GetBackgroundColorRed()
{
var prop = editor.PT();
return prop.g7().l7().ow().N7();
}
function GetBackgroundColorGreen()
{
var prop = editor.PT();
return prop.g7().l7().ow().J7();
}
function GetBackgroundColorBlue()
{
var prop = editor.PT();
return prop.g7().l7().ow().I7();
}
function SetBackgroundColor(flag, red, green, blue)
{
editor.Q9(flag, red, green, blue)
}
function GetVerticalAlignment()
{
var prop = editor.PT();
return prop.A7().E7();
}
function SetVerticalAlignment(vertical_alignment)
{
editor.m$(vertical_alignment)
}
function GetHorizontalAlignment()
{
var prop = editor.PT();
return prop.g7().K6();
}
function SetHorizontalAlignment(horizontal_alignment)
{
editor.R9(horizontal_alignment)
}
function SetListType(type_id, subtype_id)
{
editor.G9(type_id, subtype_id)
}
function AddPageBreak()
{
editor.i9();
}
function GetIndentFirstLine()
{
var prop = editor.PT();
return prop.g7().aM().q6();
}
function GetIndentLeft()
{
var prop = editor.PT();
return prop.g7().aM().ps();
}
function GetIndentRight()
{
var prop = editor.PT();
return prop.g7().aM().qs();
}
function SetIndentFirstLine(first_line)
{
editor.S9(first_line);
}
function SetIndentLeft(left)
{
editor.T9(left);
}
function SetIndentRight(right)
{
editor.U9(right);
}
function GetSpacingLine()
{
var prop = editor.PT();
return prop.g7().wC().N6();
}
function GetSpacingBefore()
{
var prop = editor.PT();
return prop.g7().wC().Y5();
}
function GetSpacingAfter()
{
var prop = editor.PT();
return prop.g7().wC().W5();
}
function GetSpacingLineRule()
{
var prop = editor.PT();
return prop.g7().wC().O6();
}
function SetSpacingLine(line)
{
editor.V9(line);
}
function SetSpacingBefore(before)
{
editor.F9(0, before);
}
function SetSpacingAfter(after)
{
editor.F9(1, after);
}
function SetSpacingBetween(between)
{
editor.j9(between);
}
function SetMargin(left, up, right, down)
{
editor.H9(left, up, right, down);
}
function GetParagraphCount()
{
return editor.j6();
}
function SelectParagraph(paragraph_number)
{
editor.Y$(paragraph_number);
}
function HiddentSymbolsIsShown()
{
return editor.m7()
}
function GetPageCount()
{
return editor.S5()
}
function ParagraphPlacementPageBreakBefore()
{
var prop = editor.PT();
return prop.g7().dM();
}
function ParagrphPlacementKeepLinesTogether()
{
var prop = editor.PT();
return prop.g7().bM();
}
function InsertImageByURL(url)
{
editor.rI(url);
}
function GetOrientation()
{
return editor.pw();
}
function GetDocHeight()
{
return editor.jZ();
}
function GetDocWidth()
{
return editor.kZ();
}
function InsertTable(column, rows)
{
editor.e$(column, rows);
}
function OpenHeading(page_number)
{
editor.EZ(page_number)
}
function CloseHeading(page_number)
{
editor.DZ(page_number)
}
function CloseHeaderFooter(page_number)
{
editor.EZ(page_number)
}
"1111111"
"111111l"
"11111l1"
"11111ll"
"1111l11"
"1111l1l"
"1111ll1"
"1111lll"
"111l111"
"111l11l"
"111l1l1"
"111l1ll"
"111ll11"
"111ll1l"
"111lll1"
"111llll"
"11l1111"
"11l111l"
"11l11l1"
"11l11ll"
"11l1l11"
"11l1l1l"
"11l1ll1"
"11l1lll"
"11ll111"
"11ll11l"
"11ll1l1"
"11ll1ll"
"11lll11"
"11lll1l"
"11llll1"
"11lllll"
"1l11111"
"1l1111l"
"1l111l1"
"1l111ll"
"1l11l11"
"1l11l1l"
"1l11ll1"
"1l11lll"
"1l1l111"
"1l1l11l"
"1l1l1l1"
"1l1l1ll"
"1l1ll11"
"1l1ll1l"
"1l1lll1"
"1l1llll"
"1ll1111"
"1ll111l"
"1ll11l1"
"1ll11ll"
"1ll1l11"
"1ll1l1l"
"1ll1ll1"
"1ll1lll"
"1lll111"
"1lll11l"
"1lll1l1"
"1lll1ll"
"1llll11"
"1llll1l"
"1lllll1"
"1llllll"
"l111111"
"l11111l"
"l1111l1"
"l1111ll"
"l111l11"
"l111l1l"
"l111ll1"
"l111lll"
"l11l111"
"l11l11l"
"l11l1l1"
"l11l1ll"
"l11ll11"
"l11ll1l"
"l11lll1"
"l11llll"
"l1l1111"
"l1l111l"
"l1l11l1"
"l1l11ll"
"OnError"
"OnDocumentChanged"
"OnDocumentModifiedChanged"
"OnUpdateScrolls"
"OnCurrentVisiblePage"
"OnCurrentPage"
"OnFocusObject"
"OnDocInfo"
"OnGetDocInfoStart"
"OnGetDocInfoStop"
"OnGetDocInfoEnd"
"OnCanUndo"
"OnCanRedo"
"OnPrint"
"OnUndo"
"OnRedo"
"OnCopy"
"OnCut"
"OnPaste"
"OnShare"
"OnSave"
"OnDownload"
"OnStartAction"
"OnEndAction"
"OnAddURL"
"OnHelp"
"OnZoom"
"OnMessage"
"OnClearPropObj"
"OnChangeActiveHeader"
"OnReturnHeaders"
"OnSearchFound"
"OnSearchStart"
"OnSearchStop"
"OnSearchEnd"
"OnBold"
"OnItalic"
"OnUnderline"
"OnStrikeout"
"OnFontFamily"
"OnFontSize"
"OnLineSpacing"
"OnInitEditorFonts"
"OnInitEditorStyles"
"OnVerticalAlign"
"OnPrAlign"
"OnListType"
"OnTextColor"
"OnTextHighLight"
"OnParaStyleName"
"OnParaSpacingLine"
"OnPageBreak"
"OnKeepLines"
"OnShowParaMarks"
"OnSpaceBetweenPrg"
"OnDocSize"
"OnPageOrient"
"OnAddTable"
"OnAlignCell"
"OnTblWrapStyleChanged"
"OnTblAlignChanged"
"OnAddImage"
"OnImgWrapStyleChanged"
"OnContextMenu"
"OnMouseMoveStart"
"OnMouseMoveEnd"
"OnMouseMove"
"OnHyperlinkClick"
"OnCanAddHyperlink"
"OnDialogAddHyperlink"
"OnLockHeaderFooters"
"OnLockDocumentProps"
"OnUnLockHeaderFooters"
"OnUnLockDocumentProps"
"OnCollaborativeChanges"
"OnZoomChange"
"OnCountPages"
"OnEnableKeyEventsChanged"
"OnDocumentContentReady"
"OnAllComments"
"OnOpenDocumentProgress"
"OnPaintFormatChanged"
"OnMarkerFormatChanged"
"OnSaveUrl"
This diff is collapsed.
This diff is collapsed.
function GetBold()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Bold();
}
function SetBold(flag)
{
editor.put_TextPrBold(flag);
}
function GetItalic()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Italic();
}
function SetItalic(flag)
{
editor.put_TextPrItalic(flag);
}
function GetUnderlined()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Underline();
}
function SetUnderlined(flag)
{
editor.put_TextPrUnderline(flag);
}
function GetStrikeout()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Strikeout();
}
function SetStrikeout(flag)
{
editor.put_TextPrStrikeout(flag);
}
function GetFontType()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_FontFamily().get_Name();
}
function SetFontType(fontName)
{
editor.put_TextPrFontName(fontName);
}
function GetFontSize()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_FontSize();
}
function SetFontSize(fontSize)
{
editor.put_TextPrFontSize(fontSize);
}
function GetFontColorRed()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Color().get_r();
}
function GetFontColorGreen()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Color().get_g();
}
function GetFontColorBlue()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_Color().get_b();
}
function SetFontColor(red, green, blue)
{
editor.put_TextColor(red, green, blue)
}
function GetHighlightColorRed()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_HighLight().get_r();
}
function GetHighlightColorGreen()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_HighLight().get_g();
}
function GetHighlightColorBlue()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_HighLight().get_b();
}
function SetHighlightColor(flag, red, green, blue)
{
editor.put_LineHighLight(flag, red, green, blue)
}
function GetBackgroundColorRed()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Shd().get_Color().get_r();
}
function GetBackgroundColorGreen()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Shd().get_Color().get_g();
}
function GetBackgroundColorBlue()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Shd().get_Color().get_b();
}
function SetBackgroundColor(flag, red, green, blue)
{
editor.put_ParagraphShade(flag, red, green, blue)
}
function GetVerticalAlignment()
{
var prop = editor.get_TextProps();
return prop.get_TextPr().get_VertAlign();
}
function SetVerticalAlignment(vertical_alignment)
{
editor.put_TextPrBaseline(vertical_alignment)
}
function GetHorizontalAlignment()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Jc();
}
function SetHorizontalAlignment(horizontal_alignment)
{
editor.put_PrAlign(horizontal_alignment)
}
function SetListType(type_id, subtype_id)
{
editor.put_ListType(type_id, subtype_id)
}
function AddPageBreak()
{
editor.put_AddPageBreak();
}
function GetIndentFirstLine()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Ind().get_FirstLine();
}
function GetIndentLeft()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Ind().get_Left();
}
function GetIndentRight()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Ind().get_Right();
}
function SetIndentFirstLine(first_line)
{
editor.put_PrFirstLineIndent(first_line);
}
function SetIndentLeft(left)
{
editor.put_PrIndent(left);
}
function SetIndentRight(right)
{
editor.put_PrIndentRight(right);
}
function GetSpacingLine()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_Line();
}
function GetSpacingBefore()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_Before();
}
function GetSpacingAfter()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_After();
}
function GetSpacingLineRule()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_Spacing().get_LineRule();
}
function SetSpacingLine(line)
{
editor.put_PrLineSpacing(line);
}
function SetSpacingBefore(before)
{
editor.put_LineSpacingBeforeAfter(0, before);
}
function SetSpacingAfter(after)
{
editor.put_LineSpacingBeforeAfter(1, after);
}
function SetSpacingBetween(between)
{
editor.put_AddSpaceBetweenPrg(between);
}
function SetMargin(left, up, right, down)
{
editor.put_Margins(left, up, right, down);
}
function GetParagraphCount()
{
return editor.get_ContentCount();
}
function SelectParagraph(paragraph_number)
{
editor.select_Element(paragraph_number);
}
function HiddentSymbolsIsShown()
{
return editor.get_ShowParaMarks()
}
function GetPageCount()
{
return editor.getCountPages()
}
function ParagraphPlacementPageBreakBefore()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_PageBreakBefore();
}
function ParagrphPlacementKeepLinesTogether()
{
var prop = editor.get_TextProps();
return prop.get_ParaPr().get_KeepLines();
}
function InsertImageByURL(url)
{
editor.AddImageUrl(url);
}
function GetOrientation()
{
return editor.get_DocumentOrientation();
}
function GetDocHeight()
{
return editor.GetDocHeightPx();
}
function GetDocWidth()
{
return editor.GetDocWidthPx();
}
function InsertTable(column, rows)
{
editor.put_Table(column, rows);
}
function OpenHeading(page_number)
{
editor.GoToHeader(page_number)
}
function CloseHeading(page_number)
{
editor.GoToFooter(page_number)
}
function CloseHeaderFooter(page_number)
{
editor.GoToHeader(page_number)
}
@ECHO OFF
SET MENU_FOLDER=C:\Hg
SET FONT_ENGINE=..\FontsFreeType
SET TEXT_ENGINE=..\WebWord
SET COMMON=..\..\OfficeWebCommon
SET DEPLOY_FOLDER=deploy
SET OUTPUT_FOLDER=%DEPLOY_FOLDER%\sdk\OfficeWebWord
SET OUTPUT_FONT_FOLDER=%OUTPUT_FOLDER%\FontsFreeType\FontFiles
SET RESULT_SCRIPT_NAME=%OUTPUT_FOLDER%\WebWord\sdk-all.js
ECHO ----------------------------------
ECHO Make output folder: %OUTPUT_FOLDER%
ECHO ----------------------------------
MKDIR %OUTPUT_FOLDER%
rem Build site structure
ECHO ----------------------------------
ECHO Copy fonts files
ECHO ----------------------------------
XCOPY "%FONT_ENGINE%\FontFiles" "%OUTPUT_FONT_FOLDER%" /Y /I /Q
rem ECHO Copy scroll resources
ECHO ----------------------------------
ECHO Copy common resorses
ECHO ----------------------------------
XCOPY "%COMMON%\MobileDownloader" "%OUTPUT_FOLDER%\..\OfficeWebCommon\MobileDownloader" /Y /I /Q
XCOPY "%COMMON%\docscoapisettings.js" "%OUTPUT_FOLDER%\..\OfficeWebCommon\" /Y /I /Q
ECHO ----------------------------------
ECHO Copy cursor resources
ECHO ----------------------------------
XCOPY "%TEXT_ENGINE%\Images\copy_format.cur" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
XCOPY "%TEXT_ENGINE%\Images\copy_format.png" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
XCOPY "%TEXT_ENGINE%\Images\marker_format.cur" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
XCOPY "%TEXT_ENGINE%\Images\marker_format.png" "%OUTPUT_FOLDER%\WebWord\Images\" /Y /I /Q
rem XCOPY "%TEXT_ENGINE%\apiDefines.js" "%OUTPUT_FOLDER%\apiDefines.js" /Y /I /Q
rem --formatting PRETTY_PRINT ^
SET EDITOR_API_FILE=%TEXT_ENGINE%\api.js
SET EDITOR_APIDEFINE_FILE=%TEXT_ENGINE%\apiDefines.js
SET BUIL_LOG_DIR=Log
SET EDITOR_API_EXPORT_FILE=%BUIL_LOG_DIR%\apiExport.js
SET VARIABLE_MAP_FILE=%BUIL_LOG_DIR%\variable.map
SET PROPERTY_MAP_FILE=%BUIL_LOG_DIR%\property.map
SET OUTVAL_MAP_FILE=%BUIL_LOG_DIR%\out_val.map
SET OUTOBF_MAP_FILE=%BUIL_LOG_DIR%\out_obf.map
ECHO ----------------------------------
ECHO Generate api exports
ECHO ----------------------------------
ExtractJSApi.exe "%EDITOR_API_FILE%" "%EDITOR_API_EXPORT_FILE%"
CALL build_sdk_all.bat %RESULT_SCRIPT_NAME% %BUIL_LOG_DIR% "ASC_DOCS_API_DEBUG=false"
rem GOTO Sucsess
CALL %MENU_FOLDER%\Build\build.bat
ECHO ----------------------------------
ECHO Copy menu
ECHO ----------------------------------
rem XCOPY /S %MENU_FOLDER%\3rdparty %DEPLOY_FOLDER%\3rdparty\ /Y
XCOPY /S %MENU_FOLDER%\deploy\api %DEPLOY_FOLDER%\apps\api\ /Y
XCOPY /S %MENU_FOLDER%\deploy\documenteditor %DEPLOY_FOLDER%\apps\documenteditor\ /Y
SET MENU_DEPLOY_FOLDER=%DEPLOY_FOLDER%\apps
SET EDITOR_MENU=%MENU_DEPLOY_FOLDER%\documenteditor
set EDITOR_MENU_JS_FILE=%EDITOR_MENU%\main\app-all.js
set TOUCH_EDITOR_MENU_JS_FILE=%EDITOR_MENU%\mobile\app-all.js
set API_TEST_JS_FILE=api_functions.js
set OUTPUT_API_TEST_JS_FILE=%BUIL_LOG_DIR%\%API_TEST_JS_FILE%
ECHO ----------------------------------
ECHO Obfuscate JS API
ECHO ----------------------------------
ObfuscateJSApi.exe -verbose -ccvars "%VARIABLE_MAP_FILE%" ^
-ccprops "%PROPERTY_MAP_FILE%" ^
-api "%EDITOR_API_EXPORT_FILE%" ^
-clientjs "%EDITOR_MENU_JS_FILE%" "%EDITOR_MENU_JS_FILE%" ^
-clientjs "%TOUCH_EDITOR_MENU_JS_FILE%" "%TOUCH_EDITOR_MENU_JS_FILE%" ^
-clientjs "%API_TEST_JS_FILE%" "%OUTPUT_API_TEST_JS_FILE%" ^
-ccres "%RESULT_SCRIPT_NAME%" "%RESULT_SCRIPT_NAME%"
ECHO ----------------------------------
ECHO Obfuscate callback name
ECHO ----------------------------------
ObfuscateStrings.exe ^
-api "%RESULT_SCRIPT_NAME%" ^
-pat "\"On[A-Z]+\w*\"" -exp se -outmap "%OUTVAL_MAP_FILE%" "%OUTOBF_MAP_FILE%" ^
-apply "%EDITOR_MENU_JS_FILE%" "%EDITOR_MENU_JS_FILE%" ^
-apply "%TOUCH_EDITOR_MENU_JS_FILE%" "%TOUCH_EDITOR_MENU_JS_FILE%" ^
-apply "%OUTPUT_API_TEST_JS_FILE%" "%OUTPUT_API_TEST_JS_FILE%" ^
-apply "%RESULT_SCRIPT_NAME%" "%RESULT_SCRIPT_NAME%"
:Sucsess
pause
@ECHO OFF
SET BUILD_DIR=%CD%
SET SOURCE_MAP_NAME=SourceMap.js
SET OUTPUT_SCRIPT_NAME=%~nx1
SET OUTPUT_FOLDER=%~dp1
SET LOG_FOLDER=%~f2
CD ..\WebWord
SET TEXT_ENGINE=.
SET FONT_ENGINE=..\FontsFreeType
SET COMMON_FOLDER=..\..\OfficeWebCommon
SET EDITOR_API_EXPORT_FILE=%LOG_FOLDER%\apiExport.js
SET VARIABLE_MAP_FILE=%LOG_FOLDER%\variable.map
SET PROPERTY_MAP_FILE=%LOG_FOLDER%\property.map
SET OUTVAL_MAP_FILE=%LOG_FOLDER%\out_val.map
SET OUTOBF_MAP_FILE=%LOG_FOLDER%\out_obf.map
SET GCC_DEFINE=%3
SET CLOSURE_COMPILER=com.google.javascript.jscomp.CommandLineRunner
ECHO Make output folder: %LOG_FOLDER%
MKDIR %LOG_FOLDER%
rem --formatting PRETTY_PRINT ^
SET EDITOR_API_FILE=%TEXT_ENGINE%\api.js
SET EDITOR_APIDEFINE_FILE=%TEXT_ENGINE%\apiDefines.js
ECHO ON
%BUILD_DIR%\ExtractJSApi.exe "%EDITOR_API_FILE%" "%EDITOR_API_EXPORT_FILE%"
java %CLOSURE_COMPILER% ^
--compilation_level ADVANCED_OPTIMIZATIONS ^
--externs "%TEXT_ENGINE%\Drawing\scrolls\jquery.min.js" ^
--externs "%COMMON_FOLDER%\3rdparty\Underscore\underscore-min.js" ^
--externs "%COMMON_FOLDER%\3rdparty\Sockjs\sockjs-0.3.min.js" ^
--externs "%BUILD_DIR%\apiExtern.js" ^
--js ^
"%COMMON_FOLDER%\License.js" ^
"%COMMON_FOLDER%\docscoapicommon.js" ^
"%COMMON_FOLDER%\docscoapi.js" ^
"%COMMON_FOLDER%\downloaderfiles.js" ^
"%FONT_ENGINE%\font_engine.js" ^
"%FONT_ENGINE%\FontFile.js" ^
"%FONT_ENGINE%\FontManager.js" ^
"%TEXT_ENGINE%\Drawing\Externals.js" ^
"%TEXT_ENGINE%\Drawing\AllFonts.js" ^
"%TEXT_ENGINE%\Drawing\GlobalLoaders.js" ^
"%FONT_ENGINE%\FontExport.js" ^
"%TEXT_ENGINE%\Editor\CollaborativeEditing.js" ^
"%TEXT_ENGINE%\Editor\Comments.js" ^
"%TEXT_ENGINE%\Editor\History.js" ^
"%TEXT_ENGINE%\Editor\Styles.js" ^
"%TEXT_ENGINE%\Editor\DrawingObjects.js" ^
"%TEXT_ENGINE%\Editor\FlowObjects.js" ^
"%TEXT_ENGINE%\Editor\ParagraphContent.js" ^
"%TEXT_ENGINE%\Editor\Paragraph.js" ^
"%TEXT_ENGINE%\Editor\Sections.js" ^
"%TEXT_ENGINE%\Editor\Numbering.js" ^
"%TEXT_ENGINE%\Editor\HeaderFooter.js" ^
"%TEXT_ENGINE%\Editor\Document.js" ^
"%TEXT_ENGINE%\Editor\Common.js" ^
"%TEXT_ENGINE%\Editor\DocumentContent.js" ^
"%TEXT_ENGINE%\Editor\Table.js" ^
"%TEXT_ENGINE%\Editor\Serialize2.js" ^
"%TEXT_ENGINE%\Drawing\translations.js" ^
"%TEXT_ENGINE%\Drawing\documentrenderer.js" ^
"%TEXT_ENGINE%\Drawing\Graphics.js" ^
"%TEXT_ENGINE%\Drawing\Metafile.js" ^
"%TEXT_ENGINE%\Drawing\DrawingDocument.js" ^
"%TEXT_ENGINE%\Drawing\GraphicsEvents.js" ^
"%TEXT_ENGINE%\Drawing\WorkEvents.js" ^
"%TEXT_ENGINE%\Drawing\Controls.js" ^
"%TEXT_ENGINE%\Drawing\Rulers.js" ^
"%TEXT_ENGINE%\Drawing\HtmlPage.js" ^
"%TEXT_ENGINE%\Drawing\scrolls\scroll.js" ^
"%EDITOR_APIDEFINE_FILE%" ^
"%EDITOR_API_FILE%" ^
"%EDITOR_API_EXPORT_FILE%" ^
--define=%GCC_DEFINE% ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--warning_level QUIET ^
--variable_map_output_file "%VARIABLE_MAP_FILE%" ^
--property_map_output_file "%PROPERTY_MAP_FILE%" ^
--create_source_map "%OUTPUT_SCRIPT_NAME%.map" ^
--source_map_format=V3
@if NOT "%ERRORLEVEL%"=="0" goto error
SET OUTPUT_APIDEFINE_FILE=%EDITOR_APIDEFINE_FILE%.tmp
java %CLOSURE_COMPILER% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js "%EDITOR_APIDEFINE_FILE%" ^
--js_output_file "%OUTPUT_APIDEFINE_FILE%"
@if NOT "%ERRORLEVEL%"=="0" goto error
ECHO //@ sourceMappingURL=http://localhost:8080/sdk/OfficeWebWord/WebWord/%OUTPUT_SCRIPT_NAME%.map>"%SOURCE_MAP_NAME%"
COPY /Y /B "%OUTPUT_SCRIPT_NAME%"+"%OUTPUT_APIDEFINE_FILE%"+"%SOURCE_MAP_NAME%" "%OUTPUT_SCRIPT_NAME%"
MOVE /Y "%OUTPUT_SCRIPT_NAME%" "%OUTPUT_FOLDER%"
COPY /Y "%OUTPUT_SCRIPT_NAME%.map" "%OUTPUT_FOLDER%"
DEL /Q "%OUTPUT_APIDEFINE_FILE%"
DEL /Q "%SOURCE_MAP_NAME%"
@ECHO off
cd "%BUILD_DIR%"
exit /b 0
:check_compiler
java -classpath %CLASSPATH% %CLOSURE_COMPILER% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" exit /b 0
if NOT EXIST google-cc-path.txt echo %cd% > google-cc-path.txt
:_1
set /p gccpath=<google-cc-path.txt
call :check_gccpath "%gccpath%" && exit /b 0
echo Please enter correct path to Google Closure Complier directory in "google-cc-path.txt" file
echo.
start "" /wait notepad google-cc-path.txt
goto _1
:check_gccpath
if EXIST "%~1\compiler.jar" (
if "%CLASSPATH%"=="" (
set CLASSPATH="%~1\compiler.jar"
) else (
set CLASSPATH=%CLASSPATH%;"%~1\compiler.jar"
)
exit /b 0
)
exit /b 1
:error
@exit /b 1
\ No newline at end of file
@ECHO OFF
SET BUILD_DIR=%CD%
SET SOURCE_MAP_NAME=SourceMap.js
SET OUTPUT_SCRIPT_NAME=sdk-all-merge.js
SET OUTPUT_FOLDER=../Build/deploy/merge
SET LOG_FOLDER=Log
CD ..\WebWord
SET TEXT_ENGINE=.
SET FONT_ENGINE=..\FontsFreeType
SET COMMON_FOLDER=..\..\OfficeWebCommon
SET EDITOR_API_EXPORT_FILE=%LOG_FOLDER%\apiExport.js
SET VARIABLE_MAP_FILE=%LOG_FOLDER%\variable.map
SET PROPERTY_MAP_FILE=%LOG_FOLDER%\property.map
SET OUTVAL_MAP_FILE=%LOG_FOLDER%\out_val.map
SET OUTOBF_MAP_FILE=%LOG_FOLDER%\out_obf.map
SET CLOSURE_COMPILER=com.google.javascript.jscomp.CommandLineRunner
ECHO Make output folder: %LOG_FOLDER%
MKDIR %LOG_FOLDER%
rem --formatting PRETTY_PRINT ^
SET EDITOR_API_FILE=%TEXT_ENGINE%\merge\api_merge.js
SET EDITOR_APIDEFINE_FILE=%TEXT_ENGINE%\apiDefines.js
java %CLOSURE_COMPILER% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js ^
"%TEXT_ENGINE%\merge\utils.js" ^
"%TEXT_ENGINE%\Editor\CollaborativeEditing.js" ^
"%TEXT_ENGINE%\Editor\History.js" ^
"%TEXT_ENGINE%\Editor\Styles.js" ^
"%TEXT_ENGINE%\Editor\DrawingObjects.js" ^
"%TEXT_ENGINE%\Editor\FlowObjects.js" ^
"%TEXT_ENGINE%\Editor\ParagraphContent.js" ^
"%TEXT_ENGINE%\Editor\Paragraph.js" ^
"%TEXT_ENGINE%\Editor\Sections.js" ^
"%TEXT_ENGINE%\Editor\Numbering.js" ^
"%TEXT_ENGINE%\Editor\HeaderFooter.js" ^
"%TEXT_ENGINE%\Editor\Document.js" ^
"%TEXT_ENGINE%\Editor\Common.js" ^
"%TEXT_ENGINE%\Editor\DocumentContent.js" ^
"%TEXT_ENGINE%\Editor\Table.js" ^
"%TEXT_ENGINE%\Editor\Serialize2.js" ^
"%EDITOR_APIDEFINE_FILE%" ^
"%EDITOR_API_FILE%" ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--warning_level QUIET ^
--variable_map_output_file "%VARIABLE_MAP_FILE%" ^
--property_map_output_file "%PROPERTY_MAP_FILE%" ^
--create_source_map "%OUTPUT_SCRIPT_NAME%.map" ^
--source_map_format=V3
@if NOT "%ERRORLEVEL%"=="0" goto error
SET OUTPUT_APIDEFINE_FILE=%EDITOR_APIDEFINE_FILE%.tmp
java %CLOSURE_COMPILER% ^
--compilation_level SIMPLE_OPTIMIZATIONS ^
--js "%EDITOR_APIDEFINE_FILE%" ^
--js_output_file "%OUTPUT_APIDEFINE_FILE%"
@if NOT "%ERRORLEVEL%"=="0" goto error
COPY /Y /B "%OUTPUT_SCRIPT_NAME%"+"%OUTPUT_APIDEFINE_FILE%" "%OUTPUT_SCRIPT_NAME%"
MOVE /Y "%OUTPUT_SCRIPT_NAME%" "%OUTPUT_FOLDER%"
DEL /Q "%OUTPUT_APIDEFINE_FILE%"
COPY /Y /B "%TEXT_ENGINE%\merge\merge.js" "%OUTPUT_FOLDER%"
@ECHO off
cd "%BUILD_DIR%"
exit /b 0
:check_compiler
java -classpath %CLASSPATH% %CLOSURE_COMPILER% --help >nul 2>&1
if "%ERRORLEVEL%"=="-1" exit /b 0
if NOT EXIST google-cc-path.txt echo %cd% > google-cc-path.txt
:_1
set /p gccpath=<google-cc-path.txt
call :check_gccpath "%gccpath%" && exit /b 0
echo Please enter correct path to Google Closure Complier directory in "google-cc-path.txt" file
echo.
start "" /wait notepad google-cc-path.txt
goto _1
:check_gccpath
if EXIST "%~1\compiler.jar" (
if "%CLASSPATH%"=="" (
set CLASSPATH="%~1\compiler.jar"
) else (
set CLASSPATH=%CLASSPATH%;"%~1\compiler.jar"
)
exit /b 0
)
exit /b 1
:error
@exit /b 1
\ No newline at end of file
@ECHO OFF
SET FONT_ENGINE=..\FontsFreeType
SET TEXT_ENGINE=..\WebWord
SET VIEW_ENGINE=%TEXT_ENGINE%\Viewer
SET MENU_ENGINE=%TEXT_ENGINE%\menu
set CLOSURE_COMPILER=com.google.javascript.jscomp.CommandLineRunner
SET OUTPUT_SCRIPT_NAME=%VIEW_ENGINE%\viewer.js
rem --formatting PRETTY_PRINT ^
ECHO ON
ExtractJSApi.exe "%VIEW_ENGINE%\api.js" "apiViewerExport.js"
java %CLOSURE_COMPILER% ^
--compilation_level ADVANCED_OPTIMIZATIONS ^
--js ^
"%TEXT_ENGINE%\common\downloaderfiles.js" ^
"%TEXT_ENGINE%\..\FontEngine\font_engine.js" ^
"%FONT_ENGINE%\FontFile.js" ^
"%FONT_ENGINE%\FontManager.js" ^
"%TEXT_ENGINE%\Drawing\Externals.js" ^
"%TEXT_ENGINE%\Drawing\AllFonts.js" ^
"%TEXT_ENGINE%\Drawing\GlobalLoaders.js" ^
"%FONT_ENGINE%\FontExport.js" ^
"%TEXT_ENGINE%\Drawing\Graphics.js" ^
"%TEXT_ENGINE%\Drawing\Metafile.js" ^
"%VIEW_ENGINE%\scripts\HtmlPage.js" ^
"%VIEW_ENGINE%\scripts\DrawingDocument.js" ^
"%VIEW_ENGINE%\scripts\documentrenderer.js" ^
"%TEXT_ENGINE%\Drawing\GraphicsEvents.js" ^
"%TEXT_ENGINE%\Drawing\Controls.js" ^
"%TEXT_ENGINE%\Drawing\WorkEvents.js" ^
"%MENU_ENGINE%\Statusbar.js" ^
"%TEXT_ENGINE%\Drawing\scrolls\scroll.js" ^
"%TEXT_ENGINE%\apiDefines.js" ^
"%VIEW_ENGINE%\api.js" ^
"apiViewerExport.js" ^
"%VIEW_ENGINE%\loader.js" ^
--js_output_file "%OUTPUT_SCRIPT_NAME%" ^
--warning_level QUIET ^
--variable_map_output_file "variable.map" ^
--property_map_output_file "property.map"
pause
@ECHO off
\ No newline at end of file
@echo off
SET STABLE_API_FOLDER=..\..\..\..\..\ASC\Redist\WEB\sdk\OfficeWebWord
SET STABLE_SDK_FOLDER=%STABLE_API_FOLDER%\WebWord
SET STABLE_SDK_JS=%STABLE_SDK_FOLDER%\sdk-all.js
SET STABLE_SDK_LOG_FOLDER=Log
SET SDK_SOURCE_FOLDER=..
SET SDK_COMMON_SOURCE_FOLDER=..\..\OfficeWebCommon
SET COMMIT_MESSAGE_FILE=info.log
call :check_svn || exit /b 1
cd /D "%~dp0" || exit /b 1
echo Update OfficeWebWord svn repository
svn update %SDK_COMMON_SOURCE_FOLDER%
svn update %SDK_SOURCE_FOLDER%
echo Copy API script.
XCOPY /S "%SDK_SOURCE_FOLDER%\WebWord\document" "%STABLE_API_FOLDER%\document\" /Y
XCOPY "%SDK_SOURCE_FOLDER%\WebWord\api.js" "%STABLE_API_FOLDER%\api.js" /Y /I /Q
XCOPY "%SDK_SOURCE_FOLDER%\WebWord\apiDefines.js" "%STABLE_API_FOLDER%\apiDefines.js" /Y /I /Q
echo "sdk-all.js was build from svn repository (see log below):" > %COMMIT_MESSAGE_FILE%
svn info %SDK_SOURCE_FOLDER% >> %COMMIT_MESSAGE_FILE%
echo Build new version
CALL build_sdk_all.bat %STABLE_SDK_JS% %STABLE_SDK_LOG_FOLDER% "ASC_DOCS_API_DEBUG=true"
XCOPY "%STABLE_SDK_LOG_FOLDER%\property.map" "%STABLE_API_FOLDER%\WebWord\property.map" /Y /I /Q
XCOPY "%STABLE_SDK_LOG_FOLDER%\variable.map" "%STABLE_API_FOLDER%\WebWord\variable.map" /Y /I /Q
XCOPY "%STABLE_SDK_LOG_FOLDER%\apiExport.js" "%STABLE_API_FOLDER%\WebWord\apiExport.js" /Y /I /Q
echo Update putput svn repository
svn update %STABLE_API_FOLDER%
echo Commit changes
@echo on
svn commit %STABLE_API_FOLDER% -F %COMMIT_MESSAGE_FILE%
@echo off
del %COMMIT_MESSAGE_FILE%
echo Script finished successfully!
pause
exit /b 0
:check_svn
svn help > nul 2>&1
if errorlevel 1 (
echo Cannot find subversion command-line client.
pause
exit /b 1
)
exit /b 0
This source diff could not be displayed because it is too large. You can view the blob instead.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
/******************************************************************************/
// SERVICES
/******************************************************************************/
/******************************************************************************/
// bdf
/******************************************************************************/
var FT_SERVICE_ID_BDF = "bdf";
function FT_Service_BDFRec(get_charset_id_,get_property_)
{
this.get_charset_id = get_charset_id_;
this.get_property = get_property_;
}
/******************************************************************************/
// cid
/******************************************************************************/
var FT_SERVICE_ID_CID = "CID";
function FT_Service_CIDRec(get_ros_, get_is_cid_, get_cid_from_glyph_index_)
{
this.get_ros = get_ros_;
this.get_is_cid = get_is_cid_;
this.get_cid_from_glyph_index = get_cid_from_glyph_index_;
}
/******************************************************************************/
// glyph-dict
/******************************************************************************/
var FT_SERVICE_ID_GLYPH_DICT = "glyph-dict";
function FT_Service_GlyphDictRec(get_name_, name_index_)
{
this.get_name = get_name_;
this.name_index = name_index_;
}
/******************************************************************************/
// gxval
/******************************************************************************/
var FT_SERVICE_ID_GX_VALIDATE = "truetypegx-validate";
var FT_SERVICE_ID_CLASSICKERN_VALIDATE = "classickern-validate";
function FT_Service_GXvalidateRec(validate_)
{
this.validate = validate_;
}
function FT_Service_CKERNvalidateRec(validate_)
{
this.validate = validate_;
}
/******************************************************************************/
// kerning
/******************************************************************************/
var FT_SERVICE_ID_KERNING = "kerning";
function FT_Service_KerningRec(get_track_)
{
this.get_track = get_track_;
}
/******************************************************************************/
// multi-masters
/******************************************************************************/
var FT_SERVICE_ID_MULTI_MASTERS = "multi-masters";
function FT_Service_MultiMastersRec(get_mm_, set_mm_design_, set_mm_blend_, get_mm_var_, set_var_design_)
{
this.get_mm = get_mm_;
this.set_mm_design = set_mm_design_;
this.set_mm_blend = set_mm_blend_;
this.get_mm_var = get_mm_var_;
this.set_var_design = set_var_design_;
}
/******************************************************************************/
// opentype-validate
/******************************************************************************/
var FT_SERVICE_ID_OPENTYPE_VALIDATE = "opentype-validate";
function FT_Service_OTvalidateRec(validate_)
{
this.validate = validate_;
}
/******************************************************************************/
// pfr-metrics
/******************************************************************************/
var FT_SERVICE_ID_PFR_METRICS = "pfr-metrics";
function FT_Service_PfrMetricsRec(get_metrics_,get_kerning_,get_advance_)
{
this.get_metrics = get_metrics_;
this.get_kerning = get_kerning_;
this.get_advance = get_advance_;
}
/******************************************************************************/
// postscript-font-name
/******************************************************************************/
var FT_SERVICE_ID_POSTSCRIPT_FONT_NAME = "postscript-font-name";
function FT_Service_PsFontNameRec(get_ps_font_name_)
{
this.get_ps_font_name = get_ps_font_name_;
}
/******************************************************************************/
// postscript-cmaps
/******************************************************************************/
var FT_SERVICE_ID_POSTSCRIPT_CMAPS = "postscript-cmaps";
function PS_UniMap()
{
this.unicode;
this.glyph_index;
}
function PS_UnicodesRec()
{
this.cmap;
this.num_maps;
this.maps;
}
function FT_Service_PsCMapsRec(unicode_value_, unicodes_init_,unicodes_char_index_, unicodes_char_next_, macintosh_name_,
adobe_std_strings_, adobe_std_encoding_, adobe_expert_encoding_)
{
this.unicode_value = unicode_value_;
this.unicodes_init = unicodes_init_;
this.unicodes_char_index = unicodes_char_index_;
this.unicodes_char_next = unicodes_char_next_;
this.macintosh_name = macintosh_name_;
this.adobe_std_strings = adobe_std_strings_;
this.adobe_std_encoding = adobe_std_strings_;
this.adobe_expert_encoding = adobe_expert_encoding_;
}
/******************************************************************************/
// postscript-info
/******************************************************************************/
var FT_SERVICE_ID_POSTSCRIPT_INFO = "postscript-info";
function FT_Service_PsInfoRec(get_font_info_, ps_get_font_extra_, has_glyph_names_,get_font_private_, get_font_value_)
{
this.ps_get_font_info = get_font_info_;
this.ps_get_font_extra = ps_get_font_extra_;
this.ps_has_glyph_names = has_glyph_names_;
this.ps_get_font_private = get_font_private_;
this.ps_get_font_value = get_font_value_;
}
/******************************************************************************/
// sfnt-table
/******************************************************************************/
var FT_SERVICE_ID_SFNT_TABLE = "sfnt-table";
function FT_Service_SFNT_TableRec(load_, get_, info_)
{
this.load_table = load_;
this.get_table = get_;
this.table_info = info_;
}
/******************************************************************************/
// tt-cmaps
/******************************************************************************/
var FT_SERVICE_ID_TT_CMAP = "tt-cmaps";
function TT_CMapInfo()
{
this.language;
this.format;
}
function FT_Service_TTCMapsRec(get_cmap_info_)
{
this.get_cmap_info = get_cmap_info_;
}
/******************************************************************************/
// truetype-engine
/******************************************************************************/
var FT_SERVICE_ID_TRUETYPE_ENGINE = "truetype-engine";
function FT_Service_TrueTypeEngineRec(engine_type_)
{
this.engine_type = engine_type_;
}
/******************************************************************************/
// tt-glyf
/******************************************************************************/
var FT_SERVICE_ID_TT_GLYF = "tt-glyf";
function FT_Service_TTGlyfRec(get_location_)
{
this.get_location = get_location_;
}
/******************************************************************************/
// winfonts
/******************************************************************************/
var FT_SERVICE_ID_WINFNT = "winfonts";
function FT_Service_WinFntRec(get_header_)
{
this.get_header = get_header_;
}
/******************************************************************************/
// xf86
/******************************************************************************/
var FT_SERVICE_ID_XF86_NAME = "xf86-driver-name";
var FT_XF86_FORMAT_TRUETYPE = "TrueType";
var FT_XF86_FORMAT_TYPE_1 = "Type 1";
var FT_XF86_FORMAT_BDF = "BDF";
var FT_XF86_FORMAT_PCF = "PCF";
var FT_XF86_FORMAT_TYPE_42 = "Type 42";
var FT_XF86_FORMAT_CID = "CID Type 1";
var FT_XF86_FORMAT_CFF = "CFF";
var FT_XF86_FORMAT_PFR = "PFR";
var FT_XF86_FORMAT_WINFNT = "Windows FNT";
/******************************************************************************/
function FT_ServiceDescRec(id,data)
{
this.serv_id = id;
this.serv_data = data;
}
function ft_service_list_lookup(service_descriptors,service_id)
{
var c = service_descriptors.length;
for (var i=0;i<c;i++)
{
if (service_descriptors[i].serv_id == service_id)
return service_descriptors[i].serv_data;
}
return null;
}
function FT_FACE_FIND_SERVICE(face, id)
{
var module = face.driver;
if (module.clazz.get_interface)
return module.clazz.get_interface(module, id);
return null;
}
function FT_FACE_FIND_GLOBAL_SERVICE(face, name)
{
return ft_module_get_service(face.driver, name);
}
function ft_module_get_service(module, name)
{
var result = null;
if (module != null)
{
if (null != module.clazz.get_interface)
result = module.clazz.get_interface(module, name);
if (null == result)
{
var modules = module.library.modules;
var count = modules.length;
for (var i = 0;i<count;i++)
{
if (modules[i].clazz.get_interface)
{
result = modules[i].clazz.get_interface(modules[i], name);
if (null != result)
break;
}
}
}
}
return result;
}
function FT_ServiceCache()
{
this.service_POSTSCRIPT_FONT_NAME = null;
this.service_MULTI_MASTERS = null;
this.service_GLYPH_DICT = null;
this.service_PFR_METRICS = null;
this.service_WINFNT = null;
}
\ No newline at end of file
This diff is collapsed.
var arrayImages = new Array();
\ No newline at end of file
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
This diff is collapsed.
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