You've already forked lazarus-ccr
fpspreadsheet: Copying TsChart element classes rather than assigning. Fix LCL_FullVersion directive.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@9081 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -57,6 +57,7 @@ type
|
|||||||
Angle: Double; // degrees
|
Angle: Double; // degrees
|
||||||
constructor Create;
|
constructor Create;
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
procedure CopyFrom(ASource: TsChartGradient);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TsChartGradientList = class(TFPObjectList)
|
TsChartGradientList = class(TFPObjectList)
|
||||||
@ -95,6 +96,7 @@ type
|
|||||||
LineDistance: Double; // mm
|
LineDistance: Double; // mm
|
||||||
LineAngle: Double; // degrees
|
LineAngle: Double; // degrees
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
procedure CopyFrom(ASource: TsChartHatch);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TsChartHatchList = class(TFPObjectList)
|
TsChartHatchList = class(TFPObjectList)
|
||||||
@ -114,6 +116,7 @@ type
|
|||||||
Image: TFPCustomImage;
|
Image: TFPCustomImage;
|
||||||
Width, Height: Double; // mm
|
Width, Height: Double; // mm
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
procedure Copyfrom(ASource: TsChartImage);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
TsChartImagelist = class(TFPObjectList)
|
TsChartImagelist = class(TFPObjectList)
|
||||||
@ -150,6 +153,7 @@ type
|
|||||||
Segment2: TsChartLineSegment;
|
Segment2: TsChartLineSegment;
|
||||||
Distance: Double; // mm or % of linewidth
|
Distance: Double; // mm or % of linewidth
|
||||||
RelativeToLineWidth: Boolean;
|
RelativeToLineWidth: Boolean;
|
||||||
|
procedure CopyFrom(ASource: TsChartLineStyle);
|
||||||
function GetID: String;
|
function GetID: String;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
@ -173,6 +177,7 @@ type
|
|||||||
Sheet: String;
|
Sheet: String;
|
||||||
Row, Col: Cardinal;
|
Row, Col: Cardinal;
|
||||||
constructor Create(AChart: TsChart);
|
constructor Create(AChart: TsChart);
|
||||||
|
procedure CopyFrom(ASource: TsChartCellAddr);
|
||||||
function GetSheetName: String;
|
function GetSheetName: String;
|
||||||
function IsUsed: Boolean;
|
function IsUsed: Boolean;
|
||||||
end;
|
end;
|
||||||
@ -184,7 +189,7 @@ type
|
|||||||
Sheet1, Sheet2: String;
|
Sheet1, Sheet2: String;
|
||||||
Row1, Col1, Row2, Col2: Cardinal;
|
Row1, Col1, Row2, Col2: Cardinal;
|
||||||
constructor Create(AChart: TsChart);
|
constructor Create(AChart: TsChart);
|
||||||
procedure Assign(ASource: TsChartRange);
|
procedure CopyFrom(ASource: TsChartRange);
|
||||||
function GetSheet1Name: String;
|
function GetSheet1Name: String;
|
||||||
function GetSheet2Name: String;
|
function GetSheet2Name: String;
|
||||||
function IsEmpty: Boolean;
|
function IsEmpty: Boolean;
|
||||||
@ -196,6 +201,7 @@ type
|
|||||||
FVisible: Boolean;
|
FVisible: Boolean;
|
||||||
public
|
public
|
||||||
constructor Create(AChart: TsChart);
|
constructor Create(AChart: TsChart);
|
||||||
|
procedure CopyFrom(ASource: TsChartElement); virtual;
|
||||||
property Chart: TsChart read FChart;
|
property Chart: TsChart read FChart;
|
||||||
property Visible: Boolean read FVisible write FVisible;
|
property Visible: Boolean read FVisible write FVisible;
|
||||||
end;
|
end;
|
||||||
@ -207,6 +213,7 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create(AChart: TsChart);
|
constructor Create(AChart: TsChart);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
procedure CopyFrom(ASource: TsChartElement); override;
|
||||||
property Background: TsChartFill read FBackground write FBackground;
|
property Background: TsChartFill read FBackground write FBackground;
|
||||||
property Border: TsChartLine read FBorder write FBorder;
|
property Border: TsChartLine read FBorder write FBorder;
|
||||||
end;
|
end;
|
||||||
@ -220,6 +227,7 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create(AChart: TsChart);
|
constructor Create(AChart: TsChart);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
procedure CopyFrom(ASource: TsChartElement); override;
|
||||||
property Caption: String read FCaption write FCaption;
|
property Caption: String read FCaption write FCaption;
|
||||||
property Font: TsFont read FFont write FFont;
|
property Font: TsFont read FFont write FFont;
|
||||||
property RotationAngle: Integer read FRotationAngle write FRotationAngle;
|
property RotationAngle: Integer read FRotationAngle write FRotationAngle;
|
||||||
@ -266,7 +274,8 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create(AChart: TsChart);
|
constructor Create(AChart: TsChart);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
function OtherAxis: TsChartAxis;
|
procedure CopyFrom(ASource: TsChartElement); override;
|
||||||
|
function GetOtherAxis: TsChartAxis;
|
||||||
procedure SetCategoryRange(ARow1, ACol1, ARow2, ACol2: Cardinal);
|
procedure SetCategoryRange(ARow1, ACol1, ARow2, ACol2: Cardinal);
|
||||||
procedure SetCategoryRange(ASheet1: String; ARow1, ACol1: Cardinal; ASheet2: String; ARow2, ACol2: Cardinal);
|
procedure SetCategoryRange(ASheet1: String; ARow1, ACol1: Cardinal; ASheet2: String; ARow2, ACol2: Cardinal);
|
||||||
property AutomaticMax: Boolean read FAutomaticMax write FAutomaticMax;
|
property AutomaticMax: Boolean read FAutomaticMax write FAutomaticMax;
|
||||||
@ -310,6 +319,7 @@ type
|
|||||||
public
|
public
|
||||||
constructor Create(AChart: TsChart);
|
constructor Create(AChart: TsChart);
|
||||||
destructor Destroy; override;
|
destructor Destroy; override;
|
||||||
|
procedure CopyFrom(ASource: TsChartElement); override;
|
||||||
property CanOverlapPlotArea: Boolean read FCanOverlapPlotArea write FCanOverlapPlotArea;
|
property CanOverlapPlotArea: Boolean read FCanOverlapPlotArea write FCanOverlapPlotArea;
|
||||||
property Font: TsFont read FFont write FFont;
|
property Font: TsFont read FFont write FFont;
|
||||||
property Position: TsChartLegendPosition read FPosition write FPosition;
|
property Position: TsChartLegendPosition read FPosition write FPosition;
|
||||||
@ -750,6 +760,20 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartGradient.CopyFrom(ASource: TsChartGradient);
|
||||||
|
begin
|
||||||
|
Name := ASource.Name;
|
||||||
|
Style := ASource.Style;
|
||||||
|
StartColor := ASource.StartColor;
|
||||||
|
EndColor := ASource.EndColor;
|
||||||
|
StartIntensity := ASource.StartIntensity;
|
||||||
|
EndIntensity := ASource.EndIntensity;
|
||||||
|
Border := ASource.Border;
|
||||||
|
CenterX := ASource.CenterX;
|
||||||
|
CenterY := ASource.CenterY;
|
||||||
|
Angle := ASource.Angle;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TsChartGradientList }
|
{ TsChartGradientList }
|
||||||
|
|
||||||
@ -854,7 +878,7 @@ end;
|
|||||||
|
|
||||||
procedure TsChartGradientList.SetItem(AIndex: Integer; AValue: TsChartGradient);
|
procedure TsChartGradientList.SetItem(AIndex: Integer; AValue: TsChartGradient);
|
||||||
begin
|
begin
|
||||||
inherited Items[AIndex] := AValue;
|
TsChartGradient(inherited Items[AIndex]).CopyFrom(AValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -866,6 +890,15 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartHatch.CopyFrom(ASource: TsChartHatch);
|
||||||
|
begin
|
||||||
|
Name := ASource.Name;
|
||||||
|
Style := ASource.Style;
|
||||||
|
LineColor := ASource.LineColor;
|
||||||
|
LineDistance := ASource.LineDistance;
|
||||||
|
LineAngle := ASource.LineAngle;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TsChartHatchList }
|
{ TsChartHatchList }
|
||||||
|
|
||||||
@ -916,7 +949,7 @@ end;
|
|||||||
|
|
||||||
procedure TsChartHatchList.SetItem(AIndex: Integer; AValue: TsChartHatch);
|
procedure TsChartHatchList.SetItem(AIndex: Integer; AValue: TsChartHatch);
|
||||||
begin
|
begin
|
||||||
inherited Items[AIndex] := AValue;
|
TsChartHatch(inherited Items[AIndex]).CopyFrom(AValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -925,10 +958,18 @@ end;
|
|||||||
destructor TsChartImage.Destroy;
|
destructor TsChartImage.Destroy;
|
||||||
begin
|
begin
|
||||||
Name := '';
|
Name := '';
|
||||||
Image.Free;
|
//Image.Free; --- created by caller --> must be destroyed by caller!
|
||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartImage.CopyFrom(ASource: TsChartImage);
|
||||||
|
begin
|
||||||
|
Name := ASource.Name;
|
||||||
|
Image := ASource.Image;
|
||||||
|
Width := ASource.Width;
|
||||||
|
Height := ASource.Height;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TsChartImageList }
|
{ TsChartImageList }
|
||||||
|
|
||||||
@ -972,7 +1013,7 @@ end;
|
|||||||
|
|
||||||
procedure TsChartImageList.SetItem(AIndex: Integer; AValue: TsChartImage);
|
procedure TsChartImageList.SetItem(AIndex: Integer; AValue: TsChartImage);
|
||||||
begin
|
begin
|
||||||
inherited Items[AIndex] := AValue;
|
TsChartImage(inherited Items[AIndex]).CopyFrom(AValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -994,6 +1035,15 @@ end;
|
|||||||
|
|
||||||
{ TsChartLineStyle }
|
{ TsChartLineStyle }
|
||||||
|
|
||||||
|
procedure TsChartLineStyle.CopyFrom(ASource: TsChartLineStyle);
|
||||||
|
begin
|
||||||
|
Name := ASource.Name;
|
||||||
|
Segment1 := ASource.Segment1;
|
||||||
|
Segment2 := ASource.Segment2;
|
||||||
|
Distance := ASource.Distance;
|
||||||
|
RelativeToLineWidth := ASource.RelativeToLineWidth;
|
||||||
|
end;
|
||||||
|
|
||||||
function TsChartLineStyle.GetID: String;
|
function TsChartLineStyle.GetID: String;
|
||||||
var
|
var
|
||||||
i: Integer;
|
i: Integer;
|
||||||
@ -1054,7 +1104,7 @@ end;
|
|||||||
|
|
||||||
procedure TsChartLineStyleList.SetItem(AIndex: Integer; AValue: TsChartLineStyle);
|
procedure TsChartLineStyleList.SetItem(AIndex: Integer; AValue: TsChartLineStyle);
|
||||||
begin
|
begin
|
||||||
inherited Items[AIndex] := AValue;
|
TsChartLineStyle(inherited Items[AIndex]).CopyFrom(AValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
@ -1068,6 +1118,13 @@ begin
|
|||||||
Col := UNASSIGNED_ROW_COL_INDEX;
|
Col := UNASSIGNED_ROW_COL_INDEX;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartCellAddr.CopyFrom(ASource: TsChartCellAddr);
|
||||||
|
begin
|
||||||
|
Sheet := ASource.Sheet;
|
||||||
|
Row := ASource.Row;
|
||||||
|
Col := ASource.Col;
|
||||||
|
end;
|
||||||
|
|
||||||
function TsChartCellAddr.GetSheetName: String;
|
function TsChartCellAddr.GetSheetName: String;
|
||||||
begin
|
begin
|
||||||
if Sheet <> '' then
|
if Sheet <> '' then
|
||||||
@ -1095,7 +1152,7 @@ begin
|
|||||||
Col2 := UNASSIGNED_ROW_COL_INDEX;
|
Col2 := UNASSIGNED_ROW_COL_INDEX;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
procedure TsChartRange.Assign(ASource: TsChartRange);
|
procedure TsChartRange.CopyFrom(ASource: TsChartRange);
|
||||||
begin
|
begin
|
||||||
Sheet1 := ASource.Sheet1;
|
Sheet1 := ASource.Sheet1;
|
||||||
Sheet2 := ASource.Sheet2;
|
Sheet2 := ASource.Sheet2;
|
||||||
@ -1138,6 +1195,11 @@ begin
|
|||||||
FVisible := true;
|
FVisible := true;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartElement.CopyFrom(ASource: TsChartElement);
|
||||||
|
begin
|
||||||
|
Visible := ASource.Visible;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TsChartFillElement }
|
{ TsChartFillElement }
|
||||||
|
|
||||||
@ -1162,6 +1224,16 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartFillElement.CopyFrom(ASource: TsChartElement);
|
||||||
|
begin
|
||||||
|
inherited CopyFrom(ASource);
|
||||||
|
if ASource is TsChartFillElement then
|
||||||
|
begin
|
||||||
|
FBackground.CopyFrom(TsChartFillElement(ASource).Background);
|
||||||
|
FBorder.CopyFrom(TsChartFillElement(ASource).Border);
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TsChartText }
|
{ TsChartText }
|
||||||
|
|
||||||
@ -1185,6 +1257,19 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartText.CopyFrom(ASource: TsChartElement);
|
||||||
|
begin
|
||||||
|
inherited CopyFrom(ASource);
|
||||||
|
if ASource is TsChartText then
|
||||||
|
begin
|
||||||
|
FCaption := TsChartText(ASource).Caption;
|
||||||
|
FRotationAngle := TsChartText(ASource).RotationAngle;
|
||||||
|
FFont.CopyOf(TsChartText(ASource).Font);
|
||||||
|
FPosX := TsChartText(ASource).PosX;
|
||||||
|
FPosY := TsChartText(ASource).PosY;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TsChartAxis }
|
{ TsChartAxis }
|
||||||
|
|
||||||
@ -1242,11 +1327,46 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartAxis.CopyFrom(ASource: TsChartElement);
|
||||||
|
begin
|
||||||
|
inherited CopyFrom(ASource);
|
||||||
|
if ASource is TsChartAxis then
|
||||||
|
begin
|
||||||
|
FAutomaticMax := TsChartAxis(ASource).AutomaticMax;
|
||||||
|
FAutomaticMin := TsChartAxis(ASource).AutomaticMin;
|
||||||
|
FAutomaticMajorInterval := TsChartAxis(ASource).AutomaticMajorInterval;
|
||||||
|
FAutomaticMinorSteps := TsChartAxis(ASource).AutomaticMinorSteps;
|
||||||
|
FAxisLine.CopyFrom(TsChartAxis(ASource).AxisLine);
|
||||||
|
FCategoryRange.CopyFrom(TsChartAxis(ASource).CategoryRange);
|
||||||
|
FMajorGridLines.CopyFrom(TsChartAxis(ASource).MajorGridLines);
|
||||||
|
FMinorGridLines.CopyFrom(TsChartAxis(ASource).MinorGridLines);
|
||||||
|
FInverted := TsChartAxis(ASource).Inverted;
|
||||||
|
FLabelFont.CopyOf(TsChartAxis(ASource).LabelFont);
|
||||||
|
FLabelFormat := TsChartAxis(ASource).LabelFormat;
|
||||||
|
FLabelFormatFromSource := TsChartAxis(ASource).LabelFormatFromSource;
|
||||||
|
FLabelFormatDateTime := TsChartAxis(ASource).LabelFormatDateTime;
|
||||||
|
FLabelFormatPercent := TsChartAxis(ASource).LabelFormatPercent;
|
||||||
|
FLabelRotation := TsChartAxis(ASource).LabelRotation;
|
||||||
|
FLogarithmic :=TsChartAxis(ASource).Logarithmic;
|
||||||
|
FMajorInterval := TsChartAxis(ASource).MajorInterval;
|
||||||
|
FMajorTicks := TsChartAxis(ASource).MajorTicks;
|
||||||
|
FMax := TsChartAxis(ASource).Max;
|
||||||
|
FMin := TsChartAxis(ASource).Min;
|
||||||
|
FMinorCount := TsChartAxis(ASource).MinorCount;
|
||||||
|
FMinorTicks := TsChartAxis(ASource).MinorTicks;
|
||||||
|
FPosition := TsChartAxis(ASource).Position;
|
||||||
|
FTitle.CopyFrom(TsChartAxis(ASource).Title);
|
||||||
|
FPositionValue := TsChartAxis(ASource).PositionValue;
|
||||||
|
FShowLabels := TsChartAxis(ASource).ShowLabels;
|
||||||
|
FDateTime := TsChartAxis(ASource).DateTime;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
{@@ ----------------------------------------------------------------------------
|
{@@ ----------------------------------------------------------------------------
|
||||||
Returns the other axis in the same direction, i.e. when the axis is the
|
Returns the other axis in the same direction, i.e. when the axis is the
|
||||||
primary x axis the function returns the secondary x axis, etc.
|
primary x axis the function returns the secondary x axis, etc.
|
||||||
-------------------------------------------------------------------------------}
|
-------------------------------------------------------------------------------}
|
||||||
function TsChartAxis.OtherAxis: TsChartAxis;
|
function TsChartAxis.GetOtherAxis: TsChartAxis;
|
||||||
begin
|
begin
|
||||||
if Chart.XAxis = self then
|
if Chart.XAxis = self then
|
||||||
Result := Chart.X2Axis
|
Result := Chart.X2Axis
|
||||||
@ -1292,6 +1412,20 @@ begin
|
|||||||
inherited;
|
inherited;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
procedure TsChartLegend.CopyFrom(ASource: TsChartElement);
|
||||||
|
begin
|
||||||
|
inherited CopyFrom(ASource);
|
||||||
|
if ASource is TsChartLegend then
|
||||||
|
begin
|
||||||
|
FFont.CopyOf(TsChartLegend(ASource).Font);
|
||||||
|
FCanOverlapPlotArea := TsChartLegend(ASource).CanOverlapPlotArea;
|
||||||
|
FPosition := TsChartLegend(ASource).Position;
|
||||||
|
FPosX := TsChartLegend(ASource).PosX;
|
||||||
|
FPosY := TsChartLegend(ASource).PosY;
|
||||||
|
end;
|
||||||
|
end;
|
||||||
|
|
||||||
|
|
||||||
{ TsChartDataPointStyleList }
|
{ TsChartDataPointStyleList }
|
||||||
|
|
||||||
constructor TsChartDataPointStyleList.Create(AChart: TsChart);
|
constructor TsChartDataPointStyleList.Create(AChart: TsChart);
|
||||||
@ -1353,7 +1487,7 @@ end;
|
|||||||
procedure TsChartDataPointStyleList.SetItem(AIndex: Integer;
|
procedure TsChartDataPointStyleList.SetItem(AIndex: Integer;
|
||||||
AValue: TsChartDataPointStyle);
|
AValue: TsChartDataPointStyle);
|
||||||
begin
|
begin
|
||||||
inherited Items[AIndex] := AValue;
|
TsChartDataPointStyle(inherited Items[AIndex]).CopyFrom(AValue);
|
||||||
end;
|
end;
|
||||||
|
|
||||||
|
|
||||||
|
@ -1349,7 +1349,7 @@ begin
|
|||||||
ReadChartCellRange(ANode, 'chart:values-cell-range-address', series.YRange);
|
ReadChartCellRange(ANode, 'chart:values-cell-range-address', series.YRange);
|
||||||
|
|
||||||
if series.XRange.IsEmpty then
|
if series.XRange.IsEmpty then
|
||||||
series.XRange.Assign(series.Chart.XAxis.CategoryRange);
|
series.XRange.CopyFrom(series.Chart.XAxis.CategoryRange);
|
||||||
|
|
||||||
s := GetAttrValue(ANode, 'chart:attached-axis');
|
s := GetAttrValue(ANode, 'chart:attached-axis');
|
||||||
if s = 'primary-y' then
|
if s = 'primary-y' then
|
||||||
@ -1372,7 +1372,7 @@ begin
|
|||||||
end else
|
end else
|
||||||
if xyCounter = 1 then
|
if xyCounter = 1 then
|
||||||
begin
|
begin
|
||||||
series.YRange.Assign(series.XRange);
|
series.YRange.CopyFrom(series.XRange);
|
||||||
ReadChartCellRange(subnode, 'table:cell-range-address', series.XRange)
|
ReadChartCellRange(subnode, 'table:cell-range-address', series.XRange)
|
||||||
end;
|
end;
|
||||||
end;
|
end;
|
||||||
@ -1410,7 +1410,7 @@ begin
|
|||||||
subnode := subNode.NextSibling;
|
subnode := subNode.NextSibling;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
if series.LabelRange.IsEmpty then series.LabelRange.Assign(AChart.XAxis.CategoryRange);
|
if series.LabelRange.IsEmpty then series.LabelRange.CopyFrom(AChart.XAxis.CategoryRange);
|
||||||
|
|
||||||
s := GetAttrValue(ANode, 'chart:style-name');
|
s := GetAttrValue(ANode, 'chart:style-name');
|
||||||
if s <> '' then
|
if s <> '' then
|
||||||
|
@ -988,7 +988,7 @@ end;
|
|||||||
-------------------------------------------------------------------------------}
|
-------------------------------------------------------------------------------}
|
||||||
procedure TsWorkbookChartSource.SetYCount(AValue: Cardinal);
|
procedure TsWorkbookChartSource.SetYCount(AValue: Cardinal);
|
||||||
begin
|
begin
|
||||||
{$IF LCL_FullVersion >= 3090900}
|
{$IF LCL_FullVersion >= 3990000}
|
||||||
inherited SetYCount(AValue);
|
inherited SetYCount(AValue);
|
||||||
{$ELSE}
|
{$ELSE}
|
||||||
FYCount := AValue;
|
FYCount := AValue;
|
||||||
@ -1688,7 +1688,7 @@ procedure TsWorkbookChartlink.UpdateBubbleSeries(AWorkbookSeries: TsBubbleSeries
|
|||||||
begin
|
begin
|
||||||
UpdateChartBrush(AWorkbookSeries.Chart, AWorkbookSeries.Fill, AChartSeries.BubbleBrush);
|
UpdateChartBrush(AWorkbookSeries.Chart, AWorkbookSeries.Fill, AChartSeries.BubbleBrush);
|
||||||
UpdateChartPen(AWorkbookSeries.Chart, AWorkbookSeries.Line, AChartSeries.BubblePen);
|
UpdateChartPen(AWorkbookSeries.Chart, AWorkbookSeries.Line, AChartSeries.BubblePen);
|
||||||
{$IF LCL_FullVersion >= 3090900}
|
{$IF LCL_FullVersion >= 3990000}
|
||||||
AChartSeries.BubbleRadiusUnits := bruPercentage;
|
AChartSeries.BubbleRadiusUnits := bruPercentage;
|
||||||
AChartSeries.ParentChart.ExpandPercentage := 10;
|
AChartSeries.ParentChart.ExpandPercentage := 10;
|
||||||
{$IFEND}
|
{$IFEND}
|
||||||
@ -1778,7 +1778,7 @@ begin
|
|||||||
// Autoscale transformation for primary and secondary axes
|
// Autoscale transformation for primary and secondary axes
|
||||||
T := TAutoScaleAxisTransform.Create(axis.Transformations);
|
T := TAutoScaleAxisTransform.Create(axis.Transformations);
|
||||||
T.Transformations := axis.Transformations;
|
T.Transformations := axis.Transformations;
|
||||||
T.Enabled := AWorkbookAxis.Visible and AWorkbookAxis.OtherAxis.Visible;
|
T.Enabled := AWorkbookAxis.Visible and AWorkbookAxis.GetOtherAxis.Visible;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// Axis title
|
// Axis title
|
||||||
@ -1793,7 +1793,6 @@ begin
|
|||||||
if (AWorkbookAxis.LabelFormat <> '') and not IsDateTimeFormat(AWorkbookAxis.LabelFormat) then
|
if (AWorkbookAxis.LabelFormat <> '') and not IsDateTimeFormat(AWorkbookAxis.LabelFormat) then
|
||||||
axis.Marks.Format := Convert_NumFormatStr_to_FormatStr(AWorkbookAxis.LabelFormat);
|
axis.Marks.Format := Convert_NumFormatStr_to_FormatStr(AWorkbookAxis.LabelFormat);
|
||||||
|
|
||||||
|
|
||||||
// Axis line
|
// Axis line
|
||||||
UpdateChartPen(AWorkbookAxis.Chart, AWorkbookAxis.AxisLine, axis.AxisPen);
|
UpdateChartPen(AWorkbookAxis.Chart, AWorkbookAxis.AxisLine, axis.AxisPen);
|
||||||
axis.AxisPen.Visible := axis.AxisPen.Style <> psClear;
|
axis.AxisPen.Visible := axis.AxisPen.Style <> psClear;
|
||||||
|
Reference in New Issue
Block a user