summaryrefslogtreecommitdiff
path: root/sc/inc/stringutil.hxx
diff options
context:
space:
mode:
authorEike Rathke <erack@redhat.com>2012-04-15 14:56:55 +0200
committerEike Rathke <erack@redhat.com>2012-04-15 14:56:55 +0200
commit5a560e4300295629592716697f13bc803bdeba3c (patch)
tree064c8efca3e5815cd49e3586777e487c227e44be /sc/inc/stringutil.hxx
parent385017e0f2147d2a49e36d6c44ae76a1e7600668 (diff)
resolved fdo#48731 in CSV import do not strip leading apostrophe
Diffstat (limited to 'sc/inc/stringutil.hxx')
-rw-r--r--sc/inc/stringutil.hxx10
1 files changed, 10 insertions, 0 deletions
diff --git a/sc/inc/stringutil.hxx b/sc/inc/stringutil.hxx
index 66b68a2dd7e8..245714f3cc2d 100644
--- a/sc/inc/stringutil.hxx
+++ b/sc/inc/stringutil.hxx
@@ -61,6 +61,16 @@ struct SC_DLLPUBLIC ScSetStringParam
*/
bool mbSetTextCellFormat;
+ /**
+ * When true, treat input with a leading apostrophe / single quote special
+ * in that it escapes numeric or date/time input such that it is not
+ * interpreted and the input string is taken instead. This can be used
+ * during text file import so the leading apostrophe is not lost if it
+ * precedes a numeric value.
+ * Usually set mbHandleApostrophe = !mbSetTextCellFormat
+ */
+ bool mbHandleApostrophe;
+
ScSetStringParam();
};