📄 frxclass.pas
字号:
property Page: TfrxReportPage read FPage write SetPage;
property PrintOnParent: Boolean read FPrintOnParent write FPrintOnParent
default False;
end;
{ Bands }
TfrxChild = class;
TfrxBand = class(TfrxReportComponent)
private
FAllowSplit: Boolean;
FChild: TfrxChild;
FKeepChild: Boolean;
FOnAfterCalcHeight: TfrxNotifyEvent;
FOutlineText: String;
FOverflow: Boolean;
FStartNewPage: Boolean;
FStretched: Boolean;
FPrintChildIfInvisible: Boolean;
FVertical: Boolean;
function GetBandName: String;
procedure SetChild(Value: TfrxChild);
protected
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
procedure SetLeft(Value: Extended); override;
procedure SetTop(Value: Extended); override;
procedure SetHeight(Value: Extended); override;
public
FSubBands: TList; { list of subbands }
FHeader, FFooter, FGroup: TfrxBand; { h./f./g. bands }
FLineN: Integer; { used for Line# }
FLineThrough: Integer; { used for LineThrough# }
FOriginalObjectsCount: Integer; { used for TfrxSubReport.PrintOnParent }
FHasVBands: Boolean; { whether the band should show vbands }
FStretchedHeight: Extended;
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function BandNumber: Integer;
procedure Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX, OffsetY: Extended); override;
class function GetDescription: String; override;
property AllowSplit: Boolean read FAllowSplit write FAllowSplit default False;
property BandName: String read GetBandName;
property Child: TfrxChild read FChild write SetChild;
property KeepChild: Boolean read FKeepChild write FKeepChild default False;
property OutlineText: String read FOutlineText write FOutlineText;
property Overflow: Boolean read FOverflow write FOverflow;
property PrintChildIfInvisible: Boolean read FPrintChildIfInvisible
write FPrintChildIfInvisible default False;
property StartNewPage: Boolean read FStartNewPage write FStartNewPage default False;
property Stretched: Boolean read FStretched write FStretched default False;
published
property Font;
property Height;
property Left;
property ParentFont;
property Restrictions;
property Top;
property Vertical: Boolean read FVertical write FVertical default False;
property Visible;
property Width;
property OnAfterCalcHeight: TfrxNotifyEvent read FOnAfterCalcHeight
write FOnAfterCalcHeight;
property OnAfterPrint;
property OnBeforePrint;
end;
TfrxBandClass = class of TfrxBand;
TfrxDataBand = class(TfrxBand)
private
FColumnGap: Extended;
FColumnWidth: Extended;
FColumns: Integer;
FCurColumn: Integer;
FDataSet: TfrxDataSet;
FDataSetName: String;
FFooterAfterEach: Boolean;
FKeepFooter: Boolean;
FKeepHeader: Boolean;
FKeepTogether: Boolean;
FPrintIfDetailEmpty: Boolean;
FRowCount: Integer;
FOnMasterDetail: TfrxNotifyEvent;
FVirtualDataSet: TfrxUserDataSet;
procedure SetCurColumn(Value: Integer);
procedure SetRowCount(const Value: Integer);
procedure SetDataSet(const Value: TfrxDataSet);
procedure SetDataSetName(const Value: String);
function GetDataSetName: String;
protected
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
public
FMaxY: Extended; { used for columns }
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
class function GetDescription: String; override;
property CurColumn: Integer read FCurColumn write SetCurColumn;
property VirtualDataSet: TfrxUserDataSet read FVirtualDataSet;
published
property AllowSplit;
property Child;
property Columns: Integer read FColumns write FColumns default 0;
property ColumnWidth: Extended read FColumnWidth write FColumnWidth;
property ColumnGap: Extended read FColumnGap write FColumnGap;
property DataSet: TfrxDataSet read FDataSet write SetDataSet;
property DataSetName: String read GetDataSetName write SetDataSetName;
property FooterAfterEach: Boolean read FFooterAfterEach write FFooterAfterEach default False;
property KeepChild;
property KeepFooter: Boolean read FKeepFooter write FKeepFooter default False;
property KeepHeader: Boolean read FKeepHeader write FKeepHeader default False;
property KeepTogether: Boolean read FKeepTogether write FKeepTogether default False;
property OutlineText;
property PrintChildIfInvisible;
property PrintIfDetailEmpty: Boolean read FPrintIfDetailEmpty
write FPrintIfDetailEmpty default False;
property RowCount: Integer read FRowCount write SetRowCount;
property StartNewPage;
property Stretched;
property OnMasterDetail: TfrxNotifyEvent read FOnMasterDetail write FOnMasterDetail;
end;
TfrxHeader = class(TfrxBand)
private
FReprintOnNewPage: Boolean;
published
property AllowSplit;
property Child;
property KeepChild;
property PrintChildIfInvisible;
property ReprintOnNewPage: Boolean read FReprintOnNewPage write FReprintOnNewPage default False;
property StartNewPage;
property Stretched;
end;
TfrxFooter = class(TfrxBand)
private
public
published
property AllowSplit;
property Child;
property KeepChild;
property PrintChildIfInvisible;
property Stretched;
end;
TfrxMasterData = class(TfrxDataBand)
private
public
published
end;
TfrxDetailData = class(TfrxDataBand)
private
public
published
end;
TfrxSubdetailData = class(TfrxDataBand)
private
public
published
end;
TfrxDataBand4 = class(TfrxDataBand)
private
public
published
end;
TfrxDataBand5 = class(TfrxDataBand)
private
public
published
end;
TfrxDataBand6 = class(TfrxDataBand)
private
public
published
end;
TfrxPageHeader = class(TfrxBand)
private
FPrintOnFirstPage: Boolean;
public
constructor Create(AOwner: TComponent); override;
published
property Child;
property PrintChildIfInvisible;
property PrintOnFirstPage: Boolean read FPrintOnFirstPage write FPrintOnFirstPage default True;
property Stretched;
end;
TfrxPageFooter = class(TfrxBand)
private
FPrintOnFirstPage: Boolean;
FPrintOnLastPage: Boolean;
public
constructor Create(AOwner: TComponent); override;
published
property PrintOnFirstPage: Boolean read FPrintOnFirstPage write FPrintOnFirstPage default True;
property PrintOnLastPage: Boolean read FPrintOnLastPage write FPrintOnLastPage default True;
end;
TfrxColumnHeader = class(TfrxBand)
private
public
published
property Child;
property Stretched;
end;
TfrxColumnFooter = class(TfrxBand)
private
public
published
end;
TfrxGroupHeader = class(TfrxBand)
private
FCondition: String;
FDrillDown: Boolean;
FExpandDrillDown: Boolean;
FShowFooterIfDrillDown: Boolean;
FKeepTogether: Boolean;
FReprintOnNewPage: Boolean;
FResetPageNumbers: Boolean;
public
FLastValue: Variant;
function Diff(AComponent: TfrxComponent): String; override;
published
property AllowSplit;
property Child;
property Condition: String read FCondition write FCondition;
property DrillDown: Boolean read FDrillDown write FDrillDown default False;
property ExpandDrillDown: Boolean read FExpandDrillDown write FExpandDrillDown default False;
property KeepChild;
property KeepTogether: Boolean read FKeepTogether write FKeepTogether default False;
property ReprintOnNewPage: Boolean read FReprintOnNewPage write FReprintOnNewPage default False;
property OutlineText;
property PrintChildIfInvisible;
property ResetPageNumbers: Boolean read FResetPageNumbers write FResetPageNumbers default False;
property ShowFooterIfDrillDown: Boolean read FShowFooterIfDrillDown
write FShowFooterIfDrillDown default False;
property StartNewPage;
property Stretched;
end;
TfrxGroupFooter = class(TfrxBand)
private
FHideIfSingleDataRecord: Boolean;
public
published
property AllowSplit;
property Child;
property HideIfSingleDataRecord: Boolean read FHideIfSingleDataRecord
write FHideIfSingleDataRecord default False;
property KeepChild;
property PrintChildIfInvisible;
property Stretched;
end;
TfrxReportTitle = class(TfrxBand)
private
public
published
property AllowSplit;
property Child;
property KeepChild;
property PrintChildIfInvisible;
property StartNewPage;
property Stretched;
end;
TfrxReportSummary = class(TfrxBand)
private
public
published
property AllowSplit;
property Child;
property KeepChild;
property PrintChildIfInvisible;
property StartNewPage;
property Stretched;
end;
TfrxChild = class(TfrxBand)
private
public
published
property AllowSplit;
property Child;
property KeepChild;
property PrintChildIfInvisible;
property StartNewPage;
property Stretched;
end;
TfrxOverlay = class(TfrxBand)
private
FPrintOnTop: Boolean;
public
published
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -