LibreOffice Module sc (master) 1
Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
oox::xls::WorkbookGlobals Class Reference
Collaboration diagram for oox::xls::WorkbookGlobals:
[legend]

Public Member Functions

 WorkbookGlobals (const WorkbookGlobals &)=delete
 
const WorkbookGlobalsoperator= (const WorkbookGlobals &)=delete
 
 WorkbookGlobals (ExcelFilter &rFilter)
 
 ~WorkbookGlobals ()
 
bool isValid () const
 Returns true, if this helper refers to a valid document. More...
 
FilterBase & getBaseFilter () const
 Returns the base filter object (base class of all filters). More...
 
SegmentProgressBargetProgressBar () const
 Returns the filter progress bar. More...
 
const StorageRefgetVbaProjectStorage () const
 Returns the VBA project storage. More...
 
sal_Int16 getCurrentSheetIndex () const
 Returns the index of the current Calc sheet, if filter currently processes a sheet. More...
 
bool isGeneratorKnownGood () const
 Returns true when reading a file generated by a known good generator. More...
 
bool hasCalculatedFormulaCells () const
 Returns true if any formula cell appears to have a calculated value not 0.0 nor "", or when reading a known good generator's file. More...
 
void setCalculatedFormulaCells ()
 
void setVbaProjectStorage (const StorageRef &rxVbaPrjStrg)
 Sets the VBA project storage used to import VBA source code and forms. More...
 
void setCurrentSheetIndex (SCTAB nSheet)
 Sets the index of the current Calc sheet, if filter currently processes a sheet. More...
 
ScEditEngineDefaultergetEditEngine () const
 
ScDocumentgetScDocument ()
 
ScDocumentImportgetDocImport ()
 
const Reference< XSpreadsheetDocument > & getDocument () const
 Returns a reference to the source/target spreadsheet document model. More...
 
Reference< XNameContainer > getStyleFamily (bool bPageStyles) const
 Returns the cell or page styles container from the Calc document. More...
 
Reference< XStyle > getStyleObject (const OUString &rStyleName, bool bPageStyle) const
 Returns the specified cell or page style from the Calc document. More...
 
WorkbookHelper::RangeDataRet createNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, bool bHidden)
 Creates and returns a defined name on-the-fly in the Calc document. More...
 
WorkbookHelper::RangeDataRet createLocalNamedRangeObject (OUString &orName, sal_Int32 nIndex, sal_Int32 nNameFlags, sal_Int32 nTab, bool bHidden)
 Creates and returns a defined name on the-fly in the correct Calc sheet. More...
 
Reference< XDatabaseRange > createDatabaseRangeObject (OUString &orName, const ScRange &rRangeAddr)
 Creates and returns a database range on-the-fly in the Calc document. More...
 
Reference< XDatabaseRange > createUnnamedDatabaseRangeObject (const ScRange &rRangeAddr)
 Creates and returns an unnamed database range on-the-fly in the Calc document. More...
 
ScDBDatafindDatabaseRangeByIndex (sal_uInt16 nIndex)
 Finds the (already existing) database range of the given formula token index. More...
 
Reference< XStyle > createStyleObject (OUString &orStyleName, bool bPageStyle)
 Creates and returns a com.sun.star.style.Style object for cells or pages. More...
 
void useInternalChartDataTable (bool bInternal)
 Helper to switch chart data table - specifically for xlsx imports. More...
 
FormulaBuffergetFormulaBuffer () const
 
WorkbookSettingsgetWorkbookSettings () const
 Returns the global workbook settings object. More...
 
ViewSettingsgetViewSettings () const
 Returns the workbook and sheet view settings object. More...
 
WorksheetBuffergetWorksheets () const
 Returns the worksheet buffer containing sheet names and properties. More...
 
ThemeBuffergetTheme () const
 Returns the office theme object read from the theme substorage. More...
 
StylesBuffergetStyles () const
 Returns all cell formatting objects read from the styles substream. More...
 
SharedStringsBuffergetSharedStrings () const
 Returns the shared strings read from the shared strings substream. More...
 
ExternalLinkBuffergetExternalLinks () const
 Returns the external links read from the external links substream. More...
 
DefinedNamesBuffergetDefinedNames () const
 Returns the defined names read from the workbook globals. More...
 
TableBuffergetTables () const
 Returns the tables collection (equivalent to Calc's database ranges). More...
 
ScenarioBuffergetScenarios () const
 Returns the scenarios collection. More...
 
ConnectionsBuffergetConnections () const
 Returns the collection of external data connections. More...
 
PivotCacheBuffergetPivotCaches () const
 Returns the collection of pivot caches. More...
 
PivotTableBuffergetPivotTables ()
 Returns the collection of pivot tables. More...
 
FormulaParsergetFormulaParser () const
 Returns a shared import formula parser. More...
 
FormulaParsercreateFormulaParser ()
 Returns an unshared import formula parser. More...
 
UnitConvertergetUnitConverter () const
 Returns the measurement unit converter. More...
 
AddressConvertergetAddressConverter () const
 Returns the converter for string to cell address/range conversion. More...
 
oox::drawingml::chart::ChartConvertergetChartConverter () const
 Returns the chart object converter. More...
 
PageSettingsConvertergetPageSettingsConverter () const
 Returns the page/print settings converter. More...
 
XmlFilterBase & getOoxFilter () const
 Returns the base OOXML/BIFF12 filter object. More...
 
rtl_TextEncoding getTextEncoding () const
 Returns the text encoding used to import/export byte strings. More...
 

Private Types

typedef ::std::unique_ptr< ScEditEngineDefaulterEditEngineDefaulterPtr
 
typedef ::std::unique_ptr< FormulaBufferFormulaBufferPtr
 
typedef ::std::unique_ptr< SegmentProgressBarProgressBarPtr
 
typedef ::std::unique_ptr< WorkbookSettingsWorkbookSettPtr
 
typedef ::std::unique_ptr< ViewSettingsViewSettingsPtr
 
typedef ::std::unique_ptr< WorksheetBufferWorksheetBfrPtr
 
typedef ::std::shared_ptr< ThemeBufferThemeBfrRef
 
typedef ::std::unique_ptr< StylesBufferStylesBfrPtr
 
typedef ::std::unique_ptr< SharedStringsBufferSharedStrBfrPtr
 
typedef ::std::unique_ptr< ExternalLinkBufferExtLinkBfrPtr
 
typedef ::std::unique_ptr< DefinedNamesBufferDefNamesBfrPtr
 
typedef ::std::unique_ptr< TableBufferTableBfrPtr
 
typedef ::std::unique_ptr< ScenarioBufferScenarioBfrPtr
 
typedef ::std::unique_ptr< ConnectionsBufferConnectionsBfrPtr
 
typedef ::std::unique_ptr< PivotCacheBufferPivotCacheBfrPtr
 
typedef ::std::unique_ptr< PivotTableBufferPivotTableBfrPtr
 
typedef ::std::unique_ptr< FormulaParserFormulaParserPtr
 
typedef ::std::unique_ptr< UnitConverterUnitConvPtr
 
typedef ::std::unique_ptr< AddressConverterAddressConvPtr
 
typedef ::std::unique_ptr< oox::drawingml::chart::ChartConverterExcelChartConvPtr
 
typedef ::std::unique_ptr< PageSettingsConverterPageSettConvPtr
 

Private Member Functions

void initialize ()
 Initializes some basic members and sets needed document properties. More...
 
void finalize ()
 Finalizes the filter process (sets some needed document properties). More...
 
void ImplDestroy ()
 

Private Attributes

OUString maCellStyles
 
OUString maPageStyles
 Style family name for cell styles. More...
 
OUString maCellStyleServ
 Style family name for page styles. More...
 
OUString maPageStyleServ
 Service name for a cell style. More...
 
Reference< XSpreadsheetDocument > mxDoc
 Service name for a page style. More...
 
FilterBase & mrBaseFilter
 Document model. More...
 
ExcelFiltermrExcelFilter
 Base filter object. More...
 
ProgressBarPtr mxProgressBar
 Base object for registration of this structure. More...
 
StorageRef mxVbaPrjStrg
 The progress bar. More...
 
sal_Int16 mnCurrSheet
 Storage containing the VBA project. More...
 
bool mbGeneratorKnownGood
 Current sheet index in Calc document. More...
 
bool mbHasCalculatedFormulaCells
 Whether reading a file generated by Excel or Calc. More...
 
FormulaBufferPtr mxFormulaBuffer
 Assumed to have calculated formula cells. More...
 
WorkbookSettPtr mxWorkbookSettings
 
ViewSettingsPtr mxViewSettings
 Global workbook settings. More...
 
WorksheetBfrPtr mxWorksheets
 Workbook and sheet view settings. More...
 
ThemeBfrRef mxTheme
 Sheet info buffer. More...
 
StylesBfrPtr mxStyles
 Formatting theme from theme substream. More...
 
SharedStrBfrPtr mxSharedStrings
 All cell style objects from styles substream. More...
 
ExtLinkBfrPtr mxExtLinks
 All strings from shared strings substream. More...
 
DefNamesBfrPtr mxDefNames
 All external links. More...
 
TableBfrPtr mxTables
 All defined names. More...
 
ScenarioBfrPtr mxScenarios
 All tables (database ranges). More...
 
ConnectionsBfrPtr mxConnections
 All scenarios. More...
 
PivotCacheBfrPtr mxPivotCaches
 All external data connections. More...
 
PivotTableBfrPtr mxPivotTables
 All pivot caches in the document. More...
 
FormulaParserPtr mxFmlaParser
 All pivot tables in the document. More...
 
UnitConvPtr mxUnitConverter
 Import formula parser. More...
 
AddressConvPtr mxAddrConverter
 General unit converter. More...
 
ExcelChartConvPtr mxChartConverter
 Cell address and cell range address converter. More...
 
PageSettConvPtr mxPageSettConverter
 Chart object converter. More...
 
EditEngineDefaulterPtr mxEditEngine
 Page/print settings converter. More...
 
XmlFilterBase * mpOoxFilter
 
rtl_TextEncoding meTextEnc
 Base OOXML/BIFF12 filter object. More...
 
ScDocumentmpDoc
 BIFF byte string text encoding. More...
 
ScDocShellmpDocShell
 
std::unique_ptr< ScDocumentImportmxDocImport
 

Detailed Description

Definition at line 104 of file workbookhelper.cxx.

Member Typedef Documentation

◆ AddressConvPtr

typedef ::std::unique_ptr< AddressConverter > oox::xls::WorkbookGlobals::AddressConvPtr
private

Definition at line 254 of file workbookhelper.cxx.

◆ ConnectionsBfrPtr

Definition at line 249 of file workbookhelper.cxx.

◆ DefNamesBfrPtr

typedef ::std::unique_ptr< DefinedNamesBuffer > oox::xls::WorkbookGlobals::DefNamesBfrPtr
private

Definition at line 246 of file workbookhelper.cxx.

◆ EditEngineDefaulterPtr

Definition at line 236 of file workbookhelper.cxx.

◆ ExcelChartConvPtr

Definition at line 255 of file workbookhelper.cxx.

◆ ExtLinkBfrPtr

typedef ::std::unique_ptr< ExternalLinkBuffer > oox::xls::WorkbookGlobals::ExtLinkBfrPtr
private

Definition at line 245 of file workbookhelper.cxx.

◆ FormulaBufferPtr

typedef ::std::unique_ptr< FormulaBuffer > oox::xls::WorkbookGlobals::FormulaBufferPtr
private

Definition at line 237 of file workbookhelper.cxx.

◆ FormulaParserPtr

typedef ::std::unique_ptr< FormulaParser > oox::xls::WorkbookGlobals::FormulaParserPtr
private

Definition at line 252 of file workbookhelper.cxx.

◆ PageSettConvPtr

Definition at line 256 of file workbookhelper.cxx.

◆ PivotCacheBfrPtr

typedef ::std::unique_ptr< PivotCacheBuffer > oox::xls::WorkbookGlobals::PivotCacheBfrPtr
private

Definition at line 250 of file workbookhelper.cxx.

◆ PivotTableBfrPtr

typedef ::std::unique_ptr< PivotTableBuffer > oox::xls::WorkbookGlobals::PivotTableBfrPtr
private

Definition at line 251 of file workbookhelper.cxx.

◆ ProgressBarPtr

typedef ::std::unique_ptr< SegmentProgressBar > oox::xls::WorkbookGlobals::ProgressBarPtr
private

Definition at line 238 of file workbookhelper.cxx.

◆ ScenarioBfrPtr

typedef ::std::unique_ptr< ScenarioBuffer > oox::xls::WorkbookGlobals::ScenarioBfrPtr
private

Definition at line 248 of file workbookhelper.cxx.

◆ SharedStrBfrPtr

Definition at line 244 of file workbookhelper.cxx.

◆ StylesBfrPtr

typedef ::std::unique_ptr< StylesBuffer > oox::xls::WorkbookGlobals::StylesBfrPtr
private

Definition at line 243 of file workbookhelper.cxx.

◆ TableBfrPtr

typedef ::std::unique_ptr< TableBuffer > oox::xls::WorkbookGlobals::TableBfrPtr
private

Definition at line 247 of file workbookhelper.cxx.

◆ ThemeBfrRef

typedef ::std::shared_ptr< ThemeBuffer > oox::xls::WorkbookGlobals::ThemeBfrRef
private

Definition at line 242 of file workbookhelper.cxx.

◆ UnitConvPtr

typedef ::std::unique_ptr< UnitConverter > oox::xls::WorkbookGlobals::UnitConvPtr
private

Definition at line 253 of file workbookhelper.cxx.

◆ ViewSettingsPtr

typedef ::std::unique_ptr< ViewSettings > oox::xls::WorkbookGlobals::ViewSettingsPtr
private

Definition at line 240 of file workbookhelper.cxx.

◆ WorkbookSettPtr

typedef ::std::unique_ptr< WorkbookSettings > oox::xls::WorkbookGlobals::WorkbookSettPtr
private

Definition at line 239 of file workbookhelper.cxx.

◆ WorksheetBfrPtr

typedef ::std::unique_ptr< WorksheetBuffer > oox::xls::WorkbookGlobals::WorksheetBfrPtr
private

Definition at line 241 of file workbookhelper.cxx.

Constructor & Destructor Documentation

◆ WorkbookGlobals() [1/2]

oox::xls::WorkbookGlobals::WorkbookGlobals ( const WorkbookGlobals )
delete

◆ WorkbookGlobals() [2/2]

oox::xls::WorkbookGlobals::WorkbookGlobals ( ExcelFilter rFilter)
explicit

◆ ~WorkbookGlobals()

oox::xls::WorkbookGlobals::~WorkbookGlobals ( )

Definition at line 324 of file workbookhelper.cxx.

References ImplDestroy(), and suppress_fun_call_w_exception.

Member Function Documentation

◆ createDatabaseRangeObject()

Reference< XDatabaseRange > oox::xls::WorkbookGlobals::createDatabaseRangeObject ( OUString &  orName,
const ScRange rRangeAddr 
)

◆ createFormulaParser()

FormulaParser * oox::xls::WorkbookGlobals::createFormulaParser ( )
inline

Returns an unshared import formula parser.

Definition at line 207 of file workbookhelper.cxx.

Referenced by oox::xls::WorkbookHelper::createFormulaParser(), and initialize().

◆ createLocalNamedRangeObject()

WorkbookHelper::RangeDataRet oox::xls::WorkbookGlobals::createLocalNamedRangeObject ( OUString &  orName,
sal_Int32  nIndex,
sal_Int32  nNameFlags,
sal_Int32  nTab,
bool  bHidden 
)

Creates and returns a defined name on the-fly in the correct Calc sheet.

Definition at line 424 of file workbookhelper.cxx.

References ScDocument::GetRangeName(), getScDocument(), and nIndex.

Referenced by oox::xls::WorkbookHelper::createLocalNamedRangeObject().

◆ createNamedRangeObject()

WorkbookHelper::RangeDataRet oox::xls::WorkbookGlobals::createNamedRangeObject ( OUString &  orName,
sal_Int32  nIndex,
sal_Int32  nNameFlags,
bool  bHidden 
)

Creates and returns a defined name on-the-fly in the Calc document.

Definition at line 407 of file workbookhelper.cxx.

References ScDocument::GetRangeName(), getScDocument(), and nIndex.

Referenced by oox::xls::WorkbookHelper::createNamedRangeObject().

◆ createStyleObject()

Reference< XStyle > oox::xls::WorkbookGlobals::createStyleObject ( OUString &  orStyleName,
bool  bPageStyle 
)

Creates and returns a com.sun.star.style.Style object for cells or pages.

Definition at line 505 of file workbookhelper.cxx.

References Any, Exception, getStyleFamily(), oox::ContainerHelper::insertByUnusedName(), maCellStyleServ, maPageStyleServ, and mrBaseFilter.

Referenced by oox::xls::WorkbookHelper::createStyleObject().

◆ createUnnamedDatabaseRangeObject()

Reference< XDatabaseRange > oox::xls::WorkbookGlobals::createUnnamedDatabaseRangeObject ( const ScRange rRangeAddr)

◆ finalize()

void oox::xls::WorkbookGlobals::finalize ( )
private

◆ findDatabaseRangeByIndex()

ScDBData * oox::xls::WorkbookGlobals::findDatabaseRangeByIndex ( sal_uInt16  nIndex)

Finds the (already existing) database range of the given formula token index.

Definition at line 497 of file workbookhelper.cxx.

References ScDBCollection::NamedDBs::findByIndex(), ScDocument::GetDBCollection(), ScDBCollection::getNamedDBs(), getScDocument(), and nIndex.

Referenced by oox::xls::WorkbookHelper::findDatabaseRangeByIndex().

◆ getAddressConverter()

AddressConverter & oox::xls::WorkbookGlobals::getAddressConverter ( ) const
inline

Returns the converter for string to cell address/range conversion.

Definition at line 211 of file workbookhelper.cxx.

References mxAddrConverter.

Referenced by createDatabaseRangeObject(), createUnnamedDatabaseRangeObject(), and oox::xls::WorkbookHelper::getAddressConverter().

◆ getBaseFilter()

FilterBase & oox::xls::WorkbookGlobals::getBaseFilter ( ) const
inline

Returns the base filter object (base class of all filters).

Definition at line 121 of file workbookhelper.cxx.

References mrBaseFilter.

Referenced by oox::xls::WorkbookHelper::getBaseFilter().

◆ getChartConverter()

oox::drawingml::chart::ChartConverter * oox::xls::WorkbookGlobals::getChartConverter ( ) const
inline

Returns the chart object converter.

Definition at line 213 of file workbookhelper.cxx.

References mxChartConverter.

Referenced by oox::xls::WorkbookHelper::getChartConverter().

◆ getConnections()

ConnectionsBuffer & oox::xls::WorkbookGlobals::getConnections ( ) const
inline

Returns the collection of external data connections.

Definition at line 196 of file workbookhelper.cxx.

References mxConnections.

Referenced by oox::xls::WorkbookHelper::getConnections().

◆ getCurrentSheetIndex()

sal_Int16 oox::xls::WorkbookGlobals::getCurrentSheetIndex ( ) const
inline

Returns the index of the current Calc sheet, if filter currently processes a sheet.

Definition at line 127 of file workbookhelper.cxx.

References mnCurrSheet.

Referenced by oox::xls::WorkbookHelper::getCurrentSheetIndex().

◆ getDefinedNames()

DefinedNamesBuffer & oox::xls::WorkbookGlobals::getDefinedNames ( ) const
inline

Returns the defined names read from the workbook globals.

Definition at line 190 of file workbookhelper.cxx.

References mxDefNames.

Referenced by oox::xls::WorkbookHelper::getDefinedNames().

◆ getDocImport()

ScDocumentImport & oox::xls::WorkbookGlobals::getDocImport ( )

Definition at line 329 of file workbookhelper.cxx.

References mxDocImport.

Referenced by oox::xls::WorkbookHelper::getDocImport().

◆ getDocument()

const Reference< XSpreadsheetDocument > & oox::xls::WorkbookGlobals::getDocument ( ) const
inline

Returns a reference to the source/target spreadsheet document model.

Definition at line 152 of file workbookhelper.cxx.

References mxDoc.

Referenced by oox::xls::WorkbookHelper::getDocument().

◆ getEditEngine()

ScEditEngineDefaulter & oox::xls::WorkbookGlobals::getEditEngine ( ) const
inline

Definition at line 142 of file workbookhelper.cxx.

References mxEditEngine.

Referenced by oox::xls::WorkbookHelper::getEditEngine().

◆ getExternalLinks()

ExternalLinkBuffer & oox::xls::WorkbookGlobals::getExternalLinks ( ) const
inline

Returns the external links read from the external links substream.

Definition at line 188 of file workbookhelper.cxx.

References mxExtLinks.

Referenced by oox::xls::WorkbookHelper::getExternalLinks().

◆ getFormulaBuffer()

FormulaBuffer & oox::xls::WorkbookGlobals::getFormulaBuffer ( ) const
inline

◆ getFormulaParser()

FormulaParser & oox::xls::WorkbookGlobals::getFormulaParser ( ) const
inline

Returns a shared import formula parser.

Definition at line 205 of file workbookhelper.cxx.

References mxFmlaParser.

Referenced by oox::xls::WorkbookHelper::getFormulaParser().

◆ getOoxFilter()

XmlFilterBase & oox::xls::WorkbookGlobals::getOoxFilter ( ) const
inline

Returns the base OOXML/BIFF12 filter object.

Definition at line 220 of file workbookhelper.cxx.

References mpOoxFilter.

Referenced by oox::xls::WorkbookHelper::getOoxFilter().

◆ getPageSettingsConverter()

PageSettingsConverter & oox::xls::WorkbookGlobals::getPageSettingsConverter ( ) const
inline

Returns the page/print settings converter.

Definition at line 215 of file workbookhelper.cxx.

References mxPageSettConverter.

Referenced by oox::xls::WorkbookHelper::getPageSettingsConverter().

◆ getPivotCaches()

PivotCacheBuffer & oox::xls::WorkbookGlobals::getPivotCaches ( ) const
inline

Returns the collection of pivot caches.

Definition at line 198 of file workbookhelper.cxx.

References mxPivotCaches.

Referenced by oox::xls::WorkbookHelper::getPivotCaches().

◆ getPivotTables()

PivotTableBuffer & oox::xls::WorkbookGlobals::getPivotTables ( )
inline

Returns the collection of pivot tables.

Definition at line 200 of file workbookhelper.cxx.

References mxPivotTables.

Referenced by oox::xls::WorkbookHelper::getPivotTables().

◆ getProgressBar()

SegmentProgressBar & oox::xls::WorkbookGlobals::getProgressBar ( ) const
inline

Returns the filter progress bar.

Definition at line 123 of file workbookhelper.cxx.

References mxProgressBar.

Referenced by oox::xls::WorkbookHelper::getProgressBar().

◆ getScDocument()

ScDocument & oox::xls::WorkbookGlobals::getScDocument ( )
inline

◆ getScenarios()

ScenarioBuffer & oox::xls::WorkbookGlobals::getScenarios ( ) const
inline

Returns the scenarios collection.

Definition at line 194 of file workbookhelper.cxx.

References mxScenarios.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport(), and oox::xls::WorkbookHelper::getScenarios().

◆ getSharedStrings()

SharedStringsBuffer & oox::xls::WorkbookGlobals::getSharedStrings ( ) const
inline

Returns the shared strings read from the shared strings substream.

Definition at line 186 of file workbookhelper.cxx.

References mxSharedStrings.

Referenced by oox::xls::WorkbookHelper::getSharedStrings().

◆ getStyleFamily()

Reference< XNameContainer > oox::xls::WorkbookGlobals::getStyleFamily ( bool  bPageStyles) const

Returns the cell or page styles container from the Calc document.

Definition at line 334 of file workbookhelper.cxx.

References Exception, maCellStyles, maPageStyles, and mxDoc.

Referenced by createStyleObject(), oox::xls::WorkbookHelper::getCellStyleFamily(), and getStyleObject().

◆ getStyleObject()

Reference< XStyle > oox::xls::WorkbookGlobals::getStyleObject ( const OUString &  rStyleName,
bool  bPageStyle 
) const

Returns the specified cell or page style from the Calc document.

Definition at line 350 of file workbookhelper.cxx.

References Exception, and getStyleFamily().

Referenced by oox::xls::WorkbookHelper::getStyleObject().

◆ getStyles()

StylesBuffer & oox::xls::WorkbookGlobals::getStyles ( ) const
inline

Returns all cell formatting objects read from the styles substream.

Definition at line 184 of file workbookhelper.cxx.

References mxStyles.

Referenced by oox::xls::WorkbookHelper::getStyles().

◆ getTables()

TableBuffer & oox::xls::WorkbookGlobals::getTables ( ) const
inline

Returns the tables collection (equivalent to Calc's database ranges).

Definition at line 192 of file workbookhelper.cxx.

References mxTables.

Referenced by oox::xls::WorkbookHelper::getTables().

◆ getTextEncoding()

rtl_TextEncoding oox::xls::WorkbookGlobals::getTextEncoding ( ) const
inline

Returns the text encoding used to import/export byte strings.

Definition at line 225 of file workbookhelper.cxx.

References meTextEnc.

Referenced by oox::xls::WorkbookHelper::getTextEncoding().

◆ getTheme()

ThemeBuffer & oox::xls::WorkbookGlobals::getTheme ( ) const
inline

Returns the office theme object read from the theme substorage.

Definition at line 182 of file workbookhelper.cxx.

References mxTheme.

Referenced by oox::xls::WorkbookHelper::getTheme().

◆ getUnitConverter()

UnitConverter & oox::xls::WorkbookGlobals::getUnitConverter ( ) const
inline

Returns the measurement unit converter.

Definition at line 209 of file workbookhelper.cxx.

References mxUnitConverter.

Referenced by oox::xls::WorkbookHelper::getUnitConverter().

◆ getVbaProjectStorage()

const StorageRef & oox::xls::WorkbookGlobals::getVbaProjectStorage ( ) const
inline

Returns the VBA project storage.

Definition at line 125 of file workbookhelper.cxx.

References mxVbaPrjStrg.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport().

◆ getViewSettings()

ViewSettings & oox::xls::WorkbookGlobals::getViewSettings ( ) const
inline

Returns the workbook and sheet view settings object.

Definition at line 178 of file workbookhelper.cxx.

References mxViewSettings.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport(), and oox::xls::WorkbookHelper::getViewSettings().

◆ getWorkbookSettings()

WorkbookSettings & oox::xls::WorkbookGlobals::getWorkbookSettings ( ) const
inline

Returns the global workbook settings object.

Definition at line 176 of file workbookhelper.cxx.

References mxWorkbookSettings.

Referenced by oox::xls::WorkbookHelper::finalizeWorkbookImport(), and oox::xls::WorkbookHelper::getWorkbookSettings().

◆ getWorksheets()

WorksheetBuffer & oox::xls::WorkbookGlobals::getWorksheets ( ) const
inline

Returns the worksheet buffer containing sheet names and properties.

Definition at line 180 of file workbookhelper.cxx.

References mxWorksheets.

Referenced by oox::xls::WorkbookHelper::getWorksheets().

◆ hasCalculatedFormulaCells()

bool oox::xls::WorkbookGlobals::hasCalculatedFormulaCells ( ) const
inline

Returns true if any formula cell appears to have a calculated value not 0.0 nor "", or when reading a known good generator's file.

Definition at line 132 of file workbookhelper.cxx.

References mbHasCalculatedFormulaCells.

Referenced by oox::xls::WorkbookHelper::hasCalculatedFormulaCells().

◆ ImplDestroy()

void oox::xls::WorkbookGlobals::ImplDestroy ( )
private

◆ initialize()

void oox::xls::WorkbookGlobals::initialize ( )
private

◆ isGeneratorKnownGood()

bool oox::xls::WorkbookGlobals::isGeneratorKnownGood ( ) const
inline

Returns true when reading a file generated by a known good generator.

Definition at line 129 of file workbookhelper.cxx.

References mbGeneratorKnownGood.

Referenced by oox::xls::WorkbookHelper::isGeneratorKnownGood().

◆ isValid()

bool oox::xls::WorkbookGlobals::isValid ( ) const
inline

Returns true, if this helper refers to a valid document.

Definition at line 116 of file workbookhelper.cxx.

References mxDoc.

◆ operator=()

const WorkbookGlobals & oox::xls::WorkbookGlobals::operator= ( const WorkbookGlobals )
delete

◆ setCalculatedFormulaCells()

void oox::xls::WorkbookGlobals::setCalculatedFormulaCells ( )
inline

◆ setCurrentSheetIndex()

void oox::xls::WorkbookGlobals::setCurrentSheetIndex ( SCTAB  nSheet)
inline

Sets the index of the current Calc sheet, if filter currently processes a sheet.

Definition at line 138 of file workbookhelper.cxx.

References mnCurrSheet.

Referenced by oox::xls::WorkbookHelper::setCurrentSheetIndex().

◆ setVbaProjectStorage()

void oox::xls::WorkbookGlobals::setVbaProjectStorage ( const StorageRef rxVbaPrjStrg)
inline

Sets the VBA project storage used to import VBA source code and forms.

Definition at line 136 of file workbookhelper.cxx.

References mxVbaPrjStrg.

Referenced by oox::xls::WorkbookHelper::setVbaProjectStorage().

◆ useInternalChartDataTable()

void oox::xls::WorkbookGlobals::useInternalChartDataTable ( bool  bInternal)

Helper to switch chart data table - specifically for xlsx imports.

Definition at line 521 of file workbookhelper.cxx.

References mxChartConverter.

Referenced by oox::xls::WorkbookHelper::useInternalChartDataTable().

Member Data Documentation

◆ maCellStyles

OUString oox::xls::WorkbookGlobals::maCellStyles
private

Definition at line 258 of file workbookhelper.cxx.

Referenced by getStyleFamily(), and initialize().

◆ maCellStyleServ

OUString oox::xls::WorkbookGlobals::maCellStyleServ
private

Style family name for page styles.

Definition at line 260 of file workbookhelper.cxx.

Referenced by createStyleObject(), and initialize().

◆ maPageStyles

OUString oox::xls::WorkbookGlobals::maPageStyles
private

Style family name for cell styles.

Definition at line 259 of file workbookhelper.cxx.

Referenced by getStyleFamily(), and initialize().

◆ maPageStyleServ

OUString oox::xls::WorkbookGlobals::maPageStyleServ
private

Service name for a cell style.

Definition at line 261 of file workbookhelper.cxx.

Referenced by createStyleObject(), and initialize().

◆ mbGeneratorKnownGood

bool oox::xls::WorkbookGlobals::mbGeneratorKnownGood
private

Current sheet index in Calc document.

Definition at line 268 of file workbookhelper.cxx.

Referenced by initialize(), and isGeneratorKnownGood().

◆ mbHasCalculatedFormulaCells

bool oox::xls::WorkbookGlobals::mbHasCalculatedFormulaCells
private

Whether reading a file generated by Excel or Calc.

Definition at line 269 of file workbookhelper.cxx.

Referenced by hasCalculatedFormulaCells(), initialize(), and setCalculatedFormulaCells().

◆ meTextEnc

rtl_TextEncoding oox::xls::WorkbookGlobals::meTextEnc
private

Base OOXML/BIFF12 filter object.

Definition at line 300 of file workbookhelper.cxx.

Referenced by getTextEncoding(), and initialize().

◆ mnCurrSheet

sal_Int16 oox::xls::WorkbookGlobals::mnCurrSheet
private

Storage containing the VBA project.

Definition at line 267 of file workbookhelper.cxx.

Referenced by getCurrentSheetIndex(), initialize(), and setCurrentSheetIndex().

◆ mpDoc

ScDocument* oox::xls::WorkbookGlobals::mpDoc
private

BIFF byte string text encoding.

Definition at line 301 of file workbookhelper.cxx.

Referenced by finalize(), getScDocument(), and initialize().

◆ mpDocShell

ScDocShell* oox::xls::WorkbookGlobals::mpDocShell
private

Definition at line 302 of file workbookhelper.cxx.

Referenced by finalize(), and initialize().

◆ mpOoxFilter

XmlFilterBase* oox::xls::WorkbookGlobals::mpOoxFilter
private

Definition at line 297 of file workbookhelper.cxx.

Referenced by getOoxFilter().

◆ mrBaseFilter

FilterBase& oox::xls::WorkbookGlobals::mrBaseFilter
private

Document model.

Definition at line 263 of file workbookhelper.cxx.

Referenced by createStyleObject(), finalize(), getBaseFilter(), and initialize().

◆ mrExcelFilter

ExcelFilter& oox::xls::WorkbookGlobals::mrExcelFilter
private

Base filter object.

Definition at line 264 of file workbookhelper.cxx.

Referenced by ImplDestroy(), and WorkbookGlobals().

◆ mxAddrConverter

AddressConvPtr oox::xls::WorkbookGlobals::mxAddrConverter
private

General unit converter.

Definition at line 290 of file workbookhelper.cxx.

Referenced by getAddressConverter(), and initialize().

◆ mxChartConverter

ExcelChartConvPtr oox::xls::WorkbookGlobals::mxChartConverter
private

Cell address and cell range address converter.

Definition at line 291 of file workbookhelper.cxx.

Referenced by getChartConverter(), initialize(), and useInternalChartDataTable().

◆ mxConnections

ConnectionsBfrPtr oox::xls::WorkbookGlobals::mxConnections
private

All scenarios.

Definition at line 283 of file workbookhelper.cxx.

Referenced by getConnections(), and initialize().

◆ mxDefNames

DefNamesBfrPtr oox::xls::WorkbookGlobals::mxDefNames
private

All external links.

Definition at line 280 of file workbookhelper.cxx.

Referenced by getDefinedNames(), and initialize().

◆ mxDoc

Reference< XSpreadsheetDocument > oox::xls::WorkbookGlobals::mxDoc
private

Service name for a page style.

Definition at line 262 of file workbookhelper.cxx.

Referenced by createDatabaseRangeObject(), getDocument(), getStyleFamily(), initialize(), and isValid().

◆ mxDocImport

std::unique_ptr<ScDocumentImport> oox::xls::WorkbookGlobals::mxDocImport
private

Definition at line 303 of file workbookhelper.cxx.

Referenced by getDocImport(), and initialize().

◆ mxEditEngine

EditEngineDefaulterPtr oox::xls::WorkbookGlobals::mxEditEngine
private

Page/print settings converter.

Definition at line 294 of file workbookhelper.cxx.

Referenced by getEditEngine(), and initialize().

◆ mxExtLinks

ExtLinkBfrPtr oox::xls::WorkbookGlobals::mxExtLinks
private

All strings from shared strings substream.

Definition at line 279 of file workbookhelper.cxx.

Referenced by getExternalLinks(), and initialize().

◆ mxFmlaParser

FormulaParserPtr oox::xls::WorkbookGlobals::mxFmlaParser
private

All pivot tables in the document.

Definition at line 288 of file workbookhelper.cxx.

Referenced by getFormulaParser(), and initialize().

◆ mxFormulaBuffer

FormulaBufferPtr oox::xls::WorkbookGlobals::mxFormulaBuffer
private

Assumed to have calculated formula cells.

Definition at line 272 of file workbookhelper.cxx.

Referenced by getFormulaBuffer(), and initialize().

◆ mxPageSettConverter

PageSettConvPtr oox::xls::WorkbookGlobals::mxPageSettConverter
private

Chart object converter.

Definition at line 292 of file workbookhelper.cxx.

Referenced by getPageSettingsConverter(), and initialize().

◆ mxPivotCaches

PivotCacheBfrPtr oox::xls::WorkbookGlobals::mxPivotCaches
private

All external data connections.

Definition at line 284 of file workbookhelper.cxx.

Referenced by getPivotCaches(), and initialize().

◆ mxPivotTables

PivotTableBfrPtr oox::xls::WorkbookGlobals::mxPivotTables
private

All pivot caches in the document.

Definition at line 285 of file workbookhelper.cxx.

Referenced by getPivotTables(), and initialize().

◆ mxProgressBar

ProgressBarPtr oox::xls::WorkbookGlobals::mxProgressBar
private

Base object for registration of this structure.

Definition at line 265 of file workbookhelper.cxx.

Referenced by getProgressBar(), and initialize().

◆ mxScenarios

ScenarioBfrPtr oox::xls::WorkbookGlobals::mxScenarios
private

All tables (database ranges).

Definition at line 282 of file workbookhelper.cxx.

Referenced by getScenarios(), and initialize().

◆ mxSharedStrings

SharedStrBfrPtr oox::xls::WorkbookGlobals::mxSharedStrings
private

All cell style objects from styles substream.

Definition at line 278 of file workbookhelper.cxx.

Referenced by getSharedStrings(), and initialize().

◆ mxStyles

StylesBfrPtr oox::xls::WorkbookGlobals::mxStyles
private

Formatting theme from theme substream.

Definition at line 277 of file workbookhelper.cxx.

Referenced by getStyles(), and initialize().

◆ mxTables

TableBfrPtr oox::xls::WorkbookGlobals::mxTables
private

All defined names.

Definition at line 281 of file workbookhelper.cxx.

Referenced by getTables(), and initialize().

◆ mxTheme

ThemeBfrRef oox::xls::WorkbookGlobals::mxTheme
private

Sheet info buffer.

Definition at line 276 of file workbookhelper.cxx.

Referenced by getTheme(), and initialize().

◆ mxUnitConverter

UnitConvPtr oox::xls::WorkbookGlobals::mxUnitConverter
private

Import formula parser.

Definition at line 289 of file workbookhelper.cxx.

Referenced by getUnitConverter(), and initialize().

◆ mxVbaPrjStrg

StorageRef oox::xls::WorkbookGlobals::mxVbaPrjStrg
private

The progress bar.

Definition at line 266 of file workbookhelper.cxx.

Referenced by getVbaProjectStorage(), and setVbaProjectStorage().

◆ mxViewSettings

ViewSettingsPtr oox::xls::WorkbookGlobals::mxViewSettings
private

Global workbook settings.

Definition at line 274 of file workbookhelper.cxx.

Referenced by getViewSettings(), and initialize().

◆ mxWorkbookSettings

WorkbookSettPtr oox::xls::WorkbookGlobals::mxWorkbookSettings
private

Definition at line 273 of file workbookhelper.cxx.

Referenced by getWorkbookSettings(), and initialize().

◆ mxWorksheets

WorksheetBfrPtr oox::xls::WorkbookGlobals::mxWorksheets
private

Workbook and sheet view settings.

Definition at line 275 of file workbookhelper.cxx.

Referenced by getWorksheets(), and initialize().


The documentation for this class was generated from the following file: