📄 frxclass.pas
字号:
property PrintOnTop: Boolean read FPrintOnTop write FPrintOnTop default False;
end;
TfrxNullBand = class(TfrxBand);
{ Pages }
TfrxPage = class(TfrxComponent)
private
protected
public
published
property Font;
property Visible;
end;
TfrxReportPage = class(TfrxPage)
private
FBackPicture: TfrxPictureView;
FBin: Integer;
FBinOtherPages: Integer;
FBottomMargin: Extended;
FColumns: Integer;
FColumnWidth: Extended;
FColumnPositions: TStrings;
FDataSet: TfrxDataSet;
FDuplex: TfrxDuplexMode;
FEndlessHeight: Boolean;
FEndlessWidth: Boolean;
FHGuides: TStrings;
FLargeDesignHeight: Boolean;
FLeftMargin: Extended;
FMirrorMargins: Boolean;
FOrientation: TPrinterOrientation;
FOutlineText: String;
FPrintIfEmpty: Boolean;
FPrintOnPreviousPage: Boolean;
FResetPageNumbers: Boolean;
FRightMargin: Extended;
FSubReport: TfrxSubreport;
FTitleBeforeHeader: Boolean;
FTopMargin: Extended;
FVGuides: TStrings;
FOnAfterPrint: TfrxNotifyEvent;
FOnBeforePrint: TfrxNotifyEvent;
FOnManualBuild: TfrxNotifyEvent;
FDataSetName: String;
FBackPictureVisible: Boolean;
FBackPicturePrintable: Boolean;
FPageCount: Integer;
procedure SetPageCount(const Value: Integer);
procedure SetColumns(const Value: Integer);
procedure SetOrientation(Value: TPrinterOrientation);
procedure SetHGuides(const Value: TStrings);
procedure SetVGuides(const Value: TStrings);
procedure SetColumnPositions(const Value: TStrings);
procedure SetFrame(const Value: TfrxFrame);
function GetFrame: TfrxFrame;
function GetColor: TColor;
procedure SetColor(const Value: TColor);
function GetBackPicture: TPicture;
procedure SetBackPicture(const Value: TPicture);
procedure SetDataSet(const Value: TfrxDataSet);
procedure SetDataSetName(const Value: String);
function GetDataSetName: String;
protected
FPaperHeight: Extended;
FPaperSize: Integer;
FPaperWidth: Extended;
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
procedure SetPaperHeight(const Value: Extended); virtual;
procedure SetPaperWidth(const Value: Extended); virtual;
procedure SetPaperSize(const Value: Integer); virtual;
procedure UpdateDimensions;
public
FSubBands: TList; { list of master bands }
FVSubBands: TList; { list of vertical master bands }
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
class function GetDescription: String; override;
function FindBand(Band: TfrxBandClass): TfrxBand;
function IsSubReport: Boolean;
procedure AlignChildren; override;
procedure ClearGuides;
procedure Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX, OffsetY: Extended);
procedure SetDefaults; virtual;
procedure SetSizeAndDimensions(ASize: Integer; AWidth, AHeight: Extended);
property SubReport: TfrxSubreport read FSubReport;
published
{ paper }
property Orientation: TPrinterOrientation read FOrientation
write SetOrientation default poPortrait;
property PaperWidth: Extended read FPaperWidth write SetPaperWidth;
property PaperHeight: Extended read FPaperHeight write SetPaperHeight;
property PaperSize: Integer read FPaperSize write SetPaperSize;
{ margins }
property LeftMargin: Extended read FLeftMargin write FLeftMargin;
property RightMargin: Extended read FRightMargin write FRightMargin;
property TopMargin: Extended read FTopMargin write FTopMargin;
property BottomMargin: Extended read FBottomMargin write FBottomMargin;
property MirrorMargins: Boolean read FMirrorMargins write FMirrorMargins
default False;
{ columns }
property Columns: Integer read FColumns write SetColumns default 0;
property ColumnWidth: Extended read FColumnWidth write FColumnWidth;
property ColumnPositions: TStrings read FColumnPositions write SetColumnPositions;
{ bins }
property Bin: Integer read FBin write FBin default DMBIN_AUTO;
property BinOtherPages: Integer read FBinOtherPages write FBinOtherPages
default DMBIN_AUTO;
{ other }
property BackPicture: TPicture read GetBackPicture write SetBackPicture;
property BackPictureVisible: Boolean read FBackPictureVisible write FBackPictureVisible default True;
property BackPicturePrintable: Boolean read FBackPicturePrintable write FBackPicturePrintable default True;
property PageCount: Integer read FPageCount write SetPageCount default 1;
property Color: TColor read GetColor write SetColor default clNone;
property DataSet: TfrxDataSet read FDataSet write SetDataSet;
property DataSetName: String read GetDataSetName write SetDataSetName;
property Duplex: TfrxDuplexMode read FDuplex write FDuplex default dmNone;
property Frame: TfrxFrame read GetFrame write SetFrame;
property EndlessHeight: Boolean read FEndlessHeight write FEndlessHeight default False;
property EndlessWidth: Boolean read FEndlessWidth write FEndlessWidth default False;
property LargeDesignHeight: Boolean read FLargeDesignHeight
write FLargeDesignHeight default False;
property OutlineText: String read FOutlineText write FOutlineText;
property PrintIfEmpty: Boolean read FPrintIfEmpty write FPrintIfEmpty default True;
property PrintOnPreviousPage: Boolean read FPrintOnPreviousPage
write FPrintOnPreviousPage default False;
property ResetPageNumbers: Boolean read FResetPageNumbers
write FResetPageNumbers default False;
property TitleBeforeHeader: Boolean read FTitleBeforeHeader
write FTitleBeforeHeader default True;
property HGuides: TStrings read FHGuides write SetHGuides;
property VGuides: TStrings read FVGuides write SetVGuides;
property OnAfterPrint: TfrxNotifyEvent read FOnAfterPrint write FOnAfterPrint;
property OnBeforePrint: TfrxNotifyEvent read FOnBeforePrint write FOnBeforePrint;
property OnManualBuild: TfrxNotifyEvent read FOnManualBuild write FOnManualBuild;
end;
TfrxDialogPage = class(TfrxPage)
private
FBorderStyle: TFormBorderStyle;
FCaption: String;
FColor: TColor;
FRunAlways: Boolean;
FForm: TForm;
FOnActivate: TfrxNotifyEvent;
FOnClick: TfrxNotifyEvent;
FOnDeactivate: TfrxNotifyEvent;
FOnHide: TfrxNotifyEvent;
FOnKeyDown: TfrxKeyEvent;
FOnKeyPress: TfrxKeyPressEvent;
FOnKeyUp: TfrxKeyEvent;
FOnResize: TfrxNotifyEvent;
FOnShow: TfrxNotifyEvent;
FOnCloseQuery: TfrxCloseQueryEvent;
FPosition: TPosition;
FWindowState: TWindowState;
procedure DoInitialize;
procedure DoOnActivate(Sender: TObject);
procedure DoOnClick(Sender: TObject);
procedure DoOnCloseQuery(Sender: TObject; var CanClose: Boolean);
procedure DoOnDeactivate(Sender: TObject);
procedure DoOnHide(Sender: TObject);
procedure DoOnKeyDown(Sender: TObject; var Key: Word; Shift: TShiftState);
procedure DoOnKeyPress(Sender: TObject; var Key: Char);
procedure DoOnKeyUp(Sender: TObject; var Key: Word; Shift: TShiftState);
procedure DoOnShow(Sender: TObject);
procedure DoOnResize(Sender: TObject);
procedure DoModify(Sender: TObject);
procedure DoOnMouseMove(Sender: TObject; Shift: TShiftState; X, Y: Integer);
procedure SetBorderStyle(const Value: TFormBorderStyle);
procedure SetCaption(const Value: String);
procedure SetColor(const Value: TColor);
function GetModalResult: TModalResult;
procedure SetModalResult(const Value: TModalResult);
protected
procedure SetLeft(Value: Extended); override;
procedure SetTop(Value: Extended); override;
procedure SetWidth(Value: Extended); override;
procedure SetHeight(Value: Extended); override;
procedure FontChanged(Sender: TObject); override;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
class function GetDescription: String; override;
procedure Initialize;
function ShowModal: TModalResult;
property DialogForm: TForm read FForm;
property ModalResult: TModalResult read GetModalResult write SetModalResult;
published
property BorderStyle: TFormBorderStyle read FBorderStyle write SetBorderStyle default bsSizeable;
property Caption: String read FCaption write SetCaption;
property Color: TColor read FColor write SetColor default clBtnFace;
property Height;
property Left;
property Position: TPosition read FPosition write FPosition default poScreenCenter;
property Top;
property Width;
property WindowState: TWindowState read FWindowState write FWindowState default wsNormal;
property OnActivate: TfrxNotifyEvent read FOnActivate write FOnActivate;
property OnClick: TfrxNotifyEvent read FOnClick write FOnClick;
property OnCloseQuery: TfrxCloseQueryEvent read FOnCloseQuery write FOnCloseQuery;
property OnDeactivate: TfrxNotifyEvent read FOnDeactivate write FOnDeactivate;
property OnHide: TfrxNotifyEvent read FOnHide write FOnHide;
property OnKeyDown: TfrxKeyEvent read FOnKeyDown write FOnKeyDown;
property OnKeyPress: TfrxKeyPressEvent read FOnKeyPress write FOnKeyPress;
property OnKeyUp: TfrxKeyEvent read FOnKeyUp write FOnKeyUp;
property OnShow: TfrxNotifyEvent read FOnShow write FOnShow;
property OnResize: TfrxNotifyEvent read FOnResize write FOnResize;
end;
TfrxDataPage = class(TfrxPage)
private
protected
public
constructor Create(AOwner: TComponent); override;
class function GetDescription: String; override;
published
property Height;
property Left;
property Top;
property Width;
end;
{ Report }
TfrxEngineOptions = class(TPersistent)
private
FConvertNulls: Boolean;
FDestroyForms: Boolean;
FDoublePass: Boolean;
FMaxMemSize: Integer;
FPrintIfEmpty: Boolean;
FReportThread: TThread;
FEnableThreadSafe: Boolean;
FSilentMode: TfrxSilentMode;
FTempDir: String;
FUseFileCache: Boolean;
FUseGlobalDataSetList: Boolean;
procedure SetSilentMode(Mode: Boolean);
function GetSilentMode: Boolean;
public
constructor Create;
procedure Assign(Source: TPersistent); override;
procedure Clear;
property ReportThread: TThread read FReportThread write FReportThread;
property DestroyForms: Boolean read FDestroyForms write FDestroyForms;
property EnableThreadSafe: Boolean read FEnableThreadSafe write FEnableThreadSafe;
property UseGlobalDataSetList: Boolean read FUseGlobalDataSetList write FUseGlobalDataSetList;
published
property ConvertNulls: Boolean read FConvertNulls write FConvertNulls default True;
property DoublePass: Boolean read FDoublePass write FDoublePass default False;
property MaxMemSize: Integer read FMaxMemSize write FMaxMemSize default 10;
property PrintIfEmpty: Boolean read FPrintIfEmpty write FPrintIfEmpty default True;
property SilentMode: Boolean read GetSilentMode write SetSilentMode default False;
property NewSilentMode: TfrxSilentMode read FSilentMode write FSilentMode default simMessageBoxes;
property TempDir: String read FTempDir write FTempDir;
property UseFileCache: Boolean read FUseFileCache write FUseFileCache default False;
end;
TfrxPrintOptions = class(TPersistent)
private
FCopies: Integer;
FCollate: Boolean;
FPageNumbers: String;
FPagesOnSheet: Integer;
FPrinter: String;
FPrintMode: TfrxPrintMode;
FPrintOnSheet: Integer;
FPrintPages: TfrxPrintPages;
FReverse: Boolean;
FShowDialog: Boolean;
public
constructor Create;
procedure Assign(Source: TPersistent); override;
procedure Clear;
published
property Copies: Integer read FCopies write FCopies default 1;
property Collate: Boolean read FCollate write FCollate default True;
property PageNumbers: String read FPageNumbers write FPageNumbers;
property Printer: String read FPrinter write FPrinter;
property PrintMode: TfrxPrintMode read FPrintMode write FPrintMode default pmDefault;
property PrintOnSheet: Integer read FPrintOnSheet write FPrintOnSheet;
property PrintPages: TfrxPrintPages read FPrintPages write FPrintPages default ppAll;
property Reverse: Boolean read FReverse write FReverse default False;
property ShowDialog: Boolean read FShowDialog write FShowDialog default True;
end;
TfrxPreviewOptions = class(TPersistent)
private
FAllowEdit: Boolean;
FButtons: TfrxPreviewButtons;
FDoubleBuffered: Boolean;
FMaximized: Boolean;
FMDIChild: Boolean;
FModal: Boolean;
FOutlineExpand: Boolean;
FOutlineVisible: Boolean;
FOutlineWidth: Integer;
FPagesInCache: Integer;
FShowCaptions: Boolean;
FThumbnailVisible: Boolean;
FZoom: Extended;
FZoomMode: TfrxZoomMode;
FPictureCacheInFile: Boolean;
FRTLPreview: Boolean;
public
constructor Create;
procedure Assign(Source: TPersistent); override;
procedure Clear;
property RTLPreview: Boolean read FRTLPreview write FRTLPreview;
published
property AllowEdit: Boolean read FAllowEdit write FAllowEdit default True;
property Buttons: TfrxPreviewButtons read FButtons write FButtons;
property DoubleBuffered: Boolean read FDoubleBuffered write FDoubleBuffered default True;
property Maximized: Boolean read FMaximized write FMaximized default True;
property MDIChild: Boolean read FMDIChild write FMDIChild default False;
property Modal: Boolean read FModal write FModal default True;
property OutlineExpand: Boolean read FOutlineExpand write FOutlineExpand default True;
property OutlineVisible: Boolean read FOutlineVisible write FOutlineVisible default False;
property OutlineWidth: Integer read FOutlineWidth write FOutlineWidth default 120;
property PagesInCache: Integer read FPagesInCache write FPagesInCache default 50;
property ThumbnailVisible: Boolean read FThumbnailVisible write FThumbnailVisible default False;
property ShowCaptions: Boolean read FShowCaptions write FShowCaptions default False;
property Zoom: Extended read FZoom write FZoom;
property ZoomMode: TfrxZoomMode read FZoomMode write FZoomMode default zmDefault;
property PictureCacheInFile: Boolean read FPictureCacheInFile write FPictureCacheInFile default Fals
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -