/* * Copyright (c) 2018 * * This file is licensed under the Affero General Public License version 3 * or later. * * See the COPYING-README file. * */ (function() { var OperationProgressBar = OC.Backbone.View.extend({ tagName: 'div', id: 'uploadprogresswrapper', events: { 'click button.stop': '_onClickCancel' }, render: function() { this.$el.html(OCA.Files.Templates['operationprogressbar']({ textCancelButton: t('Cancel operation') })); this.setProgressBarText(t('Uploading …'), t('…')); }, hideProgressBar: function() { var self = this; $('#uploadprogresswrapper .stop').fadeOut(); $('#uploadprogressbar').fadeOut(function() { self.$el.trigger(new $.Event('resized')); }); }, hideCancelButton: function() { var self = this; $('#uploadprogresswrapper .stop').fadeOut(function() { self.$el.trigger(new $.Event('resized')); }); }, showProgressBar: function(showCancelButton) { if (showCancelButton) { showCancelButton = true; } $('#uploadprogressbar').progressbar({value: 0}); if(showCancelButton) { $('#uploadprogresswrapper .stop').show(); } else { $('#uploadprogresswrapper .stop').hide(); } $('#uploadprogresswrapper .label').show(); $('#uploadprogressbar').fadeIn(); this.$el.trigger(new $.Event('resized')); }, setProgressBarValue: function(value) { $('#uploadprogressbar').progressbar({value: value}); }, setProgressBarText: function(textDesktop, textMobile, title) { var labelHtml = OCA.Files.Templates['operationprogressbarlabel']({textDesktop: textDesktop, textMobile: textMobile}); $('#uploadprogressbar .ui-progressbar-value').html(labelHtml); $('#uploadprogressbar .ui-progressbar-value>em').addClass('inner'); $('#uploadprogressbar>em').replaceWith(labelHtml); $('#uploadprogressbar>em').addClass('outer'); $('#uploadprogressbar').tooltip({placement: 'bottom', container: '#uploadprogresswrapper'}); if (title) { $('#uploadprogressbar').attr('data-original-title', title); $('#uploadprogresswrapper .tooltip-inner').text(title); } if(textDesktop || textMobile) { $('#uploadprogresswrapper .stop').show(); } }, _onClickCancel: function (event) { this.trigger('cancel'); return false; } }); OCA.Files.OperationProgressBar = OperationProgressBar; })(OC, OCA); >Temp_KnuthStylePageBreaking Apache XML Graphics FOP: https://github.com/apache/xmlgraphics-fopwww-data
aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/datatypes/CondLength.java
blob: 39a468592be85252125b848d5c784026001e576a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58