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

📄 prdatasource.h

📁 虚拟打印机
💻 H
字号:
/* * * prdatasource.h *   Copyright (C) 2006 Michael H. Overlin   This program is free software; you can redistribute it and/or modify   it under the terms of the GNU General Public License as published by   the Free Software Foundation; either version 2 of the License, or   (at your option) any later version.   This program is distributed in the hope that it will be useful,   but WITHOUT ANY WARRANTY; without even the implied warranty of   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the   GNU General Public License for more details.   You should have received a copy of the GNU General Public License   along with this program; if not, write to the Free Software   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA      Contact at poster_printer@yahoo.com * */#ifndef PRDATASOURCE_H#define PRDATASOURCE_H#include "printResizerCommon.h"#include "types.h"struct RenderSpec;struct PageSpec;struct SourceSpec;class PRDataSource {public:	virtual ~PRDataSource() {} // ADDED TO BE SURE DERIVED CLASSES DESTRUCTOR IS PROPERLY CALLED							   // FORCES ALL DESTRUCTORS TO BE VIRTUAL	virtual ::PrintPreviewDataSource GetDataSourceType(void) const = 0;	virtual BOOL Open(const tstring& tstrFileName) = 0;	virtual void Close(void) = 0;	virtual BOOL IsOpen(void) const = 0;	virtual BOOL GetAutoRotate(IN uint uiPage, OUT BOOL& bAutoRotate) const = 0;	virtual BOOL GetEvenPageMargins(IN uint uiPage, OUT BOOL& bEvenPageMargins) const = 0;	virtual const tstring & GetJobName(void) const = 0;	virtual BOOL GetLandscape(IN uint uiPage, OUT BOOL& bLandscape) const = 0;	//virtual BOOL GetNoCutGuidelines(IN uint uiPage, OUT BOOL& bNoCutGuidelines) const = 0;	virtual uint GetPageCount(void) const = 0;	// CALLER IS RESPONSIBLE FOR DELETING RETURNED HANDLE	virtual HENHMETAFILE GetPageEMF(uint uiPage) const = 0;	// NOTE PREVIEWDIALOG CODE CAN DEAL WITH A FALSE (FAILURE) RETURN	virtual BOOL GetResizedRenderSpec(IN uint uiPage, OUT ::RenderSpec& rsResized) const = 0;	// NOTE PREVIEWDIALOG CODE CAN DEAL WITH A FALSE (FAILURE) RETURN	virtual BOOL GetResizedSourceSpec(IN uint uiPage, OUT ::SourceSpec& ssResized) const = 0;	// NOTE PREVIEWDIALOG CODE CAN DEAL WITH A FALSE (FAILURE) RETURN	virtual BOOL GetSourcePageSpec(IN uint uiPage, OUT ::PageSpec& ps) const = 0;	// NOTE PREVIEWDIALOG CODE CAN DEAL WITH A NULL (FAILURE) RETURN	// CALLER IS RESPONSIBLE FOR FREEING RETURNED MALLOC'D BUFFER	virtual PDEVMODE GetTargetPrinter(IN uint uiPage, OUT tstring& tstrTargetPrinterName) const = 0;};#endif

⌨️ 快捷键说明

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