Skip to content

Commit

Permalink
增加居中功能
Browse files Browse the repository at this point in the history
  • Loading branch information
Huan Gan authored and Huan Gan committed Jun 29, 2017
1 parent 323ebf7 commit 76cc139
Show file tree
Hide file tree
Showing 20 changed files with 2,278 additions and 1,646 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,6 @@ target/
nb-configuration.xml
.settings/
.classpath
*.class
*.class
build/
bin/
5 changes: 5 additions & 0 deletions README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,8 @@ birt报表网页预览版
存在的问题:
1. 第一次导出时不会成功,只有第二次导出才会成功;

## 2017-06-29
1. 将报表设计文件存放地址为WEB-INF/design
2. 将资源文件存放地址为WEB-INF/i18n
3. 添加TOC居中功能

680 changes: 680 additions & 0 deletions WebContent/WEB-INF/design/variables.rptdesign

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions WebContent/WEB-INF/i18n/MessageResource_zh_CN.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
company.name=\u4E2D\u6D4B\u5B89\u534E
178 changes: 84 additions & 94 deletions WebContent/WEB-INF/viewer.properties
Original file line number Diff line number Diff line change
@@ -1,94 +1,84 @@
###############################################################################
# Copyright (c) 2004 Actuate Corporation.
# All rights reserved. This program and the accompanying materials
# are made available under the terms of the Eclipse Public License v1.0
# which accompanies this distribution, and is available at
# http://www.eclipse.org/legal/epl-v10.html
#
# Contributors:
# Actuate Corporation - initial API and implementation
###############################################################################

# configurable variable for JSP base href. Please uncomment the below line.
#base_url=http://127.0.0.1:8080

# [EXTENSION SETTING]
viewer.extension.html=html
viewer.extension.pdf=pdf
viewer.extension.postscript=ps
viewer.extension.doc=doc
viewer.extension.xls=xls
viewer.extension.ppt=ppt
viewer.extension.ods=ods
viewer.extension.odt=odt
viewer.extension.odp=odp
viewer.extension.docx=docx
viewer.extension.pptx=pptx
viewer.extension.xlsx=xlsx
viewer.extension.xls_spudsoft=xls

# [OUTPUT FORMAT LABEL NAME]
viewer.label.html=HTML
viewer.label.pdf=PDF
viewer.label.postscript=PostScript
viewer.label.doc=Word
viewer.label.xls=Excel
viewer.label.ppt=PowerPoint
viewer.label.ods=OpenDocument Spreadsheet
viewer.label.odt=OpenDocument Text
viewer.label.odp=OpenDocument Presentation
viewer.label.docx=DOCX
viewer.label.pptx=PPTX
viewer.label.xlsx=XLSX
viewer.label.xls_spudsoft=Spudsoft Excel

# [CSV SEPARATOR]
viewer.sep.0=,
viewer.sep.1=;
viewer.sep.2=:
viewer.sep.3=|
viewer.sep.4=\t

# [VIEWING SESSION CONFIGURATION]
# The BIRT viewing session is a sub-session of the HTTP session.
# An HTTP session can have multiple BIRT viewing sessions.
# Each time a new viewer is opened, a new viewing session is created.
# The following parameters are used to configure the viewing session
# management.
# If the matching HTTP session expires, all the viewing sessions
# attached to it will expire as well.

# Timeout value in seconds after which a viewing session will expire.
# The value 0 means that a session will never expire, and the cached files
# will never be cleant unless the belonging HTTP session expires.
viewer.session.timeout=0

# Defines a session count threshold after which the cleanup process
# will try to clean up expired sessions.
viewer.session.minimumThreshold=20

# Load factor to recalculate the minimum threshold value based on the remaining
# session count after cleanup.
viewer.session.loadFactor=0.75

# Maximum number of simultaneous viewing sessions that can be open at the
# same time, to prevent cache overflowing through multiple requests.
# A value of 0 means no limit.
viewer.session.maximumSessionCount=0

# Behavior that must be used once the maximum session count is reached
# (if different than 0):
# - A value of 0 will use the "Discard new session" policy that will show
# an error message for all the newer sessions.
# - A value of 1 will use the "Discard the oldest session" policy that will
# try to discard the oldest session, even if it has not expired yet.
# Note that "busy" sessions (for example downloading results) won't be
# cleant by this mechanism.
viewer.session.maximumSessionCountPolicy=1

# [LOGGERS]
# "logger."+class=level
# if no level is specified or the text "DEFAULT",
# then the default level from the web.xml will be used
logger.org.eclipse.datatools.connectivity.oda=DEFAULT
logger.org.eclipse.datatools.enablement.oda=DEFAULT
# configurable variable for JSP base href. Please uncomment the below line.
#base_url=http://127.0.0.1:8080

# [EXTENSION SETTING]
viewer.extension.html=html
viewer.extension.pdf=pdf
viewer.extension.postscript=ps
viewer.extension.doc=doc
viewer.extension.xls=xls
viewer.extension.ppt=ppt
viewer.extension.ods=ods
viewer.extension.odt=odt
viewer.extension.odp=odp
viewer.extension.docx=docx
viewer.extension.pptx=pptx
viewer.extension.xlsx=xlsx
viewer.extension.xls_spudsoft=xls

# [\u5E94\u4EE5\u5BFC\u51FA\u7684\u6587\u4EF6\u7C7B\u578B\u540D\u79F0\uFF0C\u53EF\u589E\u51CF]
# [OUTPUT FORMAT LABEL NAME]
viewer.label.html=HTML
viewer.label.pdf=PDF
viewer.label.postscript=PostScript
viewer.label.doc=Word
viewer.label.xls=Excel
viewer.label.ppt=PowerPoint
viewer.label.ods=OpenDocument Spreadsheet
viewer.label.odt=OpenDocument Text
viewer.label.odp=OpenDocument Presentation
viewer.label.docx=DOCX
viewer.label.pptx=PPTX
viewer.label.xlsx=XLSX
viewer.label.xls_spudsoft=Spudsoft Excel

# [CSV SEPARATOR]
viewer.sep.0=,
viewer.sep.1=;
viewer.sep.2=:
viewer.sep.3=|
viewer.sep.4=\t

# [VIEWING SESSION CONFIGURATION]
# The BIRT viewing session is a sub-session of the HTTP session.
# An HTTP session can have multiple BIRT viewing sessions.
# Each time a new viewer is opened, a new viewing session is created.
# The following parameters are used to configure the viewing session
# management.
# If the matching HTTP session expires, all the viewing sessions
# attached to it will expire as well.

# Timeout value in seconds after which a viewing session will expire.
# The value 0 means that a session will never expire, and the cached files
# will never be cleant unless the belonging HTTP session expires.
viewer.session.timeout=0

# Defines a session count threshold after which the cleanup process
# will try to clean up expired sessions.
viewer.session.minimumThreshold=20

# Load factor to recalculate the minimum threshold value based on the remaining
# session count after cleanup.
viewer.session.loadFactor=0.75

# Maximum number of simultaneous viewing sessions that can be open at the
# same time, to prevent cache overflowing through multiple requests.
# A value of 0 means no limit.
viewer.session.maximumSessionCount=0

# Behavior that must be used once the maximum session count is reached
# (if different than 0):
# - A value of 0 will use the "Discard new session" policy that will show
# an error message for all the newer sessions.
# - A value of 1 will use the "Discard the oldest session" policy that will
# try to discard the oldest session, even if it has not expired yet.
# Note that "busy" sessions (for example downloading results) won't be
# cleant by this mechanism.
viewer.session.maximumSessionCountPolicy=1

# [LOGGERS]
# "logger."+class=level
# if no level is specified or the text "DEFAULT",
# then the default level from the web.xml will be used
logger.org.eclipse.datatools.connectivity.oda=DEFAULT
logger.org.eclipse.datatools.enablement.oda=DEFAULT
Loading

0 comments on commit 76cc139

Please sign in to comment.