コード例 #1
0
 internal SLChartOptions(List<System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.BarDirection = C.BarDirectionValues.Bar;
     this.BarGrouping = C.BarGroupingValues.Standard;
     this.VaryColors = null;
     this.GapWidth = 150;
     this.GapDepth = 150;
     this.Overlap = 0;
     this.Shape = C.ShapeValues.Box;
     this.Grouping = C.GroupingValues.Standard;
     this.ShowMarker = true;
     this.Smooth = false;
     this.FirstSliceAngle = 0;
     this.HoleSize = 10;
     this.HasSplit = false;
     this.SplitType = C.SplitValues.Position;
     this.SplitPosition = 0;
     this.SecondPiePoints = new List<int>();
     this.SecondPieSize = 75;
     this.SeriesLinesShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     this.ScatterStyle = C.ScatterStyleValues.Line;
     this.bWireframe = null;
     this.RadarStyle = C.RadarStyleValues.Standard;
     this.Bubble3D = true;
     this.BubbleScale = 100;
     this.ShowNegativeBubbles = true;
     this.SizeRepresents = C.SizeRepresentsValues.Area;
     this.HasDropLines = false;
     this.DropLines = new SLDropLines(ThemeColors, IsStylish);
     this.HasHighLowLines = false;
     this.HighLowLines = new SLHighLowLines(ThemeColors, IsStylish);
     this.HasUpDownBars = false;
     this.UpDownBars = new SLUpDownBars(ThemeColors, IsStylish);
 }
コード例 #2
0
 internal SLChartOptions(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.BarDirection               = C.BarDirectionValues.Bar;
     this.BarGrouping                = C.BarGroupingValues.Standard;
     this.VaryColors                 = null;
     this.GapWidth                   = 150;
     this.GapDepth                   = 150;
     this.Overlap                    = 0;
     this.Shape                      = C.ShapeValues.Box;
     this.Grouping                   = C.GroupingValues.Standard;
     this.ShowMarker                 = true;
     this.Smooth                     = false;
     this.FirstSliceAngle            = 0;
     this.HoleSize                   = 10;
     this.HasSplit                   = false;
     this.SplitType                  = C.SplitValues.Position;
     this.SplitPosition              = 0;
     this.SecondPiePoints            = new List <int>();
     this.SecondPieSize              = 75;
     this.SeriesLinesShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     this.ScatterStyle               = C.ScatterStyleValues.Line;
     this.bWireframe                 = null;
     this.RadarStyle                 = C.RadarStyleValues.Standard;
     this.Bubble3D                   = true;
     this.BubbleScale                = 100;
     this.ShowNegativeBubbles        = true;
     this.SizeRepresents             = C.SizeRepresentsValues.Area;
     this.HasDropLines               = false;
     this.DropLines                  = new SLDropLines(ThemeColors, IsStylish);
     this.HasHighLowLines            = false;
     this.HighLowLines               = new SLHighLowLines(ThemeColors, IsStylish);
     this.HasUpDownBars              = false;
     this.UpDownBars                 = new SLUpDownBars(ThemeColors, IsStylish);
 }
コード例 #3
0
ファイル: SLLegend.cs プロジェクト: mousetwentytwo/test
 internal SLLegend(List<System.Drawing.Color> ThemeColors)
 {
     this.LegendPosition = C.LegendPositionValues.Right;
     this.Overlay = false;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     this.ShapeProperties.Fill.BlipDpi = 0;
     this.ShapeProperties.Fill.BlipRotateWithShape = true;
 }
コード例 #4
0
ファイル: SLDataTable.cs プロジェクト: mousetwentytwo/test
 internal SLDataTable(List<System.Drawing.Color> ThemeColors)
 {
     this.ShowHorizontalBorder = true;
     this.ShowVerticalBorder = true;
     this.ShowOutlineBorder = true;
     this.ShowLegendKeys = true;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     this.Font = null;
 }
コード例 #5
0
 internal SLBackWall(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny)
 {
     this.Thickness       = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny);
     if (IsStylish)
     {
         this.ShapeProperties.Fill.SetNoFill();
         this.ShapeProperties.Outline.SetNoLine();
     }
 }
コード例 #6
0
ファイル: SLSideWall.cs プロジェクト: nunezger/berkeleyshoe
 internal SLSideWall(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.Thickness       = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     if (IsStylish)
     {
         this.ShapeProperties.Fill.SetNoFill();
         this.ShapeProperties.Outline.SetNoLine();
     }
 }
コード例 #7
0
 internal SLBackWall(List<System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.Thickness = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     if (IsStylish)
     {
         this.ShapeProperties.Fill.SetNoFill();
         this.ShapeProperties.Outline.SetNoLine();
     }
 }
コード例 #8
0
ファイル: SLTitle.cs プロジェクト: mousetwentytwo/test
        internal SLTitle(List<System.Drawing.Color> ThemeColors)
        {
            // just put in the theme colors, even though it's probably not needed.
            // Memory optimisations? Take it out.
            this.rst = new SLRstType(SLConstants.OfficeThemeMajorLatinFont, SLConstants.OfficeThemeMinorLatinFont, ThemeColors, new List<System.Drawing.Color>());
            this.Overlay = false;
            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);

            this.RemoveTextAlignment();
        }
コード例 #9
0
 private void Initialize(List <System.Drawing.Color> ThemeColors, bool ThrowExceptionsIfAny)
 {
     this.VaryColors       = true;
     this.iFirstSliceAngle = 0;
     this.byHoleSize       = 10;
     this.iGapWidth        = 150;
     this.HasSplit         = false;
     this.SplitType        = C.SplitValues.Position;
     this.SplitPosition    = 0;
     this.SecondPiePoints  = new List <int>();
     this.iSecondPieSize   = 75;
     this.ShapeProperties  = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny);
 }
コード例 #10
0
        internal SLTitle(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny)
        {
            // just put in the theme colors, even though it's probably not needed.
            // Memory optimisations? Take it out.
            this.rst             = new SLRstType(SLConstants.OfficeThemeMajorLatinFont, SLConstants.OfficeThemeMinorLatinFont, ThemeColors, new List <System.Drawing.Color>());
            this.Overlay         = false;
            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.SetNoLine();
            }

            this.RemoveTextAlignment();
        }
コード例 #11
0
        internal SLLegend(List<System.Drawing.Color> ThemeColors, bool IsStylish = false)
        {
            this.LegendPosition = IsStylish ? C.LegendPositionValues.Bottom : C.LegendPositionValues.Right;
            this.Overlay = false;
            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.SetNoLine();
            }
            else
            {
                this.ShapeProperties.Fill.BlipDpi = 0;
                this.ShapeProperties.Fill.BlipRotateWithShape = true;
            }
        }
コード例 #12
0
        internal SLLegend(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny)
        {
            this.LegendPosition  = IsStylish ? C.LegendPositionValues.Bottom : C.LegendPositionValues.Right;
            this.Overlay         = false;
            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.SetNoLine();
            }
            else
            {
                this.ShapeProperties.Fill.BlipDpi             = 0;
                this.ShapeProperties.Fill.BlipRotateWithShape = true;
            }
        }
コード例 #13
0
ファイル: SLFloor.cs プロジェクト: rahmatsyaparudin/KP_Raport
 internal SLFloor(List<System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.Thickness = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     if (IsStylish)
     {
         this.ShapeProperties.Fill.SetNoFill();
         this.ShapeProperties.Outline.Width = 0.75m;
         this.ShapeProperties.Outline.CapType = A.LineCapValues.Flat;
         this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
         this.ShapeProperties.Outline.Alignment = A.PenAlignmentValues.Center;
         this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
         this.ShapeProperties.Outline.JoinType = SLA.SLLineJoinValues.Round;
         this.ShapeProperties.Format3D.ContourWidth = 0.75m;
         this.ShapeProperties.Format3D.clrContourColor.SetColor(A.SchemeColorValues.Text1, 0.85m, 0);
         this.ShapeProperties.Format3D.HasContourColor = true;
     }
 }
コード例 #14
0
ファイル: SLFloor.cs プロジェクト: nunezger/berkeleyshoe
 internal SLFloor(List <System.Drawing.Color> ThemeColors, bool IsStylish = false)
 {
     this.Thickness       = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     if (IsStylish)
     {
         this.ShapeProperties.Fill.SetNoFill();
         this.ShapeProperties.Outline.Width            = 0.75m;
         this.ShapeProperties.Outline.CapType          = A.LineCapValues.Flat;
         this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
         this.ShapeProperties.Outline.Alignment        = A.PenAlignmentValues.Center;
         this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
         this.ShapeProperties.Outline.JoinType      = SLA.SLLineJoinValues.Round;
         this.ShapeProperties.Format3D.ContourWidth = 0.75m;
         this.ShapeProperties.Format3D.clrContourColor.SetColor(A.SchemeColorValues.Text1, 0.85m, 0);
         this.ShapeProperties.Format3D.HasContourColor = true;
     }
 }
コード例 #15
0
        internal SLShapeProperties Clone()
        {
            SLShapeProperties sp = new SLShapeProperties(this.listThemeColors);

            sp.HasBlackWhiteMode = this.HasBlackWhiteMode;
            sp.vBlackWhiteMode   = this.vBlackWhiteMode;
            sp.HasTransform2D    = this.HasTransform2D;
            sp.Transform2D       = this.Transform2D.Clone();
            sp.HasPresetGeometry = this.HasPresetGeometry;
            sp.vPresetGeometry   = this.vPresetGeometry;
            sp.Fill       = this.Fill.Clone();
            sp.Outline    = this.Outline.Clone();
            sp.EffectList = this.EffectList.Clone();
            sp.Rotation3D = this.Rotation3D.Clone();
            sp.Format3D   = this.Format3D.Clone();

            return(sp);
        }
コード例 #16
0
        internal EGAxShared(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny)
        {
            this.AxisId      = 0;
            this.LogBase     = null;
            this.Orientation = C.OrientationValues.MinMax;

            this.OtherAxisIsInReverseOrder = false;
            this.OtherAxisCrossedAtMaximum = false;

            this.MaxAxisValue      = null;
            this.MinAxisValue      = null;
            this.Delete            = false;
            this.ForceAxisPosition = false;
            this.AxisPosition      = C.AxisPositionValues.Bottom;

            this.ShowMajorGridlines = false;
            this.MajorGridlines     = new SLMajorGridlines(ThemeColors, IsStylish, ThrowExceptionsIfAny);
            this.ShowMinorGridlines = false;
            this.MinorGridlines     = new SLMinorGridlines(ThemeColors, IsStylish, ThrowExceptionsIfAny);

            this.ShowTitle = false;
            this.Title     = new SLTitle(ThemeColors, IsStylish, ThrowExceptionsIfAny);

            this.sFormatCode        = SLConstants.NumberFormatGeneral;
            this.bSourceLinked      = true;
            this.HasNumberingFormat = false;

            this.MajorTickMark     = C.TickMarkValues.Outside;
            this.MinorTickMark     = C.TickMarkValues.None;
            this.TickLabelPosition = C.TickLabelPositionValues.NextTo; // default

            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny);

            this.CrossingAxis = 0;
            this.IsCrosses    = null;
            this.Crosses      = C.CrossesValues.AutoZero;
            this.CrossesAt    = 0.0;

            this.OtherAxisIsCrosses = null;
            this.OtherAxisCrosses   = C.CrossesValues.AutoZero;
            this.OtherAxisCrossesAt = 0.0;
        }
コード例 #17
0
        internal EGAxShared(List<System.Drawing.Color> ThemeColors, bool IsStylish = false)
        {
            this.AxisId = 0;
            this.LogBase = null;
            this.Orientation = C.OrientationValues.MinMax;

            this.OtherAxisIsInReverseOrder = false;
            this.OtherAxisCrossedAtMaximum = false;

            this.MaxAxisValue = null;
            this.MinAxisValue = null;
            this.Delete = false;
            this.ForceAxisPosition = false;
            this.AxisPosition = C.AxisPositionValues.Bottom;

            this.ShowMajorGridlines = false;
            this.MajorGridlines = new SLMajorGridlines(ThemeColors, IsStylish);
            this.ShowMinorGridlines = false;
            this.MinorGridlines = new SLMinorGridlines(ThemeColors, IsStylish);

            this.ShowTitle = false;
            this.Title = new SLTitle(ThemeColors, IsStylish);

            this.sFormatCode = SLConstants.NumberFormatGeneral;
            this.bSourceLinked = true;
            this.HasNumberingFormat = false;

            this.MajorTickMark = C.TickMarkValues.Outside;
            this.MinorTickMark = C.TickMarkValues.None;
            this.TickLabelPosition = C.TickLabelPositionValues.NextTo; // default

            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);

            this.CrossingAxis = 0;
            this.IsCrosses = null;
            this.Crosses = C.CrossesValues.AutoZero;
            this.CrossesAt = 0.0;

            this.OtherAxisIsCrosses = null;
            this.OtherAxisCrosses = C.CrossesValues.AutoZero;
            this.OtherAxisCrossesAt = 0.0;
        }
コード例 #18
0
        internal void MergeOptions(SLPieChartOptions pco)
        {
            this.VaryColors      = pco.VaryColors;
            this.FirstSliceAngle = pco.FirstSliceAngle;
            this.HoleSize        = pco.HoleSize;
            this.GapWidth        = pco.GapWidth;
            this.HasSplit        = pco.HasSplit;
            this.SplitType       = pco.SplitType;
            this.SplitPosition   = pco.SplitPosition;

            this.SecondPiePoints.Clear();
            foreach (int i in pco.SecondPiePoints)
            {
                this.SecondPiePoints.Add(i);
            }
            this.SecondPiePoints.Sort();

            this.SecondPieSize = pco.SecondPieSize;

            this.SeriesLinesShapeProperties = pco.ShapeProperties.Clone();
        }
コード例 #19
0
        internal SLDataTable(List <System.Drawing.Color> ThemeColors, bool IsStylish, bool ThrowExceptionsIfAny)
        {
            this.ShowHorizontalBorder = true;
            this.ShowVerticalBorder   = true;
            this.ShowOutlineBorder    = true;
            this.ShowLegendKeys       = true;
            this.ShapeProperties      = new SLA.SLShapeProperties(ThemeColors, ThrowExceptionsIfAny);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.Width            = 0.75m;
                this.ShapeProperties.Outline.CapType          = A.LineCapValues.Flat;
                this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
                this.ShapeProperties.Outline.Alignment        = A.PenAlignmentValues.Center;
                this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
                this.ShapeProperties.Outline.JoinType = SLA.SLLineJoinValues.Round;
            }

            this.Font = null;
        }
コード例 #20
0
        internal SLDataTable(List<System.Drawing.Color> ThemeColors, bool IsStylish = false)
        {
            this.ShowHorizontalBorder = true;
            this.ShowVerticalBorder = true;
            this.ShowOutlineBorder = true;
            this.ShowLegendKeys = true;
            this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);

            if (IsStylish)
            {
                this.ShapeProperties.Fill.SetNoFill();
                this.ShapeProperties.Outline.Width = 0.75m;
                this.ShapeProperties.Outline.CapType = A.LineCapValues.Flat;
                this.ShapeProperties.Outline.CompoundLineType = A.CompoundLineValues.Single;
                this.ShapeProperties.Outline.Alignment = A.PenAlignmentValues.Center;
                this.ShapeProperties.Outline.SetSolidLine(A.SchemeColorValues.Text1, 0.85m, 0);
                this.ShapeProperties.Outline.JoinType = SLA.SLLineJoinValues.Round;
            }

            this.Font = null;
        }
コード例 #21
0
        internal SLShapeProperties Clone()
        {
            SLShapeProperties sp = new SLShapeProperties(this.listThemeColors);
            sp.HasTransform2D = this.HasTransform2D;
            sp.Transform2D = this.Transform2D.Clone();
            sp.HasGeometry = this.HasGeometry;
            sp.vPresetGeometry = this.vPresetGeometry;
            sp.Fill = this.Fill.Clone();
            sp.Outline = this.Outline.Clone();
            sp.EffectList = this.EffectList.Clone();
            sp.Rotation3D = this.Rotation3D.Clone();
            sp.Format3D = this.Format3D.Clone();

            return sp;
        }
コード例 #22
0
 /// <summary>
 /// Clear all styling shape properties. Use this if you want to start styling from a clean slate.
 /// </summary>
 public void ClearShapeProperties()
 {
     this.ShapeProperties = new SLA.SLShapeProperties(this.ShapeProperties.listThemeColors, this.ShapeProperties.ThrowExceptionsIfAny);
 }
コード例 #23
0
 private void Initialize(List<System.Drawing.Color> ThemeColors, bool IsStylish)
 {
     this.iGapWidth = 150;
     this.byOverlap = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     this.HasDropLines = false;
     this.DropLines = new SLDropLines(ThemeColors, IsStylish);
     this.HasHighLowLines = true;
     this.HighLowLines = new SLHighLowLines(ThemeColors, IsStylish);
     this.HasUpDownBars = true;
     this.UpDownBars = new SLUpDownBars(ThemeColors, IsStylish);
 }
コード例 #24
0
 private void Initialize(List<System.Drawing.Color> ThemeColors)
 {
     this.VaryColors = true;
     this.iFirstSliceAngle = 0;
     this.byHoleSize = 10;
     this.iGapWidth = 150;
     this.HasSplit = false;
     this.SplitType = C.SplitValues.Position;
     this.SplitPosition = 0;
     this.SecondPiePoints = new List<int>();
     this.iSecondPieSize = 75;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
 }
コード例 #25
0
 /// <summary>
 /// Clear all styling shape properties. Use this if you want to start styling from a clean slate.
 /// </summary>
 public void ClearShapeProperties()
 {
     this.ShapeProperties = new SLA.SLShapeProperties(this.ShapeProperties.listThemeColors);
 }
コード例 #26
0
ファイル: SLSideWall.cs プロジェクト: nunezger/berkeleyshoe
 /// <summary>
 /// Clear all styling shape properties. Use this if you want to start styling from a clean slate.
 /// </summary>
 public void ClearShapeProperties()
 {
     this.ShapeProperties = new SLA.SLShapeProperties(this.ShapeProperties.listThemeColors);
 }
コード例 #27
0
 private void Initialize(List<System.Drawing.Color> ThemeColors)
 {
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
     this.InvertIfNegative = null;
     this.Marker = new SLMarker(ThemeColors);
     this.iExplosion = null;
     this.bBubble3D = null;
     this.Smooth = false;
     this.vShape = null;
 }
コード例 #28
0
ファイル: SLBackWall.cs プロジェクト: mousetwentytwo/test
 internal SLBackWall(List<System.Drawing.Color> ThemeColors)
 {
     this.Thickness = 0;
     this.ShapeProperties = new SLA.SLShapeProperties(ThemeColors);
 }
コード例 #29
0
        private void InitialisePicture()
        {
            // should be true once we get *everyone* to stop using those confoundedly
            // hard to understand EMUs and absolute positionings...
            UseEasyPositioning = false;
            TopPosition = 0;
            LeftPosition = 0;

            UseRelativePositioning = true;
            AnchorRowIndex = 1;
            AnchorColumnIndex = 1;
            OffsetX = 0;
            OffsetY = 0;
            WidthInEMU = 0;
            HeightInEMU = 0;
            WidthInPixels = 0;
            HeightInPixels = 0;
            fHorizontalResolutionRatio = 1;
            fVerticalResolutionRatio = 1;

            this.bLockWithSheet = true;
            this.bPrintWithSheet = true;
            this.vCompressionState = A.BlipCompressionValues.Print;
            this.decBrightness = 0;
            this.decContrast = 0;
            //this.decRotationAngle = 0;

            this.ShapeProperties = new SLShapeProperties(new List<System.Drawing.Color>());

            this.HasUri = false;
            this.HyperlinkUri = string.Empty;
            this.HyperlinkUriKind = UriKind.Absolute;
            this.IsHyperlinkExternal = true;

            this.DataIsInFile = true;
            this.PictureFileName = string.Empty;
            this.PictureByteData = new byte[1];
            this.PictureImagePartType = ImagePartType.Bmp;
        }
コード例 #30
0
        internal void MergeOptions(SLPieChartOptions pco)
        {
            this.VaryColors = pco.VaryColors;
            this.FirstSliceAngle = pco.FirstSliceAngle;
            this.HoleSize = pco.HoleSize;
            this.GapWidth = pco.GapWidth;
            this.HasSplit = pco.HasSplit;
            this.SplitType = pco.SplitType;
            this.SplitPosition = pco.SplitPosition;

            this.SecondPiePoints.Clear();
            foreach (int i in pco.SecondPiePoints)
            {
                this.SecondPiePoints.Add(i);
            }
            this.SecondPiePoints.Sort();

            this.SecondPieSize = pco.SecondPieSize;

            this.SeriesLinesShapeProperties = pco.ShapeProperties.Clone();
        }