summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKohei Yoshida <kohei.yoshida@gmail.com>2013-08-02 18:39:01 -0400
committerKohei Yoshida <kohei.yoshida@gmail.com>2013-08-02 19:56:47 -0400
commit7b319cb9c11bb0f0100c16b6268e580a1d6e64aa (patch)
tree2876fc2589ef7edafea806b20da18aafb8b8135a
parent2382b8e8ec0ea65dc2a9ad1c401abe3be35a1487 (diff)
fdo#67684: Store imported text style entries, else they won't get exported.
Change-Id: Id784772e677e176622e75ff5ae33ab3eb78b1d9a
-rw-r--r--sc/source/filter/xml/xmlcelli.cxx5
1 files changed, 5 insertions, 0 deletions
diff --git a/sc/source/filter/xml/xmlcelli.cxx b/sc/source/filter/xml/xmlcelli.cxx
index 1fa56a017244..de12fd225ba9 100644
--- a/sc/source/filter/xml/xmlcelli.cxx
+++ b/sc/source/filter/xml/xmlcelli.cxx
@@ -404,6 +404,11 @@ void ScXMLTableRowCellContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, cons
rFmt.maSelection.nStartPos = nBegin;
rFmt.maSelection.nEndPos = nEnd;
+ // Store the used text styles for export.
+ ScSheetSaveData* pSheetData = ScModelObj::getImplementation(rXMLImport.GetModel())->GetSheetSaveData();
+ ScAddress aCellPos = rXMLImport.GetTables().GetCurrentCellPos();
+ pSheetData->AddTextStyle(rStyleName, aCellPos, rFmt.maSelection);
+
boost::scoped_ptr<SfxPoolItem> pPoolItem;
sal_uInt16 nLastItemID = EE_CHAR_END + 1;