⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rm_preview.hpp

📁 这是一个功能强大
💻 HPP
📖 第 1 页 / 共 2 页
字号:
// CodeGear C++Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved

// (DO NOT EDIT: machine generated header) 'Rm_preview.pas' rev: 11.00

#ifndef Rm_previewHPP
#define Rm_previewHPP

#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 <Messages.hpp>	// Pascal unit
#include <Sysutils.hpp>	// Pascal unit
#include <Classes.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.hpp>	// Pascal unit
#include <Forms.hpp>	// Pascal unit
#include <Dialogs.hpp>	// Pascal unit
#include <Extctrls.hpp>	// Pascal unit
#include <Stdctrls.hpp>	// Pascal unit
#include <Menus.hpp>	// Pascal unit
#include <Buttons.hpp>	// Pascal unit
#include <Comctrls.hpp>	// Pascal unit
#include <Math.hpp>	// Pascal unit
#include <Rm_common.hpp>	// Pascal unit
#include <Rm_ctrls.hpp>	// Pascal unit
#include <Imglist.hpp>	// Pascal unit
#include <Variants.hpp>	// Pascal unit

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

namespace Rm_preview
{
//-- type declarations -------------------------------------------------------
typedef void __fastcall (__closure *TRMBeforeShowReport)(System::TObject* aReport);

typedef DynamicArray<int >  RM_Preview__2;

class DELPHICLASS TRMDrawPanel;
class DELPHICLASS TRMVirtualPreview;
class PASCALIMPLEMENTATION TRMVirtualPreview : public Rm_common::TRMCustomPreview 
{
	typedef Rm_common::TRMCustomPreview inherited;
	
private:
	Rm_common::TRMCustomReport* FReport;
	int FCurPage;
	int FOffsetLeft;
	int FOffsetTop;
	int FOldVPos;
	int FOldHPos;
	double FScale;
	Rm_common::TRMScaleMode FZoomMode;
	bool FPaintAllowed;
	double FLastScale;
	#pragma pack(push,1)
	Rm_common::TRMReportInfo FSaveReportInfo;
	#pragma pack(pop)
	bool FPrepareReportFlag;
	int FColumns;
	Rm_ctrls::TRMScrollBox* FScrollBox;
	Comctrls::TStatusBar* FStatusBar;
	Extctrls::TPanel* FTopPanel1;
	Extctrls::TPanel* FLeftTopPanel;
	Extctrls::TPanel* FLeftPanel;
	Extctrls::TPanel* FTopPanel;
	Rm_ctrls::TRMDesignerRuler* FHRuler;
	Rm_ctrls::TRMDesignerRuler* FVRuler;
	TRMDrawPanel* FDrawPanel;
	Extctrls::TSplitter* FSplitter;
	Comctrls::TTreeView* FOutlineTreeView;
	int FKWheel;
	Forms::TForm* FParentForm;
	AnsiString FInitialDir;
	Classes::TNotifyEvent FOnStatusChange;
	Classes::TNotifyEvent FOnPageChanged;
	Classes::TNotifyEvent FOnAfterPageSetup;
	TRMBeforeShowReport FOnBeforeShowReport;
	bool FStrFound;
	#pragma pack(push,1)
	Types::TRect FStrBounds;
	#pragma pack(pop)
	AnsiString FFindStr;
	bool FCaseSensitive;
	bool FWholewords;
	int FLastFoundPage;
	int FLastFoundObject;
	int FTotalPages;
	void __fastcall SetKWheel(int Value);
	void __fastcall DoStatusChange(void);
	void __fastcall SetPage(int Value);
	double __fastcall GetZoom(void);
	void __fastcall SetZoom(double Value);
	Rm_ctrls::TRMScrollBar* __fastcall GetHScrollBar(void);
	Rm_ctrls::TRMScrollBar* __fastcall GetVScrollBar(void);
	void __fastcall ClearOutLine(void);
	void __fastcall SetOutLineInfo(void);
	void __fastcall OnOutlineClickEvent(System::TObject* Sender);
	void __fastcall GotoPosition(int aPageNo, int aPosition);
	void __fastcall FindInEMF(Graphics::TMetafile* lEmf);
	void __fastcall ShowPageNum(void);
	void __fastcall SetToCurPage(void);
	void __fastcall OnResizeEvent(System::TObject* Sender);
	void __fastcall OnSplitterMovedEvent(System::TObject* Sender);
	void __fastcall OnScrollBoxScroll(System::TObject* Sender, Rm_ctrls::TRMScrollBarKind Kind);
	void __fastcall SetPageRect(void);
	void __fastcall OnMouseWheelUpEvent(System::TObject* Sender, Classes::TShiftState Shift, const Types::TPoint &MousePos, bool &Handled);
	void __fastcall OnMouseWheelDownEvent(System::TObject* Sender, Classes::TShiftState Shift, const Types::TPoint &MousePos, bool &Handled);
	
protected:
	void __fastcall Connect_1(Rm_common::TRMCustomReport* aReport);
	void __fastcall Disconnect(void);
	System::TObject* __fastcall GetEndPages(void);
	__property Classes::TNotifyEvent OnAfterPageSetup = {read=FOnAfterPageSetup, write=FOnAfterPageSetup};
	virtual void __fastcall InternalOnProgress(Rm_common::TRMCustomReport* aReport, int aPercent);
	virtual void __fastcall BeginPrepareReport(Rm_common::TRMCustomReport* aReport);
	virtual void __fastcall EndPrepareReport(Rm_common::TRMCustomReport* aReport);
	
public:
	__fastcall virtual TRMVirtualPreview(Classes::TComponent* AOwner);
	__fastcall virtual ~TRMVirtualPreview(void);
	bool __fastcall CanModify(void);
	virtual void __fastcall ShowReport(Rm_common::TRMCustomReport* aReport);
	virtual void __fastcall Connect(Rm_common::TRMCustomReport* aReport);
	void __fastcall RedrawAll(bool aResetPage);
	void __fastcall OnePage(void);
	void __fastcall TwoPages(void);
	void __fastcall PageWidth(void);
	void __fastcall PrinterZoom(void);
	void __fastcall First(void);
	void __fastcall Next(void);
	void __fastcall Prev(void);
	void __fastcall Last(void);
	void __fastcall LoadFromFile(AnsiString aFileName);
	void __fastcall LoadFromFiles(Classes::TStrings* aFileNames);
	void __fastcall SaveToFile(AnsiString aFileName, int aIndex);
	void __fastcall ExportToFile(Classes::TComponent* aExport, AnsiString aFileName);
	void __fastcall ExportToXlsFile(void);
	virtual void __fastcall Print(void);
	void __fastcall PrintCurrentPage(void);
	void __fastcall DlgPageSetup(void);
	void __fastcall InsertPageBefore(void);
	void __fastcall InsertPageAfter(void);
	void __fastcall AddPage(void);
	void __fastcall DeletePage(int PageNo);
	bool __fastcall EditPage(int PageNo);
	void __fastcall DesignReport(void);
	void __fastcall Find(void);
	void __fastcall FindNext(void);
	void __fastcall ShowOutline(bool aVisible);
	__property Forms::TForm* ParentForm = {read=FParentForm, write=FParentForm};
	__property int KWheel = {read=FKWheel, write=SetKWheel, nodefault};
	__property Rm_common::TRMCustomReport* Report = {read=FReport};
	__property int TotalPages = {read=FTotalPages, nodefault};
	__property double Zoom = {read=GetZoom, write=SetZoom};
	__property Rm_common::TRMScaleMode ZoomMode = {read=FZoomMode, write=FZoomMode, nodefault};
	__property double LastScale = {read=FLastScale, write=FLastScale};
	__property Rm_ctrls::TRMScrollBox* ScrollBox = {read=FScrollBox};
	__property Rm_ctrls::TRMScrollBar* HScrollBar = {read=GetHScrollBar};
	__property Rm_ctrls::TRMScrollBar* VScrollBar = {read=GetVScrollBar};
	__property int CurPage = {read=FCurPage, write=SetPage, nodefault};
	__property Comctrls::TTreeView* OutlineTreeView = {read=FOutlineTreeView};
	__property AnsiString FindStr = {read=FFindStr, write=FFindStr};
	__property bool CaseSensitive = {read=FCaseSensitive, write=FCaseSensitive, nodefault};
	__property bool Wholewords = {read=FWholewords, write=FWholewords, nodefault};
	__property int LastFoundPage = {read=FLastFoundPage, write=FLastFoundPage, nodefault};
	__property int LastFoundObject = {read=FLastFoundObject, write=FLastFoundObject, nodefault};
	__property bool StrFound = {read=FStrFound, write=FStrFound, nodefault};
	__property Types::TRect StrBounds = {read=FStrBounds, write=FStrBounds};
	__property bool PrepareReportFlag = {read=FPrepareReportFlag, nodefault};
	
__published:
	__property AnsiString InitialDir = {read=FInitialDir, write=FInitialDir};
	__property Classes::TNotifyEvent OnPageChanged = {read=FOnPageChanged, write=FOnPageChanged};
	__property Classes::TNotifyEvent OnStatusChange = {read=FOnStatusChange, write=FOnStatusChange};
	__property TRMBeforeShowReport OnBeforeShowReport = {read=FOnBeforeShowReport, write=FOnBeforeShowReport};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TRMVirtualPreview(HWND ParentWindow) : Rm_common::TRMCustomPreview(ParentWindow) { }
	#pragma option pop
	
};


class PASCALIMPLEMENTATION TRMDrawPanel : public Extctrls::TPanel 
{
	typedef Extctrls::TPanel inherited;
	
private:
	System::TObject* FSaveEndPage;
	System::TObject* FSaveFoundView;
	int FSavePageNo;
	int FRepaintPageNo;
	TRMVirtualPreview* FPreview;
	bool FDown;
	bool FDoubleClickFlag;
	int FLastX;
	int FLastY;
	int FHRulerOffset;
	int FVRulerOffset;
	DynamicArray<int >  FVisiblePages;
	bool FBusy;
	MESSAGE void __fastcall WMEraseBackground(Messages::TMessage &Message);

⌨️ 快捷键说明

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