📄 aceout.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'AceOut.pas' rev: 3.00
#ifndef AceOutHPP
#define AceOutHPP
#include <AceUtil.hpp>
#include <AceView.hpp>
#include <AceFile.hpp>
#include <AceSetup.hpp>
#include <Classes.hpp>
#include <Graphics.hpp>
#include <Printers.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>
//-- user supplied -----------------------------------------------------------
namespace Aceout
{
//-- type declarations -------------------------------------------------------
enum TAceDestination { adPrinter, adAceFile, adPreview, adNoWhere };
class DELPHICLASS TAceOutput;
class DELPHICLASS TAceCanvas;
class PASCALIMPLEMENTATION TAceCanvas : public System::TObject
{
typedef System::TObject inherited;
private:
TAceOutput* FAceOutput;
Graphics::TFont* FFont;
Graphics::TBrush* FBrush;
Graphics::TPen* FPen;
int FHandle;
TAceDestination FDestination;
int FPixelsPerInchX;
int FPixelsPerInchY;
tagLOGFONTA FLogFont;
tagLOGPEN FLogPen;
tagLOGBRUSH FLogBrush;
int FSelectFont;
int FSelectBrush;
int FSelectPen;
protected:
void __fastcall SetFont(Graphics::TFont* f);
void __fastcall SetLogFont(const tagLOGFONTA &lf);
void __fastcall SetBrush(Graphics::TBrush* b);
void __fastcall SetLogBrush(const tagLOGBRUSH &LB);
void __fastcall SetPen(Graphics::TPen* p);
void __fastcall SetLogPen(const tagLOGPEN &LP);
void __fastcall SetSelectFont(int hnd);
int __fastcall GetSelectFont(void);
void __fastcall SetSelectBrush(int hnd);
int __fastcall GetSelectBrush(void);
void __fastcall SetSelectPen(int hnd);
int __fastcall GetSelectPen(void);
void __fastcall SetHandle(int hnd);
void __fastcall FontChanged(void);
void __fastcall UpdateFont(System::TObject* Sender);
void __fastcall UpdatePen(System::TObject* Sender);
void __fastcall UpdateBrush(System::TObject* Sender);
public:
__fastcall TAceCanvas(void);
__fastcall virtual ~TAceCanvas(void);
void __fastcall SetTextAlign(Word Flags);
void __fastcall Textout(int x, int y, const System::AnsiString Text);
void __fastcall MoveTo(int x, int y);
void __fastcall LineTo(int x, int y);
void __fastcall PTextOut(int x, int y, char * Text, int Count);
void __fastcall ExtTextout(int x, int y, Word Options, const Windows::TRect &Rect, char * Text, Word
Count);
void __fastcall TextRect(const Windows::TRect &Rect, int x, int y, const System::AnsiString Text);
void __fastcall FillRect(const Windows::TRect &Rect);
void __fastcall Rectangle(int x1, int y1, int x2, int y2);
void __fastcall RoundRect(int x1, int y1, int x2, int y2, int x3, int y3);
void __fastcall Ellipse(int x1, int y1, int x2, int y2);
void __fastcall Draw(int x, int y, Graphics::TGraphic* Graphic);
void __fastcall StretchDraw(const Windows::TRect &Rect, Graphics::TGraphic* Graphic);
void __fastcall ShadeRect(const Windows::TRect &Rect, Aceutil::TAceShadePercent Shade);
void __fastcall SetFontAngle(int Angle);
void __fastcall SetBkColor(int bkColor);
void __fastcall TextJustify(const Windows::TRect &Rect, int x, int y, const System::AnsiString Text
, bool EndParagraph, const Windows::TRect &FullRect);
void __fastcall DrawBitmap(int X, int Y, Classes::TStream* Stream);
void __fastcall StretchDrawBitmap(const Windows::TRect &Rect, Classes::TStream* Stream);
__property TAceOutput* AceOutput = {read=FAceOutput, write=FAceOutput};
__property Graphics::TFont* Font = {read=FFont, write=SetFont};
__property tagLOGFONTA LogFont = {read=FLogFont, write=SetLogFont};
__property Graphics::TBrush* Brush = {read=FBrush, write=SetBrush};
__property tagLOGBRUSH LogBrush = {read=FLogBrush, write=SetLogBrush};
__property Graphics::TPen* Pen = {read=FPen, write=SetPen};
__property tagLOGPEN LogPen = {read=FLogPen, write=SetLogPen};
__property int Handle = {read=FHandle, write=SetHandle, nodefault};
__property TAceDestination Destination = {read=FDestination, write=FDestination, nodefault};
__property int PixelsPerInchX = {read=FPixelsPerInchX, write=FPixelsPerInchX, nodefault};
__property int PixelsPerInchY = {read=FPixelsPerInchY, write=FPixelsPerInchY, nodefault};
__property int SelectFont = {read=GetSelectFont, write=SetSelectFont, nodefault};
__property int SelectBrush = {read=GetSelectBrush, write=SetSelectBrush, nodefault};
__property int SelectPen = {read=GetSelectPen, write=SetSelectPen, nodefault};
void __fastcall RtfDraw(const Windows::TRect &Rect, Classes::TStream* Stream, int StartPos, int EndPos
, bool SetDefFont);
void __fastcall DrawCheckBox(const Windows::TRect &Rect, Aceutil::TAceCheckStyle CheckStyle, Graphics::TColor
Color, int Thickness);
void __fastcall Arc(int X1, int Y1, int X2, int Y2, int X3, int Y3, int X4, int Y4);
void __fastcall Chord(int X1, int Y1, int X2, int Y2, int X3, int Y3, int X4, int Y4);
void __fastcall Pie(int X1, int Y1, int X2, int Y2, int X3, int Y3, int X4, int Y4);
void __fastcall DrawShapeType(Aceutil::TAceDrawType dt, int x1, int y1, int x2, int y2, int x3, int
y3, int x4, int y4);
void __fastcall Polygon(const tagPOINT * Points, const int Points_Size);
void __fastcall Polyline(const tagPOINT * Points, const int Points_Size);
void __fastcall PolyDrawType(Aceutil::TAcePolyType pt, const tagPOINT * Points, const int Points_Size
);
void __fastcall Print3of9Barcode(int Left, int Top, int Width, int Height, int NarrowWidth, int WideWidth
, bool Inches, bool Vertical, System::AnsiString BarData);
void __fastcall Print2of5Barcode(int Left, int Top, int Width, int Height, int NarrowWidth, int WideWidth
, bool Inches, bool Vertical, System::AnsiString BarData);
};
class PASCALIMPLEMENTATION TAceOutput : public System::TObject
{
typedef System::TObject inherited;
private:
Printers::TPrinter* FPrinter;
TAceDestination FDestination;
TAceCanvas* FAceCanvas;
int FHandle;
System::AnsiString FFileName;
Acefile::TAceAceFile* FAceFile;
Acesetup::TAcePrinterSetup* FAcePrinterSetup;
int FPixelsPerInchX;
int FPixelsPerInchY;
float FLoadPercent;
Aceview::TAceViewer* FAceViewer;
System::AnsiString FDescription;
bool FCreateFile;
protected:
int __fastcall GetHandle(void);
void __fastcall SetAcePrinterSetup(Acesetup::TAcePrinterSetup* ps);
void __fastcall SetDestination(TAceDestination dest);
public:
__fastcall TAceOutput(void);
__fastcall virtual ~TAceOutput(void);
void __fastcall FixupPage(void);
void __fastcall BeginDoc(void);
void __fastcall EndDoc(void);
void __fastcall NewPage(void);
void __fastcall EndPage(void);
void __fastcall StartPage(void);
void __fastcall Abort(void);
__property TAceDestination Destination = {read=FDestination, write=SetDestination, nodefault};
__property TAceCanvas* AceCanvas = {read=FAceCanvas, write=FAceCanvas};
__property int Handle = {read=GetHandle, write=FHandle, nodefault};
__property Printers::TPrinter* Printer = {read=FPrinter, write=FPrinter};
__property System::AnsiString FileName = {read=FFileName, write=FFileName};
__property Acefile::TAceAceFile* AceFile = {read=FAceFile, write=FAceFile};
__property Aceview::TAceViewer* AceViewer = {read=FAceViewer, write=FAceViewer};
__property int PixelsPerInchX = {read=FPixelsPerInchX, write=FPixelsPerInchX, nodefault};
__property int PixelsPerInchY = {read=FPixelsPerInchY, write=FPixelsPerInchY, nodefault};
__property Acesetup::TAcePrinterSetup* AcePrinterSetup = {read=FAcePrinterSetup, write=SetAcePrinterSetup
};
__property float LoadPercent = {read=FLoadPercent, write=FLoadPercent};
__property System::AnsiString Description = {read=FDescription, write=FDescription};
__property bool CreateFile = {read=FCreateFile, write=FCreateFile, nodefault};
};
typedef void __fastcall (*TAcePrintOffsetEvent)(void);
//-- var, const, procedure ---------------------------------------------------
extern PACKAGE int PrintOffsetX;
extern PACKAGE int PrintOffsetY;
extern PACKAGE TAcePrintOffsetEvent OnPrintOffset;
} /* namespace Aceout */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Aceout;
#endif
//-- end unit ----------------------------------------------------------------
#endif // AceOut
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -