Exemple #1
0
 private void InternalInitialize(InitializationContext context)
 {
     context.Location = (context.Location | LocationFlags.InDataSet | LocationFlags.InDataRegion);
     context.ExprHostBuilder.TableStart(base.m_name);
     base.Initialize(context);
     context.RegisterRunningValues(this.m_runningValues);
     if (base.m_visibility != null)
     {
         base.m_visibility.Initialize(context, true, false);
     }
     bool[] tableColumnVisibility = default(bool[]);
     this.InitializeTableColumns(context, ref base.m_widthValue, out tableColumnVisibility);
     base.m_width = Converter.ConvertSize(base.m_widthValue);
     this.InitializeHeaderAndFooter(this.m_tableColumns.Count, context, ref base.m_heightValue, tableColumnVisibility);
     context.Location &= ~LocationFlags.InMatrixCellTopLevelItem;
     this.InitializeTableGroupsOrDetail(this.m_tableColumns.Count, context, ref base.m_heightValue, tableColumnVisibility);
     base.m_height = Converter.ConvertSize(base.m_heightValue);
     if (base.m_visibility != null)
     {
         base.m_visibility.UnRegisterReceiver(context);
     }
     context.UnRegisterRunningValues(this.m_runningValues);
     OWCFlagsCalculator.Calculate(this, out this.m_useOWC, out this.m_owcNonSharedStyles);
     if (!context.ErrorContext.HasError)
     {
         TopLevelItemsSizes.Calculate(this, context);
     }
     base.ExprHostID = context.ExprHostBuilder.TableEnd();
 }
Exemple #2
0
        private void InternalInitialize(InitializationContext context)
        {
            context.Location = (context.Location | LocationFlags.InDataSet | LocationFlags.InDataRegion);
            context.ExprHostBuilder.MatrixStart(base.m_name);
            base.Initialize(context);
            context.RegisterRunningValues(base.m_runningValues);
            if (base.m_visibility != null)
            {
                base.m_visibility.Initialize(context, true, false);
            }
            this.CornerInitialize(context);
            context.Location &= ~LocationFlags.InMatrixCellTopLevelItem;
            bool flag  = false;
            bool flag2 = false;

            context.Location |= LocationFlags.InMatrixGroupHeader;
            int    expectedNumberOfMatrixColumns = default(int);
            double num = default(double);

            this.ColumnsInitialize(context, out expectedNumberOfMatrixColumns, out num, out flag);
            flag2 = flag;
            int    expectedNumberOfMatrixRows = default(int);
            double num2 = default(double);

            this.RowsInitialize(context, out expectedNumberOfMatrixRows, out num2, out flag);
            context.Location &= ~LocationFlags.InMatrixGroupHeader;
            if (flag)
            {
                flag2 = true;
            }
            double num3 = default(double);
            double num4 = default(double);

            this.MatrixCellInitialize(context, expectedNumberOfMatrixColumns, expectedNumberOfMatrixRows, flag2, out num3, out num4);
            if (base.m_visibility != null)
            {
                base.m_visibility.UnRegisterReceiver(context);
            }
            context.UnRegisterRunningValues(base.m_runningValues);
            base.CopyHeadingAggregates(this.m_rows);
            this.m_rows.TransferHeadingAggregates();
            base.CopyHeadingAggregates(this.m_columns);
            this.m_columns.TransferHeadingAggregates();
            base.m_heightValue = num + num3;
            base.m_height      = Converter.ConvertSize(base.m_heightValue);
            base.m_widthValue  = num2 + num4;
            base.m_width       = Converter.ConvertSize(base.m_widthValue);
            if (!context.ErrorContext.HasError)
            {
                TopLevelItemsSizes.Calculate(this, num2, num, num4, num3, context);
            }
            base.ExprHostID = context.ExprHostBuilder.MatrixEnd();
        }
Exemple #3
0
        private void InternalInitialize(InitializationContext context)
        {
            context.Location = (context.Location | LocationFlags.InDataSet | LocationFlags.InDataRegion);
            context.ExprHostBuilder.MatrixStart(m_name);
            base.Initialize(context);
            context.RegisterRunningValues(m_runningValues);
            if (m_visibility != null)
            {
                m_visibility.Initialize(context, isContainer: true, tableRowCol: false);
            }
            CornerInitialize(context);
            context.Location &= ~LocationFlags.InMatrixCellTopLevelItem;
            bool computedSubtotal = false;
            bool flag             = false;

            context.Location |= LocationFlags.InMatrixGroupHeader;
            ColumnsInitialize(context, out int expectedNumberOfMatrixColumns, out double size, out computedSubtotal);
            flag = computedSubtotal;
            RowsInitialize(context, out int expectedNumberOfMatrixRows, out double size2, out computedSubtotal);
            context.Location &= ~LocationFlags.InMatrixGroupHeader;
            if (computedSubtotal)
            {
                flag = true;
            }
            MatrixCellInitialize(context, expectedNumberOfMatrixColumns, expectedNumberOfMatrixRows, flag, out double totalCellHeight, out double totalCellWidth);
            if (m_visibility != null)
            {
                m_visibility.UnRegisterReceiver(context);
            }
            context.UnRegisterRunningValues(m_runningValues);
            CopyHeadingAggregates(m_rows);
            m_rows.TransferHeadingAggregates();
            CopyHeadingAggregates(m_columns);
            m_columns.TransferHeadingAggregates();
            m_heightValue = size + totalCellHeight;
            m_height      = Converter.ConvertSize(m_heightValue);
            m_widthValue  = size2 + totalCellWidth;
            m_width       = Converter.ConvertSize(m_widthValue);
            if (!context.ErrorContext.HasError)
            {
                TopLevelItemsSizes.Calculate(this, size2, size, totalCellWidth, totalCellHeight, context);
            }
            base.ExprHostID = context.ExprHostBuilder.MatrixEnd();
        }