Files
2026-06-12 23:18:12 +08:00

108 lines
4.7 KiB
C++

// CodeGear C++Builder
// Copyright (c) 1995, 2025 by Embarcadero Technologies, Inc.
// All rights reserved
// (DO NOT EDIT: machine generated header) 'uCEFPrintHandler.pas' rev: 37.00 (Windows)
#ifndef uCEFPrintHandlerHPP
#define uCEFPrintHandlerHPP
#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 <uCEFBaseRefCounted.hpp>
#include <uCEFInterfaces.hpp>
#include <uCEFTypes.hpp>
#include <uCEFApplicationCore.hpp>
//-- user supplied -----------------------------------------------------------
namespace Ucefprinthandler
{
//-- forward type declarations -----------------------------------------------
class DELPHICLASS TCefPrintHandlerOwn;
class DELPHICLASS TCustomPrintHandler;
//-- type declarations -------------------------------------------------------
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCefPrintHandlerOwn : public Ucefbaserefcounted::TCefBaseRefCountedOwn
{
typedef Ucefbaserefcounted::TCefBaseRefCountedOwn inherited;
protected:
virtual void __fastcall OnPrintStart(const Ucefinterfaces::_di_ICefBrowser browser) = 0 ;
virtual void __fastcall OnPrintSettings(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefPrintSettings settings, bool getDefaults) = 0 ;
virtual void __fastcall OnPrintDialog(const Ucefinterfaces::_di_ICefBrowser browser, bool hasSelection, const Ucefinterfaces::_di_ICefPrintDialogCallback callback, bool &aResult);
virtual void __fastcall OnPrintJob(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring documentName, const Uceftypes::ustring PDFFilePath, const Ucefinterfaces::_di_ICefPrintJobCallback callback, bool &aResult);
virtual void __fastcall OnPrintReset(const Ucefinterfaces::_di_ICefBrowser browser) = 0 ;
virtual void __fastcall GetPDFPaperSize(const Ucefinterfaces::_di_ICefBrowser browser, int deviceUnitsPerInch, Uceftypes::TCefSize &aResult);
virtual void __fastcall RemoveReferences() = 0 ;
public:
__fastcall virtual TCefPrintHandlerOwn();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCefPrintHandlerOwn(unsigned size, bool owned) : Ucefbaserefcounted::TCefBaseRefCountedOwn(size, owned) { }
/* TCefBaseRefCountedOwn.Destroy */ inline __fastcall virtual ~TCefPrintHandlerOwn() { }
private:
void *__ICefPrintHandler; // Ucefinterfaces::ICefPrintHandler
public:
#if defined(MANAGED_INTERFACE_OPERATORS)
// {2831D5C9-6E2B-4A30-A65A-0F4435371EFC}
operator Ucefinterfaces::_di_ICefPrintHandler()
{
Ucefinterfaces::_di_ICefPrintHandler intf;
this->GetInterface(intf);
return intf;
}
#else
operator Ucefinterfaces::ICefPrintHandler*(void) { return (Ucefinterfaces::ICefPrintHandler*)&__ICefPrintHandler; }
#endif
};
#pragma pack(pop)
#pragma pack(push,4)
class PASCALIMPLEMENTATION TCustomPrintHandler : public TCefPrintHandlerOwn
{
typedef TCefPrintHandlerOwn inherited;
protected:
void *FEvents;
virtual void __fastcall OnPrintStart(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall OnPrintSettings(const Ucefinterfaces::_di_ICefBrowser browser, const Ucefinterfaces::_di_ICefPrintSettings settings, bool getDefaults);
virtual void __fastcall OnPrintDialog(const Ucefinterfaces::_di_ICefBrowser browser, bool hasSelection, const Ucefinterfaces::_di_ICefPrintDialogCallback callback, bool &aResult);
virtual void __fastcall OnPrintJob(const Ucefinterfaces::_di_ICefBrowser browser, const Uceftypes::ustring documentName, const Uceftypes::ustring PDFFilePath, const Ucefinterfaces::_di_ICefPrintJobCallback callback, bool &aResult);
virtual void __fastcall OnPrintReset(const Ucefinterfaces::_di_ICefBrowser browser);
virtual void __fastcall GetPDFPaperSize(const Ucefinterfaces::_di_ICefBrowser browser, int deviceUnitsPerInch, Uceftypes::TCefSize &aResult);
virtual void __fastcall RemoveReferences();
public:
__fastcall virtual TCustomPrintHandler(const Ucefinterfaces::_di_IChromiumEvents events);
__fastcall virtual ~TCustomPrintHandler();
public:
/* TCefBaseRefCountedOwn.CreateData */ inline __fastcall virtual TCustomPrintHandler(unsigned size, bool owned) : TCefPrintHandlerOwn(size, owned) { }
};
#pragma pack(pop)
//-- var, const, procedure ---------------------------------------------------
} /* namespace Ucefprinthandler */
#if !defined(DELPHIHEADER_NO_IMPLICIT_NAMESPACE_USE) && !defined(NO_USING_NAMESPACE_UCEFPRINTHANDLER)
using namespace Ucefprinthandler;
#endif
#pragma pack(pop)
#pragma option pop
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // uCEFPrintHandlerHPP