Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
web-apps
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
web-apps
Commits
e2e287ff
Commit
e2e287ff
authored
Mar 31, 2016
by
Julia Radzhabova
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[SSE] Сохранение размеров окна печати и выбранного диапазона печати.
parent
c377fb54
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
2 deletions
+14
-2
apps/spreadsheeteditor/main/app/controller/Print.js
apps/spreadsheeteditor/main/app/controller/Print.js
+8
-2
apps/spreadsheeteditor/main/app/view/PrintSettings.js
apps/spreadsheeteditor/main/app/view/PrintSettings.js
+6
-0
No files found.
apps/spreadsheeteditor/main/app/controller/Print.js
View file @
e2e287ff
...
...
@@ -12,8 +12,11 @@ define([
initialize
:
function
()
{
this
.
adjPrintParams
=
new
Asc
.
asc_CAdjustPrint
();
this
.
adjPrintParams
.
asc_setPrintType
(
c_oAscPrintType
.
ActiveSheets
);
this
.
adjPrintParams
.
asc_setLayoutPageType
(
c_oAscLayoutPageType
.
ActualSize
);
var
value
=
Common
.
localStorage
.
getItem
(
"
sse-print-settings-range
"
);
value
=
(
value
!==
null
)
?
parseInt
(
value
)
:
c_oAscPrintType
.
ActiveSheets
;
this
.
adjPrintParams
.
asc_setPrintType
(
value
);
this
.
diffParams
=
{};
this
.
addListeners
({
...
...
@@ -269,7 +272,10 @@ define([
if
(
this
.
checkMargins
(
this
.
printSettingsDlg
)
)
{
this
.
savePageOptions
(
this
.
printSettingsDlg
,
this
.
printSettingsDlg
.
getRange
()
==
c_oAscPrintType
.
EntireWorkbook
?
-
255
:
undefined
);
this
.
adjPrintParams
.
asc_setPrintType
(
this
.
printSettingsDlg
.
getRange
());
var
printtype
=
this
.
printSettingsDlg
.
getRange
();
this
.
adjPrintParams
.
asc_setPrintType
(
printtype
);
Common
.
localStorage
.
setItem
(
"
sse-print-settings-range
"
,
printtype
);
// this.adjPrintParams.asc_setLayoutPageType(this.printSettingsDlg.getLayout());
this
.
api
.
asc_Print
(
this
.
adjPrintParams
,
Common
.
Utils
.
isChrome
||
Common
.
Utils
.
isSafari
||
Common
.
Utils
.
isOpera
);
...
...
apps/spreadsheeteditor/main/app/view/PrintSettings.js
View file @
e2e287ff
...
...
@@ -185,6 +185,10 @@ define([ 'text!spreadsheeteditor/main/app/template/PrintSettings.template',
this
.
panelDetails
=
$
(
'
#printadv-dlg-content-to-hide
'
);
this
.
updateMetricUnit
();
this
.
options
.
afterrender
&&
this
.
options
.
afterrender
.
call
(
this
);
var
value
=
Common
.
localStorage
.
getItem
(
"
sse-hide-print-settings
"
);
this
.
extended
=
(
value
!==
null
&&
parseInt
(
value
)
==
0
);
this
.
handlerShowDetails
(
this
.
btnHide
);
},
setRange
:
function
(
value
)
{
...
...
@@ -224,11 +228,13 @@ define([ 'text!spreadsheeteditor/main/app/template/PrintSettings.template',
this
.
panelDetails
.
css
({
'
display
'
:
'
none
'
});
this
.
setHeight
(
286
);
btn
.
setCaption
(
this
.
textShowDetails
);
Common
.
localStorage
.
setItem
(
"
sse-hide-print-settings
"
,
1
);
}
else
{
this
.
extended
=
false
;
this
.
panelDetails
.
css
({
'
display
'
:
'
block
'
});
this
.
setHeight
(
482
);
btn
.
setCaption
(
this
.
textHideDetails
);
Common
.
localStorage
.
setItem
(
"
sse-hide-print-settings
"
,
0
);
}
},
...
...
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