summaryrefslogtreecommitdiff
path: root/sc/source/core
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@collabora.com>2013-11-21 16:46:57 -0500
committerKohei Yoshida <kohei.yoshida@collabora.com>2013-11-22 09:07:22 -0500
commit24ff564bda7921f4b8f0e4e77adcc0d6458274da (patch)
tree129c866dd10ba51d67310d2e46533df00e4c635e /sc/source/core
parent37b741e1eb6025d2e3637c69c31acf807a61bb05 (diff)
Set default cell style directly, without UNO API.
This also avoids unnecessary row height adjustments. Change-Id: Icfecf0a5fdf7ef18db368ebadcf9d0b8700c0b65
Diffstat (limited to 'sc/source/core')
-rw-r--r--sc/source/core/data/documentimport.cxx9
1 files changed, 9 insertions, 0 deletions
diff --git a/sc/source/core/data/documentimport.cxx b/sc/source/core/data/documentimport.cxx
index 71387953e0ca..3ca06c544e62 100644
--- a/sc/source/core/data/documentimport.cxx
+++ b/sc/source/core/data/documentimport.cxx
@@ -58,6 +58,15 @@ void ScDocumentImport::setDefaultNumericScript(sal_uInt16 nScript)
mpImpl->mnDefaultScriptNumeric = nScript;
}
+void ScDocumentImport::setCellStyleToSheet(SCTAB nTab, const ScStyleSheet& rStyle)
+{
+ ScTable* pTab = mpImpl->mrDoc.FetchTable(nTab);
+ if (!pTab)
+ return;
+
+ pTab->ApplyStyleArea(0, 0, MAXCOL, MAXROW, rStyle);
+}
+
SCTAB ScDocumentImport::getSheetIndex(const OUString& rName) const
{
SCTAB nTab = -1;