internal Parameter(ActionDrillthrough actionDef, Microsoft.ReportingServices.ReportProcessing.ParameterValue parameterDef, ActionItemInstance actionInstance, int index)
 {
     m_name      = parameterDef.Name;
     m_value     = new ReportVariantProperty(parameterDef.Value);
     m_omit      = new ReportBoolProperty(parameterDef.Omit);
     m_actionDef = actionDef;
     m_instance  = new ParameterInstance(actionInstance, index);
 }
        internal static ReportBoolProperty GetStartHidden(Microsoft.ReportingServices.ReportIntermediateFormat.Visibility visibility)
        {
            ReportBoolProperty reportBoolProperty = null;

            if (visibility == null)
            {
                return(new ReportBoolProperty());
            }
            return(new ReportBoolProperty(visibility.Hidden));
        }
Example #3
0
        private bool GetShowInColorScale()
        {
            ReportBoolProperty showInColorScale = ((MapColorRule)m_mapRule).ShowInColorScale;

            if (showInColorScale != null)
            {
                if (!showInColorScale.IsExpression)
                {
                    return(showInColorScale.Value);
                }
                return(((MapColorRule)m_mapRule).Instance.ShowInColorScale);
            }
            return(false);
        }
Example #4
0
        private bool GetUseSecureConnection(MapTileLayer mapTileLayer)
        {
            ReportBoolProperty useSecureConnection = mapTileLayer.UseSecureConnection;

            if (useSecureConnection == null)
            {
                return(false);
            }
            if (!useSecureConnection.IsExpression)
            {
                return(useSecureConnection.Value);
            }
            return(mapTileLayer.Instance.UseSecureConnection);
        }
Example #5
0
        private bool UseCustomTemplate(MapLine mapLine, bool hasScope)
        {
            if (mapLine == null)
            {
                return(false);
            }
            bool result = false;
            ReportBoolProperty useCustomLineTemplate = mapLine.UseCustomLineTemplate;

            if (useCustomLineTemplate != null)
            {
                if (!useCustomLineTemplate.IsExpression)
                {
                    result = useCustomLineTemplate.Value;
                }
                else if (hasScope)
                {
                    result = mapLine.Instance.UseCustomLineTemplate;
                }
            }
            return(result);
        }
        internal static bool PolygonUseCustomTemplate(MapPolygon mapPolygon, bool hasScope)
        {
            if (mapPolygon == null)
            {
                return(false);
            }
            bool result = false;
            ReportBoolProperty useCustomCenterPointTemplate = mapPolygon.UseCustomCenterPointTemplate;

            if (useCustomCenterPointTemplate != null)
            {
                if (!useCustomCenterPointTemplate.IsExpression)
                {
                    result = useCustomCenterPointTemplate.Value;
                }
                else if (hasScope)
                {
                    result = mapPolygon.Instance.UseCustomCenterPointTemplate;
                }
            }
            return(result);
        }
        private static bool UseCustomTemplate(MapPoint mapPoint, bool hasScope)
        {
            if (mapPoint == null)
            {
                return(false);
            }
            bool result = false;
            ReportBoolProperty useCustomPointTemplate = mapPoint.UseCustomPointTemplate;

            if (useCustomPointTemplate != null)
            {
                if (!useCustomPointTemplate.IsExpression)
                {
                    result = useCustomPointTemplate.Value;
                }
                else if (hasScope)
                {
                    result = mapPoint.Instance.UseCustomPointTemplate;
                }
            }
            return(result);
        }
        internal void ConstructParameterDefinition()
        {
            ParameterInstance instance = Instance;

            Global.Tracer.Assert(instance != null);
            if (instance.Value != null)
            {
                m_parameterDef.Value = Microsoft.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateConstExpression((string)instance.Value);
            }
            else
            {
                m_parameterDef.Value = Microsoft.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression();
            }
            m_value = null;
            if (instance.IsOmitAssined)
            {
                m_parameterDef.Omit = Microsoft.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateConstExpression(instance.Omit);
            }
            else
            {
                m_parameterDef.Omit = Microsoft.ReportingServices.ReportIntermediateFormat.ExpressionInfo.CreateEmptyExpression();
            }
            m_omit = null;
        }
        protected void RenderSpatialElementTemplate(MapSpatialElementTemplate mapSpatialElementTemplate, ISpatialElement coreSpatialElement, bool ignoreBackgroundColor, bool hasScope)
        {
            ReportStringProperty toolTip = mapSpatialElementTemplate.ToolTip;
            string text = null;

            if (toolTip != null)
            {
                if (!toolTip.IsExpression)
                {
                    text = toolTip.Value;
                }
                else if (hasScope)
                {
                    text = mapSpatialElementTemplate.Instance.ToolTip;
                }
                if (text != null)
                {
                    text = (coreSpatialElement.ToolTip = VectorLayerMapper.AddPrefixToFieldNames(m_mapVectorLayer.Name, text));
                }
            }
            m_mapMapper.RenderActionInfo(mapSpatialElementTemplate.ActionInfo, text, coreSpatialElement, m_mapVectorLayer.Name, hasScope);
            ReportBoolProperty hidden = mapSpatialElementTemplate.Hidden;

            if (hidden != null)
            {
                if (!hidden.IsExpression)
                {
                    coreSpatialElement.Visible = !hidden.Value;
                }
                else if (hasScope)
                {
                    coreSpatialElement.Visible = !mapSpatialElementTemplate.Instance.Hidden;
                }
                else
                {
                    coreSpatialElement.Visible = true;
                }
            }
            else
            {
                coreSpatialElement.Visible = true;
            }
            ReportStringProperty label = mapSpatialElementTemplate.Label;

            if (label != null)
            {
                string text3 = "";
                if (!label.IsExpression)
                {
                    text3 = label.Value;
                }
                else if (hasScope)
                {
                    text3 = mapSpatialElementTemplate.Instance.Label;
                }
                if (text3 != null)
                {
                    coreSpatialElement.Text = VectorLayerMapper.AddPrefixToFieldNames(m_mapVectorLayer.Name, text3);
                }
            }
            ReportDoubleProperty offsetX = mapSpatialElementTemplate.OffsetX;
            double x = 0.0;

            if (offsetX != null)
            {
                if (!offsetX.IsExpression)
                {
                    x = offsetX.Value;
                }
                else if (hasScope)
                {
                    x = mapSpatialElementTemplate.Instance.OffsetX;
                }
                coreSpatialElement.Offset.X = x;
            }
            offsetX = mapSpatialElementTemplate.OffsetY;
            x       = 0.0;
            if (offsetX != null)
            {
                if (!offsetX.IsExpression)
                {
                    x = offsetX.Value;
                }
                else if (hasScope)
                {
                    x = mapSpatialElementTemplate.Instance.OffsetY;
                }
                coreSpatialElement.Offset.Y = x;
            }
            Style         style  = mapSpatialElementTemplate.Style;
            StyleInstance style2 = mapSpatialElementTemplate.Instance.Style;

            RenderStyle(style, style2, coreSpatialElement, ignoreBackgroundColor, hasScope);
        }