summaryrefslogtreecommitdiff
path: root/oox/source/xls/worksheetsettings.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/xls/worksheetsettings.cxx')
-rw-r--r--oox/source/xls/worksheetsettings.cxx11
1 files changed, 11 insertions, 0 deletions
diff --git a/oox/source/xls/worksheetsettings.cxx b/oox/source/xls/worksheetsettings.cxx
index b9e4f4b8babc..6a42c38e1647 100644
--- a/oox/source/xls/worksheetsettings.cxx
+++ b/oox/source/xls/worksheetsettings.cxx
@@ -27,6 +27,7 @@
#include "oox/xls/worksheetsettings.hxx"
#include <com/sun/star/util/XProtectable.hpp>
+#include "properties.hxx"
#include "oox/helper/attributelist.hxx"
#include "oox/helper/recordinputstream.hxx"
#include "oox/xls/biffinputstream.hxx"
@@ -293,6 +294,11 @@ void WorksheetSettings::importSheetProtection( BiffInputStream& rStrm )
maSheetProt.mbSelectUnlocked = !getFlag( nFlags, BIFF_SHEETPROT_SELECT_UNLOCKED );
}
+void WorksheetSettings::importCodeName( BiffInputStream& rStrm )
+{
+ maSheetSettings.maCodeName = rStrm.readUniString();
+}
+
void WorksheetSettings::importPhoneticPr( BiffInputStream& rStrm )
{
maPhoneticSett.importPhoneticPr( rStrm );
@@ -300,6 +306,7 @@ void WorksheetSettings::importPhoneticPr( BiffInputStream& rStrm )
void WorksheetSettings::finalizeImport()
{
+ // sheet protection
if( maSheetProt.mbSheet ) try
{
Reference< XProtectable > xProtectable( getSheet(), UNO_QUERY_THROW );
@@ -308,6 +315,10 @@ void WorksheetSettings::finalizeImport()
catch( Exception& )
{
}
+
+ // VBA code name
+ PropertySet aPropSet( getSheet() );
+ aPropSet.setProperty( PROP_CodeName, maSheetSettings.maCodeName );
}
// ============================================================================