📄 dbgrideh.hpp
字号:
// CodeGear C++ Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Dbgrideh.pas' rev: 11.00
#ifndef DbgridehHPP
#define DbgridehHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Stdctrls.hpp> // Pascal unit
#include <Contnrs.hpp> // Pascal unit
#include <Variants.hpp> // Pascal unit
#include <Types.hpp> // Pascal unit
#include <Ehlibvcl.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Gridseh.hpp> // Pascal unit
#include <Dbctrls.hpp> // Pascal unit
#include <Db.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
#include <Registry.hpp> // Pascal unit
#include <Dbsumlst.hpp> // Pascal unit
#include <Dbctrlseh.hpp> // Pascal unit
#include <Inifiles.hpp> // Pascal unit
#include <Toolctrlseh.hpp> // Pascal unit
#include <Imglist.hpp> // Pascal unit
#include <Stdactns.hpp> // Pascal unit
#include <Propfilereh.hpp> // Pascal unit
#include <Actnlist.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Dbgrideh
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TDBGridColumnsState { csDefault, csCustomized };
#pragma option pop
typedef void __fastcall (__closure *TDrawDataCellEvent)(System::TObject* Sender, const Types::TRect &Rect, Db::TField* Field, Gridseh::TGridDrawState State);
#pragma option push -b-
enum TDBGridOption { dgEditing, dgAlwaysShowEditor, dgTitles, dgIndicator, dgColumnResize, dgColLines, dgRowLines, dgTabs, dgRowSelect, dgAlwaysShowSelection, dgConfirmDelete, dgCancelOnExit, dgMultiSelect };
#pragma option pop
typedef Set<TDBGridOption, dgEditing, dgMultiSelect> TDBGridOptions;
#pragma option push -b-
enum TColumnEhValue { cvColor, cvWidth, cvFont, cvAlignment, cvReadOnly, cvTitleColor, cvTitleCaption, cvTitleAlignment, cvTitleFont, cvTitleButton, cvTitleEndEllipsis, cvTitleToolTips, cvTitleOrientation, cvImeMode, cvImeName, cvWordWrap, cvLookupDisplayFields, cvCheckboxes, cvAlwaysShowEditButton, cvEndEllipsis, cvAutoDropDown, cvDblClickNextVal, cvToolTips, cvDropDownSizing, cvDropDownShowTitles, cvLayout, cvHighlightRequired, cvBiDiMode };
#pragma option pop
typedef Set<TColumnEhValue, cvColor, cvBiDiMode> TColumnEhValues;
#pragma option push -b-
enum TColumnFooterEhValue { cvFooterAlignment, cvFooterFont, cvFooterColor, cvFooterToolTips };
#pragma option pop
typedef Set<TColumnFooterEhValue, cvFooterAlignment, cvFooterToolTips> TColumnFooterValues;
#pragma option push -b-
enum TColumnEhRestoreParam { crpColIndexEh, crpColWidthsEh, crpSortMarkerEh, crpColVisibleEh, crpDropDownRowsEh, crpDropDownWidthEh };
#pragma option pop
typedef Set<TColumnEhRestoreParam, crpColIndexEh, crpDropDownWidthEh> TColumnEhRestoreParams;
#pragma option push -b-
enum TDBGridEhRestoreParam { grpColIndexEh, grpColWidthsEh, grpSortMarkerEh, grpColVisibleEh, grpRowHeightEh, grpDropDownRowsEh, grpDropDownWidthEh };
#pragma option pop
typedef Set<TDBGridEhRestoreParam, grpColIndexEh, grpDropDownWidthEh> TDBGridEhRestoreParams;
#pragma option push -b-
enum TDBLookupGridEhOption { dlgColumnResizeEh, dlgColLinesEh, dlgRowLinesEh, dlgAutoSortMarkingEh, dlgMultiSortMarkingEh };
#pragma option pop
typedef Set<TDBLookupGridEhOption, dlgColumnResizeEh, dlgMultiSortMarkingEh> TDBLookupGridEhOptions;
class DELPHICLASS TColumnEh;
typedef void __fastcall (__closure *TCheckTitleEhBtnEvent)(System::TObject* Sender, int ACol, TColumnEh* Column, bool &Enabled);
typedef void __fastcall (__closure *TDrawColumnEhCellEvent)(System::TObject* Sender, const Types::TRect &Rect, int DataCol, TColumnEh* Column, Gridseh::TGridDrawState State);
typedef void __fastcall (__closure *TGetCellEhParamsEvent)(System::TObject* Sender, TColumnEh* Column, Graphics::TFont* AFont, Graphics::TColor &Background, Gridseh::TGridDrawState State);
typedef void __fastcall (__closure *TTitleEhClickEvent)(System::TObject* Sender, int ACol, TColumnEh* Column);
typedef void __fastcall (__closure *TOnColumnCheckDrawRequiredStateEventEh)(System::TObject* Sender, AnsiString Text, bool &DrawState);
typedef bool __fastcall (__closure *TGridMoveRecordsEventEh)(System::TObject* Sender, Classes::TStrings* BookmarkList, int ToRecNo, int TreeLevel, bool CheckOnly);
class DELPHICLASS TCustomDBGridEh;
typedef void __fastcall (__closure *TDBGridEhBuildIndicatorTitleMenu)(TCustomDBGridEh* Grid, Menus::TPopupMenu* &PopupMenu);
__interface ILookupGridOwner;
typedef System::DelphiInterface<ILookupGridOwner> _di_ILookupGridOwner;
__interface INTERFACE_UUID("{2A1F4552-15C3-4359-ADAB-F2F6719FAA97}") ILookupGridOwner : public IInterface
{
public:
virtual void __fastcall SetListSource(Db::TDataSource* AListSource) = 0 ;
virtual TCustomDBGridEh* __fastcall GetLookupGrid(void) = 0 ;
virtual TDBLookupGridEhOptions __fastcall GetOptions(void) = 0 ;
virtual void __fastcall SetOptions(TDBLookupGridEhOptions Value) = 0 ;
__property TDBLookupGridEhOptions Options = {read=GetOptions, write=SetOptions};
};
#pragma option push -b-
enum TSortMarkerEh { smNoneEh, smDownEh, smUpEh };
#pragma option pop
#pragma option push -b-
enum TTextOrientationEh { tohHorizontal, tohVertical };
#pragma option pop
class DELPHICLASS TColumnTitleEh;
class PASCALIMPLEMENTATION TColumnTitleEh : public Classes::TPersistent
{
typedef Classes::TPersistent inherited;
private:
Classes::TAlignment FAlignment;
AnsiString FCaption;
Graphics::TColor FColor;
TColumnEh* FColumn;
bool FEndEllipsis;
Graphics::TFont* FFont;
AnsiString FHint;
int FImageIndex;
TTextOrientationEh FOrientation;
int FSortIndex;
bool FToolTips;
Classes::TAlignment __fastcall GetAlignment(void);
AnsiString __fastcall GetCaption();
Graphics::TColor __fastcall GetColor(void);
bool __fastcall GetEndEllipsis(void);
Graphics::TFont* __fastcall GetFont(void);
TTextOrientationEh __fastcall GetOrientation(void);
bool __fastcall GetTitleButton(void);
bool __fastcall GetToolTips(void);
bool __fastcall IsAlignmentStored(void);
bool __fastcall IsCaptionStored(void);
bool __fastcall IsColorStored(void);
bool __fastcall IsEndEllipsisStored(void);
bool __fastcall IsFontStored(void);
bool __fastcall IsOrientationStored(void);
bool __fastcall IsTitleButtonStored(void);
bool __fastcall IsToolTipsStored(void);
void __fastcall FontChanged(System::TObject* Sender);
void __fastcall SetAlignment(Classes::TAlignment Value);
virtual void __fastcall SetCaption(const AnsiString Value);
void __fastcall SetColor(Graphics::TColor Value);
void __fastcall SetEndEllipsis(const bool Value);
void __fastcall SetFont(Graphics::TFont* Value);
void __fastcall SetImageIndex(const int Value);
void __fastcall SetOrientation(const TTextOrientationEh Value);
void __fastcall SetSortIndex(int Value);
void __fastcall SetToolTips(const bool Value);
protected:
TSortMarkerEh FSortMarker;
bool FTitleButton;
int __fastcall GetSortMarkingWidth(void);
void __fastcall RefreshDefaultFont(void);
void __fastcall SetSortMarker(TSortMarkerEh Value);
void __fastcall SetTitleButton(bool Value);
public:
__fastcall TColumnTitleEh(TColumnEh* Column);
__fastcall virtual ~TColumnTitleEh(void);
Classes::TAlignment __fastcall DefaultAlignment(void);
AnsiString __fastcall DefaultCaption();
Graphics::TColor __fastcall DefaultColor(void);
bool __fastcall DefaultEndEllipsis(void);
Graphics::TFont* __fastcall DefaultFont(void);
TTextOrientationEh __fastcall DefaultOrientation(void);
bool __fastcall DefaultTitleButton(void);
bool __fastcall DefaultToolTips(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
virtual void __fastcall RestoreDefaults(void);
void __fastcall SetNextSortMarkerValue(bool KeepMulti);
__property TColumnEh* Column = {read=FColumn};
__published:
__property Classes::TAlignment Alignment = {read=GetAlignment, write=SetAlignment, stored=IsAlignmentStored, nodefault};
__property AnsiString Caption = {read=GetCaption, write=SetCaption, stored=IsCaptionStored};
__property Graphics::TColor Color = {read=GetColor, write=SetColor, stored=IsColorStored, nodefault};
__property bool EndEllipsis = {read=GetEndEllipsis, write=SetEndEllipsis, stored=IsEndEllipsisStored, nodefault};
__property Graphics::TFont* Font = {read=GetFont, write=SetFont, stored=IsFontStored};
__property AnsiString Hint = {read=FHint, write=FHint};
__property int ImageIndex = {read=FImageIndex, write=SetImageIndex, default=-1};
__property TTextOrientationEh Orientation = {read=GetOrientation, write=SetOrientation, stored=IsOrientationStored, nodefault};
__property int SortIndex = {read=FSortIndex, write=SetSortIndex, default=0};
__property TSortMarkerEh SortMarker = {read=FSortMarker, write=SetSortMarker, default=0};
__property bool TitleButton = {read=GetTitleButton, write=SetTitleButton, stored=IsTitleButtonStored, nodefault};
__property bool ToolTips = {read=GetToolTips, write=SetToolTips, stored=IsToolTipsStored, nodefault};
};
#pragma option push -b-
enum TFooterValueType { fvtNon, fvtSum, fvtAvg, fvtCount, fvtFieldValue, fvtStaticText };
#pragma option pop
class DELPHICLASS TColumnFooterEh;
class PASCALIMPLEMENTATION TColumnFooterEh : public Classes::TCollectionItem
{
typedef Classes::TCollectionItem inherited;
private:
Classes::TAlignment FAlignment;
TColumnFooterValues FAssignedValues;
Graphics::TColor FColor;
TColumnEh* FColumn;
AnsiString FDisplayFormat;
bool FEndEllipsis;
AnsiString FFieldName;
Graphics::TFont* FFont;
bool FToolTips;
AnsiString FValue;
TFooterValueType FValueType;
bool FWordWrap;
Classes::TAlignment __fastcall GetAlignment(void);
Graphics::TColor __fastcall GetColor(void);
Graphics::TFont* __fastcall GetFont(void);
Variant __fastcall GetSumValue();
bool __fastcall GetToolTips(void);
bool __fastcall IsAlignmentStored(void);
bool __fastcall IsColorStored(void);
bool __fastcall IsFontStored(void);
bool __fastcall IsToolTipsStored(void);
void __fastcall FontChanged(System::TObject* Sender);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetColor(Graphics::TColor Value);
void __fastcall SetDisplayFormat(const AnsiString Value);
void __fastcall SetEndEllipsis(const bool Value);
void __fastcall SetFieldName(const AnsiString Value);
void __fastcall SetFont(Graphics::TFont* Value);
void __fastcall SetToolTips(const bool Value);
void __fastcall SetValue(const AnsiString Value);
void __fastcall SetValueType(const TFooterValueType Value);
void __fastcall SetWordWrap(const bool Value);
protected:
Dbsumlst::TDBSum* FDBSum;
void __fastcall RefreshDefaultFont(void);
public:
__fastcall virtual TColumnFooterEh(Classes::TCollection* Collection);
__fastcall TColumnFooterEh(TColumnEh* Column);
__fastcall virtual ~TColumnFooterEh(void);
Classes::TAlignment __fastcall DefaultAlignment(void);
Graphics::TColor __fastcall DefaultColor(void);
Graphics::TFont* __fastcall DefaultFont(void);
bool __fastcall DefaultToolTips(void);
virtual void __fastcall Assign(Classes::TPersistent* Source);
void __fastcall EnsureSumValue(void);
virtual void __fastcall RestoreDefaults(void);
__property TColumnFooterValues AssignedValues = {read=FAssignedValues, nodefault};
__property TColumnEh* Column = {read=FColumn};
__property Variant SumValue = {read=GetSumValue};
__published:
__property Classes::TAlignment Alignment = {read=GetAlignment, write=SetAlignment, stored=IsAlignmentStored, nodefault};
__property Graphics::TColor Color = {read=GetColor, write=SetColor, stored=IsColorStored, nodefault};
__property AnsiString DisplayFormat = {read=FDisplayFormat, write=SetDisplayFormat};
__property bool EndEllipsis = {read=FEndEllipsis, write=SetEndEllipsis, default=0};
__property AnsiString FieldName = {read=FFieldName, write=SetFieldName};
__property Graphics::TFont* Font = {read=GetFont, write=SetFont, stored=IsFontStored};
__property bool ToolTips = {read=GetToolTips, write=SetToolTips, stored=IsToolTipsStored, nodefault};
__property AnsiString Value = {read=FValue, write=SetValue};
__property TFooterValueType ValueType = {read=FValueType, write=SetValueType, default=0};
__property bool WordWrap = {read=FWordWrap, write=SetWordWrap, default=0};
};
typedef TMetaClass* TColumnFooterEhClass;
class DELPHICLASS TColumnFootersEh;
class PASCALIMPLEMENTATION TColumnFootersEh : public Classes::TCollection
{
typedef Classes::TCollection inherited;
public:
TColumnFooterEh* operator[](int Index) { return Items[Index]; }
private:
TColumnEh* FColumn;
TColumnFooterEh* __fastcall GetFooter(int Index);
void __fastcall SetFooter(int Index, TColumnFooterEh* Value);
protected:
DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
virtual void __fastcall Update(Classes::TCollectionItem* Item);
public:
__fastcall TColumnFootersEh(TColumnEh* Column, TMetaClass* FooterClass);
HIDESBASE TColumnFooterEh* __fastcall Add(void);
__property TColumnEh* Column = {read=FColumn};
__property TColumnFooterEh* Items[int Index] = {read=GetFooter, write=SetFooter/*, default*/};
public:
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -