diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-21 11:12:40 +0100 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-12-21 19:13:47 +0100 |
commit | 44ea0b3a2550a79148fb86f3e7175fffe77674b4 (patch) | |
tree | 5c0207c67758e888f6a4ce8a49c62f1285600da8 /writerfilter/inc/resourcemodel/WW8ResourceModel.hxx | |
parent | 8870e068cc7368ffa14a6938836b370d2a188b64 (diff) |
writerfilter: refactor to get rid of savedPositionOffset{V,H} statics
Which are extremely scary, allowing a shape position from one doc to
appear in an other if two writerfilter import is in progress at the same
time.
This partially reverts 8fa1a0874765ea7db57e496f1d92731b9ab09280 (read
wp:positionOffset, wp:alignV and wp:alignH properly (bnc#513579),
2011-05-04).
Change-Id: I0fcddf88fa56f5f9288e47bcd100c38ee9cf2f13
Diffstat (limited to 'writerfilter/inc/resourcemodel/WW8ResourceModel.hxx')
-rw-r--r-- | writerfilter/inc/resourcemodel/WW8ResourceModel.hxx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx b/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx index b4254b6a97e2..7bdfeea0130d 100644 --- a/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx +++ b/writerfilter/inc/resourcemodel/WW8ResourceModel.hxx @@ -240,6 +240,14 @@ public: */ virtual void utext(const sal_uInt8 * data, size_t len) = 0; + /** + * Offset in EMUs for a shape. + * + * Call *before* an ooxml::CT_PosH/V_posOffset sprm is sent. + */ + virtual void positionOffset(const OUString& rText, bool bVertical) = 0; + /// Returns the last set offsets of a shape in HMM. + virtual css::awt::Point getPositionOffset() = 0; virtual void positivePercentage(const OUString& rText) = 0; /** |