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