dbadvgrid.hpp

来自「TMSPack基本上涵盖了Delphi所有的基础控件」· HPP 代码 · 共 636 行 · 第 1/3 页

HPP
636
字号
// Borland C++ Builder
// Copyright (c) 1995, 2005 by Borland Software Corporation
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Dbadvgrid.pas' rev: 10.00

#ifndef DbadvgridHPP
#define DbadvgridHPP

#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 <Basegrid.hpp>	// Pascal unit
#include <Windows.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Messages.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Db.hpp>	// Pascal unit
#include <Dbctrls.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Advgrid.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Grids.hpp>	// Pascal unit
#include <Advutil.hpp>	// Pascal unit
#include <Dbtables.hpp>	// Pascal unit
#include <Inifiles.hpp>	// Pascal unit
#include <Advobj.hpp>	// Pascal unit
#include <Jpeg.hpp>	// Pascal unit
#include <Widestrings.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit

//-- user supplied -----------------------------------------------------------

namespace Dbadvgrid
{
//-- type declarations -------------------------------------------------------
typedef DynamicArray<int >  DBAdvGrid__2;

class DELPHICLASS TAdvGridDataLink;
class DELPHICLASS TDBAdvGrid;
class DELPHICLASS TDBGridColumnCollection;
class DELPHICLASS TDBGridColumnItem;
class PASCALIMPLEMENTATION TDBGridColumnCollection : public Classes::TCollection 
{
	typedef Classes::TCollection inherited;
	
public:
	TDBGridColumnItem* operator[](int Index) { return Items[Index]; }
	
private:
	TDBAdvGrid* FOwner;
	bool FNoRecursiveUpdate;
	HIDESBASE TDBGridColumnItem* __fastcall GetItem(int Index);
	HIDESBASE void __fastcall SetItem(int Index, const TDBGridColumnItem* Value);
	
protected:
	virtual void __fastcall Update(Classes::TCollectionItem* Item);
	DYNAMIC Classes::TPersistent* __fastcall GetOwner(void);
	__property TDBAdvGrid* Grid = {read=FOwner};
	
public:
	bool __fastcall HasFieldsDefined(void);
	virtual TMetaClass* __fastcall GetItemClass(void);
	HIDESBASE TDBGridColumnItem* __fastcall Add(void);
	HIDESBASE TDBGridColumnItem* __fastcall Insert(int index);
	__property TDBGridColumnItem* Items[int Index] = {read=GetItem, write=SetItem/*, default*/};
	__fastcall TDBGridColumnCollection(TDBAdvGrid* AOwner);
	void __fastcall SetOrganization(void);
	void __fastcall ResetOrganization(void);
public:
	#pragma option push -w-inl
	/* TCollection.Destroy */ inline __fastcall virtual ~TDBGridColumnCollection(void) { }
	#pragma option pop
	
};


typedef void __fastcall (__closure *TSetQueryOrderEvent)(System::TObject* Sender, AnsiString &SQL);

typedef void __fastcall (__closure *TGetRecordCountEvent)(System::TObject* Sender, int &Count);

#pragma option push -b-
enum TDataSetType { dtSequenced, dtNonSequenced };
#pragma option pop

typedef void __fastcall (__closure *TGetHTMLTemplateDataEvent)(System::TObject* Sender, int ACol, int ARow, AnsiString Fieldname, AnsiString &Data);

#pragma option push -b-
enum TEditPostMode { epCell, epRow };
#pragma option pop

typedef void __fastcall (__closure *TDBColumnPopupEvent)(System::TObject* Sender, int ACol, int ARow, Menus::TPopupMenu* PopupMenu);

typedef void __fastcall (__closure *TInvalidPictureEvent)(System::TObject* Sender, int ACol, int ARow);

typedef void __fastcall (__closure *TFieldToStreamEvent)(System::TObject* Sender, int ACol, int ARow, Db::TField* DBField, Classes::TMemoryStream* MS);

class PASCALIMPLEMENTATION TDBAdvGrid : public Advgrid::TAdvStringGrid 
{
	typedef Advgrid::TAdvStringGrid inherited;
	
private:
	TDBGridColumnCollection* FColumnCollection;
	TAdvGridDataLink* FDataLink;
	bool FInternalCall;
	bool FDoNotUpdateMe;
	Advgrid::TCellGraphic* FCellGraphic;
	Advgrid::TRowChangedEvent FOnRowChanged;
	bool FShowMemoFields;
	Advgrid::TCellValidateEvent FOnCellValidate;
	Advgrid::TCellValidateWideEvent FOnCellValidateWide;
	Advgrid::TCanSortEvent FOnCanSort;
	TSetQueryOrderEvent FOnSetQueryOrder;
	Db::TDataSetState FOldState;
	bool FRecordChanged;
	bool FShowDefinedFields;
	bool FInternalInsert;
	bool FShowDBIndicator;
	void *FOldPosition;
	bool FEmptyDataSet;
	bool FOldIsBOF;
	bool FOldIsEOF;
	bool FCancelEditReturn;
	bool FDoNotCountRow;
	TGetRecordCountEvent FOnGetRecordCount;
	bool FShowBooleanFields;
	bool FShowPictureFields;
	bool FNotDeletionUpdate;
	Graphics::TPicture* FPicture;
	bool FPageMode;
	Classes::TList* FPictureList;
	bool FRefreshOnDelete;
	bool FUpdateCancel;
	bool FNewRecord;
	bool FRefreshOnInsert;
	Classes::TStringList* FLookupKeys;
	int FVisibleFieldCount;
	TDataSetType FDataSetType;
	int FExportRow;
	bool FSelExport;
	bool FSelImport;
	int FSelRow;
	void *FImportPos;
	bool FNewAppendRecord;
	TGetHTMLTemplateDataEvent FOnGetHTMLTemplateData;
	bool FKeyDownAppend;
	bool FMouseWheelScrolling;
	bool FMouseWheelScrolled;
	int FLastDesignChoice;
	Advgrid::TRowChangingEvent FOnRowChanging;
	bool FFilteredDataSet;
	TDataSetType FOldDataSetType;
	Grids::TGetEditEvent FOnGetEditText;
	bool FShowUnicode;
	bool FInternalSelection;
	bool FDatasetTypeAuto;
	TEditPostMode FEditPostMode;
	int FEditRec;
	Classes::TStringList* FEditRecData;
	Db::TDataSetState FOldEditingState;
	bool FEditUpdating;
	AnsiString FEditText;
	WideString FEditWideText;
	bool FDoNotCallSelect;
	bool FDoNotBounsBack;
	int FOldAR;
	int FOldTopRow;
	bool FAppending;
	bool FAppendOperation;
	bool FExporting;
	bool FEditEnding;
	bool FOldFoaterEnableCalc;
	bool FAllowRowChange;
	int FMustEnableControls;
	bool FAutoCreateColumns;
	bool FAutoRemoveColumns;
	TDBColumnPopupEvent FOnColumnPopup;
	bool FShowDesignHelper;
	bool FInternalMove;
	bool FBlockCallBack;
	bool FShouldNotPostChanges;
	Graphics::TPicture* FInvalidPicture;
	TInvalidPictureEvent FOnInvalidPicture;
	TFieldToStreamEvent FOnFieldToStream;
	void __fastcall DataUpdate(void);
	void __fastcall DataChange(void);
	void __fastcall ActiveChange(bool Value);
	void __fastcall RecordChanged(Db::TField* Field);
	void __fastcall EditingChanged(void);
	void __fastcall UpdateRowCount(void);
	bool __fastcall CheckDataSet(void);
	void __fastcall UpdateScrollBar(void);
	void __fastcall UpdateVisibleFields(void);
	MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMDesignHitTest(Messages::TWMMouse &Msg);
	Db::TDataSource* __fastcall GetDataSource(void);
	HIDESBASE bool __fastcall GetReadOnly(void);
	void __fastcall SetDataSource(const Db::TDataSource* Value);
	HIDESBASE void __fastcall SetReadOnly(const bool Value);
	HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &WMScroll);
	HIDESBASE MESSAGE void __fastcall WMKeyDown(Messages::TWMKey &Msg);
	void __fastcall GetEditTextEvent(System::TObject* Sender, int ACol, int ARow, AnsiString &Value);
	void __fastcall RowChangingEvent(System::TObject* Sender, int OldRow, int NewRow, bool &Allow);
	void __fastcall RowUpdateEvent(System::TObject* Sender, int OldRow, int NewRow);
	int __fastcall GetFieldCount(void);
	Db::TField* __fastcall GetFields(int FieldIndex);

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?