diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2019-10-25 17:45:01 +0200 |
---|---|---|
committer | Tamás Bunth <btomi96@gmail.com> | 2019-10-25 20:22:35 +0200 |
commit | df9672b1fada6fc847bfa4c8a8f016fb2af6a7b5 (patch) | |
tree | ef74cff5ba55afc5c40cea6920089ab48686f7db /oox/source/drawingml | |
parent | 27fcc9a3465c62901955c822f596c98e4dcc0f66 (diff) |
tdf#126324 Import custom date as custom XTextField
Change-Id: I89f96490a47210e7daa3b21b2399e0dfe0cf3abf
Reviewed-on: https://gerrit.libreoffice.org/81513
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
Diffstat (limited to 'oox/source/drawingml')
-rw-r--r-- | oox/source/drawingml/textfield.cxx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/oox/source/drawingml/textfield.cxx b/oox/source/drawingml/textfield.cxx index 1151f31d1a6d..61b50e8ef549 100644 --- a/oox/source/drawingml/textfield.cxx +++ b/oox/source/drawingml/textfield.cxx @@ -67,6 +67,12 @@ void lclCreateTextFields( std::vector< Reference< XTextField > > & aFields, OString p( s.pData->buffer + 8 ); try { + if(p.startsWith("'")) + { + xIface = xFactory->createInstance( "com.sun.star.text.TextField.Custom" ); + aFields.emplace_back( xIface, UNO_QUERY ); + return; + } bool bIsDate = true; int idx = p.toInt32(); sal_uInt16 nNumFmt; |