Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
S
sdkjs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boris Kocherov
sdkjs
Commits
4146ad3f
Commit
4146ad3f
authored
8 years ago
by
Alexander.Trofimov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
delete appBridge
parent
d1caa2d6
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
26 deletions
+0
-26
cell/view/WorksheetView.js
cell/view/WorksheetView.js
+0
-26
No files found.
cell/view/WorksheetView.js
View file @
4146ad3f
...
...
@@ -1911,8 +1911,6 @@
}
};
WorksheetView
.
prototype
.
drawForPrint
=
function
(
drawingCtx
,
printPagesData
)
{
var
isAppBridge
=
(
undefined
!=
window
[
'
appBridge
'
]);
if
(
null
===
printPagesData
)
{
// Напечатаем пустую страницу
drawingCtx
.
BeginPage
(
c_oAscPrintDefaultSettings
.
PageWidth
,
c_oAscPrintDefaultSettings
.
PageHeight
);
...
...
@@ -1922,10 +1920,6 @@
drawingCtx
.
AddClipRect
(
printPagesData
.
pageClipRectLeft
,
printPagesData
.
pageClipRectTop
,
printPagesData
.
pageClipRectWidth
,
printPagesData
.
pageClipRectHeight
);
if
(
isAppBridge
)
{
window
[
'
appBridge
'
][
'
dummyCommandUpdate
'
]();
}
var
offsetCols
=
printPagesData
.
startOffsetPt
;
var
range
=
printPagesData
.
pageRange
;
var
offsetX
=
this
.
cols
[
range
.
c1
].
left
-
printPagesData
.
leftFieldInPt
+
offsetCols
;
...
...
@@ -1935,10 +1929,6 @@
// Сменим visibleRange для прохождения проверок отрисовки
this
.
visibleRange
=
range
;
if
(
isAppBridge
)
{
window
[
'
appBridge
'
][
'
dummyCommandUpdate
'
]();
}
// Нужно отрисовать заголовки
if
(
printPagesData
.
pageHeadings
)
{
this
.
_drawColumnHeaders
(
drawingCtx
,
range
.
c1
,
range
.
c2
,
/*style*/
undefined
,
offsetX
,
...
...
@@ -1947,37 +1937,21 @@
printPagesData
.
leftFieldInPt
-
this
.
cellsLeft
,
offsetY
);
}
if
(
isAppBridge
)
{
window
[
'
appBridge
'
][
'
dummyCommandUpdate
'
]();
}
// Рисуем сетку
if
(
printPagesData
.
pageGridLines
)
{
this
.
_drawGrid
(
drawingCtx
,
range
,
offsetX
,
offsetY
,
printPagesData
.
pageWidth
/
vector_koef
,
printPagesData
.
pageHeight
/
vector_koef
);
}
if
(
isAppBridge
)
{
window
[
'
appBridge
'
][
'
dummyCommandUpdate
'
]();
}
// Отрисовываем ячейки и бордеры
this
.
_drawCellsAndBorders
(
drawingCtx
,
range
,
offsetX
,
offsetY
);
if
(
isAppBridge
)
{
window
[
'
appBridge
'
][
'
dummyCommandUpdate
'
]();
}
var
drawingPrintOptions
=
{
ctx
:
drawingCtx
,
printPagesData
:
printPagesData
};
this
.
objectRender
.
showDrawingObjectsEx
(
false
,
null
,
drawingPrintOptions
);
this
.
visibleRange
=
tmpVisibleRange
;
if
(
isAppBridge
)
{
window
[
'
appBridge
'
][
'
dummyCommandUpdate
'
]();
}
drawingCtx
.
RemoveClipRect
();
drawingCtx
.
EndPage
();
}
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment