📄 prbitmapdatafile.h
字号:
/* * * prbitmapdatafile.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 PRBITMAPDATAFILE_H#define PRBITMAPDATAFILE_H#include "..\lib\dib.h"#include "..\lib\prdatasource.h"class PRBitmapDataFile : public PRDataSource {public: PRBitmapDataFile(); // DEBUG/FIX DOES THE BASE CLASS NEED TO HAVE A DESTRUCTOR FOR THIS TO BE SAFE?? virtual ~PRBitmapDataFile(); // ****** PRDataSource INTERFACE ****** virtual ::PrintPreviewDataSource GetDataSourceType(void) const { return ::PrintPreviewDataSources::eBitmap; } virtual BOOL Open(const tstring& tstrFileName) ; virtual void Close(void) ; virtual BOOL IsOpen(void) const ; virtual BOOL GetAutoRotate(IN uint uiPage, OUT BOOL& bAutoRotate) const { return FALSE; } virtual BOOL GetEvenPageMargins(IN uint uiPage, OUT BOOL& bEvenPageMargins) const { return FALSE; } virtual const tstring & GetJobName(void) const ; virtual BOOL GetLandscape(IN uint uiPage, OUT BOOL& bLandscape) const { return FALSE; } //virtual BOOL GetNoCutGuidelines(IN uint uiPage, OUT BOOL& bNoCutGuidelines) const { return FALSE; } virtual uint GetPageCount(void) const ; // CALLER IS RESPONSIBLE FOR DELETING RETURNED HANDLE virtual HENHMETAFILE GetPageEMF(uint uiPage) const ; virtual BOOL GetResizedRenderSpec(IN uint uiPage, OUT ::RenderSpec& rs) const ; virtual BOOL GetResizedSourceSpec(IN uint uiPage, OUT ::SourceSpec& ssResized) const ; virtual BOOL GetSourcePageSpec(IN uint uiPage, OUT ::PageSpec& ps) const ; // CALLER IS RESPONSIBLE FOR FREEING RETURNED MALLOC'D BUFFER virtual PDEVMODE GetTargetPrinter(IN uint uiPage, OUT tstring& tstrTargetPrinterName) const ; // ****** END OF PRDataSource INTERFACE ******private: tstring m_tstrJobName; DibFromFileMap m_dib;};#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -