internal static bool ValidateEmbeddedImageName(Microsoft.ReportingServices.ReportIntermediateFormat.AttributeInfo embeddedImageName, Dictionary <string, Microsoft.ReportingServices.ReportIntermediateFormat.ImageInfo> embeddedImages, ObjectType objectType, string objectName, string propertyName, ErrorContext errorContext)
 {
     Global.Tracer.Assert(embeddedImageName != null);
     if (!embeddedImageName.IsExpression)
     {
         return(ValidateEmbeddedImageName(embeddedImageName.Value, embeddedImages, objectType, objectName, propertyName, errorContext));
     }
     return(true);
 }
Exemplo n.º 2
0
        private void CreateAndValidateCalendar(int languageState, CultureInfo formattingCulture)
        {
            Microsoft.ReportingServices.ReportIntermediateFormat.AttributeInfo styleAttribute = null;
            Calendars calendars = Calendars.Default;
            bool      flag      = false;

            if (m_styleClass.GetAttributeInfo("Calendar", out styleAttribute))
            {
                if (styleAttribute.IsExpression)
                {
                    flag      = true;
                    calendars = (Calendars)m_styleClass.EvaluateStyle(m_objectType, m_objectName, styleAttribute, Microsoft.ReportingServices.ReportIntermediateFormat.Style.StyleId.Calendar, m_context);
                    m_sharedFormatSettings = false;
                }
                else
                {
                    calendars = StyleTranslator.TranslateCalendar(styleAttribute.Value, m_context.ReportRuntime);
                    switch (languageState)
                    {
                    case 1:
                        flag = true;
                        break;

                    default:
                        if (!m_calendarValidated)
                        {
                            m_calendarValidated  = true;
                            m_formattingCalendar = ProcessingValidator.CreateCalendar(calendars);
                            return;
                        }
                        break;

                    case 0:
                        break;
                    }
                }
            }
            if (flag || !m_calendarValidated)
            {
                if (calendars != 0 && ProcessingValidator.ValidateCalendar(formattingCulture, calendars, m_objectType, m_objectName, "Calendar", m_context.ErrorContext))
                {
                    m_formattingCalendar = ProcessingValidator.CreateCalendar(calendars);
                }
                if (!flag)
                {
                    m_calendarValidated = true;
                }
            }
        }
        internal void SetAssignedDynamicValue(BorderStyleProperty prop, Microsoft.ReportingServices.ReportIntermediateFormat.AttributeInfo value, bool allowTransparency)
        {
            switch (prop)
            {
            case BorderStyleProperty.Color:
                m_colorEvaluated = true;
                m_color          = new ReportColor(value.Value, allowTransparency);
                break;

            case BorderStyleProperty.Style:
                m_styleEvaluated = true;
                m_style          = (BorderStyles)value.IntValue;
                break;

            case BorderStyleProperty.Width:
                m_widthEvaluated = true;
                m_width          = new ReportSize(value.Value);
                break;
            }
        }