From: vincent@cubedesigners.com Date: Sun, 28 Aug 2011 17:45:14 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=0f36f84c36645e614911b3577341063885af7c02;p=cubeextranet.git --- diff --git a/.htaccess b/.htaccess index 2f639c659..5f9dff0ad 100644 --- a/.htaccess +++ b/.htaccess @@ -55,5 +55,8 @@ AddCharset UTF-8 log RewriteRule ^viewerhu/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/js/(.+)$ fluidbook/compile/_html5/js/$4 [L] RewriteRule ^viewerhu/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/(.+)$ fluidbook/books/html5/$1/$4 [L] + + RewriteRule ^viewerht/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/js/(.+)$ fluidbook/compile/_html5/js/$4 [L] + RewriteRule ^viewerht/([0-9]+)_([0-9a-fA-F]+)_([0-9]+)/(.+)$ fluidbook/books/html5/$1/$4 [L] \ No newline at end of file diff --git a/fluidbook/tools/FWSTK_Resources/dist/FWSTK_Resources.jar b/fluidbook/tools/FWSTK_Resources/dist/FWSTK_Resources.jar index 47c9f1356..04d781ae0 100644 Binary files a/fluidbook/tools/FWSTK_Resources/dist/FWSTK_Resources.jar and b/fluidbook/tools/FWSTK_Resources/dist/FWSTK_Resources.jar differ diff --git a/fluidbook/tools/FWSTK_Resources/nbproject/private/private.properties b/fluidbook/tools/FWSTK_Resources/nbproject/private/private.properties index bac0930bd..5b986322c 100644 --- a/fluidbook/tools/FWSTK_Resources/nbproject/private/private.properties +++ b/fluidbook/tools/FWSTK_Resources/nbproject/private/private.properties @@ -1,2 +1,2 @@ compile.on.save=true -user.properties.file=C:\\Users\\Vincent\\.netbeans\\7.0\\build.properties +user.properties.file=C:\\Users\\Cube\\.netbeans\\7.0\\build.properties diff --git a/fluidbook/tools/FWSTK_Resources/src/org/apache/pdfbox/resources/LayoutStripper.properties b/fluidbook/tools/FWSTK_Resources/src/org/apache/pdfbox/resources/LayoutStripper.properties index f40d9848b..1c84790a9 100644 --- a/fluidbook/tools/FWSTK_Resources/src/org/apache/pdfbox/resources/LayoutStripper.properties +++ b/fluidbook/tools/FWSTK_Resources/src/org/apache/pdfbox/resources/LayoutStripper.properties @@ -21,11 +21,11 @@ b#=org.apache.pdfbox.util.operator.pagedrawer.CloseFillNonZeroAndStrokePath B#=org.apache.pdfbox.util.operator.pagedrawer.FillNonZeroAndStrokePath b*#=org.apache.pdfbox.util.operator.pagedrawer.CloseFillEvenOddAndStrokePath B*#=org.apache.pdfbox.util.operator.pagedrawer.FillEvenOddAndStrokePath -#BDC org.apache.pdfbox.util.operator.NotImplemented ##Begin Marked Content -- section 10.5 +BDC# org.apache.pdfbox.util.operator.NotImplemented ##Begin Marked Content -- section 10.5 BI#=org.apache.pdfbox.util.operator.pagedrawer.BeginInlineImage -#BMC org.apache.pdfbox.util.operator.NotImplemented ##Begin Marked Content -- section 10.5 +BMC# org.apache.pdfbox.util.operator.NotImplemented ##Begin Marked Content -- section 10.5 BT=org.apache.pdfbox.util.operator.BeginText -#BX org.apache.pdfbox.util.operator.NotImplemented +BX# org.apache.pdfbox.util.operator.NotImplemented c#=org.apache.pdfbox.util.operator.pagedrawer.CurveTo cm=org.apache.pdfbox.util.operator.Concatenate CS=org.apache.pdfbox.util.operator.SetStrokingColorSpace diff --git a/fluidbook/tools/fwstk/nbproject/build-impl.xml b/fluidbook/tools/fwstk/nbproject/build-impl.xml index e0ac685fb..ba8fe7e7e 100644 --- a/fluidbook/tools/fwstk/nbproject/build-impl.xml +++ b/fluidbook/tools/fwstk/nbproject/build-impl.xml @@ -54,6 +54,43 @@ 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) + @@ -185,15 +222,6 @@ is divided into following sections: - - - - - - - - - @@ -239,7 +267,7 @@ is divided into following sections: - + @@ -278,7 +306,7 @@ is divided into following sections: - + @@ -335,7 +363,7 @@ is divided into following sections: - + @@ -407,6 +435,9 @@ is divided into following sections: + + + @@ -422,7 +453,9 @@ is divided into following sections: - + + + @@ -447,7 +480,7 @@ is divided into following sections: - + @@ -472,7 +505,7 @@ is divided into following sections: - + @@ -655,7 +688,7 @@ is divided into following sections: - java -cp "${run.classpath.with.dist.jar}" ${main.class} + ${platform.java} -cp "${run.classpath.with.dist.jar}" ${main.class} @@ -682,7 +715,7 @@ is divided into following sections: To run this application from the command line without Ant, try: - java -jar "${dist.jar.resolved}" + ${platform.java} -jar "${dist.jar.resolved}" @@ -832,16 +865,15 @@ is divided into following sections: --> - + - + - diff --git a/fluidbook/tools/fwstk/nbproject/genfiles.properties b/fluidbook/tools/fwstk/nbproject/genfiles.properties index 00af3e9f5..c18a0bf72 100644 --- a/fluidbook/tools/fwstk/nbproject/genfiles.properties +++ b/fluidbook/tools/fwstk/nbproject/genfiles.properties @@ -1,8 +1,8 @@ -build.xml.data.CRC32=5afba316 +build.xml.data.CRC32=0fe54e23 build.xml.script.CRC32=ef618d2d -build.xml.stylesheet.CRC32=28e38971@1.44.1.45 +build.xml.stylesheet.CRC32=28e38971@1.43.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=5afba316 -nbproject/build-impl.xml.script.CRC32=f0904f14 -nbproject/build-impl.xml.stylesheet.CRC32=0ae3a408@1.44.1.45 +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 diff --git a/fluidbook/tools/fwstk/nbproject/project.properties b/fluidbook/tools/fwstk/nbproject/project.properties index e1d9e82f1..2bb20f19c 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=default_platform +platform.active=JDK_1.7 run.classpath=\ ${build.classes.dir}:\ ${javac.classpath} diff --git a/fluidbook/tools/fwstk/nbproject/project.xml b/fluidbook/tools/fwstk/nbproject/project.xml index a70a3bf29..38eb6a1e3 100644 --- a/fluidbook/tools/fwstk/nbproject/project.xml +++ b/fluidbook/tools/fwstk/nbproject/project.xml @@ -4,6 +4,7 @@ fwstk + diff --git a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java index 35039c2fd..b58fc4668 100644 --- a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java +++ b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java @@ -143,9 +143,7 @@ public class PDFStreamEngine { (OperatorProcessor) klass.newInstance(); registerOperatorProcessor(operator, processor); } catch (Exception e) { - throw new WrappedIOException( - "OperatorProcessor class " + processorClassName - + " could not be instantiated", e); + } } } diff --git a/inc/ws/Controlleur/class.ws.url.php b/inc/ws/Controlleur/class.ws.url.php index ef586ea8c..89e8d773f 100644 --- a/inc/ws/Controlleur/class.ws.url.php +++ b/inc/ws/Controlleur/class.ws.url.php @@ -128,7 +128,7 @@ class wsUrl { } else { $res .= '' . $btVoir . ''; } - $res .= '' . $btEdit . ''; + $res .= '' . $btEdit . ''; } else { $res.=''; } @@ -431,14 +431,17 @@ class wsUrl { global $core; $args = cubePage::getArgs($args); - $book_id = $args[0]; + $e = explode('_', $args[0]); + $book_id = $e[0]; + $hash = isset($e[1]) ? $e[1] : ''; + self::checkDocumentVersionOfBook($book_id); if ($book_id == 'new') { $dao = new wsDAOBook($core->con); $book = $dao->creeEmpty($core->user->utilisateur_id, $core->user->lang); - http::redirect(SITE_PATH . 'editor/' . $book->book_id); + http::redirect(SITE_PATH . 'editor/' . $book->book_id . '_' . $book->hash); } $res = '