001/*
002 * (C) Copyright 2013 Nuxeo SA (http://nuxeo.com/) and others.
003 *
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 *
008 *     http://www.apache.org/licenses/LICENSE-2.0
009 *
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 *
016 * Contributors:
017 *     Martin Pernollet
018 */
019
020package org.nuxeo.ecm.platform.groups.audit.service.acl;
021
022public class ReportLayoutSettings {
023    public enum SpanMode {
024        NONE, COLUMN_OVERFLOW_ON_NEXT_SHEETS
025    }
026
027    protected int userHeaderHeight;
028
029    protected int userHeaderRotation;
030
031    protected int aclHeaderHeight;
032
033    protected int aclHeaderRotation;
034
035    protected double aclColumnWidth;
036
037    protected double fileTreeColumnWidth;
038
039    protected int defaultRowHeight;
040
041    protected int freezePaneRowSplit;
042
043    protected int aclHeaderCommentColSpan;
044
045    protected int aclHeaderCommentRowSpan;
046
047    protected int aclHeaderFontSize;
048
049    protected int treeLineCursorRowStart;
050
051    protected int splitPaneX;
052
053    protected int splitPaneY;
054
055    protected SpanMode spanMode = SpanMode.NONE;
056
057    protected String logoImageFile;
058
059    protected int zoomRatioNumerator = 1;
060
061    protected int zoomRatioDenominator = 1;
062
063    // TODO move to a DataFetch parameter class
064    protected int pageSize = 1000; // -1 for no paging
065
066    protected boolean showFullPath = false;
067
068    public int getUserHeaderHeight() {
069        return userHeaderHeight;
070    }
071
072    public void setUserHeaderHeight(int userHeaderHeight) {
073        this.userHeaderHeight = userHeaderHeight;
074    }
075
076    public int getUserHeaderRotation() {
077        return userHeaderRotation;
078    }
079
080    public void setUserHeaderRotation(int userHeaderRotation) {
081        this.userHeaderRotation = userHeaderRotation;
082    }
083
084    public int getAclHeaderHeight() {
085        return aclHeaderHeight;
086    }
087
088    public void setAclHeaderHeight(int aclHeaderHeight) {
089        this.aclHeaderHeight = aclHeaderHeight;
090    }
091
092    public int getAclHeaderRotation() {
093        return aclHeaderRotation;
094    }
095
096    public void setAclHeaderRotation(int aclHeaderRotation) {
097        this.aclHeaderRotation = aclHeaderRotation;
098    }
099
100    public double getAclColumnWidth() {
101        return aclColumnWidth;
102    }
103
104    public void setAclColumnWidth(double aclColumnWidth) {
105        this.aclColumnWidth = aclColumnWidth;
106    }
107
108    public double getFileTreeColumnWidth() {
109        return fileTreeColumnWidth;
110    }
111
112    public void setFileTreeColumnWidth(double fileTreeColumnWidth) {
113        this.fileTreeColumnWidth = fileTreeColumnWidth;
114    }
115
116    public int getDefaultRowHeight() {
117        return defaultRowHeight;
118    }
119
120    public void setDefaultRowHeight(int defaultRowHeight) {
121        this.defaultRowHeight = defaultRowHeight;
122    }
123
124    public int getFreezePaneRowSplit() {
125        return freezePaneRowSplit;
126    }
127
128    public void setFreezePaneRowSplit(int freezePaneRowSplit) {
129        this.freezePaneRowSplit = freezePaneRowSplit;
130    }
131
132    public int getAclHeaderCommentColSpan() {
133        return aclHeaderCommentColSpan;
134    }
135
136    public void setAclHeaderCommentColSpan(int aclHeaderCommentColSpan) {
137        this.aclHeaderCommentColSpan = aclHeaderCommentColSpan;
138    }
139
140    public int getAclHeaderCommentRowSpan() {
141        return aclHeaderCommentRowSpan;
142    }
143
144    public void setAclHeaderCommentRowSpan(int aclHeaderCommentRowSpan) {
145        this.aclHeaderCommentRowSpan = aclHeaderCommentRowSpan;
146    }
147
148    public int getAclHeaderFontSize() {
149        return aclHeaderFontSize;
150    }
151
152    public void setAclHeaderFontSize(int aclHeaderFontSize) {
153        this.aclHeaderFontSize = aclHeaderFontSize;
154    }
155
156    public int getTreeLineCursorRowStart() {
157        return treeLineCursorRowStart;
158    }
159
160    public void setTreeLineCursorRowStart(int treeLineCursorRowStart) {
161        this.treeLineCursorRowStart = treeLineCursorRowStart;
162    }
163
164    public int getSplitPaneX() {
165        return splitPaneX;
166    }
167
168    public void setSplitPaneX(int splitPaneX) {
169        this.splitPaneX = splitPaneX;
170    }
171
172    public int getSplitPaneY() {
173        return splitPaneY;
174    }
175
176    public void setSplitPaneY(int splitPaneY) {
177        this.splitPaneY = splitPaneY;
178    }
179
180    public SpanMode getSpanMode() {
181        return spanMode;
182    }
183
184    public void setSpanMode(SpanMode spanMode) {
185        this.spanMode = spanMode;
186    }
187
188    public String getLogoImageFile() {
189        return logoImageFile;
190    }
191
192    public void setLogoImageFile(String logoImageFile) {
193        this.logoImageFile = logoImageFile;
194    }
195
196    public int getZoomRatioNumerator() {
197        return zoomRatioNumerator;
198    }
199
200    public void setZoomRatioNumerator(int zoomRatioNumerator) {
201        this.zoomRatioNumerator = zoomRatioNumerator;
202    }
203
204    public int getZoomRatioDenominator() {
205        return zoomRatioDenominator;
206    }
207
208    public void setZoomRatioDenominator(int zoomRatioDenominator) {
209        this.zoomRatioDenominator = zoomRatioDenominator;
210    }
211
212    public int getPageSize() {
213        return pageSize;
214    }
215
216    /** Page size of the page provider, i.e. input data processing. Use -1 to disable paging */
217    public void setPageSize(int pageSize) {
218        this.pageSize = pageSize;
219    }
220}