summaryrefslogtreecommitdiff
path: root/include/vcl
diff options
context:
space:
mode:
authorpanoskorovesis <panoskorovesis@outlook.com>2021-07-08 13:06:06 +0300
committerTomaž Vajngerl <quikee@gmail.com>2021-07-09 11:48:58 +0200
commit66ac7e94ea69cd62c256cae8d3ced82678ce6992 (patch)
tree9dd1b08cffcb053406ea2974dbb0388201c8d957 /include/vcl
parent58a064595e43428f7d74341aff38df40fec0c8b3 (diff)
Add Handler for MetaStretchText Read
The handler separates the MetaStretchTextAction::Read from metaact.hxx Read implementation is now in SvmReader.hxx Change-Id: I3c8627aa51254e8fc12167d726066060d007ac26 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/118636 Tested-by: Jenkins Reviewed-by: Tomaž Vajngerl <quikee@gmail.com>
Diffstat (limited to 'include/vcl')
-rw-r--r--include/vcl/filter/SvmReader.hxx1
-rw-r--r--include/vcl/metaact.hxx5
2 files changed, 6 insertions, 0 deletions
diff --git a/include/vcl/filter/SvmReader.hxx b/include/vcl/filter/SvmReader.hxx
index 7baae24379b0..230a725c0ca9 100644
--- a/include/vcl/filter/SvmReader.hxx
+++ b/include/vcl/filter/SvmReader.hxx
@@ -53,6 +53,7 @@ public:
rtl::Reference<MetaAction> PolyPolygonHandler();
rtl::Reference<MetaAction> TextHandler(ImplMetaReadData* pData);
rtl::Reference<MetaAction> TextArrayHandler(ImplMetaReadData* pData);
+ rtl::Reference<MetaAction> StretchTextHandler(ImplMetaReadData* pData);
};
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */
diff --git a/include/vcl/metaact.hxx b/include/vcl/metaact.hxx
index 28a5373329c6..19ed80859f33 100644
--- a/include/vcl/metaact.hxx
+++ b/include/vcl/metaact.hxx
@@ -606,6 +606,11 @@ public:
sal_uInt32 GetWidth() const { return mnWidth; }
sal_Int32 GetIndex() const { return mnIndex; }
sal_Int32 GetLen() const { return mnLen; }
+ void SetPoint(Point& rPt) { maPt = rPt; }
+ void SetText(OUString& rStr) { maStr = rStr; }
+ void SetWidth(sal_uInt32 rWidth) { mnWidth = rWidth; }
+ void SetIndex(sal_uInt32 rIndex) { mnIndex = rIndex; }
+ void SetLen(sal_uInt32 rLen) { mnLen = rLen; }
};
class SAL_DLLPUBLIC_RTTI MetaTextRectAction final : public MetaAction