From: vincent@cubedesigners.com Date: Fri, 6 May 2011 14:21:26 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=c73ce4ffe635fd0ed392a4be63245e3f0f87dfbf;p=cubeextranet.git --- diff --git a/fluidbook/compile/_protect/fluidbook.sspj b/fluidbook/compile/_protect/fluidbook.sspj index dc8e6eba3..3c36e1ce4 100644 --- a/fluidbook/compile/_protect/fluidbook.sspj +++ b/fluidbook/compile/_protect/fluidbook.sspj @@ -53,7 +53,7 @@ 10 - + @@ -261,6 +261,28 @@ + + + + 0 + + + 0 + + + com.fluidbook.common.datas.* + + + false + + + 10 + + + false + + + @@ -4776,7 +4798,7 @@ true - c-ctr + removeListeners true @@ -4795,7 +4817,7 @@ true - i-ctr + c-ctr true @@ -4814,7 +4836,7 @@ true - removeListeners + i-ctr true @@ -4936,7 +4958,7 @@ 1280 X 900 - 52310 + 26869 10 @@ -106227,7 +106249,7 @@ true - + @@ -106313,7 +106335,7 @@ true - _id + _isStarted false @@ -106321,9 +106343,6 @@ true - - 1 - Private Variable @@ -106335,7 +106354,7 @@ true - _isStarted + _lightDatas false @@ -106354,7 +106373,7 @@ true - _lightDatas + _speedUpMode false @@ -106362,6 +106381,9 @@ true + + 1 + Private Variable @@ -106373,7 +106395,7 @@ true - _mail + _startPage false @@ -106381,6 +106403,9 @@ true + + 1 + Private Variable @@ -106395,13 +106420,13 @@ _menuInterfaceBack - false + true true - Private Variable + Public Variable @@ -106414,13 +106439,13 @@ _menuInterfaceTop - false + true true - Private Variable + Public Variable @@ -106430,7 +106455,7 @@ true - _onlineFlag + _id false @@ -106438,6 +106463,9 @@ true + + 1 + Private Variable @@ -106449,7 +106477,7 @@ true - _preloader + _mail false @@ -106468,7 +106496,7 @@ true - _speedUpMode + _onlineFlag false @@ -106476,9 +106504,6 @@ true - - 1 - Private Variable @@ -106490,7 +106515,7 @@ true - _startPage + _preloader false @@ -106498,9 +106523,6 @@ true - - 1 - Private Variable @@ -106589,28 +106611,6 @@ - - - true - - - _changePage - - - false - - - true - - - 2 - - - Private Function - - - - true @@ -106629,7 +106629,7 @@ - + true @@ -106651,70 +106651,7 @@ - - - - true - - - blurSubMenu - - - false - - - true - - - Private Function - - - - - - - true - - - changePage - - - false - - - true - - - 4 - - - Private Function - - - - - - - true - - - changePageDone - - - false - - - true - - - 4 - - - Private Function - - - - + true @@ -106736,7 +106673,7 @@ - + true @@ -106758,7 +106695,7 @@ - + true @@ -106780,7 +106717,7 @@ - + true @@ -106802,7 +106739,7 @@ - + true @@ -106824,7 +106761,7 @@ - + true @@ -106846,7 +106783,7 @@ - + true @@ -106868,7 +106805,7 @@ - + true @@ -106890,7 +106827,7 @@ - + true @@ -106912,7 +106849,7 @@ - + true @@ -106934,7 +106871,7 @@ - + true @@ -106953,7 +106890,7 @@ - + true @@ -106975,7 +106912,7 @@ - + true @@ -106994,7 +106931,7 @@ - + true @@ -107016,29 +106953,7 @@ - - - - true - - - prePullCorner - - - false - - - true - - - 2 - - - Private Function - - - - + true @@ -107060,7 +106975,7 @@ - + true @@ -107082,7 +106997,7 @@ - + true @@ -107104,7 +107019,7 @@ - + true @@ -107126,7 +107041,7 @@ - + true @@ -107148,35 +107063,13 @@ - - - - true - - - removeSubMenu - - - false - - - true - - - 1 - - - Private Function - - - - + true - setZoom + showHelp false @@ -107185,20 +107078,20 @@ true - 3 + 2 Private Function - + true - showHelp + showHideSetup false @@ -107206,15 +107099,12 @@ true - - 2 - Private Function - + true @@ -107236,7 +107126,7 @@ - + true @@ -107258,7 +107148,7 @@ - + true @@ -107280,7 +107170,7 @@ - + true @@ -107302,13 +107192,13 @@ - + true - startPullCorner + startSite false @@ -107324,35 +107214,35 @@ - + true - startSite + screenResize - false + true true - 1 + 10 - Private Function + Public Function - + true - screenResize + startChaptersMenu true @@ -107361,23 +107251,23 @@ true - 10 + 1 Public Function - + true - startChaptersMenu + initSWFAddress - true + false true @@ -107386,17 +107276,17 @@ 1 - Public Function + Private Function - + true - initSWFAddress + initSWFAddressBeforeReady false @@ -107412,13 +107302,13 @@ - + true - initSWFAddressBeforeReady + setScale false @@ -107427,20 +107317,20 @@ true - 1 + 3 Private Function - + true - setScale + stopSearch false @@ -107456,13 +107346,136 @@ + + + + true + + + SWFAddressIn + + + false + + + true + + + Private Function + + + + + + + true + + + SWFAddressOut + + + false + + + true + + + Private Function + + + + + + + true + + + waitSWFAddress + + + false + + + true + + + Private Function + + + + + + + true + + + _changePage + + + true + + + true + + + 2 + + + Public Function + + + + + + + true + + + changePage + + + true + + + true + + + 4 + + + Public Function + + + + + + + true + + + changePageDone + + + false + + + true + + + 4 + + + Private Function + + + true - stopPullCorner + prePullCorner false @@ -107471,7 +107484,7 @@ true - 1 + 2 Private Function @@ -107484,7 +107497,7 @@ true - stopSearch + setZoom false @@ -107506,7 +107519,7 @@ true - SWFAddressIn + startPullCorner false @@ -107514,6 +107527,9 @@ true + + 1 + Private Function @@ -107525,7 +107541,7 @@ true - SWFAddressOut + stopPullCorner false @@ -107533,6 +107549,9 @@ true + + 1 + Private Function @@ -107544,16 +107563,16 @@ true - waitSWFAddress + reloadActivePages - false + true true - Private Function + Public Function @@ -107563,16 +107582,16 @@ true - reloadActivePages + blurSubMenu - true + false true - Public Function + Private Function @@ -107604,7 +107623,7 @@ true - showHideSetup + removeSubMenu false @@ -107612,6 +107631,9 @@ true + + 1 + Private Function @@ -108758,25 +108780,6 @@ - - - true - - - testId - - - true - - - true - - - Public Variable - - - - true @@ -108795,7 +108798,7 @@ - + true @@ -108817,7 +108820,7 @@ - + true @@ -108836,7 +108839,7 @@ - + true @@ -108855,7 +108858,7 @@ - + true @@ -108877,7 +108880,7 @@ - + true @@ -108899,7 +108902,7 @@ - + true @@ -108921,7 +108924,7 @@ - + true @@ -108940,7 +108943,7 @@ - + true @@ -114124,7 +114127,7 @@ true - _highlightInvalid + _shadeAlpha false @@ -114146,7 +114149,7 @@ true - _highlightText + _shadMatFront false @@ -114165,7 +114168,7 @@ true - _shadeAlpha + _sheet false @@ -114187,7 +114190,7 @@ true - _shadMatFront + _side false @@ -114195,6 +114198,9 @@ true + + 1 + Private Variable @@ -114206,7 +114212,7 @@ true - _sheet + _sideNum false @@ -114214,9 +114220,6 @@ true - - 1 - Private Variable @@ -114228,19 +114231,16 @@ true - _side + _active - false + true true - - 1 - - Private Variable + Public Variable @@ -114250,7 +114250,7 @@ true - _sideNum + _page false @@ -114258,6 +114258,9 @@ true + + 1 + Private Variable @@ -114269,16 +114272,19 @@ true - _active + _speedUpMode - true + false true + + 1 + - Public Variable + Private Variable @@ -114288,7 +114294,7 @@ true - _page + _texturePage false @@ -114310,7 +114316,7 @@ true - _speedUpMode + _textureSize false @@ -114318,9 +114324,6 @@ true - - 1 - Private Variable @@ -114332,7 +114335,7 @@ true - _texturePage + _verticesLookup false @@ -114340,9 +114343,6 @@ true - - 1 - Private Variable @@ -114354,7 +114354,7 @@ true - _textureSize + _vertXFrom false @@ -114373,7 +114373,7 @@ true - _verticesLookup + _vertXTo false @@ -114392,7 +114392,7 @@ true - _vertXFrom + _highlightInvalid false @@ -114400,6 +114400,9 @@ true + + 1 + Private Variable @@ -114411,7 +114414,7 @@ true - _vertXTo + _highlightText false @@ -114540,7 +114543,7 @@ true - reload + c-ctr true @@ -114559,7 +114562,7 @@ true - setPage + centerBook true @@ -114568,7 +114571,7 @@ true - 2 + 1 Public Function @@ -114581,19 +114584,16 @@ true - endLoadingTexture + highlightText - false + true true - - 1 - - Private Function + Public Function @@ -114603,19 +114603,16 @@ true - getPageDump + i-ctr - false + true true - - 1 - - Private Function + Public Function @@ -114625,7 +114622,7 @@ true - pushTexture + reload true @@ -114644,7 +114641,7 @@ true - setAnimPos + setMyDepth true @@ -114666,7 +114663,7 @@ true - setSheetsFlipDone + setPage true @@ -114675,7 +114672,7 @@ true - 1 + 2 Public Function @@ -114688,7 +114685,7 @@ true - setVertices + endLoadingTexture false @@ -114710,10 +114707,10 @@ true - setMyDepth + getPageDump - true + false true @@ -114722,7 +114719,7 @@ 1 - Public Function + Private Function @@ -114732,7 +114729,7 @@ true - startAnimVertices + pushTexture true @@ -114740,9 +114737,6 @@ true - - 1 - Public Function @@ -114754,10 +114748,10 @@ true - setColorLookup + setAnimPos - false + true true @@ -114766,7 +114760,7 @@ 1 - Private Function + Public Function @@ -114776,7 +114770,7 @@ true - c-ctr + setSheetsFlipDone true @@ -114784,6 +114778,9 @@ true + + 1 + Public Function @@ -114795,10 +114792,10 @@ true - centerBook + setColorLookup - true + false true @@ -114807,7 +114804,7 @@ 1 - Public Function + Private Function @@ -114817,16 +114814,19 @@ true - highlightText + setVertices - true + false true + + 1 + - Public Function + Private Function @@ -114855,7 +114855,7 @@ true - i-ctr + pivotPointX true @@ -114863,6 +114863,9 @@ true + + 1 + Public Function @@ -114874,7 +114877,7 @@ true - pivotPointX + pivotPointZ true @@ -114918,7 +114921,7 @@ true - pivotPointZ + setPagesAngles true @@ -114927,7 +114930,7 @@ true - 1 + 10 Public Function @@ -114940,7 +114943,7 @@ true - setPagesAngles + speedUpMode true @@ -114949,7 +114952,7 @@ true - 10 + 2 Public Function @@ -114962,7 +114965,7 @@ true - speedUpMode + startAnimVertices true @@ -114971,7 +114974,7 @@ true - 2 + 1 Public Function @@ -117028,19 +117031,16 @@ true - _side + _edgeX - false + true true - - 1 - - Private Variable + Public Variable @@ -117050,16 +117050,19 @@ true - _sideNum + _link - false + true true + + 1 + - Private Variable + Public Variable @@ -117069,7 +117072,7 @@ true - _link + _matOut true @@ -117077,9 +117080,6 @@ true - - 1 - Public Variable @@ -117091,7 +117091,7 @@ true - _page + _matOver true @@ -117099,9 +117099,6 @@ true - - 1 - Public Variable @@ -117113,16 +117110,19 @@ true - _edgeX + _page - false + true true + + 1 + - Private Variable + Public Variable @@ -117132,16 +117132,19 @@ true - _matOut + _side - false + true true + + 1 + - Private Variable + Public Variable @@ -117151,16 +117154,16 @@ true - _matOver + _sideNum - false + true true - Private Variable + Public Variable @@ -117170,7 +117173,7 @@ true - hideMe + butOut true @@ -117189,7 +117192,7 @@ true - setNewOnglePos + butOver true @@ -117197,9 +117200,6 @@ true - - 1 - Public Function @@ -117211,7 +117211,7 @@ true - showMe + c-ctr true @@ -117230,16 +117230,16 @@ true - butOut + hideMe - false + true true - Private Function + Public Function @@ -117249,16 +117249,16 @@ true - butOver + i-ctr - false + true true - Private Function + Public Function @@ -117268,7 +117268,7 @@ true - c-ctr + setNewOnglePos true @@ -117276,6 +117276,9 @@ true + + 1 + Public Function @@ -117287,7 +117290,7 @@ true - i-ctr + showMe true @@ -120998,7 +121001,7 @@ true - bytesLoaded + clean true @@ -121006,9 +121009,6 @@ true - - 2 - Public Function @@ -121020,7 +121020,7 @@ true - c-ctr + preloadAround true @@ -121028,6 +121028,9 @@ true + + 1 + Public Function @@ -121039,7 +121042,7 @@ true - clean + preloadCovers true @@ -121047,6 +121050,9 @@ true + + 1 + Public Function @@ -121058,7 +121064,7 @@ true - getMiniPages + preloadList true @@ -121080,7 +121086,7 @@ true - getPage + preloadNextPage true @@ -121102,7 +121108,7 @@ true - i-ctr + preloadPreloading true @@ -121110,6 +121116,9 @@ true + + 1 + Public Function @@ -121121,7 +121130,7 @@ true - length + preloadStart true @@ -121129,6 +121138,9 @@ true + + 1 + Public Function @@ -121140,16 +121152,16 @@ true - length + checkPreloadingProgress - true + false true - Public Function + Private Function @@ -121159,7 +121171,7 @@ true - pageScale + bytesLoaded true @@ -121168,7 +121180,7 @@ true - 1 + 2 Public Function @@ -121181,7 +121193,7 @@ true - pageScale + bytesTotal true @@ -121190,7 +121202,7 @@ true - 1 + 4 Public Function @@ -121203,7 +121215,7 @@ true - preloadAround + c-ctr true @@ -121211,9 +121223,6 @@ true - - 1 - Public Function @@ -121225,7 +121234,7 @@ true - preloadCovers + getMiniPages true @@ -121247,7 +121256,7 @@ true - preloadList + getPage true @@ -121256,7 +121265,7 @@ true - 1 + 2 Public Function @@ -121269,7 +121278,7 @@ true - preloadNextPage + i-ctr true @@ -121277,9 +121286,6 @@ true - - 2 - Public Function @@ -121291,7 +121297,7 @@ true - preloadPreloading + isLoaded true @@ -121299,9 +121305,6 @@ true - - 1 - Public Function @@ -121313,7 +121316,7 @@ true - preloadStart + length true @@ -121321,9 +121324,6 @@ true - - 1 - Public Function @@ -121335,16 +121335,16 @@ true - checkPreloadingProgress + length - false + true true - Private Function + Public Function @@ -121354,7 +121354,7 @@ true - bytesTotal + pageScale true @@ -121363,7 +121363,7 @@ true - 4 + 1 Public Function @@ -121376,7 +121376,7 @@ true - isLoaded + pageScale true @@ -121384,6 +121384,9 @@ true + + 1 + Public Function @@ -122867,7 +122870,7 @@ true - displayShade + endInnerLoading false @@ -122875,6 +122878,9 @@ true + + 1 + Private Function @@ -122886,7 +122892,7 @@ true - endInnerLoading + loadFromDatas false @@ -122894,9 +122900,6 @@ true - - 1 - Private Function @@ -122908,7 +122911,7 @@ true - loadFromDatas + loadFromNetwork false @@ -122927,7 +122930,7 @@ true - loadFromNetwork + swfLoaded false @@ -122935,6 +122938,9 @@ true + + 1 + Private Function @@ -122946,7 +122952,7 @@ true - setSnapshot + displayShade false @@ -122954,9 +122960,6 @@ true - - 1 - Private Function @@ -122968,7 +122971,7 @@ true - swfLoaded + setSnapshot false @@ -126813,27 +126816,8 @@ true - + - - - true - - - _arrows - - - false - - - true - - - Private Variable - - - - true @@ -126852,7 +126836,7 @@ - + true @@ -126871,7 +126855,7 @@ - + true @@ -126890,7 +126874,7 @@ - + true @@ -126912,7 +126896,7 @@ - + true @@ -126934,7 +126918,7 @@ - + true @@ -126956,7 +126940,7 @@ - + true @@ -126978,7 +126962,7 @@ - + true @@ -126997,7 +126981,7 @@ - + true @@ -127016,7 +127000,7 @@ - + true @@ -127035,7 +127019,7 @@ - + true @@ -127054,7 +127038,7 @@ - + true @@ -127076,26 +127060,7 @@ - - - - true - - - showHideArrows - - - true - - - true - - - Public Function - - - - + true @@ -127114,7 +127079,7 @@ - + true @@ -140994,131 +140959,6 @@ true - - - - - - true - - - - - - - true - - - spaceSide - - - false - - - true - - - Private Variable - - - - - - - true - - - spaceToBook - - - false - - - true - - - Private Variable - - - - - - - true - - - c-ctr - - - true - - - true - - - Public Function - - - - - - - true - - - getBitmapData - - - true - - - true - - - 1 - - - Public Function - - - - - - - true - - - i-ctr - - - true - - - true - - - Public Function - - - - - - - CreateOnglet - - - true - - - true - - - Class - - - - - com.fluidbook.player.tabs @@ -157564,7 +157404,7 @@ true - c-ctr + removeListeners true @@ -157572,6 +157412,9 @@ true + + 1 + Public Function @@ -157583,7 +157426,7 @@ true - i-ctr + c-ctr true @@ -157602,7 +157445,7 @@ true - removeListeners + i-ctr true @@ -157610,9 +157453,6 @@ true - - 1 - Public Function @@ -166057,7 +165897,7 @@ Not Present - + @@ -166068,21 +165908,21 @@ - Symbol 9 + Symbol 7 - Symbol 10 + Symbol 8 - Symbol 23 + Symbol 14 @@ -166096,21 +165936,21 @@ - Symbol 26 + Symbol 27 - Symbol 27 + Symbol 28 - Symbol 33 + Symbol 29 @@ -166135,13 +165975,20 @@ + + + + Symbol 41 + + + 1280 X 900 - 1513952 + 1554149 10 diff --git a/inc/ws/Controlleur/class.ws.flash.php b/inc/ws/Controlleur/class.ws.flash.php index 1390a5a4e..eb2f32327 100644 --- a/inc/ws/Controlleur/class.ws.flash.php +++ b/inc/ws/Controlleur/class.ws.flash.php @@ -464,6 +464,9 @@ class wsFlash extends cubeFlashGateway { global $core; $dao = new wsDAODocument($core->con); $dao->setLinksAndRulers($this->args['book_id'], $this->args['links'], $this->args['rulers']); + if (isset($this->args['getLinks'])) { + $this->getLinks(); + } } public function formatSize($val) @@ -479,7 +482,6 @@ class wsFlash extends cubeFlashGateway { global $core; $dao = new wsDAOBook($core->con); $book = $dao->selectById($this->args['book_id']); - if ($book->extras != '') { $tidy = cubeXML::tidy('' . $book->extras . ''); $tidy = str_replace('', '', $tidy); @@ -517,26 +519,20 @@ class wsFlash extends cubeFlashGateway { $book = $dao->selectById($this->args['book_id']); $pages = $dao->getPagesOfBook($this->args['book_id']); $daoDoc = new wsDAODocument($core->con); - $nb_pages = count($pages); $this->xml->addChild('pages', $nb_pages); - $total_size = 0; foreach($pages as $page => $info) { $file = WS_DOCS . '/' . $info['document_id'] . '/p' . $info['document_page'] . '.swf'; $total_size += filesize($file); } $average_size = $total_size / $nb_pages; - $total = self::formatSize($total_size); $average = self::formatSize($average_size); - $firstDoc = $daoDoc->selectById($pages[1]['document_id']); $size = $firstDoc->generalInfos['size']; - $this->xml->addChild('width', $size[0]); $this->xml->addChild('height', $size[1]); - $res = __('Nombre de pages') . ' : ' . "\n"; $res .= $nb_pages . ' ' . __('pages') . "\n"; $res .= "\n"; @@ -560,7 +556,6 @@ class wsFlash extends cubeFlashGateway { public function getLangs() { global $core; - if (isset($this->args['book_id'])) { $dao = new wsDAOBook($core->con); $book = $dao->selectById($this->args['book_id']); @@ -572,7 +567,6 @@ class wsFlash extends cubeFlashGateway { $dao = new wsDAOLang($core->con); $langs = $dao->selectAll(); - foreach($langs as $lang) { $nom = cubeLang::getNameByCode($lang->lang_id, $core->user->lang); $l = $this->xml->addChild('lang', json_encode($lang->traductions)); @@ -609,6 +603,13 @@ class wsFlash extends cubeFlashGateway { $this->xml->addChild('texts', json_encode($GLOBALS['__l10n'])); } + public function copyLinks() + { + global $core; + $daoDocument = new wsDAODocument($core->con); + $daoDocument->copyLinks($this->args['fromDoc'], $this->args['toDoc']); + } + public function compile() { global $core; @@ -618,17 +619,15 @@ class wsFlash extends cubeFlashGateway { $log = $dao->compile($this->args['book_id'], 3); $log = str_replace('&', '&', $log); $log = str_replace('&', '&', $log); - - //$this->xml->addChild('log', $log); + // $this->xml->addChild('log', $log); } $book = $dao->selectById($this->args['book_id']); - - $viewer='viewer'; - if(wsDroits::admin()){ - $viewer='vieweru'; + $viewer = 'viewer'; + if (wsDroits::admin()) { + $viewer = 'vieweru'; } - $absoluteURL = 'http://' . $_SERVER['HTTP_HOST'] . '/'.$viewer.'/' . $book->book_id . '_' . $book->hash . '_' . TIME . '/'; + $absoluteURL = 'http://' . $_SERVER['HTTP_HOST'] . '/' . $viewer . '/' . $book->book_id . '_' . $book->hash . '_' . TIME . '/'; $this->xml->addChild('compiledBook', $absoluteURL . 'index.swf?base=' . $absoluteURL); } } diff --git a/inc/ws/DAO/class.ws.dao.document.php b/inc/ws/DAO/class.ws.dao.document.php index 8ac704cf9..2eba9d29b 100644 --- a/inc/ws/DAO/class.ws.dao.document.php +++ b/inc/ws/DAO/class.ws.dao.document.php @@ -168,6 +168,16 @@ class wsDAODocument extends commonDAO { $c->update('WHERE book_id=\'' . $this->con->escape($book_id) . '\''); } + public function copyLinks($from, $to) + { + $sql = 'REPLACE INTO document_links_versions (`document_id`,`links`,`rulers`,`update`) ' + . 'SELECT \'' . $to . '\',`links`,`rulers`,`update` FROM document_links_versions WHERE document_id=\'' . $from . '\''; + + fb($sql); + + $this->con->execute($sql); + } + public function setLinksFromOldFluidbook($book_id) { $daoBook = new wsDAOBook($this->con); diff --git a/swf/_src/composerLibrary.swc b/swf/_src/composerLibrary.swc index 06e274bf7..5046205a1 100644 Binary files a/swf/_src/composerLibrary.swc and b/swf/_src/composerLibrary.swc differ diff --git a/swf/_src/wsComposerLibrary.fla b/swf/_src/wsComposerLibrary.fla index b0d112975..f6c0ba1e4 100644 Binary files a/swf/_src/wsComposerLibrary.fla and b/swf/_src/wsComposerLibrary.fla differ