[mapguide-commits] r1081 - in trunk/MgDev/Web/src: . schemareport
schemareport/templatefiles
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Jan 30 14:04:29 EST 2007
Author: chrisclaydon
Date: 2007-01-30 14:04:28 -0500 (Tue, 30 Jan 2007)
New Revision: 1081
Added:
trunk/MgDev/Web/src/schemareport/
trunk/MgDev/Web/src/schemareport/blank.php
trunk/MgDev/Web/src/schemareport/describeschema.php
trunk/MgDev/Web/src/schemareport/displayschema.css
trunk/MgDev/Web/src/schemareport/displayschema.php
trunk/MgDev/Web/src/schemareport/displayschema.xsl
trunk/MgDev/Web/src/schemareport/displayschemafunctions.php
trunk/MgDev/Web/src/schemareport/layerdefinitionfactory.php
trunk/MgDev/Web/src/schemareport/main.php
trunk/MgDev/Web/src/schemareport/mapdefinitionfactory.php
trunk/MgDev/Web/src/schemareport/showclass.php
trunk/MgDev/Web/src/schemareport/showgeom.php
trunk/MgDev/Web/src/schemareport/templatefiles/
trunk/MgDev/Web/src/schemareport/templatefiles/arearule.templ
trunk/MgDev/Web/src/schemareport/templatefiles/areatypestyle.templ
trunk/MgDev/Web/src/schemareport/templatefiles/extents.templ
trunk/MgDev/Web/src/schemareport/templatefiles/layerdefinition.templ
trunk/MgDev/Web/src/schemareport/templatefiles/linerule.templ
trunk/MgDev/Web/src/schemareport/templatefiles/linetypestyle.templ
trunk/MgDev/Web/src/schemareport/templatefiles/mapdefinition.templ
trunk/MgDev/Web/src/schemareport/templatefiles/maplayer.templ
trunk/MgDev/Web/src/schemareport/templatefiles/maplayergroup.templ
trunk/MgDev/Web/src/schemareport/templatefiles/pointrule.templ
trunk/MgDev/Web/src/schemareport/templatefiles/pointtypestyle.templ
trunk/MgDev/Web/src/schemareport/templatefiles/scalerange.templ
trunk/MgDev/Web/src/schemareport/templatefiles/weblayout.templ
trunk/MgDev/Web/src/schemareport/weblayoutfactory.php
Log:
RFC 8 - schema report PHP pages
Added: trunk/MgDev/Web/src/schemareport/blank.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/blank.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/blank.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,27 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<html>
+ <head>
+ <title>Blank Document</title>
+ <link href="displayschema.css" rel="stylesheet" type="text/css">
+ </head>
+</html>
Added: trunk/MgDev/Web/src/schemareport/describeschema.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/describeschema.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/describeschema.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,36 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+ <?php
+ $sessionId = $_GET['sessionId'];
+ $resName = $_GET['resId'];
+ $schemaName = $_GET['schemaName'];
+ $className = $_GET['className'];
+
+ echo '<frameset cols="45%,*" border=0 frameborder=0 framespacing=0>';
+ echo '<frame name="srcFrame" src="displayschema.php?resId=' . $resName . '&sessionId=' . $sessionId . '&schemaName=' . $schemaName . '&className=' . $className . '">';
+ echo '<frame name="viewFrame" src="blank.php">';
+ echo '</frameset>';
+ ?>
+</html>
+
Added: trunk/MgDev/Web/src/schemareport/displayschema.css
===================================================================
--- trunk/MgDev/Web/src/schemareport/displayschema.css 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/displayschema.css 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,59 @@
+body {
+ color: #000000;
+ font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
+ background-color: #f2f2f2;
+ font-size: 8pt;
+}
+table {
+ margin: 5px 5px 5px 20px;
+ color: black;
+}
+table.data {
+ margin: 0px 0px 0px 0px;
+ color: black;
+}
+td {
+ color: #000000;
+ padding: 3px;
+ border: 1px solid #000000;
+}
+td.data {
+ color: #000000;
+ padding: 0px;
+ border: 0px solid #000000;
+}
+td.heading {
+ /*color: #f2f2f2;*/
+ background: #e2e2e2;
+}
+hr {
+ color: #CCCCCC;
+ height: 1px;
+ margin: 5px 0px 5px 0px;
+}
+h1 {
+ margin: 10px 0px 20px 0px;
+ font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
+ font-size: 10pt;
+ font-weight: bold;
+}
+h2 {
+ margin: 15px 0px 15px 5px;
+ font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
+ font-size: 9pt;
+ font-weight: bold;
+}
+h3 {
+ margin: 10px 0px 10px 20px;
+ font-family: 'Microsoft Sans Serif' , Tahoma, Arial, Verdana, Sans-Serif;
+ font-size: 8pt;
+ font-weight: bold;
+}
+span {
+ text-align: right;
+ margin: 0px 15px 0px 0px;
+}
+a:link {color: #66CCFF}
+a:visited {color: #66CCFF}
+a:hover {color: #66AAFF}
+a:active {color: #990099}
Added: trunk/MgDev/Web/src/schemareport/displayschema.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/displayschema.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/displayschema.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,94 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+
+ <head>
+ <title>Displays the schema</title>
+ <link href="displayschema.css" rel="stylesheet" type="text/css">
+ </head>
+
+ <body>
+
+ <?php
+ include '../mapadmin/Constants.php';
+
+ $sessionId = $_GET['sessionId'];
+ $resName = $_GET['resId'];
+ $schemaName = $_GET['schemaName'];
+ $className = $_GET['className'];
+
+ try
+ {
+ $thisFile = __FILE__;
+ $pos = strrpos($thisFile, '\\');
+ if ($pos == false)
+ $pos = strrpos($thisFile, '/');
+ $configFilePath = substr($thisFile, 0, $pos+1) . "../webconfig.ini";
+ MgInitializeWebTier ($configFilePath);
+
+ $userInfo = new MgUserInformation($sessionId);
+ $site = new MgSiteConnection();
+ $site->Open($userInfo);
+
+ $featureSrvc = $site->CreateService(MgServiceType::FeatureService);
+
+ $resId = new MgResourceIdentifier($resName);
+
+ $xml = $featureSrvc->DescribeSchemaAsXml($resId, $schemaName);
+ $xsl_file = 'displayschema.xsl';
+
+ // Create new object for the XML file
+ $xml_object = new DomDocument();
+ if(!file_exists($xml))
+ exit('Cannot open $xml_file');
+ $xml_object->loadXML($xml);
+
+ // Create new object for the XSL stylesheet
+ $xsl_object = new DomDocument();
+ if(!file_exists($xsl_file))
+ exit('Cannot open $xsl_file');
+ $xsl_object->load($xsl_file);
+
+ // Configure the transformer
+ $proc = new XSLTProcessor;
+ $proc->importStyleSheet($xsl_object);
+
+ $proc->setParameter('', 'schemaName', $schemaName);
+ $proc->setParameter('', 'className', $className);
+ $proc->setParameter('', 'resName', $resName);
+ $proc->setParameter('', 'sessionId', $sessionId);
+
+ $html = $proc->transformToXML($xml_object);
+
+ print($html);
+ }
+ catch (MgException $e)
+ {
+ echo $e->GetMessage();
+ }
+
+ ?>
+
+ </body>
+
+</html>
Added: trunk/MgDev/Web/src/schemareport/displayschema.xsl
===================================================================
--- trunk/MgDev/Web/src/schemareport/displayschema.xsl 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/displayschema.xsl 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,140 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:fdo="http://fdo.osgeo.org/schemas">
+
+<xsl:output method='html'/>
+<xsl:param name="schemaName"/>
+<xsl:param name="className"/>
+<xsl:param name="resName"/>
+<xsl:param name="sessionId"/>
+
+<xsl:template match="/">
+ <xsl:apply-templates select="//xs:schema"/>
+</xsl:template>
+
+<xsl:template match="xs:schema">
+ <xsl:if test="contains(@targetNamespace,$schemaName) or $schemaName=''">
+ <xsl:if test="$className=./xs:element/@name or $className=''">
+ <h1>SchemaName:
+ <xsl:call-template name="getSchemaName">
+ <xsl:with-param name="nameSpace" select="@targetNamespace"/>
+ </xsl:call-template>
+ </h1>
+ <xsl:for-each select="xs:element">
+ <xsl:if test="$className=@name or $className=''">
+ <xsl:variable name="selector" select="@type"/>
+ <xsl:variable name="identity" select="xs:key/xs:field/@xpath"/>
+ <xsl:variable name="currclassname" select="@name"/>
+ <h2><span>ClassName: <xsl:value-of select="$currclassname"/></span>
+ <a><xsl:attribute name="href">showclass.php?resId=<xsl:value-of select="$resName"/>&schemaName=<xsl:value-of select="../@targetNamespace"/>&className=<xsl:value-of select="$currclassname"/>&sessionId=<xsl:value-of select="$sessionId"/>&index=0</xsl:attribute><xsl:attribute name="target">viewFrame</xsl:attribute>Show details</a>
+ </h2>
+ <!--apply template to the complexType-->
+ <xsl:apply-templates select="../xs:complexType">
+ <xsl:with-param name="selector" select="$selector"/>
+ <xsl:with-param name="identity" select="$identity"/>
+ <xsl:with-param name="currclassname" select="$currclassname"/>
+ <xsl:with-param name="namespace" select="../@targetNamespace"/>
+ </xsl:apply-templates>
+ </xsl:if>
+ </xsl:for-each>
+ <hr/>
+ </xsl:if>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="getSchemaName">
+ <xsl:param name="nameSpace"/>
+ <xsl:choose>
+ <xsl:when test="contains($nameSpace, '/')">
+ <xsl:call-template name="getSchemaName">
+ <xsl:with-param name="nameSpace" select="substring-after($nameSpace, '/')"/>
+ </xsl:call-template>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:value-of select="$nameSpace"/>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+<xsl:template match="xs:complexType">
+ <xsl:param name="selector"/>
+ <xsl:param name="identity"/>
+ <xsl:param name="currclassname"/>
+ <xsl:param name="namespace"/>
+ <!--select only the complexType that matches the selector key field-->
+ <xsl:if test="substring-after($selector, ':')=@name">
+ <!--create table for data properties-->
+ <xsl:if test="count(.//xs:element/@type) < count(.//xs:element)">
+ <h3>Data Properties</h3>
+ <table cellspacing="0">
+ <tr>
+ <td class="heading">Property Name</td>
+ <td class="heading">Property Type</td>
+ </tr>
+ <!--apply template to elements-->
+ <xsl:apply-templates select=".//xs:element">
+ <xsl:with-param name="identity" select="$identity"/>
+ </xsl:apply-templates>
+ </table>
+ </xsl:if>
+ <!--create table for geometric properties-->
+ <xsl:if test=".//xs:element/@type='gml:AbstractGeometryType'">
+ <h3><span>Geometric Properties</span>
+ <xsl:call-template name="getGeom">
+ <xsl:with-param name="currclassname" select="$currclassname"/>
+ <xsl:with-param name="sessionId" select="$sessionId"/>
+ <xsl:with-param name="namespace" select="$namespace"/>
+ </xsl:call-template>
+ </h3>
+ <table cellspacing="0">
+ <tr>
+ <td class="heading">Property Name</td>
+ <td class="heading">Property Type</td>
+ <td class="heading">hasMeasures</td>
+ <td class="heading">hasElevation</td>
+ </tr>
+ <!--apply template to elements-->
+ <xsl:apply-templates select=".//xs:element"/>
+ </table>
+ </xsl:if>
+ </xsl:if>
+</xsl:template>
+
+<xsl:template name="getGeom">
+ <xsl:param name="currclassname"/>
+ <xsl:param name="sessionId"/>
+ <xsl:param name="namespace"/>
+ <xsl:for-each select=".//xs:element">
+ <xsl:if test="@type='gml:AbstractGeometryType'">
+ <a><xsl:attribute name="href">showgeom.php?resId=<xsl:value-of select="$resName"/>&schemaName=<xsl:value-of select="$namespace"/>&className=<xsl:value-of select="$currclassname"/>&geomname=<xsl:value-of select="@name"/>&geomtype=<xsl:value-of select="@fdo:geometricTypes"/>&sessionId=<xsl:value-of select="$sessionId"/></xsl:attribute><xsl:attribute name="target">viewFrame</xsl:attribute>Show details</a>
+ </xsl:if>
+ </xsl:for-each>
+</xsl:template>
+
+<xsl:template match="xs:element">
+ <xsl:param name="identity"/>
+ <xsl:choose>
+ <!--determines the data properties-->
+ <xsl:when test="$identity">
+ <xsl:if test="not(@type)">
+ <tr>
+ <!--checks if the element is the identity property-->
+ <td><xsl:if test="$identity=@name">*</xsl:if><xsl:value-of select="@name"/></td>
+ <td><xsl:variable name="type" select=".//xs:restriction/@base"/><xsl:value-of select="substring-after($type, ':')"/><xsl:variable name="maxlength" select=".//xs:maxLength/@value"/><xsl:if test="$maxlength and not($maxlength='')">(<xsl:value-of select="$maxlength"/>)</xsl:if></td>
+ </tr>
+ </xsl:if>
+ </xsl:when>
+ <!--determines the geometry properties-->
+ <xsl:otherwise>
+ <xsl:if test="@type='gml:AbstractGeometryType'">
+ <tr>
+ <td><xsl:value-of select="@name"/></td>
+ <td><xsl:value-of select="@fdo:geometricTypes"/></td>
+ <td><xsl:value-of select="@fdo:hasMeasure"/></td>
+ <td><xsl:value-of select="@fdo:hasElevation"/></td>
+ </tr>
+ </xsl:if>
+ </xsl:otherwise>
+ </xsl:choose>
+</xsl:template>
+
+</xsl:stylesheet>
Added: trunk/MgDev/Web/src/schemareport/displayschemafunctions.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/displayschemafunctions.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/displayschemafunctions.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,165 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<?php
+
+function GetPropertyName($featureReader, $property, $propertyType)
+{
+ switch ($propertyType) {
+ case MgPropertyType::Boolean :
+ $val = $featureReader->GetBoolean($property);
+ break;
+ case MgPropertyType::Byte :
+ $val = $featureReader->GetByte($property);
+ break;
+ case MgPropertyType::DateTime :
+ $val = $featureReader->GetDateTime($property);
+ break;
+ case MgPropertyType::Single :
+ $val = $featureReader->GetSingle($property);
+ break;
+ case MgPropertyType::Double :
+ $val = $featureReader->GetDouble($property);
+ break;
+ case MgPropertyType::Int16 :
+ $val = $featureReader->GetInt16($property);
+ break;
+ case MgPropertyType::Int32 :
+ $val = $featureReader->GetInt32($property);
+ break;
+ case MgPropertyType::Int64 :
+ $val = $featureReader->GetInt64($property);
+ break;
+ case MgPropertyType::String :
+ $val = $featureReader->GetString($property);
+ break;
+ default : $val = NULL;
+ }
+
+ return $val;
+}
+
+function CreateLayerDef($factory, $featureClass, $featureName, $geomName, $geomType)
+{
+ switch ($geomType) {
+ case "point ":
+ // Create a point rule
+ $color = 'FFFF0000';
+ $pointRule = $factory->CreatePointRule($color);
+ $pointTypeStyle = $factory->CreatepointTypeStyle($pointRule);
+ // Create a scale range
+ $minScale = '0';
+ $maxScale = '1000000000000';
+ $scaleRange = $factory->CreateScaleRange($minScale, $maxScale, $pointTypeStyle);
+ break;
+ case "curve ":
+ // Create a line rule
+ $color = 'FF0000FF';
+ $lineRule = $factory->CreateLineRule($color);
+ // Create a line type style
+ $lineTypeStyle = $factory->CreateLineTypeStyle($lineRule);
+ // Create a scale range
+ $minScale = '0';
+ $maxScale = '1000000000000';
+ $scaleRange = $factory->CreateScaleRange($minScale, $maxScale, $lineTypeStyle);
+ break;
+ case "surface ":
+ // Create three area rules for thress different scale ranges
+ $color = 'FFFFBF20';
+ $areaRule = $factory->CreateAreaRule($color);
+ // Create an area type style
+ $areaTypeStyle = $factory->CreateAreaTypeStyle($areaRule);
+ // Create a scale range
+ $minScale = '0';
+ $maxScale = '1000000000000';
+ $scaleRange = $factory->CreateScaleRange($minScale, $maxScale, $areaTypeStyle);
+ break;
+ }
+
+ $layerDefinition = $factory->CreateLayerDefinition($featureClass, $featureName, $geomName, $scaleRange);
+ return $layerDefinition;
+}
+
+function CreateMapDef($factory, $className, $resId, $coordinate, $minX, $maxX, $minY, $maxY)
+{
+ // Inputs for Extents
+ $extents = $factory->CreateExtents($minX, $maxX, $minY, $maxY);
+
+ // Inputs for MapLayer
+ $layerName = $className;
+ $selectable = 'true';
+ $showLegend = 'true';
+ $legendLabel = $className;
+ $expandLegend = 'true';
+ $visible = 'true';
+ $groupName = 'Geometry';
+ $mapLayer = $factory->CreateMapLayer($layerName, $resId, $selectable, $showLegend, $legendLabel, $expandLegend, $visible, $groupName);
+
+ // Inputs for MapLayerGroup
+ $groupName = 'Geometry';
+ $visible = 'true';
+ $showLegend = 'true';
+ $expandLegend = 'true';
+ $legendLabel = 'Geometry';
+ $mapLayerGroup = $factory->CreateMapLayerGroup($groupName, $visible, $showLegend, $expandLegend, $legendLabel);
+
+ // Inputs for MapDefinition
+ $mapName = 'Geometry Map';
+ $backgroundColor = 'FFCDBD9C';
+ $mapDefinition = $factory->CreateMapDefinition($mapName, $coordinate, $extents, $backgroundColor, $mapLayer, $mapLayerGroup);
+
+ return $mapDefinition;
+}
+
+function CreateWebLay($factory, $resId)
+{
+ // Inputs for WebLayout
+ $layoutName = 'Geometry Layout';
+ $webLayout = $factory->CreateWebLayout($layoutName, $resId);
+
+ return $webLayout;
+}
+
+function DisplayPaging($index, $resName, $schemaName, $className, $sessionId, $maxEntries, $currentPage, $maxPage, $lastEntry)
+{
+ // Display paging
+ if($index!=0)
+ {
+ echo '<a href="showclass.php?resId=' . $resName . '&schemaName=' . $schemaName . '&className=' . $className . '&sessionId=' . $sessionId . '&index=0"><<FIRST</a>';
+ echo ' ';
+ echo '<a href="showclass.php?resId=' . $resName . '&schemaName=' . $schemaName . '&className=' . $className . '&sessionId=' . $sessionId . '&index=' . ($index-$maxEntries) . '"><PREV</a>';
+ }
+ else
+ echo '<<FIRST   <PREV';
+
+ echo ' Page ' . $currentPage . ' of ' . $maxPage . ' ';
+
+ if($currentPage<$maxPage)
+ {
+ echo '<a href="showclass.php?resId=' . $resName . '&schemaName=' . $schemaName . '&className=' . $className . '&sessionId=' . $sessionId . '&index=' . ($index+$maxEntries) . '">NEXT></a>';
+ echo ' ';
+ echo '<a href="showclass.php?resId=' . $resName . '&schemaName=' . $schemaName . '&className=' . $className . '&sessionId=' . $sessionId . '&index=' . $lastEntry . '">LAST>></a>';
+ }
+ else
+ echo 'NEXT> LAST>>';
+}
+
+?>
Added: trunk/MgDev/Web/src/schemareport/layerdefinitionfactory.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/layerdefinitionfactory.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/layerdefinitionfactory.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,99 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<?php
+
+class LayerDefinitionFactory
+{
+
+ static function CreateAreaRule($foreGroundColor)
+ {
+ $areaRule = file_get_contents("templatefiles/arearule.templ");
+ $areaRule = sprintf($areaRule, $foreGroundColor);
+ return $areaRule;
+ }
+
+ static function CreateAreaTypeStyle($areaRules)
+ {
+ $style = file_get_contents("templatefiles/areatypestyle.templ");
+ $style = sprintf($style, $areaRules);
+ return $style;
+
+ }
+
+ static function CreateLineRule($color)
+ {
+ $lineRule = file_get_contents("templatefiles/linerule.templ");
+ $lineRule = sprintf($lineRule, $color);
+ return $lineRule;
+ }
+
+ static function CreateLineTypeStyle($lineRules)
+ {
+ $lineStyle = file_get_contents("templatefiles/linetypestyle.templ");
+ $lineStyle = sprintf($lineStyle, $lineRules);
+ return $lineStyle;
+ }
+
+ static function CreateMarkSymbol($resourceId, $symbolName, $width, $height, $color)
+ {
+ $markSymbol = file_get_contents("templatefiles/marksymbol.templ");
+ $markSymbol = sprintf($markSymbol, $width, $height, $resourceId, $symbolName, $color);
+ return $markSymbol;
+ }
+
+ static function CreateTextSymbol($text, $fontHeight, $foregroundColor)
+ {
+ $textSymbol = file_get_contents("templatefiles/textsymbol.templ");
+ $textSymbol = sprintf($textSymbol, $fontHeight, $fontHeight, $text, $foregroundColor);
+ return $textSymbol;
+ }
+
+ static function CreatePointRule($color)
+ {
+ $pointRule = file_get_contents("templatefiles/pointrule.templ");
+ $pointRule = sprintf($pointRule, $color);
+ return $pointRule;
+ }
+
+ static function CreatePointTypeStyle($pointRule)
+ {
+ $pointTypeStyle = file_get_contents("templatefiles/pointtypestyle.templ");
+ $pointTypeStyle = sprintf($pointTypeStyle, $pointRule);
+ return $pointTypeStyle;
+ }
+
+ static function CreateScaleRange($minScale, $maxScale, $typeStyle)
+ {
+ $scaleRange = file_get_contents("templatefiles/scalerange.templ");
+ $scaleRange = sprintf($scaleRange, $minScale, $maxScale, $typeStyle);
+ return $scaleRange;
+ }
+
+ static function CreateLayerDefinition($resourceId, $featureClass, $geometry, $featureClassRange)
+ {
+ $layerDef = file_get_contents("templatefiles/layerdefinition.templ");
+ $layerDef = sprintf($layerDef, $resourceId, $featureClass, $geometry, $featureClassRange);
+ return $layerDef;
+ }
+}
+
+?>
Added: trunk/MgDev/Web/src/schemareport/main.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/main.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/main.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,75 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+
+ <head>
+ <title>Displays the schema</title>
+ <link href="displayschema.css" rel="stylesheet" type="text/css">
+ </head>
+
+ <body>
+
+ <h1>Describe Schema</h1>
+
+ <?php
+ include '../mapadmin/Constants.php';
+
+ $username = "Administrator";
+ $password = "admin";
+
+ try
+ {
+ $thisFile = __FILE__;
+ $pos = strrpos($thisFile, '\\');
+ if ($pos == false)
+ $pos = strrpos($thisFile, '/');
+ $configFilePath = substr($thisFile, 0, $pos+1) . "../webconfig.ini";
+ MgInitializeWebTier ($configFilePath);
+
+ $userInfo = new MgUserInformation($username, $password);
+ $site = new MgSiteConnection();
+ $site->Open($userInfo);
+ $sessionId = $site->GetSite()->CreateSession();
+ }
+ catch (MgException $e)
+ {
+ echo $e->GetMessage();
+
+ }
+ ?>
+
+ <form action="describeschema.php" method="get">
+ Resource ID:
+ <input name="resId" value="Library://Samples/Sheboygan/Data/RoadCenterLines.FeatureSource" type="text" size="70"><br><br>
+ Schema:
+ <input name="schemaName" type="text" size="20"><br><br>
+ Class:
+ <input name="className" type="text" size="20"><br><br>
+ <input name="sessionId" type="hidden" value="<?php echo $sessionId ?>">
+
+ <input type="submit" value="Find">
+ </form>
+
+ </body>
+
+</html>
Added: trunk/MgDev/Web/src/schemareport/mapdefinitionfactory.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/mapdefinitionfactory.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/mapdefinitionfactory.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,56 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<?php
+
+class MapDefinitionFactory
+{
+
+ static function CreateMapLayerGroup($name, $visible, $showLegend, $expandLegend, $legendLabel)
+ {
+ $mapLayerGroup = file_get_contents("templatefiles/maplayergroup.templ");
+ $mapLayerGroup = sprintf($mapLayerGroup, $name, $visible, $showLegend, $expandLegend, $legendLabel);
+ return $mapLayerGroup;
+ }
+
+ static function CreateMapLayer($name, $resId, $select, $showLegend, $legendLabel, $expandLegend, $visible, $group)
+ {
+ $mapLayer = file_get_contents("templatefiles/maplayer.templ");
+ $mapLayer = sprintf($mapLayer, $name, $resId, $select, $showLegend, $legendLabel, $expandLegend, $visible, $group);
+ return $mapLayer;
+ }
+
+ static function CreateExtents($minX, $maxX, $minY, $maxY)
+ {
+ $extents = file_get_contents("templatefiles/extents.templ");
+ $extents = sprintf($extents, $minX, $maxX, $minY, $maxY);
+ return $extents;
+ }
+
+ static function CreateMapDefinition($name, $coordinate, $extents, $backgroundColor, $mapLayer, $mapLayerGroup)
+ {
+ $mapDef = file_get_contents("templatefiles/mapdefinition.templ");
+ $mapDef = sprintf($mapDef, $name, $coordinate, $extents, $backgroundColor, $mapLayer, $mapLayerGroup);
+ return $mapDef;
+ }
+}
+
+?>
Added: trunk/MgDev/Web/src/schemareport/showclass.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/showclass.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/showclass.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,139 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+
+ <head>
+ <title>Displays the schema</title>
+ <link href="displayschema.css" rel="stylesheet" type="text/css">
+ </head>
+
+ <body>
+
+ <?php
+ include '../mapadmin/Constants.php';
+ include 'displayschemafunctions.php';
+
+ $sessionId = $_GET['sessionId'];
+ $resName = $_GET['resId'];
+ $schemaName = $_GET['schemaName'];
+ $className = $_GET['className'];
+ $index = $_GET['index'];
+ $totalEntries = 0;
+ $maxEntries = 250;
+
+ try
+ {
+ $thisFile = __FILE__;
+ $pos = strrpos($thisFile, '\\');
+ if ($pos == false)
+ $pos = strrpos($thisFile, '/');
+ $configFilePath = substr($thisFile, 0, $pos+1) . "../webconfig.ini";
+ MgInitializeWebTier ($configFilePath);
+
+ $userInfo = new MgUserInformation($sessionId);
+ $site = new MgSiteConnection();
+ $site->Open($userInfo);
+
+ $featureSrvc = $site->CreateService(MgServiceType::FeatureService);
+ $resId = new MgResourceIdentifier($resName);
+
+ $schemaName = substr(strrchr($schemaName, "/"), 1);
+ $classDef = $featureSrvc->GetClassDefinition($resId, $schemaName, $className);
+ $geomName = $classDef->GetDefaultGeometryPropertyName();
+ $featureReader = $featureSrvc->SelectFeatures($resId, $className, null);
+
+ // Calculate total number of entries.
+ while($featureReader->ReadNext())
+ $totalEntries++;
+
+ $currentPage = ceil(($index+$maxEntries)/$maxEntries);
+ $maxPage = ceil($totalEntries/$maxEntries);
+ $lastEntry = ($maxPage-1)*$maxEntries;
+
+ $propertyList = $classDef->GetProperties();
+ echo '<h1>ClassName: ' . $className . '</h1>';
+
+ if($totalEntries>$maxEntries)
+ {
+ DisplayPaging($index, $resName, $schemaName, $className, $sessionId, $maxEntries, $currentPage, $maxPage, $lastEntry);
+ echo '<br><br>';
+ }
+
+ echo '<table class="data" cellspacing="0"><tr>';
+ for($i=0; $i<$propertyList->GetCount(); $i++)
+ {
+ echo '<td class="data"><table class="data" cellspacing="0">';
+ $propertyDef = $propertyList->GetItem($i);
+ $property = $propertyList->GetItem($i)->GetName();
+ if(($property!=$geomName)&&($propertyDef->GetPropertyType()==100))
+ {
+ echo '<tr><td class="heading">' . $property . '</td></tr>';
+ try
+ {
+ $query = new MgFeatureQueryOptions();
+ $query->AddFeatureProperty($property);
+ $featureReader = $featureSrvc->SelectFeatures($resId, $className, $query);
+
+ // Find the correct index on featureReader
+ $count = $index;
+ while($count--!=0)
+ $featureReader->ReadNext();
+
+ // Output property values
+ for($j=0;$j<$maxEntries;$j++)
+ {
+ $featureReader->ReadNext();
+ $propertyType = $featureReader->GetPropertyType($property);
+ $propertyName = GetPropertyName($featureReader, $property, $propertyType);
+ if(strlen($propertyName))
+ echo '<tr><td nowrap>' . $propertyName . '</td></tr>';
+ else
+ echo '<tr><td>N/A</td></tr>';
+ }
+ }
+ catch (MgException $d)
+ {
+ // To prevent error msg when same className is found in multiple schemas
+ }
+ }
+ echo '</table></td>';
+ }
+ echo '</tr></table><br>';
+
+ if($totalEntries>$maxEntries)
+ DisplayPaging($index, $resName, $schemaName, $className, $sessionId, $maxEntries, $currentPage, $maxPage, $lastEntry);
+ }
+ catch (MgSessionExpiredException $s)
+ {
+ echo "Session has expired. Please Refresh Page.";
+ }
+ catch (MgException $e)
+ {
+ echo $e->GetMessage();
+ }
+
+ ?>
+
+ </body>
+
+</html>
Added: trunk/MgDev/Web/src/schemareport/showgeom.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/showgeom.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/showgeom.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,174 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
+<html>
+
+ <head>
+ <title>Displays the schema</title>
+ <link href="displayschema.css" rel="stylesheet" type="text/css">
+ </head>
+
+ <body onLoad="Confirmation()">
+
+ <?php
+ include '../mapadmin/Constants.php';
+ include 'displayschemafunctions.php';
+ include 'layerdefinitionfactory.php';
+ include 'mapdefinitionfactory.php';
+ include 'weblayoutfactory.php';
+
+ $sessionId = $_GET['sessionId'];
+ $resName = $_GET['resId'];
+ $schemaName = $_GET['schemaName'];
+ $className = $_GET['className'];
+ $geomName = $_GET['geomname'];
+ $geomType = $_GET['geomtype'];
+ $totalEntries = 0;
+ $firstTime = true;
+ $validSession = 1;
+
+ try
+ {
+ $thisFile = __FILE__;
+ $pos = strrpos($thisFile, '\\');
+ if ($pos == false)
+ $pos = strrpos($thisFile, '/');
+ $configFilePath = substr($thisFile, 0, $pos+1) . "../webconfig.ini";
+ MgInitializeWebTier ($configFilePath);
+
+ $userInfo = new MgUserInformation($sessionId);
+ $site = new MgSiteConnection();
+ $site->Open($userInfo);
+
+ $featureSrvc = $site->CreateService(MgServiceType::FeatureService);
+ $resourceSrvc = $site->CreateService(MgServiceType::ResourceService);
+ $featuresId = new MgResourceIdentifier($resName);
+
+ $schemaName = substr(strrchr($schemaName, "/"), 1);
+ $featureName = $schemaName . ':' . $className;
+
+ $featureReader = $featureSrvc->SelectFeatures($featuresId, $className, null);
+ while($featureReader->ReadNext())
+ $totalEntries++;
+
+ // Create a layer definition
+ $layerfactory = new LayerDefinitionFactory();
+ $layerDefinition = CreateLayerDef($layerfactory, $resName, $featureName, $geomName, $geomType);
+
+ // Save the layer definition to a resource stored in the session repository
+ $byteSource = new MgByteSource($layerDefinition, strlen($layerDefinition));
+ $byteSource->SetMimeType(MgMimeType::Xml);
+ $resName = 'Session:' . $sessionId . '//' . $className . '.LayerDefinition';
+ $resId = new MgResourceIdentifier($resName);
+ $resourceSrvc->SetResource($resId, $byteSource->GetReader(), null);
+
+ // Finds the coordinate system
+ $agfReaderWriter = new MgAgfReaderWriter();
+ $spatialcontext = $featureSrvc->GetSpatialContexts($featuresId, false);
+ $spatialcontext->ReadNext();
+ $coordinate = $spatialcontext->GetCoordinateSystemWkt();
+
+ // Finds the extent
+ $extentByteReader = $spatialcontext->GetExtent();
+ $extentGeometry = $agfReaderWriter->Read($extentByteReader);
+ $iterator = $extentGeometry->GetCoordinates();
+ while($iterator->MoveNext())
+ {
+ $x = $iterator->GetCurrent()->GetX();
+ $y = $iterator->GetCurrent()->GetY();
+ if($firstTime)
+ {
+ $maxX = $x;
+ $minX = $x;
+ $maxY = $y;
+ $minY = $y;
+ $firstTime = false;
+ }
+ if($maxX<$x)
+ $maxX = $x;
+ if($minX>$x||$minX==0)
+ $minX = $x;
+ if($maxY<$y)
+ $maxY = $y;
+ if($minY>$y||$minY==0)
+ $minY = $y;
+ }
+
+ // Create a map definition
+ $mapfactory = new MapDefinitionFactory();
+ $mapDefinition = CreateMapDef($mapfactory, $className, $resName, $coordinate, $minX, $maxX, $minY, $maxY);
+
+ // Save the map definition to a resource stored in the session repository
+ $byteSource = new MgByteSource($mapDefinition, strlen($mapDefinition));
+ $byteSource->SetMimeType(MgMimeType::Xml);
+ $resName = 'Session:' . $sessionId . '//' . $className . '.MapDefinition';
+ $resId = new MgResourceIdentifier($resName);
+ $resourceSrvc->SetResource($resId, $byteSource->GetReader(), null);
+
+ // Create a web layout
+ $webfactory = new WebLayoutFactory();
+ $webLayout = CreateWebLay($webfactory, $resName);
+
+ // Save the web layout to a resource stored in the session repository
+ $byteSource = new MgByteSource($webLayout, strlen($webLayout));
+ $byteSource->SetMimeType(MgMimeType::Xml);
+ $resName = 'Session:' . $sessionId . '//' . $className . '.WebLayout';
+ $resId = new MgResourceIdentifier($resName);
+ $resourceSrvc->SetResource($resId, $byteSource->GetReader(), null);
+ }
+ catch (MgSessionExpiredException $s)
+ {
+ $validSession = 0;
+ echo "Session has expired. Please Refresh Page.";
+ }
+ catch (MgException $e)
+ {
+ echo $e->GetMessage();
+ }
+
+ ?>
+
+ </body>
+
+ <script language="JavaScript">
+ function Confirmation()
+ {
+ // checks for valid session
+ if(<?php echo $validSession ?> > 0)
+ {
+ if(<?php echo $totalEntries ?> > 1000)
+ {
+ var answer = confirm("This feature source contains <?php echo $totalEntries ?> features. Would you like to continue?");
+ if (answer)
+ location = '/mapguide/mapviewerajax/?SESSION=<?php echo $sessionId ?>&WEBLAYOUT=<?php echo $resName ?>';
+ else
+ location = '/mapguide/schemareport/blank.php';
+ }
+ else
+ location = '/mapguide/mapviewerajax/?SESSION=<?php echo $sessionId ?>&WEBLAYOUT=<?php echo $resName ?>';
+ }
+
+
+ }
+ </script>
+
+</html>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/arearule.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/arearule.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/arearule.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,16 @@
+ <AreaRule>
+ <LegendLabel/>
+ <AreaSymbolization2D>
+ <Fill>
+ <FillPattern>Solid</FillPattern>
+ <ForegroundColor>%s</ForegroundColor>
+ <BackgroundColor>FF000000</BackgroundColor>
+ </Fill>
+ <Stroke>
+ <LineStyle>Solid</LineStyle>
+ <Thickness>1</Thickness>
+ <Color>FF000000</Color>
+ <Unit>Points</Unit>
+ </Stroke>
+ </AreaSymbolization2D>
+ </AreaRule>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/areatypestyle.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/areatypestyle.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/areatypestyle.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,2 @@
+ <AreaTypeStyle>
+%s </AreaTypeStyle>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/extents.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/extents.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/extents.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,6 @@
+ <Extents>
+ <MinX>%s</MinX>
+ <MaxX>%s</MaxX>
+ <MinY>%s</MinY>
+ <MaxY>%s</MaxY>
+ </Extents>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/layerdefinition.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/layerdefinition.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/layerdefinition.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,10 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<LayerDefinition version="1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="LayerDefinition-1.0.0.xsd">
+ <VectorLayerDefinition>
+ <ResourceId>%s</ResourceId>
+ <FeatureName>%s</FeatureName>
+ <FeatureNameType>FeatureClass</FeatureNameType>
+ <Geometry>%s</Geometry>
+ %s
+ </VectorLayerDefinition>
+ </LayerDefinition>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/linerule.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/linerule.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/linerule.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,9 @@
+ <LineRule>
+ <LegendLabel/>
+ <LineSymbolization2D>
+ <LineStyle>Solid</LineStyle>
+ <Thickness>1</Thickness>
+ <Color>%s</Color>
+ <Unit>Points</Unit>
+ </LineSymbolization2D>
+ </LineRule>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/linetypestyle.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/linetypestyle.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/linetypestyle.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,2 @@
+ <LineTypeStyle>
+%s </LineTypeStyle>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/mapdefinition.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/mapdefinition.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/mapdefinition.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<MapDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="MapDefinition-1.0.0.xsd">
+ <Name>%s</Name>
+ <CoordinateSystem>%s</CoordinateSystem>
+ %s
+ <BackgroundColor>%s</BackgroundColor>
+ %s
+ %s
+</MapDefinition>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/maplayer.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/maplayer.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/maplayer.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,10 @@
+ <MapLayer>
+ <Name>%s</Name>
+ <ResourceId>%s</ResourceId>
+ <Selectable>%s</Selectable>
+ <ShowInLegend>%s</ShowInLegend>
+ <LegendLabel>%s</LegendLabel>
+ <ExpandInLegend>%s</ExpandInLegend>
+ <Visible>%s</Visible>
+ <Group>%s</Group>
+ </MapLayer>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/maplayergroup.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/maplayergroup.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/maplayergroup.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,8 @@
+ <MapLayerGroup>
+ <Name>%s</Name>
+ <Visible>%s</Visible>
+ <ShowInLegend>%s</ShowInLegend>
+ <ExpandInLegend>%s</ExpandInLegend>
+ <LegendLabel>%s</LegendLabel>
+ <Group/>
+ </MapLayerGroup>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/pointrule.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/pointrule.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/pointrule.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,24 @@
+ <PointRule>
+ <LegendLabel/>
+ <PointSymbolization2D>
+ <Mark>
+ <Unit>Inches</Unit>
+ <SizeContext>DeviceUnits</SizeContext>
+ <SizeX>0.06</SizeX>
+ <SizeY>0.06</SizeY>
+ <Rotation>0</Rotation>
+ <Shape>Circle</Shape>
+ <Fill>
+ <FillPattern>Solid</FillPattern>
+ <ForegroundColor>%s</ForegroundColor>
+ <BackgroundColor>FFFFFFFF</BackgroundColor>
+ </Fill>
+ <Edge>
+ <LineStyle>Solid</LineStyle>
+ <Thickness>0.0</Thickness>
+ <Color>ff000000</Color>
+ <Unit>Centimeters</Unit>
+ </Edge>
+ </Mark>
+ </PointSymbolization2D>
+ </PointRule>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/pointtypestyle.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/pointtypestyle.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/pointtypestyle.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,5 @@
+ <PointTypeStyle>
+ <DisplayAsText>false</DisplayAsText>
+ <AllowOverpost>false</AllowOverpost>
+%s
+ </PointTypeStyle>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/scalerange.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/scalerange.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/scalerange.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,4 @@
+ <VectorScaleRange>
+ <MinScale>%s</MinScale>
+ <MaxScale>%s</MaxScale>
+%s </VectorScaleRange>
Added: trunk/MgDev/Web/src/schemareport/templatefiles/weblayout.templ
===================================================================
--- trunk/MgDev/Web/src/schemareport/templatefiles/weblayout.templ 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/templatefiles/weblayout.templ 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,385 @@
+<?xml version="1.0" encoding="utf-8"?>
+<WebLayout xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xsi:noNamespaceSchemaLocation="WebLayout-1.0.0.xsd">
+ <Title>%s</Title>
+ <Map>
+ <ResourceId>%s</ResourceId>
+ <HyperlinkTarget>TaskPane</HyperlinkTarget>
+ </Map>
+ <ToolBar>
+ <Visible>true</Visible>
+ <Button xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Select</Command>
+ </Button>
+ <Button xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Pan</Command>
+ </Button>
+ <Button xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Zoom Rectangle</Command>
+ </Button>
+ <Button xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Zoom In</Command>
+ </Button>
+ <Button xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Zoom Out</Command>
+ </Button>
+ </ToolBar>
+ <InformationPane>
+ <Visible>false</Visible>
+ <Width>0</Width>
+ <LegendVisible>false</LegendVisible>
+ <PropertiesVisible>false</PropertiesVisible>
+ </InformationPane>
+ <ContextMenu>
+ <Visible>true</Visible>
+ <MenuItem xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Select</Command>
+ </MenuItem>
+ <MenuItem xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Pan</Command>
+ </MenuItem>
+ <MenuItem xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Zoom Rectangle</Command>
+ </MenuItem>
+ <MenuItem xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Zoom In</Command>
+ </MenuItem>
+ <MenuItem xsi:type="CommandItemType">
+ <Function>Command</Function>
+ <Command>Zoom Out</Command>
+ </MenuItem>
+ </ContextMenu>
+ <TaskPane>
+ <Visible>false</Visible>
+ <Width>280</Width>
+ <TaskBar>
+ <Visible>true</Visible>
+ <Home>
+ <Name>Home</Name>
+ <Tooltip>Return to home task page</Tooltip>
+ <Description>Return to home task page</Description>
+ <ImageURL>../stdicons/icon_home.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_home_disabled.gif</DisabledImageURL>
+ </Home>
+ <Forward>
+ <Name>Forward</Name>
+ <Tooltip>Forward to next task page</Tooltip>
+ <Description>Forward to next task page</Description>
+ <ImageURL>../stdicons/icon_forward.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_forward_disabled.gif</DisabledImageURL>
+ </Forward>
+ <Back>
+ <Name>Back</Name>
+ <Tooltip>Return to previous task page</Tooltip>
+ <Description>Return to previous task page</Description>
+ <ImageURL>../stdicons/icon_back.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_back_disabled.gif</DisabledImageURL>
+ </Back>
+ <Tasks>
+ <Name>Tasks</Name>
+ <Tooltip>Task list</Tooltip>
+ <Description>View a list of available tasks</Description>
+ <ImageURL>../stdicons/icon_tasks.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_tasks_disabled.gif</DisabledImageURL>
+ </Tasks>
+ </TaskBar>
+ </TaskPane>
+ <StatusBar>
+ <Visible>true</Visible>
+ </StatusBar>
+ <ZoomControl>
+ <Visible>true</Visible>
+ </ZoomControl>
+ <CommandSet>
+ <Command xsi:type="BasicCommandType">
+ <Name>Pan</Name>
+ <Label>Pan</Label>
+ <Tooltip>Pan mode</Tooltip>
+ <Description>Drag the map to view areas out of range</Description>
+ <ImageURL>../stdicons/icon_pan.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_pan_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>Pan</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Pan Up</Name>
+ <Label>Pan Up</Label>
+ <Tooltip>Pan up</Tooltip>
+ <Description>Pan up by a preset increment</Description>
+ <ImageURL>../stdicons/icon_panup.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_panup_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>PanUp</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Pan Down</Name>
+ <Label>Pan Down</Label>
+ <Tooltip>Pan down</Tooltip>
+ <Description>Pan down by a preset increment</Description>
+ <ImageURL>../stdicons/icon_pandown.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_pandown_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>PanDown</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Pan Right</Name>
+ <Label>Pan Right</Label>
+ <Tooltip>Pan right</Tooltip>
+ <Description>Pan right by a preset increment</Description>
+ <ImageURL>../stdicons/icon_panright.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_panright_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>PanRight</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Pan Left</Name>
+ <Label>Pan Left</Label>
+ <Tooltip>Pan left</Tooltip>
+ <Description>Pan left by a preset increment</Description>
+ <ImageURL>../stdicons/icon_panleft.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_panleft_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>PanLeft</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Zoom</Name>
+ <Label>Zoom Dynamic</Label>
+ <Tooltip>Zoom dynamic</Tooltip>
+ <Description>Zoom dynamically by clicking and dragging</Description>
+ <ImageURL>../stdicons/icon_zoom.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_zoom_disabled.gif</DisabledImageURL>
+ <TargetViewer>Dwf</TargetViewer>
+ <Action>Zoom</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Zoom In</Name>
+ <Label>Zoom In</Label>
+ <Tooltip>Zoom in</Tooltip>
+ <Description>Zoom in by a preset increment</Description>
+ <ImageURL>../stdicons/icon_zoomin.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_zoomin_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>ZoomIn</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Zoom Out</Name>
+ <Label>Zoom Out</Label>
+ <Tooltip>Zoom out</Tooltip>
+ <Description>Zoom out by a preset increment</Description>
+ <ImageURL>../stdicons/icon_zoomout.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_zoomout_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>ZoomOut</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Zoom Rectangle</Name>
+ <Label>Zoom Rectangle</Label>
+ <Tooltip>Zoom to rectangle</Tooltip>
+ <Description>Zoom in on an area</Description>
+ <ImageURL>../stdicons/icon_zoomrect.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_zoomrect_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>ZoomRectangle</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Zoom Selection</Name>
+ <Label>Zoom Selection</Label>
+ <Tooltip>Zoom to selection</Tooltip>
+ <Description>Zoom to extents of selected features</Description>
+ <ImageURL>../stdicons/icon_zoomselect.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_zoomselect_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>ZoomToSelection</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Initial Map View</Name>
+ <Label>Initial Map View</Label>
+ <Tooltip>Initial map view</Tooltip>
+ <Description>Fit the initial view of the map to the window</Description>
+ <ImageURL>../stdicons/icon_fitwindow.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_fitwindow_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>FitToWindow</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Previous View</Name>
+ <Label>Previous View</Label>
+ <Tooltip>Previous view</Tooltip>
+ <Description>Go to previous view</Description>
+ <ImageURL>../stdicons/icon_zoomprev.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_zoomprev_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>PreviousView</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Next View</Name>
+ <Label>Next View</Label>
+ <Tooltip>Next view</Tooltip>
+ <Description>Go to next view</Description>
+ <ImageURL>../stdicons/icon_zoomnext.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_zoomnext_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>NextView</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Initial Center and Scale</Name>
+ <Label>Initial Center and Scale</Label>
+ <Tooltip>Initial center and scale</Tooltip>
+ <Description>Zoom to the initial center and scale of the map</Description>
+ <ImageURL>../stdicons/icon_restorecenter.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_restorecenter_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>RestoreView</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Select</Name>
+ <Label>Select</Label>
+ <Tooltip>Select mode</Tooltip>
+ <Description>Select features by clicking and dragging</Description>
+ <ImageURL>../stdicons/icon_select.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_select_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>Select</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Select Radius</Name>
+ <Label>Select Radius</Label>
+ <Tooltip>Select radius</Tooltip>
+ <Description>Click and drag to select all features inside the circle</Description>
+ <ImageURL>../stdicons/icon_selectradius.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_selectradius_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>SelectRadius</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Select Polygon</Name>
+ <Label>Select Polygon</Label>
+ <Tooltip>Select polygon</Tooltip>
+ <Description>Create a polygon to select all features that fall within</Description>
+ <ImageURL>../stdicons/icon_selectpolygon.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_selectpolygon_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>SelectPolygon</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Clear Selection</Name>
+ <Label>Clear Selection</Label>
+ <Tooltip>Clear selection</Tooltip>
+ <Description>Clear the current selections</Description>
+ <ImageURL>../stdicons/icon_clearselect.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_clearselect_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>ClearSelection</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Refresh Map</Name>
+ <Label>Refresh Map</Label>
+ <Tooltip>Refresh map</Tooltip>
+ <Description>Refresh map and reload all layers keeping current center and scale</Description>
+ <ImageURL>../stdicons/icon_refreshmap.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_refreshmap_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>Refresh</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>Copy</Name>
+ <Label>Copy</Label>
+ <Tooltip>Copy</Tooltip>
+ <Description>Copy current view of map to clipboard</Description>
+ <ImageURL>../stdicons/icon_copy.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_copy_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Action>CopyMap</Action>
+ </Command>
+ <Command xsi:type="BasicCommandType">
+ <Name>About</Name>
+ <Label>About</Label>
+ <Tooltip>About</Tooltip>
+ <Description>Display information about this application</Description>
+ <ImageURL />
+ <DisabledImageURL />
+ <TargetViewer>All</TargetViewer>
+ <Action>About</Action>
+ </Command>
+ <Command xsi:type="BufferCommandType">
+ <Name>Buffer</Name>
+ <Label>Buffer</Label>
+ <Tooltip>Buffer</Tooltip>
+ <Description>Create buffers around the selected features</Description>
+ <ImageURL>../stdicons/icon_buffer.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_buffer_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Target>TaskPane</Target>
+ </Command>
+ <Command xsi:type="SelectWithinCommandType">
+ <Name>Select Within</Name>
+ <Label>Select Within</Label>
+ <Tooltip>Select within</Tooltip>
+ <Description>Select features that fall within currently selected areas</Description>
+ <ImageURL>../stdicons/icon_selectwithin.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_selectwithin_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Target>TaskPane</Target>
+ </Command>
+ <Command xsi:type="PrintCommandType">
+ <Name>Print</Name>
+ <Label>Print</Label>
+ <Tooltip>Print</Tooltip>
+ <Description>Print with optional layout</Description>
+ <ImageURL>../stdicons/icon_print.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_print_disabled.gif</DisabledImageURL>
+ <TargetViewer>Dwf</TargetViewer>
+ <PrintLayout>
+ <ResourceId>Library://Samples/Sheboygan/Layouts/SheboyganMap.PrintLayout</ResourceId>
+ </PrintLayout>
+ </Command>
+ <Command xsi:type="MeasureCommandType">
+ <Name>Measure</Name>
+ <Label>Measure</Label>
+ <Tooltip>Measure</Tooltip>
+ <Description>Measure distances on the map</Description>
+ <ImageURL>../stdicons/icon_measure.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_measure_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Target>TaskPane</Target>
+ </Command>
+ <Command xsi:type="ViewOptionsCommandType">
+ <Name>View Options</Name>
+ <Label>View Options</Label>
+ <Tooltip>View Options</Tooltip>
+ <Description>View Options</Description>
+ <ImageURL>../stdicons/icon_viewoptions.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_viewoptions_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Target>TaskPane</Target>
+ </Command>
+ <Command xsi:type="GetPrintablePageCommandType">
+ <Name>Get Printable Page</Name>
+ <Label>Printable Page</Label>
+ <Tooltip>Get printable page</Tooltip>
+ <Description>Get printer-friendly page</Description>
+ <ImageURL>../stdicons/icon_printablepage.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_printablepage_disabled.gif</DisabledImageURL>
+ <TargetViewer>Ajax</TargetViewer>
+ <Target>NewWindow</Target>
+ </Command>
+ <Command xsi:type="HelpCommandType">
+ <Name>Help</Name>
+ <Label>Help</Label>
+ <Tooltip>Help</Tooltip>
+ <Description>Launch help for this application</Description>
+ <ImageURL>../stdicons/icon_help.gif</ImageURL>
+ <DisabledImageURL>../stdicons/icon_help_disabled.gif</DisabledImageURL>
+ <TargetViewer>All</TargetViewer>
+ <Target>TaskPane</Target>
+ </Command>
+ </CommandSet>
+</WebLayout>
Added: trunk/MgDev/Web/src/schemareport/weblayoutfactory.php
===================================================================
--- trunk/MgDev/Web/src/schemareport/weblayoutfactory.php 2007-01-30 00:08:25 UTC (rev 1080)
+++ trunk/MgDev/Web/src/schemareport/weblayoutfactory.php 2007-01-30 19:04:28 UTC (rev 1081)
@@ -0,0 +1,35 @@
+<?php
+
+//
+// Copyright (C) 2004-2006 Autodesk, Inc.
+//
+// This library is free software; you can redistribute it and/or
+// modify it under the terms of version 2.1 of the GNU Lesser
+// General Public License as published by the Free Software Foundation.
+//
+// This library is distributed in the hope that it will be useful,
+// but WITHOUT ANY WARRANTY; without even the implied warranty of
+// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+// Lesser General Public License for more details.
+//
+// You should have received a copy of the GNU Lesser General Public
+// License along with this library; if not, write to the Free Software
+// Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+//
+
+?>
+
+<?php
+
+class WebLayoutFactory
+{
+
+ static function CreateWebLayout($name, $resId)
+ {
+ $mapDef = file_get_contents("templatefiles/weblayout.templ");
+ $mapDef = sprintf($mapDef, $name, $resId);
+ return $mapDef;
+ }
+}
+
+?>
More information about the mapguide-commits
mailing list