├── .idea ├── .name ├── dataSources.xml ├── copyright │ └── profiles_settings.xml ├── deployment.xml ├── dictionaries │ └── icode.xml ├── shelf │ ├── __Default_.xml │ ├── _2022_06_16_11_44___Default_.xml │ └── 在进行更新之前于_2022_06_16_11_44_取消提交了变更_[Default] │ │ └── shelved.patch ├── libraries │ ├── ooo.xml │ ├── itext.xml │ ├── j2ee6.xml │ ├── common.xml │ └── berby.xml ├── vcs.xml ├── encodings.xml ├── modules.xml ├── compiler.xml ├── artifacts │ └── docviewer.xml └── misc.xml ├── docviewer ├── web │ ├── scripts │ │ ├── lib │ │ │ ├── plupload │ │ │ │ ├── js │ │ │ │ │ ├── plupload.silverlight.xap │ │ │ │ │ ├── plupload.flash.swf │ │ │ │ │ ├── jquery.plupload.queue │ │ │ │ │ │ └── img │ │ │ │ │ │ │ ├── done.gif │ │ │ │ │ │ │ ├── error.gif │ │ │ │ │ │ │ ├── buttons.png │ │ │ │ │ │ │ ├── delete.gif │ │ │ │ │ │ │ ├── throbber.gif │ │ │ │ │ │ │ ├── transp50.png │ │ │ │ │ │ │ ├── backgrounds.gif │ │ │ │ │ │ │ └── buttons-disabled.png │ │ │ │ │ ├── jquery.ui.plupload │ │ │ │ │ │ └── img │ │ │ │ │ │ │ ├── plupload.png │ │ │ │ │ │ │ └── plupload-bw.png │ │ │ │ │ ├── i18n │ │ │ │ │ │ ├── da.js │ │ │ │ │ │ ├── sv.js │ │ │ │ │ │ ├── cs.js │ │ │ │ │ │ ├── nl.js │ │ │ │ │ │ ├── ru.js │ │ │ │ │ │ ├── it.js │ │ │ │ │ │ ├── fr.js │ │ │ │ │ │ ├── es.js │ │ │ │ │ │ ├── de.js │ │ │ │ │ │ ├── ja.js │ │ │ │ │ │ ├── fi.js │ │ │ │ │ │ ├── pt-br.js │ │ │ │ │ │ └── lv.js │ │ │ │ │ └── plupload.browserplus.js │ │ │ │ └── readme.md │ │ │ ├── swfobject │ │ │ │ └── expressInstall.swf │ │ │ └── jquery.json.min.js │ │ └── i18n │ │ │ └── zh_cn │ │ │ └── uploader.js │ ├── META-INF │ │ ├── MANIFEST.MF │ │ └── context.xml │ ├── resources │ │ ├── images │ │ │ └── icon.png │ │ └── flex │ │ │ ├── docviewer.swf │ │ │ └── docviewer_annotations.swf │ ├── continue.jsp │ ├── style │ │ └── uploader.css │ ├── documents.jsp │ ├── upload.jsp │ ├── docviewer.jsp │ └── WEB-INF │ │ └── web.xml ├── src │ └── com │ │ └── log4ic │ │ ├── utils │ │ ├── dao │ │ │ ├── AbstractEntitySupport.java │ │ │ └── DocViewerJdbcSupport.java │ │ ├── io │ │ │ ├── scanner │ │ │ │ └── filter │ │ │ │ │ ├── IScannerFilter.java │ │ │ │ │ └── ClassNameScannerFilter.java │ │ │ ├── UploaderFile.java │ │ │ └── FileUploaderFilter.java │ │ ├── support │ │ │ ├── scanner │ │ │ │ └── filter │ │ │ │ │ └── AnnotationFilter.java │ │ │ └── DataBaseSupport.java │ │ └── web │ │ │ └── filter │ │ │ └── CharacterEncodingFilter.java │ │ ├── dao │ │ └── IDocumentRelationDao.java │ │ ├── entity │ │ ├── DocumentRelation.java │ │ └── DocAttachment.java │ │ └── service │ │ └── DocAttachmentService.java └── docviewer.iml ├── lib ├── itext │ ├── itext.jar │ ├── itext-asian.jar │ ├── itext-hyph-xml.jar │ ├── bcmail-jdk15-146.jar │ ├── bcprov-jdk15-146.jar │ ├── bctsp-jdk15-146.jar │ ├── itext-asiancmaps.jar │ └── itext-xtra-5.1.1.jar ├── ooo │ ├── juh-3.2.1.jar │ ├── jurt-3.2.1.jar │ ├── ridl-3.2.1.jar │ ├── unoil-3.2.1.jar │ └── jodconverter-core-3.0-beta-4.jar ├── common │ ├── antlr-2.7.4.jar │ ├── chardet-1.0.jar │ ├── jargs-1.0.jar │ ├── json-20090211.jar │ ├── log4j-1.2.16.jar │ ├── xstream-1.3.1.jar │ ├── commons-cli-1.2.jar │ ├── commons-io-1.4.jar │ ├── commons-lang-2.3.jar │ ├── javolution-5.5.1.jar │ ├── slf4j-api-1.5.6.jar │ ├── cpdetector_1.0.10.jar │ ├── slf4j-jdk14-1.5.6.jar │ ├── commons-logging-1.1.1.jar │ └── commons-fileupload-1.2.2.jar ├── j2ee6 │ ├── javax.servlet.jar │ ├── javax.persistence.jar │ └── javax.servlet.jsp.jar └── j2ee1.4 │ └── .svn │ ├── prop-base │ ├── jsp-api.jar.svn-base │ └── servlet-api.jar.svn-base │ ├── text-base │ ├── jsp-api.jar.svn-base │ └── servlet-api.jar.svn-base │ └── entries ├── docviewerflex ├── resources │ ├── bar.gif │ ├── fit.gif │ ├── blank.gif │ ├── find.gif │ ├── grab.gif │ ├── hand2.gif │ ├── grabbing.gif │ ├── pagefit.gif │ ├── thumbs.gif │ ├── twopage.gif │ ├── fullscreen.gif │ ├── logosmall.png │ ├── print-icon.gif │ ├── singlepage.gif │ ├── sliderdot.gif │ ├── textselect.gif │ ├── logosmallgray.png │ ├── icon-arrow-left.gif │ ├── logosmall-trans.png │ ├── icon-arrow-right.gif │ ├── logosmall-transc.png │ └── textselectcursor.gif ├── src │ ├── com │ │ ├── devaldi │ │ │ ├── controls │ │ │ │ ├── flexpaper │ │ │ │ │ ├── IFlexPaperPluginControl.as │ │ │ │ │ ├── utils │ │ │ │ │ │ ├── FullscreenHandler.as │ │ │ │ │ │ └── StreamUtil.as │ │ │ │ │ ├── ViewModeEnum.as │ │ │ │ │ ├── IFlexPaperPlugin.as │ │ │ │ │ ├── FitModeEnum.as │ │ │ │ │ ├── ShapeMarker.as │ │ │ │ │ ├── IFlexPaperViewModePlugin.as │ │ │ │ │ ├── styles │ │ │ │ │ │ └── default.css │ │ │ │ │ └── About.mxml │ │ │ │ ├── FlowVBox.as │ │ │ │ ├── FlowTwoPage.as │ │ │ │ └── FlowLayout.as │ │ │ ├── streaming │ │ │ │ ├── IGenericMovieClip.as │ │ │ │ ├── DupLoader.as │ │ │ │ ├── IGenericDocument.as │ │ │ │ ├── IDocumentLoader.as │ │ │ │ └── SwfDocument.as │ │ │ ├── skinning │ │ │ │ ├── GradientLabel.as │ │ │ │ ├── GradientHSlider.as │ │ │ │ ├── GradientTextInput.as │ │ │ │ ├── GradientImageButton.as │ │ │ │ └── GradientBackground.as │ │ │ └── events │ │ │ │ ├── DocumentPrintedEvent.as │ │ │ │ ├── ScaleChangedEvent.as │ │ │ │ ├── PageLoadedEvent.as │ │ │ │ ├── PageLoadingEvent.as │ │ │ │ ├── SwfLoadedEvent.as │ │ │ │ ├── SelectionCreatedEvent.as │ │ │ │ ├── CurrentPageChangedEvent.as │ │ │ │ ├── DocumentLoadedEvent.as │ │ │ │ ├── ErrorLoadingPageEvent.as │ │ │ │ ├── ViewModeChangedEvent.as │ │ │ │ ├── ExternalLinkClickedEvent.as │ │ │ │ ├── CursorModeChangedEvent.as │ │ │ │ └── FitModeChangedEvent.as │ │ └── log4ic │ │ │ ├── streaming │ │ │ └── EncryptedLoader.as │ │ │ └── resources │ │ │ └── MenuIcons.as │ └── caurina │ │ └── transitions │ │ ├── SpecialPropertySplitter.as │ │ ├── SpecialPropertyModifier.as │ │ ├── SpecialProperty.as │ │ ├── AuxFunctions.as │ │ └── properties │ │ └── SoundShortcuts.as ├── locale │ ├── zh_CN │ │ ├── DocViewer.properties │ │ └── FlexPaper.properties │ ├── pl_PL │ │ └── FlexPaper.properties │ ├── de_DE │ │ └── FlexPaper.properties │ ├── nl_NL │ │ └── FlexPaper.properties │ ├── dn_DN │ │ └── FlexPaper.properties │ ├── en_US │ │ └── FlexPaper.properties │ ├── it_IT │ │ └── FlexPaper.properties │ ├── pv_FN │ │ └── FlexPaper.properties │ ├── se_SE │ │ └── FlexPaper.properties │ ├── fi_FN │ │ └── FlexPaper.properties │ ├── fr_FR │ │ └── FlexPaper.properties │ ├── tr_TR │ │ └── FlexPaper.properties │ ├── es_ES │ │ └── FlexPaper.properties │ ├── pt_BR │ │ └── FlexPaper.properties │ ├── pt_PT │ │ └── FlexPaper.properties │ ├── hu_HU │ │ └── FlexPaper.properties │ ├── cz_CS │ │ └── FlexPaper.properties │ ├── he_IL │ │ └── FlexPaper.properties │ ├── ru_RU │ │ └── FlexPaper.properties │ ├── bg_BG │ │ └── FlexPaper.properties │ └── el_EL │ │ └── FlexPaper.properties └── docviewerflex.iml ├── etc └── xpdf-chinese-simplified │ ├── fonts │ ├── gbsn00lp.ttf │ └── gkai00mp.ttf │ ├── add-to-xpdfrc │ ├── CMap │ ├── GBpc-EUC-UCS2 │ └── GB-V │ └── README ├── docviewerapi ├── src │ ├── com │ │ └── log4ic │ │ │ ├── utils │ │ │ ├── thread │ │ │ │ └── IWorker.java │ │ │ ├── convert │ │ │ │ ├── pdf │ │ │ │ │ ├── PDFConverterDeploy.java │ │ │ │ │ ├── PDFConvertErrorType.java │ │ │ │ │ └── PDFConvertError.java │ │ │ │ ├── PDFConvertWorker.java │ │ │ │ ├── ConvertWorker.java │ │ │ │ ├── OfficeConvertWorker.java │ │ │ │ └── office │ │ │ │ │ └── document │ │ │ │ │ └── OfficeDocumentFormatRegistry.java │ │ │ └── support │ │ │ │ └── DocViewerServiceListener.java │ │ │ ├── enums │ │ │ └── Permissions.java │ │ │ ├── services │ │ │ └── IAttachmentService.java │ │ │ └── entity │ │ │ └── IDocAttachment.java │ ├── log4j.properties │ └── conf │ │ └── docviewer.properties └── docviewerapi.iml ├── docviwer.properties └── README /.idea/.name: -------------------------------------------------------------------------------- 1 | docviwer -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/plupload.silverlight.xap: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docviewer/web/META-INF/MANIFEST.MF: -------------------------------------------------------------------------------- 1 | Manifest-Version: 0.0.9.0 2 | 3 | -------------------------------------------------------------------------------- /lib/itext/itext.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/itext.jar -------------------------------------------------------------------------------- /lib/ooo/juh-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/ooo/juh-3.2.1.jar -------------------------------------------------------------------------------- /.idea/dataSources.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /lib/ooo/jurt-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/ooo/jurt-3.2.1.jar -------------------------------------------------------------------------------- /lib/ooo/ridl-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/ooo/ridl-3.2.1.jar -------------------------------------------------------------------------------- /lib/ooo/unoil-3.2.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/ooo/unoil-3.2.1.jar -------------------------------------------------------------------------------- /lib/common/antlr-2.7.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/antlr-2.7.4.jar -------------------------------------------------------------------------------- /lib/common/chardet-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/chardet-1.0.jar -------------------------------------------------------------------------------- /lib/common/jargs-1.0.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/jargs-1.0.jar -------------------------------------------------------------------------------- /lib/itext/itext-asian.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/itext-asian.jar -------------------------------------------------------------------------------- /lib/common/json-20090211.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/json-20090211.jar -------------------------------------------------------------------------------- /lib/common/log4j-1.2.16.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/log4j-1.2.16.jar -------------------------------------------------------------------------------- /lib/common/xstream-1.3.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/xstream-1.3.1.jar -------------------------------------------------------------------------------- /lib/itext/itext-hyph-xml.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/itext-hyph-xml.jar -------------------------------------------------------------------------------- /lib/j2ee6/javax.servlet.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/j2ee6/javax.servlet.jar -------------------------------------------------------------------------------- /docviewerflex/resources/bar.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/bar.gif -------------------------------------------------------------------------------- /docviewerflex/resources/fit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/fit.gif -------------------------------------------------------------------------------- /lib/common/commons-cli-1.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/commons-cli-1.2.jar -------------------------------------------------------------------------------- /lib/common/commons-io-1.4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/commons-io-1.4.jar -------------------------------------------------------------------------------- /lib/common/commons-lang-2.3.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/commons-lang-2.3.jar -------------------------------------------------------------------------------- /lib/common/javolution-5.5.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/javolution-5.5.1.jar -------------------------------------------------------------------------------- /lib/common/slf4j-api-1.5.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/slf4j-api-1.5.6.jar -------------------------------------------------------------------------------- /lib/itext/bcmail-jdk15-146.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/bcmail-jdk15-146.jar -------------------------------------------------------------------------------- /lib/itext/bcprov-jdk15-146.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/bcprov-jdk15-146.jar -------------------------------------------------------------------------------- /lib/itext/bctsp-jdk15-146.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/bctsp-jdk15-146.jar -------------------------------------------------------------------------------- /lib/itext/itext-asiancmaps.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/itext-asiancmaps.jar -------------------------------------------------------------------------------- /lib/itext/itext-xtra-5.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/itext/itext-xtra-5.1.1.jar -------------------------------------------------------------------------------- /lib/j2ee6/javax.persistence.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/j2ee6/javax.persistence.jar -------------------------------------------------------------------------------- /lib/j2ee6/javax.servlet.jsp.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/j2ee6/javax.servlet.jsp.jar -------------------------------------------------------------------------------- /docviewerflex/resources/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/blank.gif -------------------------------------------------------------------------------- /docviewerflex/resources/find.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/find.gif -------------------------------------------------------------------------------- /docviewerflex/resources/grab.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/grab.gif -------------------------------------------------------------------------------- /docviewerflex/resources/hand2.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/hand2.gif -------------------------------------------------------------------------------- /lib/common/cpdetector_1.0.10.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/cpdetector_1.0.10.jar -------------------------------------------------------------------------------- /lib/common/slf4j-jdk14-1.5.6.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/slf4j-jdk14-1.5.6.jar -------------------------------------------------------------------------------- /docviewerflex/resources/grabbing.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/grabbing.gif -------------------------------------------------------------------------------- /docviewerflex/resources/pagefit.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/pagefit.gif -------------------------------------------------------------------------------- /docviewerflex/resources/thumbs.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/thumbs.gif -------------------------------------------------------------------------------- /docviewerflex/resources/twopage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/twopage.gif -------------------------------------------------------------------------------- /lib/common/commons-logging-1.1.1.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/commons-logging-1.1.1.jar -------------------------------------------------------------------------------- /lib/j2ee1.4/.svn/prop-base/jsp-api.jar.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /docviewerflex/resources/fullscreen.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/fullscreen.gif -------------------------------------------------------------------------------- /docviewerflex/resources/logosmall.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/logosmall.png -------------------------------------------------------------------------------- /docviewerflex/resources/print-icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/print-icon.gif -------------------------------------------------------------------------------- /docviewerflex/resources/singlepage.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/singlepage.gif -------------------------------------------------------------------------------- /docviewerflex/resources/sliderdot.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/sliderdot.gif -------------------------------------------------------------------------------- /docviewerflex/resources/textselect.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/textselect.gif -------------------------------------------------------------------------------- /lib/j2ee1.4/.svn/prop-base/servlet-api.jar.svn-base: -------------------------------------------------------------------------------- 1 | K 13 2 | svn:mime-type 3 | V 24 4 | application/octet-stream 5 | END 6 | -------------------------------------------------------------------------------- /docviewer/web/resources/images/icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/resources/images/icon.png -------------------------------------------------------------------------------- /docviewerflex/resources/logosmallgray.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/logosmallgray.png -------------------------------------------------------------------------------- /lib/common/commons-fileupload-1.2.2.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/common/commons-fileupload-1.2.2.jar -------------------------------------------------------------------------------- /lib/ooo/jodconverter-core-3.0-beta-4.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/ooo/jodconverter-core-3.0-beta-4.jar -------------------------------------------------------------------------------- /docviewer/web/resources/flex/docviewer.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/resources/flex/docviewer.swf -------------------------------------------------------------------------------- /docviewerflex/resources/icon-arrow-left.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/icon-arrow-left.gif -------------------------------------------------------------------------------- /docviewerflex/resources/logosmall-trans.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/logosmall-trans.png -------------------------------------------------------------------------------- /docviewerflex/resources/icon-arrow-right.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/icon-arrow-right.gif -------------------------------------------------------------------------------- /docviewerflex/resources/logosmall-transc.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/logosmall-transc.png -------------------------------------------------------------------------------- /docviewerflex/resources/textselectcursor.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewerflex/resources/textselectcursor.gif -------------------------------------------------------------------------------- /etc/xpdf-chinese-simplified/fonts/gbsn00lp.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/etc/xpdf-chinese-simplified/fonts/gbsn00lp.ttf -------------------------------------------------------------------------------- /etc/xpdf-chinese-simplified/fonts/gkai00mp.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/etc/xpdf-chinese-simplified/fonts/gkai00mp.ttf -------------------------------------------------------------------------------- /lib/j2ee1.4/.svn/text-base/jsp-api.jar.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/j2ee1.4/.svn/text-base/jsp-api.jar.svn-base -------------------------------------------------------------------------------- /lib/j2ee1.4/.svn/text-base/servlet-api.jar.svn-base: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/lib/j2ee1.4/.svn/text-base/servlet-api.jar.svn-base -------------------------------------------------------------------------------- /docviewer/web/resources/flex/docviewer_annotations.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/resources/flex/docviewer_annotations.swf -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/plupload.flash.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/plupload.flash.swf -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/swfobject/expressInstall.swf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/swfobject/expressInstall.swf -------------------------------------------------------------------------------- /.idea/copyright/profiles_settings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | -------------------------------------------------------------------------------- /.idea/deployment.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/IFlexPaperPluginControl.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls.flexpaper 2 | { 3 | public interface IFlexPaperPluginControl 4 | { 5 | 6 | } 7 | } -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/done.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/done.gif -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/error.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/error.gif -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.ui.plupload/img/plupload.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.ui.plupload/img/plupload.png -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/buttons.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/buttons.png -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/delete.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/delete.gif -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/throbber.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/throbber.gif -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/transp50.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/transp50.png -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.ui.plupload/img/plupload-bw.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.ui.plupload/img/plupload-bw.png -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/backgrounds.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/backgrounds.gif -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/buttons-disabled.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/icode/DocViewer/HEAD/docviewer/web/scripts/lib/plupload/js/jquery.plupload.queue/img/buttons-disabled.png -------------------------------------------------------------------------------- /docviewerflex/locale/zh_CN/DocViewer.properties: -------------------------------------------------------------------------------- 1 | # locale/zh_CN/DocViewer.properties 2 | information=\u4e00\u4e2a\u6587\u6863\u5728\u7ebf\u9605\u8bfb\u7684JAVA\u4f01\u4e1a\u7ea7\u89e3\u51b3\u65b9\u6848\u3002 3 | developedBy=IntelligentCode -------------------------------------------------------------------------------- /.idea/dictionaries/icode.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | conf 5 | docviewer 6 | jdbc 7 | 8 | 9 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/utils/FullscreenHandler.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls.flexpaper.utils 2 | { 3 | public class FullscreenHandler 4 | { 5 | public function FullscreenHandler() 6 | { 7 | } 8 | } 9 | } -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/thread/IWorker.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.thread; 2 | 3 | /** 4 | * @author: 张立鑫 5 | * @version: 1 6 | * @date: 11-8-22 上午11:19 7 | */ 8 | public interface IWorker extends Runnable { 9 | public int getId(); 10 | } 11 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/dao/AbstractEntitySupport.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.dao; 2 | 3 | /** 4 | * @author 张立鑫 IntelligentCode 5 | * @date: 12-1-28 6 | * @time: 上午5:18 7 | */ 8 | public class AbstractEntitySupport extends DocViewerJdbcSupport { 9 | } 10 | -------------------------------------------------------------------------------- /docviewer/web/scripts/i18n/zh_cn/uploader.js: -------------------------------------------------------------------------------- 1 | (function(w){ 2 | if(w.plupload){ 3 | w.plupload.addI18n({ 4 | 'File size error.':'文件大小超过', 5 | 'File extension error.':'不支持的文件格式!', 6 | 'Init error.':'初始化错误!' 7 | }) 8 | } 9 | })(window); -------------------------------------------------------------------------------- /docviwer.properties: -------------------------------------------------------------------------------- 1 | path.variable.maven_repository=/home/icode/.m2/repository 2 | path.variable.template=C\:/Documents and Settings/Administrator/.m2/Template 3 | jdk.home.flex_sdk_4.5.1.21328_(player_10.2)=/home/icode/Program/flex_sdk_4.5.1.21328 4 | jdk.home.1.6=/usr/lib/java/jdk1.6.0_26 -------------------------------------------------------------------------------- /.idea/shelf/__Default_.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /.idea/libraries/ooo.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/itext.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/libraries/j2ee6.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/enums/Permissions.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.enums; 2 | 3 | /** 4 | * @author: 张立鑫 5 | * @version: 1 6 | * @date: 11-8-29 下午3:53 7 | */ 8 | public enum Permissions { 9 | NONE, 10 | READ_ONLY, 11 | READ_AND_COPY, 12 | READ_ANNOTATIONS, 13 | WRITE_ANNOTATIONS, 14 | ALL 15 | } 16 | -------------------------------------------------------------------------------- /.idea/libraries/common.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/ViewModeEnum.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls.flexpaper 2 | { 3 | public final class ViewModeEnum 4 | { 5 | public static const PORTRAIT:String = "Portrait"; 6 | public static const TILE:String = "Tile"; 7 | public static const TWOPAGE:String = "TwoPage"; 8 | } 9 | } -------------------------------------------------------------------------------- /.idea/encodings.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /.idea/shelf/_2022_06_16_11_44___Default_.xml: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/FlowVBox.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls 2 | { 3 | import com.devaldi.streaming.DupImage; 4 | 5 | import flash.display.Bitmap; 6 | 7 | import mx.containers.VBox; 8 | import mx.core.Container; 9 | 10 | public class FlowVBox extends VBox 11 | { 12 | public function FlowVBox() 13 | { 14 | 15 | } 16 | 17 | 18 | } 19 | } -------------------------------------------------------------------------------- /.idea/libraries/berby.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | -------------------------------------------------------------------------------- /README: -------------------------------------------------------------------------------- 1 | DocViewer 是类似百度文库、豆丁 的在线文档阅读程序。基于JAVA语言,跨平台的文档在线阅读器。 2 | 3 | Windos7 Windows2003 Windos Xp ubuntu11.04 ubuntu11.10 测试通过。linux下请安装相关字体。 4 | 5 | 一个文档在线阅读的JAVA企业级解决方案。 6 | 7 | 程序需要openoffice(或LibreOffice 推荐LibreOffice)、 swftools支持。请根据需要下载不同平台安装包。 8 | 9 | 该项目已经有成功实施经验。 10 | 11 | 企业级应用,支持静态密钥加密 动态密钥加密 分页延迟加载 即使转换列队与后台转换列队无缝切入 支持较复杂文档转换 支持加密PDF转换(此功能需要/lib/itext中未修改的jar,因为我修改过ITEXT源码以支持加密PDF)等。 -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/io/scanner/filter/IScannerFilter.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.io.scanner.filter; 2 | 3 | import com.log4ic.utils.io.scanner.FileScanner; 4 | 5 | import java.net.URL; 6 | 7 | /** 8 | * @author 张立鑫 IntelligentCode 9 | * @date: 12-1-28 10 | * @time: 上午12:54 11 | */ 12 | public interface IScannerFilter { 13 | boolean filter(String urlStr, URL url, ClassLoader classLoader); 14 | } 15 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/da.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Vælg filer', 4 | 'Add files to the upload queue and click the start button.' : 'Tilføj filer til køen, og tryk på start.', 5 | 'Filename' : 'Filnavn', 6 | 'Status' : 'Status', 7 | 'Size' : 'Størrelse', 8 | 'Add files' : 'Tilføj filer', 9 | 'Stop current upload' : 'Stop upload', 10 | 'Start uploading queue' : 'Start upload', 11 | 'Drag files here.' : 'Træk filer her.' 12 | }); -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/sv.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Välj filer', 4 | 'Add files to the upload queue and click the start button.' : 'Lägg till filer till kön och tryck på start.', 5 | 'Filename' : 'Filnamn', 6 | 'Status' : 'Status', 7 | 'Size' : 'Storlek', 8 | 'Add files' : 'Lägg till filer', 9 | 'Stop current upload' : 'Stoppa uppladdningen', 10 | 'Start uploading queue' : 'Starta uppladdningen', 11 | 'Drag files here.' : 'Dra filer hit' 12 | }); -------------------------------------------------------------------------------- /docviewer/web/META-INF/context.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 12 | 13 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/IFlexPaperPlugin.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls.flexpaper 2 | { 3 | import com.devaldi.streaming.DupImage; 4 | import flash.display.MovieClip; 5 | 6 | [Event(name="onPageNavigate", type="flash.events.Event")] 7 | 8 | public interface IFlexPaperPlugin 9 | { 10 | function drawSelf(pageIndex:int, drawingObject:Object,scale:Number):void; 11 | function init():void; 12 | function registerCallbackMethods():void; 13 | function clear():void; 14 | function bindPaperEventHandler(d:DupImage):void; 15 | } 16 | } -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/cs.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Vyberte soubory', 4 | 'Add files to the upload queue and click the start button.' : 'Přidejte soubory do fronty a pak spusťte nahrávání.', 5 | 'Filename' : 'Název souboru', 6 | 'Status' : 'Status', 7 | 'Size' : 'Velikost', 8 | 'Add Files' : 'Přidat soubory', 9 | 'Stop current upload' : 'Zastavit nahrávání', 10 | 'Start uploading queue' : 'Spustit frontu nahrávání', 11 | 'Drag files here.' : 'Sem přetáhněte soubory.', 12 | 'Start Upload': 'Spustit nahrávání', 13 | 'Uploaded %d/%d files': 'Nahráno %d/%d souborů' 14 | }); -------------------------------------------------------------------------------- /docviewerapi/docviewerapi.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/dao/IDocumentRelationDao.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.dao; 2 | 3 | import com.log4ic.entity.DocumentRelation; 4 | 5 | import javax.naming.NamingException; 6 | import java.sql.ResultSet; 7 | import java.sql.SQLException; 8 | import java.util.List; 9 | 10 | /** 11 | * @author 张立鑫 IntelligentCode 12 | * @date: 12-1-23 13 | * @time: 上午2:36 14 | */ 15 | public interface IDocumentRelationDao { 16 | void save(DocumentRelation relation) throws NamingException, SQLException; 17 | List getAllRelation() throws NamingException, SQLException; 18 | DocumentRelation getRelation(int id) throws NamingException, SQLException; 19 | DocumentRelation getRelationByLocation(String location) throws NamingException, SQLException ; 20 | } 21 | -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/services/IAttachmentService.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.services; 2 | 3 | import com.log4ic.entity.IDocAttachment; 4 | import com.log4ic.enums.Permissions; 5 | 6 | import javax.servlet.http.HttpServletRequest; 7 | 8 | /** 9 | * @author: 张立鑫 10 | * @version: 1 11 | * @date: 11-8-29 上午10:34 12 | */ 13 | public interface IAttachmentService { 14 | 15 | /** 16 | * 获取附件 17 | * 18 | * @param id 附件ID 19 | * @return 20 | */ 21 | public IDocAttachment getDocAttachmentById(int id); 22 | 23 | /** 24 | * 获取用户附件权限 25 | * 26 | * @param id 附件ID 27 | * @param request 28 | * @return 29 | */ 30 | public Permissions getDocPermissionsById(int id, HttpServletRequest request); 31 | 32 | } 33 | -------------------------------------------------------------------------------- /.idea/compiler.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 23 | 24 | 25 | -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/convert/pdf/PDFConverterDeploy.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.convert.pdf; 2 | 3 | import java.io.File; 4 | 5 | /** 6 | * @author: 张立鑫 7 | * @date: 11-8-19 下午6:14 8 | */ 9 | public class PDFConverterDeploy { 10 | private File outputDirectory; 11 | private int pageCount; 12 | private String command; 13 | 14 | public File getOutputDirectory() { 15 | return outputDirectory; 16 | } 17 | 18 | public int getPageCount() { 19 | return pageCount; 20 | } 21 | 22 | public String getCommand() { 23 | return command; 24 | } 25 | 26 | public PDFConverterDeploy(File outputDirectory, int pageCount, String command) { 27 | this.outputDirectory = outputDirectory; 28 | this.pageCount = pageCount; 29 | this.command = command; 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/FlowTwoPage.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls 2 | { 3 | import flash.display.DisplayObject; 4 | import flash.display.DisplayObjectContainer; 5 | 6 | import mx.containers.HBox; 7 | import mx.containers.VBox; 8 | import mx.core.Container; 9 | 10 | public class FlowTwoPage extends VBox 11 | { 12 | public function FlowTwoPage() 13 | { 14 | } 15 | 16 | public override function addChild(child:DisplayObject):DisplayObject 17 | { 18 | var hb:HBox; 19 | if(numChildren == 0 || (numChildren > 0 && (getChildAt(numChildren-1) as HBox).numChildren == 2)){ 20 | hb = new HBox(); 21 | hb.setStyle("horizontalGap",1); 22 | super.addChild(hb); 23 | }else{ 24 | hb = (getChildAt(numChildren-1) as HBox); 25 | } 26 | 27 | hb.addChild(child); 28 | return child; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /docviewer/web/continue.jsp: -------------------------------------------------------------------------------- 1 | <%-- 2 | Created by IntelliJ IDEA. 3 | User: icode 4 | Date: 12-1-28 5 | Time: 上午8:32 6 | To change this template use File | Settings | File Templates. 7 | --%> 8 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 9 | 10 | 11 | 跳转提示 12 | 13 | 14 |
15 | 文档已经上传完毕,并进入转换列队,系统将在10秒钟后为您跳转至文档列表.... 16 |
17 | 30 | 31 | -------------------------------------------------------------------------------- /etc/xpdf-chinese-simplified/add-to-xpdfrc: -------------------------------------------------------------------------------- 1 | #----- begin Chinese Simplified support package (2004-jul-27) 2 | cidToUnicode Adobe-GB1 /home/icode/Workspace/personal/docviewer/etc/chinese-simplified/Adobe-GB1.cidToUnicode 3 | unicodeMap ISO-2022-CN /home/icode/Workspace/personal/docviewer/etc/chinese-simplified/ISO-2022-CN.unicodeMap 4 | unicodeMap EUC-CN /home/icode/Workspace/personal/docviewer/etc/chinese-simplified/EUC-CN.unicodeMap 5 | unicodeMap GBK /home/icode/Workspace/personal/docviewer/etc/chinese-simplified/GBK.unicodeMap 6 | cMapDir Adobe-GB1 /home/icode/Workspace/personal/docviewer/etc/chinese-simplified/CMap 7 | toUnicodeDir /home/icode/Workspace/personal/docviewer/etc/chinese-simplified/CMap 8 | #displayCIDFontTT Adobe-GB1 /home/icode/Workspace/personal/docviewer/etc/chinese-simplified/fonts/gkai00mp.ttf 9 | #----- end Chinese Simplified support package 10 | -------------------------------------------------------------------------------- /docviewer/web/style/uploader.css: -------------------------------------------------------------------------------- 1 | .clearfix:after{clear:both;content:".";display:block;height:0;visibility:hidden;_height:1%;} 2 | /*上传控件*/ 3 | .uploader-box,.uploader-box *{margin: 0;padding: 0;font-size: 14px;} 4 | .uploader-box ul{list-style: none;} 5 | .uploader-box .upload-btn{margin:5px 0} 6 | .uploader-box .pro-bar{border:1px solid #ccc;height:7px;background: white;padding: 1px;overflow: hidden;display: inline-block;width:100px;vertical-align: middle;} 7 | .uploader-box .pro-inner{width: 100%;height:7px;background-color:#2bb927 ;display: inline-block;vertical-align: top;margin-right: 0} 8 | .uploader-box .fileitem span{margin-right:3px} 9 | .uploader-box .fileitem .filesize{margin-right:10px} 10 | .uploader-box .fileitem .failure{color:red} 11 | .icon-add,.icon-att{background: url(/resources/images/icon.png);width:16px;height:16px;vertical-align:middle;display:inline-block;*display:inline;*zoom:1;} 12 | .icon-att{background-position: -16px 0;} -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/nl.js: -------------------------------------------------------------------------------- 1 | // Dutch 2 | plupload.addI18n({ 3 | 'Select files' : 'Selecteer bestand(en):', 4 | 'Add files to the upload queue and click the start button.' : 'Voeg bestanden toe aan de wachtrij en druk op \'Start\'.', 5 | 'Filename' : 'Bestandsnaam', 6 | 'Status' : 'Status', 7 | 'Size' : 'Grootte', 8 | 'Add files' : 'Voeg bestanden toe', 9 | 'Stop current upload' : 'Stop upload', 10 | 'Start uploading queue' : 'Start upload', 11 | 'Uploaded %d/%d files': '%d/%d bestanden ge-upload', 12 | 'N/A' : 'Niet beschikbaar', 13 | 'Drag files here.' : 'Sleep bestanden hierheen.', 14 | 'File extension error.': 'Ongeldig bestandstype.', 15 | 'File size error.': 'Bestandsgrootte Error.', 16 | 'Init error.': 'Initialisatie error.', 17 | 'HTTP Error.': 'HTTP Error.', 18 | 'Security error.': 'Beveiliging error.', 19 | 'Generic error.': 'Onbekende error.', 20 | 'IO error.': 'IO error.' 21 | }); -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/ru.js: -------------------------------------------------------------------------------- 1 | // Russian 2 | plupload.addI18n({ 3 | 'Select files' : 'Выберите файлы', 4 | 'Add files to the upload queue and click the start button.' : 'Добавьте файлы в очередь и нажмите кнопку "Загрузить файлы".', 5 | 'Filename' : 'Имя файла', 6 | 'Status' : 'Статус', 7 | 'Size' : 'Размер', 8 | 'Add files' : 'Добавить файлы', 9 | 'Stop current upload' : 'Остановить загрузку', 10 | 'Start uploading queue' : 'Загрузить файлы', 11 | 'Uploaded %d/%d files': 'Загружено %d из %d файлов', 12 | 'N/A' : 'N/D', 13 | 'Drag files here.' : 'Перетащите файлы сюда.', 14 | 'File extension error.': 'Неправильное расширение файла.', 15 | 'File size error.': 'Неправильный размер файла.', 16 | 'Init error.': 'Ошибка инициализации.', 17 | 'HTTP Error.': 'Ошибка HTTP.', 18 | 'Security error.': 'Ошибка безопасности.', 19 | 'Generic error.': 'Общая ошибка.', 20 | 'IO error.': 'Ошибка ввода-вывода.' 21 | }); -------------------------------------------------------------------------------- /docviewerflex/locale/pl_PL/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/pl_PL/FlexPaper.properties 2 | Print=Drukuj 3 | FitWidth=Dopasuj do szeroko\u015bci 4 | FitPage=Dopasuj do strony 5 | Scale=Skaluj 6 | ThumbView=Widok miniaturek 7 | CurrentPage=Obecna strona 8 | Search=Szukaj 9 | NextPage=Nast\u0119pna strona 10 | PreviousPage=Poprzednia strona 11 | Fullscreen=Pe\u0142ny ekran 12 | About=O 13 | Finishedsearching=Wyszukiwanie zako\u0144czone, nic wi\u0119cej nie znaleziono 14 | Searchfinished=Wyszukiwanie zako\u0144czone 15 | Selectprintrange=Wybierz zakres wydruku 16 | All=Wszystkie 17 | CurrentPage=Obecna strona 18 | Pages=Strony: 19 | Enterpagenumbers=Podaj numery stron lub zakres, np. 1,3,5-12 20 | Cancel=Anuluj 21 | IncorrectRange=Niepoprawny zakres 22 | Incorrectrangespecified=Niepoprawny zakres 23 | About=O 24 | Developedby=Stworzony przez Devaldi. 25 | Formoreinformation=Aby uzyska\u0107 wi\u0119cej informacji zobacz 26 | TwoPage=Dwie strony 27 | SinglePage=jednej stronie -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/streaming/IGenericMovieClip.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | package com.devaldi.streaming 19 | { 20 | public interface IGenericMovieClip 21 | { 22 | function gotoAndStop(frame:int):void; 23 | function stop():void; 24 | function get width():Number; 25 | function get height():Number; 26 | } 27 | } -------------------------------------------------------------------------------- /lib/j2ee1.4/.svn/entries: -------------------------------------------------------------------------------- 1 | 10 2 | 3 | dir 4 | 9168 5 | https://192.168.20.160/svn/xn-sirm/xn-sirm/lib/J2EE1.4 6 | https://192.168.20.160/svn/xn-sirm 7 | 8 | 9 | 10 | 2011-03-18T02:48:22.796875Z 11 | 21 12 | pandq 13 | 14 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | c358651b-13a4-9f43-a4ae-1fe8d8f71035 28 | 29 | servlet-api.jar 30 | file 31 | 32 | 33 | 34 | 35 | 2011-06-24T02:47:54.000000Z 36 | 532510e56fbe17402c763cc632f5eb0f 37 | 2011-03-18T02:48:22.796875Z 38 | 21 39 | pandq 40 | has-props 41 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | 57 | 58 | 59 | 60 | 61 | 97703 62 | 63 | jsp-api.jar 64 | file 65 | 66 | 67 | 68 | 69 | 2011-06-24T02:47:54.000000Z 70 | bae35866373aa1ba25023a9bb383adfb 71 | 2011-03-18T02:48:22.796875Z 72 | 21 73 | pandq 74 | has-props 75 | 76 | 77 | 78 | 79 | 80 | 81 | 82 | 83 | 84 | 85 | 86 | 87 | 88 | 89 | 90 | 91 | 92 | 93 | 94 | 95 | 50501 96 | 97 | -------------------------------------------------------------------------------- /docviewerflex/locale/de_DE/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/de_DE/FlexPaper.properties 2 | Print=Drucken 3 | FitWidth=Weite anpassen 4 | FitPage=Seite anpassen 5 | Scale=Skalieren 6 | ThumbView=Ansicht vereinfachen 7 | CurrentPage=Derzeitige Seite 8 | Search=Suche 9 | NextPage=N\u00e4chste Seite 10 | PreviousPage=Vorherige Seite 11 | Fullscreen=Vollansicht 12 | About=\u00dcber 13 | Finishedsearching=Suche nach Dokument fertig. Keine weiteren Eintr\u00e4ge gefunden 14 | Searchfinished=Suche fertig 15 | Selectprintrange=Druckbereich w\u00e4hlen 16 | All=Alle 17 | CurrentPage=Derzeitige Seite 18 | Pages=Seiten: 19 | Enterpagenumbers=Geben Sie die Seitenzahl und/oder den Seitenbereich an. Zum Beispiel 1,3,5-12 20 | Cancel=Abbrechen 21 | IncorrectRange=Bereich nicht korrekt 22 | Incorrectrangespecified=Bereich nicht richtig definiert 23 | About=\u00dcber 24 | Developedby=Erstellt von Devaldi. 25 | Formoreinformation=Mehr Information 26 | TwoPage=Zwei Page 27 | SinglePage=Single Page -------------------------------------------------------------------------------- /docviewerflex/locale/nl_NL/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/nl_NL/FlexPaper.properties 2 | Print=Print 3 | FitWidth=Passend maken breedte 4 | FitPage=Passend maken pagina 5 | Scale=Schaal 6 | ThumbView=Thumb bekijken 7 | CurrentPage=Huidige pagina 8 | Search=Zoeken 9 | NextPage=Volgende pagina 10 | PreviousPage=Vorige pagina 11 | Fullscreen=Volledig Scherm 12 | About=Over 13 | Finishedsearching=Klaar met doorzoeken document. Er zijn geen matches meer gevonden 14 | Searchfinished=Zoek is klaar 15 | Selectprintrange=Selecteer de print range 16 | All=Alle 17 | CurrentPage=Huidige pagina 18 | Pages=Paginas: 19 | Enterpagenumbers=Voer paginanummers in en/of pagina schalen gescheiden door commas. Bijvoorbeeld 1,3,5-12 20 | Cancel=Annuleren 21 | IncorrectRange=Foute range 22 | Incorrectrangespecified=Foute range ingevoerd 23 | About=Over 24 | Developedby=Ontwikkeld door Devaldi. 25 | Formoreinformation=Voor meer informatie, zie 26 | TwoPage=Twee pagina 27 | SinglePage=Single pagina -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/utils/StreamUtil.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls.flexpaper.utils 2 | { 3 | import com.devaldi.streaming.IDocumentLoader; 4 | 5 | import flash.system.ApplicationDomain; 6 | import flash.system.LoaderContext; 7 | 8 | public class StreamUtil 9 | { 10 | private static var loaderCtx:LoaderContext; 11 | public static var DocLoader:IDocumentLoader; 12 | public static var ProgressiveLoading:Boolean; 13 | 14 | public static function getExecutionContext():LoaderContext{ 15 | if(loaderCtx == null){ 16 | loaderCtx = new LoaderContext(); 17 | loaderCtx.applicationDomain = ApplicationDomain.currentDomain; 18 | 19 | if(loaderCtx.hasOwnProperty("allowCodeImport")){ 20 | loaderCtx["allowCodeImport"] = true; 21 | } 22 | 23 | if(loaderCtx.hasOwnProperty("allowLoadBytesCodeExecution")){ 24 | loaderCtx["allowLoadBytesCodeExecution"] = true; 25 | } 26 | 27 | } 28 | return loaderCtx; 29 | } 30 | } 31 | } -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/it.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Seleziona i files', 4 | 'Add files to the upload queue and click the start button.' : 'Aggiungi i file alla coda di caricamento e clicca il pulsante di avvio.', 5 | 'Filename' : 'Nome file', 6 | 'Status' : 'Stato', 7 | 'Size' : 'Dimensione', 8 | 'Add files' : 'Aggiungi file', 9 | 'Stop current upload' : 'Interrompi il caricamento', 10 | 'Start uploading queue' : 'Avvia il caricamento', 11 | 'Uploaded %d/%d files': 'Caricati %d/%d file', 12 | 'N/A' : 'N/D', 13 | 'Drag files here.' : 'Trascina i file qui.', 14 | 'File extension error.': 'Errore estensione file.', 15 | 'File size error.': 'Errore dimensione file.', 16 | 'Init error.': 'Errore inizializzazione.', 17 | 'HTTP Error.': 'Errore HTTP.', 18 | 'Security error.': 'Errore sicurezza.', 19 | 'Generic error.': 'Errore generico.', 20 | 'IO error.': 'Errore IO.' 21 | }); -------------------------------------------------------------------------------- /docviewerflex/locale/dn_DN/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/dn_DN/FlexPaper.properties 2 | Print=Udskriv 3 | FitWidth=Tilpas bredde 4 | FitPage=Tilpas side 5 | Scale=Skala 6 | ThumbView=Miniaturevisning 7 | CurrentPage=Aktuel side 8 | Search=S\u00f8g 9 | NextPage=N\u00e6ste side 10 | PreviousPage=Forrige side 11 | Fullscreen=Fuld sk\u00e6rm 12 | About=Om 13 | Finishedsearching=S\u00f8gningen i dokumentet er f\u00e6rdig. Der blev ikke fundet nogen resultater 14 | Searchfinished=S\u00f8gning afsluttet 15 | Selectprintrange=V\u00e6lg udskriftsomr\u00e5de 16 | All=Alle 17 | CurrentPage=Aktuel side 18 | Pages=Sider: 19 | Enterpagenumbers=Skriv sidetal og/eller sideomr\u00e5der adskilt af kommaer. f.eks. 1,3,5-12 20 | Cancel=Annuller 21 | IncorrectRange=Ukorrekt omr\u00e5de 22 | Incorrectrangespecified=Ukorrekt omr\u00e5de angivet 23 | About=Om 24 | Developedby=Udviklet af Devaldi. 25 | Formoreinformation=For yderligere oplysninger, se 26 | TwoPage=To Page 27 | SinglePage=Single Side -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/convert/pdf/PDFConvertErrorType.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.convert.pdf; 2 | 3 | /** 4 | * @author: 张立鑫 5 | * @date: 11-8-19 下午1:06 6 | */ 7 | public enum PDFConvertErrorType { 8 | //没有错误 9 | NONE { 10 | int getErrorCode() { 11 | return -1; 12 | } 13 | 14 | String getErrorMessage() { 15 | return ""; 16 | } 17 | 18 | }, 19 | //文档过于复杂 20 | COMPLEX { 21 | int getErrorCode() { 22 | return 1; 23 | } 24 | 25 | String getErrorMessage() { 26 | return "ERROR This file is too complex"; 27 | } 28 | 29 | }, 30 | //不支持字符集 31 | INVALID_CHARID { 32 | int getErrorCode() { 33 | return 2; 34 | } 35 | 36 | String getErrorMessage() { 37 | return "ERROR Invalid charid"; 38 | } 39 | 40 | 41 | }; 42 | 43 | abstract int getErrorCode(); 44 | 45 | abstract String getErrorMessage(); 46 | } 47 | -------------------------------------------------------------------------------- /docviewerflex/locale/en_US/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/en_US/FlexPaper.properties 2 | Print=Print 3 | FitWidth=Fit Width 4 | FitPage=Fit Page 5 | Scale=Scale 6 | ThumbView=Thumb View 7 | CurrentPage=Current Page 8 | Search=Search 9 | NextPage=Next Page 10 | PreviousPage=Previous Page 11 | Fullscreen=Fullscreen 12 | About=About 13 | Finishedsearching=Finished searching the document. No more matches were found 14 | Searchfinished=Search finished 15 | Selectprintrange=Select print range 16 | All=All 17 | CurrentPage=Current Page 18 | Pages=Pages: 19 | Enterpagenumbers=Enter page numbers and/or page ranges separated by commas. For example 1,3,5-12 20 | Cancel=Cancel 21 | IncorrectRange=Incorrect Range 22 | Incorrectrangespecified=Incorrect range specified 23 | About=About 24 | Developedby=Developed by Devaldi. 25 | Formoreinformation=For more information, see 26 | CopyText=Copy Text 27 | TwoPage=Two Pages 28 | SinglePage=Single Page 29 | FirstPage=First Page 30 | LastPage=Last Page -------------------------------------------------------------------------------- /docviewerflex/locale/it_IT/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/it_IT/FlexPaper.properties 2 | Print=Stampa 3 | FitWidth=Adatta Larghezza 4 | FitPage=Adatta Pagina 5 | Scale=Scala 6 | ThumbView=Vista Anteprima 7 | CurrentPage=Pagina Corrente 8 | Search=Ricerca 9 | NextPage=Pagina Seguente 10 | PreviousPage=Pagina precedente 11 | Fullscreen=Fullscreen 12 | About=Su 13 | Finishedsearching=Finita la ricerca nel documento . Trovata nienta occorenza di pi\u00f9. 14 | Searchfinished=Ricerca finita 15 | Selectprintrange=Selezionare la portata di stampa 16 | All=Tutto 17 | CurrentPage=Pagina corrente 18 | Pages=Pagine: 19 | Enterpagenumbers=Immettere i numeri di pagina e/o gli intervalli pagina separati da virgole. Es. 1,3,5-12 20 | Cancel=Annulla 21 | IncorrectRange=Gamma sbagliata 22 | Incorrectrangespecified=Gamma specificata sbagliata 23 | About=Su 24 | Developedby=Sviluppato da Devaldi. 25 | Formoreinformation=Per pi\u00f9 d'informazioni, si prega di visitare 26 | TwoPage=Due pagina 27 | SinglePage=singola pagina -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/convert/pdf/PDFConvertError.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.convert.pdf; 2 | 3 | /** 4 | * @author: 张立鑫 5 | * @date: 11-8-19 下午1:05 6 | */ 7 | public class PDFConvertError { 8 | 9 | public PDFConvertError() { 10 | } 11 | 12 | public PDFConvertError(PDFConvertErrorType type) { 13 | this.type = type; 14 | } 15 | 16 | public PDFConvertError(PDFConvertErrorType type, int position) { 17 | this.type = type; 18 | this.position = position; 19 | } 20 | 21 | private PDFConvertErrorType type = PDFConvertErrorType.NONE; 22 | private Integer position; 23 | 24 | public PDFConvertErrorType getType() { 25 | return type; 26 | } 27 | 28 | public Integer getPosition() { 29 | return position; 30 | } 31 | 32 | public void setType(PDFConvertErrorType type) { 33 | 34 | this.type = type; 35 | } 36 | 37 | public void setPosition(Integer position) { 38 | this.position = position; 39 | } 40 | } 41 | -------------------------------------------------------------------------------- /docviewerflex/locale/pv_FN/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/pv_FN/FlexPaper.properties 2 | Print=Tulosta 3 | FitWidth=Sovita leveyteen 4 | FitPage=Sovita sivulle 5 | Scale=Muuta mittakaava 6 | ThumbView=Pikkukuvan\u00e4kym\u00e4 7 | CurrentPage=Nykyinen sivu 8 | Search=Haku 9 | NextPage=Seuraava sivu 10 | PreviousPage=Edellinen sivu 11 | Fullscreen=Kokoruutu 12 | About=Tietoa aiheesta 13 | Finishedsearching=Etsint\u00e4 on valmis. Ei l\u00f6ytynyt uusia hakutuloksia. 14 | Searchfinished=Haku p\u00e4\u00e4ttynyt 15 | Selectprintrange=Valitse tulostusalue 16 | All=Kaikki 17 | CurrentPage=Nykyinen sivu 18 | Pages=Sivut: 19 | Enterpagenumbers=Anna sivunumerot ja / tai sivualueet pilkulla eroteltuina. Esimerkiksi 1,3,5-12 20 | Cancel=Peruuta 21 | IncorrectRange=V\u00e4\u00e4r\u00e4 alue 22 | Incorrectrangespecified=Virheellinen alue eriteltyn\u00e4 23 | About=Tietoa aiheesta 24 | Developedby=Devaldi Group. 25 | Formoreinformation=Saadaksesi lis\u00e4tietoja, katso 26 | TwoPage=Kaksi sivu 27 | SinglePage=Single sivu -------------------------------------------------------------------------------- /docviewerflex/locale/se_SE/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/se_SE/FlexPaper.properties 2 | Print=Skriv ut 3 | FitWidth=Anpassa efter bredd 4 | FitPage=Anpassa efter sida 5 | Scale=Skala 6 | ThumbView=Visa miniatyrer 7 | CurrentPage=Aktuell sida 8 | Search=S\u00f6k 9 | NextPage=N\u00e4sta sida 10 | PreviousPage=F\u00f6reg\u00e5ende sida 11 | Fullscreen=Helsk\u00e4rm 12 | About=Om 13 | Finishedsearching=S\u00f6kning i dokumentet har avslutats. Hittade inte fler tr\u00e4ffar. 14 | Searchfinished=S\u00f6kning avslutad 15 | Selectprintrange=V\u00e4lj utskriftsomr\u00e5de 16 | All=Alla 17 | CurrentPage=Aktuell sida 18 | Pages=Sidor: 19 | Enterpagenumbers=Ange sidnummer och/eller sidintervall avgr\u00e4nsade med kommatecken, t ex 1,3,5-12 20 | Cancel=Avbryt 21 | IncorrectRange=Felaktigt intervall 22 | Incorrectrangespecified=Felaktigt intervall har specifierats 23 | About=Om 24 | Developedby=Utvecklad av Devaldi. 25 | Formoreinformation=F\u00f6r mer information, se 26 | TwoPage=Dubbel sidvy 27 | SinglePage=Enkel sida -------------------------------------------------------------------------------- /docviewerflex/locale/fi_FN/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/fi_FN/FlexPaper.properties 2 | Print=Tulosta 3 | FitWidth=Sovita leveyteen 4 | FitPage=Sovita sivulle 5 | Scale=Muuta mittakaava 6 | ThumbView=Pikkukuvan\u00e4kym\u00e4 7 | CurrentPage=Nykyinen sivu 8 | Search=Haku 9 | NextPage=Seuraava sivu 10 | PreviousPage=Edellinen sivu 11 | Fullscreen=Kokoruutu 12 | About=Tietoa aiheesta 13 | Finishedsearching=Etsint\u00e4 on valmis. Ei l\u00f6ytynyt uusia hakutuloksia. 14 | Searchfinished=Haku p\u00e4\u00e4ttynyt 15 | Selectprintrange=Valitse tulostusalue 16 | All=Kaikki 17 | CurrentPage=Nykyinen sivu 18 | Pages=Sivut: 19 | Enterpagenumbers=Anna sivunumerot ja / tai sivualueet pilkulla eroteltuina. Esimerkiksi 1,3,5-12 20 | Cancel=Peruuta 21 | IncorrectRange=V\u00e4\u00e4r\u00e4 alue 22 | Incorrectrangespecified=Virheellinen alue eriteltyn\u00e4 23 | About=Tietoa aiheesta 24 | Developedby=Kehitt\u00e4m\u00e4 Devaldi. 25 | Formoreinformation=Saadaksesi lis\u00e4tietoja, katso 26 | TwoPage=Kaksi sivu 27 | SinglePage=Single sivu -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/FitModeEnum.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.controls.flexpaper 20 | { 21 | public final class FitModeEnum 22 | { 23 | public static const FITNONE:String = "Fit None"; 24 | public static const FITWIDTH:String = "Fit Width"; 25 | public static const FITHEIGHT:String = "Fit Height"; 26 | } 27 | } -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/entity/IDocAttachment.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.entity; 2 | 3 | 4 | import com.log4ic.enums.Permissions; 5 | 6 | import java.io.InputStream; 7 | 8 | /** 9 | * @author: 张立鑫 10 | * @version: 1 11 | * @date: 11-8-29 上午10:55 12 | */ 13 | public interface IDocAttachment { 14 | /** 15 | * 获得附件名称属性值 16 | * 17 | * @return 附件名称属性值 18 | */ 19 | public String getName(); 20 | 21 | /** 22 | * 获得附件大小属性值 23 | * 24 | * @return 附件大小属性值 25 | */ 26 | public Long getContentSize(); 27 | 28 | /** 29 | * 获得页数属性值 30 | * 31 | * @return 页数属性值 32 | */ 33 | public Integer getPageCount(); 34 | 35 | /** 36 | * 获得文件类型属性值 37 | * 38 | * @return 文件类型属性值 39 | */ 40 | public String getFileType(); 41 | 42 | /** 43 | * 获得附件内容属性值 44 | * 45 | * @return 附件内容属性值 46 | */ 47 | public InputStream getContentStream(); 48 | 49 | /** 50 | * 获取该文档权限 51 | * 52 | * @return 53 | */ 54 | public Permissions getPermissions(); 55 | } 56 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/ShapeMarker.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.controls.flexpaper 20 | { 21 | import flash.display.Sprite; 22 | 23 | public class ShapeMarker extends Sprite 24 | { 25 | public var PageIndex:int = -1; 26 | public var data:Object = null; 27 | 28 | public function ShapeMarker() 29 | { 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/support/DocViewerServiceListener.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.support; 2 | 3 | import com.log4ic.DocViewer; 4 | import org.apache.commons.logging.Log; 5 | import org.apache.commons.logging.LogFactory; 6 | 7 | import javax.servlet.ServletContextEvent; 8 | import javax.servlet.ServletContextListener; 9 | 10 | /** 11 | * @author: 张立鑫 12 | * @version: 1 13 | * @date: 11-9-17 下午2:09 14 | */ 15 | public class DocViewerServiceListener implements ServletContextListener { 16 | 17 | private static final Log LOGGER = LogFactory.getLog(DocViewerServiceListener.class); 18 | 19 | public void contextInitialized(ServletContextEvent servletContextEvent) { 20 | try { 21 | DocViewer.initialize(); 22 | } catch (Exception e) { 23 | LOGGER.error(e); 24 | } 25 | } 26 | 27 | public void contextDestroyed(ServletContextEvent servletContextEvent) { 28 | try { 29 | DocViewer.destroy(); 30 | } catch (Exception e) { 31 | LOGGER.error(e); 32 | } 33 | } 34 | } 35 | -------------------------------------------------------------------------------- /docviewerflex/locale/fr_FR/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/fr_FR/FlexPaper.properties 2 | Print=Imprimer 3 | FitWidth=Ajuster Largeur 4 | FitPage=Ajuster Page 5 | Scale=Zoom 6 | ThumbView=Vignettes 7 | CurrentPage=Page Courante 8 | Search=Recherche 9 | NextPage=Page Suivante 10 | PreviousPage=Page Pr\u00e9c\u00e9dente 11 | Fullscreen=Plein Ecran 12 | About=A Propos 13 | Finishedsearching=Recherche dans le document termin\u00e9e. Pas d'autre ocurrence trouv\u00e9e 14 | Searchfinished=Recherche termin\u00e9e 15 | Selectprintrange=Etendue de l'impression 16 | All=Tout 17 | CurrentPage=Page Courante 18 | Pages=Pages: 19 | Enterpagenumbers=Entrez les num\u00e9ros de page et/ou les intervalles de page s\u00e9par\u00e9s par des virgules. Par exemple 1,3,5-12 20 | Cancel=Annuler 21 | IncorrectRange=Intervalle non valide 22 | Incorrectrangespecified=Intervalle non valide sp\u00e9cifi\u00e9 23 | About=A Propos 24 | Developedby=D\u00e9velopp\u00e9 par Devaldi. 25 | Formoreinformation=Pour plus d'informations, allez sur 26 | TwoPage=Deux Page 27 | SinglePage=Page unique -------------------------------------------------------------------------------- /docviewerflex/locale/tr_TR/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/tr_TR/FlexPaper.properties 2 | Print=Yazd\u0131r 3 | FitWidth=En uygun geni\u015flik 4 | FitPage=En uygun sayfa 5 | Scale=\u00d6l\u00e7ekle 6 | ThumbView=G\u00f6zetle 7 | CurrentPage=\u015eimdiki sayfa 8 | Search=Ara 9 | NextPage=Sonraki sayfa 10 | PreviousPage=\u00d6nceki sayfa 11 | Fullscreen=Tam ekran 12 | About=Hakk\u0131nda 13 | Finishedsearching=D\u00f6k\u00fcman\u0131 arama bitti. E\u015fle\u015ftirme bulunamad\u0131 14 | Searchfinished=Arama bitti 15 | Selectprintrange=Yazd\u0131rma aral\u0131\u011f\u0131n\u0131 se\u00e7 16 | All=B\u00fct\u00fcn 17 | CurrentPage=\u015eimdiki sayfa 18 | Pages=Sayfalar: 19 | Enterpagenumbers=Virg\u00fclle ayt\u0131lm\u0131\u015f sayfa numaralar\u0131n\u0131 gir \u00d6rne\u011fin 1,3,5-12 20 | Cancel=\u0130ptal 21 | IncorrectRange=Yanl\u0131\u015f dizi 22 | Incorrectrangespecified=Yanl\u0131\u015f dizi tan\u0131mlanm\u0131\u015f 23 | Developedby=By Devaldi Group. 24 | Formoreinformation=Daha fazla bilgi i\u00e7in... 25 | TwoPage=\u0130ki Sayfa 26 | SinglePage=Tek Sayfa -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/streaming/DupLoader.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.streaming 20 | { 21 | import flash.display.Loader; 22 | 23 | public class DupLoader extends flash.display.Loader 24 | { 25 | public var loaded:Boolean = false; 26 | public var loadingFrames:int = 0; 27 | public var pageStartIndex:int = 0; 28 | public var loading:Boolean = false; 29 | } 30 | } -------------------------------------------------------------------------------- /docviewerflex/locale/es_ES/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/es_ES/FlexPaper.properties 2 | Print=Imprimir 3 | FitWidth=Ajustar ancho 4 | FitPage=Ajustar p\u00e1gina 5 | Scale=% Zoom 6 | ThumbView=Vista en miniatura 7 | CurrentPage=P\u00e1gina actual 8 | Search=Buscar 9 | NextPage=P\u00e1gina siguiente 10 | PreviousPage=P\u00e1gina anterior 11 | Fullscreen=Pantalla completa 12 | About=Acerca de 13 | Finishedsearching=B\u00fasqueda finalizada. No se encontraron m\u00e1s coincidencias en el documento. 14 | Searchfinished=B\u00fasqueda finalizada 15 | Selectprintrange=Selecciona el \u00e1rea a imprimir 16 | All=Todo 17 | CurrentPage=P\u00e1gina actual 18 | Pages=P\u00e1ginas: 19 | Enterpagenumbers=Introducir los n\u00fameros de p\u00e1gina y/o los rangos separados por comas. Por ejemplo: 1,3,5-12 20 | Cancel=Cancelar 21 | IncorrectRange=Rango incorrecto 22 | Incorrectrangespecified=El rango especificado no es correcto 23 | About=Acerca de 24 | Developedby=Developed by Devaldi. 25 | Formoreinformation=For more information, see 26 | TwoPage=Dos Page 27 | SinglePage=sola p\u00e1gina -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/skinning/GradientLabel.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.skinning 20 | { 21 | import mx.controls.Label; 22 | 23 | public class GradientLabel extends Label 24 | { 25 | protected override function updateDisplayList(unscaledWidth:Number, 26 | unscaledHeight:Number):void 27 | { 28 | super.updateDisplayList(unscaledWidth, unscaledHeight); 29 | } 30 | 31 | } 32 | } -------------------------------------------------------------------------------- /docviewerflex/locale/pt_BR/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/pt_BR/FlexPaper.properties 2 | Print=Imprimir 3 | FitWidth=Ajustar Largura 4 | FitPage=Ajustar P\u00e1gina 5 | Scale=Escala 6 | ThumbView=Ver Miniaturas 7 | CurrentPage=P\u00e1gina atual 8 | Search=Pesquisa 9 | NextPage=Pr\u00f3xima p\u00e1gina 10 | PreviousPage=P\u00e1gina Anterior 11 | Fullscreen=Tela cheia 12 | About=Sobre 13 | Finishedsearching=Terminou a procura no documento. Mais candidatos n\u00e3o foram encontrados 14 | Searchfinished=Pesquisa conclu\u00edda 15 | Selectprintrange=Selecione o intervalo de impress\u00e3o 16 | All=Todos 17 | CurrentPage=P\u00e1gina atual 18 | Pages=P\u00e1ginas: 19 | Enterpagenumbers=Digite os n\u00fameros das p\u00e1ginas e / ou intervalos das p\u00e1ginas separados por v\u00edrgulas. Por exemplo, 1,3,5-12 20 | Cancel=Cancelar 21 | IncorrectRange=Ordem incorreta 22 | Incorrectrangespecified=Ordem especificada incorreta 23 | About=Sobre 24 | Developedby=Desenvolvido por Devaldi. 25 | Formoreinformation=Para obter mais informa\u00e7\u00f5es, consulte: 26 | TwoPage=Duas P\u00e1ginas 27 | SinglePage=P\u00e1gina \u00danica -------------------------------------------------------------------------------- /docviewerflex/locale/pt_PT/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/pt_PT/FlexPaper.properties 2 | Print=Imprimir 3 | FitWidth=Ajustar Largura 4 | FitPage=Ajustar P\u00e1gina 5 | Scale=Escala 6 | ThumbView=Ver Polegar 7 | CurrentPage=P\u00e1gina atual 8 | Search=Pesquisa 9 | NextPage=Pr\u00f3xima p\u00e1gina 10 | PreviousPage=P\u00e1gina precedente 11 | Fullscreen=Ecr\u00e3 cheio 12 | About=Sobre 13 | Finishedsearching=Terminou a procura no documento. Mais competidores n\u00e3o foram encontrados 14 | Searchfinished=Pesquisa conclu\u00edda 15 | Selectprintrange=Seleccione o intervalo de impress\u00e3o 16 | All=Todos 17 | CurrentPage=P\u00e1gina actual 18 | Pages=P\u00e1ginas: 19 | Enterpagenumbers=Digite os n\u00fameros das p\u00e1ginas e / ou intervalos das p\u00e1ginas separados por v\u00edrgulas. Por exemplo 1,3,5-12 20 | Cancel=Cancelar 21 | IncorrectRange=Ordem incorreta 22 | Incorrectrangespecified=Ordem especificada incorreta 23 | About=Sobre 24 | Developedby=Developed by Devaldi. 25 | Formoreinformation=Para obter mais informa\u00e7\u00f5es, consulte: 26 | TwoPage=Dois P\u00e1gina 27 | SinglePage=P\u00e1gina \u00danica -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/convert/PDFConvertWorker.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.convert; 2 | 3 | import com.log4ic.utils.convert.pdf.PDFConverter; 4 | 5 | import java.io.File; 6 | 7 | /** 8 | * @author: 张立鑫 9 | * @version: 1 10 | * @date: 11-8-22 上午11:20 11 | */ 12 | public class PDFConvertWorker extends ConvertWorker { 13 | 14 | boolean splitPage = true; 15 | 16 | public PDFConvertWorker(int id, boolean splitPage) { 17 | super(id); 18 | this.splitPage = splitPage; 19 | } 20 | 21 | public PDFConvertWorker(int id, File inFile, String outputPath, boolean splitPage) { 22 | super(id, inFile, outputPath); 23 | this.splitPage = splitPage; 24 | } 25 | 26 | public PDFConvertWorker(int id, File inFile, boolean splitPage) { 27 | super(id, inFile); 28 | this.splitPage = splitPage; 29 | } 30 | 31 | @Override 32 | public void run() { 33 | File in = this.getInFile(); 34 | PDFConverter converter = new PDFConverter(); 35 | try { 36 | converter.convert(in, this.getOutputPath(), splitPage, false); 37 | } catch (Exception e) { 38 | e.printStackTrace(); 39 | } 40 | } 41 | } 42 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/fr.js: -------------------------------------------------------------------------------- 1 | // .po file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Sélectionnez les fichiers', 4 | 'Add files to the upload queue and click the start button.' : 'Ajoutez des fichiers à la file et appuyez sur le bouton démarrer.', 5 | 'Filename' : 'Nom de fichier', 6 | 'Status' : 'Status', 7 | 'Size' : 'Taille', 8 | 'Add files' : 'Ajouter Fichiers', 9 | 'Stop current upload' : 'Arrêter l\'envoi en cours', 10 | 'Start uploading queue' : 'Démarrer l\'envoi', 11 | 'Uploaded %d/%d files': '%d/%d fichiers envoyés', 12 | 'N/A' : 'Non applicable', 13 | 'Drag files here.' : 'Déposer les fichiers ici.', 14 | 'File extension error.': 'Erreur extension fichier', 15 | 'File size error.': 'Erreur taille fichier.', 16 | 'Init error.': 'Erreur d\'initialisation.', 17 | 'HTTP Error.': 'Erreur HTTP.', 18 | 'Security error.': 'Erreur de sécurité.', 19 | 'Generic error.': 'Erreur générique.', 20 | 'IO error.': 'Erreur E/S.', 21 | 'Stop Upload': 'Arrêter les envois.', 22 | 'Add Files': 'Ajouter des fichiers', 23 | 'Start Upload': 'Démarrer les envois.', 24 | '%d files queued': '%d fichiers en attente.' 25 | }); -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/DocumentPrintedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class DocumentPrintedEvent extends Event 24 | { 25 | public static const DOCUMENT_PRINTED:String = "onDocumentPrinted"; 26 | 27 | public function DocumentPrintedEvent(type:String){ 28 | super(type); 29 | } 30 | 31 | // Override the inherited clone() method. 32 | override public function clone():Event { 33 | return new DocumentPrintedEvent(type); 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /docviewerflex/src/caurina/transitions/SpecialPropertySplitter.as: -------------------------------------------------------------------------------- 1 | package caurina.transitions { 2 | 3 | /** 4 | * SpecialPropertySplitter 5 | * A proxy setter for special properties 6 | * 7 | * @author Zeh Fernando 8 | * @version 1.0.0 9 | * @private 10 | */ 11 | 12 | public class SpecialPropertySplitter { 13 | 14 | public var parameters:Array; 15 | public var splitValues:Function; 16 | 17 | /** 18 | * Builds a new group special property object. 19 | * 20 | * @param p_splitFunction Function Reference to the function used to split a value 21 | */ 22 | public function SpecialPropertySplitter (p_splitFunction:Function, p_parameters:Array) { 23 | splitValues = p_splitFunction; 24 | parameters = p_parameters; 25 | } 26 | 27 | /** 28 | * Converts the instance to a string that can be used when trace()ing the object 29 | */ 30 | public function toString():String { 31 | var value:String = ""; 32 | value += "[SpecialPropertySplitter "; 33 | value += "splitValues:"+String(splitValues); // .toString(); 34 | value += ", "; 35 | value += "parameters:"+String(parameters); 36 | value += "]"; 37 | return value; 38 | } 39 | 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/es.js: -------------------------------------------------------------------------------- 1 | // Spanish 2 | plupload.addI18n({ 3 | 'Select files' : 'Elija archivos:', 4 | 'Add files to the upload queue and click the start button.' : 'Agregue archivos a la cola de subida y haga click en el boton de iniciar.', 5 | 'Filename' : 'Nombre de archivo', 6 | 'Status' : 'Estado', 7 | 'Size' : 'Tamaño', 8 | 'Add files' : 'Agregue archivos', 9 | 'Stop current upload' : 'Detener subida actual', 10 | 'Start uploading queue' : 'Iniciar subida de cola', 11 | 'Uploaded %d/%d files': 'Subidos %d/%d archivos', 12 | 'N/A' : 'No disponible', 13 | 'Drag files here.' : 'Arrastre archivos aquí', 14 | 'File extension error.': 'Error de extensión de archivo.', 15 | 'File size error.': 'Error de tamaño de archivo.', 16 | 'Init error.': 'Error de inicialización.', 17 | 'HTTP Error.': 'Error de HTTP.', 18 | 'Security error.': 'Error de seguridad.', 19 | 'Generic error.': 'Error genérico.', 20 | 'IO error.': 'Error de entrada/salida.', 21 | 'Stop Upload': 'Detener Subida.', 22 | 'Add Files': 'Agregar Archivos', 23 | 'Start Upload': 'Comenzar Subida.', 24 | '%d files queued': '%d archivos en cola.' 25 | }); -------------------------------------------------------------------------------- /docviewerflex/src/caurina/transitions/SpecialPropertyModifier.as: -------------------------------------------------------------------------------- 1 | package caurina.transitions { 2 | 3 | /** 4 | * SpecialPropertyModifier 5 | * A special property which actually acts on other properties 6 | * 7 | * @author Zeh Fernando 8 | * @version 1.0.0 9 | * @private 10 | */ 11 | 12 | public class SpecialPropertyModifier { 13 | 14 | public var modifyValues:Function; 15 | public var getValue:Function; 16 | 17 | /** 18 | * Builds a new special property modifier object. 19 | * 20 | * @param p_modifyFunction Function Function that returns the modifider parameters. 21 | */ 22 | public function SpecialPropertyModifier (p_modifyFunction:Function, p_getFunction:Function) { 23 | modifyValues = p_modifyFunction; 24 | getValue = p_getFunction; 25 | } 26 | 27 | /** 28 | * Converts the instance to a string that can be used when trace()ing the object 29 | */ 30 | public function toString():String { 31 | var value:String = ""; 32 | value += "[SpecialPropertyModifier "; 33 | value += "modifyValues:"+String(modifyValues); 34 | value += ", "; 35 | value += "getValue:"+String(getValue); 36 | value += "]"; 37 | return value; 38 | } 39 | 40 | } 41 | 42 | } 43 | -------------------------------------------------------------------------------- /docviewerapi/src/log4j.properties: -------------------------------------------------------------------------------- 1 | 2 | log4j.rootLogger = DEBUG, CONSOLE, ROLLING_FILE 3 | log4j.addivity.org.apache = true 4 | 5 | # \u5e94\u7528\u4e8e\u63a7\u5236\u53f0 6 | log4j.appender.CONSOLE = org.apache.log4j.ConsoleAppender 7 | log4j.appender.CONSOLE.Target = System.out 8 | log4j.appender.CONSOLE.layout = org.apache.log4j.PatternLayout 9 | log4j.appender.CONSOLE.layout.ConversionPattern=%r %d{yyyy-MM-dd HH:mm:ss} %c %p -%m%n 10 | 11 | #\u5e94\u7528\u4e8e\u6587\u4ef6 12 | log4j.appender.FILE = org.apache.log4j.FileAppender 13 | log4j.appender.FILE.File = docviewer.log 14 | log4j.appender.FILE.Append = false 15 | log4j.appender.FILE.layout = org.apache.log4j.PatternLayout 16 | log4j.appender.FILE.layout.ConversionPattern=%r %d{yyyy-MM-dd HH:mm:ss} %c %p -%m%n 17 | 18 | # \u5e94\u7528\u4e8e\u6587\u4ef6\u56de\u6eda 19 | log4j.appender.ROLLING_FILE = org.apache.log4j.RollingFileAppender 20 | log4j.appender.ROLLING_FILE.File = docviewer.log 21 | log4j.appender.ROLLING_FILE.Append = true 22 | log4j.appender.ROLLING_FILE.MaxFileSize = 10MB 23 | log4j.appender.ROLLING_FILE.MaxBackupIndex = 100 24 | log4j.appender.ROLLING_FILE.layout = org.apache.log4j.PatternLayout 25 | log4j.appender.ROLLING_FILE.layout.ConversionPattern=%r %d{yyyy-MM-dd HH:mm:ss} %c %p -%m%n 26 | -------------------------------------------------------------------------------- /docviewerflex/locale/hu_HU/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/hu_HU/FlexPaper.properties 2 | Print=Nyomtat\u00e1s 3 | FitWidth=Oldalsz\u00e9less\u00e9ghze igaz\u00edt 4 | FitPage=Lapsz\u00e9less\u00e9ghez igaz\u00edt 5 | Scale=Nagy\u00edt\u00e1s 6 | ThumbView=Miniat\u00fcr\u00f6k 7 | CurrentPage=Aktu\u00e1lis oldal 8 | Search=Keres\u00e9s 9 | NextPage=K\u00f6vetkez\u0151 oldal 10 | PreviousPage=El\u0151z\u0151 oldal 11 | Fullscreen=Teljes k\u00e9perny\u0151 12 | About=N\u00e9vjegy 13 | Finishedsearching=A dokumentum keres\u00e9se befejez\u0151d\u00f6tt. Nincs t\u00f6bb tal\u00e1lat 14 | Searchfinished=A keres\u00e9s befejez\u0151d\u00f6tt 15 | Selectprintrange=A nyomat\u00e1si tartom\u00e1ny kiv\u00e1laszt\u00e1sa 16 | All=\u00d6sszes 17 | CurrentPage=Aktu\u00e1lis oldal 18 | Pages=Oldalak: 19 | Enterpagenumbers=\u00cdrja be az oldalakat \u00e9s/vagy a tartom\u00e1nyokat vessz\u0151vel elv\u00e1lasztva. P\u00e9ld\u00e1ul: 1,3,5-12 20 | Cancel=M\u00e9gse 21 | IncorrectRange=Rossz tartom\u00e1ny 22 | Incorrectrangespecified=Rossz tartom\u00e1nyt adott meg 23 | About=N\u00e9vjegy 24 | Developedby=Fejleszt\u0151 Devaldi. 25 | Formoreinformation=Tov\u00e1bbi inform\u00e1ci\u00f3k 26 | TwoPage=K\u00e9t oldal 27 | SinglePage=egyetlen oldalon -------------------------------------------------------------------------------- /docviewerflex/locale/zh_CN/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/zh_CN/FlexPaper.properties 2 | Print=\u6253\u5370 3 | FitWidth=\u9002\u5408\u5bbd\u5ea6 4 | FitPage=\u9002\u5408\u6574\u9875 5 | Scale=\u7f29\u653e 6 | ThumbView=\u7f29\u7565\u56fe 7 | CurrentPage=\u5f53\u524d\u9875 8 | Search=\u641c\u7d22 9 | NextPage=\u4e0b\u4e00\u9875 10 | PreviousPage=\u4e0a\u4e00\u9875 11 | Fullscreen=\u5168\u5c4f 12 | About=\u5173\u4e8e 13 | Finishedsearching=\u6587\u6863\u641c\u7d22\u5b8c\u6210.\u6ca1\u6709\u53d1\u73b0\u66f4\u591a \u7684\u5339\u914d. 14 | Searchfinished=\u641c\u7d22\u5b8c\u6210 15 | Selectprintrange=\u9009\u62e9\u6253\u5370\u8303\u56f4 16 | All=\u6240\u6709\u9875 17 | CurrentPage=\u5f53\u524d\u9875 18 | Pages=\u9875\u8303\u56f4: 19 | Enterpagenumbers=\u8f93 \u5165\u9875\u7801,\u7528\u9017\u53f7\u5206\u5272\u5404\u9875.\u4f8b\u5982 1,3,5-12 20 | Cancel=\u53d6\u6d88 21 | IncorrectRange=\u9875\u8303\u56f4\u8f93\u5165\u4e0d\u6b63\u786e 22 | Incorrectrangespecified=\u6ca1\u6709\u6309\u7167\u89c4\u5b9a\u8f93\u5165\u9875\u8303\u56f4 23 | About=\u5173\u4e8e 24 | Developedby=\u5f00\u53d1\u8005 Devaldi. 25 | Formoreinformation=\u9700\u8981\u4e86\u89e3\u66f4\u591a\u4fe1\u606f,\u8bf7\u53c2\u89c1 26 | TwoPage=\u7b2c\u4e8c\u9875 27 | SinglePage=\u5355\u9875 -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/ScaleChangedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class ScaleChangedEvent extends Event 24 | { 25 | public static const SCALE_CHANGED:String = "onScaleChanged"; 26 | public var scale:Number; 27 | 28 | public function ScaleChangedEvent(type:String,s:Number){ 29 | super(type); 30 | scale=s; 31 | } 32 | 33 | // Override the inherited clone() method. 34 | override public function clone():Event { 35 | return new ScaleChangedEvent(type, scale); 36 | } 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/de.js: -------------------------------------------------------------------------------- 1 | // German 2 | plupload.addI18n({ 3 | 'Select files' : 'Wählen Sie die Dateien:', 4 | 'Add files to the upload queue and click the start button.' : 'Dateien hinzufügen und danach auf \'Starten des Uploads\' klicken und die Datei hochzuladen.', 5 | 'Filename' : 'Dateiname', 6 | 'Status' : 'Status', 7 | 'Size' : 'Größe', 8 | 'Add files' : 'Hinzufügen von Dateien', 9 | 'Stop current upload' : 'Stop aktuellen Upload', 10 | 'Start uploading queue' : 'Starte Upload', 11 | 'Uploaded %d/%d files': '%d/%d Dateien sind Hochgeladen', 12 | 'N/A' : 'Nicht verfügbar', 13 | 'Drag files here.' : 'Ziehen Sie die Dateien hier hin', 14 | 'File extension error.': 'Dateiendungs Fehler.', 15 | 'File size error.': 'Dateigrößen Fehler.', 16 | 'Init error.': 'Initialisierungs Fehler.', 17 | 'HTTP Error.': 'HTTP Fehler.', 18 | 'Security error.': 'Sicherheits Fehler.', 19 | 'Generic error.': 'Generic Fehler.', 20 | 'IO error.': 'Ein/Ausgabe Fehler.', 21 | 'Stop Upload': 'Stoppen des Uploads.', 22 | 'Add Files': 'Dateien hinzufügen', 23 | 'Start Upload': 'Starten des Uploads.', 24 | '%d files queued': '%d Dateien in der Warteschlange.' 25 | }); -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/PageLoadedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | package com.devaldi.events 19 | { 20 | import flash.events.Event; 21 | 22 | public class PageLoadedEvent extends Event 23 | { 24 | public static const PAGE_LOADED:String = "onPageLoaded"; 25 | 26 | public var pageNumber:Number; 27 | 28 | public function PageLoadedEvent(type:String,p:Number){ 29 | super(type); 30 | pageNumber=p; 31 | } 32 | 33 | // Override the inherited clone() method. 34 | override public function clone():Event { 35 | return new PageLoadedEvent(type, pageNumber); 36 | } 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/PageLoadingEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | package com.devaldi.events 19 | { 20 | import flash.events.Event; 21 | 22 | public class PageLoadingEvent extends Event 23 | { 24 | public static const PAGE_LOADING:String = "onPageLoading"; 25 | 26 | public var pageNumber:Number; 27 | 28 | public function PageLoadingEvent(type:String,p:Number){ 29 | super(type); 30 | pageNumber=p; 31 | } 32 | 33 | // Override the inherited clone() method. 34 | override public function clone():Event { 35 | return new PageLoadingEvent(type, pageNumber); 36 | } 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/SwfLoadedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class SwfLoadedEvent extends Event 24 | { 25 | public static const SWFLOADED:String = "onSwfLoadedEvent"; 26 | public var swfObject:Object; 27 | 28 | public function SwfLoadedEvent(type:String,target:Object){ 29 | super(type); 30 | swfObject=target; 31 | } 32 | 33 | // Override the inherited clone() method. 34 | override public function clone():Event { 35 | return new SwfLoadedEvent(type, swfObject); 36 | } 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/SelectionCreatedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class SelectionCreatedEvent extends Event 24 | { 25 | public static const SELECTION_CREATED:String = "onSelectionCreated"; 26 | public var text:String; 27 | 28 | public function SelectionCreatedEvent(type:String,s:String){ 29 | super(type); 30 | text=s; 31 | } 32 | 33 | // Override the inherited clone() method. 34 | override public function clone():Event { 35 | return new SelectionCreatedEvent(type, text); 36 | } 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/CurrentPageChangedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class CurrentPageChangedEvent extends Event 24 | { 25 | public static const PAGE_CHANGED:String = "onCurrPageChanged"; 26 | public var pageNum:Number; 27 | 28 | public function CurrentPageChangedEvent(type:String,p:Number){ 29 | super(type); 30 | pageNum=p; 31 | } 32 | 33 | // Override the inherited clone() method. 34 | override public function clone():Event { 35 | return new CurrentPageChangedEvent(type, pageNum); 36 | } 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/io/UploaderFile.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.io; 2 | 3 | import java.io.File; 4 | import java.net.URI; 5 | 6 | /** 7 | * @author 张立鑫 IntelligentCode 8 | * @date: 12-1-21 9 | * @time: 下午9:00 10 | */ 11 | public class UploaderFile extends File { 12 | protected String uploadName; 13 | protected String id; 14 | 15 | public UploaderFile(String pathname, String uploadName, String id) { 16 | super(pathname); 17 | this.uploadName = uploadName; 18 | this.id = id; 19 | } 20 | 21 | public UploaderFile(String parent, String child, String uploadName, String id) { 22 | super(parent, child); 23 | this.uploadName = uploadName; 24 | this.id = id; 25 | } 26 | 27 | public UploaderFile(File parent, String child, String uploadName, String id) { 28 | super(parent, child); 29 | this.uploadName = uploadName; 30 | this.id = id; 31 | } 32 | 33 | public UploaderFile(URI uri, String uploadName, String id) { 34 | super(uri); 35 | this.uploadName = uploadName; 36 | this.id = id; 37 | } 38 | 39 | public String getUploadName() { 40 | return this.uploadName; 41 | } 42 | 43 | public String getId() { 44 | return this.id; 45 | } 46 | 47 | } 48 | -------------------------------------------------------------------------------- /docviewerflex/locale/cz_CS/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/cz_CS/FlexPaper.properties 2 | Print=Tisk 3 | FitWidth=P\u0159izp\u016fsobit na \u0161\u00ed\u0159ku 4 | FitPage=P\u0159izp\u016fsobit na str\u00e1nku 5 | Scale=Velikost 6 | ThumbView=Zobrazit n\u00e1hled 7 | CurrentPage=Aktu\u00e1ln\u00ed str\u00e1nka 8 | Search=Hledat 9 | NextPage=Dal\u0161\u00ed str\u00e1nka 10 | PreviousPage=P\u0159edchoz\u00ed str\u00e1nka 11 | Fullscreen=Cel\u00e1 obrazovka 12 | About=Informace 13 | Finishedsearching=Prohled\u00e1van\u00ed dokumentu bylo dokon\u010deno. Nebyly nalezeny \u017e\u00e1dn\u00e9 dal\u0161\u00ed hledan\u00e9 polo\u017eky 14 | Searchfinished=Vyhled\u00e1v\u00e1n\u00ed dokon\u010deno 15 | Selectprintrange=Zvolte rozsah tisku 16 | All=V\u0161e 17 | CurrentPage=Aktu\u00e1ln\u00ed str\u00e1nka 18 | Pages=Str\u00e1nky: 19 | Enterpagenumbers=Zadejte \u010d\u00edsla a/nebo rozsahy str\u00e1nek odd\u011blen\u00e9 \u010d\u00e1rkou. Nap\u0159\u00edklad 1,3,5-12 20 | Cancel=Storno 21 | IncorrectRange=Nespr\u00e1vn\u00fd rozsah 22 | Incorrectrangespecified=Byl zad\u00e1n nespr\u00e1vn\u00fd rozsah 23 | About=Informace 24 | Developedby=Vytvo\u0159eno Devaldi. 25 | Formoreinformation=Dal\u0161\u00ed informace najdete na adrese 26 | TwoPage=Dv\u011b str\u00e1nky 27 | SinglePage=Single Page -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/DocumentLoadedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class DocumentLoadedEvent extends Event 24 | { 25 | public static const DOCUMENT_LOADED:String = "onDocumentLoaded"; 26 | 27 | public var totalPages:Number; 28 | 29 | public function DocumentLoadedEvent(type:String,p:Number){ 30 | super(type); 31 | totalPages=p; 32 | } 33 | 34 | // Override the inherited clone() method. 35 | override public function clone():Event { 36 | return new DocumentLoadedEvent(type, totalPages); 37 | } 38 | 39 | } 40 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/IFlexPaperViewModePlugin.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls.flexpaper 2 | { 3 | import flash.display.DisplayObject; 4 | import flash.events.MouseEvent; 5 | 6 | import mx.core.UIComponent; 7 | 8 | public interface IFlexPaperViewModePlugin 9 | { 10 | function get Name():String; 11 | function get doZoom():Boolean; 12 | function get doFitHeight():Boolean; 13 | function get doFitWidth():Boolean; 14 | function get supportsTextSelect():Boolean; 15 | function initComponent(v:Viewer):Boolean; 16 | function initOnLoading():void; 17 | function setViewMode(s:String):void; 18 | function gotoPage(page:Number,adjGotoPage:int=0):void; 19 | function get currentPage():int; 20 | function renderPage(page:Number):void; 21 | function renderSelection(page:int,marker:ShapeMarker):void; 22 | function checkIsVisible(page:int):Boolean; 23 | function handleDoubleClick(event:MouseEvent):void; 24 | function handleMouseDown(event:MouseEvent):void; 25 | function get loaderListLength():int; 26 | function addChild(childindex:int,o:DisplayObject):void; 27 | function get SaveScale():Number; 28 | function set SaveScale(n:Number):void; 29 | function mvNext():void; 30 | function mvPrev():void; 31 | function renderMark(sm:UIComponent,pageIndex:int):void; 32 | } 33 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/ErrorLoadingPageEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | package com.devaldi.events 19 | { 20 | import flash.events.Event; 21 | 22 | public class ErrorLoadingPageEvent extends Event 23 | { 24 | public static const ERROR_LOADING_PAGE:String = "onErrorLoadingPage"; 25 | 26 | public var pageNumber:Number; 27 | 28 | public function ErrorLoadingPageEvent(type:String,p:Number){ 29 | super(type); 30 | pageNumber=p; 31 | } 32 | 33 | // Override the inherited clone() method. 34 | override public function clone():Event { 35 | return new ErrorLoadingPageEvent(type, pageNumber); 36 | } 37 | 38 | } 39 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/ViewModeChangedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class ViewModeChangedEvent extends Event 24 | { 25 | public static const VIEWMODE_CHANGED:String = "onViewModeChanged"; 26 | public var viewMode:String; 27 | 28 | public function ViewModeChangedEvent(type:String,viewmode:String) 29 | { 30 | super(type); 31 | viewMode = viewmode; 32 | } 33 | 34 | // Override the inherited clone() method. 35 | override public function clone():Event { 36 | return new ViewModeChangedEvent(type, viewMode); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/ExternalLinkClickedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class ExternalLinkClickedEvent extends Event 24 | { 25 | public var link:String; 26 | public static const EXTERNALLINK_CLICKED:String = "onExternalLinkClicked"; 27 | 28 | public function ExternalLinkClickedEvent(type:String,llink:String) 29 | { 30 | super(type); 31 | link=llink; 32 | } 33 | 34 | // Override the inherited clone() method. 35 | override public function clone():Event { 36 | return new ExternalLinkClickedEvent(type, link); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /docviewer/docviewer.iml: -------------------------------------------------------------------------------- 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 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/CursorModeChangedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import flash.events.Event; 22 | 23 | public class CursorModeChangedEvent extends Event 24 | { 25 | public static const CURSORMODE_CHANGED:String = "onCursorModeChanged"; 26 | public var cursorMode:String; 27 | 28 | public function CursorModeChangedEvent(type:String,cursormode:String) 29 | { 30 | super(type); 31 | cursorMode = cursormode; 32 | } 33 | 34 | // Override the inherited clone() method. 35 | override public function clone():Event { 36 | return new CursorModeChangedEvent(type, cursorMode); 37 | } 38 | } 39 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/events/FitModeChangedEvent.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.events 20 | { 21 | import com.devaldi.controls.flexpaper.FitModeEnum; 22 | 23 | import flash.events.Event; 24 | 25 | public class FitModeChangedEvent extends Event 26 | { 27 | public static const FITMODE_CHANGED:String = "onFitModeChanged"; 28 | public var fitMode:String; 29 | 30 | public function FitModeChangedEvent(type:String,fitmode:String) 31 | { 32 | super(type); 33 | fitMode = fitmode; 34 | } 35 | 36 | // Override the inherited clone() method. 37 | override public function clone():Event { 38 | return new FitModeChangedEvent(type, fitMode); 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/log4ic/streaming/EncryptedLoader.as: -------------------------------------------------------------------------------- 1 | /** 2 | * @author: 张立鑫 3 | * @version: 1 4 | */ 5 | package com.log4ic.streaming { 6 | import com.devaldi.streaming.DupLoader; 7 | import com.log4ic.utils.security.XXTEA; 8 | 9 | import flash.system.LoaderContext; 10 | 11 | import flash.utils.ByteArray; 12 | 13 | import mx.controls.Alert; 14 | 15 | [Event(name="onDocumentLoadedError", type="flash.events.ErrorEvent")] 16 | [Event(name="onLoadersLoaded", type="flash.events.Event")] 17 | [Event(name="onSwfLoaded", type="com.devaldi.events.SwfLoadedEvent")] 18 | 19 | public class EncryptedLoader extends DupLoader { 20 | private static var secretKey:ByteArray = null; 21 | private static var _secretKey:String = null; 22 | 23 | public static function set SecretKey(key:String):void{ 24 | if (key) { 25 | _secretKey = key; 26 | secretKey = new ByteArray(); 27 | secretKey.writeUTFBytes(key); 28 | } 29 | } 30 | 31 | public static function get SecretKey():String{ 32 | return _secretKey; 33 | } 34 | 35 | 36 | 37 | override public function loadBytes(bytes:ByteArray, context:LoaderContext = null):void { 38 | if (secretKey) { 39 | bytes = XXTEA.decrypt(bytes, secretKey); 40 | Alert.show(secretKey.toString()); 41 | } 42 | super.loadBytes(bytes, context); 43 | } 44 | } 45 | } 46 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/styles/default.css: -------------------------------------------------------------------------------- 1 | .toolbarBackground { 2 | backgroundImage: ClassReference("com.devaldi.skinning.GradientBackground"); 3 | backgroundSize: "100%"; 4 | fillColors: #e6e6e6, #fdfdfd; 5 | fillAlphas: 1, 1; 6 | borderColor: #8a8a8a; 7 | backgroundColor: #EDEDED; 8 | } 9 | 10 | .viewerBackground { 11 | backgroundImage: ClassReference("com.devaldi.skinning.GradientBackground"); 12 | backgroundSize: "100%"; 13 | fillColors: #aab3b3, #d5dddd; 14 | fillAlphas: 1, 1; 15 | borderColor: #8a8a8a; 16 | } 17 | 18 | .toolbttn{ 19 | skin: ClassReference("mx.skins.ProgrammaticSkin"); 20 | overSkin:ClassReference("mx.skins.halo.ButtonBarButtonSkin"); 21 | downSkin:ClassReference("mx.skins.halo.ButtonBarButtonSkin"); 22 | selectedUpSkin:ClassReference("mx.skins.RectangularBorder"); 23 | } 24 | 25 | .sliderbttn{ 26 | skin: ClassReference("mx.skins.ProgrammaticSkin"); 27 | overSkin:ClassReference("mx.skins.halo.SliderHighlightSkin"); 28 | downSkin:ClassReference("mx.skins.halo.SliderHighlightSkin"); 29 | } 30 | 31 | 32 | .gradientlines { 33 | spinner-type: gradientlines; 34 | spinner-color: #ffffff; 35 | spinner-highlight-color: #000000; 36 | } 37 | 38 | .circles { 39 | spinner-type: circles; 40 | } 41 | 42 | .lines { 43 | spinner-type: lines; 44 | spinner-highlight-color: #000000; 45 | spinner-color: #808080; 46 | } 47 | -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/convert/ConvertWorker.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.convert; 2 | 3 | import com.log4ic.utils.thread.IWorker; 4 | 5 | import java.io.File; 6 | import java.io.Serializable; 7 | 8 | /** 9 | * @author: 张立鑫 10 | * @version: 1 11 | * @date: 11-8-22 上午11:20 12 | */ 13 | public abstract class ConvertWorker implements IWorker, Serializable { 14 | 15 | private int id; 16 | 17 | public void setId(int id) { 18 | this.id = id; 19 | } 20 | 21 | public void setInFile(File inFile) { 22 | this.inFile = inFile; 23 | } 24 | 25 | public void setOutputPath(String outputPath) { 26 | this.outputPath = outputPath; 27 | } 28 | 29 | public String getOutputPath() { 30 | 31 | return outputPath; 32 | } 33 | 34 | public File getInFile() { 35 | 36 | return inFile; 37 | } 38 | 39 | 40 | private File inFile; 41 | 42 | private String outputPath; 43 | 44 | public ConvertWorker(int id) { 45 | this.id = id; 46 | } 47 | 48 | public ConvertWorker(int id, File inFile, String outputPath) { 49 | this.id = id; 50 | this.inFile = inFile; 51 | this.outputPath = outputPath; 52 | } 53 | 54 | public ConvertWorker(int id, File inFile) { 55 | this.id = id; 56 | this.inFile = inFile; 57 | 58 | } 59 | 60 | public int getId() { 61 | return this.id; 62 | } 63 | 64 | 65 | public abstract void run(); 66 | } 67 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/entity/DocumentRelation.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.entity; 2 | 3 | import com.log4ic.utils.dao.AbstractEntitySupport; 4 | 5 | import javax.annotation.Generated; 6 | import javax.persistence.*; 7 | import java.sql.Timestamp; 8 | import java.util.Date; 9 | 10 | /** 11 | * @author 张立鑫 IntelligentCode 12 | * @date: 12-1-23 13 | * @time: 上午2:55 14 | */ 15 | @Entity 16 | public class DocumentRelation extends AbstractEntitySupport { 17 | @Id 18 | @GeneratedValue(strategy = GenerationType.AUTO) 19 | @Column 20 | private int id; 21 | @Column(nullable = false) 22 | private String fileName; 23 | @Column(length = 2000, nullable = false) 24 | private String location; 25 | @Column(nullable = false) 26 | private Timestamp createDate; 27 | 28 | public int getId() { 29 | return id; 30 | } 31 | 32 | public void setId(int id) { 33 | this.id = id; 34 | } 35 | 36 | public String getFileName() { 37 | return fileName; 38 | } 39 | 40 | public void setFileName(String fileName) { 41 | this.fileName = fileName; 42 | } 43 | 44 | public String getLocation() { 45 | return location; 46 | } 47 | 48 | public void setLocation(String location) { 49 | this.location = location; 50 | } 51 | 52 | public Timestamp getCreateDate() { 53 | return createDate; 54 | } 55 | 56 | public void setCreateDate(Timestamp createDate) { 57 | this.createDate = createDate; 58 | } 59 | } 60 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/service/DocAttachmentService.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.service; 2 | 3 | import com.log4ic.dao.impl.DocumentRelationDao; 4 | import com.log4ic.entity.DocAttachment; 5 | import com.log4ic.entity.DocumentRelation; 6 | import com.log4ic.entity.IDocAttachment; 7 | import com.log4ic.enums.Permissions; 8 | import com.log4ic.services.IAttachmentService; 9 | 10 | import javax.naming.NamingException; 11 | import javax.servlet.http.HttpServletRequest; 12 | import java.io.File; 13 | import java.sql.SQLException; 14 | 15 | /** 16 | * @author: 张立鑫 17 | * @version: 1 18 | * @date: 11-10-12 下午7:08 19 | */ 20 | public class DocAttachmentService implements IAttachmentService { 21 | 22 | private DocumentRelationDao relationDao = new DocumentRelationDao(); 23 | 24 | public IDocAttachment getDocAttachmentById(int id) { 25 | //TODO 获取文档 26 | try { 27 | DocumentRelation relation = relationDao.getRelation(id); 28 | DocAttachment docAttachment = new DocAttachment(new File(relation.getLocation())); 29 | docAttachment.setName(relation.getFileName()); 30 | return docAttachment; 31 | } catch (NamingException e) { 32 | e.printStackTrace(); 33 | } catch (SQLException e) { 34 | e.printStackTrace(); 35 | } 36 | 37 | return null; 38 | } 39 | 40 | public Permissions getDocPermissionsById(int id, HttpServletRequest request) { 41 | //TODO 检查权限 42 | return Permissions.READ_AND_COPY; 43 | } 44 | 45 | } -------------------------------------------------------------------------------- /etc/xpdf-chinese-simplified/CMap/GBpc-EUC-UCS2: -------------------------------------------------------------------------------- 1 | %!PS-Adobe-3.0 Resource-CMap %%DocumentNeededResources: ProcSet (CIDInit) %%DocumentNeededResources: CMap (GBpc-EUC-UCS2C) %%IncludeResource: ProcSet (CIDInit) %%IncludeResource: CMap (GBpc-EUC-UCS2C) %%BeginResource: CMap (GBpc-EUC-UCS2) %%Title: (GBpc-EUC-UCS2) %%Version: 4.002 %%Copyright: ----------------------------------------------------------- %%Copyright: Copyright 1990-1997 Adobe Systems Incorporated. %%Copyright: All Rights Reserved. %%Copyright: %%Copyright: Patents Pending %%Copyright: %%Copyright: NOTICE: All information contained herein is the property %%Copyright: of Adobe Systems Incorporated. %%Copyright: %%Copyright: Permission is granted for redistribution of this file %%Copyright: provided this copyright notice is maintained intact and %%Copyright: that the contents of this file are not altered in any %%Copyright: way from its original form. %%Copyright: %%Copyright: PostScript and Display PostScript are trademarks of %%Copyright: Adobe Systems Incorporated which may be registered in %%Copyright: certain jurisdictions. %%Copyright: ----------------------------------------------------------- %%EndComments /CIDInit /ProcSet findresource begin 12 dict begin begincmap /GBpc-EUC-UCS2C usecmap /CIDSystemInfo 3 dict dup begin /Registry (Adobe) def /Ordering (GBpc_EUC_UCS2) def /Supplement 2 def end def /CMapName /GBpc-EUC-UCS2 def /CMapVersion 4.002 def /CMapType 1 def /WMode 0 def 1 beginbfrange <006e0300> endbfrange endcmap CMapName currentdict /CMap defineresource pop end end %%EndResource %%EOF -------------------------------------------------------------------------------- /docviewerapi/src/com/log4ic/utils/convert/OfficeConvertWorker.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.convert; 2 | 3 | import com.log4ic.DocViewer; 4 | import com.log4ic.utils.convert.office.OfficeConverter; 5 | 6 | import java.io.File; 7 | import java.io.IOException; 8 | 9 | /** 10 | * @author: 张立鑫 11 | * @version: 1 12 | * @date: 11-8-22 上午11:20 13 | */ 14 | public class OfficeConvertWorker extends ConvertWorker { 15 | 16 | boolean splitePage = true; 17 | 18 | public OfficeConvertWorker(int id, boolean splitPage) { 19 | super(id); 20 | this.splitePage = splitPage; 21 | } 22 | 23 | public OfficeConvertWorker(int id, File inFile, String outputPath, boolean splitPage) { 24 | super(id, inFile, outputPath); 25 | this.splitePage = splitPage; 26 | } 27 | 28 | public OfficeConvertWorker(int id, File inFile, boolean splitPage) { 29 | super(id, inFile); 30 | this.splitePage = splitPage; 31 | } 32 | 33 | @Override 34 | public void run() { 35 | File in = this.getInFile(); 36 | String out = this.getOutputPath(); 37 | File dir = DocViewerConverter.deploy(in, out); 38 | OfficeConverter converter = new OfficeConverter(); 39 | try { 40 | in = converter.toPDF(in, dir.getPath()); 41 | DocViewer.addConvertWorker(new PDFConvertWorker(this.getId(), in, out, splitePage)); 42 | } catch (IOException e) { 43 | e.printStackTrace(); 44 | } catch (Exception e) { 45 | e.printStackTrace(); 46 | } 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/streaming/IGenericDocument.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | package com.devaldi.streaming 19 | { 20 | import flash.display.DisplayObject; 21 | import flash.display.LoaderInfo; 22 | import flash.display.MovieClip; 23 | import flash.text.TextSnapshot; 24 | 25 | public interface IGenericDocument 26 | { 27 | function gotoAndStop(pagNumber:int):void; 28 | function stop():void; 29 | function getDocument():DisplayObject; 30 | function get parent():DisplayObject; 31 | function get totalFrames():int; 32 | function get framesLoaded():int; 33 | function get textSnapshot():TextSnapshot; 34 | function set alpha(value:Number):void; 35 | function get currentFrame():int; 36 | function get height():Number; 37 | function get width():Number; 38 | function get loaderInfo():LoaderInfo; 39 | function set scaleX(n:Number):void; 40 | function set scaleY(n:Number):void; 41 | } 42 | } -------------------------------------------------------------------------------- /docviewer/web/documents.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.log4ic.dao.impl.DocumentRelationDao" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="java.util.Map" %> 4 | <%@ page import="java.sql.ResultSet" %> 5 | <%@ page import="com.log4ic.entity.DocumentRelation" %> 6 | <%@ page import="java.text.SimpleDateFormat" %> 7 | <%-- 8 | Created by IntelliJ IDEA. 9 | User: icode 10 | Date: 12-1-23 11 | Time: 上午12:44 12 | To change this template use File | Settings | File Templates. 13 | --%> 14 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 15 | 16 | 17 | 所有文档 18 | 32 | 33 | 34 |
    35 | <% 36 | DocumentRelationDao relationDao = new DocumentRelationDao(); 37 | List documentRelationList = relationDao.getAllRelation(); 38 | SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); 39 | for (DocumentRelation relation : documentRelationList) { 40 | %> 41 |
  1. <%=relation.getFileName()%> 42 | 创建时间:<%=sdf.format(relation.getCreateDate())%>
  2. 43 | <%}%> 44 |
45 | 48 | 49 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/io/scanner/filter/ClassNameScannerFilter.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.io.scanner.filter; 2 | 3 | import com.log4ic.utils.io.scanner.FileScanner; 4 | import javolution.util.FastList; 5 | 6 | import java.net.URL; 7 | import java.util.List; 8 | import java.util.regex.Pattern; 9 | 10 | /** 11 | * @author 张立鑫 IntelligentCode 12 | * @date: 12-1-28 13 | * @time: 上午12:59 14 | */ 15 | public class ClassNameScannerFilter implements IScannerFilter { 16 | 17 | List classFilters = new FastList(); 18 | 19 | public ClassNameScannerFilter(List classFilters) { 20 | this.classFilters = classFilters; 21 | } 22 | 23 | /** 24 | * 根据过滤规则判断类名 25 | * 26 | * @param url 27 | * @return 28 | */ 29 | public boolean filter(String urlStr, URL url, ClassLoader classLoader) { 30 | String fileName = url.getFile(); 31 | if (!fileName.endsWith(".class")) { 32 | return false; 33 | } 34 | if (null == this.classFilters || this.classFilters.isEmpty()) { 35 | return true; 36 | } 37 | String tmpName = fileName.substring(fileName.lastIndexOf("/") + 1, fileName.length() - 6); 38 | boolean flag = false; 39 | for (String str : classFilters) { 40 | String tmpreg = "^" + str.replace("*", ".*") + "$"; 41 | Pattern p = Pattern.compile(tmpreg); 42 | if (p.matcher(tmpName).find()) { 43 | flag = true; 44 | break; 45 | } 46 | } 47 | return flag; 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/ja.js: -------------------------------------------------------------------------------- 1 | // Japanese 2 | plupload.addI18n({ 3 | 'Select files' : 'ファイル選択', 4 | 'Add files to the upload queue and click the start button.' : 'ファイルをアップロードキューに追加してスタートボタンをクリックしてください', 5 | 'Filename' : 'ファイル名', 6 | 'Status' : 'ステータス', 7 | 'Size' : 'サイズ', 8 | 'Add Files' : 'ファイルを追加', 9 | 'Stop Upload' : 'アップロード停止', 10 | 'Start Upload' : 'アップロード', 11 | 'Add files' : 'ファイルを追加', 12 | 'Add files.' : 'ファイルを追加', 13 | 'Stop current upload' : '現在のアップロードを停止', 14 | 'Start uploading queue' : 'アップロード', 15 | 'Stop upload' : 'アップロード停止', 16 | 'Start upload' : 'アップロード', 17 | 'Uploaded %d/%d files': 'アップロード中 %d/%d ファイル', 18 | 'N/A' : 'N/A', 19 | 'Drag files here.' : 'ここにファイルをドラッグ', 20 | 'File extension error.': 'ファイル拡張子エラー', 21 | 'File size error.': 'ファイルサイズエラー', 22 | 'File count error.': 'ファイル数エラー', 23 | 'Init error.': 'イニシャライズエラー', 24 | 'HTTP Error.': 'HTTP エラー', 25 | 'Security error.': 'セキュリティエラー', 26 | 'Generic error.': 'エラー', 27 | 'IO error.': 'IO エラー', 28 | 'File: %s': 'ファイル: %s', 29 | 'Close': '閉じる', 30 | '%d files queued': '%d ファイルが追加されました', 31 | 'Using runtime: ': 'モード: ', 32 | 'File: %f, size: %s, max file size: %m': 'ファイル: %f, サイズ: %s, 最大ファイルサイズ: %m', 33 | 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'アップロード可能なファイル数は %d です。余分なファイルは削除されました', 34 | 'Upload URL might be wrong or doesn\'t exist': 'アップロード先の URL が存在しません', 35 | 'Error: File too large: ': 'エラー: サイズが大きすぎます: ', 36 | 'Error: Invalid file extension: ': 'エラー: 拡張子が許可されていません: ' 37 | }); 38 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/io/FileUploaderFilter.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.io; 2 | 3 | import org.apache.commons.lang.StringUtils; 4 | 5 | import javax.servlet.*; 6 | import java.io.File; 7 | import java.io.IOException; 8 | 9 | /** 10 | * @author 张立鑫 IntelligentCode 11 | * @date: 12-1-21 12 | * @time: 下午9:11 13 | */ 14 | public class FileUploaderFilter implements Filter { 15 | 16 | public void init(FilterConfig filterConfig) throws ServletException { 17 | String tempDir = filterConfig.getInitParameter("tempDir"); 18 | if (StringUtils.isBlank(tempDir)) { 19 | tempDir = this.getClass().getResource("/").getFile(); 20 | tempDir += "uploader" + File.separator + "tempDir"; 21 | } else { 22 | 23 | } 24 | Uploader.setTempDir(tempDir); 25 | } 26 | 27 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { 28 | 29 | String uploaderId = request.getParameter("uploader"); 30 | 31 | if (StringUtils.isBlank(uploaderId)) { 32 | filterChain.doFilter(request, response); 33 | return; 34 | } 35 | 36 | String[] ids = request.getParameterValues(uploaderId); 37 | 38 | if (ids == null) { 39 | filterChain.doFilter(request, response); 40 | return; 41 | } 42 | 43 | Uploader.addAll(Uploader.parseRequest(request)); 44 | 45 | filterChain.doFilter(request, response); 46 | Uploader.removeAll(); 47 | } 48 | 49 | public void destroy() { 50 | Uploader.removeAll(); 51 | } 52 | } 53 | 54 | -------------------------------------------------------------------------------- /.idea/artifacts/docviewer.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | $PROJECT_DIR$/out/artifacts/docviewer 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 | -------------------------------------------------------------------------------- /docviewerflex/docviewerflex.iml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 15 | 16 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/streaming/IDocumentLoader.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | package com.devaldi.streaming 19 | { 20 | import flash.display.DisplayObject; 21 | import flash.display.Loader; 22 | import flash.events.IEventDispatcher; 23 | import flash.net.URLRequest; 24 | import flash.net.URLStream; 25 | import flash.system.LoaderContext; 26 | import flash.utils.ByteArray; 27 | 28 | public interface IDocumentLoader extends IEventDispatcher 29 | { 30 | function get DocumentContainer():DisplayObject; 31 | function get LoaderList():Array; 32 | function set LoaderList(v:Array):void; 33 | function postProcessBytes(b:ByteArray):void; 34 | function load(request:URLRequest, loaderCtx:LoaderContext):void; 35 | function resetURLStream():void; 36 | function signFileHeader(bytes:ByteArray, ldr:Loader=null):void; 37 | function get InputBytes():ByteArray; 38 | function set InputBytes(b:ByteArray):void; 39 | function get Resigned():Boolean; 40 | function get stream():URLStream; 41 | function get PagesSplit():Boolean; 42 | function set PagesSplit(b:Boolean):void; 43 | } 44 | } -------------------------------------------------------------------------------- /etc/xpdf-chinese-simplified/README: -------------------------------------------------------------------------------- 1 | Xpdf: Chinese Simplified support package 2 | ======================================== 3 | 4 | Xpdf project: http://www.foolabs.com/xpdf/ 5 | 2011-jun-29 6 | 7 | If this package includes CMap files, they contain their own copyright 8 | notices and distribution conditions. All other files in the package 9 | are Copyright 2002-2004 Glyph & Cog, LLC, and are licensed under the 10 | GNU General Public License (GPL), version 2. 11 | 12 | This package provides support files needed to use the Xpdf tools with 13 | Chinese (Simplified) PDF files. 14 | 15 | Contents: 16 | - Adobe-GB1 character collection support 17 | - ISO-2022-CN encoding 18 | - EUC-CN encoding 19 | - GBK encoding 20 | 21 | Place all of these files in a directory, typically: 22 | 23 | Unix - /usr/local/share/xpdf/chinese-simplified 24 | Win32 - C:\Program Files\xpdf\chinese-simplified 25 | 26 | Add the contents of the "add-to-xpdfrc" file to your system-wide 27 | xpdfrc config file, which is typically: 28 | 29 | Unix - /usr/local/etc/xpdfrc 30 | Win32 - C:\Program Files\xpdf\xpdfrc 31 | 32 | Alternatively, on Unix systems you can add these lines to your 33 | personal xpdfrc file in $HOME/.xpdfrc. 34 | 35 | Make sure to edit the added lines to use the actual directory where 36 | the files were installed. 37 | 38 | To display PDF files that refer to non-embedded Chinese fonts, you 39 | will need to install a Chinese font. Free TrueType fonts are 40 | available: 41 | 42 | http://ftp.gnu.org/gnu/non-gnu/chinese-fonts-truetype/gkai00mp.ttf.gz 43 | http://ftp.gnu.org/gnu/non-gnu/chinese-fonts-truetype/gbsn00lp.ttf.gz 44 | 45 | After installing a Chinese font, add an appropriate "displayCIDFontTT" 46 | line to your xpdfrc file (see the sample in "add-to-xpdfrc"). 47 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/fi.js: -------------------------------------------------------------------------------- 1 | // .fi file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Valitse tiedostoja', 4 | 'Add files to the upload queue and click the start button.' : 'Lisää tiedostoja latausjonoon ja klikkaa aloita-nappia.', 5 | 'Filename' : 'Tiedostonimi', 6 | 'Status' : 'Tila', 7 | 'Size' : 'Koko', 8 | 'Add files' : 'Lisää tiedostoja', 9 | 'Stop current upload' : 'Pysäytä nykyinen lataus', 10 | 'Start uploading queue' : 'Aloita jonon lataus', 11 | 'Drag files here.' : 'Raahaa tiedostot tänne.', 12 | 'Start upload' : 'Aloita lataus', 13 | 'Uploaded %d/%d files': 'Ladattu %d/%d tiedostoa', 14 | 'Stop upload': 'Pysäytä lataus', 15 | 'Start upload': 'Aloita lataus', 16 | '%d files queued': '%d tiedostoa jonossa', 17 | 'File: %s': 'Tiedosto: %s', 18 | 'Close': 'Sulje', 19 | 'Using runtime: ': 'Käytetään ajonaikaista: ', 20 | 'File: %f, size: %s, max file size: %m': 'Tiedosto: %f, koko: %s, maksimi tiedostokoko: %m', 21 | 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Latauselementti sallii ladata vain %d tiedosto(a) kerrallaan. Ylimääräiset tiedostot ohitettiin.', 22 | 'Upload URL might be wrong or doesn\'t exist': 'Lataus URL saattaa olla väärin tai ei ole olemassa', 23 | 'Error: File too large: ': 'Virhe: Tiedosto liian suuri: ', 24 | 'Error: Invalid file extension: ': 'Virhe: Kelpaamaton tiedostopääte: ', 25 | 'File extension error.': 'Tiedostopäätevirhe.', 26 | 'File size error.': 'Tiedostokokovirhe.', 27 | 'File count error.': 'Tiedostolaskentavirhe.', 28 | 'Init error.': 'Init virhe.', 29 | 'HTTP Error.': 'HTTP virhe.', 30 | 'Security error.': 'Tietoturvavirhe.', 31 | 'Generic error.': 'Yleinen virhe.', 32 | 'IO error.': 'I/O virhe.' 33 | }); -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/dao/DocViewerJdbcSupport.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.dao; 2 | 3 | import javax.naming.NamingException; 4 | import javax.sql.DataSource; 5 | import java.sql.Connection; 6 | import java.sql.ResultSet; 7 | import java.sql.SQLException; 8 | import java.util.Map; 9 | 10 | /** 11 | * @author 张立鑫 IntelligentCode 12 | * @date: 12-1-23 13 | * @time: 上午2:48 14 | */ 15 | public abstract class DocViewerJdbcSupport extends AbstractJdbcSupport { 16 | private static final String DEFAULT_DATA_SOURCE = "docviewerDB"; 17 | 18 | protected DataSource getDocviewerDataSource() throws NamingException { 19 | return super.getDataSource(DEFAULT_DATA_SOURCE); 20 | } 21 | 22 | protected Connection getDocviewerConnection() throws NamingException, SQLException { 23 | return super.getConnection(DEFAULT_DATA_SOURCE); 24 | } 25 | 26 | protected int executeUpdate(String sql, Map params) throws SQLException, NamingException { 27 | return super.executeUpdate(DEFAULT_DATA_SOURCE, sql, params); 28 | } 29 | 30 | protected int executeUpdate(String sql) throws SQLException, NamingException { 31 | return super.executeUpdate(DEFAULT_DATA_SOURCE, sql, null); 32 | } 33 | 34 | protected boolean execute(String sql) throws SQLException, NamingException { 35 | return super.execute(DEFAULT_DATA_SOURCE, sql, null); 36 | } 37 | 38 | protected boolean execute(String sql, Map params) throws SQLException, NamingException { 39 | return super.execute(DEFAULT_DATA_SOURCE, sql, params); 40 | } 41 | 42 | public boolean hasTable() { 43 | return super.hasTable(DEFAULT_DATA_SOURCE); 44 | } 45 | 46 | 47 | public boolean createTable() throws NamingException, SQLException { 48 | return super.createTable(DEFAULT_DATA_SOURCE); 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/pt-br.js: -------------------------------------------------------------------------------- 1 | // Brazilian Portuguese 2 | plupload.addI18n({ 3 | 'Select files' : 'Escolha os arquivos', 4 | 'Add files to the upload queue and click the start button.' : 'Adicione os arquivos abaixo e clique no botão "Iniciar o envio".', 5 | 'Filename' : 'Nome do arquivo', 6 | 'Status' : 'Status', 7 | 'Size' : 'Tamanho', 8 | 'Add Files' : 'Adicionar arquivo(s)', 9 | 'Stop Upload' : 'Parar o envio', 10 | 'Start Upload' : 'Iniciar o envio', 11 | 'Add files' : 'Adicionar arquivo(s)', 12 | 'Add files.' : 'Adicionar arquivo(s)', 13 | 'Stop upload' : 'Parar o envio', 14 | 'Start upload' : 'Iniciar o envio', 15 | 'Uploaded %d/%d files': 'Enviado(s) %d/%d arquivo(s)', 16 | 'N/A' : 'N/D', 17 | 'Drag files here.' : 'Arraste os arquivos pra cá', 18 | 'File extension error.': 'Tipo de arquivo não permitido.', 19 | 'File size error.': 'Tamanho de arquivo não permitido.', 20 | 'File count error.': 'Erro na contagem dos arquivos', 21 | 'Init error.': 'Erro inicializando.', 22 | 'HTTP Error.': 'Erro HTTP.', 23 | 'Security error.': 'Erro de segurança.', 24 | 'Generic error.': 'Erro genérico.', 25 | 'IO error.': 'Erro de E/S.', 26 | 'File: %s': 'Arquivo: %s', 27 | 'Close': 'Fechar', 28 | '%d files queued': '%d arquivo(s)', 29 | 'Using runtime: ': 'Usando: ', 30 | 'File: %f, size: %s, max file size: %m': 'Arquivo: %f, tamanho: %s, máximo: %m', 31 | 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Só são aceitos %d arquivos por vez. O que passou disso foi descartado.', 32 | 'Upload URL might be wrong or doesn\'t exist': 'URL de envio está errada ou não existe', 33 | 'Error: File too large: ': 'Erro: Arquivo muito grande: ', 34 | 'Error: Invalid file extension: ': 'Erro: Tipo de arquivo não permitido: ' 35 | }); 36 | -------------------------------------------------------------------------------- /docviewerflex/src/caurina/transitions/SpecialProperty.as: -------------------------------------------------------------------------------- 1 | package caurina.transitions { 2 | 3 | /** 4 | * SpecialProperty 5 | * A kind of a getter/setter for special properties 6 | * 7 | * @author Zeh Fernando 8 | * @version 1.0.0 9 | * @private 10 | */ 11 | 12 | public class SpecialProperty { 13 | 14 | public var getValue:Function; // (p_obj:Object, p_parameters:Array, p_extra:Object): Number 15 | public var setValue:Function; // (p_obj:Object, p_value:Number, p_parameters:Array, p_extra:Object): Void 16 | public var parameters:Array; 17 | public var preProcess:Function; // (p_obj:Object, p_parameters:Array, p_originalValueComplete:Object, p_extra:Object): Number 18 | 19 | /** 20 | * Builds a new special property object. 21 | * 22 | * @param p_getFunction Function Reference to the function used to get the special property value 23 | * @param p_setFunction Function Reference to the function used to set the special property value 24 | */ 25 | public function SpecialProperty (p_getFunction:Function, p_setFunction:Function, p_parameters:Array = null, p_preProcessFunction:Function = null) { 26 | getValue = p_getFunction; 27 | setValue = p_setFunction; 28 | parameters = p_parameters; 29 | preProcess = p_preProcessFunction; 30 | } 31 | 32 | /** 33 | * Converts the instance to a string that can be used when trace()ing the object 34 | */ 35 | public function toString():String { 36 | var value:String = ""; 37 | value += "[SpecialProperty "; 38 | value += "getValue:"+String(getValue); 39 | value += ", "; 40 | value += "setValue:"+String(setValue); 41 | value += ", "; 42 | value += "parameters:"+String(parameters); 43 | value += ", "; 44 | value += "preProcess:"+String(preProcess); 45 | value += "]"; 46 | return value; 47 | } 48 | } 49 | } 50 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/js/i18n/lv.js: -------------------------------------------------------------------------------- 1 | // .lv file like language pack 2 | plupload.addI18n({ 3 | 'Select files' : 'Izvēlieties failus', 4 | 'Add files to the upload queue and click the start button.' : 'Pieveinojiet failus rindai un klikšķiniet uz "Sākt augšupielādi" pogas.', 5 | 'Filename' : 'Faila nosaukums', 6 | 'Status' : 'Statuss', 7 | 'Size' : 'Izmērs', 8 | 'Add files' : 'Pievienot failus', 9 | 'Stop current upload' : 'Apturēt pašreizējo augšupielādi', 10 | 'Start uploading queue' : 'Sākt augšupielādi', 11 | 'Drag files here.' : 'Ievelciet failus šeit', 12 | 'Start upload' : 'Sākt augšupielādi', 13 | 'Uploaded %d/%d files': 'Augšupielādēti %d/%d faili', 14 | 'Stop upload': 'Pārtraukt augšupielādi', 15 | 'Start upload': 'Sākt augšupielādi', 16 | '%d files queued': '%d faili pievienoti rindai', 17 | 'File: %s': 'Fails: %s', 18 | 'Close': 'Aizvērt', 19 | 'Using runtime: ': 'Lieto saskarni: ', 20 | 'File: %f, size: %s, max file size: %m': 'Fails: %f, izmērs: %s, maksimālais faila izmērs: %m', 21 | 'Upload element accepts only %d file(s) at a time. Extra files were stripped.': 'Iespējams ielādēt tikai %d failus vienā reizē. Atlikušie faili netika pievienoti', 22 | 'Upload URL might be wrong or doesn\'t exist': 'Augšupielādes URL varētu būt nepareizs vai neeksistē', 23 | 'Error: File too large: ': 'Kļūda: Fails pārāk liels: ', 24 | 'Error: Invalid file extension: ': 'Kļūda: Nekorekts faila paplašinājums:', 25 | 'File extension error.': 'Faila paplašinājuma kļūda.', 26 | 'File size error.': 'Faila izmēra kļūda.', 27 | 'File count error.': 'Failu skaita kļūda', 28 | 'Init error.': 'Inicializācijas kļūda.', 29 | 'HTTP Error.': 'HTTP kļūda.', 30 | 'Security error.': 'Drošības kļūda.', 31 | 'Generic error.': 'Vispārēja rakstura kļūda.', 32 | 'IO error.': 'Ievades/Izvades kļūda.' 33 | }); -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/support/scanner/filter/AnnotationFilter.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.support.scanner.filter; 2 | 3 | import com.log4ic.utils.io.scanner.FileScanner; 4 | import com.log4ic.utils.io.scanner.filter.IScannerFilter; 5 | import javolution.util.FastList; 6 | import org.apache.commons.logging.Log; 7 | import org.apache.commons.logging.LogFactory; 8 | import org.apache.log4j.Logger; 9 | 10 | import javax.persistence.Entity; 11 | import java.lang.annotation.Annotation; 12 | import java.net.URL; 13 | import java.util.List; 14 | 15 | /** 16 | * @author 张立鑫 IntelligentCode 17 | * @date: 12-1-28 18 | * @time: 上午3:26 19 | */ 20 | public class AnnotationFilter implements IScannerFilter { 21 | 22 | private static final Log LOGGER = LogFactory.getLog(AnnotationFilter.class); 23 | 24 | private List classList = new FastList(); 25 | 26 | public boolean filter(String urlStr, URL url, ClassLoader classLoader) { 27 | String classPathStr = urlStr.replace("/", "."); 28 | classPathStr = classPathStr.substring(0, classPathStr.length() - 6); 29 | try { 30 | Class clazz = classLoader.loadClass(classPathStr); 31 | if (clazz.isAnnotationPresent(Entity.class)) { 32 | classList.add(clazz); 33 | return true; 34 | } else { 35 | return false; 36 | } 37 | } catch (ClassNotFoundException e) { 38 | LOGGER.error(e); 39 | } 40 | return false; 41 | } 42 | 43 | public List getClassList() { 44 | return classList; 45 | } 46 | 47 | public static void main(String[] args) { 48 | FileScanner fileScanner = new FileScanner(new AnnotationFilter()); 49 | List list = fileScanner.find("com.log4ic.entity"); 50 | for (URL url : list) { 51 | System.out.println(url.getPath()); 52 | } 53 | } 54 | } 55 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/web/filter/CharacterEncodingFilter.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.web.filter; 2 | 3 | import org.apache.commons.lang.ClassUtils; 4 | import org.apache.commons.lang.StringUtils; 5 | 6 | import javax.servlet.*; 7 | import javax.servlet.http.HttpServletResponse; 8 | import java.io.IOException; 9 | 10 | /** 11 | * @author 张立鑫 IntelligentCode 12 | * @date: 12-1-28 13 | * @time: 下午10:31 14 | */ 15 | public class CharacterEncodingFilter implements Filter { 16 | private static boolean responseSetCharacterEncodingAvailable = false; 17 | 18 | static { 19 | try { 20 | responseSetCharacterEncodingAvailable = ClassUtils.getPublicMethod( 21 | HttpServletResponse.class, "setCharacterEncoding", new Class[]{String.class}) != null; 22 | } catch (NoSuchMethodException e) { 23 | e.printStackTrace(); 24 | } 25 | } 26 | 27 | private boolean forceEncoding; 28 | private String encoding; 29 | 30 | public void init(FilterConfig filterConfig) throws ServletException { 31 | this.encoding = filterConfig.getInitParameter("encoding"); 32 | String fe = filterConfig.getInitParameter("forceEncoding"); 33 | if (StringUtils.isNotBlank(fe)) { 34 | this.forceEncoding = Boolean.parseBoolean(fe); 35 | } 36 | } 37 | 38 | public void doFilter(ServletRequest request, ServletResponse response, FilterChain filterChain) throws IOException, ServletException { 39 | if (this.encoding != null && (this.forceEncoding || request.getCharacterEncoding() == null)) { 40 | request.setCharacterEncoding(this.encoding); 41 | if (this.forceEncoding && responseSetCharacterEncodingAvailable) { 42 | response.setCharacterEncoding(this.encoding); 43 | } 44 | } 45 | filterChain.doFilter(request, response); 46 | } 47 | 48 | public void destroy() { 49 | } 50 | } 51 | -------------------------------------------------------------------------------- /docviewer/web/upload.jsp: -------------------------------------------------------------------------------- 1 | <%@ page import="com.log4ic.DocViewer" %> 2 | <%@ page import="java.util.List" %> 3 | <%@ page import="org.artofsolving.jodconverter.document.DocumentFormat" %> 4 | <%@ page import="java.util.Locale" %> 5 | 6 | <%-- 7 | @author: 张立鑫 8 | @version: 11-10-23 下午8:10 9 | --%> 10 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 11 | 12 | 13 | 上传文档 14 | 15 | 16 | 17 | 18 | <%if(!new Locale("en").equals(request.getLocale())){%> 19 | 20 | <%}%> 21 | <% 22 | List allSupport = DocViewer.getAllSupport(); 23 | StringBuffer allSupportStr = new StringBuffer(); 24 | for (DocumentFormat format : allSupport) { 25 | allSupportStr.append(format.getExtension()); 26 | allSupportStr.append(","); 27 | } 28 | allSupportStr.deleteCharAt(allSupportStr.length() - 1); 29 | %> 30 | 49 | 50 | 51 | 52 |
53 |
54 | 55 |
56 | 57 | -------------------------------------------------------------------------------- /docviewer/web/docviewer.jsp: -------------------------------------------------------------------------------- 1 | <%@ page contentType="text/html;charset=UTF-8" language="java" %> 2 | 3 | 4 | 5 | 6 | 文档查看器 7 | 8 | 9 | 10 | 30 | 42 | 43 | 44 | 45 | 46 | 47 | 48 | 49 | 50 | 51 | 52 | 53 | 54 | 55 | 56 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/skinning/GradientHSlider.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.skinning 20 | { 21 | import flash.events.Event; 22 | import flash.filters.*; 23 | 24 | import mx.controls.HSlider; 25 | import mx.events.*; 26 | 27 | public class GradientHSlider extends mx.controls.HSlider 28 | { 29 | public function GradientHSlider() 30 | { 31 | super(); 32 | } 33 | 34 | override public function set enabled(value:Boolean):void{ 35 | super.enabled = value; 36 | enableHandler(null); 37 | } 38 | 39 | private function enableHandler(event:Event):void 40 | { 41 | // define the color filter 42 | var matrix:Array = new Array(); 43 | 44 | if (!enabled) 45 | { 46 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // red 47 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // green 48 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // blue 49 | matrix = matrix.concat([0, 0, 0, 0.3, 0]); // alpha 50 | } 51 | else 52 | { 53 | matrix = matrix.concat([1, 0, 0, 0, 0]); // red 54 | matrix = matrix.concat([0, 1, 0, 0, 0]); // green 55 | matrix = matrix.concat([0, 0, 1, 0, 0]); // blue 56 | matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha 57 | } 58 | 59 | var filter:BitmapFilter = new ColorMatrixFilter(matrix); 60 | 61 | // apply color filter 62 | filters = new Array(filter) ; 63 | } 64 | } 65 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/skinning/GradientTextInput.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.skinning 20 | { 21 | import flash.events.Event; 22 | import flash.filters.*; 23 | 24 | import mx.controls.TextInput; 25 | import mx.events.*; 26 | 27 | public class GradientTextInput extends mx.controls.TextInput 28 | { 29 | public function GradientTextInput() 30 | { 31 | super(); 32 | } 33 | 34 | override public function set enabled(value:Boolean):void{ 35 | super.enabled = value; 36 | enableHandler(null); 37 | } 38 | 39 | private function enableHandler(event:Event):void 40 | { 41 | // define the color filter 42 | var matrix:Array = new Array(); 43 | 44 | if (!enabled) 45 | { 46 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // red 47 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // green 48 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // blue 49 | matrix = matrix.concat([0, 0, 0, 0.3, 0]); // alpha 50 | } 51 | else 52 | { 53 | matrix = matrix.concat([1, 0, 0, 0, 0]); // red 54 | matrix = matrix.concat([0, 1, 0, 0, 0]); // green 55 | matrix = matrix.concat([0, 0, 1, 0, 0]); // blue 56 | matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha 57 | } 58 | 59 | var filter:BitmapFilter = new ColorMatrixFilter(matrix); 60 | 61 | // apply color filter 62 | filters = new Array(filter) ; 63 | } 64 | 65 | } 66 | } -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/FlowLayout.as: -------------------------------------------------------------------------------- 1 | package com.devaldi.controls 2 | { 3 | import mx.core.ILayoutElement; 4 | 5 | import spark.components.supportClasses.GroupBase; 6 | import spark.layouts.supportClasses.LayoutBase; 7 | 8 | public class FlowLayout extends LayoutBase 9 | { 10 | override public function updateDisplayList(containerWidth:Number, 11 | containerHeight:Number):void 12 | { 13 | // The position for the current element 14 | var x:Number = 0; 15 | var y:Number = 0; 16 | 17 | // loop through the elements 18 | var layoutTarget:GroupBase = target; 19 | var count:int = layoutTarget.numElements; 20 | for (var i:int = 0; i < count; i++) 21 | { 22 | // get the current element, we're going to work with the 23 | // ILayoutElement interface 24 | var element:ILayoutElement = layoutTarget.getElementAt(i); 25 | 26 | // Resize the element to its preferred size by passing 27 | // NaN for the width and height constraints 28 | element.setLayoutBoundsSize(NaN, NaN); 29 | 30 | // Find out the element's dimensions sizes. 31 | // We do this after the element has been already resized 32 | // to its preferred size. 33 | var elementWidth:Number = element.getLayoutBoundsWidth(); 34 | var elementHeight:Number = element.getLayoutBoundsHeight(); 35 | 36 | // Would the element fit on this line, or should we move 37 | // to the next line? 38 | if (x + elementWidth > containerWidth) 39 | { 40 | // Start from the left side 41 | x = 0; 42 | 43 | // Move down by elementHeight, we're assuming all 44 | // elements are of equal height 45 | y += elementHeight; 46 | } 47 | 48 | // Position the element 49 | element.setLayoutBoundsPosition(x, y); 50 | 51 | // Update the current position, add a gap of 10 52 | x += elementWidth + 10; 53 | } 54 | } 55 | } 56 | } -------------------------------------------------------------------------------- /docviewerflex/locale/he_IL/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/he_IL/FlexPaper.properties 2 | Print=\u05d4\u05d3\u05e4\u05e1\u05d4 3 | FitWidth=\u05d4\u05ea\u05d0\u05dd \u05e8\u05d5\u05d7\u05d1 4 | FitPage=\u05d4\u05ea\u05d0\u05dd \u05e2\u05de\u05d5\u05d3 5 | Scale=\u05de\u05d9\u05d3\u05d4 6 | ThumbView=\u05ea\u05de\u05d5\u05e0\u05d5\u05ea \u05de\u05de\u05d5\u05d6\u05e2\u05e8\u05d5\u05ea 7 | CurrentPage=\u05e2\u05de\u05d5\u05d3 \u05e0\u05d5\u05db\u05d7\u05d9 8 | Search=\u05d7\u05d9\u05e4\u05d5\u05e9 9 | NextPage=\u05e2\u05de\u05d5\u05d3 \u05d4\u05d1\u05d0 10 | PreviousPage=\u05e2\u05de\u05d5\u05d3 \u05e7\u05d5\u05d3\u05dd 11 | Fullscreen=\u05de\u05e1\u05da \u05de\u05dc\u05d0 12 | About=\u05d0\u05d5\u05d3\u05d5\u05ea 13 | Finishedsearching=\u05d4\u05d7\u05d9\u05e4\u05d5\u05e9 \u05d4\u05e1\u05ea\u05d9\u05d9\u05dd \u05dc\u05dc\u05d0 \u05ea\u05d5\u05e6\u05d0\u05d5\u05ea 14 | Searchfinished=\u05d4\u05d7\u05d9\u05e4\u05d5\u05e9 \u05d4\u05e1\u05ea\u05d9\u05d9\u05dd 15 | Selectprintrange=\u05d1\u05d7\u05e8 \u05d8\u05d5\u05d5\u05d7 \u05d4\u05d3\u05e4\u05e1\u05d4 16 | All=\u05d4\u05db\u05dc 17 | Pages=\u05d3\u05e4\u05d9\u05dd: 18 | Enterpagenumbers=\u05d4\u05d6\u05df \u05de\u05e1\u05e4\u05e8\u05d9 \u05e2\u05de\u05d5\u05d3\u05d9\u05dd \u05d5/\u05d0\u05d5 \u05d8\u05d5\u05d5\u05d7\u05d9 \u05e2\u05de\u05d5\u05d3\u05d9\u05dd \u05de\u05d5\u05e4\u05e8\u05d3\u05d9\u05dd \u05d1\u05e4\u05d9\u05e1\u05d5\u05e7. \u05dc\u05d3\u05d5\u05d2\u05de\u05d0 1,3,5-12 19 | Cancel=\u05d1\u05d9\u05d8\u05d5\u05dc 20 | IncorrectRange=\u05d8\u05d5\u05d5\u05d7 \u05e9\u05d2\u05d5\u05d0\u05d9 21 | Incorrectrangespecified=\u05d4\u05d5\u05d6\u05df \u05d8\u05d5\u05d5\u05d7 \u05e9\u05d2\u05d5\u05d0\u05d9 22 | Developedby=\u05e4\u05d5\u05ea\u05d7 \u05e2\u05dc-\u05d9\u05d3\u05d9 Devaldi. 23 | Formoreinformation=\u05dc\u05e4\u05e8\u05d8\u05d9\u05dd \u05e0\u05d5\u05e1\u05e4\u05d9\u05dd, \u05e6\u05e4\u05d4 \u05d1 24 | CopyText=\u05d4\u05e2\u05ea\u05e7 \u05d8\u05e7\u05e1\u05d8 25 | TwoPage=\u05e9\u05e0\u05d9 \u05e2\u05de\u05d5\u05d3\u05d9\u05dd 26 | SinglePage=\u05e2\u05de\u05d5\u05d3 \u05d1\u05d5\u05d3\u05d3 27 | FirstPage=\u05e2\u05de\u05d5\u05d3 \u05e8\u05d0\u05e9\u05d5\u05df 28 | LastPage=\u05e2\u05de\u05d5\u05d3 \u05d0\u05d7\u05e8\u05d5\u05df -------------------------------------------------------------------------------- /docviewerapi/src/conf/docviewer.properties: -------------------------------------------------------------------------------- 1 | #\u8F6C\u6362\u6587\u6863\u5B58\u653E\u4F4D\u7F6E 2 | docviewer.output=/home/icode/test/docviewer/ 3 | #\u662F\u5426\u5206\u9875\u8F6C\u6362 4 | docviewer.converter.splitPage=false 5 | #pdf\u8F6C\u6362\u6700\u5927\u7EBF\u7A0B\u6570 6 | docviewer.converter.pdf.maxThread=10 7 | #Office\u8F6C\u6362\u6700\u5927\u7EBF\u7A0B\u6570 8 | docviewer.converter.office.maxThread=10 9 | #\u662F\u5426\u52A0\u5BC6 10 | docviewer.encryption=true 11 | #\u9759\u6001\u5BC6\u94A5 12 | docviewer.encryption.key=UeMVef9Qwjqdet8tBhirIyeiPXosHHMaMMaPsWCN 13 | #\u662F\u5426\u4E3A\u52A8\u6001\u5BC6\u94A5 14 | docviewer.encryption.dynamic=true 15 | #\u52A8\u6001\u5BC6\u94A5\u957F\u5EA6 16 | docviewer.encryption.dynamic.key.length=40 17 | #\u9644\u4EF6\u670D\u52A1\u7C7B 18 | docviewer.attachment.service=com.log4ic.service.DocAttachmentService 19 | 20 | #\u5B89\u88C5\u4E2D\u4F1A\u63D0\u793A\u9700\u8981\u5B89\u88C5jre \u5FFD\u7565\u8FD9\u4E9B\u9519\u8BEF\uFF0C\u5B89\u88C5\u5B8C\u6BD5\u4E4B\u540E\u542F\u52A8word->"\u5DE5\u5177"->"\u9009\u9879"->"LibreOffice"->"Java" 21 | #office\u4E3B\u76EE\u5F55 22 | docviewer.converter.office.home=/usr/lib/libreoffice/ 23 | #office\u7AEF\u53E3 24 | docviewer.converter.office.port=8100 25 | #open office\u4E3B\u673A \u672A\u5B9E\u73B0 26 | #docviewer.converter.office.host=127.0.0.1 27 | #\u534F\u8BAE 28 | docviewer.converter.office.protocol=socket 29 | #\u8F6C\u6362\u670D\u52A1\u4E34\u65F6\u5B9E\u4F8B\u76EE 30 | #docviewer.converter.office.profile= 31 | 32 | #swftools\u547D\u4EE4 pdf2swf windows\u4E0B\u52A0\u73AF\u5883\u53D8\u91CF\u6216\u8005\u524D\u9762\u8FFD\u52A0\u8DEF\u5F84 languagedir \u4E2D\u6587\u652F\u6301 \u9700\u8981\u66F4\u6539\u8DEF\u5F84 \uFF0C\u4F7F\u7528\u65F6\u9700\u66F4\u6539add-to-xpdfrc\u6587\u4EF6\u7684\u8DEF\u5F84\uFF0C\u8DEF\u5F84\u4E2D\u4E0D\u80FD\u7528\u7A7A\u683C\u548C\u4E2D\u6587\uFF0C\u914D\u7F6E\u8BF4\u660E\u8BF7\u53C2\u9605chinese-simplified/README 33 | docviewer.converter.pdf.command=pdf2swf ${in} -o ${out} -T 9 -s ignoredraworder -s enablezlib -s disablelinks -s languagedir=/home/icode/Workspace/personal/docviewer/etc/xpdf-chinese-simplified 34 | #\u5355\u9875\u8F6C\u6362\u6A21\u5F0F\u6700\u5927\u7EBF\u7A0B\u6570 35 | docviewer.converter.pdf.mode.singlePage.maxThread=5 36 | -------------------------------------------------------------------------------- /docviewerflex/src/com/log4ic/resources/MenuIcons.as: -------------------------------------------------------------------------------- 1 | /** 2 | * @author: 张立鑫 3 | * @version: 1 4 | * @date: 11-10-28 上午11:08 5 | */ 6 | package com.log4ic.resources { 7 | public class MenuIcons { 8 | public function MenuIcons():*{} 9 | 10 | [Embed("/../resources/pagefit.gif")] 11 | static public const PAGE_FIT:Class; 12 | [Embed("/../resources/fullscreen.gif")] 13 | static public const FULLSCREEN:Class; 14 | 15 | [Embed("/../resources/fit.gif")] 16 | static public const PAGE_FITWIDTH:Class; 17 | [Embed("/../resources/sliderdot.gif")] 18 | static public const SLIDER_DOT:Class; 19 | [Embed("/../resources/grabbing.gif")] 20 | static public const GRABBING:Class; 21 | [Embed("/../resources/textselect.gif")] 22 | static public const TEXT_SELECT:Class; 23 | [Embed("/../resources/twopage.gif")] 24 | static public const TWO_PAGE:Class; 25 | 26 | [Embed("/../resources/logosmall.png")] 27 | static public const LOGO_SMALL:Class; 28 | [Embed("/../resources/grab.gif")] 29 | static public const GRAB:Class; 30 | [Embed("/../resources/icon-arrow-left.gif")] 31 | static public const ARROW_LEFT:Class; 32 | [Embed("/../resources/logosmall-trans.png")] 33 | static public const SMALL_TRANSPARENT:Class; 34 | [Embed("/../resources/logosmall-transc.png")] 35 | static public const SMALL_TRANSPARENT_COLOR:Class; 36 | 37 | [Embed("/../resources/textselectcursor.gif")] 38 | static public const TEXT_SELECT_CURSOR:Class; 39 | [Embed("/../resources/print-icon.gif")] 40 | static public const PRINT_ICON:Class; 41 | [Embed("/../resources/thumbs.gif")] 42 | static public const THUMBS:Class; 43 | [Embed("/../resources/hand2.gif")] 44 | static public const HAND:Class; 45 | [Embed("/../resources/bar.gif")] 46 | static public const BAR:Class; 47 | 48 | 49 | [Embed("/../resources/icon-arrow-right.gif")] 50 | static public const ARROW_RIGHT:Class; 51 | [Embed("/../resources/find.gif")] 52 | static public const FIND:Class; 53 | [Embed("/../resources/logosmallgray.png")] 54 | static public const SMALL_GRAY:Class; 55 | [Embed("/../resources/singlepage.gif")] 56 | static public const SINGLE_PAGE:Class; 57 | } 58 | 59 | } 60 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/entity/DocAttachment.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.entity; 2 | 3 | import com.log4ic.enums.Permissions; 4 | import com.log4ic.utils.io.FileUtils; 5 | 6 | import java.io.File; 7 | import java.io.FileInputStream; 8 | import java.io.FileNotFoundException; 9 | import java.io.InputStream; 10 | 11 | /** 12 | * @author: 张立鑫 13 | * @version: 1 14 | * @date: 11-10-13 上午10:10 15 | */ 16 | public class DocAttachment implements IDocAttachment { 17 | 18 | private String name; 19 | private Long contentSize; 20 | private Integer pageCount; 21 | private String fileType; 22 | private InputStream contentStream; 23 | private Permissions permissions; 24 | 25 | public DocAttachment(File file) { 26 | this.name = FileUtils.getFilePrefix(file); 27 | this.contentSize = file.length(); 28 | this.fileType = FileUtils.getFileSuffix(file); 29 | try { 30 | this.contentStream = new FileInputStream(file); 31 | } catch (FileNotFoundException e) { 32 | e.printStackTrace(); 33 | } 34 | } 35 | 36 | 37 | public String getName() { 38 | return name; 39 | } 40 | 41 | public Long getContentSize() { 42 | return contentSize; 43 | } 44 | 45 | public Integer getPageCount() { 46 | return pageCount; 47 | } 48 | 49 | public String getFileType() { 50 | return fileType; 51 | } 52 | 53 | public InputStream getContentStream() { 54 | return contentStream; 55 | } 56 | 57 | public Permissions getPermissions() { 58 | return permissions; 59 | } 60 | 61 | public void setName(String name) { 62 | this.name = name; 63 | } 64 | 65 | public void setContentSize(Long contentSize) { 66 | this.contentSize = contentSize; 67 | } 68 | 69 | public void setPageCount(Integer pageCount) { 70 | this.pageCount = pageCount; 71 | } 72 | 73 | public void setFileType(String fileType) { 74 | this.fileType = fileType; 75 | } 76 | 77 | public void setContentStream(InputStream contentStream) { 78 | this.contentStream = contentStream; 79 | } 80 | 81 | public void setPermissions(Permissions permissions) { 82 | this.permissions = permissions; 83 | } 84 | } 85 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/controls/flexpaper/About.mxml: -------------------------------------------------------------------------------- 1 | 2 | 19 | 20 | [ResourceBundle("FlexPaper")] 21 | 22 | 23 | 37 | 38 | 39 | 40 | 41 | 42 | 43 | 44 | 45 | 46 | 47 | -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/jquery.json.min.js: -------------------------------------------------------------------------------- 1 | 2 | (function($){$.toJSON=function(o) 3 | {if(typeof(JSON)=='object'&&JSON.stringify) 4 | return JSON.stringify(o);var type=typeof(o);if(o===null) 5 | return"null";if(type=="undefined") 6 | return undefined;if(type=="number"||type=="boolean") 7 | return o+"";if(type=="string") 8 | return $.quoteString(o);if(type=='object') 9 | {if(typeof o.toJSON=="function") 10 | return $.toJSON(o.toJSON());if(o.constructor===Date) 11 | {var month=o.getUTCMonth()+1;if(month<10)month='0'+month;var day=o.getUTCDate();if(day<10)day='0'+day;var year=o.getUTCFullYear();var hours=o.getUTCHours();if(hours<10)hours='0'+hours;var minutes=o.getUTCMinutes();if(minutes<10)minutes='0'+minutes;var seconds=o.getUTCSeconds();if(seconds<10)seconds='0'+seconds;var milli=o.getUTCMilliseconds();if(milli<100)milli='0'+milli;if(milli<10)milli='0'+milli;return'"'+year+'-'+month+'-'+day+'T'+ 12 | hours+':'+minutes+':'+seconds+'.'+milli+'Z"';} 13 | if(o.constructor===Array) 14 | {var ret=[];for(var i=0;i. 17 | */ 18 | package com.devaldi.streaming 19 | { 20 | import flash.display.Bitmap; 21 | import flash.display.DisplayObject; 22 | import flash.display.LoaderInfo; 23 | import flash.display.MovieClip; 24 | import flash.text.TextSnapshot; 25 | 26 | public class SwfDocument implements IGenericDocument{ 27 | private var _mc:MovieClip; 28 | 29 | public function SwfDocument(mc:DisplayObject){ 30 | if(mc is MovieClip) 31 | _mc = mc as MovieClip; 32 | else if(mc is Bitmap){ 33 | _mc = new MovieClip(); 34 | _mc.addChild(mc); 35 | } 36 | } 37 | 38 | public function gotoAndStop(pagNumber:int):void{ 39 | _mc.gotoAndStop(pagNumber); 40 | } 41 | 42 | public function stop():void{ 43 | _mc.stop(); 44 | } 45 | 46 | public function getDocument():DisplayObject{ 47 | return _mc; 48 | } 49 | 50 | public function get parent():DisplayObject{ 51 | return _mc.parent; 52 | } 53 | 54 | public function get totalFrames():int{ 55 | return _mc.totalFrames; 56 | } 57 | 58 | public function get framesLoaded():int{ 59 | return _mc.framesLoaded; 60 | } 61 | 62 | public function get textSnapshot():TextSnapshot{ 63 | return _mc.textSnapshot; 64 | } 65 | 66 | public function set alpha(value:Number):void{ 67 | _mc.alpha = value; 68 | } 69 | 70 | public function get currentFrame():int{ 71 | return _mc.currentFrame; 72 | } 73 | 74 | public function get height():Number{ 75 | return _mc.height; 76 | } 77 | 78 | public function get width():Number{ 79 | return _mc.width; 80 | } 81 | 82 | public function get loaderInfo():LoaderInfo{ 83 | return _mc.loaderInfo; 84 | } 85 | 86 | public function set scaleX(n:Number):void{ 87 | _mc.scaleX = n; 88 | } 89 | 90 | public function set scaleY(n:Number):void{ 91 | _mc.scaleY = n; 92 | } 93 | } 94 | } -------------------------------------------------------------------------------- /docviewer/web/scripts/lib/plupload/readme.md: -------------------------------------------------------------------------------- 1 | Plupload - Cross browser and platform uploader API 2 | =================================================== 3 | 4 | What is Plupload 5 | ----------------- 6 | Plupload is a JavaScript API for dealing with file uploads it supports features like multiple file selection, file type filtering, 7 | request chunking, client side image scaling and it uses different runtimes to achieve this such as HTML 5, Silverlight, Flash, Gears and BrowserPlus. 8 | 9 | What you need to build Plupload 10 | ------------------------------- 11 | * Install the Java JDK or JRE packages you can find it at: [http://java.sun.com/javase/downloads/index.jsp](http://java.sun.com/javase/downloads/index.jsp) 12 | * Install Apache Ant you can find it at: [http://ant.apache.org/](http://ant.apache.org/) 13 | * Add Apache Ant to your systems path environment variable, this is not required but makes it easier to issue commands to Ant without having to type the full path for it. 14 | 15 | How to build Plupload 16 | ---------------------- 17 | 18 | In the root directory of Plupload where the build.xml file is you can run ant against different targets. 19 | 20 | `ant` 21 | 22 | Will combine, preprocess and minify the Plupload classes into the js directory. It will not build the Silverlight and Flash .xap and .swf files. 23 | 24 | `ant moxiedoc` 25 | 26 | Will generate API Documentation for the project using the Moxiedoc tool. The docs will be generated to the docs/api directory. 27 | 28 | `ant release` 29 | 30 | Will produce release packages. The release packages will be placed in the tmp directory. 31 | 32 | How to build Flash runtime 33 | --------------------------- 34 | The Flash runtime uses a .swf file that can be built using the Flex SDK. This SDK can be downloaded from Adobe. [http://www.adobe.com/products/flex/flexdownloads/](http://www.adobe.com/products/flex/flexdownloads/) 35 | 36 | How to build Silverlight runtime 37 | --------------------------------- 38 | The Silverlight runtime uses a .xap file that can be built using the Silverlight SDK or Visual Studio. [http://silverlight.net/getstarted/](http://silverlight.net/getstarted/) 39 | 40 | Running the development version 41 | -------------------------------- 42 | The unminified development version of the javascript files can be executed by opening the examples/queue_widget_dev.html file running on a Web Server. 43 | 44 | Contributing to the Plupload project 45 | ------------------------------------- 46 | You can read more about how to contribute to this project at [http://www.plupload.com/contributing](http://www.plupload.com/contributing) 47 | -------------------------------------------------------------------------------- /docviewerflex/locale/ru_RU/FlexPaper.properties: -------------------------------------------------------------------------------- 1 | # locale/ru_RU/FlexPaper.properties 2 | Print=\u041f\u0435\u0447\u0430\u0442\u044c 3 | FitWidth=\u041f\u043e \u0448\u0438\u0440\u0438\u043d\u0435 4 | FitPage=\u041f\u043e \u0432\u044b\u0441\u043e\u0442\u0435 5 | Scale=\u041c\u0430\u0441\u0448\u0442\u0430\u0431 6 | ThumbView=\u042d\u043a\u0441\u0438\u0437\u044b 7 | CurrentPage=\u0422\u0435\u043a\u0443\u0449\u0430\u044f \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 8 | Search=\u041f\u043e\u0438\u0441\u043a 9 | NextPage=\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0430\u044f 10 | PreviousPage=\u041f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0430\u044f 11 | Fullscreen=\u041f\u043e\u043b\u043d\u043e\u044d\u043a\u0440\u0430\u043d\u043d\u044b\u0439 \u0432\u0438\u0434 12 | About=\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435 13 | Finishedsearching=\u041f\u043e\u0438\u0441\u043a \u0432 \u0434\u043e\u043a\u0443\u043c\u0435\u043d\u0442\u0435 \u0437\u0430\u0432\u0435\u0440\u0448\u0435\u043d. \u0420\u0435\u0437\u0443\u043b\u044c\u0442\u0430\u0442\u043e\u0432 \u043d\u0435 \u043d\u0430\u0439\u0434\u0435\u043d\u043e. 14 | Searchfinished=\u041f\u043e\u0438\u0441\u043a \u043e\u043a\u043e\u043d\u0447\u0435\u043d. 15 | Selectprintrange=\u0412\u044b\u0431\u0435\u0440\u0438\u0442\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b \u0434\u043b\u044f \u043f\u0435\u0447\u0430\u0442\u0438 16 | All=\u0412\u0441\u0435 17 | CurrentPage=\u0422\u043e\u043b\u044c\u043a\u043e \u0442\u0435\u043a\u0443\u0449\u0430\u044f 18 | Pages=\u0412\u044b\u0431\u043e\u0440: 19 | Enterpagenumbers=\u0423\u043a\u0430\u0436\u0438\u0442\u0435 \u043d\u043e\u043c\u0435\u0440\u0430 \u0438/\u0438\u043b\u0438 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d\u044b \u0441\u0442\u0440\u0430\u043d\u0438\u0446 \u0447\u0435\u0440\u0435\u0437 \u0437\u0430\u043f\u044f\u0442\u0443\u044e. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 1,3, 5-12 20 | Cancel=\u041e\u0442\u043c\u0435\u043d\u0430 21 | IncorrectRange=\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u044b\u0439 \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d 22 | Incorrectrangespecified=\u041d\u0435\u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e \u0443\u043a\u0430\u0437\u0430\u043d \u0434\u0438\u0430\u043f\u0430\u0437\u043e\u043d 23 | About=\u041e \u043f\u0440\u043e\u0435\u043a\u0442\u0435 24 | Developedby=\u0420\u0430\u0437\u0440\u0430\u0431\u043e\u0442\u0430\u043d\u043e Devaldi. 25 | Formoreinformation=\u0414\u043e\u043f. \u0438\u043d\u0444\u043e\u0440\u043c\u0430\u0446\u0438\u044f: 26 | TwoPage=\u0414\u0432\u0435 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u044b 27 | SinglePage=\u041e\u0434\u043d\u0430 \u0441\u0442\u0440\u0430\u043d\u0438\u0446\u0430 28 | -------------------------------------------------------------------------------- /docviewerflex/src/caurina/transitions/AuxFunctions.as: -------------------------------------------------------------------------------- 1 | package caurina.transitions { 2 | 3 | /** 4 | * Generic, auxiliary functions 5 | * 6 | * @author Zeh Fernando 7 | * @version 1.0.0 8 | * @private 9 | */ 10 | 11 | public class AuxFunctions { 12 | 13 | /** 14 | * Gets the R (xx0000) bits from a number 15 | * 16 | * @param p_num Number Color number (ie, 0xffff00) 17 | * @return Number The R value 18 | */ 19 | public static function numberToR(p_num:Number):Number { 20 | // The initial & is meant to crop numbers bigger than 0xffffff 21 | return (p_num & 0xff0000) >> 16; 22 | } 23 | 24 | /** 25 | * Gets the G (00xx00) bits from a number 26 | * 27 | * @param p_num Number Color number (ie, 0xffff00) 28 | * @return Number The G value 29 | */ 30 | public static function numberToG(p_num:Number):Number { 31 | return (p_num & 0xff00) >> 8; 32 | } 33 | 34 | /** 35 | * Gets the B (0000xx) bits from a number 36 | * 37 | * @param p_num Number Color number (ie, 0xffff00) 38 | * @return Number The B value 39 | */ 40 | public static function numberToB(p_num:Number):Number { 41 | return (p_num & 0xff); 42 | } 43 | 44 | /** 45 | * Returns the number of properties an object has 46 | * 47 | * @param p_object Object Target object with a number of properties 48 | * @return Number Number of total properties the object has 49 | */ 50 | public static function getObjectLength(p_object:Object):uint { 51 | var totalProperties:uint = 0; 52 | for (var pName:String in p_object) totalProperties ++; 53 | return totalProperties; 54 | } 55 | 56 | /* Takes a variable number of objects as parameters and "adds" their properties, from left to right. If a latter object defines a property as null, it will be removed from the final object 57 | * @param args Object(s) A variable number of objects 58 | * @return Object An object with the sum of all paremeters added as properties. 59 | */ 60 | public static function concatObjects(...args) : Object{ 61 | var finalObject : Object = {}; 62 | var currentObject : Object; 63 | for (var i : int = 0; i < args.length; i++){ 64 | currentObject = args[i]; 65 | for (var prop : String in currentObject){ 66 | if (currentObject[prop] == null){ 67 | // delete in case is null 68 | delete finalObject[prop]; 69 | }else{ 70 | finalObject[prop] = currentObject[prop]; 71 | } 72 | } 73 | } 74 | return finalObject; 75 | } 76 | } 77 | } 78 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 21 | 22 | 33 | 42 | 43 | 44 | http://www.w3.org/1999/xhtml 45 | 46 | 47 | 48 | 49 | 50 | 52 | 53 | -------------------------------------------------------------------------------- /docviewer/src/com/log4ic/utils/support/DataBaseSupport.java: -------------------------------------------------------------------------------- 1 | package com.log4ic.utils.support; 2 | 3 | import com.log4ic.utils.dao.DocViewerJdbcSupport; 4 | import com.log4ic.utils.io.scanner.FileScanner; 5 | import com.log4ic.utils.support.scanner.filter.AnnotationFilter; 6 | import org.apache.commons.logging.Log; 7 | import org.apache.commons.logging.LogFactory; 8 | 9 | import javax.naming.NamingException; 10 | import javax.servlet.ServletContextEvent; 11 | import javax.servlet.ServletContextListener; 12 | import java.sql.Driver; 13 | import java.sql.DriverManager; 14 | import java.sql.SQLException; 15 | import java.util.Enumeration; 16 | import java.util.List; 17 | 18 | /** 19 | * @author 张立鑫 IntelligentCode 20 | * @date: 12-1-28 21 | * @time: 上午2:51 22 | */ 23 | public class DataBaseSupport implements ServletContextListener { 24 | private static final Log LOGGER = LogFactory.getLog(DataBaseSupport.class); 25 | 26 | public void contextInitialized(ServletContextEvent servletContextEvent) { 27 | LOGGER.info("初始化实体表...."); 28 | AnnotationFilter annotationFilter = new AnnotationFilter(); 29 | FileScanner fileScanner = new FileScanner(annotationFilter); 30 | LOGGER.info("查找相关实体...."); 31 | fileScanner.find("com.log4ic.entity"); 32 | 33 | List entityClassList = annotationFilter.getClassList(); 34 | 35 | try { 36 | LOGGER.info("查看是否建表...."); 37 | for (Class clazz : entityClassList) { 38 | DocViewerJdbcSupport support = (DocViewerJdbcSupport) clazz.newInstance(); 39 | boolean exist = support.hasTable(); 40 | String tableName = support.getTableName(); 41 | LOGGER.info("表[" + tableName + "]" + (exist ? "" : "不") + "存在"); 42 | if (!exist) { 43 | LOGGER.info("创建表[" + tableName + "]"); 44 | support.createTable(); 45 | } 46 | } 47 | } catch (NamingException e) { 48 | LOGGER.error(e); 49 | } catch (SQLException e) { 50 | LOGGER.error(e); 51 | } catch (InstantiationException e) { 52 | LOGGER.error(e); 53 | } catch (IllegalAccessException e) { 54 | LOGGER.error(e); 55 | } 56 | 57 | } 58 | 59 | public void contextDestroyed(ServletContextEvent servletContextEvent) { 60 | Enumeration drivers = DriverManager.getDrivers(); 61 | while (drivers.hasMoreElements()) { 62 | Driver driver = drivers.nextElement(); 63 | try { 64 | DriverManager.deregisterDriver(driver); 65 | LOGGER.debug("deregistering jdbc driver:" + driver); 66 | } catch (SQLException e) { 67 | LOGGER.error(e); 68 | } 69 | } 70 | 71 | } 72 | } 73 | -------------------------------------------------------------------------------- /docviewerflex/src/com/devaldi/skinning/GradientImageButton.as: -------------------------------------------------------------------------------- 1 | /* 2 | Copyright 2009 Erik Engström 3 | 4 | This file is part of FlexPaper. 5 | 6 | FlexPaper is free software: you can redistribute it and/or modify 7 | it under the terms of the GNU General Public License as published by 8 | the Free Software Foundation, version 3 of the License. 9 | 10 | FlexPaper is distributed in the hope that it will be useful, 11 | but WITHOUT ANY WARRANTY; without even the implied warranty of 12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 | GNU General Public License for more details. 14 | 15 | You should have received a copy of the GNU General Public License 16 | along with FlexPaper. If not, see . 17 | */ 18 | 19 | package com.devaldi.skinning 20 | { 21 | import flash.events.Event; 22 | import flash.filters.*; 23 | import flash.display.GradientType; 24 | import mx.controls.Button; 25 | import mx.events.*; 26 | import flash.geom.Matrix; 27 | 28 | public class GradientImageButton extends Button 29 | { 30 | public function GradientImageButton() 31 | { 32 | super(); 33 | 34 | addEventListener("enabledChanged",enableHandler); 35 | } 36 | 37 | override protected function updateDisplayList(w:Number, h:Number):void { 38 | if(selected){ 39 | graphics.clear(); 40 | 41 | var gradientBoxMatrix:Matrix = new Matrix(); 42 | gradientBoxMatrix.createGradientBox(w, h, 0, 0, 0); 43 | 44 | graphics.beginGradientFill(GradientType.LINEAR,[0x009dff, 0x0079db, 0x0055b7],[0.22, 0.22, 0.22],[0, 128, 255],gradientBoxMatrix); 45 | //graphics.beginGradientFill(GradientType.LINEAR,[0xdddddd, 0xcccccc, 0xdedede],[1, 1, 1],[100, 200, 255],gradientBoxMatrix); 46 | 47 | graphics.drawRect(0, 0, width, height); 48 | }else{ 49 | graphics.clear(); 50 | } 51 | 52 | super.updateDisplayList(w,h); 53 | } 54 | 55 | private function enableHandler(event:Event):void 56 | { 57 | // define the color filter 58 | var matrix:Array = new Array(); 59 | 60 | if (!enabled) 61 | { 62 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // red 63 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // green 64 | matrix = matrix.concat([0.31, 0.61, 0.08, 0, 0]); // blue 65 | matrix = matrix.concat([0, 0, 0, 0.3, 0]); // alpha 66 | selected = false; 67 | } 68 | else 69 | { 70 | matrix = matrix.concat([1, 0, 0, 0, 0]); // red 71 | matrix = matrix.concat([0, 1, 0, 0, 0]); // green 72 | matrix = matrix.concat([0, 0, 1, 0, 0]); // blue 73 | matrix = matrix.concat([0, 0, 0, 1, 0]); // alpha 74 | } 75 | 76 | var filter:BitmapFilter = new ColorMatrixFilter(matrix); 77 | 78 | // apply color filter 79 | filters = new Array(filter) ; 80 | 81 | // activate or disacivate the button mode 82 | buttonMode = enabled ; 83 | } 84 | } 85 | } -------------------------------------------------------------------------------- /docviewer/web/WEB-INF/web.xml: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | CharsetFilter 7 | 8 | com.log4ic.utils.web.filter.CharacterEncodingFilter 9 | 10 | 11 | encoding 12 | UTF-8 13 | 14 | 15 | forceEncoding 16 | true 17 | 18 | 19 | 20 | CharsetFilter 21 | /* 22 | 23 | 24 | uploaderFilter 25 | com.log4ic.utils.io.FileUploaderFilter 26 | 27 | tempDir 28 | /home/icode/uploader/tempDir 29 | 30 | 31 | 32 | 33 | uploaderFilter 34 | * 35 | 36 | 37 | 38 | 39 | uploaderServlet 40 | com.log4ic.servlet.UploaderServlet 41 | 42 | 43 | 44 | uploaderServlet 45 | /upload 46 | 47 | 48 | 49 | 50 | docViewerServlet 51 | com.log4ic.servlet.DocViewerServlet 52 | 53 | 54 | docViewerServlet 55 | /docviewer 56 | 57 | 58 | docViewerServlet 59 | /docviewer/* 60 | 61 | 62 | 63 | com.log4ic.utils.support.DocViewerServiceListener 64 | 65 | 66 | 67 | 68 | com.log4ic.utils.support.DataBaseSupport 69 | 70 | 71 | 72 | 73 | org.apache.commons.fileupload.servlet.FileCleanerCleanup 74 | 75 | 76 | 77 | 78 | documents.jsp 79 | 80 | 81 | -------------------------------------------------------------------------------- /.idea/shelf/在进行更新之前于_2022_06_16_11_44_取消提交了变更_[Default]/shelved.patch: -------------------------------------------------------------------------------- 1 | Index: .idea/workspace.xml 2 | IDEA additional info: 3 | Subsystem: com.intellij.openapi.diff.impl.patch.CharsetEP 4 | <+>UTF-8 5 | =================================================================== 6 | diff --git a/.idea/workspace.xml b/.idea/workspace.xml 7 | --- a/.idea/workspace.xml (revision d492829f16e4dcaab456be887a8b1752175c16f0) 8 | +++ b/.idea/workspace.xml (date 1655351014894) 9 | @@ -19,12 +19,7 @@ 10 |