#include <kerneldc.h>
Inheritance diagram for ExportDC:
Public Member Functions | |
ExportDC (Filter *Parent) | |
Creates a DC of the correct type (RENDERTYPE_FILE). | |
~ExportDC () | |
Deinitialise an Export device context. If the file connected to this DC is still open, the file is closed. | |
BOOL | Init (CCLexFile *) |
Initialise an export DC by connecting it to a named file. | |
virtual Filter * | GetParentFilter () |
Get a pointer to the filter object associated with this export device context. | |
Public Attributes | |
CCLexFile * | ExportFile |
Protected Attributes | |
Filter * | ParentFilter |
Definition at line 232 of file kerneldc.h.
|
Creates a DC of the correct type (RENDERTYPE_FILE).
Definition at line 1722 of file kerneldc.cpp. 01722 : KernelDC(RENDERTYPE_FILE) 01723 { 01724 // Sanity check 01725 ENSURE(Parent != NULL, "NULL parent filter in ExportDC creation!"); 01726 01727 // Install parent 01728 ParentFilter = Parent; 01729 ExportFile = NULL; 01730 }
|
|
Deinitialise an Export device context. If the file connected to this DC is still open, the file is closed.
Definition at line 1770 of file kerneldc.cpp. 01771 { 01772 // This is no longer needed as the file is closed by the caller 01773 /* 01774 if (ExportFile.isOpen()) 01775 { 01776 if (IsUserName("Tim")) 01777 TRACE( _T("File still open in CCExportDC dtor")); 01778 01779 ExportFile.close(); 01780 } 01781 */ 01782 }
|
|
Get a pointer to the filter object associated with this export device context.
Reimplemented from KernelDC. Definition at line 1798 of file kerneldc.cpp. 01799 { 01800 return ParentFilter; 01801 }
|
|
Initialise an export DC by connecting it to a named file.
Reimplemented in EPSExportDC, and FlashExportDC. Definition at line 1746 of file kerneldc.cpp. 01747 { 01748 // This file is already open when we get it 01749 ExportFile = pFile; 01750 01751 // Make sure that the file is open 01752 ERROR2IF(!ExportFile->isOpen(), FALSE, "File was not open in ExportDC::Init()"); 01753 01754 // File opened ok. 01755 return TRUE; 01756 }
|
|
Definition at line 241 of file kerneldc.h. |
|
Definition at line 244 of file kerneldc.h. |