[mapguide-commits] r6002 -
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels
svn_mapguide at osgeo.org
svn_mapguide at osgeo.org
Tue Jul 26 08:01:59 EDT 2011
Author: jng
Date: 2011-07-26 05:01:59 -0700 (Tue, 26 Jul 2011)
New Revision: 6002
Modified:
trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/ObjectFactory.cs
Log:
#1744: Each property in the LayoutProperties object has a "Specified" property which governs serialization behaviour. Since all booleans default to false, these properties are also false meaning a freshly created PrintLayout will not serialize said properties to XML. This submission fixes that issue.
Modified: trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/ObjectFactory.cs
===================================================================
--- trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/ObjectFactory.cs 2011-07-26 11:51:44 UTC (rev 6001)
+++ trunk/Tools/Maestro/OSGeo.MapGuide.MaestroAPI/ObjectModels/ObjectFactory.cs 2011-07-26 12:01:59 UTC (rev 6002)
@@ -945,7 +945,25 @@
CurrentConnection = owner,
CustomLogos = new System.ComponentModel.BindingList<OSGeo.MapGuide.ObjectModels.PrintLayout_1_0_0.PrintLayoutLogo>(),
CustomText = new System.ComponentModel.BindingList<OSGeo.MapGuide.ObjectModels.PrintLayout_1_0_0.PrintLayoutText>(),
- LayoutProperties = new OSGeo.MapGuide.ObjectModels.PrintLayout_1_0_0.PrintLayoutLayoutProperties(),
+ LayoutProperties = new OSGeo.MapGuide.ObjectModels.PrintLayout_1_0_0.PrintLayoutLayoutProperties()
+ {
+ ShowCustomLogos = false,
+ ShowCustomLogosSpecified = true,
+ ShowCustomText = false,
+ ShowCustomTextSpecified = true,
+ ShowDateTime = false,
+ ShowDateTimeSpecified = true,
+ ShowLegend = false,
+ ShowLegendSpecified = true,
+ ShowNorthArrow = false,
+ ShowNorthArrowSpecified = true,
+ ShowScaleBar = false,
+ ShowScaleBarSpecified = true,
+ ShowTitle = false,
+ ShowTitleSpecified = true,
+ ShowURL = false,
+ ShowURLSpecified = true
+ },
PageProperties = new OSGeo.MapGuide.ObjectModels.PrintLayout_1_0_0.PrintLayoutPageProperties()
{
BackgroundColor = new OSGeo.MapGuide.ObjectModels.PrintLayout_1_0_0.PrintLayoutPagePropertiesBackgroundColor()
More information about the mapguide-commits
mailing list