class WXDLLIMPEXP_RICHTEXT wxTextAttrDimensionConverter
{
public:
- wxTextAttrDimensionConverter(wxDC& dc, double scale = 1.0, const wxSize& parentSize = wxDefaultSize)
- { m_ppi = dc.GetPPI().x; m_scale = scale; m_parentSize = parentSize; }
-
- wxTextAttrDimensionConverter(int ppi, double scale = 1.0, const wxSize& parentSize = wxDefaultSize)
- { m_ppi = ppi; m_scale = scale; m_parentSize = parentSize; }
+ wxTextAttrDimensionConverter(wxDC& dc, double scale = 1.0, const wxSize& parentSize = wxDefaultSize);
+ wxTextAttrDimensionConverter(int ppi, double scale = 1.0, const wxSize& parentSize = wxDefaultSize);
int GetPixels(const wxTextAttrDimension& dim, int direction = wxHORIZONTAL) const;
int GetTenthsMM(const wxTextAttrDimension& dim) const;
absentAttr.SetPresent(true);
}
+wxTextAttrDimensionConverter::wxTextAttrDimensionConverter(wxDC& dc, double scale, const wxSize& parentSize)
+{
+ m_ppi = dc.GetPPI().x; m_scale = scale; m_parentSize = parentSize;
+}
+
+wxTextAttrDimensionConverter::wxTextAttrDimensionConverter(int ppi, double scale, const wxSize& parentSize)
+{
+ m_ppi = ppi; m_scale = scale; m_parentSize = parentSize;
+}
+
int wxTextAttrDimensionConverter::ConvertTenthsMMToPixels(int units) const
{
return wxRichTextObject::ConvertTenthsMMToPixels(m_ppi, units, m_scale);