001/* 002 * (C) Copyright 2013 Nuxeo SA (http://nuxeo.com/) and contributors. 003 * 004 * All rights reserved. This program and the accompanying materials 005 * are made available under the terms of the GNU Lesser General Public License 006 * (LGPL) version 2.1 which accompanies this distribution, and is available at 007 * http://www.gnu.org/licenses/lgpl-2.1.html 008 * 009 * This library is distributed in the hope that it will be useful, 010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 012 * Lesser General Public License for more details. 013 * 014 * Contributors: 015 * Martin Pernollet 016 */ 017 018package org.nuxeo.ecm.platform.groups.audit.service.acl; 019 020public class ReportLayoutSettings { 021 public enum SpanMode { 022 NONE, COLUMN_OVERFLOW_ON_NEXT_SHEETS 023 } 024 025 protected int userHeaderHeight; 026 027 protected int userHeaderRotation; 028 029 protected int aclHeaderHeight; 030 031 protected int aclHeaderRotation; 032 033 protected double aclColumnWidth; 034 035 protected double fileTreeColumnWidth; 036 037 protected int defaultRowHeight; 038 039 protected int freezePaneRowSplit; 040 041 protected int aclHeaderCommentColSpan; 042 043 protected int aclHeaderCommentRowSpan; 044 045 protected int aclHeaderFontSize; 046 047 protected int treeLineCursorRowStart; 048 049 protected int splitPaneX; 050 051 protected int splitPaneY; 052 053 protected SpanMode spanMode = SpanMode.NONE; 054 055 protected String logoImageFile; 056 057 protected int zoomRatioNumerator = 1; 058 059 protected int zoomRatioDenominator = 1; 060 061 // TODO move to a DataFetch parameter class 062 protected int pageSize = 1000; // -1 for no paging 063 064 protected boolean showFullPath = false; 065 066 public int getUserHeaderHeight() { 067 return userHeaderHeight; 068 } 069 070 public void setUserHeaderHeight(int userHeaderHeight) { 071 this.userHeaderHeight = userHeaderHeight; 072 } 073 074 public int getUserHeaderRotation() { 075 return userHeaderRotation; 076 } 077 078 public void setUserHeaderRotation(int userHeaderRotation) { 079 this.userHeaderRotation = userHeaderRotation; 080 } 081 082 public int getAclHeaderHeight() { 083 return aclHeaderHeight; 084 } 085 086 public void setAclHeaderHeight(int aclHeaderHeight) { 087 this.aclHeaderHeight = aclHeaderHeight; 088 } 089 090 public int getAclHeaderRotation() { 091 return aclHeaderRotation; 092 } 093 094 public void setAclHeaderRotation(int aclHeaderRotation) { 095 this.aclHeaderRotation = aclHeaderRotation; 096 } 097 098 public double getAclColumnWidth() { 099 return aclColumnWidth; 100 } 101 102 public void setAclColumnWidth(double aclColumnWidth) { 103 this.aclColumnWidth = aclColumnWidth; 104 } 105 106 public double getFileTreeColumnWidth() { 107 return fileTreeColumnWidth; 108 } 109 110 public void setFileTreeColumnWidth(double fileTreeColumnWidth) { 111 this.fileTreeColumnWidth = fileTreeColumnWidth; 112 } 113 114 public int getDefaultRowHeight() { 115 return defaultRowHeight; 116 } 117 118 public void setDefaultRowHeight(int defaultRowHeight) { 119 this.defaultRowHeight = defaultRowHeight; 120 } 121 122 public int getFreezePaneRowSplit() { 123 return freezePaneRowSplit; 124 } 125 126 public void setFreezePaneRowSplit(int freezePaneRowSplit) { 127 this.freezePaneRowSplit = freezePaneRowSplit; 128 } 129 130 public int getAclHeaderCommentColSpan() { 131 return aclHeaderCommentColSpan; 132 } 133 134 public void setAclHeaderCommentColSpan(int aclHeaderCommentColSpan) { 135 this.aclHeaderCommentColSpan = aclHeaderCommentColSpan; 136 } 137 138 public int getAclHeaderCommentRowSpan() { 139 return aclHeaderCommentRowSpan; 140 } 141 142 public void setAclHeaderCommentRowSpan(int aclHeaderCommentRowSpan) { 143 this.aclHeaderCommentRowSpan = aclHeaderCommentRowSpan; 144 } 145 146 public int getAclHeaderFontSize() { 147 return aclHeaderFontSize; 148 } 149 150 public void setAclHeaderFontSize(int aclHeaderFontSize) { 151 this.aclHeaderFontSize = aclHeaderFontSize; 152 } 153 154 public int getTreeLineCursorRowStart() { 155 return treeLineCursorRowStart; 156 } 157 158 public void setTreeLineCursorRowStart(int treeLineCursorRowStart) { 159 this.treeLineCursorRowStart = treeLineCursorRowStart; 160 } 161 162 public int getSplitPaneX() { 163 return splitPaneX; 164 } 165 166 public void setSplitPaneX(int splitPaneX) { 167 this.splitPaneX = splitPaneX; 168 } 169 170 public int getSplitPaneY() { 171 return splitPaneY; 172 } 173 174 public void setSplitPaneY(int splitPaneY) { 175 this.splitPaneY = splitPaneY; 176 } 177 178 public SpanMode getSpanMode() { 179 return spanMode; 180 } 181 182 public void setSpanMode(SpanMode spanMode) { 183 this.spanMode = spanMode; 184 } 185 186 public String getLogoImageFile() { 187 return logoImageFile; 188 } 189 190 public void setLogoImageFile(String logoImageFile) { 191 this.logoImageFile = logoImageFile; 192 } 193 194 public int getZoomRatioNumerator() { 195 return zoomRatioNumerator; 196 } 197 198 public void setZoomRatioNumerator(int zoomRatioNumerator) { 199 this.zoomRatioNumerator = zoomRatioNumerator; 200 } 201 202 public int getZoomRatioDenominator() { 203 return zoomRatioDenominator; 204 } 205 206 public void setZoomRatioDenominator(int zoomRatioDenominator) { 207 this.zoomRatioDenominator = zoomRatioDenominator; 208 } 209 210 public int getPageSize() { 211 return pageSize; 212 } 213 214 /** Page size of the page provider, i.e. input data processing. Use -1 to disable paging */ 215 public void setPageSize(int pageSize) { 216 this.pageSize = pageSize; 217 } 218}