summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xeroot.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sc/source/filter/excel/xeroot.cxx')
-rw-r--r--sc/source/filter/excel/xeroot.cxx25
1 files changed, 16 insertions, 9 deletions
diff --git a/sc/source/filter/excel/xeroot.cxx b/sc/source/filter/excel/xeroot.cxx
index 3cf6f73e92fd..347c40884383 100644
--- a/sc/source/filter/excel/xeroot.cxx
+++ b/sc/source/filter/excel/xeroot.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xeroot.cxx,v $
*
- * $Revision: 1.2 $
+ * $Revision: 1.3 $
*
- * last change: $Author: dr $ $Date: 2002-12-06 16:39:26 $
+ * last change: $Author: hr $ $Date: 2003-03-26 18:04:35 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -81,6 +81,7 @@
#include "xecontent.hxx"
#endif
+#include <patattr.hxx>
// Global data ================================================================
@@ -101,11 +102,12 @@ XclExpRoot::XclExpRoot( XclExpRootData& rExpRootData ) :
XclRoot( rExpRootData ),
mrExpData( rExpRootData )
{
- mrExpData.mpPalette.reset( new XclExpPalette( *this ) );
- mrExpData.mpFontBuffer.reset( new XclExpFontBuffer( *this ) );
- mrExpData.mpNumFmtBuffer.reset( new XclExpNumFmtBuffer( *this ) );
+ mrExpData.mpPalette.reset( new XclExpPalette( GetRoot() ) );
+ mrExpData.mpFontBuffer.reset( new XclExpFontBuffer( GetRoot() ) );
+ mrExpData.mpNumFmtBuffer.reset( new XclExpNumFmtBuffer( GetRoot() ) );
+ mrExpData.mpXFBuffer.reset( new XclExpXFBuffer( GetRoot() ) );
mrExpData.mpTabIdBuffer.reset( new XclExpTabIdBuffer( GetDoc() ) );
- mrExpData.mpLinkManager.reset( new XclExpLinkManager( *this ) );
+ mrExpData.mpLinkManager.reset( new XclExpLinkManager( GetRoot() ) );
}
XclExpRoot::XclExpRoot( const XclExpRoot& rRoot ) :
@@ -123,9 +125,9 @@ XclExpRoot& XclExpRoot::operator=( const XclExpRoot& rRoot )
void XclExpRoot::SetBiff( XclBiff eBiff )
{
XclRoot::SetBiff( eBiff );
- GetPalette().SetBiff( eBiff );
- GetFontBuffer().SetBiff( eBiff );
- GetNumFmtBuffer().SetBiff( eBiff );
+ GetPalette().OnChangeBiff();
+ GetFontBuffer().OnChangeBiff();
+ GetNumFmtBuffer().OnChangeBiff();
}
XclExpSst& XclExpRoot::GetSst() const
@@ -150,6 +152,11 @@ XclExpNumFmtBuffer& XclExpRoot::GetNumFmtBuffer() const
return *mrExpData.mpNumFmtBuffer;
}
+XclExpXFBuffer& XclExpRoot::GetXFBuffer() const
+{
+ return *mrExpData.mpXFBuffer;
+}
+
XclExpTabIdBuffer& XclExpRoot::GetTabIdBuffer() const
{
return *mrExpData.mpTabIdBuffer;