+// int pixel_width = 0;
+// int pixel_height = 0;
+// int mm_width = 0;
+// int mm_height = 0;
+
+ float mm2pixelsX = 10.0;
+ float mm2pixelsY = 10.0;
+
+ switch (mode)
+ {
+ case wxMM_TWIPS:
+ {
+ m_logicalScaleX = (float)(twips2mm * mm2pixelsX);
+ m_logicalScaleY = (float)(twips2mm * mm2pixelsY);
+ break;
+ }
+ case wxMM_POINTS:
+ {
+ m_logicalScaleX = (float)(pt2mm * mm2pixelsX);
+ m_logicalScaleY = (float)(pt2mm * mm2pixelsY);
+ break;
+ }
+ case wxMM_METRIC:
+ {
+ m_logicalScaleX = mm2pixelsX;
+ m_logicalScaleY = mm2pixelsY;
+ break;
+ }
+ case wxMM_LOMETRIC:
+ {
+ m_logicalScaleX = (float)(mm2pixelsX/10.0);
+ m_logicalScaleY = (float)(mm2pixelsY/10.0);
+ break;
+ }
+ default:
+ case wxMM_TEXT:
+ {
+ m_logicalScaleX = 1.0;
+ m_logicalScaleY = 1.0;
+ break;
+ }
+ }
+ m_windowExtX = 100;
+ m_windowExtY = 100;
+}