Files
Slnkdwf/SlnkDWFImpl/mywt_file.h
Jos Groot Lipman dcf444798e v4.29 ZLMV#78395 Whip2DC ook correctie voor niet orthogonale Units
Whip2PNG.flags en Whipfile.flags ingevoerd. Bitje +1 om bovenstaande te activeren

svn path=/Slnkdwf/trunk/; revision=61777
2023-09-12 09:25:39 +00:00

46 lines
1.2 KiB
C++

#pragma once
#include "Whiptk/whip_toolkit.h"
#include "myEPlotSectionImpl.h"
class myWT_File :
public WT_File
{
public:
myWT_File(void);
~myWT_File(void);
WT_Result set_eplotsection(CEPlotSectionImpl *EPlotSection);
WT_Result myWT_File::open();
const int file_pos() { return m_current_file_position; };
const size_t size()
{
if (m_EPlotSection)
return m_EPlotSection->size();
else
return 0; // Weet ik zo nog niet
};
const unsigned int PaperColor() { return m_color; };
static WT_Units fixUnits(const WT_Units orgunits, long flags);
#ifndef DWFTK_READ_ONLY
bool SaveAsAscii(const CString &destpath, EPlot_Progress_Action action = NULL);
#endif
BOOL m_ascii;
protected:
unsigned int m_color;
CEPlotSectionImpl *m_EPlotSection;
int m_current_file_position;
static WT_Result my_WSopen (WT_File & file);
static WT_Result my_WSclose (WT_File & file);
static WT_Result my_WSread (WT_File & file, int desired_bytes, int &
bytes_read, void * buffer);
static WT_Result my_WSseek (WT_File & file, int distance, int &amount_seeked);
#ifndef DWFTK_READ_ONLY
static WT_Result my_WSwrite (WT_File & file,int size,void const * buffer);
#endif
};