diff options
author | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-09-30 21:30:17 -0400 |
---|---|---|
committer | Kohei Yoshida <kohei.yoshida@collabora.com> | 2014-10-22 18:07:26 -0400 |
commit | f1fcac4bc93d895307fad194988c4a024034dd5d (patch) | |
tree | d044ed11c64a582486a3dd4e370d44bd84583514 /sc/inc/documentimport.hxx | |
parent | e0d62d8ef7ec781ded59c2453d817eb9022b4bf3 (diff) |
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.hxx | 13 |
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(); |