Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef CLEANUPCOMMON_INCLUDED
Toshihiro Shimizu 890ddd
#define CLEANUPCOMMON_INCLUDED
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#include "texception.h"
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
// unit conversion
Toshihiro Shimizu 890ddd
inline double inToPixel(double val, double dpi) { return val * dpi; }
Toshihiro Shimizu 890ddd
inline double mmToPixel(double val, double dpi) { return (val * dpi) * (1.0 / 25.4); }
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
class TCleanupException : public TException
Toshihiro Shimizu 890ddd
{
Toshihiro Shimizu 890ddd
public:
Toshihiro Shimizu 890ddd
	TCleanupException(const char *msg) : TException(msg) {}
Toshihiro Shimizu 890ddd
	~TCleanupException() {}
Toshihiro Shimizu 890ddd
};
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#ifndef MAX_DOT
Toshihiro Shimizu 890ddd
#define MAX_DOT 500
Toshihiro Shimizu 890ddd
#endif
Toshihiro Shimizu 890ddd
Toshihiro Shimizu 890ddd
#endif