summaryrefslogtreecommitdiffstats
path: root/sc/inc/documentimport.hxx
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2014-09-30 21:30:17 -0400
committerKohei Yoshida <kohei.yoshida@collabora.com>2014-10-22 18:07:26 -0400
commitf1fcac4bc93d895307fad194988c4a024034dd5d (patch)
treed044ed11c64a582486a3dd4e370d44bd84583514 /sc/inc/documentimport.hxx
parentMove SetAttrEntries from ScDocument to ScDocumentImport. (diff)
downloadcore-f1fcac4bc93d895307fad194988c4a024034dd5d.tar.gz
core-f1fcac4bc93d895307fad194988c4a024034dd5d.zip
Try to determine whether or not a column has all 'General' number format
during import. We'll then use this information to set script type to latin for all numeric cells in those columns rather than leaving the script type 'unknown'. Change-Id: I69eae1effc32c57290b0265bc6c87e58f51944b1
Diffstat (limited to 'sc/inc/documentimport.hxx')
-rw-r--r--sc/inc/documentimport.hxx13
1 files changed, 12 insertions, 1 deletions
diff --git a/sc/inc/documentimport.hxx b/sc/inc/documentimport.hxx
index 621d2222d194..dc064ee08cfa 100644
--- a/sc/inc/documentimport.hxx
+++ b/sc/inc/documentimport.hxx
@@ -43,6 +43,17 @@ class SC_DLLPUBLIC ScDocumentImport : boost::noncopyable
ScDocumentImport(); // disabled
public:
+
+ struct SC_DLLPUBLIC Attrs
+ {
+ ScAttrEntry* mpData;
+ size_t mnSize;
+
+ bool mbGeneralNumFmtOnly;
+
+ Attrs();
+ };
+
ScDocumentImport(ScDocument& rDoc);
~ScDocumentImport();
@@ -87,7 +98,7 @@ public:
* transfers the ownership of the ScAttrEntry array from the caller to the
* column.
*/
- void setAttrEntries( SCTAB nTab, SCCOL nCol, ScAttrEntry* pData, size_t nSize );
+ void setAttrEntries( SCTAB nTab, SCCOL nCol, Attrs& rAttrs );
void finalize();