summaryrefslogtreecommitdiff
path: root/sc/source/filter/excel/xiroot.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2005-01-14 11:06:08 +0000
committerKurt Zenker <kz@openoffice.org>2005-01-14 11:06:08 +0000
commitd68ef7d5ee1829da624f1cbb1b2af25da4b610fe (patch)
tree97aeba6373552d51387e1a089c5d402a5f07219a /sc/source/filter/excel/xiroot.cxx
parentece9b9268d9ba7e04378540459fb5548b32589aa (diff)
INTEGRATION: CWS dr31 (1.13.88); FILE MERGED
2004/12/17 15:05:53 dr 1.13.88.2: #i38792# #i38821# Excel export of defined names and database ranges reimplemented 2004/12/09 09:03:29 dr 1.13.88.1: #i37965# import/export of control<->macro links, code cleanup
Diffstat (limited to 'sc/source/filter/excel/xiroot.cxx')
-rw-r--r--sc/source/filter/excel/xiroot.cxx48
1 files changed, 30 insertions, 18 deletions
diff --git a/sc/source/filter/excel/xiroot.cxx b/sc/source/filter/excel/xiroot.cxx
index 522f935509a3..62045d8681c8 100644
--- a/sc/source/filter/excel/xiroot.cxx
+++ b/sc/source/filter/excel/xiroot.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: xiroot.cxx,v $
*
- * $Revision: 1.13 $
+ * $Revision: 1.14 $
*
- * last change: $Author: obo $ $Date: 2004-10-18 15:16:06 $
+ * last change: $Author: kz $ $Date: 2005-01-14 12:06:08 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -73,6 +73,9 @@
#ifndef SC_XILINK_HXX
#include "xilink.hxx"
#endif
+#ifndef SC_XINAME_HXX
+#include "xiname.hxx"
+#endif
#ifndef SC_XISTYLE_HXX
#include "xistyle.hxx"
#endif
@@ -117,14 +120,24 @@ XclImpRoot::XclImpRoot( XclImpRootData& rImpRootData ) :
mrImpData.mxXFRangeBfr.reset( new XclImpXFRangeBuffer( GetRoot() ) );
mrImpData.mxPageSettings.reset( new XclImpPageSettings( GetRoot() ) );
mrImpData.mxTabInfo.reset( new XclImpTabInfo );
- mrImpData.mxNameBfr.reset( new XclImpNameBuffer( GetRoot() ) );
- mrImpData.mxLinkMgr.reset( new XclImpLinkManager( GetRoot() ) );
+ mrImpData.mxNameMgr.reset( new XclImpNameManager( GetRoot() ) );
+
+ if( GetBiff() >= xlBiff8 )
+ {
+ mrImpData.mxLinkMgr.reset( new XclImpLinkManager( GetRoot() ) );
+ mrImpData.mxSst.reset( new XclImpSst( GetRoot() ) );
+ mrImpData.mxCondFmtMgr.reset( new XclImpCondFormatManager( GetRoot() ) );
+ mrImpData.mxObjMgr.reset( new XclImpObjectManager( GetRoot() ) );
+ // TODO still in old RootData (deleted by RootData)
+ mpRD->pAutoFilterBuffer = new XclImpAutoFilterBuffer;
+ mrImpData.mxWebQueryBfr.reset( new XclImpWebQueryBuffer( GetRoot() ) );
+ mrImpData.mxPTableMgr.reset( new XclImpPivotTableManager( GetRoot() ) );
+ }
}
XclImpSst& XclImpRoot::GetSst() const
{
- if( !mrImpData.mxSst.get() )
- mrImpData.mxSst.reset( new XclImpSst( GetRoot() ) );
+ DBG_ASSERT( mrImpData.mxSst.get(), "XclImpRoot::GetSst - invalid call, wrong BIFF" );
return *mrImpData.mxSst;
}
@@ -160,11 +173,13 @@ XclImpPageSettings& XclImpRoot::GetPageSettings() const
_ScRangeListTabs& XclImpRoot::GetPrintAreaBuffer() const
{
+ // TODO still in old RootData
return *mpRD->pPrintRanges;
}
_ScRangeListTabs& XclImpRoot::GetTitleAreaBuffer() const
{
+ // TODO still in old RootData
return *mpRD->pPrintTitles;
}
@@ -173,54 +188,51 @@ XclImpTabInfo& XclImpRoot::GetTabInfo() const
return *mrImpData.mxTabInfo;
}
-XclImpNameBuffer& XclImpRoot::GetNameBuffer() const
+XclImpNameManager& XclImpRoot::GetNameManager() const
{
- return *mrImpData.mxNameBfr;
+ return *mrImpData.mxNameMgr;
}
XclImpLinkManager& XclImpRoot::GetLinkManager() const
{
+ DBG_ASSERT( mrImpData.mxLinkMgr.get(), "XclImpRoot::GetLinkManager - invalid call, wrong BIFF" );
return *mrImpData.mxLinkMgr;
}
XclImpObjectManager& XclImpRoot::GetObjectManager() const
{
- if( !mrImpData.mxObjMgr.get() )
- mrImpData.mxObjMgr.reset( new XclImpObjectManager( GetRoot() ) );
+ DBG_ASSERT( mrImpData.mxObjMgr.get(), "XclImpRoot::GetObjectManager - invalid call, wrong BIFF" );
return *mrImpData.mxObjMgr;
}
XclImpCondFormatManager& XclImpRoot::GetCondFormatManager() const
{
- if( !mrImpData.mxCondFmtMgr.get() )
- mrImpData.mxCondFmtMgr.reset( new XclImpCondFormatManager( GetRoot() ) );
+ DBG_ASSERT( mrImpData.mxCondFmtMgr.get(), "XclImpRoot::GetCondFormatManager - invalid call, wrong BIFF" );
return *mrImpData.mxCondFmtMgr;
}
XclImpAutoFilterBuffer& XclImpRoot::GetFilterManager() const
{
// TODO still in old RootData
- if( !mpRD->pAutoFilterBuffer )
- mpRD->pAutoFilterBuffer = new XclImpAutoFilterBuffer;
+ DBG_ASSERT( mpRD->pAutoFilterBuffer, "XclImpRoot::GetFilterManager - invalid call, wrong BIFF" );
return *mpRD->pAutoFilterBuffer;
}
XclImpWebQueryBuffer& XclImpRoot::GetWebQueryBuffer() const
{
- if( !mrImpData.mxWebQueryBfr.get() )
- mrImpData.mxWebQueryBfr.reset( new XclImpWebQueryBuffer( GetRoot() ) );
+ DBG_ASSERT( mrImpData.mxWebQueryBfr.get(), "XclImpRoot::GetWebQueryBuffer - invalid call, wrong BIFF" );
return *mrImpData.mxWebQueryBfr;
}
XclImpPivotTableManager& XclImpRoot::GetPivotTableManager() const
{
- if( !mrImpData.mxPTableMgr.get() )
- mrImpData.mxPTableMgr.reset( new XclImpPivotTableManager( GetRoot() ) );
+ DBG_ASSERT( mrImpData.mxPTableMgr.get(), "XclImpRoot::GetPivotTableManager - invalid call, wrong BIFF" );
return *mrImpData.mxPTableMgr;
}
ExcelToSc& XclImpRoot::GetFmlaConverter() const
{
+ // TODO still in old RootData
return *mpRD->pFmlaConverter;
}