2016-05-17 03:04:11 +12:00
|
|
|
#pragma once
|
2016-03-19 06:57:51 +13:00
|
|
|
|
|
|
|
#ifndef CLEANUPCOMMON_INCLUDED
|
|
|
|
#define CLEANUPCOMMON_INCLUDED
|
|
|
|
|
|
|
|
#include "texception.h"
|
|
|
|
|
|
|
|
// unit conversion
|
|
|
|
inline double inToPixel(double val, double dpi) { return val * dpi; }
|
2016-06-15 18:43:10 +12:00
|
|
|
inline double mmToPixel(double val, double dpi) {
|
|
|
|
return (val * dpi) * (1.0 / 25.4);
|
|
|
|
}
|
2016-03-19 06:57:51 +13:00
|
|
|
|
2016-06-29 18:17:12 +12:00
|
|
|
class TCleanupException final : public TException {
|
2016-03-19 06:57:51 +13:00
|
|
|
public:
|
2016-06-15 18:43:10 +12:00
|
|
|
TCleanupException(const char *msg) : TException(msg) {}
|
|
|
|
~TCleanupException() {}
|
2016-03-19 06:57:51 +13:00
|
|
|
};
|
|
|
|
|
|
|
|
#ifndef MAX_DOT
|
|
|
|
#define MAX_DOT 500
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|