Commit 93e659e7 authored by Alexander.Trofimov's avatar Alexander.Trofimov Committed by Alexander.Trofimov

Объединил общие apiDefines в commonDefines.js

git-svn-id: svn://192.168.3.15/activex/AVS/Sources/TeamlabOffice/trunk/OfficeWeb@61248 954022d7-b5bf-4e40-9824-e11837661b57
parent 9968b1f8
"use strict"; "use strict";
var g_bDate1904 = false; var g_bDate1904 = false;
var FONT_THUMBNAIL_HEIGHT = (7 * 96.0 / 25.4) >> 0;
// Режимы отрисовки
var c_oAscFontRenderingModeType = {
noHinting : 1,
hinting : 2,
hintingAndSubpixeling : 3
};
var c_oAscAsyncActionType = { var c_oAscAsyncActionType = {
Information : 0, Information : 0,
BlockInteraction : 1 BlockInteraction : 1
}; };
var CellValueType = var CellValueType = {
{ Number : 0,
Number:0, String : 1,
String:1, Bool : 2,
Bool:2, Error : 3
Error:3
}; };
//NumFormat defines //NumFormat defines
var c_oAscNumFormatType = { var c_oAscNumFormatType = {
General : 0, General : 0,
Custom : 1, Custom : 1,
Text : 2, Text : 2,
Number : 3, Number : 3,
Integer : 4, Integer : 4,
Scientific : 5, Scientific : 5,
Currency : 6, Currency : 6,
Date : 7, Date : 7,
Time : 8, Time : 8,
Percent : 9, Percent : 9,
Fraction : 10, Fraction : 10,
Accounting : 11 Accounting : 11
}; };
var c_oAscDrawingLayerType = { var c_oAscDrawingLayerType = {
BringToFront: 0, BringToFront : 0,
SendToBack: 1, SendToBack : 1,
BringForward: 2, BringForward : 2,
SendBackward: 3 SendBackward : 3
}; };
var c_oAscTransactionState = {
No: -1,
Start: 0,
Stop: 1
};
var c_oAscCellAnchorType = { var c_oAscCellAnchorType = {
cellanchorAbsolute: 0, cellanchorAbsolute : 0,
cellanchorOneCell: 1, cellanchorOneCell : 1,
cellanchorTwoCell: 2 cellanchorTwoCell : 2
}; };
var c_oAscChartDefines = { var c_oAscChartDefines = {
defaultChartWidth: 478, defaultChartWidth : 478,
defaultChartHeight: 286 defaultChartHeight : 286
};
var c_oAscStyleImage = {
Default : 0,
Document : 1
};
var c_oAscTypeSelectElement = {
Paragraph : 0,
Table : 1,
Image : 2,
Header : 3,
Hyperlink : 4,
SpellCheck : 5,
Shape : 6,
Slide : 7,
Chart : 8,
Math : 9,
MailMerge : 10
}; };
var c_oAscLineDrawingRule = { var c_oAscLineDrawingRule = {
...@@ -96,7 +116,6 @@ var c_oAscChartHorAxisLabelShowSettings = ...@@ -96,7 +116,6 @@ var c_oAscChartHorAxisLabelShowSettings =
noOverlay: 1 noOverlay: 1
}; };
var c_oAscChartVertAxisLabelShowSettings = var c_oAscChartVertAxisLabelShowSettings =
{ {
none: 0, none: 0,
...@@ -434,4 +453,85 @@ var c_oAscSaveTypes = { ...@@ -434,4 +453,85 @@ var c_oAscSaveTypes = {
Part : 1, Part : 1,
Complete : 2, Complete : 2,
CompleteAll : 3 CompleteAll : 3
};
var c_oAscColor = {
COLOR_TYPE_SRGB : 1,
COLOR_TYPE_PRST : 2,
COLOR_TYPE_SCHEME : 3
};
var c_oAscFill = {
FILL_TYPE_BLIP : 1,
FILL_TYPE_NOFILL : 2,
FILL_TYPE_SOLID : 3,
FILL_TYPE_PATT : 4,
FILL_TYPE_GRAD : 5
};
// Chart defines
var c_oAscChartType = {
line : "Line",
bar : "Bar",
hbar : "HBar",
area : "Area",
pie : "Pie",
scatter : "Scatter",
stock : "Stock",
doughnut: "Doughnut"
};
var c_oAscChartSubType = {
normal : "normal",
stacked : "stacked",
stackedPer : "stackedPer"
};
var c_oAscFillGradType = {
GRAD_LINEAR : 1,
GRAD_PATH : 2
};
var c_oAscFillBlipType = {
STRETCH : 1,
TILE : 2
};
var c_oAscStrokeType = {
STROKE_NONE : 0,
STROKE_COLOR: 1
};
var c_oAscVerticalTextAlign = {
TEXT_ALIGN_BOTTOM : 0, // (Text Anchor Enum ( Bottom ))
TEXT_ALIGN_CTR : 1, // (Text Anchor Enum ( Center ))
TEXT_ALIGN_DIST : 2, // (Text Anchor Enum ( Distributed ))
TEXT_ALIGN_JUST : 3, // (Text Anchor Enum ( Justified ))
TEXT_ALIGN_TOP : 4 // Top
};
var c_oAscLineJoinType = {
Round : 1,
Bevel : 2,
Miter : 3
};
var c_oAscLineCapType = {
Flat : 0,
Round : 1,
Square : 2
};
var c_oAscLineBeginType = {
None : 0,
Arrow : 1,
Diamond : 2,
Oval : 3,
Stealth : 4,
Triangle: 5
};
var c_oAscLineBeginSize = {
small_small : 0,
small_mid : 1,
small_large : 2,
mid_small : 3,
mid_mid : 4,
mid_large : 5,
large_small : 6,
large_mid : 7,
large_large : 8
}; };
\ No newline at end of file
...@@ -214,12 +214,6 @@ var c_oAscMouseMoveLockedObjectType = { ...@@ -214,12 +214,6 @@ var c_oAscMouseMoveLockedObjectType = {
Sheet : 2 Sheet : 2
}; };
var c_oAscColor = {
COLOR_TYPE_SRGB : 1,
COLOR_TYPE_PRST : 2,
COLOR_TYPE_SCHEME : 3
};
// Print default options (in mm) // Print default options (in mm)
var c_oAscPrintDefaultSettings = { var c_oAscPrintDefaultSettings = {
// Размеры страницы при печати // Размеры страницы при печати
...@@ -300,113 +294,6 @@ var c_oAscCanChangeColWidth = { ...@@ -300,113 +294,6 @@ var c_oAscCanChangeColWidth = {
all: 2 // numbers + text all: 2 // numbers + text
}; };
// Режимы отрисовки
var c_oAscFontRenderingModeType = {
noHinting : 1,
hinting : 2,
hintingAndSubpixeling : 3
};
var c_oAscStyleImage = {
Default : 0,
Document : 1
};
var c_oAscFill = {
FILL_TYPE_BLIP : 1,
FILL_TYPE_NOFILL : 2,
FILL_TYPE_SOLID : 3,
FILL_TYPE_PATT : 4,
FILL_TYPE_GRAD : 5
};
var c_oAscFillBlipType = {
STRETCH : 1,
TILE : 2
};
var c_oAscStrokeType = {
STROKE_NONE: 0,
STROKE_COLOR: 1
};
var c_oAscLineJoinType = {
Round : 1,
Bevel : 2,
Miter : 3
};
var c_oAscLineCapType = {
Flat : 0,
Round : 1,
Square : 2
};
var c_oAscLineBeginType = {
None: 0,
Arrow: 1,
Diamond: 2,
Oval: 3,
Stealth: 4,
Triangle: 5
};
var c_oAscTypeSelectElement = {
Paragraph : 0,
Table : 1,
Image : 2,
Header : 3,
Hyperlink : 4,
SpellCheck : 5,
Shape:6,
Slide:7,
Chart: 8
};
var c_oAscLineBeginSize = {
small_small : 0,
small_mid : 1,
small_large : 2,
mid_small : 3,
mid_mid : 4,
mid_large : 5,
large_small : 6,
large_mid : 7,
large_large : 8
};
var c_oAscFillGradType = {
GRAD_LINEAR : 1,
GRAD_PATH : 2
};
var c_oAscVerticalTextAlign = {
TEXT_ALIGN_BOTTOM : 0, // (Text Anchor Enum ( Bottom ))
TEXT_ALIGN_CTR : 1, // (Text Anchor Enum ( Center ))
TEXT_ALIGN_DIST : 2, // (Text Anchor Enum ( Distributed ))
TEXT_ALIGN_JUST : 3, // (Text Anchor Enum ( Justified ))
TEXT_ALIGN_TOP : 4 // Top
};
// Chart defines
var c_oAscChartType = {
line : "Line",
bar : "Bar",
hbar : "HBar",
area : "Area",
pie : "Pie",
scatter : "Scatter",
stock : "Stock"
};
var c_oAscChartSubType = {
normal : "normal",
stacked : "stacked",
stackedPer : "stackedPer"
};
var c_oAscPaneState = { var c_oAscPaneState = {
Frozen : "frozen", Frozen : "frozen",
FrozenSplit : "frozenSplit" FrozenSplit : "frozenSplit"
...@@ -449,5 +336,3 @@ var c_oAscFormulaRangeBorderColor = [ ...@@ -449,5 +336,3 @@ var c_oAscFormulaRangeBorderColor = [
var c_oAscLockNameFrozenPane = "frozenPane"; var c_oAscLockNameFrozenPane = "frozenPane";
var c_oAscLockNameTabColor = "tabColor"; var c_oAscLockNameTabColor = "tabColor";
var FONT_THUMBNAIL_HEIGHT = (7 * 96.0 / 25.4) >> 0;
...@@ -123,72 +123,16 @@ var c_oAscError = { ...@@ -123,72 +123,16 @@ var c_oAscError = {
}; };
var c_oAscTypeSelectElement = {
Paragraph : 0,
Table : 1,
Image : 2,
Header : 3,
Hyperlink : 4,
SpellCheck : 5,
Shape:6,
Slide:7,
Chart: 8
};
var c_oAscContextMenuTypes = { var c_oAscContextMenuTypes = {
Main : 0, Main : 0,
Thumbnails : 1 Thumbnails : 1
}; };
var c_oAscTableBordersType = {
LEFT:0,
TOP:1,
RIGHT:2,
BOTTOM:3,
VERTLINE:4,
HORIZONTLINE:5,
INSIDE:6,
OUTSIDE:7,
ALL:8
};
// Chart defines
var c_oAscChartType = {
line: "Line",
bar: "Bar",
hbar: "HBar",
area: "Area",
pie: "Pie",
scatter: "Scatter",
stock: "Stock"
};
var c_oAscChartSubType = {
normal: "normal",
stacked: "stacked",
stackedPer: "stackedPer"
};
var FONT_THUMBNAIL_HEIGHT = (7 * 96.0 / 25.4) >> 0;
var THEME_THUMBNAIL_WIDTH = 180; var THEME_THUMBNAIL_WIDTH = 180;
var THEME_THUMBNAIL_HEIGHT = 135; var THEME_THUMBNAIL_HEIGHT = 135;
var LAYOUT_THUMBNAIL_WIDTH = 180; var LAYOUT_THUMBNAIL_WIDTH = 180;
var LAYOUT_THUMBNAIL_HEIGHT = 135; var LAYOUT_THUMBNAIL_HEIGHT = 135;
var c_oAscStyleImage = {
Default :0,
Document:1
};
var c_oAscLineDrawingRule = {
Left : 0,
Center : 1,
Right : 2,
Top : 0,
Bottom : 2
};
var align_Right = 0; var align_Right = 0;
var align_Left = 1; var align_Left = 1;
var align_Center = 2; var align_Center = 2;
...@@ -200,10 +144,6 @@ var vertalign_SubScript = 2; ...@@ -200,10 +144,6 @@ var vertalign_SubScript = 2;
var hdrftr_Header = 0x01; var hdrftr_Header = 0x01;
var hdrftr_Footer = 0x02; var hdrftr_Footer = 0x02;
var hdrftr_Default = 0x01;
var hdrftr_Even = 0x02;
var hdrftr_First = 0x03;
var c_oAscTableSelectionType = { var c_oAscTableSelectionType = {
Cell : 0, Cell : 0,
Row : 1, Row : 1,
...@@ -218,35 +158,6 @@ var linerule_Exact = 2; ...@@ -218,35 +158,6 @@ var linerule_Exact = 2;
var shd_Clear = 0; var shd_Clear = 0;
var shd_Nil = 1; var shd_Nil = 1;
var c_oAscColor = {
COLOR_TYPE_SRGB : 1,
COLOR_TYPE_PRST : 2,
COLOR_TYPE_SCHEME : 3
};
var c_oAscFill = {
FILL_TYPE_BLIP : 1,
FILL_TYPE_NOFILL : 2,
FILL_TYPE_SOLID : 3,
FILL_TYPE_PATT : 4,
FILL_TYPE_GRAD : 5
};
var c_oAscFillGradType = {
GRAD_LINEAR : 1,
GRAD_PATH : 2
};
var c_oAscFillBlipType = {
STRETCH : 1,
TILE : 2
};
var c_oAscStrokeType = {
STROKE_NONE: 0,
STROKE_COLOR: 1
};
var c_oAscAlignShapeType = { var c_oAscAlignShapeType = {
ALIGN_LEFT: 0, ALIGN_LEFT: 0,
ALIGN_RIGHT: 1, ALIGN_RIGHT: 1,
...@@ -257,52 +168,11 @@ var c_oAscAlignShapeType = { ...@@ -257,52 +168,11 @@ var c_oAscAlignShapeType = {
}; };
var c_oAscVerticalTextAlign = {
TEXT_ALIGN_BOTTOM : 0,// (Text Anchor Enum ( Bottom ))
TEXT_ALIGN_CTR : 1,// (Text Anchor Enum ( Center ))
TEXT_ALIGN_DIST : 2,// (Text Anchor Enum ( Distributed ))
TEXT_ALIGN_JUST : 3,// (Text Anchor Enum ( Justified ))
TEXT_ALIGN_TOP : 4// Top
};
var c_oAscLineJoinType = {
Round : 1,
Bevel : 2,
Miter : 3
};
var c_oAscLineCapType = {
Flat : 0,
Round : 1,
Square : 2
};
var c_oAscTableLayout = { var c_oAscTableLayout = {
AutoFit : 0x00, AutoFit : 0x00,
Fixed : 0x01 Fixed : 0x01
}; };
var c_oAscLineBeginType = {
None: 0,
Arrow: 1,
Diamond: 2,
Oval: 3,
Stealth: 4,
Triangle: 5
};
var c_oAscLineBeginSize = {
small_small : 0,
small_mid : 1,
small_large : 2,
mid_small : 3,
mid_mid : 4,
mid_large : 5,
large_small : 6,
large_mid : 7,
large_large : 8
};
var c_oAscMouseMoveDataTypes = { var c_oAscMouseMoveDataTypes = {
Common : 0, Common : 0,
Hyperlink : 1, Hyperlink : 1,
......
...@@ -9,10 +9,6 @@ ...@@ -9,10 +9,6 @@
var hdrftr_Header = 0x01; var hdrftr_Header = 0x01;
var hdrftr_Footer = 0x02; var hdrftr_Footer = 0x02;
var hdrftr_Default = 0x01;
var hdrftr_Even = 0x02;
var hdrftr_First = 0x03;
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
// Класс работающий с одним колонтитулом // Класс работающий с одним колонтитулом
//----------------------------------------------------------------------------------- //-----------------------------------------------------------------------------------
......
...@@ -2856,18 +2856,12 @@ asc_docs_api.prototype.ClearCache = function(){ ...@@ -2856,18 +2856,12 @@ asc_docs_api.prototype.ClearCache = function(){
asc_docs_api.prototype.SetFontRenderingMode = function(mode) asc_docs_api.prototype.SetFontRenderingMode = function(mode)
{ {
if (1 == mode) if (c_oAscFontRenderingModeType.noHinting === mode)
{
SetHintsProps(false, false); SetHintsProps(false, false);
} else if (c_oAscFontRenderingModeType.hinting === mode)
else if (2 == mode)
{
SetHintsProps(true, false); SetHintsProps(true, false);
} else if (c_oAscFontRenderingModeType.hintingAndSubpixeling === mode)
else if (3 == mode)
{
SetHintsProps(true, true); SetHintsProps(true, true);
}
this.WordControl.m_oDrawingDocument.ClearCachePages(); this.WordControl.m_oDrawingDocument.ClearCachePages();
g_fontManager.ClearFontsRasterCache(); g_fontManager.ClearFontsRasterCache();
......
...@@ -101,65 +101,6 @@ var c_oAscError = { ...@@ -101,65 +101,6 @@ var c_oAscError = {
} }
}; };
var c_oAscTypeSelectElement =
{
Paragraph : 0,
Table : 1,
Image : 2,
Header : 3,
Hyperlink : 4,
SpellCheck : 5,
Shape : 6,
Slide : 7,
Chart : 8,
Math : 9,
MailMerge : 10
};
var c_oAscTableBordersType = {
LEFT:0,
TOP:1,
RIGHT:2,
BOTTOM:3,
VERTLINE:4,
HORIZONTLINE:5,
INSIDE:6,
OUTSIDE:7,
ALL:8
};
var FONT_THUMBNAIL_HEIGHT = parseInt(7 * 96.0 / 25.4);
var c_oAscStyleImage = {
Default :0,
Document:1
};
var c_oAscLineDrawingRule = {
Left : 0,
Center : 1,
Right : 2,
Top : 0,
Bottom : 2
};
// Chart defines
var c_oAscChartType = {
line: "Line",
bar: "Bar",
hbar: "HBar",
area: "Area",
pie: "Pie",
scatter: "Scatter",
stock: "Stock",
doughnut: "Doughnut"
};
var c_oAscChartSubType = {
normal: "normal",
stacked: "stacked",
stackedPer: "stackedPer"
};
var align_Right = 0; var align_Right = 0;
var align_Left = 1; var align_Left = 1;
var align_Center = 2; var align_Center = 2;
...@@ -171,10 +112,6 @@ var vertalign_SubScript = 2; ...@@ -171,10 +112,6 @@ var vertalign_SubScript = 2;
var hdrftr_Header = 0x01; var hdrftr_Header = 0x01;
var hdrftr_Footer = 0x02; var hdrftr_Footer = 0x02;
var hdrftr_Default = 0x01;
var hdrftr_Even = 0x02;
var hdrftr_First = 0x03;
var c_oAscTableSelectionType = { var c_oAscTableSelectionType = {
Cell : 0, Cell : 0,
Row : 1, Row : 1,
...@@ -246,35 +183,6 @@ var c_oAscTableLayout = { ...@@ -246,35 +183,6 @@ var c_oAscTableLayout = {
Fixed : 0x01 Fixed : 0x01
}; };
var c_oAscColor = {
COLOR_TYPE_SRGB : 1,
COLOR_TYPE_PRST : 2,
COLOR_TYPE_SCHEME : 3
};
var c_oAscFill = {
FILL_TYPE_BLIP : 1,
FILL_TYPE_NOFILL : 2,
FILL_TYPE_SOLID : 3,
FILL_TYPE_PATT : 4,
FILL_TYPE_GRAD : 5
};
var c_oAscFillGradType = {
GRAD_LINEAR : 1,
GRAD_PATH : 2
};
var c_oAscFillBlipType = {
STRETCH : 1,
TILE : 2
};
var c_oAscStrokeType = {
STROKE_NONE: 0,
STROKE_COLOR: 1
};
var c_oAscAlignShapeType = { var c_oAscAlignShapeType = {
ALIGN_LEFT: 0, ALIGN_LEFT: 0,
ALIGN_RIGHT: 1, ALIGN_RIGHT: 1,
...@@ -284,48 +192,6 @@ var c_oAscAlignShapeType = { ...@@ -284,48 +192,6 @@ var c_oAscAlignShapeType = {
ALIGN_MIDDLE: 5 ALIGN_MIDDLE: 5
}; };
var c_oAscVerticalTextAlign = {
TEXT_ALIGN_BOTTOM : 0,// (Text Anchor Enum ( Bottom ))
TEXT_ALIGN_CTR : 1,// (Text Anchor Enum ( Center ))
TEXT_ALIGN_DIST : 2,// (Text Anchor Enum ( Distributed ))
TEXT_ALIGN_JUST : 3,// (Text Anchor Enum ( Justified ))
TEXT_ALIGN_TOP : 4// Top
};
var c_oAscLineJoinType = {
Round : 1,
Bevel : 2,
Miter : 3
};
var c_oAscLineCapType = {
Flat : 0,
Round : 1,
Square : 2
};
var c_oAscLineBeginType = {
None: 0,
Arrow: 1,
Diamond: 2,
Oval: 3,
Stealth: 4,
Triangle: 5
};
var c_oAscLineBeginSize = {
small_small : 0,
small_mid : 1,
small_large : 2,
mid_small : 3,
mid_mid : 4,
mid_large : 5,
large_small : 6,
large_mid : 7,
large_large : 8
};
var TABLE_STYLE_WIDTH_PIX = 70; var TABLE_STYLE_WIDTH_PIX = 70;
var TABLE_STYLE_HEIGHT_PIX = 50; var TABLE_STYLE_HEIGHT_PIX = 50;
......
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