File bsc1140982.patch of Package libreoffice

From 43c407bd5f99b11b38a3bc0fd8b0fe3cfbe76a05 Mon Sep 17 00:00:00 2001
From: Tamas Bunth <tamas.bunth@collabora.co.uk>
Date: Fri, 25 Oct 2019 17:45:01 +0200
Subject: [PATCH] tdf#126324 Import custom date as custom XTextField
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Change-Id: I89f96490a47210e7daa3b21b2399e0dfe0cf3abf
Reviewed-on: https://gerrit.libreoffice.org/81513
Tested-by: Jenkins
Reviewed-by: Tamás Bunth <btomi96@gmail.com>
---
 oox/source/drawingml/textfield.cxx | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/oox/source/drawingml/textfield.cxx b/oox/source/drawingml/textfield.cxx
index a3e2bf4948c6..ae0672896e50 100644
--- a/oox/source/drawingml/textfield.cxx
+++ b/oox/source/drawingml/textfield.cxx
@@ -66,6 +66,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;
-- 
2.16.4