From: vincent@cubedesigners.com Date: Thu, 22 Sep 2011 15:18:25 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=ea223da9d1186e3fc5d1a13e002bfd4fb4029938;p=cubeextranet.git --- diff --git a/fluidbook/tools/fwstk/nbproject/build-impl.xml b/fluidbook/tools/fwstk/nbproject/build-impl.xml index ba8fe7e7e..e0ac685fb 100644 --- a/fluidbook/tools/fwstk/nbproject/build-impl.xml +++ b/fluidbook/tools/fwstk/nbproject/build-impl.xml @@ -54,43 +54,6 @@ is divided into following sections: - - - - - - - - - - - - - - - - - - - - - - - - - - Must set platform.home - Must set platform.bootcp - Must set platform.java - Must set platform.javac - - The J2SE Platform is not correctly set up. - Your active platform is: ${platform.active}, but the corresponding property "platforms.${platform.active}.home" is not found in the project's properties files. - Either open the project in the IDE and setup the Platform with the same name or add it manually. - For example like this: - ant -Duser.properties.file=<path_to_property_file> jar (where you put the property "platforms.${platform.active}.home" in a .properties file) - or ant -Dplatforms.${platform.active}.home=<path_to_JDK_home> jar (where no properties file is used) - @@ -222,6 +185,15 @@ is divided into following sections: + + + + + + + + + @@ -267,7 +239,7 @@ is divided into following sections: - + @@ -306,7 +278,7 @@ is divided into following sections: - + @@ -363,7 +335,7 @@ is divided into following sections: - + @@ -435,9 +407,6 @@ is divided into following sections: - - - @@ -453,9 +422,7 @@ is divided into following sections: - - - + @@ -480,7 +447,7 @@ is divided into following sections: - + @@ -505,7 +472,7 @@ is divided into following sections: - + @@ -688,7 +655,7 @@ is divided into following sections: - ${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class} + java -cp "${run.classpath.with.dist.jar}" ${main.class} @@ -715,7 +682,7 @@ is divided into following sections: To run this application from the command line without Ant, try: - ${platform.java} -jar "${dist.jar.resolved}" + java -jar "${dist.jar.resolved}" @@ -865,15 +832,16 @@ is divided into following sections: --> - + - + + diff --git a/fluidbook/tools/fwstk/nbproject/genfiles.properties b/fluidbook/tools/fwstk/nbproject/genfiles.properties index c18a0bf72..00af3e9f5 100644 --- a/fluidbook/tools/fwstk/nbproject/genfiles.properties +++ b/fluidbook/tools/fwstk/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=0fe54e23 +build.xml.data.CRC32=5afba316 build.xml.script.CRC32=ef618d2d -build.xml.stylesheet.CRC32=28e38971@1.43.1.45 +build.xml.stylesheet.CRC32=28e38971@1.44.1.45 # This file is used by a NetBeans-based IDE to track changes in generated files such as build-impl.xml. # Do not edit this file. You may delete it but then the IDE will never regenerate such files for you. -nbproject/build-impl.xml.data.CRC32=0fe54e23 -nbproject/build-impl.xml.script.CRC32=34b388b3 -nbproject/build-impl.xml.stylesheet.CRC32=0c01fd8e@1.43.1.45 +nbproject/build-impl.xml.data.CRC32=5afba316 +nbproject/build-impl.xml.script.CRC32=f0904f14 +nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45 diff --git a/fluidbook/tools/fwstk/nbproject/private/config.properties b/fluidbook/tools/fwstk/nbproject/private/config.properties index 2f416298f..2dc12851a 100644 --- a/fluidbook/tools/fwstk/nbproject/private/config.properties +++ b/fluidbook/tools/fwstk/nbproject/private/config.properties @@ -1 +1 @@ -config=Make_images +config=Infos diff --git a/fluidbook/tools/fwstk/nbproject/private/configs/Infos.properties b/fluidbook/tools/fwstk/nbproject/private/configs/Infos.properties index 114874e8d..14171d3fe 100644 --- a/fluidbook/tools/fwstk/nbproject/private/configs/Infos.properties +++ b/fluidbook/tools/fwstk/nbproject/private/configs/Infos.properties @@ -1 +1 @@ -application.args=--input C:\\Users\\Vincent\\Documents\\links\\document.pdf --infos +application.args=--input H:\\Documents\\fwstk\\infos\\document.pdf --infos diff --git a/fluidbook/tools/fwstk/nbproject/private/private.properties b/fluidbook/tools/fwstk/nbproject/private/private.properties index 75eb4042c..c85e5f3f2 100644 --- a/fluidbook/tools/fwstk/nbproject/private/private.properties +++ b/fluidbook/tools/fwstk/nbproject/private/private.properties @@ -4,4 +4,4 @@ do.depend=false do.jar=true javac.debug=true javadoc.preview=true -user.properties.file=C:\\Users\\Cube\\.netbeans\\7.0\\build.properties +user.properties.file=C:\\Users\\Vincent\\.netbeans\\7.0\\build.properties diff --git a/fluidbook/tools/fwstk/nbproject/private/private.xml b/fluidbook/tools/fwstk/nbproject/private/private.xml index cc2c0e57c..b2009378c 100644 --- a/fluidbook/tools/fwstk/nbproject/private/private.xml +++ b/fluidbook/tools/fwstk/nbproject/private/private.xml @@ -1,4 +1,8 @@ + + file:/H:/Works/cubeExtranet/fluidbook/tools/fwstk/src/com/fluidbook/fwstk/Main.java + file:/H:/Works/cubeExtranet/fluidbook/tools/fwstk/src/cube/util/Array.java + diff --git a/fluidbook/tools/fwstk/nbproject/private/profiler/configurations.xml b/fluidbook/tools/fwstk/nbproject/private/profiler/configurations.xml new file mode 100644 index 000000000..48c8f19da --- /dev/null +++ b/fluidbook/tools/fwstk/nbproject/private/profiler/configurations.xml @@ -0,0 +1,110 @@ + + + +1000 +false +profiler.simple.filter +false + +8 +true + +false +0 +false +true +1 +false +false +false +profiler.simple.filter +32 +false +1 +true +3 +10 +1 +true +Analyze Memory +false +1 +true +10 +0 +profiler.simple.filter +0 +false +true + +1 + +true + + +false +false +true +false +false +32 +Quick filter... +0 +false +0 +{$project.classes.only} +10 +0 +true +true + +true +10 + +1000 +0 +profiler.simple.filter +false +Analyze Performance + +1 +0 + +0 +false +profiler.simple.filter +Quick filter... +false +true +0 +true + +2 + +32 +0 +false +Profile only project classes +0 +0 +true +profiler.simple.filter +1 +10 +false +10 +false +false +true +true +false +0 +Quick filter... +false + +Monitor Application +2 +1000 +true +true + diff --git a/fluidbook/tools/fwstk/nbproject/project.properties b/fluidbook/tools/fwstk/nbproject/project.properties index 2bb20f19c..e1d9e82f1 100644 --- a/fluidbook/tools/fwstk/nbproject/project.properties +++ b/fluidbook/tools/fwstk/nbproject/project.properties @@ -85,7 +85,7 @@ main.class=com.fluidbook.fwstk.Main manifest.file=manifest.mf meta.inf.dir=${src.dir}/META-INF mkdist.disabled=false -platform.active=JDK_1.7 +platform.active=default_platform run.classpath=\ ${build.classes.dir}:\ ${javac.classpath} diff --git a/fluidbook/tools/fwstk/nbproject/project.xml b/fluidbook/tools/fwstk/nbproject/project.xml index 38eb6a1e3..a70a3bf29 100644 --- a/fluidbook/tools/fwstk/nbproject/project.xml +++ b/fluidbook/tools/fwstk/nbproject/project.xml @@ -4,7 +4,6 @@ fwstk - diff --git a/fluidbook/tools/fwstk/src/cube/util/Array.java b/fluidbook/tools/fwstk/src/cube/util/Array.java index 86eeffb29..7f076e572 100644 --- a/fluidbook/tools/fwstk/src/cube/util/Array.java +++ b/fluidbook/tools/fwstk/src/cube/util/Array.java @@ -4,7 +4,7 @@ import java.util.TreeMap; public class Array { public static Integer[] parseRange(String str) { - TreeMap res = new TreeMap(); + TreeMap res = new TreeMap<>(); String[] ranges = str.split("[;,]{1}"); int e0; int e1; diff --git a/inc/ws/Metier/class.ws.document.php b/inc/ws/Metier/class.ws.document.php index bb997180a..97e5e63d9 100644 --- a/inc/ws/Metier/class.ws.document.php +++ b/inc/ws/Metier/class.ws.document.php @@ -157,6 +157,13 @@ class wsDocument extends cubeMetier { protected function detectSpreads() { // Détection des spreads + + $this->autocut = false; + $this->manualcut = false; + if ($this->generalInfos['pages'] <= 2) { + return; + } + foreach ($this->generalInfos['page'] as $page => $infos) { if ($page == 1) { $first = $infos['size']; @@ -190,6 +197,8 @@ class wsDocument extends cubeMetier { if (cubeMath::compare($first[0] * 2, $second[0], 0.9) && self::compareSizes($last, $second)) { $this->autocut = '1-23'; } + + $this->addToLog('Detect Spreads : Manual cut ' . $this->manualcut . ' ; Auto cut : ' . $this->autocut); } public static function compareSizes($x, $y, $tolerance=0.9) { @@ -518,7 +527,7 @@ class wsDocument extends cubeMetier { $maxObjects = $conversionSettings->objects; } if (is_null($version)) { - $version = isset($conversionSettings->version)?$conversionSettings->version:'stable'; + $version = isset($conversionSettings->version) ? $conversionSettings->version : 'stable'; } if ($maxObjects <= 1) {