summaryrefslogtreecommitdiff
path: root/include/oox
diff options
context:
space:
mode:
authorMark Hung <marklh9@gmail.com>2018-07-12 00:49:47 +0800
committerMark Hung <marklh9@gmail.com>2018-07-13 16:00:05 +0200
commit660c0b54a18be5ec0c87dc55e6ca8196606ea999 (patch)
treefe3df4e9e27c1e95c638aafd2290eb9595e10122 /include/oox
parent2da75024f88f7c3242fedd9b5bf4832a596402c0 (diff)
Move convertMeasrue and convertAnimationValue from sd to oox.
1. convertAnimationValue convert the attribute value of a animation target from MS ppt to the format that slideshow understand, moving it so that it can be resued in oox. 2. convertMeasure is used by convertAnimationValue, moving it togehter eliminate the duplicated function in oox. Change-Id: I41cd1cf731b6496d7ae96b174a1748326415593f Reviewed-on: https://gerrit.libreoffice.org/57287 Tested-by: Jenkins Reviewed-by: Mark Hung <marklh9@gmail.com>
Diffstat (limited to 'include/oox')
-rw-r--r--include/oox/ppt/pptfilterhelpers.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/include/oox/ppt/pptfilterhelpers.hxx b/include/oox/ppt/pptfilterhelpers.hxx
index b1007992319f..b84fefbf94f8 100644
--- a/include/oox/ppt/pptfilterhelpers.hxx
+++ b/include/oox/ppt/pptfilterhelpers.hxx
@@ -24,6 +24,7 @@
#include <oox/dllapi.h>
#include <sal/types.h>
#include <rtl/ustring.hxx>
+#include <com/sun/star/uno/Any.hxx>
namespace com { namespace sun { namespace star {
namespace animations { class XAnimationNode; }
@@ -82,6 +83,15 @@ namespace oox { namespace ppt {
OOX_DLLPUBLIC void fixMainSequenceTiming( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
OOX_DLLPUBLIC void fixInteractiveSequenceTiming( const css::uno::Reference< css::animations::XAnimationNode >& xNode );
+
+ /** convert attribute values of the animation target so that LibreOffice understand.
+ */
+ OOX_DLLPUBLIC bool convertAnimationValue(MS_AttributeNames eAttribute, css::uno::Any& rValue);
+
+ /** convert the measure string to LibreOffice format.
+ * i.e. convert occurence of #{0,1}ppt_[xywh] to x,y, width, height.
+ */
+ OOX_DLLPUBLIC bool convertMeasure(OUString& rString);
} }
#endif