📄 rm_class.hpp
字号:
TRMView* FResetGroupBand;
Variant FLastMasterViewValue;
double FLastAggValue;
void __fastcall GetValueInCalcHeight(void);
double __fastcall GetValue(void);
void __fastcall AfterPrint(bool aIsHeaderBand);
void __fastcall ResetValues(void);
void __fastcall OnResetAfterPrintClick(System::TObject* Sender);
void __fastcall SetResultExpression(AnsiString Value);
bool __fastcall GetOutBigNum(void);
void __fastcall SetOutBigNum(bool Value);
protected:
virtual bool __fastcall DrawAsPicture(void);
virtual bool __fastcall GetPropValue(System::TObject* aObject, AnsiString aPropName, Variant &aValue, Variant * aArgs, const int aArgs_Size);
virtual bool __fastcall SetPropValue(System::TObject* aObject, AnsiString aPropName, const Variant &aValue);
virtual void __fastcall Prepare(void);
virtual void __fastcall ExpandMemoVariables(void);
virtual void __fastcall PlaceOnEndPage(Classes::TStream* aStream);
void __fastcall Reset(void);
void __fastcall DoAggregate(void);
__property AnsiString Expression = {read=FExpression, write=FExpression};
public:
__fastcall virtual TRMCalcMemoView(void);
__fastcall virtual ~TRMCalcMemoView(void);
virtual void __fastcall LoadFromStream(Classes::TStream* aStream);
virtual void __fastcall SaveToStream(Classes::TStream* aStream);
virtual void __fastcall DefinePopupMenu(Rm_ctrls::TRMCustomMenuItem* aPopup);
__published:
__property TRMCalcOptions* CalcOptions = {read=FCalcOptions, write=FCalcOptions};
__property IsCurrency ;
__property RotationType ;
__property ScaleFontType ;
__property FontScaleWidth ;
__property WordWrap ;
__property WordBreak ;
__property AutoWidth ;
__property RepeatedOptions ;
__property ShowAtAppendBlank ;
__property ExportAsNumber ;
__property bool OutBigNum = {read=GetOutBigNum, write=SetOutBigNum, nodefault};
__property AnsiString ResultExpression = {read=FResultExpression, write=SetResultExpression};
};
#pragma option push -b-
enum TRMBlobType { rmbtBitmap, rmbtMetafile, rmbtIcon, rmbtJPEG, rmbtGIF, rmbtAuto };
#pragma option pop
#pragma option push -b-
enum TRMPictureFormat { rmpfBorland, rmpfMicrosoft, rmpfAuto };
#pragma option pop
class DELPHICLASS TRMPictureView;
class PASCALIMPLEMENTATION TRMPictureView : public TRMReportView
{
typedef TRMReportView inherited;
private:
Graphics::TPicture* FPicture;
TRMPictureSource FPictureSource;
TRMBlobType FBlobType;
TRMPictureFormat FPictureFormat;
TRMBlobType FTempFileType;
AnsiString FTempFileName;
void __fastcall OnPictureStretchedClick(System::TObject* Sender);
void __fastcall OnPictureCenterClick(System::TObject* Sender);
void __fastcall OnKeepAspectRatioClick(System::TObject* Sender);
bool __fastcall GetPictureCenter(void);
void __fastcall SetPictureCenter(const bool value);
bool __fastcall GetPictureRatio(void);
void __fastcall SetPictureRatio(bool value);
bool __fastcall GetPictureStretched(void);
void __fastcall SetPictureStretched(bool value);
bool __fastcall GetDirectDraw(void);
void __fastcall SetDirectDraw(bool Value);
bool __fastcall GetUseTempFile(void);
void __fastcall SetUSeTempFile(bool Value);
protected:
virtual bool __fastcall GetPropValue(System::TObject* aObject, AnsiString aPropName, Variant &aValue, Variant * aArgs, const int aArgs_Size);
virtual bool __fastcall SetPropValue(System::TObject* aObject, AnsiString aPropName, const Variant &aValue);
virtual void __fastcall ClearContents(void);
virtual void __fastcall PlaceOnEndPage(Classes::TStream* aStream);
virtual void __fastcall GetBlob(void);
virtual AnsiString __fastcall GetViewCommon();
virtual void __fastcall GetExportPicture(Graphics::TGraphic* &aDstGraphic, bool aDrawFrame);
public:
__fastcall virtual TRMPictureView(void);
__fastcall virtual ~TRMPictureView(void);
virtual void __fastcall LoadFromStream(Classes::TStream* aStream);
virtual void __fastcall SaveToStream(Classes::TStream* aStream);
virtual void __fastcall Draw(Graphics::TCanvas* aCanvas);
virtual void __fastcall ShowEditor(void);
virtual void __fastcall DefinePopupMenu(Rm_ctrls::TRMCustomMenuItem* aPopup);
__published:
__property bool UseTempFile = {read=GetUseTempFile, write=SetUSeTempFile, nodefault};
__property TRMBlobType BlobType = {read=FBlobType, write=FBlobType, nodefault};
__property TRMPictureFormat PictureFormat = {read=FPictureFormat, write=FPictureFormat, nodefault};
__property DataField ;
__property Graphics::TPicture* Picture = {read=FPicture};
__property bool PictureCenter = {read=GetPictureCenter, write=SetPictureCenter, nodefault};
__property bool PictureRatio = {read=GetPictureRatio, write=SetPictureRatio, nodefault};
__property bool PictureStretched = {read=GetPictureStretched, write=SetPictureStretched, nodefault};
__property Transparent ;
__property bool DirectDraw = {read=GetDirectDraw, write=SetDirectDraw, nodefault};
__property TRMPictureSource PictureSource = {read=FPictureSource, write=FPictureSource, nodefault};
__property ReprintOnOverFlow ;
__property ShiftWith ;
__property BandAlign ;
__property FillColor ;
__property LeftFrame ;
__property TopFrame ;
__property RightFrame ;
__property BottomFrame ;
__property ShadowStyle ;
__property ExpressionDelimiters ;
__property Url ;
__property Printable ;
__property ParentHeight ;
__property ParentWidth ;
__property OnPreviewClick ;
__property OnPreviewClickUrl ;
};
class DELPHICLASS TRMShapeView;
class PASCALIMPLEMENTATION TRMShapeView : public TRMReportView
{
typedef TRMReportView inherited;
private:
TRMShapeType FShape;
Graphics::TPen* FPen;
Graphics::TBrush* FBrush;
void __fastcall DrawShape(void);
void __fastcall SetPen(Graphics::TPen* Value);
void __fastcall SetBrush(Graphics::TBrush* Value);
protected:
virtual AnsiString __fastcall GetViewCommon();
public:
/* virtual class method */ virtual bool __fastcall CanPlaceOnGridView(TMetaClass* vmt);
__fastcall virtual TRMShapeView(void);
__fastcall virtual ~TRMShapeView(void);
virtual void __fastcall Draw(Graphics::TCanvas* aCanvas);
virtual void __fastcall LoadFromStream(Classes::TStream* aStream);
virtual void __fastcall SaveToStream(Classes::TStream* aStream);
virtual void __fastcall DefinePopupMenu(Rm_ctrls::TRMCustomMenuItem* aPopup);
__published:
__property TRMShapeType Shape = {read=FShape, write=FShape, nodefault};
__property Graphics::TPen* Pen = {read=FPen, write=SetPen};
__property Graphics::TBrush* Brush = {read=FBrush, write=SetBrush};
__property ReprintOnOverFlow ;
__property ShiftWith ;
__property StretchWith ;
__property FillColor ;
__property LeftFrame ;
__property TopFrame ;
__property RightFrame ;
__property BottomFrame ;
__property ShadowStyle ;
__property Printable ;
__property Url ;
__property OnPreviewClick ;
__property OnPreviewClickUrl ;
};
class DELPHICLASS TRMOutlineView;
class PASCALIMPLEMENTATION TRMOutlineView : public TRMReportView
{
typedef TRMReportView inherited;
private:
AnsiString FCaption;
int FPageNo;
int FLevel;
AnsiString __fastcall GetOutlineText();
protected:
virtual void __fastcall Prepare(void);
virtual void __fastcall PlaceOnEndPage(Classes::TStream* aStream);
public:
__fastcall virtual TRMOutlineView(void);
__fastcall virtual ~TRMOutlineView(void);
virtual void __fastcall DefinePopupMenu(Rm_ctrls::TRMCustomMenuItem* aPopup);
virtual void __fastcall LoadFromStream(Classes::TStream* aStream);
virtual void __fastcall SaveToStream(Classes::TStream* aStream);
virtual void __fastcall Draw(Graphics::TCanvas* aCanvas);
__property AnsiString OutlineText = {read=GetOutlineText};
};
class DELPHICLASS TRMCustomBandView;
class PASCALIMPLEMENTATION TRMCustomBandView : public TRMReportView
{
typedef TRMReportView inherited;
private:
Graphics::TFont* FFont;
TRMBandType FBandType;
bool FIsVirtualDataSet;
AnsiString FDataSetName;
int FLinesPerPage;
AnsiString FNewPageCondition;
Rm_dataset::TRMRangeBegin FRangeBegin;
Rm_dataset::TRMRangeEnd FRangeEnd;
int FRangeEndCount;
int FmmColumnGap;
int FColumns;
int FmmColumnWidth;
int FmmColumnOffset;
AnsiString FGroupCondition;
AnsiString FChildBandName;
unsigned FFlags1;
AnsiString FMasterBand;
AnsiString FDataBandName;
AnsiString FOutlineText;
Classes::TNotifyEvent FOnAfterPrint;
TRMBandBeforePrintRecordEvent FOnBeforePrintRecord;
void __fastcall OnNewPageAfterClick(System::TObject* Sender);
void __fastcall OnPrintIfSubsetEmptyClick(System::TObject* Sender);
void __fastcall OnPageBreakedClick(System::TObject* Sender);
void __fastcall OnPrintOnFirstPageClick(System::TObject* Sender);
void __fastcall OnPrintOnLastPageClick(System::TObject* Sender);
void __fastcall OnReprintOnNewPageClick(System::TObject* Sender);
void __fastcall OnAutoAppendBlankClick(System::TObject* Sender);
HIDESBASE void __fastcall OnStretchedClick(System::TObject* Sender);
void __fastcall OnKeepFooterClick(System::TObject* Sender);
void __fastcall OnKeepTogetherClick(System::TObject* Sender);
void __fastcall OnKeepChildClick(System::TObject* Sender);
void __fastcall SetFont(Graphics::TFont* Value);
bool __fastcall GetPrintOnFirstPage(void);
void __fastcall SetPrintOnFirstPage(bool Value);
bool __fastcall GetPrintOnLastPage(void);
void __fastcall SetPrintOnLastPage(bool Value);
bool __fastcall GetPrintIfSubsetEmpty(void);
void __fastcall SetPrintIfSubsetEmpty(bool Value);
bool __fastcall GetAutoAppendBlank(void);
void __fastcall SetAutoAppendBlank(bool Value);
bool __fastcall GetAppendBlankOnce(void);
void __fastcall SetAppendBlankOnce(bool Value);
bool __fastcall GetNewPageAfter(void);
void __fastcall SetNewPageAfter(bool Value);
bool __fastcall GetNewPageBefore(void);
void __fastcall SetNewPageBefore(bool Value);
bool __fastcall GetPageBreaked(void);
void __fastcall SetPageBreaked(bool Value);
bool __fastcall GetHideIfEmpty(void);
void __fastcall SetHideIfEmpty(bool Value);
bool __fastcall GetReprintOnNewPage(void);
void __fastcall SetReprintOnNewPage(bool Value);
bool __fastcall GetReprintOnNewColumn(void);
void __fastcall SetReprintOnNewColumn(bool Value);
bool __fastcall GetKeepFooter(void);
void __fastcall SetKeepFooter(bool Value);
bool __fastcall GetKeepTogether(void);
void __fastcall SetKeepTogether(bool Value);
bool __fastcall GetKeepChild(void);
void __fastcall SetKeepChild(bool Value);
bool __fastcall GetPrintatDesignPos(void);
void __fastcall SetPrintatDesignPos(bool Value);
int __fastcall GetspColumnGap(int index);
void __fastcall SetspColumnGap(int index, int Value);
double __fastcall GetColumnGap(int index);
void __fastcall SetColumnGap(int index, double Value);
bool __fastcall GetPrintColumnFirst(void);
void __fastcall SetPrintColumnFirst(bool Value);
bool __fastcall GetPrintBeforeSummaryBand(void);
void __fastcall SetPrintBeforeSummaryBand(bool Value);
bool __fastcall GetPrintChildIfInvisible(void);
void __fastcall SetPrintChildIfInvisible(bool Value);
void __fastcall SetChildBandName(AnsiString Value);
bool __fastcall GetAdjustColumns(void);
void __fastcall SetAdjustColumns(bool Value);
bool __fastcall GetAlignToBottom(void);
void __fastcall SetAlignToBottom(bool Value);
void __fastcall SetGroupHeaderBandName(AnsiString Value);
void __fastcall SetDataSetName(AnsiString Value);
void __fastcall SetMasterBand(AnsiString Value);
void __fastcall SetDataBandName(AnsiString Value);
void __fastcall SetGroupCondition(AnsiString Value);
void __fastcall SetOutlineText(AnsiString Value);
bool __fastcall GetPrintIfEmpty(void);
void __fastcall SetPrintIfEmpty(bool Value);
void __fastcall SetNewPageCondition(AnsiString Value);
void __fastcall SetRangeEndCount(int Value);
bool __fastcall GetCalcPriority(void);
void __fastcall SetCalcPriority(bool Value);
protected:
__property bool AlignToBottom = {read=GetAlignToBottom, write=SetAlignToBottom, nodefault};
__property bool PrintOnFirstPage = {read=GetPrintOnFirstPage, write=SetPrintOnFirstPage, nodefault};
__property bool PrintOnLastPage = {read=GetPrintOnLastPage, write=SetPrintOnLastPage, nodefault};
__property bool PrintIfSubsetEmpty = {read=GetPrintIfSubsetEmpty, write=SetPrintIfSubsetEmpty, nodefault};
__property bool AutoAppendBlank = {read=GetAutoAppendBlank, write=SetAutoAppendBlank, nodefault};
__property bool AppendBlankOnce = {read=GetAppendBlankOnce, write=SetAppendBlankOnce, nodefault};
__property int LinesPerPage = {read=FLinesPerPage, write=FLinesPerPage, nodefault};
__property AnsiString NewPageCondition = {read=FNewPageCondition, write=SetNewPageCondition};
__property bool NewPageAfter = {read=GetNewPageAfter, write=SetNewPageAfter, nodefault};
__property bool NewPageBefore = {read=GetNewPageBefore, write=SetNewPageBefore, nodefault};
__property bool PageBreaked = {read=GetPageBreaked, write=SetPageBreaked, nodefault};
__property bool AllowSplit = {read=GetPageBreaked, write=SetPageBreaked, nodefault};
__property AnsiString GroupHeaderBandName = {read=FMasterBand, write=SetGroupHeaderBandName};
__property AnsiString MasterBandName = {read=FMasterBand, write=SetMasterBand};
__property AnsiString DataBandName = {read=FDataBandName, write=SetDataBandName};
__property bool HideIfEmpty = {read=GetHideIfEmpty, write=SetHideIfEmpty, nodefault};
__property bool ReprintOnNewPage = {read=GetReprintOnNewPage, write=SetReprintOnNewPage, nodefault};
__property bool ReprintOnEveryPage = {read=GetReprintOnNewPage, write=SetReprintOnNewPage, nodefault};
__property bool ReprintOnNewColumn = {read=GetReprintOnNewColumn, write=SetReprintOnNewColumn, nodefault};
__property bool KeepFooter = {read=GetKeepFooter, write=SetKeepFooter, nodefault};
__property bool KeepTogether = {read=GetKeepTogether, write=SetKeepTogether, nodefa
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -