diff options
author | Kohei Yoshida <kyoshida@novell.com> | 2010-09-16 11:32:16 +0200 |
---|---|---|
committer | Fridrich Štrba <fridrich.strba@bluewin.ch> | 2010-09-16 11:32:16 +0200 |
commit | e278e19136f252ef8c0dfe451b7d31417bd65b09 (patch) | |
tree | efeabbd61aefb349f9a90eeca3ac973f67b77078 /sc/inc/stringutil.hxx | |
parent | b2051877f9059fa428e259bdd474cee99992821e (diff) |
calc-html-csv-import-force-text-cell.diff: Migrated
n#523414
set cell format to Text when a string format is requested, and don't
prepend ' in front of the value.
Diffstat (limited to 'sc/inc/stringutil.hxx')
-rw-r--r-- | sc/inc/stringutil.hxx | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/sc/inc/stringutil.hxx b/sc/inc/stringutil.hxx index c50c0d8cf156..c6433ebb1d04 100644 --- a/sc/inc/stringutil.hxx +++ b/sc/inc/stringutil.hxx @@ -32,6 +32,41 @@ #define SC_STRINGUTIL_HXX #include "rtl/ustring.hxx" +#include "scdllapi.h" + +class SvNumberFormatter; + +/** + * Store parameters used in the ScDocument::SetString() method. Various + * options for string-setting operation are specified herein. + */ +struct SC_DLLPUBLIC ScSetStringParam +{ + /** + * Stores the pointer to the number formatter instance to be used during + * number format detection. The caller must manage the life cycle of the + * instance. + */ + SvNumberFormatter* mpNumFormatter; + + /** + * When true, we try to detect special number format (dates etc) from the + * input string, when false, we only try to detect a basic decimal number + * format. + */ + bool mbDetectNumberFormat; + + /** + * When true, set the format of the cell to Text when a string cell is + * requested for a number input. We may want to do this during text file + * import (csv, html etc). + */ + bool mbSetTextCellFormat; + + ScSetStringParam(); +}; + +// ============================================================================ class ScStringUtil { |