[Libreoffice-commits] core.git: Branch 'feature/notes-refactoring' - sc/source
Laurent Godard
lgodard.libre at laposte.net
Thu Nov 21 03:48:31 PST 2013
sc/source/filter/xml/xmlannoi.cxx | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit 6a9354352e8119d1e1963e5f99ebabbae6dcf9bc
Author: Laurent Godard <lgodard.libre at laposte.net>
Date: Thu Nov 21 12:46:35 2013 +0100
add missing ScSheetSaveData support for annotation text style
Change-Id: I0d5d85c4f8f05c359e8342d9a4ec4d40feb22754
diff --git a/sc/source/filter/xml/xmlannoi.cxx b/sc/source/filter/xml/xmlannoi.cxx
index be284a8..7aa509c 100644
--- a/sc/source/filter/xml/xmlannoi.cxx
+++ b/sc/source/filter/xml/xmlannoi.cxx
@@ -54,6 +54,9 @@
#include "xmloff/prstylei.hxx"
#include "document.hxx"
+#include "sheetdata.hxx"
+#include "docuno.hxx"
+
using namespace com::sun::star;
using namespace xmloff::token;
@@ -385,6 +388,11 @@ void ScXMLAnnotationContext::PushFormat(sal_Int32 nBegin, sal_Int32 nEnd, const
rFmt.maSelection.nStartPos = nBegin;
rFmt.maSelection.nEndPos = nEnd;
+ // Store the used text styles for export.
+ ScSheetSaveData* pSheetData = ScModelObj::getImplementation(GetScImport().GetModel())->GetSheetSaveData();
+ ScAddress aCellPos = GetScImport().GetTables().GetCurrentCellPos();
+ pSheetData->AddTextStyle(rStyleName, aCellPos, rFmt.maSelection);
+
boost::scoped_ptr<SfxPoolItem> pPoolItem;
sal_uInt16 nLastItemID = EE_CHAR_END + 1;
More information about the Libreoffice-commits
mailing list