diff options
author | panoskorovesis <panoskorovesis@outlook.com> | 2021-07-15 10:15:25 +0300 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2021-07-19 10:01:28 +0200 |
commit | e6773aaa82a11485bf07c1e960f8c1df5f7f02d5 (patch) | |
tree | ab9c8bef7c0c24b2d854ad3e4da180c2f5f50006 /include | |
parent | a452a9180e5cdecf6fe4cb59c8658e11640bbb6e (diff) |
Add Handler for Font Read
The handler separates MetaFontAction::Read from metaact.hxx
Read implementation is now in SvmReader.hxx
Change-Id: Id301813ceb29e13488a472ab8e3b2dfd9287d624
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118979
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/vcl/filter/SvmReader.hxx | 1 | ||||
-rw-r--r-- | include/vcl/metaact.hxx | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/include/vcl/filter/SvmReader.hxx b/include/vcl/filter/SvmReader.hxx index 60d60dacedf4..aa0fcda1aa20 100644 --- a/include/vcl/filter/SvmReader.hxx +++ b/include/vcl/filter/SvmReader.hxx @@ -79,6 +79,7 @@ public: rtl::Reference<MetaAction> OverlineColorHandler(); rtl::Reference<MetaAction> TextAlignHandler(); rtl::Reference<MetaAction> MapModeHandler(); + rtl::Reference<MetaAction> FontHandler(ImplMetaReadData* pData); }; /* vim:set shiftwidth=4 softtabstop=4 expandtab: */ diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx index e6fce271d9be..03631e6000a1 100644 --- a/include/vcl/metaact.hxx +++ b/include/vcl/metaact.hxx @@ -1548,6 +1548,8 @@ public: virtual void Scale( double fScaleX, double fScaleY ) override; const vcl::Font& GetFont() const { return maFont; } + void SetFont(const vcl::Font& rFont) { maFont = rFont; } + }; class UNLESS_MERGELIBS(VCL_DLLPUBLIC) MetaPushAction final : public MetaAction |