diff options
author | Tamas Bunth <tamas.bunth@collabora.co.uk> | 2019-10-25 17:45:01 +0200 |
---|---|---|
committer | Xisco Faulí <xiscofauli@libreoffice.org> | 2019-10-30 09:09:01 +0100 |
commit | a8a97925f79bb1859604988483168c9dded44052 (patch) | |
tree | ebb9d9424cb70d661a0e8e49c8cecbd0e999ba39 /oox | |
parent | tdf#49813 make autofilter popup at least the width of its column (diff) | |
download | core-a8a97925f79bb1859604988483168c9dded44052.tar.gz core-a8a97925f79bb1859604988483168c9dded44052.zip |
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>
(cherry picked from commit df9672b1fada6fc847bfa4c8a8f016fb2af6a7b5)
Reviewed-on: https://gerrit.libreoffice.org/81592
Reviewed-by: Xisco Faulí <xiscofauli@libreoffice.org>
Diffstat (limited to 'oox')
-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 713c5a745b3d..f7f9a6f28f40 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; |