Exemple #1
0
        /// <inheritdoc/>
        public override void Serialize(FRWriter writer)
        {
            if (writer.SerializeTo != SerializeTo.SourcePages)
            {
                writer.Write(Data.Columns);
                writer.Write(Data.Rows);
                writer.Write(Data.Cells);
            }
            else
            {
                RefreshTemplate(true);
            }

            base.Serialize(writer);
            CrossViewObject c = writer.DiffObject as CrossViewObject;

            if (CubeSource != c.CubeSource)
            {
                writer.WriteRef("CubeSource", CubeSource);
            }
            if (ColumnDescriptorsIndexes != c.ColumnDescriptorsIndexes)
            {
                writer.WriteStr("ColumnDescriptorsIndexes", ColumnDescriptorsIndexes);
            }
            if (RowDescriptorsIndexes != c.RowDescriptorsIndexes)
            {
                writer.WriteStr("RowDescriptorsIndexes", RowDescriptorsIndexes);
            }
            if (ColumnTerminalIndexes != c.ColumnTerminalIndexes)
            {
                writer.WriteStr("ColumnTerminalIndexes", ColumnTerminalIndexes);
            }
            if (RowTerminalIndexes != c.RowTerminalIndexes)
            {
                writer.WriteStr("RowTerminalIndexes", RowTerminalIndexes);
            }
            if (ShowTitle != c.ShowTitle)
            {
                writer.WriteBool("ShowTitle", ShowTitle);
            }
            if (ShowXAxisFieldsCaption != c.ShowXAxisFieldsCaption)
            {
                writer.WriteBool("ShowXAxisFieldsCaption", ShowXAxisFieldsCaption);
            }
            if (ShowYAxisFieldsCaption != c.ShowYAxisFieldsCaption)
            {
                writer.WriteBool("ShowYAxisFieldsCaption", ShowYAxisFieldsCaption);
            }
            if (Style != c.Style)
            {
                writer.WriteStr("Style", Style);
            }
            //            if (MatrixEvenStylePriority != c.MatrixEvenStylePriority)
            //                writer.WriteValue("MatrixEvenStylePriority", MatrixEvenStylePriority);
            if (ModifyResultEvent != c.ModifyResultEvent)
            {
                writer.WriteStr("ModifyResultEvent", ModifyResultEvent);
            }
        }
Exemple #2
0
        /// <inheritdoc/>
        public override void Assign(Base source)
        {
            base.Assign(source);

            CrossViewObject src = source as CrossViewObject;

            CubeSource             = src.CubeSource;
            ShowTitle              = src.ShowTitle;
            ShowXAxisFieldsCaption = src.ShowXAxisFieldsCaption;
            ShowYAxisFieldsCaption = src.ShowYAxisFieldsCaption;
            Style = src.Style;
            //            MatrixEvenStylePriority = src.MatrixEvenStylePriority;
        }
Exemple #3
0
 public CrossViewHelper(CrossViewObject crossView)
 {
     this.crossView = crossView;
     CreateOtherDescriptor();
 }