23#include <document.hxx>
46 XclRootData( eBiff, rMedium, xRootStrg, rDoc, eTextEnc, false ),
48 mbHasCodePage( false ),
59 mrImpData( rImpRootData )
141 assert(
mrImpData.
mxSst &&
"XclImpRoot::GetSst - invalid call, wrong BIFF");
192 assert(
mrImpData.
mxLinkMgr &&
"XclImpRoot::GetLinkManager - invalid call, wrong BIFF");
203 OSL_ENSURE( !
IsInGlobals(),
"XclImpRoot::GetCurrSheetDrawing - must not be called from workbook globals" );
215 assert(
mrImpData.
mxValidMgr &&
"XclImpRoot::GetValidationManager - invalid call, wrong BIFF");
222 assert(
GetOldRoot().pAutoFilterBuffer &&
"XclImpRoot::GetFilterManager - invalid call, wrong BIFF");
279 if(
aName.isEmpty() )
Accessor class to ScDocument.
void SetCodeName(const OUString &r)
const ScExtDocSettings & GetDocSettings() const
void SetCodeName(SCTAB nTab, const OUString &rCodeName)
Appends a codename for a sheet.
static SC_DLLPUBLIC ScUnoAddInCollection * GetAddInCollection()
Provides functions to convert Excel cell addresses to Calc cell addresses.
void Convert(SCTAB nScTab)
Inserts all column and row settings of the specified sheet, except the hidden flags.
Contains document view settings (WINDOW1 record).
Stores the data of all fonts occurred in an Excel file.
void Initialize()
Clears all buffered data, used to set up for a new sheet.
This is the central class for the import of all internal/external links.
This buffer contains all internal defined names of the document.
Stores all user defined number formats occurred in the file.
void Initialize()
Clears all buffered data, used to set up for a new sheet.
Stores all drawing and OLE objects and additional data related to these objects.
Contains all page (print) settings for a single sheet.
void Initialize()
Initializes the object to be used for a new sheet.
void Finalize()
Creates a page stylesheet from current settings and sets it at current sheet.
Stores the default colors for the current BIFF version and the contents of a PALETTE record.
void Initialize()
Clears all buffered data, used to set up for a new sheet.
The main class for pivot table import.
ScRangeListTabs & GetPrintAreaBuffer() const
Returns the buffer that contains all print areas in the document.
ExcelToSc & GetOldFmlaConverter() const
Returns the old formula converter.
XclImpAddressConverter & GetAddressConverter() const
Returns the address converter.
XclImpXFBuffer & GetXFBuffer() const
Returns the cell formatting attributes buffer.
XclImpWebQueryBuffer & GetWebQueryBuffer() const
Returns the web query buffer.
void ReadCodeName(XclImpStream &rStrm, bool bGlobals)
Reads the CODENAME record and inserts the codename into the document.
void FinalizeTable()
Is called when import filter stops importing a single sheet (all BIFF versions).
ScRangeListTabs & GetTitleAreaBuffer() const
Returns the buffer that contains all print titles in the document.
XclImpLinkManager & GetLinkManager() const
Returns the link manager.
XclImpXFRangeBuffer & GetXFRangeBuffer() const
Returns the buffer of XF index ranges for a sheet.
ScDocumentImport & GetDocImport()
XclImpCondFormatManager & GetCondFormatManager() const
Returns the conditional formatting manager.
XclImpFontBuffer & GetFontBuffer() const
Returns the font buffer.
XclImpDocProtectBuffer & GetDocProtectBuffer() const
Returns the document protection options.
XclImpNameManager & GetNameManager() const
Returns the buffer that contains internal defined names.
XclImpValidationManager & GetValidationManager() const
static OUString GetScAddInName(const OUString &rXclName)
Returns the Calc add-in function name for an Excel function name.
XclImpAutoFilterBuffer & GetFilterManager() const
Returns the filter manager.
XclImpRoot(XclImpRootData &rImpRootData)
XclImpFormulaCompiler & GetFormulaCompiler() const
Returns the formula converter.
XclImpDocViewSettings & GetDocViewSettings() const
Returns the view settings of the entire document.
XclImpPalette & GetPalette() const
Returns the color buffer.
XclImpSst & GetSst() const
Returns the shared string table.
void InitializeTable(SCTAB nScTab)
Is called when import filter starts importing a single sheet (all BIFF versions).
const XclImpRoot & GetRoot() const
Returns this root instance - for code readability in derived classes.
XclImpPageSettings & GetPageSettings() const
Returns the page settings of the current sheet.
XclImpSheetDrawing & GetCurrSheetDrawing() const
Returns the drawing container of the current sheet.
XclImpTabInfo & GetTabInfo() const
Returns the buffer that contains the sheet creation order.
XclImpSheetProtectBuffer & GetSheetProtectBuffer() const
Returns the sheet protection options of the current sheet.
XclImpObjectManager & GetObjectManager() const
Returns the drawing object manager.
XclImpTabViewSettings & GetTabViewSettings() const
Returns the view settings of the current sheet.
void SetCodePage(sal_uInt16 nCodePage)
Sets a code page read from a CODEPAGE record for byte string import.
XclImpPivotTableManager & GetPivotTableManager() const
Returns the pivot table manager.
XclImpRootData & mrImpData
XclImpNumFmtBuffer & GetNumFmtBuffer() const
Returns the number format buffer.
Drawing manager of a single sheet.
The SST (shared string table) contains all strings used in a BIFF8 file.
This class is used to import record oriented streams.
A buffer containing information about names and creation order of sheets.
Contains all view settings for a single sheet.
void Finalize()
Sets the view settings at the current sheet or the extended sheet options object.
void Initialize()
Initializes the object to be used for a new sheet.
Contains all XF records occurred in the file.
void Initialize()
Clears all buffered data, used to set up for a new sheet.
Contains the XF indexes for every used cell in a single sheet.
void Finalize()
Applies styles and cell merging to the current sheet in the document.
void Initialize()
Clears all buffered data, used to set up for a new sheet.
Access to global data for a filter object (imported or exported document) from other classes.
ScExtDocOptions & GetExtDocOptions() const
Returns the extended document options.
void SetTextEncoding(rtl_TextEncoding eTextEnc)
Sets the text encoding to import/export byte strings.
bool IsInGlobals() const
Returns the current Calc sheet index.
SCTAB GetCurrScTab() const
Returns the current Calc sheet index.
XclBiff GetBiff() const
Returns the current BIFF version of the importer/exporter.
RootData & GetOldRoot() const
Returns old RootData struct.
ScDocument & GetDoc() const
Returns reference to the destination document (import) or source document (export).
std::shared_ptr< T > make_shared(Args &&... args)
std::unique_ptr< XclImpAutoFilterBuffer > pAutoFilterBuffer
XclImpColRowSettings * pColRowBuff
ExcelToSc * pFmlaConverter
OUString maGlobCodeName
Global codename (VBA module name).
Stores global buffers and data needed for Excel import filter.
XclImpDocProtectRef mxDocProtect
Sheet protection options for current sheet.
XclImpXFBfrRef mpXFBfr
All number formats in the file.
XclImpSstRef mxSst
The formula compiler.
XclImpAddrConvRef mxAddrConv
std::shared_ptr< ScDocumentImport > mxDocImport
Document protection options.
std::unique_ptr< ScRangeListTabs > mpPrintRanges
XclImpTabProtectRef mxTabProtect
View settings for current sheet.
XclImpLinkMgrRef mxLinkMgr
Internal defined names.
XclImpDocViewSettRef mxDocViewSett
Page settings for current sheet.
virtual ~XclImpRootData() override
XclImpRootData(XclBiff eBiff, SfxMedium &rMedium, const tools::SvRef< SotStorage > &xRootStrg, ScDocument &rDoc, rtl_TextEncoding eTextEnc)
true = document contains VB project.
XclImpNameMgrRef mxNameMgr
Sheet creation order list.
XclImpFontBfrRef mxFontBfr
The color buffer.
XclImpWebQueryBfrRef mxWebQueryBfr
Data validation.
XclImpFmlaCompRef mxFmlaComp
The address converter.
std::unique_ptr< ScRangeListTabs > mpPrintTitles
XclImpPaletteRef mxPalette
The shared string table.
XclImpNumFmtBfrRef mxNumFmtBfr
All fonts in the file.
bool mbHasBasic
true = CODEPAGE record exists.
XclImpTabInfoRef mxTabInfo
Buffer of XF index ranges in a sheet.
XclImpCondFmtMgrRef mxCondFmtMgr
All drawing objects.
XclImpPTableMgrRef mxPTableMgr
All web queries.
XclImpTabViewSettRef mxTabViewSett
View settings for entire document.
XclImpXFRangeBfrRef mxXFRangeBfr
All XF record data in the file.
XclImpObjectMgrRef mxObjMgr
Manager for internal/external links.
XclImpValidationMgrRef mxValidMgr
Conditional formatting.
XclImpPageSettRef mxPageSett
All pivot tables and pivot caches.
Stores global buffers and data needed elsewhere in the Excel filters.
XclBiff
An enumeration for all Excel file format types (BIFF types).
@ EXC_BIFF8
MS Excel 5.0, MS Excel 7.0 (95)