diff options
Diffstat (limited to 'include/vcl/metaact.hxx')
-rw-r--r-- | include/vcl/metaact.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx index 2666edb5f334..febbadb992a2 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -1399,12 +1399,20 @@ public: const MapMode& GetMapMode() const { return maMapMode; } }; +// tdf#127471 decl for friend below +namespace emfio { class ScaledFontDetectCorrectHelper; } + class VCL_DLLPUBLIC MetaFontAction final : public MetaAction { private: vcl::Font maFont; + // tdf#127471 for import correction of own wrong written EMF/WMF files allow correction + // of FontScale after import. Only from there, so use a friend here and keep the method private + friend class emfio::ScaledFontDetectCorrectHelper; + void correctFontScale(long nNewFontScale) { maFont.SetAverageFontWidth(nNewFontScale); } + public: MetaFontAction(); MetaFontAction(MetaFontAction const &) = default; |