[Mapbender-commits] r7966 - branches/2.7/documents/api_js/files/http/plugins

svn_mapbender at osgeo.org svn_mapbender at osgeo.org
Tue Jul 19 08:54:21 EDT 2011


Author: astrid_emde
Date: 2011-07-19 05:54:21 -0700 (Tue, 19 Jul 2011)
New Revision: 7966

Modified:
   branches/2.7/documents/api_js/files/http/plugins/mb_print-php.html
Log:
merged with trunk

Modified: branches/2.7/documents/api_js/files/http/plugins/mb_print-php.html
===================================================================
--- branches/2.7/documents/api_js/files/http/plugins/mb_print-php.html	2011-07-19 12:53:24 UTC (rev 7965)
+++ branches/2.7/documents/api_js/files/http/plugins/mb_print-php.html	2011-07-19 12:54:21 UTC (rev 7966)
@@ -18,7 +18,7 @@
 2,1,'pdf print','Print','div','','',1,1,2,2,5,'',
 '<div id="printPDF_working_bg"></div><div id="printPDF_working"><img src="../img/indicator_wheel.gif" style="padding:10px 0 0 10px">Generating PDF</div><div id="printPDF_input"><form id="printPDF_form" action="../print/printFactory.php"><div id="printPDF_selector"></div><div class="print_option"><input type="hidden" id="map_url" name="map_url" value=""/><input type="hidden" id="legend_url" name="legend_url" value=""/><input type="hidden" id="overview_url" name="overview_url" value=""/><input type="hidden" id="map_scale" name="map_scale" value=""/><input type="hidden" name="measured_x_values" /><input type="hidden&
 quot; name="measured_y_values" /><br /></div><div class="print_option" id="printPDF_formsubmit"><input id="submit" type="submit" value="Print"><br /></div></form><div id="printPDF_result"></div></div>',
 'div','../plugins/mb_print.php',
-'../../lib/printbox.js,../extensions/jquery-ui-1.7.2.custom/development-bundle/external/bgiframe/jquery.bgiframe.min.js,../extensions/jquery.form.min.js',
+'../../lib/printbox.js,../extensions/jquery-ui-1.7.2.custom/development-bundle/external/bgiframe/jquery.bgiframe.js,../extensions/jquery.form.min.js',
 'mapframe1','','http://www.mapbender.org/index.php/Print');
 
 INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
@@ -26,6 +26,22 @@
 'mbPrintConfig', '{"Standard": "mapbender_template.json"}', '' ,'var');
 
 INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
+var_value, context, var_type) VALUES('<appId>', 'printPDF',
+'unlink', 'true', 'delete print pngs after pdf creation' ,'php_var');
+
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
+var_value, context, var_type) VALUES('<appId>', 'printPDF',
+'logRequests', 'false', 'log wms requests for debugging' ,'php_var');
+
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
+var_value, context, var_type) VALUES('<appId>', 'printPDF',
+'logType', 'file', 'log mode can be set to file or db' ,'php_var');
+
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
+var_value, context, var_type) VALUES('<appId>', 'printPDF',
+'timeout', '90000', 'define maximum milliseconds to wait for print request finished' ,'var');
+
+INSERT INTO gui_element_vars(fkey_gui_id, fkey_e_id, var_name,
 var_value, context, var_type) VALUES('<appId>', 'body',
 'print_css', '../css/print_div.css', '' ,'file/css');</pre></blockquote><h4 class=CHeading>Help</h4><p><a href="http://www.mapbender.org/PrintPDF_with_template" class=LURL target=_top>http://www.mapbender.org/PrintPDF_with_template</a></p><h4 class=CHeading>Maintainer</h4><p><a href="http://www.mapbender.org/User:Michael_Schulz" class=LURL target=_top>http://www.mapbender.org/User:Michael_Schulz</a> <a href="http://www.mapbender.org/User:Christoph_Baudson" class=LURL target=_top>http://www.mapbender.org/User:Christoph_Baudson</a></p><h4 class=CHeading>Parameters</h4><table border=0 cellspacing=0 cellpadding=0 class=CDescriptionList><tr><td class=CDLEntry>mbPrintConfig</td><td class=CDLDescription><b>[optional]</b> object with name and filename of template, like    { &ldquo;Standard&rdquo;: &ldquo;a_template.json&rdquo;, &ldquo;Different&rdquo;: &ldquo;another_template.json&rdquo; }</td></tr></table><h4 class=CHeading>License</h4><p>Copyright &copy; 2009, Open Source Geospati
 al Foundation This program is dual licensed under the GNU General Public License and Simplified BSD license.&nbsp; <a href="http://svn.osgeo.org/mapbender/trunk/mapbender/license/license.txt" class=LURL target=_top>http://svn.osgeo.org<wbr>/mapbender<wbr>/trunk<wbr>/mapbender<wbr>/license<wbr>/license.txt</a></p><!--START_ND_SUMMARY--><div class=Summary><div class=STitle>Summary</div><div class=SBorder><table border=0 cellspacing=0 cellpadding=0 class=STable><tr class="SMain"><td class=SEntry><a href="#printPDF" >printPDF</a></td><td class=SDescription>Mapbender print PDF with PDF templates module.</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#printPDF.Properties" >Properties</a></td><td class=SDescription></td></tr><tr class="SProperty SIndent2 SMarked"><td class=SEntry><a href="#printPDF.actualConfig" >actualConfig</a></td><td class=SDescription>object, holds the actual configuration after loading the json file</td></tr><tr class="SProperty SIndent2"><td 
 class=SEntry><a href="#printPDF.printBox" >printBox</a></td><td class=SDescription>the movable printframe</td></tr><tr class="SGroup SIndent1"><td class=SEntry><a href="#printPDF.Functions" >Functions</a></td><td class=SDescription></td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#printPDF.createPrintBox" id=link1 onMouseOver="ShowTip(event, 'tt1', 'link1')" onMouseOut="HideTip('tt1')">createPrintBox</a></td><td class=SDescription>creates a printBox in the current view, calculates the scale (tbd. </td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#printPDF.getPDFMapSize" id=link2 onMouseOver="ShowTip(event, 'tt2', 'link2')" onMouseOut="HideTip('tt2')">getPDFMapSize</a></td><td class=SDescription>checks the actual config for the size w/h values.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#printPDF.destroyPrintBox" id=link3 onMouseOver="ShowTip(event, 'tt3', 'link3')" onMouseOut="HideTip('tt3')">destroyPr
 intBox</a></td><td class=SDescription>removes an existing printBox.</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#printPDF.mod_printPDF_init" id=link4 onMouseOver="ShowTip(event, 'tt4', 'link4')" onMouseOut="HideTip('tt4')">mod_printPDF_init</a></td><td class=SDescription>initializes the print modules, generates template chooser and loads first configuration.</td></tr><tr class="SFunction SIndent2 SMarked"><td class=SEntry><a href="#printPDF.loadConfig" id=link5 onMouseOver="ShowTip(event, 'tt5', 'link5')" onMouseOut="HideTip('tt5')">loadConfig</a></td><td class=SDescription>GETs the config, build corresponding form, remove an existing printBox</td></tr><tr class="SFunction SIndent2"><td class=SEntry><a href="#printPDF.hookForm" id=link6 onMouseOver="ShowTip(event, 'tt6', 'link6')" onMouseOut="HideTip('tt6')">hookForm</a></td><td class=SDescription>utility method to connect the form plugin to the print form.</td></tr><tr class="SFunction SIndent2 SMarked
 "><td class=SEntry><a href="#printPDF.showResult" id=link7 onMouseOver="ShowTip(event, 'tt7', 'link7')" onMouseOut="HideTip('tt7')">showResult</a></td><td class=SDescription>load the generated PDF from the returned URL as an attachment, that triggers a download popup or is displayed in PDF plugin.</td></tr></table></div></div><!--END_ND_SUMMARY--></div></div></div>
 



More information about the Mapbender_commits mailing list