📄 inftypelib.tli
字号:
#pragma implementation_key(156)
inline void PageSetup::PutBottomMargin ( float oBottomMargin ) {
HRESULT _hr = put_BottomMargin(oBottomMargin);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(157)
inline float PageSetup::GetTopMargin ( ) {
float _result;
HRESULT _hr = get_TopMargin(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(158)
inline void PageSetup::PutTopMargin ( float oTopMargin ) {
HRESULT _hr = put_TopMargin(oTopMargin);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(159)
inline float PageSetup::GetLeftMargin ( ) {
float _result;
HRESULT _hr = get_LeftMargin(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(160)
inline void PageSetup::PutLeftMargin ( float oLeftMargin ) {
HRESULT _hr = put_LeftMargin(oLeftMargin);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(161)
inline float PageSetup::GetRightMargin ( ) {
float _result;
HRESULT _hr = get_RightMargin(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(162)
inline void PageSetup::PutRightMargin ( float oRightMargin ) {
HRESULT _hr = put_RightMargin(oRightMargin);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(163)
inline VARIANT_BOOL PageSetup::GetMaximumSize ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_MaximumSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(164)
inline void PageSetup::PutMaximumSize ( VARIANT_BOOL oMaxSize ) {
HRESULT _hr = put_MaximumSize(oMaxSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(165)
inline float PageSetup::GetLeft ( ) {
float _result;
HRESULT _hr = get_Left(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(166)
inline void PageSetup::PutLeft ( float oLeft ) {
HRESULT _hr = put_Left(oLeft);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(167)
inline float PageSetup::GetBottom ( ) {
float _result;
HRESULT _hr = get_Bottom(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(168)
inline void PageSetup::PutBottom ( float oBottom ) {
HRESULT _hr = put_Bottom(oBottom);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(169)
inline float PageSetup::GetZoom ( ) {
float _result;
HRESULT _hr = get_Zoom(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(170)
inline void PageSetup::PutZoom ( float oZoom ) {
HRESULT _hr = put_Zoom(oZoom);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(171)
inline enum CatImageRotation PageSetup::GetRotation ( ) {
enum CatImageRotation _result;
HRESULT _hr = get_Rotation(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(172)
inline void PageSetup::PutRotation ( enum CatImageRotation oRotation ) {
HRESULT _hr = put_Rotation(oRotation);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(173)
inline _bstr_t PageSetup::GetBanner ( ) {
BSTR _result;
HRESULT _hr = get_Banner(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(174)
inline void PageSetup::PutBanner ( BSTR * oBanner ) {
HRESULT _hr = put_Banner(oBanner);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(175)
inline enum CatBannerPosition PageSetup::GetBannerPosition ( ) {
enum CatBannerPosition _result;
HRESULT _hr = get_BannerPosition(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(176)
inline void PageSetup::PutBannerPosition ( enum CatBannerPosition oBannerPosition ) {
HRESULT _hr = put_BannerPosition(oBannerPosition);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(177)
inline _bstr_t PageSetup::GetLogo ( ) {
BSTR _result;
HRESULT _hr = get_Logo(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(178)
inline void PageSetup::PutLogo ( BSTR * oLogo ) {
HRESULT _hr = put_Logo(oLogo);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(179)
inline enum CatPrintQuality PageSetup::GetQuality ( ) {
enum CatPrintQuality _result;
HRESULT _hr = get_Quality(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(180)
inline void PageSetup::PutQuality ( enum CatPrintQuality oQuality ) {
HRESULT _hr = put_Quality(oQuality);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(181)
inline VARIANT_BOOL PageSetup::GetScaling1To1 ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_Scaling1To1(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(182)
inline void PageSetup::PutScaling1To1 ( VARIANT_BOOL oScaling1To1 ) {
HRESULT _hr = put_Scaling1To1(oScaling1To1);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(183)
inline enum CatPrintColor PageSetup::Getcolor ( ) {
enum CatPrintColor _result;
HRESULT _hr = get_color(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(184)
inline void PageSetup::Putcolor ( enum CatPrintColor oColor ) {
HRESULT _hr = put_color(oColor);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
#pragma implementation_key(185)
inline VARIANT_BOOL PageSetup::GetUseImageSize ( ) {
VARIANT_BOOL _result;
HRESULT _hr = get_UseImageSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(186)
inline void PageSetup::PutUseImageSize ( VARIANT_BOOL oUseImageSize ) {
HRESULT _hr = put_UseImageSize(oUseImageSize);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
}
//
// interface Printers wrapper method implementations
//
#pragma implementation_key(187)
inline PrinterPtr Printers::Item ( VARIANT * iIndex ) {
struct Printer * _result;
HRESULT _hr = raw_Item(iIndex, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return PrinterPtr(_result, false);
}
//
// interface Printer wrapper method implementations
//
#pragma implementation_key(188)
inline _bstr_t Printer::GetDeviceName ( ) {
BSTR _result;
HRESULT _hr = get_DeviceName(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(189)
inline enum CatPaperSize Printer::GetPaperSize ( ) {
enum CatPaperSize _result;
HRESULT _hr = get_PaperSize(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(190)
inline enum CatPaperOrientation Printer::GetOrientation ( ) {
enum CatPaperOrientation _result;
HRESULT _hr = get_Orientation(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(191)
inline float Printer::GetPaperWidth ( ) {
float _result;
HRESULT _hr = get_PaperWidth(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(192)
inline float Printer::GetPaperHeight ( ) {
float _result;
HRESULT _hr = get_PaperHeight(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
//
// interface FileSystem wrapper method implementations
//
#pragma implementation_key(193)
inline FolderPtr FileSystem::GetFolder ( BSTR * iPath ) {
struct Folder * _result;
HRESULT _hr = raw_GetFolder(iPath, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FolderPtr(_result, false);
}
#pragma implementation_key(194)
inline HRESULT FileSystem::CopyFolder ( BSTR * iSourcePath, BSTR * iDestinationPath ) {
HRESULT _hr = raw_CopyFolder(iSourcePath, iDestinationPath);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(195)
inline FolderPtr FileSystem::CreateFolder ( BSTR * iPath ) {
struct Folder * _result;
HRESULT _hr = raw_CreateFolder(iPath, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FolderPtr(_result, false);
}
#pragma implementation_key(196)
inline HRESULT FileSystem::DeleteFolder ( BSTR * iPath ) {
HRESULT _hr = raw_DeleteFolder(iPath);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(197)
inline VARIANT_BOOL FileSystem::FolderExists ( BSTR * iPath ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_FolderExists(iPath, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(198)
inline FilePtr FileSystem::GetFile ( BSTR * iPath ) {
struct File * _result;
HRESULT _hr = raw_GetFile(iPath, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FilePtr(_result, false);
}
#pragma implementation_key(199)
inline HRESULT FileSystem::CopyFile ( BSTR * iPathSource, BSTR * iPathDestination, VARIANT_BOOL iOverwrite ) {
HRESULT _hr = raw_CopyFile(iPathSource, iPathDestination, iOverwrite);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(200)
inline FilePtr FileSystem::CreateFile ( BSTR * iPath, VARIANT_BOOL iOverwrite ) {
struct File * _result;
HRESULT _hr = raw_CreateFile(iPath, iOverwrite, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FilePtr(_result, false);
}
#pragma implementation_key(201)
inline HRESULT FileSystem::DeleteFile ( BSTR * iPath ) {
HRESULT _hr = raw_DeleteFile(iPath);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _hr;
}
#pragma implementation_key(202)
inline VARIANT_BOOL FileSystem::FileExists ( BSTR * iPath ) {
VARIANT_BOOL _result;
HRESULT _hr = raw_FileExists(iPath, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _result;
}
#pragma implementation_key(203)
inline FolderPtr FileSystem::GetTemporaryDirectory ( ) {
struct Folder * _result;
HRESULT _hr = get_TemporaryDirectory(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return FolderPtr(_result, false);
}
#pragma implementation_key(204)
inline _bstr_t FileSystem::GetPathSeparator ( ) {
BSTR _result;
HRESULT _hr = get_PathSeparator(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(205)
inline _bstr_t FileSystem::GetFileSeparator ( ) {
BSTR _result;
HRESULT _hr = get_FileSeparator(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(206)
inline _bstr_t FileSystem::ConcatenatePaths ( BSTR * iPathChunk1, BSTR * iPathChunk2 ) {
BSTR _result;
HRESULT _hr = raw_ConcatenatePaths(iPathChunk1, iPathChunk2, &_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
//
// interface FileComponent wrapper method implementations
//
#pragma implementation_key(207)
inline _bstr_t FileComponent::GetPath ( ) {
BSTR _result;
HRESULT _hr = get_Path(&_result);
if (FAILED(_hr)) _com_issue_errorex(_hr, this, __uuidof(this));
return _bstr_t(_result, false);
}
#pragma implementation_key(208)
inline FolderPtr FileComponent::GetParentFolder ( ) {
struct Folder * _result;
HRESULT _hr = get_ParentFolder(&_result);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -