112 lines
4.8 KiB
C++
112 lines
4.8 KiB
C++
// CodeGear C++Builder
|
|
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
|
|
// All rights reserved
|
|
|
|
// (DO NOT EDIT: machine generated header) 'uCEFPDFPrintOptions.pas' rev: 37.00 (Windows)
|
|
|
|
#ifndef uCEFPDFPrintOptionsHPP
|
|
#define uCEFPDFPrintOptionsHPP
|
|
|
|
#pragma delphiheader begin
|
|
#pragma option push
|
|
#if defined(__BORLANDC__) && !defined(__clang__)
|
|
#pragma option -w- // All warnings off
|
|
#pragma option -Vx // Zero-length empty class member
|
|
#endif
|
|
#pragma pack(push,8)
|
|
#include <System.hpp>
|
|
#include <SysInit.hpp>
|
|
#include <System.Classes.hpp>
|
|
#include <uCEFTypes.hpp>
|
|
|
|
//-- user supplied -----------------------------------------------------------
|
|
|
|
namespace Ucefpdfprintoptions
|
|
{
|
|
//-- forward type declarations -----------------------------------------------
|
|
class DELPHICLASS TPDFPrintOptions;
|
|
//-- type declarations -------------------------------------------------------
|
|
class PASCALIMPLEMENTATION TPDFPrintOptions : public System::TObject
|
|
{
|
|
typedef System::TObject inherited;
|
|
|
|
protected:
|
|
bool FLandscape;
|
|
bool FPrintBackground;
|
|
double FScale;
|
|
double FPaperWidth;
|
|
double FPaperHeight;
|
|
bool FPreferCSSPageSize;
|
|
Uceftypes::TCefPdfPrintMarginType FMarginType;
|
|
double FMarginTop;
|
|
double FMarginRight;
|
|
double FMarginBottom;
|
|
double FMarginLeft;
|
|
Uceftypes::ustring FPageRanges;
|
|
bool FDisplayHeaderFooter;
|
|
Uceftypes::ustring FHeaderTemplate;
|
|
Uceftypes::ustring FFooterTemplate;
|
|
bool FGenerateTaggedPDF;
|
|
bool FGenerateDocumentOutline;
|
|
double __fastcall GetScalePct();
|
|
double __fastcall GetPaperWidthMM();
|
|
double __fastcall GetPaperHeightMM();
|
|
double __fastcall GetMarginTopMM();
|
|
double __fastcall GetMarginRightMM();
|
|
double __fastcall GetMarginBottomMM();
|
|
double __fastcall GetMarginLeftMM();
|
|
void __fastcall SetScalePct(const double aValue);
|
|
void __fastcall SetPaperWidthMM(const double aValue);
|
|
void __fastcall SetPaperHeightMM(const double aValue);
|
|
void __fastcall SetMarginTopMM(const double aValue);
|
|
void __fastcall SetMarginRightMM(const double aValue);
|
|
void __fastcall SetMarginBottomMM(const double aValue);
|
|
void __fastcall SetMarginLeftMM(const double aValue);
|
|
double __fastcall InchesToMM(const double aInches);
|
|
double __fastcall MMToInches(const double aMM);
|
|
|
|
public:
|
|
__fastcall virtual TPDFPrintOptions();
|
|
void __fastcall CopyToSettings(Uceftypes::TCefPdfPrintSettings &aSettings);
|
|
__property bool Landscape = {read=FLandscape, write=FLandscape, nodefault};
|
|
__property bool PrintBackground = {read=FPrintBackground, write=FPrintBackground, nodefault};
|
|
__property bool PreferCSSPageSize = {read=FPreferCSSPageSize, write=FPreferCSSPageSize, nodefault};
|
|
__property Uceftypes::ustring PageRanges = {read=FPageRanges, write=FPageRanges};
|
|
__property bool DisplayHeaderFooter = {read=FDisplayHeaderFooter, write=FDisplayHeaderFooter, nodefault};
|
|
__property Uceftypes::ustring HeaderTemplate = {read=FHeaderTemplate, write=FHeaderTemplate};
|
|
__property Uceftypes::ustring FooterTemplate = {read=FFooterTemplate, write=FFooterTemplate};
|
|
__property bool GenerateTaggedPDF = {read=FGenerateTaggedPDF, write=FGenerateTaggedPDF, nodefault};
|
|
__property bool GenerateDocumentOutline = {read=FGenerateDocumentOutline, write=FGenerateDocumentOutline, nodefault};
|
|
__property double Scale = {read=FScale, write=FScale};
|
|
__property double ScalePct = {read=GetScalePct, write=SetScalePct};
|
|
__property double PaperWidthInch = {read=FPaperWidth, write=FPaperWidth};
|
|
__property double PaperHeightInch = {read=FPaperHeight, write=FPaperHeight};
|
|
__property double PaperWidthMM = {read=GetPaperWidthMM, write=SetPaperWidthMM};
|
|
__property double PaperHeightMM = {read=GetPaperHeightMM, write=SetPaperHeightMM};
|
|
__property Uceftypes::TCefPdfPrintMarginType MarginType = {read=FMarginType, write=FMarginType, nodefault};
|
|
__property double MarginTopInch = {read=FMarginTop, write=FMarginTop};
|
|
__property double MarginRightInch = {read=FMarginRight, write=FMarginRight};
|
|
__property double MarginBottomInch = {read=FMarginBottom, write=FMarginBottom};
|
|
__property double MarginLeftInch = {read=FMarginLeft, write=FMarginLeft};
|
|
__property double MarginTopMM = {read=GetMarginTopMM, write=SetMarginTopMM};
|
|
__property double MarginRightMM = {read=GetMarginRightMM, write=SetMarginRightMM};
|
|
__property double MarginBottomMM = {read=GetMarginBottomMM, write=SetMarginBottomMM};
|
|
__property double MarginLeftMM = {read=GetMarginLeftMM, write=SetMarginLeftMM};
|
|
public:
|
|
/* TObject.Destroy */ inline __fastcall virtual ~TPDFPrintOptions() { }
|
|
|
|
};
|
|
|
|
|
|
//-- var, const, procedure ---------------------------------------------------
|
|
} /* namespace Ucefpdfprintoptions */
|
|
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFPDFPRINTOPTIONS)
|
|
using namespace Ucefpdfprintoptions;
|
|
#endif
|
|
#pragma pack(pop)
|
|
#pragma option pop
|
|
|
|
#pragma delphiheader end.
|
|
//-- end unit ----------------------------------------------------------------
|
|
#endif // uCEFPDFPrintOptionsHPP
|