diff options
Diffstat (limited to 'include')
-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 5ed09a9c5315..69552a2bbf95 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -1410,12 +1410,20 @@ public: const MapMode& GetMapMode() const { return maMapMode; } }; +// tdf#127471 decl for friend below +namespace emfio { class ScaledFontDetectCorrectHelper; } + class UNLESS_MERGELIBS(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(tools::Long nNewFontScale) { maFont.SetAverageFontWidth(nNewFontScale); } + public: MetaFontAction(); MetaFontAction(MetaFontAction const &) = default; |